Get the Best IPTV Service
(self.webpackChunkdiscourse=self.webpackChunkdiscourse||[]).push([[835],{88079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"+9aUAbN/",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["about-wrapper",[28,[37,1],null,[["model","contactInfo","faqOverridden"],[[30,0,["model"]],[30,0,["contactInfo"]],[30,0,["faqOverridden"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["about-page"],null]],[1,"\\n\\n "],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n\\n "],[10,"ul"],[14,0,"nav-pills"],[12],[1,"\\n "],[10,"li"],[14,0,"nav-item-about"],[12],[8,[39,7],[[24,0,"active"]],[["@route"],["about"]],[["default"],[[[[1,[28,[35,8],["about.simple_title"],null]]],[]]]]],[13],[1,"\\n"],[41,[30,0,["faqOverridden"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,7],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,8],["guidelines"],null]]],[]]]]],[13],[1,"\\n "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,7],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,8],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renameFaqToGuidelines"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,7],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,8],["guidelines"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,7],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,8],["faq"],null]]],[]]]]],[13],[1,"\\n "]],[]]]],[]]],[41,[30,0,["site","tos_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-tos"],[12],[8,[39,7],null,[["@route"],["tos"]],[["default"],[[[[1,[28,[35,8],["tos"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["site","privacy_policy_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-privacy"],[12],[8,[39,7],null,[["@route"],["privacy"]],[["default"],[[[[1,[28,[35,8],["privacy"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],[],false,["plugin-outlet","hash","body-class","section","div","ul","li","link-to","i18n","if","about-page"]]',moduleName:"discourse/templates/about.hbs",isStrictMode:!1})},17298:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"avVPaqci",block:'[[[1,[28,[35,0],["account-created-page"],null]],[1,"\\n"],[1,[28,[35,1],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,2]],[1,"\\n"],[10,0],[14,0,"account-created"],[12],[1,"\\n "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","hide-application-header-buttons","hide-application-sidebar","div","component","-outlet"]]',moduleName:"discourse/templates/account-created.hbs",isStrictMode:!1})},644:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"kP+B4vBb",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[10,0],[14,0,"ac-message"],[12],[1,"\\n "],[8,[39,2],null,[["@email","@updateNewEmail"],[[30,0,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"activation-controls"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n "],[8,[39,3],[[24,0,"edit-cancel"]],[["@action","@label"],[[30,0,["cancel"]],"cancel"]],null],[1,"\\n"],[13]],[],false,["signup-progress-bar","div","activation-email-form","d-button"]]',moduleName:"discourse/templates/account-created/edit-email.hbs",isStrictMode:!1})},25131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"Kzx9O+XM",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[8,[39,1],null,[["@header"],[[30,0,["welcomeTitle"]]]],null],[1,"\\n"],[10,0],[14,0,"success-info"],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["accountCreated","message"]]],null]],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["accountCreated","show_controls"]],[[[1," "],[8,[39,5],null,[["@sendActivationEmail","@editActivationEmail"],[[28,[37,6],[[30,0],"sendActivationEmail"],null],[28,[37,6],[[30,0],"editActivationEmail"],null]]],null],[1,"\\n"]],[]],null]],[],false,["signup-progress-bar","welcome-header","div","html-safe","if","activation-controls","action"]]',moduleName:"discourse/templates/account-created/index.hbs",isStrictMode:!1})},18670:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"W/KKEmCX",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[10,0],[14,0,"ac-message"],[12],[1,"\\n"],[41,[30,0,["email"]],[[[1," "],[1,[28,[35,3],[[28,[37,4],["login.sent_activation_email_again"],[["currentEmail"],[[30,0,["email"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["login.sent_activation_email_again_generic"],null]],[1,"\\n"]],[]]],[13]],[],false,["signup-progress-bar","div","if","html-safe","i18n"]]',moduleName:"discourse/templates/account-created/resent.hbs",isStrictMode:!1})},62726:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"/qFcmaLN",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[8,[39,1],null,null,null],[1,"\\n\\n"],[8,[39,2],[[4,[38,3],[[30,0,["trackDiscoursePainted"]]],null]],null,[["default"],[[[[1,"\\n"],[41,[30,0,["showSkipToContent"]],[[[1," "],[10,3],[14,6,"#main-container"],[14,1,"skip-link"],[12],[1,[28,[35,6],["skip_to_main_content"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,7],null,null,null],[1,"\\n "],[8,[39,8],null,null,null],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["above-site-header","div",[28,[37,10],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showSiteHeader"]],[[[1," "],[8,[39,11],null,[["@canSignUp","@showCreateAccount","@showLogin","@showKeyboard","@toggleMobileView","@logout","@sidebarEnabled","@showSidebar","@toggleSidebar"],[[30,0,["canSignUp"]],[28,[37,12],["showCreateAccount"],null],[28,[37,12],["showLogin"],null],[28,[37,12],["showKeyboardShortcutsHelp"],null],[28,[37,12],["toggleMobileView"],null],[28,[37,12],["logout"],null],[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]],[30,0,["toggleSidebar"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,null,null],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_offline_indicator"]],[[[1," "],[8,[39,14],null,null,null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["below-site-header","div",[28,[37,10],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,1,"main-outlet-wrapper"],[14,0,"wrap"],[14,"role","main"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-wrapper"],[12],[1,"\\n"],[41,[28,[37,16],[[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]]],null],[[[1," "],[8,[39,17],null,[["@toggleSidebar"],[[28,[37,18],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,19],null,null,null],[1,"\\n\\n "],[8,[39,9],null,[["@name"],["before-main-outlet"]],null],[1,"\\n\\n "],[10,0],[14,1,"main-outlet"],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName"],["above-main-container","div"]],null],[1,"\\n "],[10,0],[14,0,"container"],[14,1,"main-container"],[12],[1,"\\n"],[41,[30,0,["showTop"]],[[[1," "],[8,[39,20],null,[["@name"],["top"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,21],null,null,null],[1,"\\n "],[8,[39,22],null,null,null],[1,"\\n "],[8,[39,23],null,null,null],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["top-notices","div",[28,[37,10],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[46,[28,[37,25],null,null],null,null,null],[1,"\\n\\n "],[8,[39,26],null,null,null],[1,"\\n "],[8,[39,9],null,[["@name","@outletArgs"],["main-outlet-bottom",[28,[37,10],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,9],null,[["@name"],["after-main-outlet"]],null],[1,"\\n\\n"],[41,[30,0,["showPoweredBy"]],[[[1," "],[8,[39,27],null,null,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["above-footer","div",[28,[37,10],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n"],[41,[30,0,["showFooter"]],[[[1," "],[8,[39,20],null,[["@name","@triggerAppEvent","@classNames"],["footer","true","custom-footer-content"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["below-footer","div",[28,[37,10],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n\\n "],[8,[39,28],null,null,null],[1,"\\n "],[8,[39,29],null,null,null],[1,"\\n "],[8,[39,30],null,null,null],[1,"\\n "],[8,[39,31],null,null,null],[1,"\\n "],[8,[39,32],null,null,null],[1,"\\n\\n"],[41,[30,0,["showFooterNav"]],[[[1," "],[8,[39,9],null,[["@name"],["footer-nav"]],[["default"],[[[[1,"\\n "],[8,[39,33],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[8,[39,34],null,null,null],[1,"\\n"],[8,[39,35],null,null,null],[1,"\\n"],[8,[39,36],null,null,null]],[],false,["d-styles","d-virtual-height","discourse-root","did-insert","if","a","i18n","d-document","page-loading-slider","plugin-outlet","hash","glimmer-site-header","route-action","software-update-prompt","offline-indicator","div","and","sidebar","action","loading-slider-fallback-spinner","custom-html","notification-consent-banner","pwa-install-banner","global-notice","component","-outlet","card-container","powered-by-discourse","modal-container","dialog-holder","topic-entrance","composer-container","render-glimmer-container","footer-nav","d-menus","d-tooltips","d-toasts"]]',moduleName:"discourse/templates/application.hbs",isStrictMode:!1})},86927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"ManfXvfJ",block:'[[[1,[28,[35,0],["badges-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container badges"],[12],[1,"\\n "],[10,"h1"],[12],[1,[28,[35,4],["badges.title"],null]],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName"],["below-badges-title","div"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"badge-groups"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["badgeGroups"]]],null]],null],null,[[[1," "],[10,0],[14,0,"badge-grouping"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,"\\n "],[10,"h2"],[12],[1,[30,1,["badgeGrouping","displayName"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,1,["badges"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@badge","@username"],[[30,2],[30,0,["currentUser","username"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["bg","b"],false,["body-class","section","div","h1","i18n","span","plugin-outlet","each","-track-array","h2","badge-card"]]',moduleName:"discourse/templates/badges/index.hbs",isStrictMode:!1})},94280:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"romIclfh",block:'[[[41,[30,0,["canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[15,0,[29,["container show-badge ",[30,0,["model","slug"]]]]],[12],[1,"\\n "],[10,"h1"],[12],[1,"\\n "],[8,[39,4],null,[["@route"],["badges.index"]],[["default"],[[[[1,[28,[35,5],["badges.title"],null]]],[]]]]],[1,"\\n /\\n "],[1,[30,0,["model","name"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"show-badge-details"],[12],[1,"\\n "],[8,[39,6],null,[["@badge","@size","@count"],[[30,0,["model"]],"large",[30,0,["userBadges","grant_count"]]]],null],[1,"\\n "],[10,0],[15,0,[29,["badge-grant-info ",[52,[30,0,["hiddenSetTitle"]],"","hidden"]]]],[12],[1,"\\n "],[10,0],[12],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n "],[1,[28,[35,5],["badges.allow_title"],null]],[1,"\\n "],[8,[39,7],[[24,0,"btn-default pad-left"]],[["@action","@icon"],[[30,0,["toggleSetUserTitle"]],"pencil"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","multiple_grant"]],[[[1," "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n "],[1,[28,[35,5],["badges.multiple_grant"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[15,0,[29,["badge-set-title ",[52,[30,0,["hiddenSetTitle"]],"hidden",""]]]],[12],[1,"\\n "],[8,[39,8],null,[["@name","@outletArgs"],["selectable-user-badges",[28,[37,9],null,[["selectableUserBadges","closeAction"],[[30,0,["selectableUserBadges"]],[30,0,["toggleSetUserTitle"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@selectableUserBadges","@closeAction"],[[30,0,["selectableUserBadges"]],[30,0,["toggleSetUserTitle"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["userBadges"]],[[[1," "],[10,0],[15,0,[29,["user-badges ",[30,0,["model","slug"]]]]],[12],[1,"\\n "],[8,[39,11],null,[["@selector","@action"],[".badge-info",[28,[37,12],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"badges-granted"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["userBadges"]]],null]],null],null,[[[1," "],[8,[39,15],[[24,0,"badge-info"]],[["@user","@size","@date"],[[30,1,["user"]],"medium",[30,1,["granted_at"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"granted-on"],[12],[1,"\\n "],[1,[28,[35,16],[[28,[37,5],["badges.granted_on"],[["date"],[[28,[37,17],[[30,1,["granted_at"]]],null]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["post_number"]],[[[1," "],[10,3],[14,0,"post-link"],[15,6,[29,[[30,1,["topic","url"]],"/",[30,1,["post_number"]]]]],[12],[1,[28,[35,16],[[30,1,["topic","fancyTitle"]]],null]],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[51,[30,0,["canLoadMore"]]],[[[41,[30,0,["canShowOthers"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,3],[14,1,"show-others-with-badge-link"],[15,6,[30,0,["model","url"]]],[14,0,"btn btn-default"],[12],[1,[28,[35,5],["badges.others_count"],[["count"],[[30,0,["othersCount"]]]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,20],null,[["@condition"],[[30,0,["canLoadMore"]]]],null],[1,"\\n"]],[]],null],[13]],["ub"],false,["if","hide-application-footer","div","h1","link-to","i18n","badge-card","d-button","plugin-outlet","hash","badge-title","load-more","action","each","-track-array","user-info","html-safe","format-date","a","unless","conditional-loading-spinner"]]',moduleName:"discourse/templates/badges/show.hbs",isStrictMode:!1})},77825:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"FSYTAsWs",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[8,[39,4],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["footer_nav.share","link",[30,0,["shareModal"]]]],null],[1,"\\n"]],[]],null]],[],false,["composer-tip-close-button","fn","html-safe","if","d-button"]]',moduleName:"discourse/templates/composer/dominating-topic.hbs",isStrictMode:!1})},12547:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"7xNfDvV/",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[41,[30,0,["message","title"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["message","title"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,4],[[30,0,["message","body"]]],null]]],[],false,["composer-tip-close-button","fn","if","h3","html-safe"]]',moduleName:"discourse/templates/composer/education.hbs",isStrictMode:!1})},2891:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"WboXcjLd",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[8,[39,3],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["user.private_message","envelope",[28,[37,1],[[30,0,["switchPM"]],[30,0,["message"]]],null]]],null]],[],false,["composer-tip-close-button","fn","html-safe","d-button"]]',moduleName:"discourse/templates/composer/get-a-room.hbs",isStrictMode:!1})},95754:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"74KS2T1g",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["message","body"]]],null]],[1,"\\n"],[13]],[],false,["composer-tip-close-button","fn","p","html-safe"]]',moduleName:"discourse/templates/composer/group-mentioned.hbs",isStrictMode:!1})},1257:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"014tklkJ",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,"h3"],[12],[1,[28,[35,3],["composer.similar_topics"],null]],[13],[1,"\\n\\n"],[10,"ul"],[14,0,"topics"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["message","similarTopics"]]],null]],null],null,[[[1," "],[10,0],[14,0,"similar-topic"],[12],[1,"\\n "],[8,[39,8],null,[["@result","@withTopicUrl"],[[30,1],true]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13]],["topic"],false,["composer-tip-close-button","fn","h3","i18n","ul","each","-track-array","div","search-menu/results/type/topic"]]',moduleName:"discourse/templates/composer/similar-topics.hbs",isStrictMode:!1})},38470:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"mE49HeZG",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n "],[10,0],[14,0,"confirm-new-email"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["user.change_email.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_new.description"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_new.description_add"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,2],[12],[1,[30,0,["model","new_email"]]],[13],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,2],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","if","d-button"]]',moduleName:"discourse/templates/confirm-new-email.hbs",isStrictMode:!1})},67127:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"AZiEhlwm",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n "],[10,0],[14,0,"confirm-old-email"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["user.change_email.authorizing_old.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_old.description"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_old.description_add"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["user.change_email.authorizing_old.old_email"],[["email"],[[30,0,["model","old_email"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["user.change_email.authorizing_old.new_email"],[["email"],[[30,0,["model","new_email"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,2],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","if","d-button"]]',moduleName:"discourse/templates/confirm-old-email.hbs",isStrictMode:!1})},11791:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"sAJNXsko",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n "],[8,[39,2],null,[["@category","@showCategoryAdmin","@canCreateTopic","@createTopic","@filterType"],[[30,0,["model","parentCategory"]],[30,0,["model","can_create_category"]],[30,0,["model","can_create_topic"]],[30,0,["createTopic"]],"categories"]],null],[1,"\\n "]],[]],[[[1,"\\n\\n "],[1,[28,[35,4],["categories-list"],null]],[1,"\\n\\n "],[10,0],[14,0,"contents"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["topicTrackingState","hasIncoming"]],[30,0,["isCategoriesRoute"]]],null],[[[1," "],[10,0],[15,0,[28,[37,8],["show-more",[52,[30,0,["hasTopics"]],"has-topics"]],null]],[12],[1,"\\n "],[11,0],[24,"role","button"],[24,0,"alert alert-info clickable"],[4,[38,9],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,10],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,11],null,[["@categories","@topics","@parentCategory","@loadMore","@loadingMore"],[[30,0,["model","categories"]],[30,0,["model","topics"]],[30,0,["model","parentCategory"]],[30,0,["model","loadMore"]],[30,0,["model","isLoading"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["below-discovery-categories","div",[28,[37,13],null,[["categories","topics"],[[30,0,["model","categories"]],[30,0,["model","topics"]]]]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/navigation",":list","body-class","div","if","and","concat-class","on","count-i18n","discovery/categories-display","plugin-outlet","hash"]]',moduleName:"discourse/templates/discovery/categories.hbs",isStrictMode:!1})},17514:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"ya9aVeVr",block:'[[[8,[39,0],null,[["@name"],["custom-homepage"]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[10,2],[14,0,"alert alert-info"],[12],[1,"\\n "],[1,[28,[35,3],["custom_homepage.admin_message"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]]],[],false,["plugin-outlet","if","p","i18n"]]',moduleName:"discourse/templates/discovery/custom.hbs",isStrictMode:!1})},43341:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"AgaLY3Gp",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n "],[8,[39,2],null,[["@queryString","@updateTopicsListQueryParams","@canBulkSelect","@bulkSelectHelper"],[[30,0,["q"]],[30,0,["updateTopicsListQueryParams"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,4],null,[["@period","@expandAllPinned","@expandAllGloballyPinned","@model","@canBulkSelect","@bulkSelectHelper"],[[30,0,["period"]],[30,0,["expandAllPinned"]],[30,0,["expandAllGloballyPinned"]],[30,0,["model"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/filter-navigation",":list","discovery/topics"]]',moduleName:"discourse/templates/discovery/filter.hbs",isStrictMode:!1})},11971:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"x6qRsqM5",block:'[[[8,[39,0],null,[["@model","@createTopicDisabled"],[[30,0,["model"]],[30,0,["createTopicDisabled"]]]],[["navigation","header","list"],[[[[1,"\\n "],[8,[39,2],null,[["@category","@tag","@additionalTags","@filterType","@noSubcategories","@canBulkSelect","@bulkSelectHelper","@createTopic","@createTopicDisabled","@canCreateTopicOnTag","@toggleTagInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],[[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["model","additionalTags"]],[30,0,["model","filterType"]],[30,0,["model","noSubcategories"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["createTopic"]],[30,0,["createTopicDisabled"]],[30,0,["model","canCreateTopicOnTag"]],[30,0,["toggleTagInfo"]],[30,0,["model","tagNotification"]],[30,0,["model","list"]],[30,0,["showDismissRead"]],[30,0,["showResetNew"]],[30,0,["dismissRead"]],[30,0,["resetNew"]]]],null],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,0,["model","subcategoryList"]],[[[1," "],[8,[39,5],null,[["@categories","@parentCategory"],[[30,0,["model","subcategoryList","categories"]],[30,0,["model","subcategoryList","parentCategory"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["showTagInfo"]],[30,0,["model","tag"]]],null],[[[1," "],[8,[39,7],null,[["@tag","@list"],[[30,0,["model","tag"]],[30,0,["model","list"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,9],null,[["@period","@changePeriod","@model","@canBulkSelect","@bulkSelectHelper","@showDismissRead","@showResetNew","@category","@tag","@changeSort","@changeNewListSubset","@dismissRead","@resetNew"],[[30,0,["model","list","for_period"]],[30,0,["changePeriod"]],[30,0,["model","list"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["showDismissRead"]],[30,0,["showResetNew"]],[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["changeSort"]],[30,0,["changeNewListSubset"]],[30,0,["dismissRead"]],[30,0,["resetNew"]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/navigation",":header","if","discovery/categories-display","and","tag-info",":list","discovery/topics"]]',moduleName:"discourse/templates/discovery/list.hbs",isStrictMode:!1})},78260:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"ar41JDN5",block:'[[[10,0],[15,0,[29,["edit-category ",[52,[30,0,["expandedMenu"]],"expanded-menu"]]]],[12],[1,"\\n "],[10,0],[14,0,"edit-category-title-bar"],[12],[1,"\\n "],[10,0],[14,0,"edit-category-title"],[12],[1,"\\n "],[10,"h2"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"],[41,[30,0,["model","id"]],[[[1," "],[8,[39,3],null,[["@categories","@category","@noSubcategories","@editingCategory","@editingCategoryTab"],[[30,0,["site","categoriesList"]],[30,0,["model"]],[30,0,["model","noSubcategories"]],true,[30,0,["selectedTab"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,4],[[30,0,["site","desktopView"]],[30,0,["model","id"]]],null],[[[1," "],[8,[39,5],[[24,0,"category-back"]],[["@action","@label","@icon"],[[28,[37,6],[[30,0],"goBack"],null],"category.back","caret-left"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"edit-category-nav"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-stacked"],[12],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"general"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"security"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"settings"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"images"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"topic-template"]],null],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"tags"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"edit-category-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[30,0,["selectedTabTitle"]]],[13],[1,"\\n\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["panels"]]],null]],null],null,[[[1," "],[46,[30,1],null,[["selectedTab","category","registerValidator"],[[30,0,["selectedTab"]],[30,0,["model"]],[28,[37,6],[[30,0],"registerValidator"],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showDeleteReason"]],[[[1," "],[10,0],[14,0,"edit-category-delete-warning"],[12],[1,"\\n "],[10,2],[14,0,"warning"],[12],[1,[28,[35,14],[[30,0,["model","cannot_delete_reason"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"edit-category-footer"],[12],[1,"\\n "],[8,[39,5],[[24,1,"save-category"],[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["disabled"]],[28,[37,6],[[30,0],"saveCategory"],null],[30,0,["saveLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","can_delete"]],[[[1," "],[8,[39,5],[[24,0,"btn-danger"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,6],[[30,0],"deleteCategory"],null],"trash-can","category.delete"]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","id"]],[[[1," "],[10,0],[14,0,"disable-info"],[12],[1,"\\n "],[8,[39,5],[[24,0,"btn-default"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,6],[[30,0],"toggleDeleteTooltip"],null],"circle-question","category.delete"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[13]],["tab"],false,["div","if","h2","bread-crumbs","and","d-button","action","ul","edit-category-tab","h3","each","-track-array","component","p","html-safe"]]',moduleName:"discourse/templates/edit-category-tabs.hbs",isStrictMode:!1})},22212:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"fj+h/2uL",block:'[[[10,0],[14,0,"container email-login clearfix"],[12],[1,"\\n "],[10,0],[14,0,"content-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"image-wrapper"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1," "],[10,0],[14,0,"error-info"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","error"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_login"]],[[[1," "],[10,0],[14,0,"email-login-form"],[12],[1,"\\n"],[41,[30,0,["secondFactorRequired"]],[[[41,[30,0,["model","security_key_required"]],[[[1," "],[8,[39,5],null,[["@setShowSecurityKey","@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,6],[[28,[37,7],[[30,0,["model","security_key_required"]]],null]],null],[28,[37,6],[[28,[37,7],[[30,0,["secondFactorMethod"]]],null]],null],[30,0,["model","backup_codes_enabled"]],[30,0,["model","totp_enabled"]],[30,0,["secondFactorRequired"]],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["model","backup_codes_enabled"]],[30,0,["model","totp_enabled"]],true]],[["default"],[[[[1,"\\n "],[8,[39,9],[[16,2,[30,0,["secondFactorToken"]]],[4,[38,10],["input",[28,[37,11],[[28,[37,6],[[28,[37,7],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["secondFactorMethod"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1," "],[10,"h2"],[12],[1,[28,[35,13],["email_login.confirm_title"],[["site_name"],[[30,0,["siteSettings","title"]]]]]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,13],["email_login.logging_in_as"],[["email"],[[30,0,["model","token_email"]]]]]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["model","security_key_required"]]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"],[24,4,"submit"]],[["@label","@action"],["email_login.confirm_button",[28,[37,17],[[30,0],"finishLogin"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","img","form","if","html-safe","security-key-form","fn","mut","second-factor-form","second-factor-input","on","with-event-value","h2","i18n","p","unless","d-button","action"]]',moduleName:"discourse/templates/email-login.hbs",isStrictMode:!1})},54507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"iYk0/NwN",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["errorHtml"]],[30,0,["isForbidden"]]],null],[[[1," "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,3],[[30,0,["errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"error-page"],[12],[1,"\\n "],[10,0],[14,0,"face"],[12],[1,":("],[13],[1,"\\n "],[10,0],[14,0,"reason"],[12],[1,[30,0,["reason"]]],[13],[1,"\\n"],[41,[30,0,["requestUrl"]],[[[1," "],[10,0],[14,0,"url"],[12],[1,"\\n "],[1,[28,[35,4],["errors.prev_page"],null]],[1,"\\n "],[10,3],[15,6,[30,0,["requestUrl"]]],[14,"data-auto-route","true"],[12],[1,[30,0,["requestUrl"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,0,["networkFixed"]],[[[1," "],[1,[28,[35,6],["circle-check"],null]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[30,0,["desc"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["enabledButtons"]]],null]],null],null,[[[1," "],[8,[39,9],[[16,0,[30,1,["classes"]]]],[["@icon","@action","@label"],[[30,1,["icon"]],[30,1,["action"]],[30,1,["key"]]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["buttonData"],false,["div","if","and","html-safe","i18n","a","d-icon","each","-track-array","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/exception.hbs",isStrictMode:!1})},69004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"0HOHpYbC",block:'[[[1,[28,[35,0],[[28,[37,1],["static-",[30,0,["model","path"]]],null]],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,5],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,6],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,5],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["body-class","concat","section","watch-read","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/faq.hbs",isStrictMode:!1})},17879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"PNxywhVu",block:'[[[41,[30,0,["loading"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["search-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"search-container"],[12],[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-above-search-header","div",[28,[37,5],null,[["searchTerm"],[[30,0,["searchTerm"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"search-header"],[14,"role","search"],[12],[1,"\\n "],[10,"h1"],[14,0,"search-page-heading"],[12],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1," "],[10,0],[14,0,"result-count"],[14,1,"search-result-count"],[14,"aria-live","polite"],[12],[1,"\\n "],[1,[28,[35,8],[[30,0,["resultCountLabel"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"search-page-heading__page-title"],[12],[1,"\\n "],[1,[28,[35,9],["search.full_page_title"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"search-bar"],[12],[1,"\\n "],[8,[39,10],[[24,0,"full-page-search search no-blur search-query"]],[["@value","@aria-label","@enter","@hasAutofocus","@aria-controls"],[[30,0,["searchTerm"]],[28,[37,9],["search.search_term_label"],null],[28,[37,11],[[30,0],"search",[28,[37,5],null,[["collapseFilters"],[true]]]],null],[30,0,["hasAutofocus"]],"search-result-count"]],null],[1,"\\n "],[8,[39,12],null,[["@id","@value","@content","@onChange","@options"],["search-type",[30,0,["search_type"]],[30,0,["searchTypes"]],[28,[37,13],[[28,[37,14],[[30,0,["search_type"]]],null]],null],[28,[37,5],null,[["castInteger"],[true]]]]],null],[1,"\\n "],[8,[39,15],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[28,[37,13],[[28,[37,11],[[30,0],"search"],null],[28,[37,5],null,[["collapseFilters"],[true]]]],null],"magnifying-glass","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["usingDefaultSearchType"]],[[[41,[30,0,["context"]],[[[1," "],[10,0],[14,0,"search-context"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,17],[[24,3,"searchContext"]],[["@type","@checked"],["checkbox",[30,0,["searchContextEnabled"]]]],null],[1,"\\n "],[1,[30,0,["searchContextDescription"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"search-filters"],[12],[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["full-page-search-filters",[28,[37,5],null,[["searchTerm","onChangeSearchTerm","search","searchButtonDisabled","expandFilters","sortOrder","sortOrderOptions","setSortOrder","type","addSearchResults","resultCount"],[[28,[37,18],[[30,0,["searchTerm"]]],null],[28,[37,13],[[28,[37,14],[[30,0,["searchTerm"]]],null]],null],[28,[37,11],[[30,0],"search",[28,[37,5],null,[["collapseFilters"],[true]]]],null],[30,0,["searchButtonDisabled"]],[30,0,["expandFilters"]],[30,0,["sortOrder"]],[30,0,["sortOrders"]],[30,0,["setSortOrder"]],[30,0,["search_type"]],[30,0,["addSearchResults"]],[30,0,["resultCount"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,19],null,[["@searchTerm","@onChangeSearchTerm","@search","@searchButtonDisabled","@expandFilters"],[[28,[37,18],[[30,0,["searchTerm"]]],null],[28,[37,13],[[28,[37,14],[[30,0,["searchTerm"]]],null]],null],[28,[37,11],[[30,0],"search",[28,[37,5],null,[["collapseFilters"],[true]]]],null],[30,0,["searchButtonDisabled"]],[30,0,["expandFilters"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"search-notice"],[12],[1,"\\n"],[41,[30,0,["invalidSearch"]],[[[1," "],[10,0],[14,0,"fps-invalid"],[12],[1,"\\n "],[1,[28,[35,9],["search.too_short"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"search-advanced"],[12],[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-header","div",[28,[37,5],null,[["search","type","model","addSearchResults","sortOrder"],[[30,0,["searchTerm"]],[30,0,["search_type"]],[30,0,["model"]],[30,0,["addSearchResults"]],[30,0,["sortOrder"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["usingDefaultSearchType"]],[[[1," "],[10,0],[15,0,[30,0,["searchInfoClassNames"]]],[14,"role","region"],[15,"ariaLabel",[28,[37,9],["search.sort_or_bulk_actions"],null]],[12],[1,"\\n"],[41,[30,0,["canBulkSelect"]],[[[1," "],[8,[39,15],[[24,0,"btn-default bulk-select"]],[["@icon","@title","@action"],["list","topics.bulk.toggle",[28,[37,11],[[30,0],"toggleBulkSelect"],null]]],null],[1,"\\n"],[41,[30,0,["bulkSelectHelper","selected"]],[[[1," "],[8,[39,20],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,0,["bulkSelectHelper"]],[30,0,["afterBulkActionComplete"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[41,[30,0,["hasUnselectedResults"]],[[[1," "],[8,[39,15],[[24,0,"btn-default bulk-select-all"]],[["@icon","@action","@label"],["square-check",[28,[37,11],[[30,0],"selectAll"],null],"search.select_all"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasSelection"]],[[[1," "],[8,[39,15],[[24,0,"btn-default bulk-select-clear"]],[["@icon","@action","@label"],["far-square",[28,[37,11],[[30,0],"clearAll"],null],"search.clear_all"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,0],[14,0,"sort-by inline-form"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,9],["search.sort_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,12],null,[["@value","@content","@onChange","@id","@options"],[[30,0,["sortOrder"]],[30,0,["sortOrders"]],[30,0,["setSortOrder"]],"search-sort-by",[28,[37,5],null,[["castInteger"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-info","div",[28,[37,5],null,[["search"],[[30,0,["searchTerm"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["searching"]],[[[1," "],[1,[28,[35,22],null,[["size"],["medium"]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"search-results"],[14,"role","region"],[12],[1,"\\n "],[8,[39,23],null,[["@selector","@action"],[".fps-result",[28,[37,11],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,24],[[30,0,["usingDefaultSearchType"]],[30,0,["customSearchType"]]],null],[[[1," "],[8,[39,25],null,[["@posts","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,0,["searchResultPosts"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectHelper","selected"]],[30,0,["highlightQuery"]],[30,0,["model","grouped_search_result","search_log_id"]]]],null],[1,"\\n\\n "],[8,[39,26],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,"\\n "],[1,[30,0,["error"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["hasResults"]]],[[[41,[30,0,["searchActive"]],[[[1," "],[10,0],[14,0,"no-results-container"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,9],["search.no_results"],null]],[13],[1,"\\n\\n"],[41,[30,0,["showSuggestion"]],[[[1," "],[10,0],[14,0,"no-results-suggestion"],[12],[1,"\\n "],[1,[28,[35,9],["search.cant_find"],null]],[1,"\\n"],[41,[30,0,["canCreateTopic"]],[[[1," "],[11,3],[24,6,""],[4,[38,30],["click",[28,[37,13],[[30,0,["createTopic"]],[30,0,["searchTerm"]]],null]],null],[12],[1,[28,[35,9],["search.start_new_topic"],null]],[13],[1,"\\n"],[41,[51,[30,0,["siteSettings","login_required"]]],[[[1," "],[1,[28,[35,9],["search.or_search_google"],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,9],["search.search_google"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,31],null,[["@searchTerm"],[[30,0,["searchTerm"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1," "],[10,"h3"],[14,0,"search-footer"],[12],[1,"\\n"],[41,[30,0,["model","grouped_search_result","more_full_page_results"]],[[[41,[30,0,["isLastPage"]],[[[1," "],[1,[28,[35,9],["search.more_results"],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,9],["search.no_more_results"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,26],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["model","categories","length"]],[[[1," "],[10,"h4"],[14,0,"category-heading"],[12],[1,"\\n "],[1,[28,[35,9],["search.categories"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","categories"]]],null]],null],null,[[[1," "],[1,[28,[35,35],[[30,1]],[["extraClasses"],["fps-category-item"]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","tags","length"]],[[[1," "],[10,"h4"],[14,0,"tag-heading"],[12],[1,"\\n "],[1,[28,[35,9],["search.tags"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"tag-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","tags"]]],null]],null],null,[[[1," "],[10,0],[14,0,"fps-tag-item"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["url"]]],[12],[1,"\\n "],[1,[30,2,["id"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","users"]],[[[1," "],[10,0],[14,0,"user-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","users"]]],null]],null],null,[[[1," "],[8,[39,36],[[24,0,"fps-user-item"]],[["@user"],[[30,3]]],[["default"],[[[[1,"\\n "],[1,[28,[35,37],[[30,3]],[["imageSize"],["large"]]]],[1,"\\n\\n "],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[30,3,["name"]],[[[1," "],[10,1],[14,0,"name"],[12],[1,"\\n "],[1,[30,3,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n "],[1,[30,3,["username"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["searchActive"]],[[[1," "],[10,"h3"],[12],[1,[28,[35,9],["search.no_results"],null]],[13],[1,"\\n"]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]]],[1," "],[8,[39,4],null,[["@name","@outletArgs"],["full-page-search-below-results",[28,[37,5],null,[["canLoadMore"],[[30,0,["canLoadMore"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13]],["category","tag","user"],false,["if","hide-application-footer","body-class","section","plugin-outlet","hash","div","h1","html-safe","i18n","search-text-field","action","combo-box","fn","mut","d-button","label","input","readonly","search-advanced-options","topic-list/topic-bulk-select-dropdown","span","loading-spinner","load-more","or","search-result-entries","conditional-loading-spinner","unless","h3","a","on","google-search","h4","each","-track-array","category-link","user-link","avatar"]]',moduleName:"discourse/templates/full-page-search.hbs",isStrictMode:!1})},61889:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"U9LDQSnr",block:'[[[8,[39,0],null,[["@posts","@titlePath","@fetchMorePosts","@emptyText"],[[30,0,["model"]],"topic_html_title",[30,0,["fetchMorePosts"]],[28,[37,1],["groups.empty.posts"],null]]],null]],[],false,["post-list","i18n"]]',moduleName:"discourse/templates/group-activity-posts.hbs",isStrictMode:!1})},43242:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"O/nvKT0F",block:'[[[8,[39,0],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list tr",[28,[37,1],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@topicList","@showPosters"],[[30,0,["model"]],true]],null],[1,"\\n "],[8,[39,3],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],[],false,["load-more","action","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-topics.hbs",isStrictMode:!1})},88270:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"AO4Dz1cj",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[8,[39,5],[[24,0,"btn-default bulk-select"]],[["@icon","@action","@title"],["list",[30,0,["toggleBulkSelect"]],"topics.bulk.toggle"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1," "],[8,[39,6],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey","@autocomplete"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]],"off"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1," "],[10,1],[14,0,"bulk-select-buttons-wrap"],[12],[1,"\\n"],[41,[30,0,["bulkSelection"]],[[[1," "],[8,[39,8],null,[["@bulkSelection","@canAdminGroup","@canEditGroup","@onChange"],[[30,0,["bulkSelection"]],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,9],[[30,0],"actOnSelection",[30,0,["bulkSelection"]]],null]]],null],[1,"\\n\\n "],[8,[39,5],[[24,0,"bulk-select-clear"]],[["@action","@label","@icon"],[[30,0,["bulkClearAll"]],"topics.bulk.clear_all","far-square"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"bulk-select-all"]],[["@action","@label","@icon"],[[30,0,["bulkSelectAll"]],"topics.bulk.select_all","square-check"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-members-manage"],[12],[1,"\\n "],[8,[39,5],[[24,0,"btn-default group-members-add"]],[["@icon","@action","@label"],["plus",[28,[37,10],["showAddMembersModal"],null],"groups.manage.add_members"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[8,[39,5],[[24,0,"btn-default group-members-invite"]],[["@icon","@action","@label"],["plus",[28,[37,10],["showInviteModal"],null],"groups.manage.invite_members"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasMembers"]],[[[1," "],[8,[39,11],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,9],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@className"],[[29,["group-members\\n ",[52,[30,0,["isBulk"]],"sticky-header",""],"\\n ",[52,[30,0,["canManageGroup"]],"group-members--can-manage",""]]]]],[["header","body"],[[[[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--username username"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic","@colspan"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true,"2"]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--can-manage"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["group-index-table-header-after-username",[28,[37,16],null,[["group","asc","order"],[[30,0,["model"]],[30,0,["asc"]],[30,0,["order"]]]]]]],null],[1,"\\n\\n "],[8,[39,14],[[24,0,"directory-table__column-header--added"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"added_at","groups.member_added",true]],null],[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--last-posted"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"last_posted_at","last_post",true]],null],[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--last-seen"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"last_seen_at","last_seen",true]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--member-settings"],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[42,[28,[37,19],[[28,[37,19],[[30,0,["model","members"]]],null]],null],null,[[[1," "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n "],[10,0],[14,0,"directory-table__cell directory-table__cell--username group-member"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1," "],[8,[39,20],[[24,0,"bulk-select"],[4,[38,21],["click",[28,[37,9],[[30,0],"selectMember",[30,1]],null]],null]],[["@type"],["checkbox"]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[8,[39,22],null,[["@user","@skipName","@showStatus","@showStatusTooltip"],[[30,1],[30,0,["skipName"]],true,true]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__cell directory-table__cell--can-manage group-owner"],[12],[1,"\\n"],[41,[28,[37,1],[[30,1,["owner"]],[30,1,["primary"]]],null],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["groups.members.status"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n"],[41,[30,1,["owner"]],[[[1," "],[1,[28,[35,24],["shield-halved"],null]],[1,"\\n "],[1,[28,[35,23],["groups.members.owner"],null]],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,1,["primary"]],[[[1," "],[1,[28,[35,23],["groups.members.primary"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["group-index-table-row-after-username",[28,[37,16],null,[["member"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"directory-table__cell directory-table__cell--added"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["groups.member_added"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["added_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_posted_at"]]],"--empty"],"\\n directory-table__cell--last-posted"]]],[12],[1,"\\n"],[41,[30,1,["last_posted_at"]],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["last_post"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["last_posted_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_seen_at"]]],"--empty"],"\\n directory-table__cell--last-seen"]]],[12],[1,"\\n"],[41,[30,1,["last_seen_at"]],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["last_seen"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["last_seen_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__cell directory-table__cell--member-settings member-settings"],[12],[1,"\\n "],[8,[39,28],null,[["@member","@canAdminGroup","@canEditGroup","@onChange"],[[30,1],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,9],[[30,0],"actOnGroup",[30,1]],null]]],null],[1,"\\n"],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,29],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,"br"],[12],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,23],[[30,0,["emptyMessageKey"]]],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","section","div","d-button","text-field","span","bulk-group-member-dropdown","action","route-action","load-more","responsive-table",":header","table-header-toggle","plugin-outlet","hash",":body","each","-track-array","input","on","user-info","i18n","d-icon","br","bound-date","unless","group-member-dropdown","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-index.hbs",isStrictMode:!1})},62086:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"RmADyVt/",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n "],[8,[39,5],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasRequesters"]],[[[1," "],[8,[39,6],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,7],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,8],null,[["@className"],["group-members group-members__requests"]],[["header","body"],[[[[1,"\\n "],[8,[39,10],[[24,0,"username"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true]],null],[1,"\\n "],[8,[39,10],null,[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"requested_at","groups.member_requested",true]],null],[1,"\\n "],[10,0],[14,0,"directory-table__column-header group-request-reason__column-header"],[12],[1,[28,[35,11],["groups.requests.reason"],null]],[13],[1,"\\n "],[10,0],[14,0,"directory-table__column-header"],[12],[13],[1,"\\n "]],[]],[[[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["model","requesters"]]],null]],null],null,[[[1," "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-member"],[12],[1,"\\n "],[8,[39,15],null,[["@user","@skipName"],[[30,1],[30,0,["skipName"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["groups.member_requested"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,17],[[30,1,["requested_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-request-reason__content"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["groups.requests.reason"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[30,1,["reason"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-accept-deny-buttons"],[12],[1,"\\n"],[41,[30,1,["request_undone"]],[[[1," "],[1,[28,[35,11],["groups.requests.undone"],null]],[1,"\\n"]],[]],[[[41,[30,1,["request_accepted"]],[[[1," "],[1,[28,[35,11],["groups.requests.accepted"],null]],[1,"\\n "],[8,[39,18],null,[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"undoAcceptRequest"],null],[30,1]],null],"groups.requests.undo"]],null],[1,"\\n"]],[]],[[[41,[30,1,["request_denied"]],[[[1," "],[1,[28,[35,11],["groups.requests.denied"],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,18],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"acceptRequest"],null],[30,1]],null],"groups.requests.accept"]],null],[1,"\\n "],[8,[39,18],[[24,0,"btn-danger"]],[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"denyRequest"],null],[30,1]],null],"groups.requests.deny"]],null],[1,"\\n "]],[]]]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,20],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,[28,[35,11],["groups.empty.requests"],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","section","div","text-field","load-more","action","responsive-table",":header","table-header-toggle","i18n",":body","each","-track-array","user-info","span","bound-date","d-button","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-requests.hbs",isStrictMode:!1})},31033:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"WuV37JqC",block:'[[[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["before-group-container","div",[28,[37,2],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["container group group-",[30,0,["model","name"]]]]],[12],[1,"\\n"],[41,[30,0,["showTooltip"]],[[[1," "],[10,0],[14,0,"group-delete-tooltip"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,6],["admin.groups.delete_automatic_group"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-details-container"],[12],[1,"\\n "],[10,0],[14,0,"group-info"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]],[30,0,["model","flair_bg_color"]]],null],[[[1," "],[10,0],[14,0,"group-avatar-flair"],[12],[1,"\\n "],[8,[39,8],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[28,[37,7],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]]],null],[30,0,["model","flair_bg_color"]],[30,0,["model","flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-info-names"],[12],[1,"\\n "],[8,[39,9],null,[["@group"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[41,[28,[37,10],[[30,0,["canManageGroup"]],[30,0,["model","automatic"]]],null],[[[1," "],[8,[39,11],[[24,0,"group-automatic-tooltip"]],null,[["trigger","content"],[[[[1,"\\n "],[1,[28,[35,13],["gear"],null]],[1,"\\n "],[1,[28,[35,6],["admin.groups.manage.membership.automatic"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[1,[28,[35,6],["admin.groups.manage.membership.automatic_tooltip"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-details-button"],[12],[1,"\\n "],[8,[39,15],null,[["@tagName","@model","@showLogin"],["",[30,0,["model"]],[28,[37,16],["showLogin"],null]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","admin"]],[[[41,[30,0,["model","automatic"]],[[[1," "],[8,[39,17],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,0,["toggleDeleteTooltip"]],"circle-question","admin.groups.delete"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,17],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,0,["destroyGroup"]],[30,0,["destroying"]],"trash-can","admin.groups.delete"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["displayGroupMessageButton"]],[[[1," "],[8,[39,17],[[24,0,"btn-primary group-message-button"]],[["@action","@icon","@label"],[[30,0,["messageGroup"]],"envelope","groups.message"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["group-details-after","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","bio_cooked"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"group-bio"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,19],[[30,0,["model","bio_cooked"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"user-content-wrapper"],[12],[1,"\\n "],[10,"section"],[14,0,"user-primary-navigation"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,21],null,[["@group","@currentPath","@tabs"],[[30,0,["model"]],[30,0,["currentPath"]],[30,0,["tabs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[46,[28,[37,23],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["span","plugin-outlet","hash","div","if","p","i18n","or","avatar-flair","group-info","and","d-tooltip",":trigger","d-icon",":content","group-membership-button","route-action","d-button","hr","html-safe","section","group-navigation","component","-outlet"]]',moduleName:"discourse/templates/group.hbs",isStrictMode:!1})},7773:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"halkZcVe",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1," "],[8,[39,3],null,[["@filter","@categoryId"],["posts",[30,0,["category_id"]]]],null],[1,"\\n "],[8,[39,3],null,[["@filter","@categoryId"],["topics",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[8,[39,3],null,[["@filter","@categoryId"],["mentions",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,4],null,[["@name","@connectorTagName"],["group-activity-bottom","li"]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],[],false,["section","mobile-nav","if","group-activity-filter","plugin-outlet","component","-outlet"]]',moduleName:"discourse/templates/group/activity.hbs",isStrictMode:!1})},37487:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"51+b4n8U",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,5],null,[["@route","@model"],[[30,1,["route"]],[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],[[30,1,["title"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,8],null,null],null,null,null],[1,"\\n"],[13]],["tab"],false,["section","mobile-nav","each","-track-array","li","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/manage.hbs",isStrictMode:!1})},48128:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"JVP7FOr2",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["groups.manage.categories.long_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,3],["groups.manage.categories.description"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","watchingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.watched_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-tracking"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","trackingCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","trackingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.tracked_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingFirstPostCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","watchingFirstPostCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.watching_first_post_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-regular"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","regularCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","regularCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.regular_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-muted"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","mutedCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","mutedCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.muted_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","div","label","i18n","d-icon","category-selector","fn","mut","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/categories.hbs",isStrictMode:!1})},85218:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"RpCq8iTK",block:'[[[8,[39,0],null,[["@group"],[[30,0,["model"]]]],null]],[],false,["group-manage-email-settings"]]',moduleName:"discourse/templates/group/manage/email.hbs",isStrictMode:!1})},19702:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"jIJeM4bE",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-interaction-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/interaction.hbs",isStrictMode:!1})},5293:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"CNDT3wNv",block:'[[[41,[51,[30,0,["model","all_loaded"]]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","logs"]],[[[1," "],[10,0],[14,0,"group-manage-logs-controls"],[12],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","action"]],"action"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","acting_user"]],"acting_user"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","target_user"]],"target_user"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","subject"]],"subject"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,6],null,[["@selector","@action"],[".group-manage-logs .group-manage-logs-row",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"group-manage-logs"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.action"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.acting_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.target_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.subject"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.when"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","logs"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@log","@filters"],[[30,1],[30,0,["filters"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,15],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,[28,[35,10],["groups.empty.logs"],null]],[13],[1,"\\n"]],[]]]],["logItem"],false,["unless","hide-application-footer","if","div","group-manage-logs-filter","action","load-more","table","thead","th","i18n","tbody","each","-track-array","group-manage-logs-row","conditional-loading-spinner"]]',moduleName:"discourse/templates/group/manage/logs.hbs",isStrictMode:!1})},91564:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"Q0K2JW+D",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-membership-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/membership.hbs",isStrictMode:!1})},44421:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"o68/+VTU",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model","@saving"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-profile-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/profile.hbs",isStrictMode:!1})},34135:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"dmBqLStz",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["before-manage-group-tags","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,5],["groups.manage.tags.long_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,5],["groups.manage.tags.description"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-watching"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.watched_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-tracking"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","tracking_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.tracked_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_first_post_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.watching_first_post_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-regular"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","regular_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.regular_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-muted"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","muted_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.muted_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","plugin-outlet","hash","div","label","i18n","d-icon","tag-chooser","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/tags.hbs",isStrictMode:!1})},90042:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"jHptY/B/",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"messages-nav"]],[["@desktopClass"],["nav-stacked action-list"]],[["default"],[[[[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route","@model"],["group.messages.inbox",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user.messages.inbox"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route","@model"],["group.messages.archive",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user.messages.archive"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],[],false,["section","mobile-nav","li","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/messages.hbs",isStrictMode:!1})},61300:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"mcHemRbt",block:'[[[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n"],[41,[30,0,["model","permissions"]],[[[1," "],[10,"label"],[14,0,"group-category-permissions-desc"],[12],[1,"\\n "],[1,[28,[35,3],["groups.permissions.description"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"table"],[14,0,"group-category-permissions"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["model","permissions"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[30,1,["description"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["groups.permissions.none"],null]],[1,"\\n"]],[]]],[13]],["permission"],false,["section","if","label","i18n","table","tbody","each","-track-array","tr","td","category-link"]]',moduleName:"discourse/templates/group/permissions.hbs",isStrictMode:!1})},80231:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"qVmfxoni",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["groups","canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,3],["groups-page"],null]],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["before-groups-index-container","div"]],null],[1,"\\n\\n"],[10,"section"],[14,0,"container groups-index"],[12],[1,"\\n "],[10,0],[14,0,"groups-header"],[12],[1,"\\n"],[41,[30,0,["currentUser","can_create_group"]],[[[1," "],[8,[39,7],[[24,0,"btn-default groups-header-new pull-right"]],[["@action","@icon","@label"],[[30,0,["new"]],"plus","admin.groups.new.title"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"groups-header-filters"],[12],[1,"\\n "],[8,[39,8],[[16,"placeholder",[28,[37,9],["groups.index.all"],null]],[24,0,"groups-header-filters-name no-blur"],[16,"aria-description",[28,[37,9],["groups.index.search_results"],null]],[4,[38,11],["input",[28,[37,12],[[30,0,["onFilterChanged"]]],null]],null]],[["@value","@type"],[[28,[37,10],[[30,0,["filter"]]],null],"search"]],null],[1,"\\n\\n "],[8,[39,13],[[24,0,"groups-header-filters-type"]],[["@value","@content","@onChange","@options"],[[30,0,["type"]],[30,0,["types"]],[28,[37,14],[[28,[37,15],[[30,0,["type"]]],null]],null],[28,[37,16],null,[["clearable","none"],[true,"groups.index.filter"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["groups"]],[[[1," "],[8,[39,17],null,[["@selector","@action"],[".groups-boxes .group-box",[28,[37,18],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"groups-boxes"],[12],[1,"\\n"],[42,[28,[37,20],[[28,[37,20],[[30,0,["groups"]]],null]],null],null,[[[1," "],[8,[39,21],[[24,0,"group-box"],[16,"data-group-name",[30,1,["name"]]]],[["@route","@model"],["group.members",[30,1,["name"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"group-box-inner"],[12],[1,"\\n "],[10,0],[14,0,"group-info-wrapper"],[12],[1,"\\n"],[41,[30,1,["flair_url"]],[[[1," "],[10,1],[14,0,"group-avatar-flair"],[12],[1,"\\n "],[8,[39,23],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flair_url"]],[30,1,["flair_bg_color"]],[30,1,["flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"group-info"],[12],[1,"\\n "],[8,[39,24],null,[["@group"],[[30,1]]],null],[1,"\\n "],[10,0],[14,0,"group-user-count"],[12],[1,[28,[35,25],["user"],null]],[1,[30,1,["user_count"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-description"],[12],[1,[28,[35,26],[[30,1,["bio_excerpt"]]],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"group-membership"],[12],[1,"\\n "],[8,[39,27],null,[["@tagName","@model","@showLogin"],["",[30,1],[28,[37,28],["showLogin"],null]]],[["default"],[[[[1,"\\n"],[41,[30,1,["is_group_owner"]],[[[1," "],[10,1],[14,0,"is-group-owner"],[12],[1,"\\n "],[1,[28,[35,25],["shield-halved"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.is_group_owner"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,1,["is_group_user"]],[[[1," "],[10,1],[14,0,"is-group-member"],[12],[1,"\\n "],[1,[28,[35,25],["check"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.is_group_user"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,1,["public_admission"]],[[[1," "],[1,[28,[35,9],["groups.index.public"],null]],[1,"\\n"]],[]],[[[41,[30,1,["isPrivate"]],[[[1," "],[1,[28,[35,25],["far-eye-slash"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.private"],null]],[1,"\\n"]],[]],[[[41,[30,1,["automatic"]],[[[1," "],[1,[28,[35,9],["groups.index.automatic"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,25],["ban"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.closed"],null]],[1,"\\n"]],[]]],[1," "]],[]]]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["group-index-box-after","div",[28,[37,16],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,29],null,[["@condition"],[[30,0,["groups","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,2],[14,"role","status"],[12],[1,[28,[35,9],["groups.index.empty"],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["after-groups-index-container","div"]],null]],["group"],false,["if","or","hide-application-footer","body-class","plugin-outlet","section","div","d-button","input","i18n","readonly","on","with-event-value","combo-box","fn","mut","hash","load-more","action","each","-track-array","link-to","span","avatar-flair","group-info","d-icon","html-safe","group-membership-button","route-action","conditional-loading-spinner","p"]]',moduleName:"discourse/templates/groups/index.hbs",isStrictMode:!1})},37337:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"VR+MxxiY",block:'[[[1,[28,[35,0],["groups-new-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h1"],[12],[1,[28,[35,3],["admin.groups.new.title"],null]],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,6],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","owner-selector"],[12],[1,[28,[35,3],["admin.groups.add_owners"],null]],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["owner-selector",[30,0,["splitOwnerUsernames"]],[28,[37,10],[[30,0],"updateOwnerUsernames"],null],[28,[37,11],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","member-selector"],[12],[1,[28,[35,3],["groups.members.title"],null]],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["member-selector",[30,0,["splitUsernames"]],[28,[37,10],[[30,0],"updateUsernames"],null],[28,[37,11],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,12],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n "],[8,[39,14],[[24,0,"btn-primary group-form-save"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["saving"]],"admin.groups.new.create"]],null],[1,"\\n\\n "],[8,[39,15],null,[["@route"],["groups"]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","h1","i18n","hr","form","groups-form-profile-fields","div","label","email-group-user-chooser","action","hash","groups-form-membership-fields","groups-form-interaction-fields","d-button","link-to"]]',moduleName:"discourse/templates/groups/new.hbs",isStrictMode:!1})},48662:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"4/3+QeFR",block:"[[],[],false,[]]",moduleName:"discourse/templates/hide-modal.hbs",isStrictMode:!1})},31034:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"dFjK5FDi",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/invites.hbs",isStrictMode:!1})},37836:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"fI371j+2",block:'[[[1,[28,[35,0],["invite-page"],null]],[1,"\\n"],[1,[28,[35,1],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,2]],[1,"\\n"],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container invites-show clearfix"],[12],[1,"\\n"],[41,[51,[28,[37,6],[[30,0,["externalAuthsOnly"]],[30,0,["existingUserId"]]],null]],[[[1," "],[8,[39,7],null,[["@step"],[[52,[30,0,["successMessage"]],"activate","signup"]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@header"],[[30,0,["welcomeTitle"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[52,[30,0,["successMessage"]],"invite-success","invite-form"]],[12],[1,"\\n "],[10,0],[14,0,"col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,0],[14,0,"success-info"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,11],[[30,0,["successMessage"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"invited-by"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,12],["invites.invited_by"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,13],null,[["@user"],[[30,0,["invitedBy"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,2],[14,0,"create-account-associate-link"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["associateHtml"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["isInviteLink"]]],[[[1," "],[10,2],[14,0,"email-message"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["yourEmailMessage"]]],null]],[1,"\\n"],[41,[30,0,["showSocialLoginAvailable"]],[[[1," "],[1,[28,[35,12],["invites.social_login_available"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["externalAuthsOnly"]],[[[41,[30,0,["authOptions"]],[[[41,[51,[30,0,["isInviteLink"]]],[[[1," "],[8,[39,14],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,15],null,[["@externalLogin","@context"],[[28,[37,16],[[30,0],"externalLogin"],null],"invite"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["discourseConnectEnabled"]],[[[1," "],[10,3],[14,0,"btn btn-primary discourse-connect raw-link"],[15,6,[30,0,["ssoPath"]]],[12],[1,"\\n "],[1,[28,[35,12],["continue"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldDisplayForm"]],[[[1," "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["isInviteLink"]],[[[1," "],[10,0],[14,0,"input email-input input-group"],[12],[1,"\\n "],[8,[39,19],[[24,1,"new-account-email"],[24,3,"email"],[16,0,[28,[37,20],[[30,0,["email"]]],null]],[24,"autofocus","autofocus"],[16,"disabled",[30,0,["externalAuthsOnly"]]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["email"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,12],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,14],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"],[41,[51,[30,0,["emailValidation","reason"]]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,12],["user.email.instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input username-input input-group"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["accountUsername"]]],[16,0,[28,[37,20],[[30,0,["accountUsername"]]],null]],[24,1,"new-account-username"],[24,3,"username"],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"autocomplete","off"],[24,4,"text"],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,21],["input",[30,0,["setAccountUsername"]]],null],[12],[13],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,12],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,14],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[37,23],[[30,0,["showFullname"]],[30,0,["fullnameRequired"]]],null],[[[1," "],[8,[39,24],[[24,0,"input name-input input-group name-required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["externalAuthsOnly"]]],[[[1," "],[10,0],[14,0,"input password-input input-group"],[12],[1,"\\n "],[8,[39,25],[[24,"autocomplete","new-password"],[24,1,"new-account-password"],[16,0,[28,[37,20],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,12],["invites.password_label"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,26],null,[["@maskPassword","@togglePasswordMask","@parentController"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]],"invites-show"]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n "],[8,[39,14],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n "],[10,0],[15,0,[29,["caps-lock-warning\\n ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,27],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,12],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,23],[[30,0,["showFullname"]],[28,[37,28],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,24],[[24,0,"input name-input input-group"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,30],[[28,[37,30],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,31],[[16,0,[28,[37,20],[[30,1,["value"]]],null]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"invitation-cta"],[12],[1,"\\n "],[8,[39,32],[[24,0,"btn-primary invitation-cta__accept"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,16],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n "],[10,0],[14,0,"invitation-cta__info"],[12],[1,"\\n "],[10,1],[14,0,"invitation-cta__signed-up"],[12],[1,[28,[35,12],["login.previous_sign_up"],null]],[13],[1,"\\n "],[8,[39,32],[[24,0,"btn-flat invitation-cta__sign-in"]],[["@action","@label"],[[28,[37,34],["showLogin"],null],"log_in"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,"br"],[12],[13],[10,"br"],[12],[13],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["existingUserRedeeming"]],[[[41,[30,0,["existingUserCanRedeem"]],[[[1," "],[8,[39,32],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,16],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["existingUserCanRedeemError"]]],[13],[1,"\\n"]],[]]]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["f"],false,["body-class","hide-application-header-buttons","hide-application-sidebar","section","div","unless","or","signup-progress-bar","if","welcome-header","p","html-safe","i18n","user-info","input-tip","login-buttons","action","a","form","input","value-entered","on","label","and","fullname-input","password-field","toggle-password-mask","d-icon","not","each","-track-array","user-field","d-button","span","route-action","br"]]',moduleName:"discourse/templates/invites/show.hbs",isStrictMode:!1})},50640:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"6zFUKqed",block:'[[[1,[35,0]],[1,"\\n"],[1,[35,1]]],[],false,["loading-spinner","hide-application-footer"]]',moduleName:"discourse/templates/loading.hbs",isStrictMode:!1})},29566:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"KYZLNuoR",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["login.to_continue"],null]],[13],[1,"\\n\\n "],[10,2],[14,5,"margin-top: 1em"],[12],[1,[28,[35,2],["login.preferences"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,5],["showLogin"],null],"log_in"]],null],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","d-button","route-action"]]',moduleName:"discourse/templates/login-preferences.hbs",isStrictMode:!1})},92383:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"uK4W1HGW",block:'[[[41,[28,[37,1],[[30,0,["siteSettings","full_page_login"]],[28,[37,2],[[30,0,["showLogin"]],[28,[37,3],[[30,0,["siteSettings","login_required"]]],null]],null]],null],[[[1," "],[1,[28,[35,4],["search","login","signup","menu"],null]],[1,"\\n "],[1,[35,5]],[1,"\\n "],[1,[28,[35,6],["login-page"],null]],[1,"\\n "],[10,0],[14,0,"login-fullpage"],[12],[1,"\\n "],[8,[39,8],null,[["@flash","@type"],[[30,0,["flash"]],[30,0,["flashType"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,9],["login-body",[30,0,["bodyClasses"]]],null]],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n\\n"],[41,[30,0,["hasNoLoginOptions"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n "],[10,0],[14,0,"login-welcome-header no-login-methods-configured"],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,12],["login.no_login_methods.title"],null]],[13],[1,"\\n "],[10,"img"],[12],[13],[1,"\\n "],[10,2],[14,0,"login-subheader"],[12],[1,"\\n "],[1,[28,[35,15],[[28,[37,12],["login.no_login_methods.description",[28,[37,16],null,[["adminLoginPath"],[[30,0,["adminLoginPath"]]]]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,16],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1," "],[8,[39,18],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,16],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[39,19],null,[["@loginName","@loginNameChanged","@canLoginLocalWithEmail","@canUsePasskeys","@passkeyLogin","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@showSecurityKey","@otherMethodAllowed","@showSecondFactor","@handleForgotPassword","@login","@flashChanged","@flashTypeChanged","@securityKeyCredentialChanged"],[[30,0,["loginName"]],[30,0,["loginNameChanged"]],[30,0,["canLoginLocalWithEmail"]],[30,0,["canUsePasskeys"]],[30,0,["passkeyLogin"]],[30,0,["loginPassword"]],[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["totpEnabled"]],[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["otherMethodAllowed"]],[30,0,["showSecondFactor"]],[30,0,["handleForgotPassword"]],[30,0,["triggerLogin"]],[30,0,["flashChanged"]],[30,0,["flashTypeChanged"]],[30,0,["securityKeyCredentialChanged"]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,20],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,0,["showLoginButtons"]],[30,0,["site","desktopView"]]],null],[[[41,[51,[30,0,["canLoginLocal"]]],[[[1," "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[1," "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,18],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[51,[30,0,["hasNoLoginOptions"]]],[[[1," "],[8,[39,20],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[1,[28,[35,6],["static-login"],null]],[1,"\\n "],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[10,0],[14,0,"login-welcome"],[12],[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["above-login",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,10],null,[["@name"],["above-static"]],null],[1,"\\n\\n "],[10,0],[14,0,"login-content"],[12],[1,"\\n "],[1,[28,[35,15],[[30,0,["model","html"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],null,[["@name"],["below-static"]],null],[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["below-login",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"body-page-button-container"],[12],[1,"\\n"],[41,[30,0,["application","canSignUp"]],[[[1," "],[8,[39,23],[[24,0,"btn-primary sign-up-button"]],[["@action","@label"],[[28,[37,24],["showCreateAccount"],null],"sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary login-button"]],[["@action","@icon","@label"],[[52,[30,0,["shouldTriggerRouteAction"]],[28,[37,24],["showLogin"],null],[30,0,["showFullPageLogin"]]],"user","log_in"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[],false,["if","and","or","not","hide-application-header-buttons","hide-application-sidebar","body-class","div","flash-message","concat-class","plugin-outlet","h1","i18n","img","p","html-safe","hash","welcome-header","login-buttons","local-login-form","login-page-cta","unless","section","d-button","route-action"]]',moduleName:"discourse/templates/login.hbs",isStrictMode:!1})},71335:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"n/VVzRBv",block:'[[[1,[28,[35,0],["password-reset-page"],null]],[1,"\\n"],[1,[35,1]],[1,"\\n"],[1,[28,[35,2],["search","login","signup","menu"],null]],[1,"\\n"],[10,0],[14,0,"container password-reset clearfix"],[12],[1,"\\n "],[10,"form"],[14,0,"change-password-form login-left-side"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,2],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n\\n"],[41,[30,0,["requiresApproval"]],[[[1," "],[10,2],[12],[1,[28,[35,7],["login.not_approved"],null]],[13],[1,"\\n"]],[]],[[[41,[51,[30,0,["redirected"]]],[[[1," "],[11,3],[24,0,"btn"],[16,6,[30,0,["redirectHref"]]],[4,[38,10],["click",[30,0,["done"]]],null],[12],[1,[30,0,["continueButtonText"]]],[13],[1,"\\n"]],[]],null]],[]]]],[]],[[[41,[30,0,["securityKeyOrSecondFactorRequired"]],[[[1," "],[10,"h2"],[12],[1,[28,[35,7],["user.change_password.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,7],["user.change_password.verify_identity"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySecurityKeyForm"]],[[[1," "],[8,[39,13],null,[["@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,14],[[28,[37,15],[[30,0,["selectedSecondFactorMethod"]]],null]],null],[30,0,["backupEnabled"]],[30,0,["secondFactorRequired"]],[30,0,["otherMethodAllowed"]],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,16],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,0,["selectedSecondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["secondFactorRequired"]],false]],[["default"],[[[[1,"\\n "],[8,[39,17],[[16,2,[30,0,["secondFactorToken"]]],[24,1,"second-factor"],[4,[38,10],["input",[28,[37,18],[[28,[37,14],[[28,[37,15],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["selectedSecondFactorMethod"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["displaySecurityKeyForm"]]],[[[1," "],[8,[39,19],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,20],[[30,0],"submit"],null],"submit"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,"h2"],[12],[1,[28,[35,7],["user.change_password.choose_new"],null]],[13],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input"],[12],[1,"\\n "],[8,[39,21],[[24,"autofocus","autofocus"],[24,"autocomplete","new-password"],[24,1,"new-account-password"],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,10],["focusout",[30,0,["togglePasswordValidation"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,0],[14,0,"change-password__password-info"],[12],[1,"\\n "],[10,0],[14,0,"change-password_tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,22],null,[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,23],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,7],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,24],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,19],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,20],[[30,0],"submit"],null],"user.change_password.set_password"]],null],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n"],[13]],[],false,["body-class","hide-application-sidebar","hide-application-header-buttons","div","form","if","p","i18n","unless","a","on","h2","br","security-key-form","fn","mut","second-factor-form","second-factor-input","with-event-value","d-button","action","password-field","input-tip","d-icon","toggle-password-mask"]]',moduleName:"discourse/templates/password-reset.hbs",isStrictMode:!1})},42561:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"fBTUoEBV",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference"],[12],[1,"\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["success"]],[[[1," "],[10,0],[14,0,"alert alert-success"],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n "],[8,[39,5],[[24,0,"success-back"]],[["@route"],["preferences.account"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["arrow-left"],null]],[1,"\\n "],[1,[28,[35,7],["user.change_email.back_to_preferences"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["new"]],"user.add_email.title","user.change_email.title"]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@id","@classNames","@autofocus"],[[30,0,["newEmail"]],"change-email","input-xxlarge","autofocus"]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1," "],[1,[28,[35,7],["user.change_email.taken"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["user.email.instructions"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,10],null,[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls save-button"],[12],[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[28,[37,12],[[30,0],"saveEmail"],null],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n "],[8,[39,5],[[24,0,"cancel"]],[["@route","@model"],["preferences.account",[30,0,["model","username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13]],[],false,["body-class","section","form","if","div","link-to","d-icon","i18n","label","text-field","input-tip","d-button","action"]]',moduleName:"discourse/templates/preferences-email.hbs",isStrictMode:!1})},86669:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"q4Cgppya",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference second-factor"],[12],[1,"\\n "],[8,[39,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["showEnforcedNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,6],["user.second_factor.enforced_notice"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEnforcedWithOAuthNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,6],["user.second_factor.enforced_with_oauth_notice"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayOAuthWarning"]],[[[1," "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,6],["user.second_factor.oauth_enabled_warning"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group totp"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor.totp.title"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["totps"]]],null]],null],null,[[[1," "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,1,["name"]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor.totp.default_name"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,10],null,[["@totp","@editSecondFactor","@disableSingleSecondFactor"],[[30,1],[28,[37,11],[[30,0],"editSecondFactor"],null],[28,[37,11],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,12],[[24,0,"btn-default new-totp"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"createTotp"],null],"plus",[30,0,["loading"]],"user.second_factor.totp.add"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group security-key"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor.security_key.title"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["security_keys"]]],null]],null],null,[[[1," "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,2,["name"]],[[[1," "],[1,[30,2,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor.security_key.default_name"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,13],null,[["@securityKey","@editSecurityKey","@disableSingleSecondFactor"],[[30,2],[28,[37,11],[[30,0],"editSecurityKey"],null],[28,[37,11],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[8,[39,12],[[24,0,"btn-default new-security-key"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"createSecurityKey"],null],"plus",[30,0,["loading"]],"user.second_factor.security_key.add"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group pref-second-factor-backup"],[12],[1,"\\n "],[10,0],[14,0,"controls pref-second-factor-backup"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor_backup.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_enabled"]],[[[1," "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_backup_enabled"]],[[[1," "],[1,[28,[35,14],[[28,[37,6],["user.second_factor_backup.manage"],[["count"],[[30,0,["model","second_factor_remaining_backup_codes"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],[[24,0,"btn-default new-second-factor-backup"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"editSecondFactorBackup"],null],"plus",[30,0,["loading"]],"user.second_factor_backup.enable_long"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[37,15],[[30,0,["model","second_factor_backup_enabled"]],[30,0,["isCurrentUser"]]],null],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,16],null,[["@secondFactorBackupEnabled","@editSecondFactorBackup","@disableSecondFactorBackup"],[[30,0,["model","second_factor_backup_enabled"]],[28,[37,11],[[30,0],"editSecondFactorBackup"],null],[28,[37,11],[[30,0],"disableSecondFactorBackup"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor_backup.enable_prerequisites"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasSecondFactors"]],[[[41,[51,[30,0,["showEnforcedNotice"]]],[[[1," "],[10,0],[14,0,"control-group pref-second-factor-disable-all"],[12],[1,"\\n "],[10,0],[14,0,"controls -actions"],[12],[1,"\\n "],[8,[39,12],[[24,0,"btn-danger"]],[["@icon","@action","@disabled","@label"],["ban",[28,[37,11],[[30,0],"disableAllSecondFactors"],null],[30,0,["loading"]],"user.second_factor.disable_all"]],null],[1,"\\n "],[8,[39,18],[[24,0,"cancel"]],[["@route","@model"],["preferences.security",[30,0,["model","username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["totp","security_key"],false,["body-class","section","conditional-loading-spinner","form","if","div","i18n","h2","each","-track-array","token-based-auth-dropdown","action","d-button","security-key-dropdown","html-safe","and","two-factor-backup-dropdown","unless","link-to"]]',moduleName:"discourse/templates/preferences-second-factor.hbs",isStrictMode:!1})},46882:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"V/ruSD30",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,2],null,[["@ariaLabel"],["User secondary - preferences"]],[["default"],[[[[1,"\\n "],[8,[39,3],[[24,0,"user-nav__preferences-account"]],[["@route","@ariaCurrentContext"],["preferences.account","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.account"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-security"]],[["@route","@ariaCurrentContext"],["preferences.security","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["lock"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.security"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-profile"]],[["@route","@ariaCurrentContext"],["preferences.profile","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.profile"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-emails"]],[["@route","@ariaCurrentContext"],["preferences.emails","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.emails"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-notifications"]],[["@route","@ariaCurrentContext"],["preferences.notifications","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bell"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.notifications"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","can_change_tracking_preferences"]],[[[1," "],[8,[39,3],[[24,0,"user-nav__preferences-tracking"]],[["@route","@ariaCurrentContext"],["preferences.tracking","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["plus"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.tracking"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],[[24,0,"user-nav__preferences-users"]],[["@route","@ariaCurrentContext"],["preferences.users","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["users"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.users"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-interface"]],[["@route","@ariaCurrentContext"],["preferences.interface","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["desktop"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.interface"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-navigation-menu"]],[["@route","@ariaCurrentContext"],["preferences.navigation-menu","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bars"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.navigation_menu"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav-under-interface","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav","li",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences"],[14,1,"user-content"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["above-user-preferences","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","if","plugin-outlet","hash","section","form","component","-outlet"]]',moduleName:"discourse/templates/preferences.hbs",isStrictMode:!1})},36930:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"IXQmaTXh",block:'[[[10,0],[14,0,"control-group pref-username"],[14,"data-setting-name","user-username"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.username.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,0,["model"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","discourse_connect_overrides_avatar"]]],[[[1," "],[10,0],[14,0,"control-group pref-avatar"],[14,"data-setting-name","user-avatar"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,1,"profile-picture"],[12],[1,[28,[35,2],["user.avatar.title"],null]],[13],[1,"\\n "],[10,"input"],[14,1,"user-avatar-uploads"],[15,"data-custom-avatar-upload-id",[30,0,["model","custom_avatar_upload_id"]]],[15,"data-system-avatar-upload-id",[30,0,["model","system_avatar_upload_id"]]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[1," "],[1,[28,[35,6],[[30,0,["model"]],"huge"],null]],[1,"\\n "],[8,[39,7],[[24,1,"edit-avatar"],[24,0,"btn-default pad-left"]],[["@action","@icon"],[[28,[37,8],[[28,[37,9],["showAvatarSelector"],null],[30,0,["model"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[14,0,"control-group pref-email"],[14,"data-setting-name","user-email"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email.title"],null]],[13],[1,"\\n"],[41,[30,0,["model","email"]],[[[41,[30,0,["siteSettings","enable_secondary_emails"]],[[[1," "],[10,0],[14,0,"emails"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["emails"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row email"],[12],[1,"\\n "],[10,0],[14,0,"email-first"],[12],[1,[30,1,["email"]]],[13],[1,"\\n "],[10,0],[14,0,"email-second"],[12],[1,"\\n"],[41,[30,1,["primary"]],[[[1," "],[10,1],[14,0,"primary"],[12],[1,"\\n "],[1,[28,[35,2],["user.email.primary_label"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[51,[30,1,["confirmed"]]],[[[1," "],[10,1],[14,0,"unconfirmed"],[12],[1,"\\n "],[1,[28,[35,2],["user.email.unconfirmed_label"],null]],[1,"\\n "],[13],[1,"\\n •\\n"],[41,[30,1,["resending"]],[[[1," "],[10,1],[12],[1,[28,[35,2],["user.email.resending_label"],null]],[13],[1,"\\n"]],[]],[[[41,[30,1,["resent"]],[[[1," "],[10,1],[12],[1,[28,[35,2],["user.email.resent_label"],null]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"resend-email-confirmation"],[24,4,"button"],[4,[38,15],["click",[28,[37,8],[[30,0,["resendConfirmationEmail"]],[30,1]],null]],null],[12],[1,"\\n "],[1,[28,[35,2],["user.email.resend_label"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1," "],[8,[39,16],null,[["@email","@setPrimaryEmail","@destroyEmail"],[[30,1],[28,[37,17],[[30,0],"setPrimaryEmail"],null],[28,[37,17],[[30,0],"destroyEmail"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canAddEmail"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,18],null,[["@route","@query"],["preferences.email",[28,[37,19],null,[["new"],[1]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,20],["plus"],null]],[1,"\\n "],[1,[28,[35,2],["user.email.add_email"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","email"]]],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1," "],[8,[39,18],[[24,0,"btn btn-default btn-small btn-icon pad-left no-text"]],[["@route"],["preferences.email"]],[["default"],[[[[1,"\\n "],[1,[28,[35,20],["pencil"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["siteSettings","auth_overrides_email"]],[[[1," "],[1,[28,[35,2],["user.email.auth_override_instructions"],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,2],["user.email.instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-default"]],[["@action","@title","@icon","@label"],[[28,[37,8],[[28,[37,9],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canUpdateAssociatedAccounts"]],[[[1," "],[10,0],[14,0,"control-group pref-associated-accounts"],[14,"data-setting-name","user-associated-accounts"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.associated_accounts.title"],null]],[13],[1,"\\n"],[41,[30,0,["associatedAccountsLoaded"]],[[[1," "],[10,"table"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["authProviders"]]],null]],null],null,[[[41,[30,2,["account"]],[[[1," "],[10,"tr"],[15,0,[29,[[28,[37,24],[[30,2,["method","name"]]],null]," account-connected"]]],[12],[1,"\\n "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n "],[10,"td"],[12],[1,[30,2,["account","description"]]],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,2,["method","can_revoke"]],[[[1," "],[8,[39,7],[[24,0,"btn-danger no-text"]],[["@action","@title","@icon","@disabled"],[[28,[37,8],[[28,[37,17],[[30,0],"revokeAccount"],null],[30,2,["account"]]],null],"user.associated_accounts.revoke","trash-can",[28,[37,26],[[30,0,["revoking"]],[30,2,["method","name"]]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"tr"],[15,0,[28,[37,24],[[30,2,["method","name"]]],null]],[12],[1,"\\n "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n "],[10,"td"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,2,["method","can_connect"]],[[[1," "],[8,[39,7],[[24,0,"btn-default"]],[["@action","@label","@icon","@disabled"],[[28,[37,8],[[28,[37,17],[[30,0],"connectAccount"],null],[30,2,["method"]]],null],"user.associated_accounts.connect","plug",[30,0,["disableConnectButtons"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.associated_accounts.not_connected"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],null,[["@action","@title","@icon","@label"],[[28,[37,8],[[28,[37,9],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditName"]],[[[1," "],[10,0],[14,0,"control-group pref-name"],[14,"data-setting-name","user-name"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.name.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_name"]],[[[1," "],[8,[39,27],null,[["@value","@classNames","@maxlength"],[[30,0,["newNameInput"]],"input-xxlarge","255"]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[30,0,["nameInstructions"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[14,0,"control-group pref-title"],[14,"data-setting-name","user-title"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.title.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,28],null,[["@value","@content","@onChange","@options"],[[30,0,["newTitleInput"]],[30,0,["model","availableTitles"]],[28,[37,8],[[28,[37,29],[[30,0,["newTitleInput"]]],null]],null],[28,[37,19],null,[["none"],["user.title.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.title.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectFlair"]],[[[1," "],[10,0],[14,0,"control-group pref-flair"],[14,"data-setting-name","user-flair"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.flair.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,30],null,[["@value","@content","@onChange","@options"],[[30,0,["newFlairGroupId"]],[30,0,["model","availableFlairs"]],[28,[37,8],[[28,[37,29],[[30,0,["newFlairGroupId"]]],null]],null],[28,[37,19],null,[["none"],["user.flair.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.flair.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectUserStatus"]],[[[1," "],[10,0],[14,0,"control-group pref-user-status"],[14,"data-setting-name","user-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.status.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["newStatus"]],[[[1," "],[8,[39,31],null,[["@status","@showDescription"],[[30,0,["newStatus"]],true]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[28,[35,2],["user.status.not_set"],null]],[13],[1,"\\n"]],[]]],[1," "],[8,[39,7],[[24,0,"btn-default btn-small pad-left"]],[["@action","@icon"],[[28,[37,8],[[28,[37,17],[[30,0],"showUserStatusModal"],null],[30,0,["newStatus"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectPrimaryGroup"]],[[[1," "],[10,0],[14,0,"control-group pref-primary-group"],[14,"data-setting-name","user-primary-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.primary_group.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,28],null,[["@value","@content","@options"],[[30,0,["newPrimaryGroupInput"]],[30,0,["model","filteredGroups"]],[28,[37,19],null,[["none"],["user.primary_group.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDownloadPosts"]],[[[1," "],[10,0],[14,0,"control-group pref-data-export"],[14,"data-setting-name","user-data-export"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.download_archive.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-default btn-request-archive"]],[["@action","@label","@icon"],[[28,[37,17],[[30,0],"exportUserArchive"],null],"user.download_archive.button_text","download"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.download_archive.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,32],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-account","div",[28,[37,19],null,[["model","save"],[[30,0,["model"]],[28,[37,17],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,32],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,19],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSaveUser"]],[[[1," "],[8,[39,34],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,17],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","canDeleteAccount"]],[[[1," "],[10,0],[14,0,"control-group delete-account"],[12],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[28,[37,17],[[30,0],"delete"],null],[30,0,["deleteDisabled"]],"trash-can","user.delete_account"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["email","authProvider"],false,["div","label","i18n","username-preference","unless","input","bound-avatar","d-button","fn","route-action","if","each","-track-array","span","button","on","email-dropdown","action","link-to","hash","d-icon","table","tbody","tr","dasherize","td","get","text-field","combo-box","mut","flair-chooser","user-status-message","plugin-outlet","br","save-controls"]]',moduleName:"discourse/templates/preferences/account.hbs",isStrictMode:!1})},51927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"oQ40bif/",block:'[[[8,[39,0],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-apps","div",[28,[37,3],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model"],false,["user-preferences/user-api-keys","span","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/apps.hbs",isStrictMode:!1})},12875:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"8FcNxUR9",block:'[[[8,[39,0],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@save","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSave"]],[[[1," "],[8,[39,3],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["user.no_category_access"],null]],[1,"\\n"]],[]]]],[],false,["user-preferences/categories","action","if","save-controls","i18n"]]',moduleName:"discourse/templates/preferences/categories.hbs",isStrictMode:!1})},48444:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"K3des7M9",block:'[[[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1," "],[10,0],[14,0,"warning-wrap"],[12],[1,"\\n "],[10,0],[14,0,"warning"],[12],[1,[28,[35,3],["user.mailing_list_mode.warning"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[10,0],[14,0,"control-group pref-email-settings"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.email_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-messages-level"],[12],[1,"\\n "],[10,"label"],[14,"for","user-email-messages-level"],[12],[1,[28,[35,3],["user.email_messages_level"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_messages_level"]],"user-email-messages-level",[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_messages_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailMessagesLevelAway"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-level"],[12],[1,"\\n "],[10,"label"],[14,"for","user-email-level"],[12],[1,[28,[35,3],["user.email_level.title"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_level"]],"user-email-level",[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailLevelAway"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-previous-replies"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.email_previous_replies.title"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["previousRepliesOptions"]],[30,0,["model","user_option","email_previous_replies"]],[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_previous_replies"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-email-in-reply-to"]],[["@labelKey","@checked"],["user.email_in_reply_to",[30,0,["model","user_option","email_in_reply_to"]]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails-pref-email-settings","div",[28,[37,11],null,[["model","save"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","disable_digest_emails"]]],[[[1," "],[10,0],[14,0,"control-group pref-activity-summary"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.email_activity_summary"],null]],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-email-digests"]],[["@labelKey","@disabled","@checked"],["user.email_digests.title",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","email_digests"]]]],null],[1,"\\n"],[41,[30,0,["model","user_option","email_digests"]],[[[1," "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-digests-frequency"],[12],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange","@options"],["value",[30,0,["digestFrequencies"]],[30,0,["model","user_option","digest_after_minutes"]],[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","digest_after_minutes"]]],null]],null],[28,[37,11],null,[["filterable"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-include-tl0-in-digests"]],[["@labelKey","@disabled","@checked"],["user.include_tl0_in_digests",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","include_tl0_in_digests"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[1," "],[10,0],[14,0,"control-group pref-mailing-list-mode"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.mailing_list_mode.label"],null]],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-mailing-list-mode-enabled"]],[["@labelKey","@checked"],["user.mailing_list_mode.enabled",[30,0,["model","user_option","mailing_list_mode"]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,13],[[28,[37,3],["user.mailing_list_mode.instructions"],null]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1," "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-mailing-list-mode-options"],[12],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["mailingListModeOptions"]],[30,0,["model","user_option","mailing_list_mode_frequency"]],[28,[37,12],[[30,0],[28,[37,7],[[30,0,["model","user_option","mailing_list_mode_frequency"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails","div",[28,[37,11],null,[["model","save"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,11],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,15],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["unless","if","div","i18n","label","combo-box","fn","mut","preference-checkbox","span","plugin-outlet","hash","action","html-safe","br","save-controls"]]',moduleName:"discourse/templates/preferences/emails.hbs",isStrictMode:!1})},92086:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"Bg6h3WNF",block:'[[[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface-top","div",[28,[37,2],null,[["model","save"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showThemeSelector"]],[[[1," "],[10,0],[14,0,"control-group theme"],[14,"data-setting-name","user-theme"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.theme"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value"],[[30,0,["userSelectableThemes"]],[30,0,["themeId"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["themeIdChanged"]],[[[1," "],[10,2],[14,0,"alert alert-success save-theme-alert"],[12],[1,[28,[35,7],["user.save_to_change_theme"],[["save_text"],[[28,[37,7],["save"],null]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showThemeSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.theme_default_on_all_devices",[30,0,["makeThemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showColorSchemeSelector"]],[[[1," "],[10,"fieldset"],[14,0,"control-group color-scheme"],[14,"data-setting-name","user-color-scheme"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.color_scheme"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"control-subgroup light-color-scheme"],[12],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],["user.color_schemes.regular"],null]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value","@onChange","@options"],[[30,0,["userSelectableColorSchemes"]],[30,0,["selectedColorSchemeId"]],[28,[37,3],[[30,0],"loadColorScheme"],null],[28,[37,2],null,[["translatedNone","autoInsertNoneItem"],[[30,0,["selectedColorSchemeNoneLabel"]],[30,0,["showColorSchemeNoneItem"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"control-subgroup dark-color-scheme"],[12],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],["user.color_schemes.dark"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value","@onChange"],[[30,0,["userSelectableDarkColorSchemes"]],[30,0,["selectedDarkColorSchemeId"]],[28,[37,3],[[30,0],"loadDarkColorScheme"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["previewingColorScheme"]],[[[41,[30,0,["previewingColorScheme"]],[[[1," "],[8,[39,13],[[24,0,"btn-default btn-small undo-preview"]],[["@action","@label","@icon"],[[28,[37,3],[[30,0],"undoColorSchemePreview"],null],"user.color_schemes.undo","arrow-rotate-left"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls color-scheme-checkbox"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.color_scheme_default_on_all_devices",[30,0,["makeColorSchemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,7],["user.color_schemes.dark_instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDarkModeToggle"]],[[[1," "],[10,0],[14,0,"control-group dark-mode"],[14,"data-setting-name","user-dark-mode"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.dark_mode"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.dark_mode_enable",[30,0,["enableDarkMode"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group text-size"],[14,"data-setting-name","user-text-size"],[12],[1,"\\n "],[10,"label"],[14,"for","text-size-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.text_size.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@valueProperty","@content","@value","@onChange"],["text-size-selector","value",[30,0,["textSizes"]],[30,0,["textSize"]],[28,[37,3],[[30,0],"selectTextSize"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showTextSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.text_size_default_on_all_devices",[30,0,["makeTextSizeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_user_locale"]],[[[1," "],[10,0],[14,0,"control-group pref-locale"],[14,"data-setting-name","user-locale"],[12],[1,"\\n "],[10,"label"],[14,"for","locale-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.locale.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@valueProperty","@langProperty","@content","@value","@onChange","@options"],["locale-selector","value","value",[30,0,["availableLocales"]],[30,0,["model","locale"]],[28,[37,14],[[28,[37,15],[[30,0,["model","locale"]]],null]],null],[28,[37,2],null,[["filterable","none"],[true,"user.locale.default"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,7],["user.locale.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group home"],[14,"data-setting-name","user-home"],[12],[1,"\\n "],[10,"label"],[14,"for","home-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.home"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@content","@valueProperty","@value","@onChange"],["home-selector",[30,0,["userSelectableHome"]],"value",[30,0,["homepageId"]],[28,[37,14],[[28,[37,15],[[30,0,["model","user_option","homepage_id"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"fieldset"],[14,0,"control-group other"],[14,"data-setting-name","user-other-settings"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.other_settings"],null]],[13],[1,"\\n\\n "],[8,[39,10],[[24,"data-setting-name","user-external-links"],[24,0,"pref-external-links"]],[["@labelKey","@checked"],["user.external_links_in_new_tab",[30,0,["model","user_option","external_links_in_new_tab"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-quoting"],[24,0,"pref-enable-quoting"]],[["@labelKey","@checked"],["user.enable_quoting",[30,0,["model","user_option","enable_quoting"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-smart-lists"],[24,0,"pref-enable-smart-lists"]],[["@labelKey","@checked"],["user.enable_smart_lists",[30,0,["model","user_option","enable_smart_lists"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-defer"],[24,0,"pref-defer-unread"]],[["@labelKey","@checked"],["user.enable_defer",[30,0,["model","user_option","enable_defer"]]]],null],[1,"\\n"],[41,[30,0,["siteSettings","automatically_unpin_topics"]],[[[1," "],[8,[39,10],[[24,"data-setting-name","user-auto-unpin"],[24,0,"pref-auto-unpin"]],[["@labelKey","@checked"],["user.automatically_unpin_topics",[30,0,["model","user_option","automatically_unpin_topics"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],[[24,"data-setting-name","user-dynamic-favicon"],[24,0,"pref-dynamic-favicon"]],[["@labelKey","@checked"],["user.dynamic_favicon",[30,0,["model","user_option","dynamic_favicon"]]]],null],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown pref-page-title"],[14,"data-setting-name","user-page-title"],[12],[1,"\\n "],[10,"label"],[14,"for","user-title-count-mode"],[12],[1,[28,[35,7],["user.title_count_mode.title"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["titleCountModes"]],[30,0,["model","user_option","title_count_mode"]],"user-title-count-mode",[28,[37,14],[[28,[37,15],[[30,0,["model","user_option","title_count_mode"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown pref-bookmark-after-notification"],[14,"data-setting-name","user-bookmark-after-notification"],[12],[1,"\\n "],[10,"label"],[14,"for","bookmark-after-notification-mode"],[12],[1,[28,[35,7],["user.bookmark_after_notification.title"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["bookmarkAfterNotificationModes"]],[30,0,["model","user_option","bookmark_auto_delete_preference"]],"bookmark-after-notification-mode",[28,[37,3],[[30,0],[28,[37,15],[[30,0,["model","user_option","bookmark_auto_delete_preference"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-new-user-tips"],[24,0,"pref-new-user-tips"]],[["@labelKey","@checked"],["user.skip_new_user_tips.description",[30,0,["model","user_option","skip_new_user_tips"]]]],null],[1,"\\n"],[41,[30,0,["site","user_tips"]],[[[1," "],[8,[39,13],[[24,"data-setting-name","user-reset-seen-user-tips"],[24,0,"btn-default pref-reset-seen-user-tips"]],[["@action"],[[28,[37,3],[[30,0],"resetSeenUserTips"],null]]],[["default"],[[[[1,[28,[35,7],["user.reset_seen_user_tips"],null]]],[]]]]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface","div",[28,[37,2],null,[["model","save"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,17],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["span","plugin-outlet","hash","action","if","div","label","i18n","combo-box","p","preference-checkbox","fieldset","legend","d-button","fn","mut","br","save-controls"]]',moduleName:"discourse/templates/preferences/interface.hbs",isStrictMode:!1})},21009:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"ThTfBORe",block:'[[[10,0],[14,0,"control-group preferences-navigation-menu-navigation"],[14,"data-setting-name","user-navigation-menu-navigation"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.experimental_sidebar.navigation_section"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.experimental_sidebar.navigation_section_instruction"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"pref-link-to-filtered-list"]],[["@labelKey","@checked"],["user.experimental_sidebar.link_to_filtered_list_checkbox_description",[30,0,["newSidebarLinkToFilteredList"]]]],null],[1,"\\n "],[8,[39,4],[[24,0,"pref-show-count-new-items"]],[["@labelKey","@checked"],["user.experimental_sidebar.show_count_new_items_checkbox_description",[30,0,["newSidebarShowCountOfNewItems"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,6],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["div","legend","i18n","label","preference-checkbox","save-controls","action"]]',moduleName:"discourse/templates/preferences/navigation-menu.hbs",isStrictMode:!1})},77907:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"57sNkMo2",block:'[[[10,0],[14,0,"control-group notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.notifications"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-like-notification-frequency"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.like_notification_frequency.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["likeNotificationFrequencies"]],[30,0,["model","user_option","like_notification_frequency"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","like_notification_frequency"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["capabilities","isAppWebview"]]],[[[1," "],[10,0],[14,0,"control-group desktop-notifications"],[14,"data-setting-name","user-desktop-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.desktop_notifications.label"],null]],[13],[1,"\\n "],[8,[39,7],null,null,null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.desktop_notifications.each_browser_note"],null]],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-desktop-notifications","div",[28,[37,10],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,11],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-notifications","div",[28,[37,10],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,13],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["div","label","i18n","combo-box","action","mut","unless","desktop-notification-config","span","plugin-outlet","hash","user-notification-schedule","br","save-controls"]]',moduleName:"discourse/templates/preferences/notifications.hbs",isStrictMode:!1})},86032:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"QNXHL8c7",block:'[[[41,[30,0,["showEnforcedRequiredFieldsNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[28,[35,2],["user.preferences.profile.enforced_required_fields"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,0,["siteSettings","allow_users_to_hide_profile"]],[[[1," "],[10,0],[14,0,"control-group user-hide-profile"],[14,"data-setting-name","user-hide-profile"],[12],[1,"\\n "],[8,[39,4],[[24,"data-setting-name","user-hide-profile"],[24,0,"pref-hide-profile"]],[["@labelKey","@checked"],["user.hide_profile",[30,0,["model","user_option","hide_profile"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeBio"]],[[[1," "],[10,0],[14,0,"control-group pref-bio"],[14,"data-setting-name","user-bio"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.bio"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls bio-composer input-xxlarge"],[12],[1,"\\n "],[8,[39,6],null,[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group pref-timezone"],[14,"data-setting-name","user-timezone"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.timezone"],null]],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-xxlarge"]],[["@value","@onChange"],[[30,0,["model","user_option","timezone"]],[28,[37,8],[[28,[37,9],[[30,0,["model","user_option","timezone"]]],null]],null]]],null],[1,"\\n "],[8,[39,10],[[24,0,"btn-default"]],[["@icon","@label","@action"],["globe","user.use_current_timezone",[28,[37,11],[[30,0],"useCurrentTimezone"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","can_change_location"]],[[[1," "],[10,0],[14,0,"control-group pref-location"],[14,"data-setting-name","user-location"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","edit-location"],[12],[1,[28,[35,2],["user.location"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,12],[[24,0,"input-xxlarge"],[24,1,"edit-location"]],[["@type","@value"],["text",[30,0,["model","location"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_change_website"]],[[[1," "],[10,0],[14,0,"control-group pref-website"],[14,"data-setting-name","user-website"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","edit-website"],[12],[1,[28,[35,2],["user.website"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,12],[[24,0,"input-xxlarge"],[24,1,"edit-website"]],[["@type","@value"],["text",[30,0,["model","website"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-user-fields"],[12],[1,"\\n "],[8,[39,15],null,[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n\\n"],[41,[51,[30,0,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,0,["siteSettings","allow_profile_backgrounds"]],[[[41,[30,0,["canUploadProfileHeader"]],[[[1," "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-profile-bg"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.change_profile_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,16],null,[["@imageUrl","@type","@id"],[[30,0,["model","profile_background_upload_url"]],"profile_background","profile-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_profile_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canUploadUserCardBackground"]],[[[1," "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-card-bg"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.change_card_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,16],null,[["@imageUrl","@type","@id"],[[30,0,["model","card_background_upload_url"]],"card_background","profile-card-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_card_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","allow_featured_topic_on_user_profiles"]],[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-featured-topic"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.featured_topic"],null]],[13],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1," "],[10,"label"],[14,0,"featured-topic-link"],[12],[1,"\\n "],[8,[39,17],null,[["@route","@models"],["topic",[28,[37,18],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,19],[[28,[37,20],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,10],[[24,0,"btn-default feature-topic-on-profile-btn"]],[["@action","@label"],[[30,0,["showFeaturedTopicModal"]],"user.feature_topic_on_profile.open_search"]],null],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1," "],[8,[39,10],[[24,0,"btn-danger clear-feature-topic-on-profile-btn"]],[["@action","@label"],[[28,[37,11],[[30,0],"clearFeaturedTopicFromProfile"],null],"user.feature_topic_on_profile.clear.title"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_featured_topic.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeDefaultCalendar"]],[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-default-calendar"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["download_calendar.default_calendar"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,21],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["calendarOptions"]],[30,0,["model","user_option","default_calendar"]],"user-default-calendar",[28,[37,8],[[28,[37,9],[[30,0,["model","user_option","default_calendar"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["download_calendar.default_calendar_instruction"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,22],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-profile","div",[28,[37,23],null,[["model","save"],[[30,0,["model"]],[28,[37,11],[[30,0],"save"],null]]]]]],null],[1,"\\n\\n "],[8,[39,22],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-preferences","div",[28,[37,23],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[8,[39,22],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,23],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,24],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,11],[[30,0],"save"],null],[30,0,["saved"]]]],null]],["uf"],false,["if","div","i18n","unless","preference-checkbox","label","d-editor","timezone-input","fn","mut","d-button","action","input","each","-track-array","user-field","uppy-image-uploader","link-to","array","replace-emoji","html-safe","combo-box","plugin-outlet","hash","save-controls"]]',moduleName:"discourse/templates/preferences/profile.hbs",isStrictMode:!1})},10949:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"TVbW+PEt",block:'[[[41,[30,0,["canChangePassword"]],[[[1," "],[10,0],[14,0,"control-group pref-password"],[14,"data-setting-name","user-password"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.password.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"btn btn-default"],[4,[38,5],["click",[30,0,["changePassword"]]],null],[12],[1,"\\n "],[1,[28,[35,6],["envelope"],null]],[1,"\\n"],[41,[30,0,["model","no_password"]],[[[1," "],[1,[28,[35,3],["user.change_password.set_password"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["user.change_password.action"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[1,[30,0,["passwordProgress"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canUsePasskeys"]],[[[1," "],[8,[39,7],null,[["@model"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"control-group pref-second-factor"],[14,"data-setting-name","user-second-factor"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.second_factor.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.second_factor.short_description"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls pref-second-factor"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-default btn-second-factor"]],[["@action","@icon","@label"],[[30,0,["manage2FA"]],"lock","user.second_factor.enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[14,0,"control-group pref-auth-tokens"],[14,"data-setting-name","user-auth-tokens"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.auth_tokens.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.short_description"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-tokens"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["authTokens"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row auth-token"],[12],[1,"\\n "],[10,0],[14,0,"auth-token-icon"],[12],[1,[28,[35,6],[[30,2,["icon"]]],null]],[13],[1,"\\n"],[41,[51,[30,2,["is_active"]]],[[[1," "],[8,[39,12],null,[["@token","@revokeAuthToken","@showToken"],[[30,2],[28,[37,13],[[30,0],"revokeAuthToken"],null],[28,[37,13],[[30,0],"showToken"],null]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"auth-token-first"],[12],[1,"\\n "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.device_location"],[["device","ip","location"],[[30,2,["device"]],[30,2,["client_ip"]],[30,2,["location"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-token-second"],[12],[1,"\\n"],[41,[30,2,["is_active"]],[[[1," "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.browser_active"],[["browser"],[[30,2,["browser"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.browser_last_seen"],[["browser","date"],[[30,2,["browser"]],[28,[37,15],[[30,2,["seen_at"]]],null]]]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canShowAllAuthTokens"]],[[[1," "],[11,3],[24,6,""],[4,[38,5],["click",[30,0,["toggleShowAllAuthTokens"]]],null],[12],[1,"\\n"],[41,[30,0,["showAllAuthTokens"]],[[[1," "],[1,[28,[35,6],["caret-up"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.auth_tokens.show_few"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["caret-down"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.show_all"],[["count"],[[30,0,["model","user_auth_tokens","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[24,6,""],[24,0,"pull-right text-danger"],[4,[38,5],["click",[28,[37,17],[[30,0,["revokeAuthToken"]],null],null]],null],[12],[1,"\\n "],[1,[28,[35,6],["right-from-bracket"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.log_out_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,18],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-security","div",[28,[37,20],null,[["model","save"],[[30,0,["model"]],[28,[37,13],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,20],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model","token"],false,["if","div","label","i18n","a","on","d-icon","user-preferences/user-passkeys","d-button","each","-track-array","unless","auth-token-dropdown","action","html-safe","format-date","span","fn","user-preferences/user-api-keys","plugin-outlet","hash","br"]]',moduleName:"discourse/templates/preferences/security.hbs",isStrictMode:!1})},84708:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"iumgIZhk",block:'[[[8,[39,0],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["user-preferences/tags","action","save-controls"]]',moduleName:"discourse/templates/preferences/tags.hbs",isStrictMode:!1})},64204:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"UZ9v7bJ5",block:'[[[1,[28,[35,0],["user-preferences-tracking-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-topics-wrapper"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.topics_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-new-topic-duration"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.new_topic_duration.label"],null]],[13],[1,"\\n "],[8,[39,4],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["considerNewTopicOptions"]],[30,0,["model","user_option","new_topic_duration_minutes"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-auto-track-topics"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.auto_track_topics"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["autoTrackDurations"]],[30,0,["model","user_option","auto_track_topics_after_msecs"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-notification-level-when-replying"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.notification_level_when_replying.label"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["notificationLevelsForReplying"]],[30,0,["model","user_option","notification_level_when_replying"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],null,[["@name","@outletArgs"],["user-preferences-tracking-topics",[28,[37,8],null,[["model","customAttrNames"],[[30,0,["model"]],[30,0,["customAttrNames"]]]]]]],null],[1,"\\n\\n "],[8,[39,9],null,[["@labelKey","@checked"],["user.topics_unread_when_closed",[30,0,["model","user_option","topics_unread_when_closed"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-categories-tags-wrapper"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,10],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[30,0,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,11],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[30,0,["save"]],[30,0,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["showMutePrecedenceSetting"]],[[[1," "],[10,0],[14,0,"control-group user-preferences__watched-precedence-over-muted"],[12],[1,"\\n "],[8,[39,9],[[24,"data-setting-name","watched-precedence-over-muted"]],[["@labelKey","@checked"],["user.watched_precedence_over_muted",[30,0,["model","user_option","watched_precedence_over_muted"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSave"]],[[[1," "],[8,[39,13],null,[["@model","@action","@saved"],[[30,0,["model"]],[30,0,["save"]],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null]],[],false,["body-class","div","label","i18n","combo-box","action","mut","plugin-outlet","hash","preference-checkbox","user-preferences/categories","user-preferences/tags","if","save-controls"]]',moduleName:"discourse/templates/preferences/tracking.hbs",isStrictMode:!1})},57183:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"K4s5gsX/",block:'[[[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.users"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","can_ignore_users"]],[[[1," "],[10,0],[14,0,"control-group user-ignore"],[14,"data-setting-name","user-ignored-users"],[12],[1,"\\n "],[10,0],[14,0,"controls tracking-controls user-notifications"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n "],[1,[28,[35,1],["user.ignored_users"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@model","@items"],[[30,0,["model"]],[30,0,["model","ignored_usernames"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_mute_users"]],[[[1," "],[10,0],[14,0,"control-group user-mute"],[14,"data-setting-name","user-muted-users"],[12],[1,"\\n "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,4],["d-muted"],[["class"],["icon"]]]],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["user.muted_users"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["mutedUsernames"]],[28,[37,8],[[30,0],"onChangeMutedUsernames"],null],[28,[37,9],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.muted_users_instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_send_private_messages"]],[[[1," "],[10,0],[14,0,"control-group private-messages"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.private_messages"],null]],[13],[1,"\\n "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.allow_private_messages",[30,0,["model","user_option","allow_private_messages"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages-from-specific-users"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked","@disabled"],["user.allow_private_messages_from_specific_users",[30,0,["model","user_option","enable_allowed_pm_users"]],[30,0,["disableAllowPmUsersSetting"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["allowPmUsersEnabled"]],[[[1," "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["allowedPmUsernames"]],[28,[37,8],[[30,0],"onChangeAllowedPmUsernames"],null],[28,[37,9],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.allowed_pm_users_instructions"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,12],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,8],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["label","i18n","if","div","d-icon","ignored-user-list","span","user-chooser","action","hash","preference-checkbox","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/users.hbs",isStrictMode:!1})},67752:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"/Li+tftO",block:'[[[1,[28,[35,0],["static-privacy"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,3],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,3],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/privacy.hbs",isStrictMode:!1})},50485:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"7uvxSOfb",block:'[[[10,0],[14,0,"reviewable-container"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-list"],[12],[1,"\\n"],[41,[30,0,["reviewables"]],[[[1," "],[8,[39,2],null,[["@selector","@action"],[".reviewable-item",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"reviewables"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["reviewables"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@reviewable","@remove"],[[30,1],[28,[37,3],[[30,0],"remove"],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,7],null,[["@condition"],[[30,0,["reviewables","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-review"],[12],[1,"\\n "],[1,[28,[35,8],["review.none"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filters"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.status"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterStatus"]],[30,0,["statuses"]],[28,[37,11],[[28,[37,12],[[30,0,["filterStatus"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["filtersExpanded"]],[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["above-review-filters","div",[28,[37,15],null,[["model","additionalFilters"],[[30,0,["model"]],[30,0,["additionalFilters"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["filterType"]],[30,0,["allTypes"]],[28,[37,11],[[28,[37,12],[[30,0,["filterType"]]],null]],null],[28,[37,15],null,[["none"],["review.filters.type.all"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.score_type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["filterScoreType"]],[30,0,["allScoreTypes"]],[28,[37,11],[[28,[37,12],[[30,0,["filterScoreType"]]],null]],null],[28,[37,15],null,[["none"],["review.filters.score_type.all"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.priority.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterPriority"]],[30,0,["priorities"]],[28,[37,11],[[28,[37,12],[[30,0,["filterPriority"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.category"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,16],null,[["@value","@onChange","@options"],[[30,0,["filterCategoryId"]],[28,[37,11],[[28,[37,12],[[30,0,["filterCategoryId"]]],null]],null],[28,[37,15],null,[["none","clearable"],["review.filters.all_categories",true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_flagged_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],null,[["@value","@onChange","@options"],[[30,0,["filterFlaggedBy"]],[28,[37,3],[[30,0],"updateFilterFlaggedBy"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_reviewed_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],null,[["@value","@onChange","@options"],[[30,0,["filterReviewedBy"]],[28,[37,3],[[30,0],"updateFilterReviewedBy"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_user"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],[[24,0,"user-selector"]],[["@value","@onChange","@options"],[[30,0,["filterUsername"]],[28,[37,3],[[30,0],"updateFilterUsername"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["filterTopic"]],[[[1," "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_topic"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,18],[[24,0,"btn-default"]],[["@label","@icon","@action"],["review.show_all_topics","xmark",[28,[37,3],[[30,0],"resetTopic"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-filter date-range"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.date_filter"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,19],null,[["@from","@to","@onChange","@showFromTime","@showToTime"],[[30,0,["filterFromDate"]],[30,0,["filterToDate"]],[30,0,["setRange"]],false,false]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter sort-order"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.order_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterSortOrder"]],[30,0,["sortOrders"]],[28,[37,11],[[28,[37,12],[[30,0,["filterSortOrder"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-filters-actions"],[12],[1,"\\n "],[8,[39,18],[[24,0,"btn-primary refresh"]],[["@icon","@label","@action"],["arrows-rotate","review.filters.refresh",[28,[37,3],[[30,0],"refresh"],null]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,18],[[24,0,"btn-default expand-secondary-filters"]],[["@label","@icon","@action"],["show_help",[30,0,["toggleFiltersIcon"]],[28,[37,3],[[30,0],"toggleFilters"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["r"],false,["div","if","load-more","action","each","-track-array","reviewable-item","conditional-loading-spinner","i18n","label","combo-box","fn","mut","span","plugin-outlet","hash","category-chooser","email-group-user-chooser","d-button","date-time-input-range"]]',moduleName:"discourse/templates/review-index.hbs",isStrictMode:!1})},48282:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"pKw8jiNN",block:'[[[10,0],[14,0,"reviewable-settings"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[35,2],["review.settings.priorities.title"],null]],[13],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["scoreTypes"]]],null]],null],null,[[[1," "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[10,0],[14,0,"field"],[12],[1,"\\n "],[8,[39,5],null,[["@value","@content","@onChange"],[[30,1,["reviewable_priority"]],[30,0,["settings","reviewable_priorities"]],[28,[37,6],[[28,[37,7],[[30,1,["reviewable_priority"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1,"\\n "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[13],[1,"\\n "],[10,0],[14,0,"field"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary save-settings"]],[["@icon","@label","@action","@disabled"],["check","review.settings.save_changes",[28,[37,9],[[30,0],"save"],null],[30,0,["saving"]]]],null],[1,"\\n\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[14,0,"saved"],[12],[1,[28,[35,2],["review.settings.saved"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["rst"],false,["div","h4","i18n","each","-track-array","combo-box","fn","mut","d-button","action","if","span"]]',moduleName:"discourse/templates/review-settings.hbs",isStrictMode:!1})},2026:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"8+48Es0D",block:'[[[8,[39,0],null,[["@reviewable"],[[30,0,["reviewable"]]]],null]],[],false,["reviewable-item"]]',moduleName:"discourse/templates/review-show.hbs",isStrictMode:!1})},84641:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"L9RkP/pr",block:'[[[41,[30,0,["reviewableTopics"]],[[[1," "],[10,"table"],[14,0,"reviewable-topics"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.topic"],null]],[1," "],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.reviewable_count"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.reported_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["reviewableTopics"]]],null]],null],null,[[[1," "],[10,"tr"],[14,0,"reviewable-topic"],[12],[1,"\\n "],[10,"td"],[14,0,"topic-title"],[12],[1,"\\n "],[10,0],[14,0,"combined-title"],[12],[1,"\\n "],[8,[39,11],null,[["@topic"],[[30,1]]],null],[1,"\\n "],[10,3],[15,6,[30,1,["relative_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,[28,[35,13],[[30,1,["title"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reviewable-count"],[12],[1,"\\n "],[1,[30,1,["stats","count"]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reported-by"],[12],[1,"\\n "],[1,[28,[35,4],["review.topics.unique_users"],[["count"],[[30,1,["stats","unique_users"]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reviewable-details"],[12],[1,"\\n "],[8,[39,14],null,[["@topicId","@claimedBy","@onClaim"],[[30,1,["id"]],[30,1,["claimed_by"]],[28,[37,15],[[28,[37,16],[[30,1,["claimed_by"]]],null]],null]]],null],[1,"\\n "],[8,[39,17],[[24,0,"btn btn-primary btn-small"]],[["@route","@query"],["review.index",[28,[37,18],null,[["topic_id"],[[30,1,["id"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,19],["list"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["review.topics.details"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-review"],[12],[1,"\\n "],[1,[28,[35,4],["review.none"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],["rt"],false,["if","table","thead","th","i18n","tbody","each","-track-array","tr","td","div","topic-status","a","replace-emoji","reviewable-claimed-topic","fn","mut","link-to","hash","d-icon","span"]]',moduleName:"discourse/templates/review-topics.hbs",isStrictMode:!1})},76414:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"0rrfcvTb",block:'[[[10,0],[14,0,"reviewable"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills reviewable-title"],[12],[1,"\\n "],[8,[39,2],null,[["@route","@label"],["review.index","review.view_all"]],null],[1,"\\n "],[8,[39,2],null,[["@route","@label"],["review.topics","review.grouped_by_topic"]],null],[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[8,[39,2],null,[["@route","@label","@icon"],["review.settings","review.settings.title","wrench"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["div","ul","nav-item","if","component","-outlet"]]',moduleName:"discourse/templates/review.hbs",isStrictMode:!1})},35669:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"tfoR1buA",block:'[[[1,[35,0]],[1,"\\n\\n"],[41,[30,0,["message"]],[[[1," "],[10,0],[15,0,[29,["alert ",[30,0,["alertClass"]]]]],[12],[1,[30,0,["message"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["loadError"]]],[[[1," "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["customDescription"]],[[[1," "],[10,2],[14,0,"action-description"],[12],[1,[30,0,["customDescription"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n"],[41,[30,0,["showSecurityKeyForm"]],[[[1," "],[10,0],[14,1,"security-key"],[12],[1,"\\n "],[8,[39,6],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,0,["authenticateSecurityKey"]],"key","login.security_key_authenticate"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,7],[[30,0,["showTotpForm"]],[30,0,["showBackupCodesForm"]]],null],[[[1," "],[10,"form"],[15,0,[30,0,["inputFormClass"]]],[12],[1,"\\n "],[8,[39,9],[[16,2,[30,0,["secondFactorToken"]]],[4,[38,10],["input",[28,[37,11],[[28,[37,12],[[28,[37,13],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["shownSecondFactorMethod"]]]],null],[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["authenticateToken"]],"submit"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["alternativeMethods","length"]],[[[1," "],[10,2],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["alternativeMethods"]]],null]],null],null,[[[41,[28,[37,16],[[30,2],0],null],[[[1," "],[10,1],[12],[1,"·"],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[29,["toggle-second-factor-method ",[30,1,["class"]]]]],[4,[38,10],["click",[28,[37,12],[[30,0,["useAnotherMethod"]],[30,1,["id"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,19],[[30,1,["translationKey"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1,2]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],["method","index"],false,["hide-application-sidebar","if","div","unless","h3","p","d-button","or","form","second-factor-input","on","with-event-value","fn","mut","each","-track-array","gt","span","a","i18n"]]',moduleName:"discourse/templates/second-factor-auth.hbs",isStrictMode:!1})},41379:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"bJwEhhN1",block:'[[[8,[39,0],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,1],[[30,0],"toggleMultiSelect"],null],[28,[37,1],[[30,0],"mergePosts"],null],[28,[37,1],[[30,0],"deleteSelected"],null],[28,[37,1],[[30,0],"deselectAll"],null],[28,[37,1],[[30,0],"selectAll"],null]]],null]],[],false,["selected-posts","action"]]',moduleName:"discourse/templates/selected-posts.hbs",isStrictMode:!1})},22150:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"yTWiPUK+",block:'[[[1,[28,[35,0],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,1]],[1,"\\n"],[1,[28,[35,2],["signup-page"],null]],[1,"\\n"],[10,0],[14,0,"signup-fullpage"],[12],[1,"\\n "],[8,[39,4],null,[["@flash","@type"],[[30,0,["flash"]],[30,0,["flashType"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],["signup-body",[30,0,["bodyClasses"]]],null]],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],[[52,[30,0,["site","desktopView"]],"login-left-side"],[30,0,["authOptions","auth_provider"]]],null]],[12],[1,"\\n "],[8,[39,8],null,[["@step"],["signup"]],null],[1,"\\n "],[8,[39,9],[[24,1,"create-account-title"]],[["@header"],[[28,[37,10],["create_account.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-header-bottom",[28,[37,11],null,[["showLogin"],[[28,[37,12],["showLogin"],null]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showCreateForm"]],[[[1," "],[10,"form"],[14,1,"login-form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,15],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n "],[8,[39,16],[[16,"disabled",[30,0,["emailDisabled"]]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation account-email-validation-more-info"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[24,3,"email"],[24,1,"new-account-email"],[16,0,[28,[37,17],[[30,0,["accountEmail"]]],null]],[4,[38,18],["focusout",[30,0,["checkEmailAvailability"]]],null],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["accountEmail"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,10],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showEmailValidation"]],[[[1," "],[8,[39,20],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"account-email-validation-more-info"],[12],[1,"\\n"],[41,[30,0,["siteSettings","show_signup_form_email_instructions"]],[[[1," "],[1,[28,[35,10],["user.email.instructions"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["accountUsername"]]],[16,"disabled",[30,0,["usernameDisabled"]]],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation username-validation-more-info"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"],[24,3,"username"],[24,1,"new-account-username"],[16,0,[28,[37,17],[[30,0,["accountUsername"]]],null]],[24,4,"text"],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,18],["input",[30,0,["setAccountUsername"]]],null],[12],[13],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,10],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showUsernameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"username-validation-more-info"],[12],[1,"\\n "],[1,[28,[35,10],["user.username.instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,20],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[37,21],[[30,0,["showFullname"]],[30,0,["fullnameRequired"]]],null],[[[1," "],[8,[39,22],[[24,0,"input-group create-account__fullname required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["authOptions"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1," "],[8,[39,23],[[24,"autocomplete","current-password"],[24,"aria-describedby","password-validation password-validation-more-info"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]],[24,1,"new-account-password"],[16,0,[28,[37,17],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,18],["focusout",[30,0,["togglePasswordValidation"]]],null],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,10],["user.password.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,24],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,20],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","show_signup_form_password_instructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"password-validation-more-info"],[12],[1,"\\n "],[1,[30,0,["passwordInstructions"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[10,0],[15,0,[28,[37,5],["caps-lock-warning",[52,[51,[30,0,["capsLockOn"]]],"hidden"]],null]],[12],[1,"\\n "],[1,[28,[35,26],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,10],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,"\\n "],[1,[28,[35,10],["user.password_confirmation.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,27],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n "],[8,[39,16],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1," "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n "],[8,[39,16],[[24,1,"inviteCode"],[16,0,[28,[37,17],[[30,0,["inviteCode"]]],null]],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,"\\n "],[1,[28,[35,10],["user.invite_code.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"more-info"],[12],[1,"\\n "],[1,[28,[35,10],["user.invite_code.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[28,[37,21],[[30,0,["showFullname"]],[28,[37,28],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,22],[[24,0,"input-group create-account__fullname"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,30],[[28,[37,30],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,31],[[16,0,[28,[37,17],[[30,1,["value"]]],null]],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value","@validation"],[[30,1,["field"]],[30,1,["value"]],[30,1,["validation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-after-user-fields",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,32],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["skipConfirmation"]],[[[1," "],[1,[28,[35,33],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"login-or-separator"],[12],[10,1],[12],[1,"\\n "],[1,[28,[35,10],["login.or"],null]],[13],[13]],[]],null],[1,"\\n "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,34],null,[["@externalLogin","@context"],[[30,0,["externalLogin"]],"create-account"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,21],[[30,0,["showCreateForm"]],[30,0,["site","mobileView"]]],null],[[[1," "],[8,[39,32],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["f"],false,["hide-application-header-buttons","hide-application-sidebar","body-class","div","flash-message","concat-class","plugin-outlet","if","signup-progress-bar","welcome-header","i18n","hash","route-action","form","span","html-safe","input","value-entered","on","label","input-tip","and","fullname-input","password-field","toggle-password-mask","unless","d-icon","honeypot-input","not","each","-track-array","user-field","signup-page-cta","loading-spinner","login-buttons"]]',moduleName:"discourse/templates/signup.hbs",isStrictMode:!1})},97522:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"cHkZoR5Y",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["tagging.groups.edit_title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@model","@onDestroy"],[[30,0,["model"]],[28,[37,4],[[30,0],"onDestroy"],null]]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-edit.hbs",isStrictMode:!1})},7684:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"1yxI2NjT",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[1,[28,[35,3],["tagging.groups.about_heading"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["tagging.groups.about_heading_empty"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"section"],[14,0,"tag-groups-about"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,3],["tagging.groups.about_description"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[12],[1,"\\n"],[41,[51,[30,0,["model"]]],[[[1," "],[8,[39,7],[[24,0,"btn btn-primary"]],[["@route"],["tagGroups.new"]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],["plus"],null]],[1,"\\n "],[1,[28,[35,3],["tagging.groups.new"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],[],false,["div","h3","if","i18n","section","p","unless","link-to","d-icon"]]',moduleName:"discourse/templates/tag-groups-index.hbs",isStrictMode:!1})},98022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"paKAAimJ",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["tagging.groups.new_title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,4],[[30,0],"onSave"],null]]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-new.hbs",isStrictMode:!1})},30251:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"iDb18PkP",block:'[[[10,3],[14,0,"tag-groups--back"],[15,6,[28,[37,1],["/tags"],null]],[12],[1,"\\n "],[1,[28,[35,2],["chevron-left"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["tagging.groups.back_btn"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tag-groups-container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,4],["tagging.groups.title"],null]],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[41,[30,0,["model"]],[[[1," "],[10,0],[14,0,"tag-groups-sidebar content-list"],[12],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["model"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["tagGroups.edit",[30,1]]],[["default"],[[[[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,13],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,14],[[30,0],"newTagGroup"],null],"plus","tagging.groups.new"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[46,[28,[37,16],null,null],null,null,null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,0],[14,0,"alert info"],[12],[1,[28,[35,4],["tagging.groups.disabled"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["tagGroup"],false,["a","get-url","d-icon","span","i18n","div","h2","if","ul","each","-track-array","li","link-to","d-button","action","component","-outlet"]]',moduleName:"discourse/templates/tag-groups.hbs",isStrictMode:!1})},95397:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"5ID5SU8e",block:'[[[1,[28,[35,0],["tags-page"],null]],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["body-class","component","-outlet"]]',moduleName:"discourse/templates/tags.hbs",isStrictMode:!1})},81884:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"q6gYKjYO",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,1],null,null,null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tags-index"],[12],[1,"\\n\\n "],[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[10,0],[14,0,"container tags-controls"],[12],[1,"\\n"],[41,[30,0,["canAdminTags"]],[[[1," "],[8,[39,3],null,[["@actionsMapping"],[[30,0,["actionsMapping"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,"h2"],[12],[1,[28,[35,5],["tagging.tags"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["tags-below-title","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n "],[1,[28,[35,5],["tagging.sort_by"],null]],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["sortByCount"]]],null],[12],[1,[28,[35,5],["tagging.sort_by_count"],null]],[13],[13],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["sortById"]]],null],[12],[1,[28,[35,5],["tagging.sort_by_name"],null]],[13],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"all-tag-lists"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","extras","categories"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@categoryId"],[[30,1,["tags"]],[30,0,["sortProperties"]],[30,1,["id"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","extras","tag_groups"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@tagGroupName"],[[30,2,["tags"]],[30,0,["sortProperties"]],[30,2,["name"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@titleKey"],[[30,0,["model"]],[30,0,["sortProperties"]],[30,0,["otherTagsTitleKey"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[13]],["category","tagGroup"],false,["div","discourse-banner","if","tags-admin-dropdown","h2","i18n","plugin-outlet","hash","span","a","on","hr","each","-track-array","tag-list"]]',moduleName:"discourse/templates/tags/index.hbs",isStrictMode:!1})},19821:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"eNRF/1eG",block:'[[[44,[[30,0,["model","postStream"]]],[[[41,[51,[28,[37,2],[[30,1,["loaded"]],[30,1,["loadedAllPosts"]]],null]],[[[1," "],[1,[35,3]],[1,"\\n"]],[]],null]],[1]]],[1,"\\n"],[8,[39,4],[[4,[38,5],null,null]],[["@multiSelect","@enteredAt","@topic","@hasScrolled"],[[30,0,["multiSelect"]],[30,0,["enteredAt"]],[30,0,["model"]],[30,0,["hasScrolled"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,7],null,[["@category","@tags"],[[30,0,["model","category"]],[30,0,["model","tags"]]]],null],[1,"\\n "],[8,[39,8],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[1,[28,[35,9],[[28,[37,10],["archetype-",[30,0,["model","archetype"]]],null]],null]],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,12],null,[["@overlay","@hide"],[[30,0,["hasScrolled"]],[30,0,["model","errorLoading"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSharedDraftControls"]],[[[1," "],[8,[39,13],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-post-stream","div",[28,[37,16],null,[["model","editFirstPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"editFirstPost"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","postStream","loaded"]],[[[41,[30,0,["model","postStream","firstPostPresent"]],[[[1," "],[8,[39,18],null,[["@cancelled","@save","@model"],[[28,[37,17],[[30,0],"cancelEditingTopic"],null],[28,[37,17],[[30,0],"finishedEditingTopic"],null],[30,0,["model"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["editingTopic"]],[[[1," "],[10,0],[14,0,"edit-topic-title"],[12],[1,"\\n "],[8,[39,19],null,[["@shouldShow"],[[30,0,["model","isPrivateMessage"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"edit-title__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-title",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,20],null,[["@id","@value","@maxlength","@autofocus"],["edit-title",[30,0,["buffered","title"]],[30,0,["siteSettings","max_topic_title_length"]],"true"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showCategoryChooser"]],[[[1," "],[10,0],[14,0,"edit-category__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-category",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,21],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["buffered","category_id"]],[28,[37,17],[[30,0],"topicCategoryChanged"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditTags"]],[[[1," "],[10,0],[14,0,"edit-tags__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-tags",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@value","@onChange","@options"],[[30,0,["buffered","tags"]],[28,[37,17],[[30,0],"topicTagsChanged"],null],[28,[37,16],null,[["filterable","categoryId","minimum","filterPlaceholder","useHeaderFilter"],[true,[30,0,["buffered","category_id"]],[30,0,["minimumRequiredTags"]],"tagging.choose_for_topic",true]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["edit-topic","div",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,17],[[30,0],"finishedEditingTopic"],null],"check","composer.save_edit"]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,17],[[30,0],"cancelEditingTopic"],null],"xmark","composer.cancel"]],null],[1,"\\n\\n"],[41,[30,0,["canRemoveTopicFeaturedLink"]],[[[1," "],[11,3],[24,6,""],[24,0,"remove-featured-link"],[16,"title",[28,[37,25],["composer.remove_featured_link"],null]],[4,[38,26],["click",[30,0,["removeFeaturedLink"]]],null],[12],[1,"\\n "],[1,[28,[35,27],["circle-xmark"],null]],[1,"\\n "],[1,[30,0,["featuredLinkDomain"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[10,"h1"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n"],[41,[51,[30,0,["model","is_warning"]]],[[[41,[30,0,["canSendPms"]],[[[1," "],[8,[39,19],null,[["@shouldShow","@href","@title","@ariaLabel"],[[30,0,["model","isPrivateMessage"]],[30,0,["pmPath"]],"topic_statuses.personal_message.title","user.messages.inbox"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,19],null,[["@shouldShow"],[[30,0,["model","isPrivateMessage"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["model","details","loaded"]],[[[1," "],[8,[39,29],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[11,3],[16,6,[30,0,["model","url"]]],[24,0,"fancy-title"],[4,[38,26],["click",[30,0,["jumpTop"]]],null],[12],[1,"\\n "],[1,[28,[35,30],[[30,0,["model","fancyTitle"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","details","can_edit"]],[[[1," "],[11,3],[24,6,""],[24,0,"edit-topic"],[16,"title",[28,[37,25],["edit_topic"],null]],[4,[38,26],["click",[30,0,["editTopic"]]],null],[12],[1,[28,[35,27],["pencil"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-title-suffix",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-category-wrapper",[28,[37,16],null,[["topic"],[[30,0,["model"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,31],[[24,0,"topic-category"]],[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","publishedPage"]],[[[1," "],[10,0],[14,0,"published-page-notice"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","publishedPage","public"]],[[[1," "],[10,1],[14,0,"is-public"],[12],[1,[28,[35,25],["topic.publish_page.public"],null]],[13],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,25],["topic.publish_page.topic_published"],null]],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,3],[15,6,[30,0,["model","publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["model","publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,23],null,[["@icon","@label","@action"],["file","topic.publish_page.publishing_settings",[28,[37,32],["showPagePublish"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"container posts"],[12],[1,"\\n "],[10,0],[15,0,[29,["selected-posts ",[52,[51,[30,0,["multiSelect"]]],"hidden"]]]],[12],[1,"\\n "],[8,[39,33],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,17],[[30,0],"mergePosts"],null],[28,[37,17],[[30,0],"deleteSelected"],null],[28,[37,17],[[30,0],"deselectAll"],null],[28,[37,17],[[30,0],"selectAll"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[37,2],[[30,0,["showBottomTopicMap"]],[30,0,["loadedAllPosts"]]],null],[[[1," "],[10,0],[14,0,"topic-map --bottom"],[12],[1,"\\n "],[8,[39,34],null,[["@model","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,0,["model"]],[30,0,["model","details"]],[30,0,["model","postStream"]],[28,[37,35],[[30,0,["model","archetype"]],"private_message"],null],[28,[37,32],["showInvite"],null],[28,[37,17],[[30,0],"removeAllowedGroup"],null],[28,[37,17],[[30,0],"removeAllowedUser"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName"],["above-timeline","div"]],null],[1,"\\n\\n "],[8,[39,36],[[24,0,"topic-navigation"]],[["@topic","@jumpToDate","@jumpToIndex"],[[30,0,["model"]],[28,[37,17],[[30,0],"jumpToDate"],null],[28,[37,17],[[30,0],"jumpToIndex"],null]]],[["default"],[[[[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation","div",[28,[37,16],null,[["topic","renderTimeline","topicProgressExpanded"],[[30,0,["model"]],[30,2,["renderTimeline"]],[30,2,["topicProgressExpanded"]]]]]]],null],[1,"\\n"],[41,[30,2,["renderTimeline"]],[[[1," "],[8,[39,37],null,[["@info","@model","@replyToPost","@showTopReplies","@jumpToPostPrompt","@enteredIndex","@prevEvent","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@fullscreen"],[[30,2],[30,0,["model"]],[28,[37,17],[[30,0],"replyToPost"],null],[28,[37,17],[[30,0],"showTopReplies"],null],[28,[37,17],[[30,0],"jumpToPostPrompt"],null],[30,0,["enteredIndex"]],[30,2,["prevEvent"]],[28,[37,17],[[30,0],"jumpTop"],null],[28,[37,17],[[30,0],"jumpBottom"],null],[28,[37,17],[[30,0],"jumpEnd"],null],[28,[37,17],[[30,0],"jumpToIndex"],null],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null],[30,2,["topicProgressExpanded"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,38],null,[["@prevEvent","@topic","@expanded","@jumpToPost"],[[30,2,["prevEvent"]],[30,0,["model"]],[30,2,["topicProgressExpanded"]],[28,[37,17],[[30,0],"jumpToPost"],null]]],[["default"],[[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-progress","div",[28,[37,16],null,[["model","jumpToPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"jumpToPost"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,39],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["model"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation-bottom","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"section"],[14,0,"topic-area"],[14,1,"topic"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n\\n "],[10,0],[14,0,"posts-wrapper"],[12],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingAbove"]]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-posts","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,0,["model","postStream","loadingFilter"]]],[[[1," "],[8,[39,42],null,[["@posts","@canCreatePost","@multiSelect","@selectedPostsCount","@filteredPostsCount","@selectedQuery","@gaps","@showReadIndicator","@streamFilters","@lastReadPostNumber","@highestPostNumber","@showFlags","@editPost","@showHistory","@showLogin","@showRawEmail","@deletePost","@permanentlyDeletePost","@recoverPost","@expandHidden","@toggleBookmark","@togglePostType","@rebakePost","@changePostOwner","@grantBadge","@changeNotice","@lockPost","@unlockPost","@unhidePost","@replyToPost","@toggleWiki","@showTopReplies","@cancelFilter","@removeAllowedUser","@removeAllowedGroup","@topVisibleChanged","@currentPostChanged","@currentPostScrolled","@bottomVisibleChanged","@togglePostSelection","@selectReplies","@selectBelow","@fillGapBefore","@fillGapAfter","@showInvite","@showPagePublish"],[[30,0,["postsToRender"]],[30,0,["model","details","can_create_post"]],[30,0,["multiSelect"]],[30,0,["selectedPostsCount"]],[30,0,["model","postStream","filteredPostsCount"]],[30,0,["selectedQuery"]],[30,0,["model","postStream","gaps"]],[30,0,["model","show_read_indicator"]],[30,0,["model","postStream","streamFilters"]],[30,0,["userLastReadPostNumber"]],[30,0,["highestPostNumber"]],[28,[37,17],[[30,0],"showPostFlags"],null],[28,[37,17],[[30,0],"editPost"],null],[28,[37,32],["showHistory"],null],[28,[37,32],["showLogin"],null],[28,[37,32],["showRawEmail"],null],[28,[37,17],[[30,0],"deletePost"],null],[28,[37,17],[[30,0],"permanentlyDeletePost"],null],[28,[37,17],[[30,0],"recoverPost"],null],[28,[37,17],[[30,0],"expandHidden"],null],[28,[37,17],[[30,0],"toggleBookmark"],null],[28,[37,17],[[30,0],"togglePostType"],null],[28,[37,17],[[30,0],"rebakePost"],null],[28,[37,17],[[30,0],"changePostOwner"],null],[28,[37,17],[[30,0],"grantBadge"],null],[28,[37,17],[[30,0],"changeNotice"],null],[28,[37,17],[[30,0],"lockPost"],null],[28,[37,17],[[30,0],"unlockPost"],null],[28,[37,17],[[30,0],"unhidePost"],null],[28,[37,17],[[30,0],"replyToPost"],null],[28,[37,17],[[30,0],"toggleWiki"],null],[28,[37,17],[[30,0],"showTopReplies"],null],[28,[37,17],[[30,0],"cancelFilter"],null],[28,[37,17],[[30,0],"removeAllowedUser"],null],[28,[37,17],[[30,0],"removeAllowedGroup"],null],[28,[37,17],[[30,0],"topVisibleChanged"],null],[28,[37,17],[[30,0],"currentPostChanged"],null],[28,[37,17],[[30,0],"currentPostScrolled"],null],[28,[37,17],[[30,0],"bottomVisibleChanged"],null],[28,[37,17],[[30,0],"togglePostSelection"],null],[28,[37,17],[[30,0],"selectReplies"],null],[28,[37,17],[[30,0],"selectBelow"],null],[28,[37,17],[[30,0],"fillGapBefore"],null],[28,[37,17],[[30,0],"fillGapAfter"],null],[28,[37,32],["showInvite"],null],[28,[37,32],["showPagePublish"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingBelow"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"topic-bottom"],[12],[13],[1,"\\n\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingFilter"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[1,"\\n"],[41,[30,0,["model","pending_posts"]],[[[1," "],[10,0],[14,0,"pending-posts"],[12],[1,"\\n"],[42,[28,[37,44],[[28,[37,44],[[30,0,["model","pending_posts"]]],null]],null],null,[[[1," "],[10,0],[14,0,"reviewable-item"],[15,"data-reviewable-id",[30,3,["id"]]],[12],[1,"\\n "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n "],[10,1],[14,0,"reviewable-type"],[12],[1,"\\n "],[1,[28,[35,25],["review.awaiting_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"created-at"],[12],[1,"\\n "],[1,[28,[35,45],[[30,3,["created_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,46],null,[["@user"],[[30,0,["currentUser"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,47],null,[["@user"],[[30,0,["currentUser"]]]],null],[1,"\\n "],[10,0],[14,0,"post-body"],[12],[8,[39,48],null,[["@rawText"],[[30,3,["raw"]]]],null],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-additional-reviewable-actions",[28,[37,16],null,[["pending"],[[30,3]]]]]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-danger"]],[["@label","@icon","@action"],["review.delete","trash-can",[28,[37,49],[[28,[37,17],[[30,0],"deletePending"],null],[30,3]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","queued_posts_count"]],[[[1," "],[10,0],[14,0,"has-pending-posts"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[28,[35,30],[[28,[37,25],["review.topic_has_pending"],[["count"],[[30,0,["model","queued_posts_count"]]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,50],null,[["@route","@query"],["review",[28,[37,16],null,[["topic_id","type","status"],[[30,0,["model","id"]],"ReviewableQueuedPost","pending"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,25],["review.view_pending"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,51],null,[["@topic","@user","@tagName"],[[30,0,["model"]],[30,0,["currentUser"]],""]],null],[1,"\\n\\n "],[8,[39,52],null,[["@topicClosed","@statusType","@statusUpdate","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId","@showTopicTimerModal","@removeTopicTimer"],[[30,0,["model","closed"]],[30,0,["model","topic_timer","status_type"]],[30,0,["model","topic_status_update"]],[30,0,["model","topic_timer","execute_at"]],[30,0,["model","topic_timer","based_on_last_post"]],[30,0,["model","topic_timer","duration_minutes"]],[30,0,["model","topic_timer","category_id"]],[28,[37,32],["showTopicTimerModal"],null],[28,[37,17],[[30,0],"removeTopicTimer",[30,0,["model","topic_timer","status_type"]],"topic_timer"],null]]],null],[1,"\\n\\n"],[41,[30,0,["showSelectedPostsAtBottom"]],[[[1," "],[10,0],[15,0,[29,["selected-posts\\n ",[52,[51,[30,0,["multiSelect"]]],"hidden"],"\\n ",[52,[30,0,["showSelectedPostsAtBottom"]],"hidden"]]]],[12],[1,"\\n "],[8,[39,33],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,17],[[30,0],"mergePosts"],null],[28,[37,17],[[30,0],"deleteSelected"],null],[28,[37,17],[[30,0],"deselectAll"],null],[28,[37,17],[[30,0],"selectAll"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-area-bottom","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[13],[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[41,[30,0,["session","showSignupCta"]],[[[1," "],[8,[39,53],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["currentUser"]],[[[1," "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-footer-buttons","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,54],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@toggleBookmark","@showFlagTopic","@toggleArchiveMessage","@editFirstPost","@deferTopic","@replyToPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null],[28,[37,17],[[30,0],"toggleBookmark"],null],[28,[37,32],["showFlagTopic"],null],[28,[37,17],[[30,0],"toggleArchiveMessage"],null],[28,[37,17],[[30,0],"editFirstPost"],null],[28,[37,17],[[30,0],"deferTopic"],null],[28,[37,17],[[30,0],"replyToPost"],null]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,55],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[]]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-suggested","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,57],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-below-suggested",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["noErrorYet"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","errorHtml"]],[[[1," "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,30],[[30,0,["model","errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"topic-error"],[12],[1,"\\n "],[10,0],[12],[1,[30,0,["model","errorMessage"]]],[13],[1,"\\n"],[41,[30,0,["model","noRetry"]],[[[41,[51,[30,0,["currentUser"]]],[[[1," "],[8,[39,23],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,32],["showLogin"],null],"user","log_in"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,23],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,17],[[30,0],"retryLoading"],null],"arrows-rotate","errors.buttons.again"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["retrying"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,58],null,[["@quoteState","@selectText","@buildQuoteMarkdown","@editPost","@topic"],[[30,0,["quoteState"]],[28,[37,17],[[30,0],"selectText"],null],[30,0,["buildQuoteMarkdown"]],[28,[37,17],[[30,0],"editPost"],null],[30,0,["model"]]]],null],[1,"\\n"]],[]]]]]],["postStream","info","pending"],false,["let","unless","and","hide-application-footer","discourse-topic","sticky-avatars","if","add-category-tag-classes","add-topic-status-classes","body-class","concat","div","discourse-banner","shared-draft-controls","span","plugin-outlet","hash","action","topic-title","private-message-glyph","text-field","category-chooser","mini-tag-chooser","d-button","a","i18n","on","d-icon","h1","topic-status","html-safe","topic-category","route-action","selected-posts","topic-map","eq","topic-navigation","topic-timeline","topic-progress","topic-admin-menu","section","conditional-loading-spinner","scrolling-post-stream","each","-track-array","age-with-tooltip","reviewable-created-by","reviewable-created-by-name","cook-text","fn","link-to","slow-mode-info","topic-timer-info","signup-cta","topic-footer-buttons","anonymous-topic-footer-buttons","br","more-topics","post-text-selection"]]',moduleName:"discourse/templates/topic.hbs",isStrictMode:!1})},75498:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"vJEQqNAw",block:'[[[1,[28,[35,0],["static-tos"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,3],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,3],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/tos.hbs",isStrictMode:!1})},6406:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"WjtSXL6W",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[1,[28,[35,1],[[30,0,["model"]]],null]],[1,"\\n"],[13]],[],false,["div","html-safe"]]',moduleName:"discourse/templates/unknown.hbs",isStrictMode:!1})},47047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"k/Sfw7pA",block:'[[[10,"ul"],[14,0,"user-stream"],[12],[1,"\\n "],[8,[39,1],[[24,0,"user-stream"]],[["@posts","@urlPath","@showUserInfo","@additionalItemClasses"],[[30,0,["model"]],"postUrl",false,"user-stream-item"]],null],[1,"\\n"],[13]],[],false,["ul","post-list"]]',moduleName:"discourse/templates/user-activity-pending.hbs",isStrictMode:!1})},50611:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"UxDGuDJC",block:'[[[1,[28,[35,0],["user-invites-page"],null]],[1,"\\n\\n"],[41,[30,0,["canInviteToForum"]],[[[1," "],[8,[39,2],[[24,0,"user-content"]],[["@id","@selector","@action"],["user-content",".user-invite-list tr",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"user-additional-controls"],[12],[1,"\\n"],[41,[30,0,["showSearch"]],[[[1," "],[10,0],[14,0,"user-invite-search"],[12],[1,"\\n "],[10,"form"],[12],[8,[39,7],null,[["@value","@placeholderKey"],[[30,0,["searchTerm"]],"user.invited.search"]],null],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"user-invite-buttons"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-default invite-button"]],[["@icon","@action","@label"],["plus",[30,0,["createInvite"]],"user.invited.create"]],null],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[41,[30,0,["siteSettings","allow_bulk_invite"]],[[[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@label"],["upload",[30,0,["createInviteCsv"]],"user.invited.bulk_invite.text"]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[30,0,["showBulkActionButtons"]],[[[41,[30,0,["inviteExpired"]],[[[41,[30,0,["removedAll"]],[[[1," "],[10,1],[14,0,"removed-all"],[12],[1,"\\n "],[1,[28,[35,10],["user.invited.removed_all"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@icon","@action","@label"],["xmark",[30,0,["destroyAllExpired"]],"user.invited.remove_all"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["invitePending"]],[[[41,[30,0,["reinvitedAll"]],[[[1," "],[10,1],[14,0,"reinvited-all"],[12],[1,"\\n "],[8,[39,8],null,[["@icon","@disabled","@label"],["check",true,"user.invited.reinvited_all"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasEmailInvites"]],[[[1," "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@label"],["arrows-rotate",[30,0,["reinviteAll"]],"user.invited.reinvite_all"]],null],[1,"\\n "]],[]],null]],[]]]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[12],[1,"\\n"],[41,[30,0,["model","invites"]],[[[41,[30,0,["inviteRedeemed"]],[[[1," "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.redeemed_at"],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1," "],[10,"th"],[12],[1,[28,[35,10],["user.last_seen"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.topics_entered"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.posts_read_count"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.time_read"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.days_visited"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","invites"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,19],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[28,[35,20],[[30,1,["user"]]],[["imageSize"],["tiny"]]]]],[]]]]],[1,"\\n "],[8,[39,19],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[30,1,["user","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,21],[[30,1,["redeemed_at"]]],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1," "],[10,"td"],[12],[1,[28,[35,21],[[30,1,["user","last_seen_at"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,22],[[30,1,["user","topics_entered"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,22],[[30,1,["user","posts_read_count"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,23],[[30,1,["user","time_read"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,1],[15,"title",[28,[37,10],["user.invited.days_visited"],null]],[12],[1,[28,[35,24],[[30,1,["user","days_visited"]]],null]],[13],[1,"\\n /\\n "],[10,1],[15,"title",[28,[37,10],["user.invited.account_age_days"],null]],[12],[1,[28,[35,24],[[30,1,["user","days_since_created"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,24],[[30,1,["invite_source"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.sent"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.expires_at"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","invites"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[14,0,"invite-type"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n"],[41,[30,2,["email"]],[[[1," "],[1,[28,[35,25],["envelope"],null]],[1,"\\n "],[1,[30,2,["email"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,25],["link"],null]],[1,"\\n "],[1,[28,[35,10],["user.invited.invited_via_link"],[["key","count","max"],[[30,2,["shortKey"]],[30,2,["redemption_count"]],[30,2,["max_redemptions_allowed"]]]]]],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,2,["groups"]]],null]],null],null,[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[29,["/g/",[30,3,["name"]]]]],[12],[1,[28,[35,25],["users"],null]],[1,"\\n "],[1,[30,3,["name"]]],[13],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,2,["topic"]],[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[30,2,["topic","url"]]],[12],[1,[28,[35,25],["file"],null]],[1," "],[1,[30,2,["topic","title"]]],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[14,0,"invite-updated-at"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.sent"],null]],[13],[1,"\\n "],[1,[28,[35,21],[[30,2,["updated_at"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[14,0,"invite-expires-at"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.expires_at"],null]],[13],[1,"\\n"],[41,[30,0,["inviteExpired"]],[[[1," "],[1,[28,[35,28],[[30,2,["expires_at"]]],null]],[1,"\\n"]],[]],[[[41,[30,2,["expired"]],[[[1," "],[1,[28,[35,10],["user.invited.expired"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,28],[[30,2,["expires_at"]]],null]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,2,["can_delete_invite"]],[[[1," "],[10,"td"],[14,0,"invite-actions"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@title"],["pencil",[28,[37,29],[[30,0,["editInvite"]],[30,2]],null],"user.invited.edit"]],null],[1,"\\n "],[8,[39,8],[[24,0,"cancel"]],[["@icon","@action","@title"],["trash-can",[28,[37,29],[[30,0,["destroyInvite"]],[30,2]],null],[52,[30,2,["destroyed"]],"user.invited.removed","user.invited.remove"]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,30],null,[["@condition"],[[30,0,["invitesLoading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"user-invite-none"],[12],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[1," "],[1,[28,[35,24],[[28,[37,10],["user.invited.bulk_invite.none"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["user.invited.none"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-error invite-error"],[12],[1,"\\n "],[1,[30,0,["model","error"]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],["invite","invite","g"],false,["body-class","if","load-more","action","section","div","form","text-field","d-button","span","i18n","table","thead","tr","th","tbody","each","-track-array","td","link-to","avatar","format-date","number","format-duration","html-safe","d-icon","p","a","raw-date","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-invited-show.hbs",isStrictMode:!1})},93057:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"c+Zsc03G",block:'[[[41,[30,0,["can_see_invite_details"]],[[[1," "],[1,[28,[35,1],["user-invites-page"],null]],[1,"\\n\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,3],null,[["@ariaLabel"],["User secondary - invites"]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","pending",[30,0,["pendingLabel"]]]],null],[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","expired",[30,0,["expiredLabel"]]]],null],[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","redeemed",[30,0,["redeemedLabel"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,6],null,null],null,null,null]],[],false,["if","body-class","div","horizontal-overflow-nav","nav-item","component","-outlet"]]',moduleName:"discourse/templates/user-invited.hbs",isStrictMode:!1})},85718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"mtqaQUIq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["categories.latest"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1," "],[8,[39,1],[[24,0,"user-nav__messages-group-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.new","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["circle-exclamation"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.unread","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["circle-plus"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.archive","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["box-archive"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["user.messages.archive"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[40,[[[1," "],[8,[39,8],null,[["@levelId","@onChange"],[[30,0,["group","group_user","notification_level"]],[30,0,["changeGroupNotificationLevel"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,7],[[30,0,["navigationControlsButton"]]],null]],[1,"\\n"],[10,0],[15,0,[29,["group-messages group-",[30,0,["group","name"]]]]],[12],[1,"\\n "],[46,[28,[37,11],null,null],null,null,null],[1,"\\n"],[13]],[],false,["user-nav/messages-secondary-nav","d-navigation-item","d-icon","span","i18n","if","in-element","-in-el-null","group-notifications-tracking","div","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-group.hbs",isStrictMode:!1})},59431:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"MphownAp",block:'[[[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["tagging.tags"],null]],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by"],null]],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortByCount"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by_count"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortById"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by_name"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"hr"],[12],[13],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,8],null,[["@tags","@sortProperties","@titleKey","@isPrivateMessage","@tagsForUser"],[[30,0,["model"]],[30,0,["sortProperties"]],"tagging.all_tags",true,[30,0,["tagsForUser"]]]],null],[1,"\\n"]],[]],null]],[],false,["div","h2","i18n","span","if","a","on","hr","tag-list"]]',moduleName:"discourse/templates/user-private-messages-tags-index.hbs",isStrictMode:!1})},96500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"SN0Ntl3u",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n "],[10,"li"],[14,0,"tags"],[12],[1,"\\n "],[8,[39,2],null,[["@route"],["userPrivateMessages.tags.index"]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["tag"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,5],["user.messages.all_tags"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["tagName"]],[[[1," "],[10,"li"],[14,0,"archive"],[12],[1,"\\n "],[8,[39,2],null,[["@route","@model"],["userPrivateMessages.tags.show",[30,0,["tagName"]]]],[["default"],[[[[1,"\\n "],[1,[30,0,["tagName"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[46,[28,[37,8],null,null],null,null,null]],[],false,["user-nav/messages-secondary-nav","li","link-to","d-icon","span","i18n","if","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-tags.hbs",isStrictMode:!1})},94902:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"zaH7p0De",block:'[[[41,[30,0,["showWarningsWarning"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],[[28,[37,3],["admin.user.warnings_list_warning"],null]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,4],null,null,[["default"],[[[[1,"\\n "],[8,[39,5],[[24,0,"user-nav__messages-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["categories.latest"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__messages-sent"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.sent","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.messages.sent"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1," "],[8,[39,5],[[24,0,"user-nav__messages-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.new","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["circle-exclamation"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__messages-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.unread","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["circle-plus"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"user-nav__messages-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.archive","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["box-archive"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.messages.archive"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[46,[28,[37,9],null,null],null,null,null]],[],false,["if","div","html-safe","i18n","user-nav/messages-secondary-nav","d-navigation-item","d-icon","span","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-user.hbs",isStrictMode:!1})},27037:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"aT+2E99c",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["noContent"]],[[[1," "],[8,[39,2],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,3],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list .topic-list-item",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["model","loadingBefore"]],[30,0,["incomingCount"]]],null],[[[1," "],[10,0],[14,0,"show-mores"],[12],[1,"\\n "],[11,3],[24,"tabindex","0"],[24,6,""],[16,0,[29,["alert alert-info clickable\\n ",[52,[30,0,["model","loadingBefore"]],"loading"]]]],[4,[38,10],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,11],null,[["@key","@count"],["topic_count_latest",[28,[37,7],[[30,0,["model","loadingBefore"]],[30,0,["incomingCount"]]],null]]],null],[1,"\\n"],[41,[30,1,["loadingBefore"]],[[[1," "],[1,[28,[35,12],null,[["size"],["small"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,[["@topicList","@hideCategory","@showPosters","@tagsForUser","@canBulkSelect","@bulkSelectHelper","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["model"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["tagsForUser"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],true]],null],[1,"\\n\\n "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n "],[8,[39,14],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],["@model"],false,["if","hide-application-footer","empty-state","load-more","action","topic-dismiss-buttons","route-action","or","div","a","on","count-i18n","loading-spinner","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-topics-list.hbs",isStrictMode:!1})},99359:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"R2OsCuE5",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-user-profile","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[10,0],[15,0,[29,["container\\n ",[52,[30,0,["viewingSelf"]],"viewing-self"],"\\n ",[52,[30,0,["model","profile_hidden"]],"profile-hidden"],"\\n ",[30,0,["primaryGroup"]]]]],[12],[1,"\\n "],[10,"section"],[14,0,"user-main"],[12],[1,"\\n "],[10,3],[14,6,"#user-content"],[14,1,"user-nav-skip-link"],[14,0,"skip-link__user-nav"],[12],[1,"\\n "],[1,[28,[35,6],["skip_user_nav"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[15,0,[29,[[52,[30,0,["collapsedInfo"]],"collapsed-info"],"\\n about\\n ",[52,[30,0,["hasProfileBackgroundUrl"]],"has-background","no-background"]]]],[12],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[41,[30,0,["showStaffCounters"]],[[[1," "],[10,0],[14,0,"staff-counters"],[12],[1,"\\n"],[41,[30,0,["model","number_of_flags_given"]],[[[1," "],[10,0],[12],[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.flags_given"],[["className","count"],["helpful-flags",[30,0,["model","number_of_flags_given"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_flagged_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"all","ReviewableFlaggedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.flagged_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_flagged_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_rejected_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"rejected","ReviewableQueuedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.rejected_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_rejected_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","number_of_deleted_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@model"],["user.deletedPosts",[30,0,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.deleted_posts"],[["className","count"],["deleted-posts",[30,0,["model","number_of_deleted_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_suspensions"]],[[[1," "],[10,0],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["showSuspensions"]]],null],[12],[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.suspensions"],[["className","count"],["suspensions",[30,0,["model","number_of_suspensions"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","warnings_received_count"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@model"],["userPrivateMessages.user.warnings",[30,0,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.warnings_received"],[["className","count"],["warnings-received",[30,0,["model","warnings_received_count"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"user-profile-image"],[15,5,[30,0,["model","profileBackgroundUrl"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"details"],[12],[1,"\\n "],[10,0],[14,0,"primary"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["before-user-profile-avatar",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,11],null,[["@user","@tagName"],[[30,0,["model"]],""]],null],[1,"\\n "],[10,0],[14,0,"primary-textual"],[12],[1,"\\n "],[10,0],[14,0,"user-profile-names"],[12],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"full-name","username"],"\\n user-profile-names__primary"]]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["model","name"]],[28,[37,12],[[30,0,["model","username"]]],null]]],[1,"\\n "],[1,[28,[35,13],[[30,0,["model"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n"],[41,[30,0,["model","status"]],[[[1," "],[8,[39,14],null,[["@status"],[[30,0,["model","status"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"username","full-name"],"\\n user-profile-names__secondary"]]],[12],[41,[30,0,["nameFirst"]],[[[1,[30,0,["model","username"]]]],[]],[[[1,[30,0,["model","name"]]]],[]]],[13],[1,"\\n"],[41,[30,0,["model","staged"]],[[[1," "],[10,0],[14,0,"staged user-profile-names__secondary"],[12],[1,[28,[35,6],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","title"]],[[[1," "],[10,0],[14,0,"user-profile-names__title"],[12],[1,[30,0,["model","title"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-post-names","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1," "],[10,0],[14,0,"featured-topic user-profile__featured-topic"],[12],[1,"\\n "],[10,1],[15,"title",[28,[37,6],["user.featured_topic"],null]],[12],[1,"\\n "],[1,[28,[35,16],["book"],null]],[13],[8,[39,9],null,[["@route","@models"],["topic",[28,[37,17],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,18],[[28,[37,8],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"location-and-website user-profile__location-and-website"],[12],[1,"\\n "],[41,[30,0,["model","location"]],[[[10,0],[14,0,"user-profile-location"],[12],[1,[28,[35,16],["location-dot"],null]],[1,[30,0,["model","location"]]],[13]],[]],null],[1,"\\n"],[41,[30,0,["model","website_name"]],[[[1," "],[10,0],[14,0,"user-profile-website"],[12],[1,"\\n"],[1," "],[1,[28,[35,16],["globe"],null]],[41,[30,0,["linkWebsite"]],[[[10,3],[15,6,[30,0,["model","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,"title",[30,0,["model","website"]]],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-location-and-website","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"bio"],[12],[1,"\\n"],[41,[30,0,["model","suspended"]],[[[1," "],[10,0],[14,0,"suspended"],[12],[1,"\\n "],[1,[28,[35,16],["ban"],null]],[1,"\\n "],[10,"b"],[12],[1,"\\n"],[41,[30,0,["model","suspendedForever"]],[[[1," "],[1,[28,[35,6],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.suspended_notice"],[["date"],[[30,0,["model","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"],[41,[30,0,["model","suspend_reason"]],[[[1," "],[10,"b"],[12],[1,[28,[35,6],["user.suspended_reason"],null]],[13],[1,"\\n "],[1,[30,0,["model","suspend_reason"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isNotSuspendedOrIsStaff"]],[[[1," "],[8,[39,21],null,null,[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[30,0,["model","bio_cooked"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1," "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1," "],[10,0],[15,0,[29,["public-user-field ",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[13],[1,":\\n "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,1,["value"]]],null]],null],null,[[[1," "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,"\\n"],[41,[30,1,["field","searchable"]],[[[1," "],[8,[39,9],null,[["@route","@query"],["users",[28,[37,1],null,[["name"],[[30,2]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-public-fields","div",[28,[37,1],null,[["publicUserFields","model"],[[30,0,["publicUserFields"]],[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-primary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"controls"],[12],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[41,[30,0,["model","can_send_private_message_to_user"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,26],[[24,0,"btn-primary compose-pm"]],[["@action","@icon","@label"],[[28,[37,27],[[28,[37,28],["composePrivateMessage"],null],[30,0,["model"]]],null],"envelope","user.private_message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMuteOrIgnoreUser"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,29],null,[["@user","@value","@updateNotificationLevel"],[[30,0,["model"]],[30,0,["userNotificationLevel"]],[28,[37,30],[[30,0],"updateNotificationLevel"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTopLevelAdminButton"]],[[[1," "],[10,"li"],[12],[10,3],[15,6,[30,0,["model","adminPath"]]],[14,0,"btn btn-default user-admin"],[12],[1,[28,[35,16],["wrench"],null]],[10,1],[14,0,"d-button-label"],[12],[1,[28,[35,6],["admin.user.show_admin_profile"],null]],[13],[13],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-controls","li",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["canExpandProfile"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,26],[[24,"aria-controls","collapsed-info-panel"],[16,"aria-expanded",[52,[30,0,["collapsedInfoState","isExpanded"]],"true","false"]],[24,0,"btn-default"]],[["@ariaLabel","@label","@icon","@action"],[[30,0,["collapsedInfoState","ariaLabel"]],[28,[37,31],["user.",[30,0,["collapsedInfoState","label"]]],null],[30,0,["collapsedInfoState","icon"]],[28,[37,30],[[30,0],[30,0,["collapsedInfoState","action"]]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-above-collapsed-info",[28,[37,1],null,[["model","collapsedInfo"],[[30,0,["model"]],[30,0,["collapsedInfo"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[1," "],[10,0],[14,0,"secondary"],[14,1,"collapsed-info-panel"],[12],[1,"\\n "],[10,"dl"],[12],[1,"\\n"],[41,[30,0,["model","created_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"created-at"],[12],[1,[28,[35,6],["user.created"],null]],[13],[10,"dd"],[14,0,"created-at"],[12],[1,[28,[35,35],[[30,0,["model","created_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_posted_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"last-posted-at"],[12],[1,[28,[35,6],["user.last_posted"],null]],[13],[10,"dd"],[14,0,"last-posted-at"],[12],[1,[28,[35,35],[[30,0,["model","last_posted_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_seen_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"last-seen-at"],[12],[1,[28,[35,6],["user.last_seen"],null]],[13],[10,"dd"],[14,0,"last-seen-at"],[12],[1,[28,[35,35],[[30,0,["model","last_seen_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","profile_view_count"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"profile-view-count"],[12],[1,[28,[35,6],["views"],null]],[13],[10,"dd"],[14,0,"profile-view-count"],[12],[1,[30,0,["model","profile_view_count"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","invited_by"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"invited-by"],[12],[1,[28,[35,6],["user.invited_by"],null]],[13],[10,"dd"],[14,0,"invited-by"],[12],[8,[39,9],null,[["@route","@model"],["user",[30,0,["model","invited_by"]]]],[["default"],[[[[1,[30,0,["model","invited_by","username"]]]],[]]]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasTrustLevel"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"trust-level"],[12],[1,[28,[35,6],["user.trust_level"],null]],[13],[10,"dd"],[14,0,"trust-level"],[12],[1,[30,0,["model","trustLevel","name"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"email"],[12],[1,[28,[35,6],["user.email.title"],null]],[13],[1,"\\n "],[10,"dd"],[14,0,"email"],[15,"title",[30,0,["model","email"]]],[12],[1,"\\n"],[41,[30,0,["model","email"]],[[[1," "],[1,[30,0,["model","email"]]],[1,"\\n"]],[]],[[[1," "],[8,[39,26],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,27],[[28,[37,28],["checkEmail"],null],[30,0,["model"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","displayGroups"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"groups"],[12],[1,[28,[35,6],["groups.title"],[["count"],[[30,0,["model","displayGroups","length"]]]]]],[13],[1,"\\n "],[10,"dd"],[14,0,"groups"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,0,["model","displayGroups"]]],null]],null],null,[[[1," "],[10,1],[12],[8,[39,9],[[24,0,"group-link"]],[["@route","@model"],["group",[30,3,["name"]]]],[["default"],[[[[1,[30,3,["name"]]]],[]]]]],[13],[1,"\\n"]],[3]],null],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["groups",[28,[37,1],null,[["username"],[[30,0,["model","username"]]]]]]],[["default"],[[[[1,"\\n ...\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteUser"]],[[[1," "],[10,0],[14,0,"pull-right"],[12],[8,[39,26],[[24,0,"btn-danger btn-delete-user"]],[["@action","@icon","@label"],[[28,[37,30],[[30,0],"adminDelete"],null],"triangle-exclamation","user.admin_delete"]],null],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-secondary",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"new-user-wrapper"],[12],[1,"\\n "],[8,[39,36],null,[["@user","@isStaff","@isMobileView","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@currentParentRoute","@showRead","@showDrafts","@showBookmarks"],[[30,0,["model"]],[30,0,["currentUser","staff"]],[30,0,["site","mobileView"]],[30,0,["showActivityTab"]],[30,0,["showNotificationsTab"]],[30,0,["showPrivateMessages"]],[30,0,["canInviteToForum"]],[30,0,["showBadges"]],[30,0,["currentParentRoute"]],[30,0,["showRead"]],[30,0,["showDrafts"]],[30,0,["showBookmarks"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"new-user-content-wrapper"],[12],[1,"\\n "],[46,[28,[37,38],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["uf","v","group"],false,["plugin-outlet","hash","div","if","section","a","i18n","unless","html-safe","link-to","on","user-profile-avatar","format-username","user-status","user-status-message","span","d-icon","array","replace-emoji","b","br","html-with-links","each","-track-array","ul","li","d-button","fn","route-action","user-notifications-dropdown","action","concat","dl","dt","dd","bound-date","user-nav","component","-outlet"]]',moduleName:"discourse/templates/user.hbs",isStrictMode:!1})},64147:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"zQPGUWkj",block:'[[[1,[28,[35,0],["user-activity-page"],null]],[1,"\\n"],[8,[39,1],null,[["@name"],["user-activity-navigation-wrapper"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,3],null,[["@ariaLabel"],["User secondary - activity"]],[["default"],[[[[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-all"]],[["@route","@ariaCurrentContext"],["userActivity.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,4],[[24,0,"user-nav__activity-topics"]],[["@route","@ariaCurrentContext"],["userActivity.topics","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["list-ul"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.4"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-replies"]],[["@route","@ariaCurrentContext"],["userActivity.replies","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showRead"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-read"],[16,"title",[28,[37,7],["user.read_help"],null]]],[["@route","@ariaCurrentContext"],["userActivity.read","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["clock-rotate-left"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user.read"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["user","showDrafts"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-drafts"]],[["@route","@ariaCurrentContext"],["userActivity.drafts","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["draftLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[30,0,["model","pending_posts_count"]],0],null],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-pending"]],[["@route","@ariaCurrentContext"],["userActivity.pending","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["clock"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["pendingLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-likes"]],[["@route","@ariaCurrentContext"],["userActivity.likesGiven","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.1"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showBookmarks"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-bookmarks"]],[["@route","@ariaCurrentContext"],["userActivity.bookmarks","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["bookmark"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.3"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-activity-bottom","li",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","if","gt","hash","section","component","-outlet"]]',moduleName:"discourse/templates/user/activity.hbs",isStrictMode:!1})},35908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"NQWGmoJ/",block:'[[[1,[28,[35,0],["user-badges-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["user-badges-content",[28,[37,3],null,[["sortedBadges","maxFavBadges","favoriteBadges","canFavoriteMoreBadges","favorite"],[[30,0,["sortedBadges"]],[30,0,["siteSettings","max_favorite_badges"]],[30,0,["favoriteBadges"]],[30,0,["canFavoriteMoreBadges"]],[30,0,["favorite"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["siteSettings","max_favorite_badges"]],[[[1," "],[10,2],[14,0,"favorite-count"],[12],[1,"\\n "],[1,[28,[35,6],["badges.favorite_count"],[["count","max"],[[30,0,["favoriteBadges","length"]],[30,0,["siteSettings","max_favorite_badges"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["sortedBadges"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@badge","@count","@canFavorite","@isFavorite","@username","@canFavoriteMoreBadges","@onFavoriteClick","@filterUser"],[[30,1,["badge"]],[30,1,["count"]],[30,1,["can_favorite"]],[30,1,["is_favorite"]],[30,0,["username"]],[30,0,["canFavoriteMoreBadges"]],[28,[37,11],[[30,0],"favorite",[30,1]],null],"true"]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,2],null,[["@name","@outletArgs"],["after-user-profile-badges",[28,[37,3],null,[["user"],[[30,0,["user","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["ub"],false,["body-class","section","plugin-outlet","hash","if","p","i18n","div","each","-track-array","badge-card","action"]]',moduleName:"discourse/templates/user/badges.hbs",isStrictMode:!1})},36133:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"ZvQa53AV",block:'[[[1,[28,[35,0],["user-activity-bookmarks-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName"],["above-user-bookmarks","div"]],null],[1,"\\n\\n"],[41,[30,0,["permissionDenied"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,5],["bookmarks.list_permission_denied"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["userDoesNotHaveBookmarks"]],[[[1," "],[8,[39,6],null,[["@title","@body"],[[28,[37,5],["user.no_bookmarks_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"inline-form full-width bookmark-search-form"],[12],[1,"\\n "],[8,[39,7],[[16,"placeholder",[28,[37,5],["bookmarks.search_placeholder"],null]],[24,1,"bookmark-search"],[24,"autocomplete","off"]],[["@type","@value","@enter"],["text",[30,0,["searchTerm"]],[30,0,["search"]]]],null],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon"],[[30,0,["search"]],"magnifying-glass"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["nothingFound"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,5],["user.no_bookmarks_search"],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,9],null,[["@bulkSelectHelper","@loadMore","@reload","@loadingMore","@content"],[[30,0,["bulkSelectHelper"]],[28,[37,10],[[30,0],"loadMore"],null],[28,[37,10],[[30,0],"reload"],null],[30,0,["loadingMore"]],[30,0,["model","bookmarks"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]],[]]]],[]]]]]],[],false,["body-class","conditional-loading-spinner","plugin-outlet","if","div","i18n","empty-state","input","d-button","bookmark-list","action"]]',moduleName:"discourse/templates/user/bookmarks.hbs",isStrictMode:!1})},8136:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"KLqkLbTq",block:'[[[1,[28,[35,0],["user-messages-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-above-navigation",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[10,"ol"],[14,0,"category-breadcrumb"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,6],null,[["@content","@value","@onChange"],[[30,0,["messagesDropdownContent"]],[30,0,["messagesDropdownValue"]],[30,0,["onMessagesDropdownChange"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],[[24,1,"user-navigation-secondary__horizontal-nav"],[24,0,"messages-nav"]],[["@ariaLabel"],["User secondary - messages"]],null],[1,"\\n\\n "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["currentUser","admin"]],[[[1," "],[8,[39,9],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[14,1,"navigation-controls__button"],[12],[13],[1,"\\n\\n"],[41,[30,0,["showNewPM"]],[[[1," "],[8,[39,11],[[24,0,"btn-primary new-private-message"]],[["@action","@icon","@label"],[[28,[37,12],["composePrivateMessage"],null],"envelope","user.new_private_message"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-controls-bottom",[28,[37,2],null,[["showNewPM"],[[30,0,["showNewPM"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,15],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","hash","div","ol","li","user-nav/messages-dropdown","horizontal-overflow-nav","if","bulk-select-toggle","span","d-button","route-action","section","component","-outlet"]]',moduleName:"discourse/templates/user/messages.hbs",isStrictMode:!1})},85809:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"pkwTTyDw",block:'[[[41,[30,0,["model","error"]],[[[1," "],[10,0],[14,0,"item error"],[12],[1,"\\n"],[41,[30,0,["model","forbidden"]],[[[1," "],[1,[28,[35,2],["errors.reasons.forbidden"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["errors.desc.unknown"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["doesNotHaveNotifications"]],[[[1," "],[8,[39,3],null,[["@name"],["user-notifications-empty-state"]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@title","@body"],[[28,[37,2],["user.no_notifications_page_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,[["@name"],["user-notifications-above-filter"]],null],[1,"\\n "],[10,0],[14,0,"user-notifications-filter"],[12],[1,"\\n "],[8,[39,5],null,[["@value","@onChange"],[[30,0,["filter"]],[30,0,["updateFilter"]]]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["user-notifications-after-filter",[28,[37,6],null,[["items"],[[30,0,["items"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["nothingFound"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],["notifications.empty"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[30,0,["listContainerClassNames"]]],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["items"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["user-notifications-list-bottom",[28,[37,6],null,[["controller"],[[30,0]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],["item"],false,["if","div","i18n","plugin-outlet","empty-state","notifications-filter","hash","each","-track-array","user-menu/menu-item","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications-index.hbs",isStrictMode:!1})},24650:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"+qXNnTt1",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["user-notifications-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,4],null,[["@ariaLabel"],["User secondary - notifications"]],[["default"],[[[[1,"\\n "],[8,[39,5],[[24,0,"user-nav__notifications-all"]],[["@route","@ariaCurrentContext"],["userNotifications.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["bell"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-responses"]],[["@route","@ariaCurrentContext"],["userNotifications.responses","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-likes"]],[["@route","@ariaCurrentContext"],["userNotifications.likesReceived","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.2"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[8,[39,5],[[24,0,"user-nav__notifications-mentions"]],[["@route","@ariaCurrentContext"],["userNotifications.mentions","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["at"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.7"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"user-nav__notifications-edits"]],[["@route","@ariaCurrentContext"],["userNotifications.edits","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.11"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-links"]],[["@route","@ariaCurrentContext"],["userNotifications.links","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["link"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.17"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-notifications-bottom","li",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1," "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"btn-default dismiss-notifications"]],[["@title","@action","@label","@icon","@disabled"],["user.dismiss_notifications_tooltip",[28,[37,12],[[30,0],"resetNew"],null],"user.dismiss_notifications","check",[30,0,["allNotificationsRead"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,14],[[24,0,"notification-history user-stream"]],[["@selector","@action"],[".user-stream .notification",[28,[37,12],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[46,[28,[37,16],null,null],null,null,null],[1,"\\n "],[8,[39,17],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","plugin-outlet","hash","d-button","action","section","load-more","component","-outlet","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications.hbs",isStrictMode:!1})},60707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"s45hbRI7",block:'[[[8,[39,0],null,[["@stream"],[[30,0,["model"]]]],null]],[],false,["user-stream"]]',moduleName:"discourse/templates/user/posts.hbs",isStrictMode:!1})},59904:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"AhWKlb1x",block:'[[[10,2],[14,0,"user-profile-hidden"],[12],[1,[28,[35,1],["user.profile_hidden"],null]],[13]],[],false,["p","i18n"]]',moduleName:"discourse/templates/user/profile-hidden.hbs",isStrictMode:!1})},49240:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"xz3qlGnY",block:'[[[41,[30,0,["model","stream","noContent"]],[[[1," "],[8,[39,1],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@stream"],[[30,0,["model","stream"]]]],null]],[],false,["if","empty-state","user-stream"]]',moduleName:"discourse/templates/user/stream.hbs",isStrictMode:!1})},55678:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"l/UhIe5Y",block:'[[[1,[28,[35,0],["user-summary-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["above-user-summary-stats",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n"],[41,[30,0,["model","can_see_summary_stats"]],[[[1," "],[10,0],[14,0,"top-section stats-section"],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,6],["user.summary.stats"],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[14,0,"stats-days-visited"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","days_visited"]],"user.summary.days_visited"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"stats-time-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label","@rawTitle","@type"],[[30,0,["timeRead"]],"user.summary.time_read",[28,[37,6],["user.summary.time_read_title"],[["duration"],[[30,0,["timeReadMedium"]]]]],"string"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1," "],[10,"li"],[14,0,"stats-recent-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label","@rawTitle","@type"],[[30,0,["recentTimeRead"]],"user.summary.recent_time_read",[28,[37,6],["user.summary.recent_time_read_title"],[["duration"],[[30,0,["recentTimeReadMedium"]]]]],"string"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"li"],[14,0,"stats-topics-entered"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topics_entered"]],"user.summary.topics_entered"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"stats-posts-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","posts_read_count"]],"user.summary.posts_read"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-likes-given linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.likesGiven"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-likes-given"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,"li"],[14,0,"stats-likes-received"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_received"]],"heart","user.summary.likes_received"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","bookmark_count"]],[[[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-bookmark-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.bookmarks"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-bookmark-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-topic-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.topics"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-topic-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-post-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.replies"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-post-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-summary-stat","li",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["below-user-summary-stats",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"top-section replies-and-topics-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"replies-section pull-left"]],[["@title"],["top_replies"]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@type","@items","@user"],["replies",[30,0,["model","replies"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[8,[39,13],null,[["@createdAt","@topic","@likes","@url"],[[30,1,["createdAt"]],[30,1,["topic"]],[30,1,["like_count"]],[30,1,["url"]]]],null],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"topics-section pull-right"]],[["@title"],["top_topics"]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@type","@items","@user"],["topics",[30,0,["model","topics"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[8,[39,13],null,[["@createdAt","@topic","@likes","@url"],[[30,2,["created_at"]],[30,2],[30,2,["like_count"]],[30,2,["url"]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"top-section links-and-replied-to-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"links-section pull-left"]],[["@title"],["top_links"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","links","length"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","links"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n"],[1," "],[10,3],[14,0,"domain"],[15,6,[30,3,["url"]]],[15,"title",[30,3,["title"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["user","removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[15,"data-clicks",[30,3,["clicks"]]],[15,"aria-label",[28,[37,6],["topic_map.clicks"],[["count"],[[30,3,["clicks"]]]]]],[12],[1,"\\n "],[1,[28,[35,18],[[30,3,["url"]]],null]],[1,"\\n "],[13],[1,"\\n"],[1," "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,3],[15,6,[30,3,["post_url"]]],[12],[1,"\\n "],[1,[28,[35,20],[[30,3,["topic","fancyTitle"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],["user.summary.no_links"],null]],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"summary-user-list replied-section pull-right"]],[["@title"],["most_replied_to_users"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_replies",[30,0,["model","most_replied_to_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,4],"reply","replies"]],null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"top-section most-liked-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"summary-user-list liked-by-section pull-left"]],[["@title"],["most_liked_by"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_by_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,5],"heart","likes"]],null],[1,"\\n "]],[5]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"summary-user-list liked-section pull-right"]],[["@title"],["most_liked_users"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,6],"heart","likes"]],null],[1,"\\n "]],[6]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","top_categories","length"]],[[[1," "],[10,0],[14,0,"top-section top-categories-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"summary-category-list pull-left"]],[["@title"],["top_categories"]],[["default"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[14,0,"category-link"],[12],[13],[1,"\\n "],[10,"th"],[14,0,"topic-count"],[12],[1,[28,[35,6],["user.summary.topics"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"reply-count"],[12],[1,[28,[35,6],["user.summary.replies"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","top_categories"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["user-summary-top-category-row",[28,[37,3],null,[["category","user"],[[30,7],[30,0,["user"]]]]]]],[["default"],[[[[1,"\\n "],[10,"td"],[14,0,"category-link"],[12],[1,"\\n "],[1,[28,[35,30],[[30,7]],[["allowUncategorized","hideParent"],["true",false]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"topic-count"],[12],[1,"\\n "],[8,[39,31],null,[["@user","@category","@searchOnlyFirstPosts","@count"],[[30,0,["user"]],[30,7],true,[30,7,["topic_count"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reply-count"],[12],[1,"\\n "],[8,[39,31],null,[["@user","@category","@searchOnlyFirstPosts","@count"],[[30,0,["user"]],[30,7],false,[30,7,["post_count"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[7]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[10,0],[14,0,"top-section badges-section"],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,6],["user.summary.top_badges"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","badges"]],[[[1," "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","badges"]]],null]],null],null,[[[1," "],[8,[39,32],null,[["@badge","@count","@username"],[[30,8],[30,8,["count"]],[30,0,["user","username_lower"]]]],null],[1,"\\n"]],[8]],null],[1," "],[8,[39,2],null,[["@name","@outletArgs"],["after-user-summary-badges",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],["user.summary.no_badges"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["moreBadges"]],[[[1," "],[8,[39,10],[[24,0,"more"]],[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["user.summary.more_badges"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[13]],["reply","topic","link","user","user","user","category","badge"],false,["body-class","div","plugin-outlet","hash","if","h3","i18n","ul","li","user-stat","link-to","user-summary-section","user-summary-topics-list","user-summary-topic","each","-track-array","a","unless","shorten-url","br","html-safe","p","user-summary-users-list","user-summary-user","table","thead","th","tbody","tr","td","category-link","user-summary-category-search","badge-card"]]',moduleName:"discourse/templates/user/summary.hbs",isStrictMode:!1})},26900:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"1riOUS+7",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["users-page"],null]],[1,"\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,4],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"users-directory directory"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["users-top","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-controls"],[12],[1,"\\n "],[10,0],[14,0,"period-controls"],[12],[1,"\\n "],[8,[39,10],null,[["@period","@onChange","@fullDay"],[[30,0,["period"]],[28,[37,11],[[28,[37,12],[[30,0,["period"]]],null]],null],false]],null],[1,"\\n"],[41,[30,0,["lastUpdatedAt"]],[[[1," "],[10,0],[14,0,"directory-last-updated"],[12],[1,"\\n "],[1,[28,[35,13],["directory.last_updated"],null]],[1,"\\n "],[1,[30,0,["lastUpdatedAt"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"inline-form"],[12],[1,"\\n "],[10,"label"],[14,0,"total-rows"],[12],[1,"\\n"],[41,[30,0,["model","totalRows"]],[[[1," "],[1,[28,[35,13],["directory.total_rows"],[["count"],[[30,0,["model","totalRows"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,15],[[16,"placeholder",[28,[37,13],["directory.filter_name"],null]],[24,0,"filter-name no-blur"],[4,[38,17],["input",[28,[37,18],[[30,0,["onUsernameFilterChanged"]]],null]],null]],[["@value"],[[28,[37,16],[[30,0,["nameInput"]]],null]]],null],[1,"\\n"],[41,[30,0,["showGroupFilter"]],[[[1," "],[8,[39,19],[[24,0,"directory-group-selector"]],[["@value","@content","@onChange","@options"],[[30,0,["group"]],[30,0,["groupOptions"]],[30,0,["groupChanged"]],[28,[37,9],null,[["none"],["directory.group.all"]]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[39,20],[[24,0,"btn-default open-edit-columns-btn"]],[["@icon","@action"],["wrench",[30,0,["showEditColumnsModal"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,8],null,[["@name","@outletArgs"],["users-directory-controls",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,21],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","length"]],[[[1," "],[8,[39,22],null,[["@items","@columns","@showTimeRead","@order","@updateOrder","@asc","@updateAsc"],[[30,0,["model"]],[30,0,["columns"]],[30,0,["showTimeRead"]],[30,0,["order"]],[28,[37,11],[[28,[37,12],[[30,0,["order"]]],null]],null],[30,0,["asc"]],[28,[37,11],[[28,[37,12],[[30,0,["asc"]]],null]],null]]],null],[1,"\\n "],[8,[39,21],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["name"]],[[[1," "],[1,[28,[35,13],["directory.no_results_with_search"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,13],["directory.no_results.body"],null]],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[1,[28,[35,24],[[28,[37,13],["directory.no_results.extra_body"],[["basePath"],[[28,[37,25],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","section","load-more","action","div","span","plugin-outlet","hash","period-chooser","fn","mut","i18n","label","input","readonly","on","with-event-value","combo-box","d-button","conditional-loading-spinner","directory-table","p","html-safe","base-path"]]',moduleName:"discourse/templates/users.hbs",isStrictMode:!1})},54429:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(85671).createTemplateFactory)({id:"PUjEJ+mK",block:"[[],[],false,[]]",moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.6b33fa47/node_modules/@ember/legacy-built-in-components/templates/empty.hbs",isStrictMode:!1})},99276:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(e,t,i){return void 0===i?"/admin/email/templates":`/admin/email/templates/${i}`}}},68598:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{appendQueryParams(e,t){return super.appendQueryParams(e,t,".json")}}},98164:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(e,t,i){return this.appendQueryParams("/tags/list",i)}}},39298:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{cache=!0}},71909:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{jsonMode=!0;pathFor(e,t,i){return`/posts/${i.username}/pending.json`}}},98247:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(6319),n=i(6864);class r extends s.default{find(e,t,i){let{postId:s}=i;return(0,n.ajax)(`/posts/${s}/reply-history`).then(e=>({post_reply_histories:e}))}}},98262:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(6319),n=i(6864);class r extends s.default{find(e,t,i){let{postId:s,after:r=1}=i;return(0,n.ajax)(`/posts/${s}/replies?after=${r||1}`).then(e=>({post_replies:e}))}}},98379:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(94480),n=i(6319),r=i(6864);class o extends n.default{find(e,t,i){return super.find(e,t,i).then(function(e){return{post:e}})}createRecord(e,t,i){let o=(0,s.underscore)(t);return i.nested_post=!0,(0,r.ajax)(this.pathFor(e,t),{type:"POST",data:i}).then(function(e){return new n.Result(e[o],e)})}}},53707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{jsonMode=!0;pathFor(e,t,i){return`/pub/by-topic/${i}`}}},6319:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Result:()=>l,default:()=>u});var s=i(35533),n=i(94480),r=i(6864),o=i(43410);let a=["plugin","theme","embeddable-host","web-hook","web-hook-event","flagged-topic"];function l(e,t){this.payload=e,this.responseJson=t,this.target=null}function c(e){if(404===e.status)throw Error("404: "+e.responseText);throw e}class u extends s.default{primaryKey="id";jsonMode=!1;storageKey(e,t,i){if(i&&i.cacheKey)return i.cacheKey;let s=Math.abs((0,o.hashString)(JSON.stringify(t)));return`${e}_${s}`}basePath(e,t){return a.includes(t.replace("_","-"))?"/admin/":"/"}appendQueryParams(e,t,i){if(t){if("object"!=typeof t)return`${e}/${encodeURIComponent(t)}${i||""}`;{let s=new URLSearchParams;for(let[e,i]of Object.entries(t))i&&s.set(e,i);let n=s.toString();if(n)return`${e}${i||""}?${n}`}}return e}pathFor(e,t,i){let s=this.basePath(e,t,i)+(0,n.underscore)(e.pluralize(this.apiNameFor(t)));return this.appendQueryParams(s,i)}apiNameFor(e){return e}findAll(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i)).catch(c)}find(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i)).catch(c)}findStale(e,t,i,s){if(this.cached)return this.cached[this.storageKey(t,i,s)]}cacheFind(e,t,i,s,n){this.cached=this.cached||{},this.cached[this.storageKey(t,i,s)]=n}getPayload(e,t){let i={method:e,data:t};return this.jsonMode&&(i.contentType="application/json",i.data=JSON.stringify(t)),i}update(e,t,i,s){let o={},a=(0,n.underscore)(this.apiNameFor(t));return o[a]=s,(0,r.ajax)(this.pathFor(e,t,i),this.getPayload("PUT",o)).then(function(e){return new l(e[a],e)})}createRecord(e,t,i){let s={},o=(0,n.underscore)(this.apiNameFor(t));return s[o]=i,(0,r.ajax)(this.pathFor(e,t),this.getPayload("POST",s)).then(function(e){return new l(e[o],e)})}destroyRecord(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i.get(this.primaryKey)),{type:"DELETE"})}}},14811:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{jsonMode=!0;pathFor(e,t,i){return`/review/${i}/explain.json`}}},16531:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(){return"/review/settings"}}},70791:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(){return"/review/topics"}}},43369:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{jsonMode=!0;pathFor(e,t,i){return this.appendQueryParams("/review",i)}}},17814:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(e,t,i){return"/tag/"+i+"/info"}}},45233:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(e,t,i){return"/tag/"+i+"/notifications"}}},39829:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6319);class n extends s.default{pathFor(e,t,i){return i?`/tag/${i}`:"/tags"}}},78007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(6319),n=i(6864),r=i(1261),o=i(19268);class a extends s.default{find(e,t,i){let{filter:s,params:o}=i;return r.default.getAndRemove("topic_list",()=>{let e=`/${s}.json`;if(o){let t=new URLSearchParams;for(let[e,i]of Object.entries(o))if(void 0!==i){if(Array.isArray(i))for(let s of i)t.append(`${e}[]`,s);else t.set(e,i)}let i=t.toString();i&&(e+=`?${i}`)}return(0,n.ajax)(e)}).then(e=>(e.filter=s,e.params=o,e))}async applyTransformations(e){for(let t of e)await o.default.applyTransformations(t.topics)}}},70814:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(6319),n=i(6864);class r extends s.default{find(e,t,i){return i.similar?(0,n.ajax)("/topics/similar_to",{data:i.similar}):super.find(e,t,i)}}},3191:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C,getAndClearUnhandledThemeErrors:()=>w}),i(63790);let s=new WeakMap;function n(e,t,i,n){let r={configurable:!0,enumerable:!0,writable:!0,initializer:null};for(let s of(n&&(r.initializer=n),i))r=s(e,t,r)||r;void 0===r.initializer?Object.defineProperty(e,t,r):function(e,t,i){let n=s.get(e);n||(n=new Map,s.set(e,n)),n.set(t,i)}(e,t,r)}function r(e,t,i){let s={...Object.getOwnPropertyDescriptor(e,t)};for(let n of i)s=n(e,t,s)||s;void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(e):void 0,s.initializer=void 0),Object.defineProperty(e,t,s)}let o=Object.freeze(Object.defineProperty({__proto__:null,c:function(e,t){return t.reduce((e,t)=>t(e)||e,e)},f:function(e,t,i,s){return n(e.prototype,t,i,s)},g:n,i:function(e,t){let i=function(e,t){var i;let n=e.prototype;for(;n;){let e=null==(i=s.get(n))?void 0:i.get(t);if(e)return e;n=n.prototype}}(e.constructor,t);i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(e):void 0})},m:function(e,t,i){let{prototype:s}=e;return r(s,t,i)},n:r,p:function(e,t){for(let[i,s,n]of t)"field"===i?function(e,t,i){let s={configurable:!0,enumerable:!0,writable:!0,initializer:()=>{var i;return null==(i=Object.getOwnPropertyDescriptor(e,t))?void 0:i.value}};for(let n of i)s=n(e,t,s)||s;s.initializer&&(s.value=s.initializer.call(e),delete s.initializer),Object.defineProperty(e,t,s)}(e,s,n):r(e,s,n);return e}},Symbol.toStringTag,{value:"Module"}));globalThis.dt7948=o,i(50110),i(72248),i(66556);var a=i(73868),l=i(17812),c=i(36617),u=i(11408),d=i.n(u),p=i(36009),h=i(77093),m=i(96340),g=i(97463);(0,a.registerDiscourseImplicitInjections)();let f=[],_=[];class y extends l.default{modulePrefix="discourse";rootElement="#main";customEvents={paste:"paste"};Resolver=(()=>(0,g.buildResolver)("discourse"))();start(){(function(){if(S)return;let e="ℹ️ ",t=document.querySelector("meta[name=generator]")?.content,i=t?.split(" ");if(i){let t=i[1],s=i[5]?.substr(0,10);e+=`Discourse v${t} — https://github.com/discourse/discourse/commits/${s} — `}console.log(e+=`Ember v${c.default}`),S=!0})(),document.querySelectorAll("noscript").forEach(e=>e.remove()),(0,p.normalizeEmberEventHandling)(this),Error.stackTraceLimit&&(Error.stackTraceLimit=1/0),window.history.scrollRestoration="manual",function(e){let t=[],i=[],s=[],n=[];for(let e of Object.keys(requirejs.entries))if(e.startsWith("discourse/")&&!e.endsWith("-test")){if(e.startsWith("discourse/initializers/"))t.push(e);else if(e.startsWith("discourse/instance-initializers/"))i.push(e);else{let t=function(e){let t=e.match(/^discourse\/theme\-(\d+)\//);if(t)return parseInt(t[1],10)}(e);(void 0!==t||e.startsWith("discourse/plugins/"))&&(e.includes("/pre-initializers/")?s.push([e,t]):(e.includes("/initializers/")||e.includes("/api-initializers/"))&&n.push([e,t]))}}for(let i of t)e.initializer(k(i));for(let t of i)e.instanceInitializer(k(t));for(let[t,i]of s)e.initializer(T(t,i));for(let[t,i]of n)e.instanceInitializer(T(t,i));for(let[t,i]of f.entries())e.instanceInitializer({name:`_discourse_plugin_${t}`,after:"inject-objects",initialize:()=>(0,m.withPluginApi)(i.version,i.code)})}(this)}_registerPluginCode(e,t){f.push({version:e,code:t})}ready(){performance.mark("discourse-ready"),document.querySelector("#d-splash")?.remove()}}function b(e){let{themeId:t,error:i}=e,s=new CustomEvent("discourse-error",{cancelable:!0,detail:{themeId:t,error:i}});document.dispatchEvent(s)&&_.push(s)}function w(){let e=_;return _=[],e}function k(e){let t=d()(e,null,null,!0);if(!t)throw Error(e+" must export an initializer.");let i=t.default;if(!i)throw Error(e+" must have a default export");return i.name||(i.name=e.slice(e.lastIndexOf("/")+1)),i}function T(e,t){let i;try{i=k(e)}catch(e){if(!t||(0,h.isTesting)())throw e;b({themeId:t,error:e});return}let s=i.initialize;return i.initialize=e=>{try{return s.call(i,e.__container__,e)}catch(e){if(!t||(0,h.isTesting)())throw e;b({themeId:t,error:e})}},i}let S=!1,C=y},68241:(e,t,i)=>{"use strict";var s=i(38168);let n=window,r=n.define;(0,s.A)(i(69475)),r("discourse/adapters/email-template",function(){return(0,s.A)(i(99276))}),r("discourse/adapters/group",function(){return(0,s.A)(i(68598))}),r("discourse/adapters/list-tag",function(){return(0,s.A)(i(98164))}),r("discourse/adapters/notification",function(){return(0,s.A)(i(39298))}),r("discourse/adapters/pending-post",function(){return(0,s.A)(i(71909))}),r("discourse/adapters/post-reply-history",function(){return(0,s.A)(i(98247))}),r("discourse/adapters/post-reply",function(){return(0,s.A)(i(98262))}),r("discourse/adapters/post",function(){return(0,s.A)(i(98379))}),r("discourse/adapters/published-page",function(){return(0,s.A)(i(53707))}),r("discourse/adapters/rest",function(){return(0,s.A)(i(6319))}),r("discourse/adapters/reviewable-explanation",function(){return(0,s.A)(i(14811))}),r("discourse/adapters/reviewable-settings",function(){return(0,s.A)(i(16531))}),r("discourse/adapters/reviewable-topic",function(){return(0,s.A)(i(70791))}),r("discourse/adapters/reviewable",function(){return(0,s.A)(i(43369))}),r("discourse/adapters/tag-info",function(){return(0,s.A)(i(17814))}),r("discourse/adapters/tag-notification",function(){return(0,s.A)(i(45233))}),r("discourse/adapters/tag",function(){return(0,s.A)(i(39829))}),r("discourse/adapters/topic-list",function(){return(0,s.A)(i(78007))}),r("discourse/adapters/topic",function(){return(0,s.A)(i(70814))}),r("discourse/app",function(){return(0,s.A)(i(3191))}),r("discourse/config/environment",function(){return(0,s.A)(i(51998))}),r("discourse/deprecation-workflow",function(){return(0,s.A)(i(58210))}),r("discourse/discourse-common-loader-shims",function(){return(0,s.A)(i(72248))}),r("discourse/form-kit/components/fk/alert",function(){return(0,s.A)(i(79741))}),r("discourse/form-kit/components/fk/char-counter",function(){return(0,s.A)(i(90282))}),r("discourse/form-kit/components/fk/checkbox-group",function(){return(0,s.A)(i(77272))}),r("discourse/form-kit/components/fk/col",function(){return(0,s.A)(i(75985))}),r("discourse/form-kit/components/fk/collection",function(){return(0,s.A)(i(5303))}),r("discourse/form-kit/components/fk/container",function(){return(0,s.A)(i(64411))}),r("discourse/form-kit/components/fk/control-wrapper",function(){return(0,s.A)(i(85132))}),r("discourse/form-kit/components/fk/control/checkbox",function(){return(0,s.A)(i(44452))}),r("discourse/form-kit/components/fk/control/code",function(){return(0,s.A)(i(9548))}),r("discourse/form-kit/components/fk/control/composer",function(){return(0,s.A)(i(98975))}),r("discourse/form-kit/components/fk/control/conditional-content",function(){return(0,s.A)(i(3989))}),r("discourse/form-kit/components/fk/control/conditional-content/condition",function(){return(0,s.A)(i(60887))}),r("discourse/form-kit/components/fk/control/conditional-content/content",function(){return(0,s.A)(i(54807))}),r("discourse/form-kit/components/fk/control/custom",function(){return(0,s.A)(i(9178))}),r("discourse/form-kit/components/fk/control/icon",function(){return(0,s.A)(i(77092))}),r("discourse/form-kit/components/fk/control/image",function(){return(0,s.A)(i(87100))}),r("discourse/form-kit/components/fk/control/input",function(){return(0,s.A)(i(89062))}),r("discourse/form-kit/components/fk/control/menu",function(){return(0,s.A)(i(29006))}),r("discourse/form-kit/components/fk/control/menu/container",function(){return(0,s.A)(i(57494))}),r("discourse/form-kit/components/fk/control/menu/divider",function(){return(0,s.A)(i(65280))}),r("discourse/form-kit/components/fk/control/menu/item",function(){return(0,s.A)(i(49390))}),r("discourse/form-kit/components/fk/control/password",function(){return(0,s.A)(i(40364))}),r("discourse/form-kit/components/fk/control/question",function(){return(0,s.A)(i(13597))}),r("discourse/form-kit/components/fk/control/radio-group",function(){return(0,s.A)(i(73332))}),r("discourse/form-kit/components/fk/control/radio-group/radio",function(){return(0,s.A)(i(81432))}),r("discourse/form-kit/components/fk/control/select",function(){return(0,s.A)(i(25541))}),r("discourse/form-kit/components/fk/control/textarea",function(){return(0,s.A)(i(79639))}),r("discourse/form-kit/components/fk/control/toggle",function(){return(0,s.A)(i(54613))}),r("discourse/form-kit/components/fk/errors-summary",function(){return(0,s.A)(i(54473))}),r("discourse/form-kit/components/fk/errors",function(){return(0,s.A)(i(34608))}),r("discourse/form-kit/components/fk/field-data",function(){return(0,s.A)(i(4404))}),r("discourse/form-kit/components/fk/field",function(){return(0,s.A)(i(83639))}),r("discourse/form-kit/components/fk/fieldset",function(){return(0,s.A)(i(13887))}),r("discourse/form-kit/components/fk/form",function(){return(0,s.A)(i(86597))}),r("discourse/form-kit/components/fk/input-group",function(){return(0,s.A)(i(15849))}),r("discourse/form-kit/components/fk/label",function(){return(0,s.A)(i(12621))}),r("discourse/form-kit/components/fk/meta",function(){return(0,s.A)(i(29546))}),r("discourse/form-kit/components/fk/object",function(){return(0,s.A)(i(58632))}),r("discourse/form-kit/components/fk/optional",function(){return(0,s.A)(i(43927))}),r("discourse/form-kit/components/fk/row",function(){return(0,s.A)(i(8735))}),r("discourse/form-kit/components/fk/section",function(){return(0,s.A)(i(85320))}),r("discourse/form-kit/components/fk/submit",function(){return(0,s.A)(i(30939))}),r("discourse/form-kit/components/fk/text",function(){return(0,s.A)(i(30424))}),r("discourse/form-kit/components/fk/tooltip",function(){return(0,s.A)(i(9700))}),r("discourse/form-kit/lib/constants",function(){return(0,s.A)(i(5391))}),r("discourse/form-kit/lib/fk-form-data",function(){return(0,s.A)(i(52713))}),r("discourse/form-kit/lib/validation-parser",function(){return(0,s.A)(i(29223))}),r("discourse/form-kit/lib/validator",function(){return(0,s.A)(i(67872))}),r("discourse/global-compat",function(){return(0,s.A)(i(66556))}),r("discourse/initializers/deprecation-error-mode",function(){return(0,s.A)(i(18125))}),r("discourse/initializers/deprecation-identify-source",function(){return(0,s.A)(i(14509))}),r("discourse/initializers/deprecation-this-property-fallback-handler",function(){return(0,s.A)(i(80249))}),r("discourse/initializers/dev-tools",function(){return(0,s.A)(i(41785))}),r("discourse/initializers/discourse-bootstrap",function(){return(0,s.A)(i(79590))}),r("discourse/initializers/dynamic-route-builders",function(){return(0,s.A)(i(18398))}),r("discourse/initializers/freeze-valid-transformers",function(){return(0,s.A)(i(24359))}),r("discourse/initializers/inject-discourse-objects",function(){return(0,s.A)(i(79026))}),r("discourse/initializers/map-routes",function(){return(0,s.A)(i(40549))}),r("discourse/instance-initializers/animated-images-pause-on-click",function(){return(0,s.A)(i(11490))}),r("discourse/instance-initializers/auth-complete",function(){return(0,s.A)(i(69522))}),r("discourse/instance-initializers/auto-load-modules",function(){return(0,s.A)(i(16558))}),r("discourse/instance-initializers/badging",function(){return(0,s.A)(i(78380))}),r("discourse/instance-initializers/banner",function(){return(0,s.A)(i(61728))}),r("discourse/instance-initializers/bookmark-menu",function(){return(0,s.A)(i(70892))}),r("discourse/instance-initializers/boot-services",function(){return(0,s.A)(i(53803))}),r("discourse/instance-initializers/clean-dom-on-route-change",function(){return(0,s.A)(i(23225))}),r("discourse/instance-initializers/click-interceptor",function(){return(0,s.A)(i(50694))}),r("discourse/instance-initializers/codeblock-buttons",function(){return(0,s.A)(i(61466))}),r("discourse/instance-initializers/component-templates",function(){return(0,s.A)(i(27929))}),r("discourse/instance-initializers/csrf-token",function(){return(0,s.A)(i(3516))}),r("discourse/instance-initializers/discovery-controller-shims",function(){return(0,s.A)(i(33792))}),r("discourse/instance-initializers/eager-load-raw-templates",function(){return(0,s.A)(i(50936))}),r("discourse/instance-initializers/enable-emoji",function(){return(0,s.A)(i(26414))}),r("discourse/instance-initializers/handle-cookies",function(){return(0,s.A)(i(99310))}),r("discourse/instance-initializers/hashtag-css-generator",function(){return(0,s.A)(i(54194))}),r("discourse/instance-initializers/hashtag-post-decorations",function(){return(0,s.A)(i(11781))}),r("discourse/instance-initializers/hbr-topic-list-overrides",function(){return(0,s.A)(i(44835))}),r("discourse/instance-initializers/highlight-users",function(){return(0,s.A)(i(93957))}),r("discourse/instance-initializers/image-aspect-ratio",function(){return(0,s.A)(i(66432))}),r("discourse/instance-initializers/init-route-scroll-manager",function(){return(0,s.A)(i(84182))}),r("discourse/instance-initializers/inject-objects",function(){return(0,s.A)(i(422))}),r("discourse/instance-initializers/jquery-plugins",function(){return(0,s.A)(i(19521))}),r("discourse/instance-initializers/keyboard-shortcuts",function(){return(0,s.A)(i(46285))}),r("discourse/instance-initializers/live-development",function(){return(0,s.A)(i(98512))}),r("discourse/instance-initializers/localization",function(){return(0,s.A)(i(4835))}),r("discourse/instance-initializers/logout",function(){return(0,s.A)(i(60228))}),r("discourse/instance-initializers/message-bus",function(){return(0,s.A)(i(91876))}),r("discourse/instance-initializers/meta-tag-updater",function(){return(0,s.A)(i(53582))}),r("discourse/instance-initializers/mobile",function(){return(0,s.A)(i(57256))}),r("discourse/instance-initializers/moment",function(){return(0,s.A)(i(41106))}),r("discourse/instance-initializers/more-topics-tabs",function(){return(0,s.A)(i(38613))}),r("discourse/instance-initializers/narrow-desktop",function(){return(0,s.A)(i(22652))}),r("discourse/instance-initializers/onebox-decorators",function(){return(0,s.A)(i(84494))}),r("discourse/instance-initializers/page-tracking",function(){return(0,s.A)(i(74371))}),r("discourse/instance-initializers/populate-template-map",function(){return(0,s.A)(i(93244))}),r("discourse/instance-initializers/post-decorations",function(){return(0,s.A)(i(85398))}),r("discourse/instance-initializers/read-only",function(){return(0,s.A)(i(85761))}),r("discourse/instance-initializers/register-hashtag-types",function(){return(0,s.A)(i(94318))}),r("discourse/instance-initializers/register-media-optimization-upload-processor",function(){return(0,s.A)(i(10455))}),r("discourse/instance-initializers/register-service-worker",function(){return(0,s.A)(i(93275))}),r("discourse/instance-initializers/relative-ages",function(){return(0,s.A)(i(8235))}),r("discourse/instance-initializers/sharing-sources",function(){return(0,s.A)(i(25572))}),r("discourse/instance-initializers/signup-cta",function(){return(0,s.A)(i(25037))}),r("discourse/instance-initializers/sniff-capabilities",function(){return(0,s.A)(i(46331))}),r("discourse/instance-initializers/strip-mobile-app-url-params",function(){return(0,s.A)(i(76914))}),r("discourse/instance-initializers/subscribe-user-notifications",function(){return(0,s.A)(i(47807))}),r("discourse/instance-initializers/svg-sprite-fontawesome",function(){return(0,s.A)(i(55151))}),r("discourse/instance-initializers/topic-footer-buttons",function(){return(0,s.A)(i(69559))}),r("discourse/instance-initializers/url-redirects",function(){return(0,s.A)(i(89577))}),r("discourse/instance-initializers/video-placeholder",function(){return(0,s.A)(i(9203))}),r("discourse/instance-initializers/viewport-setup",function(){return(0,s.A)(i(97256))}),r("discourse/instance-initializers/webview-background",function(){return(0,s.A)(i(20848))}),r("discourse/lib/admin-plugin-config-nav",function(){return(0,s.A)(i(10094))}),r("discourse/lib/admin-plugin-header-actions",function(){return(0,s.A)(i(81863))}),r("discourse/lib/admin-report-additional-modes",function(){return(0,s.A)(i(91151))}),r("discourse/lib/admin-utilities",function(){return(0,s.A)(i(17718))}),r("discourse/lib/after-frame-paint",function(){return(0,s.A)(i(14335))}),r("discourse/lib/ajax-error",function(){return(0,s.A)(i(88355))}),r("discourse/lib/ajax",function(){return(0,s.A)(i(6864))}),r("discourse/lib/api",function(){return(0,s.A)(i(57812))}),r("discourse/lib/attribute-hook",function(){return(0,s.A)(i(6466))}),r("discourse/lib/autocomplete",function(){return(0,s.A)(i(37054))}),r("discourse/lib/avatar-flair",function(){return(0,s.A)(i(38384))}),r("discourse/lib/avatar-utils",function(){return(0,s.A)(i(17587))}),r("discourse/lib/body-scroll-lock",function(){return(0,s.A)(i(17112))}),r("discourse/lib/bookmark-form-data",function(){return(0,s.A)(i(61390))}),r("discourse/lib/bookmark",function(){return(0,s.A)(i(1602))}),r("discourse/lib/bulk-select-helper",function(){return(0,s.A)(i(58112))}),r("discourse/lib/cached-topic-list",function(){return(0,s.A)(i(64487))}),r("discourse/lib/can-check-emails-helper",function(){return(0,s.A)(i(17358))}),r("discourse/lib/caret-position",function(){return(0,s.A)(i(88723))}),r("discourse/lib/case-converter",function(){return(0,s.A)(i(48775))}),r("discourse/lib/category-hashtags",function(){return(0,s.A)(i(66950))}),r("discourse/lib/category-tag-search",function(){return(0,s.A)(i(90184))}),r("discourse/lib/class-prepend",function(){return(0,s.A)(i(25733))}),r("discourse/lib/click-track",function(){return(0,s.A)(i(7294))}),r("discourse/lib/codeblock-buttons",function(){return(0,s.A)(i(91566))}),r("discourse/lib/color-scheme-picker",function(){return(0,s.A)(i(61586))}),r("discourse/lib/columns",function(){return(0,s.A)(i(46475))}),r("discourse/lib/composer-video-thumbnail-uppy",function(){return(0,s.A)(i(71398))}),r("discourse/lib/composer/composer-position",function(){return(0,s.A)(i(8001))}),r("discourse/lib/composer/custom-popup-menu-options",function(){return(0,s.A)(i(91672))}),r("discourse/lib/composer/toolbar",function(){return(0,s.A)(i(58996))}),r("discourse/lib/computed",function(){return(0,s.A)(i(82805))}),r("discourse/lib/constants",function(){return(0,s.A)(i(17773))}),r("discourse/lib/cookie",function(){return(0,s.A)(i(61004))}),r("discourse/lib/copy-text",function(){return(0,s.A)(i(33515))}),r("discourse/lib/d-popover",function(){return(0,s.A)(i(71072))}),r("discourse/lib/dag",function(){return(0,s.A)(i(72024))}),r("discourse/lib/debounce",function(){return(0,s.A)(i(46301))}),r("discourse/lib/decimal-adjust",function(){return(0,s.A)(i(42763))}),r("discourse/lib/decorator-alias",function(){return(0,s.A)(i(56360))}),r("discourse/lib/decorators",function(){return(0,s.A)(i(63748))}),r("discourse/lib/deprecated",function(){return(0,s.A)(i(16547))}),r("discourse/lib/desktop-notifications",function(){return(0,s.A)(i(89801))}),r("discourse/lib/dirty-keys",function(){return(0,s.A)(i(14433))}),r("discourse/lib/discourse-template-map",function(){return(0,s.A)(i(99291))}),r("discourse/lib/do-not-disturb",function(){return(0,s.A)(i(8249))}),r("discourse/lib/dom-from-string",function(){return(0,s.A)(i(45067))}),r("discourse/lib/dom-utils",function(){return(0,s.A)(i(48276))}),r("discourse/lib/download-calendar",function(){return(0,s.A)(i(91365))}),r("discourse/lib/email-provider-default-settings",function(){return(0,s.A)(i(13280))}),r("discourse/lib/ember-action-modifier",function(){return(0,s.A)(i(32054))}),r("discourse/lib/ember-events",function(){return(0,s.A)(i(36009))}),r("discourse/lib/ember-version",function(){return(0,s.A)(i(60534))}),r("discourse/lib/environment",function(){return(0,s.A)(i(77093))}),r("discourse/lib/escape-regexp",function(){return(0,s.A)(i(19587))}),r("discourse/lib/escape",function(){return(0,s.A)(i(84457))}),r("discourse/lib/export-csv",function(){return(0,s.A)(i(27213))}),r("discourse/lib/export-result",function(){return(0,s.A)(i(6808))}),r("discourse/lib/extract-value",function(){return(0,s.A)(i(93985))}),r("discourse/lib/eyeline",function(){return(0,s.A)(i(21391))}),r("discourse/lib/fabricators",function(){return(0,s.A)(i(93946))}),r("discourse/lib/filter-mode",function(){return(0,s.A)(i(58302))}),r("discourse/lib/flag-targets/flag",function(){return(0,s.A)(i(90336))}),r("discourse/lib/flag-targets/post-flag",function(){return(0,s.A)(i(6347))}),r("discourse/lib/flag-targets/topic-flag",function(){return(0,s.A)(i(80018))}),r("discourse/lib/form-template-validation",function(){return(0,s.A)(i(27943))}),r("discourse/lib/formatter",function(){return(0,s.A)(i(17206))}),r("discourse/lib/get-owner",function(){return(0,s.A)(i(99434))}),r("discourse/lib/get-url",function(){return(0,s.A)(i(94636))}),r("discourse/lib/grant-badge-utils",function(){return(0,s.A)(i(43380))}),r("discourse/lib/handle-descriptor",function(){return(0,s.A)(i(14580))}),r("discourse/lib/hash",function(){return(0,s.A)(i(43410))}),r("discourse/lib/hashtag-autocomplete",function(){return(0,s.A)(i(41089))}),r("discourse/lib/hashtag-decorator",function(){return(0,s.A)(i(36712))}),r("discourse/lib/hashtag-type-registry",function(){return(0,s.A)(i(93301))}),r("discourse/lib/hashtag-types/base",function(){return(0,s.A)(i(66590))}),r("discourse/lib/hashtag-types/category",function(){return(0,s.A)(i(89783))}),r("discourse/lib/hashtag-types/tag",function(){return(0,s.A)(i(45079))}),r("discourse/lib/helpers",function(){return(0,s.A)(i(65573))}),r("discourse/lib/highlight-html",function(){return(0,s.A)(i(68304))}),r("discourse/lib/highlight-search",function(){return(0,s.A)(i(79297))}),r("discourse/lib/highlight-syntax-merge-html-plugin",function(){return(0,s.A)(i(15277))}),r("discourse/lib/highlight-syntax",function(){return(0,s.A)(i(18178))}),r("discourse/lib/homepage-router-overrides",function(){return(0,s.A)(i(42090))}),r("discourse/lib/icon-library",function(){return(0,s.A)(i(51429))}),r("discourse/lib/implicit-injections",function(){return(0,s.A)(i(73868))}),r("discourse/lib/intercept-click",function(){return(0,s.A)(i(97015))}),r("discourse/lib/is-descriptor",function(){return(0,s.A)(i(73018))}),r("discourse/lib/is-element-in-viewport",function(){return(0,s.A)(i(79266))}),r("discourse/lib/key-value-store",function(){return(0,s.A)(i(78255))}),r("discourse/lib/keyboard-shortcuts",function(){return(0,s.A)(i(19905))}),r("discourse/lib/later",function(){return(0,s.A)(i(53306))}),r("discourse/lib/lazy-load-images",function(){return(0,s.A)(i(81132))}),r("discourse/lib/lightbox",function(){return(0,s.A)(i(47991))}),r("discourse/lib/lightbox/constants",function(){return(0,s.A)(i(97637))}),r("discourse/lib/link-lookup",function(){return(0,s.A)(i(18029))}),r("discourse/lib/link-mentions",function(){return(0,s.A)(i(99236))}),r("discourse/lib/load-ace-editor",function(){return(0,s.A)(i(99080))}),r("discourse/lib/load-faker",function(){return(0,s.A)(i(87198))}),r("discourse/lib/load-morphlex",function(){return(0,s.A)(i(86660))}),r("discourse/lib/load-oneboxes",function(){return(0,s.A)(i(47806))}),r("discourse/lib/load-script",function(){return(0,s.A)(i(53404))}),r("discourse/lib/loader-shim",function(){return(0,s.A)(i(48079))}),r("discourse/lib/local-dates",function(){return(0,s.A)(i(16143))}),r("discourse/lib/lock-on",function(){return(0,s.A)(i(10335))}),r("discourse/lib/logout",function(){return(0,s.A)(i(63464))}),r("discourse/lib/macro-alias",function(){return(0,s.A)(i(33297))}),r("discourse/lib/media-optimization-utils",function(){return(0,s.A)(i(15544))}),r("discourse/lib/mobile",function(){return(0,s.A)(i(5068))}),r("discourse/lib/model-transformers",function(){return(0,s.A)(i(87986))}),r("discourse/lib/multi-cache",function(){return(0,s.A)(i(98590))}),r("discourse/lib/name-validation-helper",function(){return(0,s.A)(i(80706))}),r("discourse/lib/narrow-desktop",function(){return(0,s.A)(i(88784))}),r("discourse/lib/notification-levels",function(){return(0,s.A)(i(23777))}),r("discourse/lib/notification-types-manager",function(){return(0,s.A)(i(84135))}),r("discourse/lib/notification-types/admin-problems",function(){return(0,s.A)(i(85758))}),r("discourse/lib/notification-types/base",function(){return(0,s.A)(i(15273))}),r("discourse/lib/notification-types/bookmark-reminder",function(){return(0,s.A)(i(24607))}),r("discourse/lib/notification-types/custom",function(){return(0,s.A)(i(54071))}),r("discourse/lib/notification-types/edited",function(){return(0,s.A)(i(4905))}),r("discourse/lib/notification-types/granted-badge",function(){return(0,s.A)(i(64927))}),r("discourse/lib/notification-types/group-mentioned",function(){return(0,s.A)(i(83139))}),r("discourse/lib/notification-types/group-message-summary",function(){return(0,s.A)(i(9686))}),r("discourse/lib/notification-types/invitee-accepted",function(){return(0,s.A)(i(97942))}),r("discourse/lib/notification-types/liked-consolidated",function(){return(0,s.A)(i(67315))}),r("discourse/lib/notification-types/liked",function(){return(0,s.A)(i(21115))}),r("discourse/lib/notification-types/linked-consolidated",function(){return(0,s.A)(i(37553))}),r("discourse/lib/notification-types/membership-request-accepted",function(){return(0,s.A)(i(45044))}),r("discourse/lib/notification-types/membership-request-consolidated",function(){return(0,s.A)(i(80346))}),r("discourse/lib/notification-types/moved-post",function(){return(0,s.A)(i(11148))}),r("discourse/lib/notification-types/new-features",function(){return(0,s.A)(i(25182))}),r("discourse/lib/notification-types/watching-first-post",function(){return(0,s.A)(i(35053))}),r("discourse/lib/object",function(){return(0,s.A)(i(93805))}),r("discourse/lib/offset-calculator",function(){return(0,s.A)(i(77270))}),r("discourse/lib/optional-service",function(){return(0,s.A)(i(90092))}),r("discourse/lib/page-tracker",function(){return(0,s.A)(i(77404))}),r("discourse/lib/plugin-api",function(){return(0,s.A)(i(96340))}),r("discourse/lib/plugin-connectors",function(){return(0,s.A)(i(72906))}),r("discourse/lib/popular-themes",function(){return(0,s.A)(i(55180))}),r("discourse/lib/post-action-feedback",function(){return(0,s.A)(i(1231))}),r("discourse/lib/post-bookmark-manager",function(){return(0,s.A)(i(3383))}),r("discourse/lib/posts-with-placeholders",function(){return(0,s.A)(i(43459))}),r("discourse/lib/preload-store",function(){return(0,s.A)(i(1261))}),r("discourse/lib/public-js-versions",function(){return(0,s.A)(i(64133))}),r("discourse/lib/push-notifications",function(){return(0,s.A)(i(6059))}),r("discourse/lib/put-cursor-at-end",function(){return(0,s.A)(i(25824))}),r("discourse/lib/pwa-utils",function(){return(0,s.A)(i(65460))}),r("discourse/lib/quote-state",function(){return(0,s.A)(i(28904))}),r("discourse/lib/quote",function(){return(0,s.A)(i(85156))}),r("discourse/lib/raw-handlebars-helpers",function(){return(0,s.A)(i(83471))}),r("discourse/lib/raw-handlebars",function(){return(0,s.A)(i(11071))}),r("discourse/lib/raw-render-glimmer",function(){return(0,s.A)(i(26457))}),r("discourse/lib/raw-templates",function(){return(0,s.A)(i(47716))}),r("discourse/lib/register-service-worker",function(){return(0,s.A)(i(17332))}),r("discourse/lib/register-topic-footer-button",function(){return(0,s.A)(i(64418))}),r("discourse/lib/register-topic-footer-dropdown",function(){return(0,s.A)(i(92487))}),r("discourse/lib/render-tag",function(){return(0,s.A)(i(94399))}),r("discourse/lib/render-tags",function(){return(0,s.A)(i(14298))}),r("discourse/lib/render-topic-featured-link",function(){return(0,s.A)(i(10028))}),r("discourse/lib/reports-loader",function(){return(0,s.A)(i(90987))}),r("discourse/lib/reviewable-types-manager",function(){return(0,s.A)(i(70612))}),r("discourse/lib/reviewable-types/base",function(){return(0,s.A)(i(88056))}),r("discourse/lib/reviewable-types/flagged-post",function(){return(0,s.A)(i(64438))}),r("discourse/lib/reviewable-types/queued-post",function(){return(0,s.A)(i(12623))}),r("discourse/lib/reviewable-types/user",function(){return(0,s.A)(i(31554))}),r("discourse/lib/round",function(){return(0,s.A)(i(38784))}),r("discourse/lib/scroll-lock",function(){return(0,s.A)(i(35715))}),r("discourse/lib/search",function(){return(0,s.A)(i(98802))}),r("discourse/lib/settings",function(){return(0,s.A)(i(21719))}),r("discourse/lib/sharing",function(){return(0,s.A)(i(47960))}),r("discourse/lib/show-modal",function(){return(0,s.A)(i(86603))}),r("discourse/lib/sidebar/admin-nav-map",function(){return(0,s.A)(i(22991))}),r("discourse/lib/sidebar/admin-sidebar",function(){return(0,s.A)(i(62101))}),r("discourse/lib/sidebar/base-community-section-link",function(){return(0,s.A)(i(6609))}),r("discourse/lib/sidebar/base-custom-sidebar-panel",function(){return(0,s.A)(i(7842))}),r("discourse/lib/sidebar/base-custom-sidebar-section-link",function(){return(0,s.A)(i(41840))}),r("discourse/lib/sidebar/base-custom-sidebar-section",function(){return(0,s.A)(i(30415))}),r("discourse/lib/sidebar/common/community-section/about-section-link",function(){return(0,s.A)(i(59535))}),r("discourse/lib/sidebar/common/community-section/badges-section-link",function(){return(0,s.A)(i(30672))}),r("discourse/lib/sidebar/common/community-section/everything-section-link",function(){return(0,s.A)(i(43951))}),r("discourse/lib/sidebar/common/community-section/faq-section-link",function(){return(0,s.A)(i(82060))}),r("discourse/lib/sidebar/common/community-section/groups-section-link",function(){return(0,s.A)(i(8292))}),r("discourse/lib/sidebar/common/community-section/section",function(){return(0,s.A)(i(80158))}),r("discourse/lib/sidebar/common/community-section/users-section-link",function(){return(0,s.A)(i(33732))}),r("discourse/lib/sidebar/custom-community-section-links",function(){return(0,s.A)(i(72502))}),r("discourse/lib/sidebar/custom-sections",function(){return(0,s.A)(i(65525))}),r("discourse/lib/sidebar/helpers",function(){return(0,s.A)(i(54634))}),r("discourse/lib/sidebar/panels",function(){return(0,s.A)(i(73780))}),r("discourse/lib/sidebar/section-link",function(){return(0,s.A)(i(88209))}),r("discourse/lib/sidebar/section",function(){return(0,s.A)(i(61316))}),r("discourse/lib/sidebar/user/categories-section/category-section-link",function(){return(0,s.A)(i(97351))}),r("discourse/lib/sidebar/user/community-section/admin-section-link",function(){return(0,s.A)(i(60175))}),r("discourse/lib/sidebar/user/community-section/admin-section",function(){return(0,s.A)(i(47150))}),r("discourse/lib/sidebar/user/community-section/invite-section-link",function(){return(0,s.A)(i(94961))}),r("discourse/lib/sidebar/user/community-section/my-posts-section-link",function(){return(0,s.A)(i(65802))}),r("discourse/lib/sidebar/user/community-section/review-section-link",function(){return(0,s.A)(i(75538))}),r("discourse/lib/sidebar/user/messages-section/group-message-section-link",function(){return(0,s.A)(i(37098))}),r("discourse/lib/sidebar/user/messages-section/message-section-link",function(){return(0,s.A)(i(48976))}),r("discourse/lib/sidebar/user/messages-section/personal-message-section-link",function(){return(0,s.A)(i(6689))}),r("discourse/lib/sidebar/user/tags-section/base-tag-section-link",function(){return(0,s.A)(i(85858))}),r("discourse/lib/sidebar/user/tags-section/pm-tag-section-link",function(){return(0,s.A)(i(45224))}),r("discourse/lib/sidebar/user/tags-section/tag-section-link",function(){return(0,s.A)(i(96498))}),r("discourse/lib/singleton",function(){return(0,s.A)(i(22733))}),r("discourse/lib/site-setting-filter",function(){return(0,s.A)(i(82023))}),r("discourse/lib/source-identifier",function(){return(0,s.A)(i(62267))}),r("discourse/lib/suffix-trie",function(){return(0,s.A)(i(27992))}),r("discourse/lib/svg-sprite-loader",function(){return(0,s.A)(i(56016))}),r("discourse/lib/swipe-events",function(){return(0,s.A)(i(38254))}),r("discourse/lib/tag-hashtags",function(){return(0,s.A)(i(32036))}),r("discourse/lib/text-direction",function(){return(0,s.A)(i(64873))}),r("discourse/lib/text",function(){return(0,s.A)(i(50409))}),r("discourse/lib/textarea-text-manipulation",function(){return(0,s.A)(i(70958))}),r("discourse/lib/theme-selector",function(){return(0,s.A)(i(23091))}),r("discourse/lib/theme-settings-store",function(){return(0,s.A)(i(99463))}),r("discourse/lib/time-shortcut",function(){return(0,s.A)(i(66914))}),r("discourse/lib/time-utils",function(){return(0,s.A)(i(3211))}),r("discourse/lib/to-markdown",function(){return(0,s.A)(i(40049))}),r("discourse/lib/topic-bookmark-manager",function(){return(0,s.A)(i(61486))}),r("discourse/lib/topic-fancy-title",function(){return(0,s.A)(i(94384))}),r("discourse/lib/topic-list-tracked-filter",function(){return(0,s.A)(i(95098))}),r("discourse/lib/topic-list-tracker",function(){return(0,s.A)(i(83549))}),r("discourse/lib/tracked-tools",function(){return(0,s.A)(i(20144))}),r("discourse/lib/transform-post",function(){return(0,s.A)(i(56147))}),r("discourse/lib/transformer",function(){return(0,s.A)(i(1799))}),r("discourse/lib/transformer/registry",function(){return(0,s.A)(i(6913))}),r("discourse/lib/update-tab-count",function(){return(0,s.A)(i(3619))}),r("discourse/lib/update-user-status-on-mention",function(){return(0,s.A)(i(71669))}),r("discourse/lib/uploads",function(){return(0,s.A)(i(65742))}),r("discourse/lib/uppy-checksum-plugin",function(){return(0,s.A)(i(61008))}),r("discourse/lib/uppy-chunked-upload",function(){return(0,s.A)(i(50127))}),r("discourse/lib/uppy-chunked-uploader-plugin",function(){return(0,s.A)(i(4058))}),r("discourse/lib/uppy-media-optimization-plugin",function(){return(0,s.A)(i(98823))}),r("discourse/lib/uppy-plugin-base",function(){return(0,s.A)(i(33534))}),r("discourse/lib/uppy/composer-upload",function(){return(0,s.A)(i(39687))}),r("discourse/lib/uppy/s3-multipart",function(){return(0,s.A)(i(91352))}),r("discourse/lib/uppy/upload-debugging",function(){return(0,s.A)(i(183))}),r("discourse/lib/uppy/uppy-upload",function(){return(0,s.A)(i(6535))}),r("discourse/lib/uppy/wrapper",function(){return(0,s.A)(i(21380))}),r("discourse/lib/url",function(){return(0,s.A)(i(87353))}),r("discourse/lib/user-activation",function(){return(0,s.A)(i(56294))}),r("discourse/lib/user-menu/base-item",function(){return(0,s.A)(i(54742))}),r("discourse/lib/user-menu/bookmark-item",function(){return(0,s.A)(i(74154))}),r("discourse/lib/user-menu/message-item",function(){return(0,s.A)(i(77573))}),r("discourse/lib/user-menu/notification-item",function(){return(0,s.A)(i(56527))}),r("discourse/lib/user-menu/reviewable-item",function(){return(0,s.A)(i(67890))}),r("discourse/lib/user-menu/tab",function(){return(0,s.A)(i(24833))}),r("discourse/lib/user-presence",function(){return(0,s.A)(i(74603))}),r("discourse/lib/user-search",function(){return(0,s.A)(i(98074))}),r("discourse/lib/user-status-message",function(){return(0,s.A)(i(76806))}),r("discourse/lib/user-status-on-autocomplete",function(){return(0,s.A)(i(59457))}),r("discourse/lib/username-validation-helper",function(){return(0,s.A)(i(78061))}),r("discourse/lib/utilities",function(){return(0,s.A)(i(42236))}),r("discourse/lib/virtual-element-from-text-range",function(){return(0,s.A)(i(14507))}),r("discourse/lib/wait-for-keyboard",function(){return(0,s.A)(i(94715))}),r("discourse/lib/waving-hand-url",function(){return(0,s.A)(i(920))}),r("discourse/lib/webauthn",function(){return(0,s.A)(i(98988))}),r("discourse/lib/zoom-check",function(){return(0,s.A)(i(98668))}),r("discourse/loader-shims",function(){return(0,s.A)(i(50110))}),r("discourse/mapping-router",function(){return(0,s.A)(i(6270))}),r("discourse/mixins/buffered-content",function(){return(0,s.A)(i(42496))}),r("discourse/mixins/load-more",function(){return(0,s.A)(i(56793))}),r("discourse/mixins/name-validation",function(){return(0,s.A)(i(88370))}),r("discourse/mixins/password-validation",function(){return(0,s.A)(i(91004))}),r("discourse/mixins/scroll-top",function(){return(0,s.A)(i(20924))}),r("discourse/mixins/scrolling",function(){return(0,s.A)(i(38228))}),r("discourse/mixins/singleton",function(){return(0,s.A)(i(82450))}),r("discourse/mixins/uppy-upload",function(){return(0,s.A)(i(32019))}),r("discourse/mixins/user-fields-validation",function(){return(0,s.A)(i(4054))}),r("discourse/mixins/username-validation",function(){return(0,s.A)(i(13231))}),r("discourse/models/action-summary",function(){return(0,s.A)(i(41936))}),r("discourse/models/archetype",function(){return(0,s.A)(i(7420))}),r("discourse/models/associated-group",function(){return(0,s.A)(i(32275))}),r("discourse/models/badge-grouping",function(){return(0,s.A)(i(39480))}),r("discourse/models/badge",function(){return(0,s.A)(i(12336))}),r("discourse/models/bookmark",function(){return(0,s.A)(i(27431))}),r("discourse/models/category-list",function(){return(0,s.A)(i(92276))}),r("discourse/models/category",function(){return(0,s.A)(i(1559))}),r("discourse/models/composer",function(){return(0,s.A)(i(39965))}),r("discourse/models/draft",function(){return(0,s.A)(i(69320))}),r("discourse/models/form-template",function(){return(0,s.A)(i(95628))}),r("discourse/models/group-history",function(){return(0,s.A)(i(54389))}),r("discourse/models/group",function(){return(0,s.A)(i(6856))}),r("discourse/models/invite",function(){return(0,s.A)(i(25506))}),r("discourse/models/live-post-counts",function(){return(0,s.A)(i(44813))}),r("discourse/models/login-method",function(){return(0,s.A)(i(81386))}),r("discourse/models/nav-item",function(){return(0,s.A)(i(6404))}),r("discourse/models/notification",function(){return(0,s.A)(i(12948))}),r("discourse/models/pending-post",function(){return(0,s.A)(i(31995))}),r("discourse/models/permission-type",function(){return(0,s.A)(i(54761))}),r("discourse/models/post-action-type",function(){return(0,s.A)(i(23865))}),r("discourse/models/post-stream",function(){return(0,s.A)(i(25198))}),r("discourse/models/post",function(){return(0,s.A)(i(89277))}),r("discourse/models/posts",function(){return(0,s.A)(i(69496))}),r("discourse/models/published-page",function(){return(0,s.A)(i(52969))}),r("discourse/models/rest",function(){return(0,s.A)(i(72473))}),r("discourse/models/result-set",function(){return(0,s.A)(i(54563))}),r("discourse/models/reviewable-history",function(){return(0,s.A)(i(91638))}),r("discourse/models/reviewable",function(){return(0,s.A)(i(26099))}),r("discourse/models/session",function(){return(0,s.A)(i(56323))}),r("discourse/models/site",function(){return(0,s.A)(i(93536))}),r("discourse/models/static-page",function(){return(0,s.A)(i(73525))}),r("discourse/models/store",function(){return(0,s.A)(i(13034))}),r("discourse/models/tag-group",function(){return(0,s.A)(i(97521))}),r("discourse/models/tag",function(){return(0,s.A)(i(2487))}),r("discourse/models/topic-details",function(){return(0,s.A)(i(70867))}),r("discourse/models/topic-list",function(){return(0,s.A)(i(47709))}),r("discourse/models/topic-timer",function(){return(0,s.A)(i(66492))}),r("discourse/models/topic-tracking-state",function(){return(0,s.A)(i(77540))}),r("discourse/models/topic",function(){return(0,s.A)(i(19268))}),r("discourse/models/trust-level",function(){return(0,s.A)(i(41694))}),r("discourse/models/user-action-group",function(){return(0,s.A)(i(11417))}),r("discourse/models/user-action-stat",function(){return(0,s.A)(i(96462))}),r("discourse/models/user-action",function(){return(0,s.A)(i(543))}),r("discourse/models/user-badge",function(){return(0,s.A)(i(65258))}),r("discourse/models/user-draft",function(){return(0,s.A)(i(70898))}),r("discourse/models/user-drafts-stream",function(){return(0,s.A)(i(50042))}),r("discourse/models/user-menu-reviewable",function(){return(0,s.A)(i(67715))}),r("discourse/models/user-posts-stream",function(){return(0,s.A)(i(54767))}),r("discourse/models/user-stream",function(){return(0,s.A)(i(3085))}),r("discourse/models/user",function(){return(0,s.A)(i(59864))}),r("discourse/raw-templates/badge-selector-autocomplete",function(){return(0,s.A)(i(50285))}),r("discourse/raw-templates/category-selector-autocomplete",function(){return(0,s.A)(i(88222))}),r("discourse/raw-templates/category-tag-autocomplete",function(){return(0,s.A)(i(65671))}),r("discourse/raw-templates/emoji-selector-autocomplete",function(){return(0,s.A)(i(58668))}),r("discourse/raw-templates/flat-button",function(){return(0,s.A)(i(74549))}),r("discourse/raw-templates/group-selector-autocomplete",function(){return(0,s.A)(i(89093))}),r("discourse/raw-templates/hashtag-autocomplete",function(){return(0,s.A)(i(708))}),r("discourse/raw-templates/list/action-list",function(){return(0,s.A)(i(90057))}),r("discourse/raw-templates/list/activity-column",function(){return(0,s.A)(i(47766))}),r("discourse/raw-templates/list/category-column",function(){return(0,s.A)(i(9509))}),r("discourse/raw-templates/list/new-list-header-controls",function(){return(0,s.A)(i(45344))}),r("discourse/raw-templates/list/participant-groups",function(){return(0,s.A)(i(64182))}),r("discourse/raw-templates/list/post-count-or-badges",function(){return(0,s.A)(i(60715))}),r("discourse/raw-templates/list/posters-column",function(){return(0,s.A)(i(849))}),r("discourse/raw-templates/list/posts-count-column",function(){return(0,s.A)(i(2624))}),r("discourse/raw-templates/list/topic-excerpt",function(){return(0,s.A)(i(84651))}),r("discourse/raw-templates/list/topic-list-item",function(){return(0,s.A)(i(59342))}),r("discourse/raw-templates/list/unread-indicator",function(){return(0,s.A)(i(92773))}),r("discourse/raw-templates/list/visited-line",function(){return(0,s.A)(i(58577))}),r("discourse/raw-templates/mobile/list/topic-list-item",function(){return(0,s.A)(i(41717))}),r("discourse/raw-templates/topic-bulk-select-dropdown",function(){return(0,s.A)(i(22898))}),r("discourse/raw-templates/topic-list-header-column",function(){return(0,s.A)(i(36626))}),r("discourse/raw-templates/topic-list-header",function(){return(0,s.A)(i(7739))}),r("discourse/raw-templates/topic-post-badges",function(){return(0,s.A)(i(5464))}),r("discourse/raw-templates/topic-status",function(){return(0,s.A)(i(16091))}),r("discourse/raw-templates/user-selector-autocomplete",function(){return(0,s.A)(i(15781))}),r("discourse/raw-views/list/new-list-header-controls",function(){return(0,s.A)(i(99305))}),r("discourse/raw-views/list/post-count-or-badges",function(){return(0,s.A)(i(43726))}),r("discourse/raw-views/list/posts-count-column",function(){return(0,s.A)(i(39597))}),r("discourse/raw-views/list/visited-line",function(){return(0,s.A)(i(42808))}),r("discourse/raw-views/topic-bulk-select-dropdown",function(){return(0,s.A)(i(79213))}),r("discourse/raw-views/topic-list-header-column",function(){return(0,s.A)(i(99749))}),r("discourse/raw-views/topic-status",function(){return(0,s.A)(i(11840))}),r("discourse/resolver",function(){return(0,s.A)(i(97463))}),r("discourse/services/admin-custom-user-fields",function(){return(0,s.A)(i(75794))}),r("discourse/services/admin-post-menu-buttons",function(){return(0,s.A)(i(59917))}),r("discourse/services/admin-topic-menu-buttons",function(){return(0,s.A)(i(46518))}),r("discourse/services/app-events",function(){return(0,s.A)(i(29902))}),r("discourse/services/bookmark-api",function(){return(0,s.A)(i(51004))}),r("discourse/services/breadcrumbs",function(){return(0,s.A)(i(47763))}),r("discourse/services/capabilities",function(){return(0,s.A)(i(95291))}),r("discourse/services/client-error-handler",function(){return(0,s.A)(i(40800))}),r("discourse/services/composer",function(){return(0,s.A)(i(24519))}),r("discourse/services/deprecation-warning-handler",function(){return(0,s.A)(i(87595))}),r("discourse/services/desktop-notifications",function(){return(0,s.A)(i(51596))}),r("discourse/services/discovery",function(){return(0,s.A)(i(44867))}),r("discourse/services/document-title",function(){return(0,s.A)(i(92767))}),r("discourse/services/element-classes",function(){return(0,s.A)(i(42156))}),r("discourse/services/emoji-store",function(){return(0,s.A)(i(14867))}),r("discourse/services/footer",function(){return(0,s.A)(i(14526))}),r("discourse/services/header",function(){return(0,s.A)(i(5736))}),r("discourse/services/history-store",function(){return(0,s.A)(i(32537))}),r("discourse/services/key-value-store",function(){return(0,s.A)(i(74618))}),r("discourse/services/loading-slider",function(){return(0,s.A)(i(11111))}),r("discourse/services/login",function(){return(0,s.A)(i(40124))}),r("discourse/services/logs-notice",function(){return(0,s.A)(i(29383))}),r("discourse/services/map-cache",function(){return(0,s.A)(i(85172))}),r("discourse/services/media-optimization-worker",function(){return(0,s.A)(i(96202))}),r("discourse/services/message-bus",function(){return(0,s.A)(i(16005))}),r("discourse/services/modal",function(){return(0,s.A)(i(30824))}),r("discourse/services/navigation-menu",function(){return(0,s.A)(i(84143))}),r("discourse/services/network-connectivity",function(){return(0,s.A)(i(51915))}),r("discourse/services/notifications",function(){return(0,s.A)(i(10097))}),r("discourse/services/pm-topic-tracking-state",function(){return(0,s.A)(i(27256))}),r("discourse/services/presence",function(){return(0,s.A)(i(58900))}),r("discourse/services/render-glimmer",function(){return(0,s.A)(i(82575))}),r("discourse/services/restricted-routing",function(){return(0,s.A)(i(19923))}),r("discourse/services/route-scroll-manager",function(){return(0,s.A)(i(76834))}),r("discourse/services/screen-track",function(){return(0,s.A)(i(10087))}),r("discourse/services/scroll-direction",function(){return(0,s.A)(i(2012))}),r("discourse/services/search-preferences-manager",function(){return(0,s.A)(i(89300))}),r("discourse/services/search",function(){return(0,s.A)(i(85365))}),r("discourse/services/sidebar-state",function(){return(0,s.A)(i(70357))}),r("discourse/services/site-settings",function(){return(0,s.A)(i(50618))}),r("discourse/services/store",function(){return(0,s.A)(i(27784))}),r("discourse/services/user-status",function(){return(0,s.A)(i(64037))}),r("discourse/services/user-tips",function(){return(0,s.A)(i(62365))}),r("discourse/setup-deprecation-workflow",function(){return(0,s.A)(i(63790))}),r("discourse/widgets/actions-summary",function(){return(0,s.A)(i(56868))}),r("discourse/widgets/avatar-flair",function(){return(0,s.A)(i(86762))}),r("discourse/widgets/bookmark-menu",function(){return(0,s.A)(i(20242))}),r("discourse/widgets/button",function(){return(0,s.A)(i(62576))}),r("discourse/widgets/category-link",function(){return(0,s.A)(i(92345))}),r("discourse/widgets/component-connector",function(){return(0,s.A)(i(45859))}),r("discourse/widgets/connector",function(){return(0,s.A)(i(18649))}),r("discourse/widgets/decorator-helper",function(){return(0,s.A)(i(55212))}),r("discourse/widgets/discourse-tags",function(){return(0,s.A)(i(22597))}),r("discourse/widgets/embedded-post",function(){return(0,s.A)(i(37593))}),r("discourse/widgets/emoji",function(){return(0,s.A)(i(32332))}),r("discourse/widgets/glue",function(){return(0,s.A)(i(28990))}),r("discourse/widgets/hbs-compiler",function(){return(0,s.A)(i(55511))}),r("discourse/widgets/hooks",function(){return(0,s.A)(i(40366))}),r("discourse/widgets/link",function(){return(0,s.A)(i(5388))}),r("discourse/widgets/menu-panel",function(){return(0,s.A)(i(54480))}),r("discourse/widgets/post-cooked",function(){return(0,s.A)(i(57350))}),r("discourse/widgets/post-edits-indicator",function(){return(0,s.A)(i(458))}),r("discourse/widgets/post-gap",function(){return(0,s.A)(i(55403))}),r("discourse/widgets/post-links",function(){return(0,s.A)(i(61530))}),r("discourse/widgets/post-menu",function(){return(0,s.A)(i(91444))}),r("discourse/widgets/post-placeholder",function(){return(0,s.A)(i(3806))}),r("discourse/widgets/post-small-action",function(){return(0,s.A)(i(58339))}),r("discourse/widgets/post-stream",function(){return(0,s.A)(i(59095))}),r("discourse/widgets/post-user-status",function(){return(0,s.A)(i(73779))}),r("discourse/widgets/post-user-tip-shim",function(){return(0,s.A)(i(8228))}),r("discourse/widgets/post",function(){return(0,s.A)(i(75806))}),r("discourse/widgets/poster-name",function(){return(0,s.A)(i(7429))}),r("discourse/widgets/raw-html",function(){return(0,s.A)(i(82484))}),r("discourse/widgets/render-glimmer",function(){return(0,s.A)(i(77374))}),r("discourse/widgets/topic-post-visited-line",function(){return(0,s.A)(i(19686))}),r("discourse/widgets/topic-status",function(){return(0,s.A)(i(57112))}),r("discourse/widgets/widget-dropdown",function(){return(0,s.A)(i(64016))}),r("discourse/widgets/widget",function(){return(0,s.A)(i(36200))}),r("discourse/component-managers/glimmer",function(){return(0,s.A)(i(79817))}),r("discourse/services/dialog",function(){return(0,s.A)(i(92241))}),r("discourse/initializers/app-version",function(){return(0,s.A)(i(81270))}),r("discourse/lib/d-menu-instance",function(){return(0,s.A)(i(36269))}),r("discourse/lib/d-tooltip-instance",function(){return(0,s.A)(i(95859))}),r("discourse/services/internal-tooltip",function(){return(0,s.A)(i(29279))}),r("discourse/services/menu",function(){return(0,s.A)(i(57643))}),r("discourse/services/toasts",function(){return(0,s.A)(i(61208))}),r("discourse/services/tooltip",function(){return(0,s.A)(i(13621))}),r("discourse/components/about-page-user",function(){return(0,s.A)(i(86792))}),r("discourse/components/about-page-users",function(){return(0,s.A)(i(42103))}),r("discourse/components/about-page",function(){return(0,s.A)(i(91742))}),r("discourse/components/ace-editor",function(){return(0,s.A)(i(5546))}),r("discourse/components/actions-summary",function(){return(0,s.A)(i(82247))}),r("discourse/components/activation-controls",function(){return(0,s.A)(i(89656))}),r("discourse/components/activation-email-form",function(){return(0,s.A)(i(90011))}),r("discourse/components/add-category-tag-classes",function(){return(0,s.A)(i(58907))}),r("discourse/components/add-topic-status-classes",function(){return(0,s.A)(i(60150))}),r("discourse/components/admin-post-menu",function(){return(0,s.A)(i(85205))}),r("discourse/components/anonymous-topic-footer-buttons",function(){return(0,s.A)(i(72895))}),r("discourse/components/auth-token-dropdown",function(){return(0,s.A)(i(85273))}),r("discourse/components/avatar-flair",function(){return(0,s.A)(i(34303))}),r("discourse/components/avatar-uploader",function(){return(0,s.A)(i(25222))}),r("discourse/components/back-button",function(){return(0,s.A)(i(2123))}),r("discourse/components/backup-codes",function(){return(0,s.A)(i(32868))}),r("discourse/components/badge-button",function(){return(0,s.A)(i(1139))}),r("discourse/components/badge-card",function(){return(0,s.A)(i(71649))}),r("discourse/components/badge-title",function(){return(0,s.A)(i(52714))}),r("discourse/components/basic-topic-list",function(){return(0,s.A)(i(52333))}),r("discourse/components/bookmark-actions-dropdown",function(){return(0,s.A)(i(12033))}),r("discourse/components/bookmark-icon",function(){return(0,s.A)(i(82483))}),r("discourse/components/bookmark-list",function(){return(0,s.A)(i(53007))}),r("discourse/components/bookmark-menu",function(){return(0,s.A)(i(4833))}),r("discourse/components/bootstrap-mode-notice",function(){return(0,s.A)(i(38320))}),r("discourse/components/bread-crumbs",function(){return(0,s.A)(i(60482))}),r("discourse/components/bulk-actions/append-tags",function(){return(0,s.A)(i(65865))}),r("discourse/components/bulk-actions/change-category",function(){return(0,s.A)(i(31431))}),r("discourse/components/bulk-actions/change-tags",function(){return(0,s.A)(i(41430))}),r("discourse/components/bulk-actions/notification-level",function(){return(0,s.A)(i(4695))}),r("discourse/components/bulk-group-member-dropdown",function(){return(0,s.A)(i(86682))}),r("discourse/components/bulk-select-toggle",function(){return(0,s.A)(i(61683))}),r("discourse/components/bulk-select-topics-dropdown",function(){return(0,s.A)(i(20797))}),r("discourse/components/calendar-date-time-input",function(){return(0,s.A)(i(5111))}),r("discourse/components/card-container",function(){return(0,s.A)(i(90889))}),r("discourse/components/card-contents-base",function(){return(0,s.A)(i(13654))}),r("discourse/components/categories-and-latest-topics",function(){return(0,s.A)(i(66104))}),r("discourse/components/categories-and-top-topics",function(){return(0,s.A)(i(24353))}),r("discourse/components/categories-boxes-topic",function(){return(0,s.A)(i(89959))}),r("discourse/components/categories-boxes-with-topics",function(){return(0,s.A)(i(16545))}),r("discourse/components/categories-boxes",function(){return(0,s.A)(i(88691))}),r("discourse/components/categories-only",function(){return(0,s.A)(i(66630))}),r("discourse/components/categories-topic-list",function(){return(0,s.A)(i(56438))}),r("discourse/components/categories-with-featured-topics",function(){return(0,s.A)(i(86805))}),r("discourse/components/category-list-item",function(){return(0,s.A)(i(72508))}),r("discourse/components/category-logo",function(){return(0,s.A)(i(34409))}),r("discourse/components/category-name-fields",function(){return(0,s.A)(i(35072))}),r("discourse/components/category-notifications-tracking",function(){return(0,s.A)(i(30636))}),r("discourse/components/category-permission-row",function(){return(0,s.A)(i(55252))}),r("discourse/components/category-read-only-banner",function(){return(0,s.A)(i(90072))}),r("discourse/components/category-title-before",function(){return(0,s.A)(i(40275))}),r("discourse/components/category-title-link",function(){return(0,s.A)(i(81630))}),r("discourse/components/category-unread",function(){return(0,s.A)(i(82954))}),r("discourse/components/cdn-img",function(){return(0,s.A)(i(21340))}),r("discourse/components/char-counter",function(){return(0,s.A)(i(37042))}),r("discourse/components/choose-message",function(){return(0,s.A)(i(77910))}),r("discourse/components/choose-topic",function(){return(0,s.A)(i(44028))}),r("discourse/components/color-picker-choice",function(){return(0,s.A)(i(2157))}),r("discourse/components/color-picker",function(){return(0,s.A)(i(43441))}),r("discourse/components/composer-action-title",function(){return(0,s.A)(i(23921))}),r("discourse/components/composer-body",function(){return(0,s.A)(i(48144))}),r("discourse/components/composer-container",function(){return(0,s.A)(i(98211))}),r("discourse/components/composer-editor",function(){return(0,s.A)(i(69008))}),r("discourse/components/composer-fullscreen-prompt",function(){return(0,s.A)(i(29049))}),r("discourse/components/composer-message",function(){return(0,s.A)(i(43941))}),r("discourse/components/composer-messages",function(){return(0,s.A)(i(6577))}),r("discourse/components/composer-save-button",function(){return(0,s.A)(i(12198))}),r("discourse/components/composer-tip-close-button",function(){return(0,s.A)(i(30304))}),r("discourse/components/composer-title",function(){return(0,s.A)(i(15887))}),r("discourse/components/composer-toggles",function(){return(0,s.A)(i(64676))}),r("discourse/components/composer-user-selector",function(){return(0,s.A)(i(8727))}),r("discourse/components/composer/textarea-editor",function(){return(0,s.A)(i(41988))}),r("discourse/components/conditional-in-element",function(){return(0,s.A)(i(47774))}),r("discourse/components/conditional-loading-section",function(){return(0,s.A)(i(53755))}),r("discourse/components/conditional-loading-spinner",function(){return(0,s.A)(i(96320))}),r("discourse/components/connector-container",function(){return(0,s.A)(i(79120))}),r("discourse/components/cook-text",function(){return(0,s.A)(i(84329))}),r("discourse/components/copy-button",function(){return(0,s.A)(i(63837))}),r("discourse/components/count-i18n",function(){return(0,s.A)(i(31859))}),r("discourse/components/create-invite-uploader",function(){return(0,s.A)(i(3001))}),r("discourse/components/create-topic-button",function(){return(0,s.A)(i(96760))}),r("discourse/components/custom-html",function(){return(0,s.A)(i(18782))}),r("discourse/components/d-breadcrumbs-container",function(){return(0,s.A)(i(31096))}),r("discourse/components/d-breadcrumbs-item",function(){return(0,s.A)(i(5104))}),r("discourse/components/d-button",function(){return(0,s.A)(i(18638))}),r("discourse/components/d-document",function(){return(0,s.A)(i(30799))}),r("discourse/components/d-editor",function(){return(0,s.A)(i(4855))}),r("discourse/components/d-modal-cancel",function(){return(0,s.A)(i(38108))}),r("discourse/components/d-modal",function(){return(0,s.A)(i(1453))}),r("discourse/components/d-navigation-item",function(){return(0,s.A)(i(20883))}),r("discourse/components/d-navigation",function(){return(0,s.A)(i(78130))}),r("discourse/components/d-page-action-button",function(){return(0,s.A)(i(729))}),r("discourse/components/d-page-header",function(){return(0,s.A)(i(73567))}),r("discourse/components/d-page-subheader",function(){return(0,s.A)(i(37743))}),r("discourse/components/d-section",function(){return(0,s.A)(i(84631))}),r("discourse/components/d-select",function(){return(0,s.A)(i(64994))}),r("discourse/components/d-stat-tiles",function(){return(0,s.A)(i(16484))}),r("discourse/components/d-styles",function(){return(0,s.A)(i(99040))}),r("discourse/components/d-textarea",function(){return(0,s.A)(i(74052))}),r("discourse/components/d-toggle-switch",function(){return(0,s.A)(i(65903))}),r("discourse/components/d-virtual-height",function(){return(0,s.A)(i(77207))}),r("discourse/components/date-input",function(){return(0,s.A)(i(45063))}),r("discourse/components/date-picker-future",function(){return(0,s.A)(i(26206))}),r("discourse/components/date-picker-past",function(){return(0,s.A)(i(88153))}),r("discourse/components/date-picker",function(){return(0,s.A)(i(44481))}),r("discourse/components/date-time-input-range",function(){return(0,s.A)(i(35643))}),r("discourse/components/date-time-input",function(){return(0,s.A)(i(19425))}),r("discourse/components/deferred-render",function(){return(0,s.A)(i(63671))}),r("discourse/components/desktop-notification-config",function(){return(0,s.A)(i(41452))}),r("discourse/components/dialog-messages/confirm-session",function(){return(0,s.A)(i(80500))}),r("discourse/components/dialog-messages/group-delete",function(){return(0,s.A)(i(93755))}),r("discourse/components/dialog-messages/second-factor-confirm-phrase",function(){return(0,s.A)(i(69763))}),r("discourse/components/directory-item-user-field-value",function(){return(0,s.A)(i(70691))}),r("discourse/components/directory-item",function(){return(0,s.A)(i(71324))}),r("discourse/components/directory-table",function(){return(0,s.A)(i(30115))}),r("discourse/components/discourse-banner",function(){return(0,s.A)(i(7731))}),r("discourse/components/discourse-linked-text",function(){return(0,s.A)(i(72401))}),r("discourse/components/discourse-root",function(){return(0,s.A)(i(98365))}),r("discourse/components/discourse-tag-bound",function(){return(0,s.A)(i(25971))}),r("discourse/components/discourse-topic",function(){return(0,s.A)(i(31394))}),r("discourse/components/discovery-topics-list",function(){return(0,s.A)(i(40673))}),r("discourse/components/discovery/categories-display",function(){return(0,s.A)(i(38761))}),r("discourse/components/discovery/filter-navigation",function(){return(0,s.A)(i(21475))}),r("discourse/components/discovery/layout",function(){return(0,s.A)(i(36094))}),r("discourse/components/discovery/navigation",function(){return(0,s.A)(i(86784))}),r("discourse/components/discovery/topics",function(){return(0,s.A)(i(28582))}),r("discourse/components/dropdown-menu",function(){return(0,s.A)(i(82698))}),r("discourse/components/edit-category-general",function(){return(0,s.A)(i(25088))}),r("discourse/components/edit-category-images",function(){return(0,s.A)(i(80587))}),r("discourse/components/edit-category-panel",function(){return(0,s.A)(i(70916))}),r("discourse/components/edit-category-security",function(){return(0,s.A)(i(49744))}),r("discourse/components/edit-category-settings",function(){return(0,s.A)(i(4671))}),r("discourse/components/edit-category-tab",function(){return(0,s.A)(i(78411))}),r("discourse/components/edit-category-tags",function(){return(0,s.A)(i(63570))}),r("discourse/components/edit-category-topic-template",function(){return(0,s.A)(i(12077))}),r("discourse/components/edit-topic-timer-form",function(){return(0,s.A)(i(30454))}),r("discourse/components/email-dropdown",function(){return(0,s.A)(i(11935))}),r("discourse/components/emoji-picker/content",function(){return(0,s.A)(i(90564))}),r("discourse/components/emoji-picker/detached",function(){return(0,s.A)(i(74423))}),r("discourse/components/emoji-picker/diversity-menu",function(){return(0,s.A)(i(31220))}),r("discourse/components/emoji-picker/index",function(){return(0,s.A)(i(63829))}),r("discourse/components/empty-state",function(){return(0,s.A)(i(74740))}),r("discourse/components/expand-post",function(){return(0,s.A)(i(26372))}),r("discourse/components/expanding-text-area",function(){return(0,s.A)(i(38679))}),r("discourse/components/fast-edit",function(){return(0,s.A)(i(77924))}),r("discourse/components/featured-topic",function(){return(0,s.A)(i(24406))}),r("discourse/components/filter-input",function(){return(0,s.A)(i(80278))}),r("discourse/components/flag-action-type",function(){return(0,s.A)(i(72135))}),r("discourse/components/flag-selection",function(){return(0,s.A)(i(23656))}),r("discourse/components/flash-message",function(){return(0,s.A)(i(35445))}),r("discourse/components/flat-button",function(){return(0,s.A)(i(22073))}),r("discourse/components/footer-message",function(){return(0,s.A)(i(17788))}),r("discourse/components/footer-nav",function(){return(0,s.A)(i(41194))}),r("discourse/components/form-template-field/checkbox",function(){return(0,s.A)(i(60463))}),r("discourse/components/form-template-field/dropdown",function(){return(0,s.A)(i(83193))}),r("discourse/components/form-template-field/input",function(){return(0,s.A)(i(74855))}),r("discourse/components/form-template-field/multi-select",function(){return(0,s.A)(i(29402))}),r("discourse/components/form-template-field/textarea",function(){return(0,s.A)(i(57470))}),r("discourse/components/form-template-field/upload",function(){return(0,s.A)(i(4135))}),r("discourse/components/form-template-field/wrapper",function(){return(0,s.A)(i(22053))}),r("discourse/components/form",function(){return(0,s.A)(i(15447))}),r("discourse/components/fullname-input",function(){return(0,s.A)(i(72530))}),r("discourse/components/future-date-input",function(){return(0,s.A)(i(92076))}),r("discourse/components/generated-invite-link",function(){return(0,s.A)(i(11961))}),r("discourse/components/glimmer-component-with-deprecated-parent-view",function(){return(0,s.A)(i(7056))}),r("discourse/components/glimmer-site-header",function(){return(0,s.A)(i(54664))}),r("discourse/components/global-notice",function(){return(0,s.A)(i(66758))}),r("discourse/components/google-icon",function(){return(0,s.A)(i(54514))}),r("discourse/components/google-search",function(){return(0,s.A)(i(4751))}),r("discourse/components/group-activity-filter",function(){return(0,s.A)(i(27033))}),r("discourse/components/group-card-contents",function(){return(0,s.A)(i(38635))}),r("discourse/components/group-flair-inputs",function(){return(0,s.A)(i(44921))}),r("discourse/components/group-imap-email-settings",function(){return(0,s.A)(i(52909))}),r("discourse/components/group-info",function(){return(0,s.A)(i(65079))}),r("discourse/components/group-manage-email-settings",function(){return(0,s.A)(i(85974))}),r("discourse/components/group-manage-logs-filter",function(){return(0,s.A)(i(97442))}),r("discourse/components/group-manage-logs-row",function(){return(0,s.A)(i(48103))}),r("discourse/components/group-manage-save-button",function(){return(0,s.A)(i(45176))}),r("discourse/components/group-member-dropdown",function(){return(0,s.A)(i(14995))}),r("discourse/components/group-member",function(){return(0,s.A)(i(10588))}),r("discourse/components/group-membership-button",function(){return(0,s.A)(i(95253))}),r("discourse/components/group-navigation",function(){return(0,s.A)(i(70972))}),r("discourse/components/group-notifications-tracking",function(){return(0,s.A)(i(18005))}),r("discourse/components/group-selector",function(){return(0,s.A)(i(26145))}),r("discourse/components/group-smtp-email-settings",function(){return(0,s.A)(i(14178))}),r("discourse/components/groups-form-interaction-fields",function(){return(0,s.A)(i(73456))}),r("discourse/components/groups-form-membership-fields",function(){return(0,s.A)(i(7325))}),r("discourse/components/groups-form-profile-fields",function(){return(0,s.A)(i(91023))}),r("discourse/components/header-extra-info",function(){return(0,s.A)(i(24388))}),r("discourse/components/header",function(){return(0,s.A)(i(8972))}),r("discourse/components/header/auth-buttons",function(){return(0,s.A)(i(96013))}),r("discourse/components/header/contents",function(){return(0,s.A)(i(30165))}),r("discourse/components/header/dropdown",function(){return(0,s.A)(i(27358))}),r("discourse/components/header/hamburger-dropdown-wrapper",function(){return(0,s.A)(i(87706))}),r("discourse/components/header/home-logo-contents",function(){return(0,s.A)(i(55033))}),r("discourse/components/header/home-logo",function(){return(0,s.A)(i(64210))}),r("discourse/components/header/icons",function(){return(0,s.A)(i(78329))}),r("discourse/components/header/logo",function(){return(0,s.A)(i(12340))}),r("discourse/components/header/search-menu-wrapper",function(){return(0,s.A)(i(36909))}),r("discourse/components/header/sidebar-toggle",function(){return(0,s.A)(i(14820))}),r("discourse/components/header/topic/featured-link",function(){return(0,s.A)(i(64310))}),r("discourse/components/header/topic/info",function(){return(0,s.A)(i(26035))}),r("discourse/components/header/topic/participant",function(){return(0,s.A)(i(78758))}),r("discourse/components/header/user-dropdown",function(){return(0,s.A)(i(12352))}),r("discourse/components/header/user-dropdown/notifications",function(){return(0,s.A)(i(55583))}),r("discourse/components/header/user-dropdown/user-status-bubble",function(){return(0,s.A)(i(53590))}),r("discourse/components/header/user-menu-wrapper",function(){return(0,s.A)(i(91080))}),r("discourse/components/highlight-search",function(){return(0,s.A)(i(81266))}),r("discourse/components/honeypot-input",function(){return(0,s.A)(i(32574))}),r("discourse/components/horizontal-overflow-nav",function(){return(0,s.A)(i(37740))}),r("discourse/components/html-with-links",function(){return(0,s.A)(i(29165))}),r("discourse/components/iframed-html",function(){return(0,s.A)(i(18771))}),r("discourse/components/ignored-user-list-item",function(){return(0,s.A)(i(82612))}),r("discourse/components/ignored-user-list",function(){return(0,s.A)(i(41620))}),r("discourse/components/input-tip",function(){return(0,s.A)(i(91933))}),r("discourse/components/invite-panel",function(){return(0,s.A)(i(60408))}),r("discourse/components/latest-topic-list-item",function(){return(0,s.A)(i(66266))}),r("discourse/components/legacy-about-page-users",function(){return(0,s.A)(i(50309))}),r("discourse/components/light-dark-img",function(){return(0,s.A)(i(74916))}),r("discourse/components/link-to-input",function(){return(0,s.A)(i(64140))}),r("discourse/components/links-redirect",function(){return(0,s.A)(i(47677))}),r("discourse/components/load-more",function(){return(0,s.A)(i(66203))}),r("discourse/components/loading-slider-fallback-spinner",function(){return(0,s.A)(i(50586))}),r("discourse/components/local-login-form",function(){return(0,s.A)(i(24879))}),r("discourse/components/login-buttons",function(){return(0,s.A)(i(15202))}),r("discourse/components/login-page-cta",function(){return(0,s.A)(i(40841))}),r("discourse/components/menu-panel",function(){return(0,s.A)(i(79747))}),r("discourse/components/mobile-category-topic",function(){return(0,s.A)(i(26068))}),r("discourse/components/mobile-nav",function(){return(0,s.A)(i(66585))}),r("discourse/components/modal-container",function(){return(0,s.A)(i(27510))}),r("discourse/components/modal/activation-edit",function(){return(0,s.A)(i(77232))}),r("discourse/components/modal/activation-resent",function(){return(0,s.A)(i(81025))}),r("discourse/components/modal/add-pm-participants",function(){return(0,s.A)(i(96049))}),r("discourse/components/modal/anonymous-flag",function(){return(0,s.A)(i(96853))}),r("discourse/components/modal/associate-account-confirm",function(){return(0,s.A)(i(50984))}),r("discourse/components/modal/auth-token",function(){return(0,s.A)(i(81031))}),r("discourse/components/modal/avatar-selector",function(){return(0,s.A)(i(67718))}),r("discourse/components/modal/bookmark",function(){return(0,s.A)(i(46079))}),r("discourse/components/modal/bulk-topic-actions",function(){return(0,s.A)(i(58511))}),r("discourse/components/modal/change-owner",function(){return(0,s.A)(i(9177))}),r("discourse/components/modal/change-post-notice",function(){return(0,s.A)(i(97207))}),r("discourse/components/modal/change-timestamp",function(){return(0,s.A)(i(78703))}),r("discourse/components/modal/convert-to-public-topic",function(){return(0,s.A)(i(42400))}),r("discourse/components/modal/create-account",function(){return(0,s.A)(i(63823))}),r("discourse/components/modal/create-invite-bulk",function(){return(0,s.A)(i(94482))}),r("discourse/components/modal/create-invite",function(){return(0,s.A)(i(70841))}),r("discourse/components/modal/customize-form-template-view",function(){return(0,s.A)(i(6984))}),r("discourse/components/modal/delete-themes-confirm",function(){return(0,s.A)(i(39299))}),r("discourse/components/modal/delete-topic-confirm",function(){return(0,s.A)(i(19192))}),r("discourse/components/modal/delete-topic-disallowed",function(){return(0,s.A)(i(40172))}),r("discourse/components/modal/discard-draft",function(){return(0,s.A)(i(93003))}),r("discourse/components/modal/dismiss-new",function(){return(0,s.A)(i(71128))}),r("discourse/components/modal/dismiss-notification-confirmation",function(){return(0,s.A)(i(6868))}),r("discourse/components/modal/dismiss-read",function(){return(0,s.A)(i(35092))}),r("discourse/components/modal/do-not-disturb",function(){return(0,s.A)(i(96588))}),r("discourse/components/modal/download-calendar",function(){return(0,s.A)(i(86966))}),r("discourse/components/modal/edit-slow-mode",function(){return(0,s.A)(i(57763))}),r("discourse/components/modal/edit-topic-timer",function(){return(0,s.A)(i(97088))}),r("discourse/components/modal/edit-user-directory-columns",function(){return(0,s.A)(i(61705))}),r("discourse/components/modal/explain-reviewable",function(){return(0,s.A)(i(96325))}),r("discourse/components/modal/fast-edit",function(){return(0,s.A)(i(60669))}),r("discourse/components/modal/feature-topic-on-profile",function(){return(0,s.A)(i(99626))}),r("discourse/components/modal/feature-topic",function(){return(0,s.A)(i(5730))}),r("discourse/components/modal/flag",function(){return(0,s.A)(i(68395))}),r("discourse/components/modal/forgot-password",function(){return(0,s.A)(i(66726))}),r("discourse/components/modal/form-template-form-preview",function(){return(0,s.A)(i(33452))}),r("discourse/components/modal/fullscreen-code",function(){return(0,s.A)(i(49294))}),r("discourse/components/modal/fullscreen-table",function(){return(0,s.A)(i(65267))}),r("discourse/components/modal/grant-badge",function(){return(0,s.A)(i(71339))}),r("discourse/components/modal/group-add-members",function(){return(0,s.A)(i(240))}),r("discourse/components/modal/group-default-notifications",function(){return(0,s.A)(i(36453))}),r("discourse/components/modal/history",function(){return(0,s.A)(i(99450))}),r("discourse/components/modal/history/revision",function(){return(0,s.A)(i(66962))}),r("discourse/components/modal/history/revisions",function(){return(0,s.A)(i(77086))}),r("discourse/components/modal/history/topic-footer",function(){return(0,s.A)(i(44404))}),r("discourse/components/modal/ignore-duration-with-username",function(){return(0,s.A)(i(41480))}),r("discourse/components/modal/insert-hyperlink",function(){return(0,s.A)(i(22381))}),r("discourse/components/modal/json-schema-editor",function(){return(0,s.A)(i(77499))}),r("discourse/components/modal/jump-to-post",function(){return(0,s.A)(i(63568))}),r("discourse/components/modal/keyboard-shortcuts-help",function(){return(0,s.A)(i(25150))}),r("discourse/components/modal/login",function(){return(0,s.A)(i(62121))}),r("discourse/components/modal/move-to-topic",function(){return(0,s.A)(i(49798))}),r("discourse/components/modal/not-activated",function(){return(0,s.A)(i(4374))}),r("discourse/components/modal/post-enqueued",function(){return(0,s.A)(i(32871))}),r("discourse/components/modal/publish-page",function(){return(0,s.A)(i(57698))}),r("discourse/components/modal/raw-email",function(){return(0,s.A)(i(70470))}),r("discourse/components/modal/reject-reason-reviewable",function(){return(0,s.A)(i(72182))}),r("discourse/components/modal/reorder-categories",function(){return(0,s.A)(i(32904))}),r("discourse/components/modal/request-group-membership-form",function(){return(0,s.A)(i(24822))}),r("discourse/components/modal/revise-and-reject-post-reviewable",function(){return(0,s.A)(i(69587))}),r("discourse/components/modal/second-factor-add-security-key",function(){return(0,s.A)(i(90245))}),r("discourse/components/modal/second-factor-add-totp",function(){return(0,s.A)(i(31555))}),r("discourse/components/modal/second-factor-backup-edit",function(){return(0,s.A)(i(26212))}),r("discourse/components/modal/second-factor-edit-security-key",function(){return(0,s.A)(i(34560))}),r("discourse/components/modal/second-factor-edit",function(){return(0,s.A)(i(47844))}),r("discourse/components/modal/share-topic",function(){return(0,s.A)(i(9359))}),r("discourse/components/modal/sidebar-section-form",function(){return(0,s.A)(i(53527))}),r("discourse/components/modal/spreadsheet-editor",function(){return(0,s.A)(i(59967))}),r("discourse/components/modal/tag-upload",function(){return(0,s.A)(i(33388))}),r("discourse/components/modal/user-status",function(){return(0,s.A)(i(47235))}),r("discourse/components/more-topics",function(){return(0,s.A)(i(86385))}),r("discourse/components/more-topics/browse-more",function(){return(0,s.A)(i(16518))}),r("discourse/components/mount-widget",function(){return(0,s.A)(i(40260))}),r("discourse/components/nav-item",function(){return(0,s.A)(i(11262))}),r("discourse/components/navigation-bar",function(){return(0,s.A)(i(54347))}),r("discourse/components/navigation-item",function(){return(0,s.A)(i(52719))}),r("discourse/components/new-list-header-controls-wrapper",function(){return(0,s.A)(i(10817))}),r("discourse/components/notification-consent-banner",function(){return(0,s.A)(i(59084))}),r("discourse/components/notifications-tracking",function(){return(0,s.A)(i(75099))}),r("discourse/components/number-field",function(){return(0,s.A)(i(53985))}),r("discourse/components/offline-indicator",function(){return(0,s.A)(i(76486))}),r("discourse/components/page-loading-slider",function(){return(0,s.A)(i(45626))}),r("discourse/components/parent-category-row",function(){return(0,s.A)(i(52050))}),r("discourse/components/passkey-login-button",function(){return(0,s.A)(i(1390))}),r("discourse/components/password-field",function(){return(0,s.A)(i(72641))}),r("discourse/components/pick-files-button",function(){return(0,s.A)(i(13780))}),r("discourse/components/plugin-connector",function(){return(0,s.A)(i(44620))}),r("discourse/components/plugin-outlet",function(){return(0,s.A)(i(98740))}),r("discourse/components/popup-input-tip",function(){return(0,s.A)(i(31882))}),r("discourse/components/popup-menu",function(){return(0,s.A)(i(29062))}),r("discourse/components/post-action-description",function(){return(0,s.A)(i(42637))}),r("discourse/components/post-list/index",function(){return(0,s.A)(i(19419))}),r("discourse/components/post-list/item/details",function(){return(0,s.A)(i(71241))}),r("discourse/components/post-list/item/index",function(){return(0,s.A)(i(38003))}),r("discourse/components/post-text-selection-toolbar",function(){return(0,s.A)(i(83962))}),r("discourse/components/post-text-selection",function(){return(0,s.A)(i(65344))}),r("discourse/components/post/menu",function(){return(0,s.A)(i(64461))}),r("discourse/components/post/menu/button-config",function(){return(0,s.A)(i(46391))}),r("discourse/components/post/menu/button-wrapper",function(){return(0,s.A)(i(11194))}),r("discourse/components/post/menu/buttons/admin",function(){return(0,s.A)(i(4495))}),r("discourse/components/post/menu/buttons/bookmark",function(){return(0,s.A)(i(75158))}),r("discourse/components/post/menu/buttons/copy-link",function(){return(0,s.A)(i(10592))}),r("discourse/components/post/menu/buttons/delete",function(){return(0,s.A)(i(32401))}),r("discourse/components/post/menu/buttons/edit",function(){return(0,s.A)(i(70862))}),r("discourse/components/post/menu/buttons/flag",function(){return(0,s.A)(i(48248))}),r("discourse/components/post/menu/buttons/like",function(){return(0,s.A)(i(69989))}),r("discourse/components/post/menu/buttons/read",function(){return(0,s.A)(i(64314))}),r("discourse/components/post/menu/buttons/replies",function(){return(0,s.A)(i(69504))}),r("discourse/components/post/menu/buttons/reply",function(){return(0,s.A)(i(68072))}),r("discourse/components/post/menu/buttons/share",function(){return(0,s.A)(i(47099))}),r("discourse/components/post/menu/buttons/show-more",function(){return(0,s.A)(i(97493))}),r("discourse/components/powered-by-discourse",function(){return(0,s.A)(i(50915))}),r("discourse/components/preference-checkbox",function(){return(0,s.A)(i(4096))}),r("discourse/components/private-message-glyph",function(){return(0,s.A)(i(72555))}),r("discourse/components/pwa-install-banner",function(){return(0,s.A)(i(94106))}),r("discourse/components/radio-button",function(){return(0,s.A)(i(38267))}),r("discourse/components/related-messages",function(){return(0,s.A)(i(85943))}),r("discourse/components/relative-date",function(){return(0,s.A)(i(17942))}),r("discourse/components/relative-time-picker",function(){return(0,s.A)(i(61382))}),r("discourse/components/render-glimmer-container",function(){return(0,s.A)(i(47265))}),r("discourse/components/responsive-table",function(){return(0,s.A)(i(8974))}),r("discourse/components/reviewable-bundled-action",function(){return(0,s.A)(i(71295))}),r("discourse/components/reviewable-claimed-topic",function(){return(0,s.A)(i(72087))}),r("discourse/components/reviewable-conversation-post",function(){return(0,s.A)(i(88840))}),r("discourse/components/reviewable-created-by-name",function(){return(0,s.A)(i(33546))}),r("discourse/components/reviewable-created-by",function(){return(0,s.A)(i(78928))}),r("discourse/components/reviewable-field-category",function(){return(0,s.A)(i(89866))}),r("discourse/components/reviewable-field-editor",function(){return(0,s.A)(i(16994))}),r("discourse/components/reviewable-field-tags",function(){return(0,s.A)(i(17451))}),r("discourse/components/reviewable-field-text",function(){return(0,s.A)(i(11275))}),r("discourse/components/reviewable-field-textarea",function(){return(0,s.A)(i(29297))}),r("discourse/components/reviewable-field",function(){return(0,s.A)(i(60333))}),r("discourse/components/reviewable-flagged-post",function(){return(0,s.A)(i(33858))}),r("discourse/components/reviewable-histories",function(){return(0,s.A)(i(72168))}),r("discourse/components/reviewable-item",function(){return(0,s.A)(i(9212))}),r("discourse/components/reviewable-post-edits",function(){return(0,s.A)(i(27333))}),r("discourse/components/reviewable-post-header",function(){return(0,s.A)(i(6220))}),r("discourse/components/reviewable-post",function(){return(0,s.A)(i(92699))}),r("discourse/components/reviewable-queued-post",function(){return(0,s.A)(i(15306))}),r("discourse/components/reviewable-score",function(){return(0,s.A)(i(97197))}),r("discourse/components/reviewable-scores",function(){return(0,s.A)(i(36406))}),r("discourse/components/reviewable-tags",function(){return(0,s.A)(i(57939))}),r("discourse/components/reviewable-topic-link",function(){return(0,s.A)(i(70744))}),r("discourse/components/reviewable-user",function(){return(0,s.A)(i(79494))}),r("discourse/components/save-controls",function(){return(0,s.A)(i(5968))}),r("discourse/components/score-value",function(){return(0,s.A)(i(21623))}),r("discourse/components/scrolling-post-stream",function(){return(0,s.A)(i(19538))}),r("discourse/components/search-advanced-options",function(){return(0,s.A)(i(65755))}),r("discourse/components/search-menu-panel",function(){return(0,s.A)(i(91223))}),r("discourse/components/search-menu",function(){return(0,s.A)(i(57746))}),r("discourse/components/search-menu/advanced-button",function(){return(0,s.A)(i(33304))}),r("discourse/components/search-menu/browser-search-tip",function(){return(0,s.A)(i(83171))}),r("discourse/components/search-menu/clear-button",function(){return(0,s.A)(i(11112))}),r("discourse/components/search-menu/highlighted-search",function(){return(0,s.A)(i(23691))}),r("discourse/components/search-menu/results",function(){return(0,s.A)(i(81702))}),r("discourse/components/search-menu/results/assistant-item",function(){return(0,s.A)(i(64685))}),r("discourse/components/search-menu/results/assistant",function(){return(0,s.A)(i(3506))}),r("discourse/components/search-menu/results/blurb",function(){return(0,s.A)(i(45503))}),r("discourse/components/search-menu/results/initial-options",function(){return(0,s.A)(i(14492))}),r("discourse/components/search-menu/results/more-link",function(){return(0,s.A)(i(8912))}),r("discourse/components/search-menu/results/random-quick-tip",function(){return(0,s.A)(i(47488))}),r("discourse/components/search-menu/results/recent-searches",function(){return(0,s.A)(i(16391))}),r("discourse/components/search-menu/results/type/category",function(){return(0,s.A)(i(52629))}),r("discourse/components/search-menu/results/type/group",function(){return(0,s.A)(i(10593))}),r("discourse/components/search-menu/results/type/post",function(){return(0,s.A)(i(99918))}),r("discourse/components/search-menu/results/type/tag",function(){return(0,s.A)(i(97994))}),r("discourse/components/search-menu/results/type/topic",function(){return(0,s.A)(i(84642))}),r("discourse/components/search-menu/results/type/user",function(){return(0,s.A)(i(28350))}),r("discourse/components/search-menu/results/types",function(){return(0,s.A)(i(66674))}),r("discourse/components/search-menu/search-term",function(){return(0,s.A)(i(37437))}),r("discourse/components/search-result-entries",function(){return(0,s.A)(i(56208))}),r("discourse/components/search-result-entry",function(){return(0,s.A)(i(3314))}),r("discourse/components/search-text-field",function(){return(0,s.A)(i(64756))}),r("discourse/components/second-factor-form",function(){return(0,s.A)(i(70876))}),r("discourse/components/second-factor-input",function(){return(0,s.A)(i(58388))}),r("discourse/components/security-key-dropdown",function(){return(0,s.A)(i(96035))}),r("discourse/components/security-key-form",function(){return(0,s.A)(i(640))}),r("discourse/components/selected-posts",function(){return(0,s.A)(i(70283))}),r("discourse/components/share-panel",function(){return(0,s.A)(i(34088))}),r("discourse/components/share-source",function(){return(0,s.A)(i(13342))}),r("discourse/components/shared-draft-controls",function(){return(0,s.A)(i(23817))}),r("discourse/components/sidebar",function(){return(0,s.A)(i(81898))}),r("discourse/components/sidebar/anonymous/categories-section",function(){return(0,s.A)(i(99668))}),r("discourse/components/sidebar/anonymous/custom-sections",function(){return(0,s.A)(i(56554))}),r("discourse/components/sidebar/anonymous/sections",function(){return(0,s.A)(i(23982))}),r("discourse/components/sidebar/anonymous/tags-section",function(){return(0,s.A)(i(8221))}),r("discourse/components/sidebar/api-panels",function(){return(0,s.A)(i(29524))}),r("discourse/components/sidebar/api-section",function(){return(0,s.A)(i(4164))}),r("discourse/components/sidebar/api-sections",function(){return(0,s.A)(i(31243))}),r("discourse/components/sidebar/back-to-forum",function(){return(0,s.A)(i(80385))}),r("discourse/components/sidebar/common/all-categories-section-link",function(){return(0,s.A)(i(12661))}),r("discourse/components/sidebar/common/all-tags-section-link",function(){return(0,s.A)(i(99598))}),r("discourse/components/sidebar/common/categories-section",function(){return(0,s.A)(i(24202))}),r("discourse/components/sidebar/common/custom-section",function(){return(0,s.A)(i(2725))}),r("discourse/components/sidebar/common/custom-sections",function(){return(0,s.A)(i(32432))}),r("discourse/components/sidebar/edit-navigation-menu/categories-modal",function(){return(0,s.A)(i(88034))}),r("discourse/components/sidebar/edit-navigation-menu/modal",function(){return(0,s.A)(i(53297))}),r("discourse/components/sidebar/edit-navigation-menu/tags-modal",function(){return(0,s.A)(i(69687))}),r("discourse/components/sidebar/filter-no-results",function(){return(0,s.A)(i(10535))}),r("discourse/components/sidebar/filter",function(){return(0,s.A)(i(95626))}),r("discourse/components/sidebar/footer",function(){return(0,s.A)(i(9571))}),r("discourse/components/sidebar/hamburger-dropdown",function(){return(0,s.A)(i(5787))}),r("discourse/components/sidebar/more-section-link",function(){return(0,s.A)(i(96860))}),r("discourse/components/sidebar/more-section-links",function(){return(0,s.A)(i(35507))}),r("discourse/components/sidebar/panel-header",function(){return(0,s.A)(i(74460))}),r("discourse/components/sidebar/section-form-link",function(){return(0,s.A)(i(25961))}),r("discourse/components/sidebar/section-header",function(){return(0,s.A)(i(36551))}),r("discourse/components/sidebar/section-link-button",function(){return(0,s.A)(i(68767))}),r("discourse/components/sidebar/section-link-prefix",function(){return(0,s.A)(i(94119))}),r("discourse/components/sidebar/section-link",function(){return(0,s.A)(i(4818))}),r("discourse/components/sidebar/section-message",function(){return(0,s.A)(i(3267))}),r("discourse/components/sidebar/section",function(){return(0,s.A)(i(27197))}),r("discourse/components/sidebar/sections",function(){return(0,s.A)(i(80568))}),r("discourse/components/sidebar/switch-panel-buttons",function(){return(0,s.A)(i(14903))}),r("discourse/components/sidebar/toggle-all-sections",function(){return(0,s.A)(i(10639))}),r("discourse/components/sidebar/user/categories-section",function(){return(0,s.A)(i(92936))}),r("discourse/components/sidebar/user/custom-sections",function(){return(0,s.A)(i(14446))}),r("discourse/components/sidebar/user/messages-section",function(){return(0,s.A)(i(89344))}),r("discourse/components/sidebar/user/sections",function(){return(0,s.A)(i(93810))}),r("discourse/components/sidebar/user/tags-section",function(){return(0,s.A)(i(41513))}),r("discourse/components/signup-cta",function(){return(0,s.A)(i(83069))}),r("discourse/components/signup-page-cta",function(){return(0,s.A)(i(91010))}),r("discourse/components/signup-progress-bar",function(){return(0,s.A)(i(66613))}),r("discourse/components/slow-mode-info",function(){return(0,s.A)(i(68115))}),r("discourse/components/small-user-list",function(){return(0,s.A)(i(10329))}),r("discourse/components/software-update-prompt",function(){return(0,s.A)(i(92139))}),r("discourse/components/sub-category-item",function(){return(0,s.A)(i(76061))}),r("discourse/components/sub-category-row",function(){return(0,s.A)(i(18555))}),r("discourse/components/subcategories-with-featured-topics",function(){return(0,s.A)(i(22388))}),r("discourse/components/suggested-topics",function(){return(0,s.A)(i(49179))}),r("discourse/components/table-header-toggle",function(){return(0,s.A)(i(51752))}),r("discourse/components/tag-groups-form",function(){return(0,s.A)(i(81059))}),r("discourse/components/tag-info",function(){return(0,s.A)(i(20259))}),r("discourse/components/tag-list",function(){return(0,s.A)(i(17347))}),r("discourse/components/tag-notifications-tracking",function(){return(0,s.A)(i(56684))}),r("discourse/components/tags-admin-dropdown",function(){return(0,s.A)(i(17798))}),r("discourse/components/tap-tile-grid",function(){return(0,s.A)(i(78569))}),r("discourse/components/tap-tile",function(){return(0,s.A)(i(43503))}),r("discourse/components/text-field",function(){return(0,s.A)(i(39131))}),r("discourse/components/time-gap",function(){return(0,s.A)(i(6557))}),r("discourse/components/time-input",function(){return(0,s.A)(i(55060))}),r("discourse/components/time-shortcut-picker",function(){return(0,s.A)(i(6078))}),r("discourse/components/toggle-password-mask",function(){return(0,s.A)(i(76994))}),r("discourse/components/token-based-auth-dropdown",function(){return(0,s.A)(i(20967))}),r("discourse/components/top-period-buttons",function(){return(0,s.A)(i(88273))}),r("discourse/components/topic-admin-menu",function(){return(0,s.A)(i(68830))}),r("discourse/components/topic-category",function(){return(0,s.A)(i(83788))}),r("discourse/components/topic-dismiss-buttons",function(){return(0,s.A)(i(44547))}),r("discourse/components/topic-drafts-dropdown",function(){return(0,s.A)(i(53589))}),r("discourse/components/topic-entrance",function(){return(0,s.A)(i(93926))}),r("discourse/components/topic-footer-buttons",function(){return(0,s.A)(i(98912))}),r("discourse/components/topic-label-content",function(){return(0,s.A)(i(55869))}),r("discourse/components/topic-list-item",function(){return(0,s.A)(i(52350))}),r("discourse/components/topic-list",function(){return(0,s.A)(i(86854))}),r("discourse/components/topic-list/action-list",function(){return(0,s.A)(i(75881))}),r("discourse/components/topic-list/featured-topic",function(){return(0,s.A)(i(1034))}),r("discourse/components/topic-list/header",function(){return(0,s.A)(i(17235))}),r("discourse/components/topic-list/header/activity-cell",function(){return(0,s.A)(i(44456))}),r("discourse/components/topic-list/header/bulk-select-cell",function(){return(0,s.A)(i(50196))}),r("discourse/components/topic-list/header/likes-cell",function(){return(0,s.A)(i(31861))}),r("discourse/components/topic-list/header/op-likes-cell",function(){return(0,s.A)(i(68885))}),r("discourse/components/topic-list/header/posters-cell",function(){return(0,s.A)(i(9759))}),r("discourse/components/topic-list/header/replies-cell",function(){return(0,s.A)(i(1877))}),r("discourse/components/topic-list/header/sortable-column",function(){return(0,s.A)(i(29997))}),r("discourse/components/topic-list/header/topic-cell",function(){return(0,s.A)(i(27360))}),r("discourse/components/topic-list/header/views-cell",function(){return(0,s.A)(i(41811))}),r("discourse/components/topic-list/item",function(){return(0,s.A)(i(40709))}),r("discourse/components/topic-list/item/activity-cell",function(){return(0,s.A)(i(482))}),r("discourse/components/topic-list/item/bulk-select-cell",function(){return(0,s.A)(i(4346))}),r("discourse/components/topic-list/item/likes-cell",function(){return(0,s.A)(i(58619))}),r("discourse/components/topic-list/item/op-likes-cell",function(){return(0,s.A)(i(87195))}),r("discourse/components/topic-list/item/posters-cell",function(){return(0,s.A)(i(75765))}),r("discourse/components/topic-list/item/replies-cell",function(){return(0,s.A)(i(13243))}),r("discourse/components/topic-list/item/topic-cell",function(){return(0,s.A)(i(37110))}),r("discourse/components/topic-list/item/views-cell",function(){return(0,s.A)(i(11749))}),r("discourse/components/topic-list/latest-topic-list-item",function(){return(0,s.A)(i(61602))}),r("discourse/components/topic-list/list",function(){return(0,s.A)(i(46030))}),r("discourse/components/topic-list/new-list-header-controls",function(){return(0,s.A)(i(79360))}),r("discourse/components/topic-list/participant-groups",function(){return(0,s.A)(i(4918))}),r("discourse/components/topic-list/post-count-or-badges",function(){return(0,s.A)(i(72107))}),r("discourse/components/topic-list/topic-bulk-select-dropdown",function(){return(0,s.A)(i(20139))}),r("discourse/components/topic-list/topic-excerpt",function(){return(0,s.A)(i(2635))}),r("discourse/components/topic-list/topic-link",function(){return(0,s.A)(i(1840))}),r("discourse/components/topic-list/unread-indicator",function(){return(0,s.A)(i(5029))}),r("discourse/components/topic-map/index",function(){return(0,s.A)(i(1310))}),r("discourse/components/topic-map/private-message-map",function(){return(0,s.A)(i(73808))}),r("discourse/components/topic-map/topic-map-link",function(){return(0,s.A)(i(38275))}),r("discourse/components/topic-map/topic-map-summary",function(){return(0,s.A)(i(80107))}),r("discourse/components/topic-map/topic-participant",function(){return(0,s.A)(i(41553))}),r("discourse/components/topic-map/topic-participants",function(){return(0,s.A)(i(28420))}),r("discourse/components/topic-map/topic-views-chart",function(){return(0,s.A)(i(93131))}),r("discourse/components/topic-map/topic-views",function(){return(0,s.A)(i(64338))}),r("discourse/components/topic-navigation-popup",function(){return(0,s.A)(i(12218))}),r("discourse/components/topic-navigation",function(){return(0,s.A)(i(49757))}),r("discourse/components/topic-notifications-tracking",function(){return(0,s.A)(i(28261))}),r("discourse/components/topic-post-badges",function(){return(0,s.A)(i(34574))}),r("discourse/components/topic-progress",function(){return(0,s.A)(i(39454))}),r("discourse/components/topic-status",function(){return(0,s.A)(i(40121))}),r("discourse/components/topic-timeline",function(){return(0,s.A)(i(5084))}),r("discourse/components/topic-timeline/back-button",function(){return(0,s.A)(i(63589))}),r("discourse/components/topic-timeline/container",function(){return(0,s.A)(i(96820))}),r("discourse/components/topic-timeline/scroller",function(){return(0,s.A)(i(14365))}),r("discourse/components/topic-timer-info",function(){return(0,s.A)(i(66380))}),r("discourse/components/topic-title",function(){return(0,s.A)(i(42693))}),r("discourse/components/track-selected",function(){return(0,s.A)(i(77114))}),r("discourse/components/two-factor-backup-dropdown",function(){return(0,s.A)(i(61746))}),r("discourse/components/uppy-image-uploader",function(){return(0,s.A)(i(76572))}),r("discourse/components/user-avatar-flair",function(){return(0,s.A)(i(94366))}),r("discourse/components/user-badge",function(){return(0,s.A)(i(18836))}),r("discourse/components/user-card-contents",function(){return(0,s.A)(i(96141))}),r("discourse/components/user-field",function(){return(0,s.A)(i(96183))}),r("discourse/components/user-fields/base",function(){return(0,s.A)(i(84487))}),r("discourse/components/user-fields/confirm",function(){return(0,s.A)(i(64759))}),r("discourse/components/user-fields/dropdown",function(){return(0,s.A)(i(16672))}),r("discourse/components/user-fields/multiselect",function(){return(0,s.A)(i(82459))}),r("discourse/components/user-fields/text",function(){return(0,s.A)(i(47727))}),r("discourse/components/user-flag-percentage",function(){return(0,s.A)(i(35010))}),r("discourse/components/user-info",function(){return(0,s.A)(i(56193))}),r("discourse/components/user-link",function(){return(0,s.A)(i(1779))}),r("discourse/components/user-menu/bookmarks-list-empty-state",function(){return(0,s.A)(i(56453))}),r("discourse/components/user-menu/bookmarks-list",function(){return(0,s.A)(i(30343))}),r("discourse/components/user-menu/icon-avatar",function(){return(0,s.A)(i(64282))}),r("discourse/components/user-menu/items-list-empty-state",function(){return(0,s.A)(i(22766))}),r("discourse/components/user-menu/items-list",function(){return(0,s.A)(i(99542))}),r("discourse/components/user-menu/likes-list-empty-state",function(){return(0,s.A)(i(68458))}),r("discourse/components/user-menu/likes-notifications-list",function(){return(0,s.A)(i(77007))}),r("discourse/components/user-menu/menu-item",function(){return(0,s.A)(i(36974))}),r("discourse/components/user-menu/menu-tab",function(){return(0,s.A)(i(8273))}),r("discourse/components/user-menu/menu",function(){return(0,s.A)(i(30601))}),r("discourse/components/user-menu/messages-list-empty-state",function(){return(0,s.A)(i(49448))}),r("discourse/components/user-menu/messages-list",function(){return(0,s.A)(i(63708))}),r("discourse/components/user-menu/notifications-list-empty-state",function(){return(0,s.A)(i(66533))}),r("discourse/components/user-menu/notifications-list",function(){return(0,s.A)(i(72148))}),r("discourse/components/user-menu/other-notifications-list-empty-state",function(){return(0,s.A)(i(83866))}),r("discourse/components/user-menu/other-notifications-list",function(){return(0,s.A)(i(45289))}),r("discourse/components/user-menu/profile-tab-content",function(){return(0,s.A)(i(45054))}),r("discourse/components/user-menu/replies-notifications-list",function(){return(0,s.A)(i(62319))}),r("discourse/components/user-menu/reviewables-list",function(){return(0,s.A)(i(66499))}),r("discourse/components/user-nav",function(){return(0,s.A)(i(76449))}),r("discourse/components/user-nav/messages-dropdown",function(){return(0,s.A)(i(68827))}),r("discourse/components/user-nav/messages-secondary-nav",function(){return(0,s.A)(i(16590))}),r("discourse/components/user-notification-schedule-day",function(){return(0,s.A)(i(63765))}),r("discourse/components/user-notification-schedule",function(){return(0,s.A)(i(59533))}),r("discourse/components/user-preferences/categories",function(){return(0,s.A)(i(79728))}),r("discourse/components/user-preferences/passkey-options-dropdown",function(){return(0,s.A)(i(79187))}),r("discourse/components/user-preferences/rename-passkey",function(){return(0,s.A)(i(33995))}),r("discourse/components/user-preferences/tags",function(){return(0,s.A)(i(21123))}),r("discourse/components/user-preferences/user-api-keys",function(){return(0,s.A)(i(11022))}),r("discourse/components/user-preferences/user-passkeys",function(){return(0,s.A)(i(16769))}),r("discourse/components/user-profile-avatar",function(){return(0,s.A)(i(42755))}),r("discourse/components/user-stat",function(){return(0,s.A)(i(26345))}),r("discourse/components/user-status-message",function(){return(0,s.A)(i(64407))}),r("discourse/components/user-status-picker",function(){return(0,s.A)(i(66168))}),r("discourse/components/user-stream-item",function(){return(0,s.A)(i(219))}),r("discourse/components/user-stream",function(){return(0,s.A)(i(74195))}),r("discourse/components/user-summary-category-search",function(){return(0,s.A)(i(99930))}),r("discourse/components/user-summary-section",function(){return(0,s.A)(i(93793))}),r("discourse/components/user-summary-topic",function(){return(0,s.A)(i(54740))}),r("discourse/components/user-summary-topics-list",function(){return(0,s.A)(i(86650))}),r("discourse/components/user-summary-user",function(){return(0,s.A)(i(67083))}),r("discourse/components/user-summary-users-list",function(){return(0,s.A)(i(92453))}),r("discourse/components/user-tip-container",function(){return(0,s.A)(i(36072))}),r("discourse/components/user-tip",function(){return(0,s.A)(i(17282))}),r("discourse/components/username-preference",function(){return(0,s.A)(i(24291))}),r("discourse/components/watch-read",function(){return(0,s.A)(i(12299))}),r("discourse/components/welcome-header",function(){return(0,s.A)(i(3079))}),r("discourse/components/dialog-holder",function(){return(0,s.A)(i(92284))}),r("discourse/components/d-button-tooltip",function(){return(0,s.A)(i(92133))}),r("discourse/components/d-default-toast",function(){return(0,s.A)(i(24228))}),r("discourse/components/d-headless-menu",function(){return(0,s.A)(i(8246))}),r("discourse/components/d-headless-tooltip",function(){return(0,s.A)(i(54290))}),r("discourse/components/d-menu",function(){return(0,s.A)(i(95988))}),r("discourse/components/d-menus",function(){return(0,s.A)(i(2299))}),r("discourse/components/d-popover",function(){return(0,s.A)(i(51382))}),r("discourse/components/d-toasts",function(){return(0,s.A)(i(82083))}),r("discourse/components/d-tooltip",function(){return(0,s.A)(i(13808))}),r("discourse/components/d-tooltips",function(){return(0,s.A)(i(27983))}),r("discourse/helpers/age-with-tooltip",function(){return(0,s.A)(i(2500))}),r("discourse/helpers/avatar",function(){return(0,s.A)(i(70349))}),r("discourse/helpers/base-path",function(){return(0,s.A)(i(12677))}),r("discourse/helpers/base-url",function(){return(0,s.A)(i(85469))}),r("discourse/helpers/body-class",function(){return(0,s.A)(i(49941))}),r("discourse/helpers/border-color",function(){return(0,s.A)(i(27988))}),r("discourse/helpers/bound-avatar-template",function(){return(0,s.A)(i(16717))}),r("discourse/helpers/bound-avatar",function(){return(0,s.A)(i(66862))}),r("discourse/helpers/bound-category-link",function(){return(0,s.A)(i(89428))}),r("discourse/helpers/bound-date",function(){return(0,s.A)(i(43895))}),r("discourse/helpers/bound-i18n",function(){return(0,s.A)(i(63463))}),r("discourse/helpers/capitalize-string",function(){return(0,s.A)(i(36510))}),r("discourse/helpers/category-badge",function(){return(0,s.A)(i(26438))}),r("discourse/helpers/category-color-variable",function(){return(0,s.A)(i(6123))}),r("discourse/helpers/category-link",function(){return(0,s.A)(i(18385))}),r("discourse/helpers/category-variables",function(){return(0,s.A)(i(84483))}),r("discourse/helpers/cold-age-class",function(){return(0,s.A)(i(18509))}),r("discourse/helpers/component-for-collection",function(){return(0,s.A)(i(82256))}),r("discourse/helpers/component-for-row",function(){return(0,s.A)(i(93410))}),r("discourse/helpers/concat-class",function(){return(0,s.A)(i(81133))}),r("discourse/helpers/custom-html",function(){return(0,s.A)(i(1157))}),r("discourse/helpers/d-icon",function(){return(0,s.A)(i(72738))}),r("discourse/helpers/dash-if-empty",function(){return(0,s.A)(i(94774))}),r("discourse/helpers/dasherize",function(){return(0,s.A)(i(42369))}),r("discourse/helpers/decorate-username-selector",function(){return(0,s.A)(i(83296))}),r("discourse/helpers/deprecated-outlet-argument",function(){return(0,s.A)(i(8635))}),r("discourse/helpers/dir-span",function(){return(0,s.A)(i(10650))}),r("discourse/helpers/directory-column-is-automatic",function(){return(0,s.A)(i(53563))}),r("discourse/helpers/directory-column-is-user-field",function(){return(0,s.A)(i(61412))}),r("discourse/helpers/directory-item-label",function(){return(0,s.A)(i(56234))}),r("discourse/helpers/directory-item-value",function(){return(0,s.A)(i(32825))}),r("discourse/helpers/directory-table-header-title",function(){return(0,s.A)(i(4244))}),r("discourse/helpers/discourse-tag",function(){return(0,s.A)(i(6854))}),r("discourse/helpers/discourse-tags",function(){return(0,s.A)(i(23245))}),r("discourse/helpers/editable-value",function(){return(0,s.A)(i(62144))}),r("discourse/helpers/element",function(){return(0,s.A)(i(45782))}),r("discourse/helpers/emoji",function(){return(0,s.A)(i(54356))}),r("discourse/helpers/fa-icon-node",function(){return(0,s.A)(i(89276))}),r("discourse/helpers/fa-icon",function(){return(0,s.A)(i(53335))}),r("discourse/helpers/float",function(){return(0,s.A)(i(81500))}),r("discourse/helpers/format-age",function(){return(0,s.A)(i(7597))}),r("discourse/helpers/format-date",function(){return(0,s.A)(i(54412))}),r("discourse/helpers/format-duration",function(){return(0,s.A)(i(85644))}),r("discourse/helpers/format-username",function(){return(0,s.A)(i(93792))}),r("discourse/helpers/get-url",function(){return(0,s.A)(i(72722))}),r("discourse/helpers/helper-fn",function(){return(0,s.A)(i(96941))}),r("discourse/helpers/hide-application-footer",function(){return(0,s.A)(i(25507))}),r("discourse/helpers/hide-application-header-buttons",function(){return(0,s.A)(i(59077))}),r("discourse/helpers/hide-application-sidebar",function(){return(0,s.A)(i(16986))}),r("discourse/helpers/html-class",function(){return(0,s.A)(i(69488))}),r("discourse/helpers/html-safe",function(){return(0,s.A)(i(71899))}),r("discourse/helpers/i18n-yes-no",function(){return(0,s.A)(i(21324))}),r("discourse/helpers/i18n",function(){return(0,s.A)(i(84400))}),r("discourse/helpers/icon-or-image",function(){return(0,s.A)(i(10463))}),r("discourse/helpers/inline-date",function(){return(0,s.A)(i(95642))}),r("discourse/helpers/loading-spinner",function(){return(0,s.A)(i(43006))}),r("discourse/helpers/node",function(){return(0,s.A)(i(31768))}),r("discourse/helpers/noop",function(){return(0,s.A)(i(4964))}),r("discourse/helpers/number",function(){return(0,s.A)(i(72613))}),r("discourse/helpers/page-reloader",function(){return(0,s.A)(i(4194))}),r("discourse/helpers/period-title",function(){return(0,s.A)(i(47794))}),r("discourse/helpers/plugin-outlet",function(){return(0,s.A)(i(77777))}),r("discourse/helpers/raw-date",function(){return(0,s.A)(i(57553))}),r("discourse/helpers/raw-hash",function(){return(0,s.A)(i(90921))}),r("discourse/helpers/raw-plugin-outlet",function(){return(0,s.A)(i(66314))}),r("discourse/helpers/raw",function(){return(0,s.A)(i(10184))}),r("discourse/helpers/replace-emoji",function(){return(0,s.A)(i(46153))}),r("discourse/helpers/reviewable-history-description",function(){return(0,s.A)(i(31950))}),r("discourse/helpers/reviewable-status",function(){return(0,s.A)(i(45175))}),r("discourse/helpers/route-action",function(){return(0,s.A)(i(95422))}),r("discourse/helpers/share-url",function(){return(0,s.A)(i(87889))}),r("discourse/helpers/shorten-url",function(){return(0,s.A)(i(72387))}),r("discourse/helpers/slice",function(){return(0,s.A)(i(12536))}),r("discourse/helpers/slow-mode",function(){return(0,s.A)(i(93941))}),r("discourse/helpers/theme-i18n",function(){return(0,s.A)(i(97736))}),r("discourse/helpers/theme-prefix",function(){return(0,s.A)(i(99980))}),r("discourse/helpers/theme-setting",function(){return(0,s.A)(i(23658))}),r("discourse/helpers/topic-featured-link",function(){return(0,s.A)(i(41265))}),r("discourse/helpers/topic-link",function(){return(0,s.A)(i(52406))}),r("discourse/helpers/topic-status-icons",function(){return(0,s.A)(i(57699))}),r("discourse/helpers/unique-id",function(){return(0,s.A)(i(18933))}),r("discourse/helpers/user-avatar",function(){return(0,s.A)(i(56665))}),r("discourse/helpers/user-status",function(){return(0,s.A)(i(73794))}),r("discourse/helpers/value-entered",function(){return(0,s.A)(i(82645))}),r("discourse/helpers/with-event-value",function(){return(0,s.A)(i(48137))}),r("discourse/helpers/and",function(){return(0,s.A)(i(99160))}),r("discourse/helpers/eq",function(){return(0,s.A)(i(77747))}),r("discourse/helpers/gt",function(){return(0,s.A)(i(26130))}),r("discourse/helpers/gte",function(){return(0,s.A)(i(7419))}),r("discourse/helpers/includes",function(){return(0,s.A)(i(47032))}),r("discourse/helpers/lt",function(){return(0,s.A)(i(22933))}),r("discourse/helpers/lte",function(){return(0,s.A)(i(40262))}),r("discourse/helpers/not-eq",function(){return(0,s.A)(i(3303))}),r("discourse/helpers/not",function(){return(0,s.A)(i(72852))}),r("discourse/helpers/or",function(){return(0,s.A)(i(25788))}),r("discourse/helpers/app-version",function(){return(0,s.A)(i(6268))}),r("discourse/modifiers/auto-focus",function(){return(0,s.A)(i(3539))}),r("discourse/modifiers/close-on-click-outside",function(){return(0,s.A)(i(29112))}),r("discourse/modifiers/draggable",function(){return(0,s.A)(i(56742))}),r("discourse/modifiers/observe-intersection",function(){return(0,s.A)(i(51591))}),r("discourse/modifiers/on-resize",function(){return(0,s.A)(i(17693))}),r("discourse/modifiers/sticky-avatars",function(){return(0,s.A)(i(45777))}),r("discourse/modifiers/swipe",function(){return(0,s.A)(i(14259))}),r("discourse/modifiers/trap-tab",function(){return(0,s.A)(i(79692))}),r("discourse/modifiers/did-insert",function(){return(0,s.A)(i(46021))}),r("discourse/modifiers/did-update",function(){return(0,s.A)(i(9533))}),r("discourse/modifiers/will-destroy",function(){return(0,s.A)(i(60883))}),r("discourse/templates/about",function(){return(0,s.A)(i(88079))}),r("discourse/controllers/about",function(){return(0,s.A)(i(82275))}),r("discourse/routes/about",function(){return(0,s.A)(i(37674))}),r("discourse/controllers/account-created-edit-email",function(){return(0,s.A)(i(35768))}),r("discourse/routes/account-created-edit-email",function(){return(0,s.A)(i(11167))}),r("discourse/controllers/account-created-index",function(){return(0,s.A)(i(49793))}),r("discourse/routes/account-created-index",function(){return(0,s.A)(i(47820))}),r("discourse/templates/application",function(){return(0,s.A)(i(62726))}),r("discourse/controllers/application",function(){return(0,s.A)(i(47452))}),r("discourse/routes/application",function(){return(0,s.A)(i(26029))}),r("discourse/templates/badges/index",function(){return(0,s.A)(i(86927))}),r("discourse/controllers/badges/index",function(){return(0,s.A)(i(40131))}),r("discourse/templates/badges/show",function(){return(0,s.A)(i(94280))}),r("discourse/controllers/badges/show",function(){return(0,s.A)(i(31890))}),r("discourse/controllers/composer",function(){return(0,s.A)(i(8434))}),r("discourse/templates/composer/dominating-topic",function(){return(0,s.A)(i(77825))}),r("discourse/templates/composer/education",function(){return(0,s.A)(i(12547))}),r("discourse/templates/composer/get-a-room",function(){return(0,s.A)(i(2891))}),r("discourse/templates/composer/group-mentioned",function(){return(0,s.A)(i(95754))}),r("discourse/templates/composer/similar-topics",function(){return(0,s.A)(i(1257))}),r("discourse/templates/confirm-new-email",function(){return(0,s.A)(i(38470))}),r("discourse/controllers/confirm-new-email",function(){return(0,s.A)(i(35100))}),r("discourse/routes/confirm-new-email",function(){return(0,s.A)(i(80561))}),r("discourse/templates/confirm-old-email",function(){return(0,s.A)(i(67127))}),r("discourse/controllers/confirm-old-email",function(){return(0,s.A)(i(25243))}),r("discourse/routes/confirm-old-email",function(){return(0,s.A)(i(49378))}),r("discourse/routes/discovery",function(){return(0,s.A)(i(92057))}),r("discourse/templates/discovery/categories",function(){return(0,s.A)(i(11791))}),r("discourse/controllers/discovery/categories",function(){return(0,s.A)(i(40515))}),r("discourse/templates/discovery/filter",function(){return(0,s.A)(i(43341))}),r("discourse/controllers/discovery/filter",function(){return(0,s.A)(i(72637))}),r("discourse/templates/discovery/list",function(){return(0,s.A)(i(11971))}),r("discourse/controllers/discovery/list",function(){return(0,s.A)(i(54527))}),r("discourse/templates/discovery/custom",function(){return(0,s.A)(i(17514))}),r("discourse/templates/edit-category-tabs",function(){return(0,s.A)(i(78260))}),r("discourse/controllers/edit-category-tabs",function(){return(0,s.A)(i(37558))}),r("discourse/routes/edit-category-tabs",function(){return(0,s.A)(i(72953))}),r("discourse/templates/email-login",function(){return(0,s.A)(i(22212))}),r("discourse/controllers/email-login",function(){return(0,s.A)(i(19270))}),r("discourse/routes/email-login",function(){return(0,s.A)(i(76191))}),r("discourse/templates/exception",function(){return(0,s.A)(i(54507))}),r("discourse/controllers/exception",function(){return(0,s.A)(i(46967))}),r("discourse/routes/exception",function(){return(0,s.A)(i(83566))}),r("discourse/templates/full-page-search",function(){return(0,s.A)(i(17879))}),r("discourse/controllers/full-page-search",function(){return(0,s.A)(i(23686))}),r("discourse/routes/full-page-search",function(){return(0,s.A)(i(79145))}),r("discourse/templates/group-activity-posts",function(){return(0,s.A)(i(61889))}),r("discourse/controllers/group-activity-posts",function(){return(0,s.A)(i(74201))}),r("discourse/routes/group-activity-posts",function(){return(0,s.A)(i(53318))}),r("discourse/templates/group-activity-topics",function(){return(0,s.A)(i(43242))}),r("discourse/controllers/group-activity-topics",function(){return(0,s.A)(i(95592))}),r("discourse/routes/group-activity-topics",function(){return(0,s.A)(i(7741))}),r("discourse/controllers/group-activity",function(){return(0,s.A)(i(54999))}),r("discourse/templates/group-index",function(){return(0,s.A)(i(88270))}),r("discourse/controllers/group-index",function(){return(0,s.A)(i(10196))}),r("discourse/routes/group-index",function(){return(0,s.A)(i(6333))}),r("discourse/controllers/group-manage-categories",function(){return(0,s.A)(i(11326))}),r("discourse/routes/group-manage-categories",function(){return(0,s.A)(i(44995))}),r("discourse/controllers/group-manage-logs",function(){return(0,s.A)(i(60705))}),r("discourse/routes/group-manage-logs",function(){return(0,s.A)(i(89384))}),r("discourse/controllers/group-manage-profile",function(){return(0,s.A)(i(18793))}),r("discourse/routes/group-manage-profile",function(){return(0,s.A)(i(64502))}),r("discourse/controllers/group-manage-tags",function(){return(0,s.A)(i(89671))}),r("discourse/routes/group-manage-tags",function(){return(0,s.A)(i(10394))}),r("discourse/controllers/group-manage",function(){return(0,s.A)(i(46837))}),r("discourse/routes/group-manage",function(){return(0,s.A)(i(94630))}),r("discourse/controllers/group-messages",function(){return(0,s.A)(i(2362))}),r("discourse/routes/group-messages",function(){return(0,s.A)(i(38005))}),r("discourse/controllers/group-permissions",function(){return(0,s.A)(i(69484))}),r("discourse/routes/group-permissions",function(){return(0,s.A)(i(68881))}),r("discourse/templates/group-requests",function(){return(0,s.A)(i(62086))}),r("discourse/controllers/group-requests",function(){return(0,s.A)(i(75196))}),r("discourse/routes/group-requests",function(){return(0,s.A)(i(4727))}),r("discourse/templates/group",function(){return(0,s.A)(i(31033))}),r("discourse/controllers/group",function(){return(0,s.A)(i(78574))}),r("discourse/routes/group",function(){return(0,s.A)(i(14092))}),r("discourse/templates/group/activity",function(){return(0,s.A)(i(7773))}),r("discourse/templates/group/manage",function(){return(0,s.A)(i(37487))}),r("discourse/templates/group/manage/categories",function(){return(0,s.A)(i(48128))}),r("discourse/templates/group/manage/email",function(){return(0,s.A)(i(85218))}),r("discourse/templates/group/manage/interaction",function(){return(0,s.A)(i(19702))}),r("discourse/templates/group/manage/logs",function(){return(0,s.A)(i(5293))}),r("discourse/templates/group/manage/membership",function(){return(0,s.A)(i(91564))}),r("discourse/templates/group/manage/profile",function(){return(0,s.A)(i(44421))}),r("discourse/templates/group/manage/tags",function(){return(0,s.A)(i(34135))}),r("discourse/templates/group/messages",function(){return(0,s.A)(i(90042))}),r("discourse/templates/group/permissions",function(){return(0,s.A)(i(61300))}),r("discourse/controllers/groups-index",function(){return(0,s.A)(i(7013))}),r("discourse/routes/groups-index",function(){return(0,s.A)(i(46578))}),r("discourse/controllers/groups-new",function(){return(0,s.A)(i(9687))}),r("discourse/routes/groups-new",function(){return(0,s.A)(i(74856))}),r("discourse/controllers/invites-show",function(){return(0,s.A)(i(90508))}),r("discourse/routes/invites-show",function(){return(0,s.A)(i(49251))}),r("discourse/templates/login",function(){return(0,s.A)(i(92383))}),r("discourse/controllers/login",function(){return(0,s.A)(i(72915))}),r("discourse/routes/login",function(){return(0,s.A)(i(9522))}),r("discourse/templates/password-reset",function(){return(0,s.A)(i(71335))}),r("discourse/controllers/password-reset",function(){return(0,s.A)(i(29163))}),r("discourse/routes/password-reset",function(){return(0,s.A)(i(19812))}),r("discourse/templates/preferences",function(){return(0,s.A)(i(46882))}),r("discourse/controllers/preferences",function(){return(0,s.A)(i(25488))}),r("discourse/routes/preferences",function(){return(0,s.A)(i(29681))}),r("discourse/templates/preferences/account",function(){return(0,s.A)(i(36930))}),r("discourse/controllers/preferences/account",function(){return(0,s.A)(i(85936))}),r("discourse/controllers/preferences/email",function(){return(0,s.A)(i(71451))}),r("discourse/templates/preferences/emails",function(){return(0,s.A)(i(48444))}),r("discourse/controllers/preferences/emails",function(){return(0,s.A)(i(93006))}),r("discourse/templates/preferences/interface",function(){return(0,s.A)(i(92086))}),r("discourse/controllers/preferences/interface",function(){return(0,s.A)(i(26028))}),r("discourse/templates/preferences/navigation-menu",function(){return(0,s.A)(i(21009))}),r("discourse/controllers/preferences/navigation-menu",function(){return(0,s.A)(i(43849))}),r("discourse/templates/preferences/notifications",function(){return(0,s.A)(i(77907))}),r("discourse/controllers/preferences/notifications",function(){return(0,s.A)(i(79855))}),r("discourse/templates/preferences/profile",function(){return(0,s.A)(i(86032))}),r("discourse/controllers/preferences/profile",function(){return(0,s.A)(i(49322))}),r("discourse/controllers/preferences/second-factor",function(){return(0,s.A)(i(65959))}),r("discourse/templates/preferences/security",function(){return(0,s.A)(i(10949))}),r("discourse/controllers/preferences/security",function(){return(0,s.A)(i(22437))}),r("discourse/templates/preferences/tags",function(){return(0,s.A)(i(84708))}),r("discourse/controllers/preferences/tags",function(){return(0,s.A)(i(81926))}),r("discourse/templates/preferences/tracking",function(){return(0,s.A)(i(64204))}),r("discourse/controllers/preferences/tracking",function(){return(0,s.A)(i(10814))}),r("discourse/templates/preferences/users",function(){return(0,s.A)(i(57183))}),r("discourse/controllers/preferences/users",function(){return(0,s.A)(i(37747))}),r("discourse/templates/preferences/apps",function(){return(0,s.A)(i(51927))}),r("discourse/templates/preferences/categories",function(){return(0,s.A)(i(12875))}),r("discourse/templates/review-index",function(){return(0,s.A)(i(50485))}),r("discourse/controllers/review-index",function(){return(0,s.A)(i(43989))}),r("discourse/routes/review-index",function(){return(0,s.A)(i(31502))}),r("discourse/templates/review-settings",function(){return(0,s.A)(i(48282))}),r("discourse/controllers/review-settings",function(){return(0,s.A)(i(78744))}),r("discourse/routes/review-settings",function(){return(0,s.A)(i(50805))}),r("discourse/templates/second-factor-auth",function(){return(0,s.A)(i(35669))}),r("discourse/controllers/second-factor-auth",function(){return(0,s.A)(i(55957))}),r("discourse/routes/second-factor-auth",function(){return(0,s.A)(i(48930))}),r("discourse/templates/signup",function(){return(0,s.A)(i(22150))}),r("discourse/controllers/signup",function(){return(0,s.A)(i(62556))}),r("discourse/routes/signup",function(){return(0,s.A)(i(86639))}),r("discourse/templates/tag-groups-edit",function(){return(0,s.A)(i(97522))}),r("discourse/controllers/tag-groups-edit",function(){return(0,s.A)(i(35456))}),r("discourse/routes/tag-groups-edit",function(){return(0,s.A)(i(21081))}),r("discourse/templates/tag-groups-new",function(){return(0,s.A)(i(98022))}),r("discourse/controllers/tag-groups-new",function(){return(0,s.A)(i(9660))}),r("discourse/routes/tag-groups-new",function(){return(0,s.A)(i(64923))}),r("discourse/templates/tag-groups",function(){return(0,s.A)(i(30251))}),r("discourse/controllers/tag-groups",function(){return(0,s.A)(i(25879))}),r("discourse/routes/tag-groups",function(){return(0,s.A)(i(92712))}),r("discourse/controllers/tags-index",function(){return(0,s.A)(i(99032))}),r("discourse/routes/tags-index",function(){return(0,s.A)(i(53963))}),r("discourse/controllers/tags-intersection",function(){return(0,s.A)(i(7703))}),r("discourse/routes/tags-intersection",function(){return(0,s.A)(i(59654))}),r("discourse/templates/topic",function(){return(0,s.A)(i(19821))}),r("discourse/controllers/topic",function(){return(0,s.A)(i(75805))}),r("discourse/routes/topic",function(){return(0,s.A)(i(45040))}),r("discourse/controllers/user-activity-bookmarks",function(){return(0,s.A)(i(58209))}),r("discourse/routes/user-activity-bookmarks",function(){return(0,s.A)(i(79808))}),r("discourse/controllers/user-activity",function(){return(0,s.A)(i(39205))}),r("discourse/routes/user-activity",function(){return(0,s.A)(i(73368))}),r("discourse/controllers/user-badges",function(){return(0,s.A)(i(73984))}),r("discourse/routes/user-badges",function(){return(0,s.A)(i(15061))}),r("discourse/templates/user-invited-show",function(){return(0,s.A)(i(50611))}),r("discourse/controllers/user-invited-show",function(){return(0,s.A)(i(1551))}),r("discourse/routes/user-invited-show",function(){return(0,s.A)(i(25782))}),r("discourse/templates/user-invited",function(){return(0,s.A)(i(93057))}),r("discourse/controllers/user-invited",function(){return(0,s.A)(i(77177))}),r("discourse/routes/user-invited",function(){return(0,s.A)(i(56978))}),r("discourse/controllers/user-notifications",function(){return(0,s.A)(i(97054))}),r("discourse/routes/user-notifications",function(){return(0,s.A)(i(94045))}),r("discourse/controllers/user-posts",function(){return(0,s.A)(i(37037))}),r("discourse/templates/user-private-messages-group",function(){return(0,s.A)(i(85718))}),r("discourse/controllers/user-private-messages-group",function(){return(0,s.A)(i(13100))}),r("discourse/routes/user-private-messages-group",function(){return(0,s.A)(i(39381))}),r("discourse/templates/user-private-messages-tags-index",function(){return(0,s.A)(i(59431))}),r("discourse/controllers/user-private-messages-tags-index",function(){return(0,s.A)(i(59179))}),r("discourse/routes/user-private-messages-tags-index",function(){return(0,s.A)(i(44684))}),r("discourse/templates/user-private-messages-tags",function(){return(0,s.A)(i(96500))}),r("discourse/controllers/user-private-messages-tags",function(){return(0,s.A)(i(69558))}),r("discourse/routes/user-private-messages-tags",function(){return(0,s.A)(i(27257))}),r("discourse/templates/user-private-messages-user",function(){return(0,s.A)(i(94902))}),r("discourse/controllers/user-private-messages-user",function(){return(0,s.A)(i(6540))}),r("discourse/routes/user-private-messages-user",function(){return(0,s.A)(i(6071))}),r("discourse/controllers/user-private-messages",function(){return(0,s.A)(i(35490))}),r("discourse/routes/user-private-messages",function(){return(0,s.A)(i(92059))}),r("discourse/controllers/user-summary",function(){return(0,s.A)(i(14030))}),r("discourse/routes/user-summary",function(){return(0,s.A)(i(84245))}),r("discourse/templates/user-topics-list",function(){return(0,s.A)(i(27037))}),r("discourse/controllers/user-topics-list",function(){return(0,s.A)(i(35149))}),r("discourse/templates/user",function(){return(0,s.A)(i(99359))}),r("discourse/controllers/user",function(){return(0,s.A)(i(23795))}),r("discourse/routes/user",function(){return(0,s.A)(i(46124))}),r("discourse/templates/user/activity",function(){return(0,s.A)(i(64147))}),r("discourse/templates/user/badges",function(){return(0,s.A)(i(35908))}),r("discourse/templates/user/bookmarks",function(){return(0,s.A)(i(36133))}),r("discourse/templates/user/messages",function(){return(0,s.A)(i(8136))}),r("discourse/templates/user/notifications-index",function(){return(0,s.A)(i(85809))}),r("discourse/templates/user/notifications",function(){return(0,s.A)(i(24650))}),r("discourse/templates/user/posts",function(){return(0,s.A)(i(60707))}),r("discourse/templates/user/profile-hidden",function(){return(0,s.A)(i(59904))}),r("discourse/templates/user/stream",function(){return(0,s.A)(i(49240))}),r("discourse/templates/user/summary",function(){return(0,s.A)(i(55678))}),r("discourse/templates/users",function(){return(0,s.A)(i(26900))}),r("discourse/controllers/users",function(){return(0,s.A)(i(58102))}),r("discourse/routes/users",function(){return(0,s.A)(i(99811))}),r("discourse/routes/account-created-resent",function(){return(0,s.A)(i(42085))}),r("discourse/templates/account-created",function(){return(0,s.A)(i(17298))}),r("discourse/routes/account-created",function(){return(0,s.A)(i(76569))}),r("discourse/templates/account-created/edit-email",function(){return(0,s.A)(i(644))}),r("discourse/templates/account-created/index",function(){return(0,s.A)(i(25131))}),r("discourse/templates/account-created/resent",function(){return(0,s.A)(i(18670))}),r("discourse/templates/activate-account",function(){return(0,s.A)(i(11793))}),r("discourse/routes/activate-account",function(){return(0,s.A)(i(51156))}),r("discourse/routes/app-route-map",function(){return(0,s.A)(i(33583))}),r("discourse/routes/associate-account",function(){return(0,s.A)(i(10599))}),r("discourse/routes/badges-index",function(){return(0,s.A)(i(56042))}),r("discourse/routes/badges-show",function(){return(0,s.A)(i(80057))}),r("discourse/routes/build-category-route",function(){return(0,s.A)(i(96908))}),r("discourse/routes/build-group-messages-route",function(){return(0,s.A)(i(81822))}),r("discourse/routes/build-private-messages-group-route",function(){return(0,s.A)(i(31828))}),r("discourse/routes/build-private-messages-route",function(){return(0,s.A)(i(28482))}),r("discourse/routes/build-topic-route",function(){return(0,s.A)(i(65885))}),r("discourse/routes/conduct",function(){return(0,s.A)(i(61795))}),r("discourse/routes/discourse",function(){return(0,s.A)(i(65118))}),r("discourse/routes/discovery-categories",function(){return(0,s.A)(i(65210))}),r("discourse/routes/discovery-filter",function(){return(0,s.A)(i(40288))}),r("discourse/routes/discovery-index",function(){return(0,s.A)(i(41612))}),r("discourse/routes/discovery-subcategories",function(){return(0,s.A)(i(11754))}),r("discourse/routes/edit-category-index",function(){return(0,s.A)(i(31409))}),r("discourse/routes/edit-category",function(){return(0,s.A)(i(21680))}),r("discourse/routes/exception-unknown",function(){return(0,s.A)(i(11237))}),r("discourse/templates/faq",function(){return(0,s.A)(i(69004))}),r("discourse/routes/faq",function(){return(0,s.A)(i(26203))}),r("discourse/routes/forgot-password",function(){return(0,s.A)(i(83480))}),r("discourse/routes/group-activity-index",function(){return(0,s.A)(i(57113))}),r("discourse/routes/group-activity-mentions",function(){return(0,s.A)(i(39398))}),r("discourse/routes/group-manage-email",function(){return(0,s.A)(i(89839))}),r("discourse/routes/group-manage-index",function(){return(0,s.A)(i(66075))}),r("discourse/routes/group-manage-interaction",function(){return(0,s.A)(i(83268))}),r("discourse/routes/group-manage-membership",function(){return(0,s.A)(i(55775))}),r("discourse/routes/group-members",function(){return(0,s.A)(i(2170))}),r("discourse/routes/group-messages-archive",function(){return(0,s.A)(i(15622))}),r("discourse/routes/group-messages-inbox",function(){return(0,s.A)(i(3264))}),r("discourse/routes/group-messages-index",function(){return(0,s.A)(i(85608))}),r("discourse/routes/guidelines",function(){return(0,s.A)(i(45772))}),r("discourse/routes/new-category",function(){return(0,s.A)(i(93754))}),r("discourse/routes/new-invite",function(){return(0,s.A)(i(40047))}),r("discourse/routes/new-message",function(){return(0,s.A)(i(58595))}),r("discourse/routes/new-topic",function(){return(0,s.A)(i(6547))}),r("discourse/routes/post",function(){return(0,s.A)(i(52209))}),r("discourse/templates/posts",function(){return(0,s.A)(i(92367))}),r("discourse/routes/posts",function(){return(0,s.A)(i(14020))}),r("discourse/routes/preferences-account",function(){return(0,s.A)(i(6711))}),r("discourse/routes/preferences-apps",function(){return(0,s.A)(i(77970))}),r("discourse/templates/preferences-email",function(){return(0,s.A)(i(42561))}),r("discourse/routes/preferences-email",function(){return(0,s.A)(i(14952))}),r("discourse/routes/preferences-emails",function(){return(0,s.A)(i(51607))}),r("discourse/routes/preferences-index",function(){return(0,s.A)(i(63556))}),r("discourse/routes/preferences-interface",function(){return(0,s.A)(i(11507))}),r("discourse/routes/preferences-navigation-menu",function(){return(0,s.A)(i(92226))}),r("discourse/routes/preferences-notifications",function(){return(0,s.A)(i(71920))}),r("discourse/routes/preferences-profile",function(){return(0,s.A)(i(27421))}),r("discourse/templates/preferences-second-factor",function(){return(0,s.A)(i(86669))}),r("discourse/routes/preferences-second-factor",function(){return(0,s.A)(i(11420))}),r("discourse/routes/preferences-security",function(){return(0,s.A)(i(5396))}),r("discourse/routes/preferences-tags",function(){return(0,s.A)(i(37107))}),r("discourse/routes/preferences-tracking",function(){return(0,s.A)(i(99639))}),r("discourse/routes/preferences-users",function(){return(0,s.A)(i(28924))}),r("discourse/templates/privacy",function(){return(0,s.A)(i(67752))}),r("discourse/routes/privacy",function(){return(0,s.A)(i(36579))}),r("discourse/routes/restricted-user",function(){return(0,s.A)(i(49968))}),r("discourse/templates/review-show",function(){return(0,s.A)(i(2026))}),r("discourse/routes/review-show",function(){return(0,s.A)(i(62109))}),r("discourse/templates/review-topics",function(){return(0,s.A)(i(84641))}),r("discourse/routes/review-topics",function(){return(0,s.A)(i(49424))}),r("discourse/templates/review",function(){return(0,s.A)(i(76414))}),r("discourse/routes/review",function(){return(0,s.A)(i(18591))}),r("discourse/routes/rules",function(){return(0,s.A)(i(46376))}),r("discourse/routes/tag-show",function(){return(0,s.A)(i(12465))}),r("discourse/routes/tags-legacy-redirect",function(){return(0,s.A)(i(78557))}),r("discourse/routes/topic-by-slug-or-id",function(){return(0,s.A)(i(87174))}),r("discourse/routes/topic-from-params-near",function(){return(0,s.A)(i(13623))}),r("discourse/routes/topic-from-params",function(){return(0,s.A)(i(2372))}),r("discourse/templates/tos",function(){return(0,s.A)(i(75498))}),r("discourse/routes/tos",function(){return(0,s.A)(i(91277))}),r("discourse/templates/unknown",function(){return(0,s.A)(i(6406))}),r("discourse/routes/unknown",function(){return(0,s.A)(i(23569))}),r("discourse/routes/user-activity-bookmarks-with-reminders",function(){return(0,s.A)(i(25223))}),r("discourse/routes/user-activity-drafts",function(){return(0,s.A)(i(30321))}),r("discourse/routes/user-activity-index",function(){return(0,s.A)(i(71417))}),r("discourse/routes/user-activity-likes-given",function(){return(0,s.A)(i(69853))}),r("discourse/templates/user-activity-pending",function(){return(0,s.A)(i(47047))}),r("discourse/routes/user-activity-pending",function(){return(0,s.A)(i(46190))}),r("discourse/routes/user-activity-read",function(){return(0,s.A)(i(83285))}),r("discourse/routes/user-activity-replies",function(){return(0,s.A)(i(56057))}),r("discourse/routes/user-activity-stream",function(){return(0,s.A)(i(15245))}),r("discourse/routes/user-activity-topics",function(){return(0,s.A)(i(19773))}),r("discourse/routes/user-deleted-posts",function(){return(0,s.A)(i(22450))}),r("discourse/routes/user-index",function(){return(0,s.A)(i(6365))}),r("discourse/routes/user-invited-index",function(){return(0,s.A)(i(14631))}),r("discourse/routes/user-notifications-edits",function(){return(0,s.A)(i(33713))}),r("discourse/routes/user-notifications-index",function(){return(0,s.A)(i(25744))}),r("discourse/routes/user-notifications-likes-received",function(){return(0,s.A)(i(62982))}),r("discourse/routes/user-notifications-links",function(){return(0,s.A)(i(32561))}),r("discourse/routes/user-notifications-mentions",function(){return(0,s.A)(i(94101))}),r("discourse/routes/user-notifications-responses",function(){return(0,s.A)(i(98188))}),r("discourse/routes/user-private-messages-group-archive",function(){return(0,s.A)(i(13510))}),r("discourse/routes/user-private-messages-group-index",function(){return(0,s.A)(i(40680))}),r("discourse/routes/user-private-messages-group-new",function(){return(0,s.A)(i(46946))}),r("discourse/routes/user-private-messages-group-unread",function(){return(0,s.A)(i(46621))}),r("discourse/routes/user-private-messages-tags-show",function(){return(0,s.A)(i(47567))}),r("discourse/routes/user-private-messages-user-archive",function(){return(0,s.A)(i(94996))}),r("discourse/routes/user-private-messages-user-index",function(){return(0,s.A)(i(18502))}),r("discourse/routes/user-private-messages-user-new",function(){return(0,s.A)(i(3964))}),r("discourse/routes/user-private-messages-user-sent",function(){return(0,s.A)(i(46954))}),r("discourse/routes/user-private-messages-user-unread",function(){return(0,s.A)(i(41547))}),r("discourse/routes/user-private-messages-user-warnings",function(){return(0,s.A)(i(50825))}),r("discourse/routes/user-topic-list",function(){return(0,s.A)(i(70155))}),r("discourse/templates/groups/index",function(){return(0,s.A)(i(80231))}),r("discourse/templates/groups/new",function(){return(0,s.A)(i(37337))}),r("discourse/templates/hide-modal",function(){return(0,s.A)(i(48662))}),r("discourse/templates/invites",function(){return(0,s.A)(i(31034))}),r("discourse/templates/invites/show",function(){return(0,s.A)(i(37836))}),r("discourse/templates/loading",function(){return(0,s.A)(i(50640))}),r("discourse/templates/login-preferences",function(){return(0,s.A)(i(29566))}),r("discourse/templates/selected-posts",function(){return(0,s.A)(i(41379))}),r("discourse/templates/tag-groups-index",function(){return(0,s.A)(i(7684))}),r("discourse/templates/tags",function(){return(0,s.A)(i(95397))}),r("discourse/templates/tags/index",function(){return(0,s.A)(i(81884))}),n._embroiderRouteBundles_=[{names:["wizard","wizard.index","wizard.step"],load:function(){return i.e(777).then(i.bind(i,777))}}]},86792:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(70349),n=i(21719),r=i(87353),o=i(843),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"vuo5hdSl",block:'[[[1,"\\n "],[10,0],[15,"data-username",[30,1,["username"]]],[14,0,"user-info small"],[12],[1,"\\n "],[10,0],[14,0,"user-image"],[12],[1,"\\n "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[30,1,["username"]]],null]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1]],[["imageSize"],["large"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"user-detail"],[12],[1,"\\n "],[10,0],[14,0,"name-line"],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[30,1,["username"]]],null]],[15,"data-user-card",[30,1,["username"]]],[15,"aria-label",[28,[32,2],["user.profile_possessive"],[["username"],[[30,1,["username"]]]]]],[12],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[28,[32,3],[[30,1,["name"]]],null],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["username"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,"\\n"],[41,[28,[32,3],[[30,1,["name"]]],null],[[[1," "],[1,[30,1,["username"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-user.js",scope:()=>[r.userPath,s.default,o.i18n,n.prioritizeNameInUx],isStrictMode:!0}),(0,c.default)(void 0,"about-page-user:AboutPageUser"))},42103:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(86792),a=i(18638),l=i(843),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"expanded",[n.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();get users(){let e=this.args.users;return this.showViewMoreButton&&!this.expanded&&(e=e.slice(0,this.args.truncateAt)),e}get showViewMoreButton(){return this.args.truncateAt>0&&this.args.users.length>this.args.truncateAt}toggleExpanded(){this.expanded=!this.expanded}static #i=(()=>dt7948.n(this.prototype,"toggleExpanded",[r.action]))();static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"JEDXNCIF",block:'[[[1,"\\n "],[10,0],[14,0,"about-page-users-list"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["users"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showViewMoreButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat about-page-users-list__expand-button"]],[["@action","@icon","@translatedLabel"],[[30,0,["toggleExpanded"]],[52,[30,0,["expanded"]],"chevron-up","chevron-down"],[52,[30,0,["expanded"]],[28,[32,2],["about.view_less"],null],[28,[32,2],["about.view_more"],null]]]],null],[1,"\\n"]],[]],null],[1," "]],["user"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-users.js",scope:()=>[o.default,a.default,l.i18n],isStrictMode:!0}),this))()}},91742:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addAboutPageActivity:()=>_,clearAboutPageActivities:()=>y,default:()=>b});var s=i(80989),n=i(75446),r=i(43696),o=i(83133),a=i(42256),l=i(42103),c=i(98740),u=i(72738),d=i(84457),p=i(17206),h=i(843),m=i(53653),g=i(85671);let f=[];function _(e,t){f.push({name:e,func:t})}function y(){f.clear()}class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get moderatorsCount(){return this.args.model.moderators.length}get adminsCount(){return this.args.model.admins.length}get stats(){return[{class:"members",icon:"users",text:(0,h.i18n)("about.member_count",{count:this.args.model.stats.users_count,formatted_number:h.default.toNumber(this.args.model.stats.users_count,{precision:0})})},{class:"admins",icon:"shield-halved",text:(0,h.i18n)("about.admin_count",{count:this.adminsCount,formatted_number:h.default.toNumber(this.adminsCount,{precision:0})})},{class:"moderators",icon:"shield-halved",text:(0,h.i18n)("about.moderator_count",{count:this.moderatorsCount,formatted_number:h.default.toNumber(this.moderatorsCount,{precision:0})})},{class:"site-creation-date",icon:"calendar-days",text:this.siteAgeString}]}get siteActivities(){let e=[{icon:"scroll",class:"topics",activityText:(0,h.i18n)("about.activities.topics",{count:this.args.model.stats.topics_7_days,formatted_number:(0,p.number)(this.args.model.stats.topics_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"pencil",class:"posts",activityText:(0,h.i18n)("about.activities.posts",{count:this.args.model.stats.posts_last_day,formatted_number:(0,p.number)(this.args.model.stats.posts_last_day)}),period:(0,h.i18n)("about.activities.periods.today")},{icon:"user-group",class:"active-users",activityText:(0,h.i18n)("about.activities.active_users",{count:this.args.model.stats.active_users_7_days,formatted_number:(0,p.number)(this.args.model.stats.active_users_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"user-plus",class:"sign-ups",activityText:(0,h.i18n)("about.activities.sign_ups",{count:this.args.model.stats.users_7_days,formatted_number:(0,p.number)(this.args.model.stats.users_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"heart",class:"likes",activityText:(0,h.i18n)("about.activities.likes",{count:this.args.model.stats.likes_count,formatted_number:(0,p.number)(this.args.model.stats.likes_count)}),period:(0,h.i18n)("about.activities.periods.all_time")}];return this.displayVisitorStats&&e.splice(2,0,{icon:"user-secret",class:"visitors",activityText:h.default.messageFormat("about.activities.visitors_MF",{total_count:this.args.model.stats.visitors_7_days,eu_count:this.args.model.stats.eu_visitors_7_days,total_formatted_number:(0,p.number)(this.args.model.stats.visitors_7_days),eu_formatted_number:(0,p.number)(this.args.model.stats.eu_visitors_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")}),e.concat(this.siteActivitiesFromPlugins())}get displayVisitorStats(){return this.siteSettings.display_eu_visitor_stats&&"number"==typeof this.args.model.stats.eu_visitors_7_days&&"number"==typeof this.args.model.stats.visitors_7_days}get contactInfo(){let e=(0,d.default)(this.args.model.contact_url||""),t=(0,d.default)(this.args.model.contact_email||"");if(e){let t=this.contactURLHref;return(0,h.i18n)("about.contact_info",{contact_info:`${e}`})}return t?(0,h.i18n)("about.contact_info",{contact_info:`${t}`}):null}get contactURLHref(){let e=(0,d.default)(this.args.model.contact_url||"");return e?e.startsWith("/")||e.match(/^\w+:/)?e:`//${e}`:void 0}get siteAgeString(){let e=new Date(this.args.model.site_creation_date),t=new Date-e;return(t/=2592e6)<1?(0,h.i18n)("about.site_age.less_than_one_month"):t<12?(0,h.i18n)("about.site_age.month",{count:Math.round(t)}):(t/=12,(0,h.i18n)("about.site_age.year",{count:Math.round(t)}))}get trafficInfoFooter(){return h.default.messageFormat("about.traffic_info_footer_MF",{total_visitors:this.args.model.stats.visitors_30_days,eu_visitors:this.args.model.stats.eu_visitors_30_days})}siteActivitiesFromPlugins(){let e=this.args.model.stats,t=Object.keys(e),i=[];for(let{name:s,func:n}of f){let r=!1,o={};for(let i of t){let t=`${s}_`;i.startsWith(t)&&(r=!0,o[i.replace(t,"")]=e[i])}if(!r)continue;let a=n(o);a&&i.push(a)}return i}static #s=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"Po703r+o",block:'[[[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,0],[[24,0,"edit-about-page"]],[["@route"],["adminConfig.about"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,2],["about.edit"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"about__header"],[12],[1,"\\n"],[41,[30,1,["banner_image"]],[[[1," "],[10,0],[14,0,"about__banner"],[12],[1,"\\n "],[10,"img"],[14,0,"about__banner-img"],[15,"src",[30,1,["banner_image"]]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"h3"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[10,2],[14,0,"short-description"],[12],[1,[30,1,["description"]]],[13],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-description","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"about__main-content"],[12],[1,"\\n "],[10,0],[14,0,"about__left-side"],[12],[1,"\\n "],[10,0],[14,0,"about__stats"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["stats"]]],null]],null],null,[[[1," "],[10,1],[15,0,[29,["about__stats-item ",[30,2,["class"]]]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,2,["icon"]]],null]],[1,"\\n "],[10,1],[12],[1,[30,2,["text"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["extended_site_description"]],[[[1," "],[10,"h3"],[12],[1,[28,[32,2],["about.simple_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[32,5],[[30,1,["extended_site_description"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["admins","length"]],[[[1," "],[10,"section"],[14,0,"about__admins"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.our_admins"],null]],[13],[1,"\\n "],[8,[32,6],null,[["@users","@truncateAt"],[[30,1,["admins"]],6]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-admins","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["moderators","length"]],[[[1," "],[10,"section"],[14,0,"about__moderators"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.our_moderators"],null]],[13],[1,"\\n "],[8,[32,6],null,[["@users","@truncateAt"],[[30,1,["moderators"]],6]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-moderators","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"about__right-side"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.contact"],null]],[13],[1,"\\n"],[41,[30,0,["contactInfo"]],[[[1," "],[10,2],[14,0,"about__contact-info"],[12],[1,[28,[32,5],[[30,0,["contactInfo"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,[28,[32,2],["about.report_inappropriate_content"],null]],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.site_activity"],null]],[13],[1,"\\n "],[10,0],[14,0,"about__activities"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["siteActivities"]]],null]],null],null,[[[1," "],[10,0],[15,0,[29,["about__activities-item ",[30,3,["class"]]]]],[12],[1,"\\n "],[10,1],[14,0,"about__activities-item-icon"],[12],[1,[28,[32,1],[[30,3,["icon"]]],null]],[13],[1,"\\n "],[10,1],[14,0,"about__activities-item-type"],[12],[1,"\\n "],[10,0],[14,0,"about__activities-item-count"],[12],[1,[30,3,["activityText"]]],[13],[1,"\\n "],[10,0],[14,0,"about__activities-item-period"],[12],[1,[30,3,["period"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["displayVisitorStats"]],[[[1," "],[10,2],[14,0,"about traffic-info-footer"],[12],[10,"small"],[12],[1,[30,0,["trafficInfoFooter"]]],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@model","stat","activity"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page.js",scope:()=>[r.LinkTo,u.default,h.i18n,c.default,n.hash,a.htmlSafe,l.default],isStrictMode:!0}),this))()}},5546:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(8554),r=i(18387),o=i(31351),a=i(83133),l=i(983),c=i(68587),u=i(96320),d=i(63748),p=i(77093),h=i(99080),m=i(843),g=i(53653),f=i(85671);let _=(0,l.lQ)("ace-editor"),y=/\$(primary|secondary|tertiary|quaternary|header_background|header_primary|highlight|danger|success|love)(\s|;|-(low|medium|high))/g;class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"isLoading",[n.tracked],function(){return!0}))();#a=(()=>void dt7948.i(this,"isLoading"))();editor=null;ace=null;skipChangePropagation=!1;setContent=(()=>(0,c.modifier)(()=>{if(this.args.content===this.editor.getSession().getValue())return;this.skipChangePropagation=!0,this.editor.getSession().setValue(this.args.content||""),this.skipChangePropagation=!1;let e=_.beginAsync();return this.editor.renderer.once("afterRender",()=>_.endAsync(e)),()=>_.endAsync(e)}))();constructor(){super(...arguments),(0,h.default)().then(e=>{this.isDestroying||this.isDestroyed||(this.ace=e,this.isLoading=!1)}),this.appEvents.on("ace:resize",this.resize),window.addEventListener("resize",this.resize),this._darkModeListener=window.matchMedia("(prefers-color-scheme: dark)"),this._darkModeListener.addEventListener("change",this.setAceTheme)}willDestroy(){super.willDestroy(...arguments),this.editor?.destroy(),this._darkModeListener?.removeEventListener("change",this.setAceTheme),window.removeEventListener("resize",this.resize),this.appEvents.off("ace:resize",this.resize)}setupAce(e){this.args.htmlPlaceholder&&function(e){let t=e.config.$defaultOptions.editor.placeholder.set;e.config.$defaultOptions.editor.placeholder.set=function(){if(!this.$updatePlaceholder){let e=this.renderer.on;this.renderer.on=function(){},t.call(this,...arguments),this.renderer.on=e;let i=this.$updatePlaceholder;this.$updatePlaceholder=(function(){i.call(this,...arguments),this.renderer.placeholderNode&&(this.renderer.placeholderNode.innerHTML=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)}this.$updatePlaceholder()}}(this.ace),this.ace.config.set("useWorker",!1),this.editor=this.ace.edit(e),this.editor.setShowPrintMargin(!1),this.editor.setOptions({fontSize:"14px",placeholder:this.args.placeholder});let t=this.editor.getSession();t.setMode(`ace/mode/${this.mode}`),this.editor.on("change",()=>{this.skipChangePropagation||this.args.onChange?.(t.getValue())}),this.args.save&&this.editor.commands.addCommand({name:"save",exec:()=>this.args.save(),bindKey:{mac:"cmd-s",win:"ctrl-s"}}),this.args.submit&&this.editor.commands.addCommand({name:"submit",exec:()=>this.args.submit(),bindKey:{mac:"cmd-enter",win:"ctrl-enter"}}),this.editor.on("blur",()=>this.warnSCSSDeprecations()),this.editor.$blockScrolling=1/0,this.editor.renderer.setScrollMargin(10,10),(0,p.isTesting)()&&(e.aceEditor=this.editor),this.changeDisabledState(),this.warnSCSSDeprecations(),this.autofocus&&this.focus(),this.setAceTheme()}static #s=(()=>dt7948.n(this.prototype,"setupAce",[d.bind]))();get mode(){return this.args.mode||"css"}editorIdChanged(){this.autofocus&&this.focus()}static #l=(()=>dt7948.n(this.prototype,"editorIdChanged",[d.bind]))();modeChanged(){this.editor?.getSession().setMode(`ace/mode/${this.mode}`)}static #c=(()=>dt7948.n(this.prototype,"modeChanged",[d.bind]))();placeholderChanged(){this.editor?.setOptions({placeholder:this.args.placeholder})}static #u=(()=>dt7948.n(this.prototype,"placeholderChanged",[d.bind]))();changeDisabledState(){this.editor?.setOptions({readOnly:this.args.disabled,highlightActiveLine:!this.args.disabled,highlightGutterLine:!this.args.disabled}),this.editor?.container.parentNode.parentNode.setAttribute("data-disabled",!!this.args.disabled)}static #d=(()=>dt7948.n(this.prototype,"changeDisabledState",[d.bind]))();warnSCSSDeprecations(){if("scss"!==this.mode||this.args.editorId.startsWith("color_definitions")||!this.editor)return;let e=this.args.content.split("\n").map((e,t)=>{if(e.match(y))return{row:t,column:0,text:(0,m.i18n)("admin.customize.theme.scss_warning_inline"),type:"warning"}}).filter(Boolean);this.editor.getSession().setAnnotations(e),this.args.setWarning?.(!!e.length&&m.i18n("admin.customize.theme.scss_color_variables_warning"))}setAceTheme(){let e=getComputedStyle(document.body).getPropertyValue("--scheme-type").trim();this.editor.setTheme(`ace/theme/${"dark"===e?"chaos":"chrome"}`)}static #p=(()=>dt7948.n(this.prototype,"setAceTheme",[d.bind]))();resize(){this.editor?.resize()}static #h=(()=>dt7948.n(this.prototype,"resize",[d.bind]))();focus(){this.editor&&(this.editor.focus(),this.editor.navigateFileEnd())}static #m=(()=>dt7948.n(this.prototype,"focus",[d.bind]))();static #g=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"eqDUhW76",block:'[[[1,"\\n "],[10,0],[14,0,"ace-wrapper"],[12],[1,"\\n "],[8,[32,0],null,[["@condition","@size"],[[30,0,["isLoading"]],"small"]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"ace"],[17,1],[4,[32,1],[[30,0,["setupAce"]]],null],[4,[30,0,["setContent"]],null,null],[4,[32,2],[[30,0,["editorIdChanged"]],[30,2]],null],[4,[32,2],[[30,0,["modeChanged"]],[30,3]],null],[4,[32,2],[[30,0,["placeholderChanged"]],[30,4]],null],[4,[32,2],[[30,0,["changeDisabledState"]],[30,5]],null],[12],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@editorId","@mode","@placeholder","@disabled"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/ace-editor.js",scope:()=>[u.default,r.default,o.default],isStrictMode:!0}),this))()}},82247:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(16717),n=i(72738),r=i(54412),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"r/C5i3JK",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["actionsSummary"]]],null]],null],null,[[[1," "],[10,0],[14,0,"post-action"],[12],[1,[30,2,["description"]]],[13],[1,"\\n "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n"]],[2]],null],[41,[30,1,["deleted_at"]],[[[1," "],[10,0],[14,0,"post-action deleted-post"],[12],[1,"\\n "],[1,[28,[32,0],["trash-can"],null]],[1,"\\n "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,1,["deletedByUsername"]]],[15,"title",[30,1,["deletedByUsername"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["deletedByAvatarTemplate"]],"tiny"],[["title"],[[30,1,["deletedByUsername"]]]]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,2],[[30,1,["deleted_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@data","as"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/actions-summary.js",scope:()=>[n.default,s.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"actions-summary:ActionsSummary"))},89656:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(18638),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get canEditEmail(){return this.siteSettings.enable_local_logins||this.siteSettings.email_editable}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"rcsdsfzu",block:'[[[1,"\\n "],[10,0],[14,0,"activation-controls"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","must_approve_users"]]],[[[1," "],[8,[32,0],[[24,0,"btn-primary resend"]],[["@action","@label","@icon"],[[30,1],"login.resend_title","envelope"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditEmail"]],[[[1," "],[8,[32,0],[[24,0,"edit-email"]],[["@action","@label","@icon"],[[30,2],"login.change_email","pencil"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@sendActivationEmail","@editActivationEmail"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-controls.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},90011:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(99615),r=i(35533),o=i(843),a=i(53653),l=i(85671);class c extends s.default{newEmailChanged(e){this.args.updateNewEmail(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"newEmailChanged",[r.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"OVNeBgY3",block:'[[[1,"\\n "],[10,2],[12],[1,[28,[32,0],["login.provide_new_email"],null]],[13],[1,"\\n "],[11,"input"],[16,2,[30,1]],[24,0,"activate-new-email"],[24,4,"text"],[4,[32,1],["input",[30,0,["newEmailChanged"]]],null],[12],[13],[1,"\\n "]],["@email"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-email-form.js",scope:()=>[o.i18n,n.on],isStrictMode:!0}),this))()}},58907:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(49941),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"LqKq7IaI",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],["category",[28,[32,1],["category-",[30,1,["fullSlug"]]],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[1,[28,[32,0],[[28,[32,1],["tag-",[30,3]],null]],null]],[1,"\\n"]],[3]],null]],["@category","@tags","tag"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-category-tag-classes.js",scope:()=>[n.default,s.concat],isStrictMode:!0}),(0,a.default)(void 0,"add-category-tag-classes:AddCategoryTagClasses"))},60150:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(49941),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"PXuBpbxV",block:'[[[1,"\\n"],[41,[30,1,["invisible"]],[[[1," "],[1,[28,[32,0],["topic-status-unlisted"],null]],[1,"\\n"]],[]],null],[41,[30,1,["pinned"]],[[[1," "],[1,[28,[32,0],["topic-status-pinned"],null]],[1,"\\n"]],[]],null],[41,[30,1,["unpinned"]],[[[1," "],[1,[28,[32,0],["topic-status-unpinned"],null]],[1,"\\n"]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-topic-status-classes.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"add-topic-status-classes:AddTopicStatusClasses"))},85205:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(81329),l=i(18638),c=i(82698),u=i(81133),d=i(53653),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"adminPostMenuButtons",[o.service]))();#_=(()=>void dt7948.i(this,"adminPostMenuButtons"))();get reviewUrl(){return`/review?topic_id=${this.args.data.post.id}&status=all`}get extraButtons(){return this.adminPostMenuButtons.callbacks.map(e=>e(this.args.data.post)).filter(Boolean)}async topicAction(e){await this.args.close();try{await this.args.data[e]?.()}catch(t){console.error(`Unknown error while attempting \`${e}\`:`,t)}await this.args.data.scheduleRerender?.()}static #c=(()=>dt7948.n(this.prototype,"topicAction",[r.action]))();async extraAction(e){await this.args.close(),await e.action(this.args.data.post),await this.args.data.scheduleRerender?.()}static #u=(()=>dt7948.n(this.prototype,"extraAction",[r.action]))();static #d=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"MTujYt8P",block:'[[[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent moderation-history"]],[["@label","@icon","@href"],["review.moderation_history","list",[30,0,["reviewUrl"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,0,["currentUser","staff"]],[28,[32,3],[[30,2,["post","isWhisper"]]],null]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent toggle-post-type",[52,[30,2,["post","isModeratorAction"]],"btn-success"]],null]]],[["@label","@icon","@action"],[[52,[30,2,["post","isModeratorAction"]],"post.controls.revert_to_regular","post.controls.convert_to_moderator"],"shield-halved",[28,[32,5],[[30,0,["topicAction"]],"togglePostType"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","canEditStaffNotes"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent",[52,[30,2,["post","notice"]],"change-notice","add-notice"],[52,[30,2,["post","notice"]],"btn-success"]],null]]],[["@icon","@label","@title","@action"],["user-shield",[52,[30,2,["post","notice"]],"post.controls.change_post_notice","post.controls.add_post_notice"],"post.controls.unhide",[28,[32,5],[[30,0,["topicAction"]],"changeNotice"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,0,["currentUser","staff"]],[30,2,["post","hidden"]]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent unhide-post"]],[["@label","@icon","@action"],["post.controls.unhide","far-eye",[28,[32,5],[[30,0,["topicAction"]],"unhidePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["currentUser","admin"]],[28,[32,2],[[30,0,["siteSettings","moderators_change_post_ownership"]],[30,0,["currentUser","staff"]]],null]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent change-owner"]],[["@label","@icon","@title","@action"],["post.controls.change_owner","user","post.controls.lock_post_description",[28,[32,5],[[30,0,["topicAction"]],"changePostOwner"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,2,["post","user_id"]],[30,0,["currentUser","staff"]]],null],[[[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent grant-badge"]],[["@label","@icon","@action"],["post.controls.grant_badge","certificate",[28,[32,5],[[30,0,["topicAction"]],"grantBadge"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","locked"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent unlock-post",[52,[30,2,["post","locked"]],"btn-success"]],null]]],[["@label","@icon","@title","@action"],["post.controls.unlock_post","unlock","post.controls.unlock_post_description",[28,[32,5],[[30,0,["topicAction"]],"unlockPost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent lock-post"]],[["@label","@icon","@title","@action"],["post.controls.lock_post","lock","post.controls.lock_post_description",[28,[32,5],[[30,0,["topicAction"]],"lockPost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,2,["post","canPermanentlyDelete"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent permanently-delete"]],[["@label","@icon","@action"],["post.controls.permanently_delete","trash-can",[28,[32,5],[[30,0,["topicAction"]],"permanentlyDeletePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,2,["post","canManage"]],[30,2,["post","can_wiki"]]],null],[[[41,[30,2,["post","wiki"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent wiki wikied",[52,[30,2,["post","wiki"]],"btn-success"]],null]]],[["@label","@icon","@action"],["post.controls.unwiki","far-pen-to-square",[28,[32,5],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent wiki"]],[["@label","@icon","@action"],["post.controls.wiki","far-pen-to-square",[28,[32,5],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,2,["post","canPublishPage"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent publish-page"]],[["@label","@icon","@action"],["post.controls.publish_page","file",[28,[32,5],[[30,0,["topicAction"]],"showPagePublish"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","canManage"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent rebuild-html"]],[["@label","@icon","@action"],["post.controls.rebake","rotate",[28,[32,5],[[30,0,["topicAction"]],"rebakePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraButtons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent",[30,3,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,3,["label"]],[30,3,["translatedLabel"]],[30,3,["icon"]],[28,[32,5],[[30,0,["extraAction"]],[30,3]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "]],[1]]]]],[1,"\\n "]],["dropdown","@data","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/admin-post-menu.js",scope:()=>[c.default,l.default,a.and,a.not,u.default,n.fn,a.or],isStrictMode:!0}),this))()}},72895:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(35533),r=i(53397),o=i(64418);let a=(0,i(85671).createTemplateFactory)({id:"NtfoVG+g",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[8,[39,3],[[16,1,[28,[37,4],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,5],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,3],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["reply",[28,[37,6],["showLogin"],null],"topic.reply.title"]],null],[1,"\\n"],[13]],["button"],false,["div","each","-track-array","d-button","concat","concatClass","route-action"]]',moduleName:"discourse/components/anonymous-topic-footer-buttons.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{elementId="topic-footer-buttons";role="region";static #e=(()=>dt7948.g(this.prototype,"allButtons",[(0,o.getTopicFooterButtons)()]))();#y=(()=>void dt7948.i(this,"allButtons"))();get buttons(){return this.allButtons.filterBy("anonymousOnly",!0).sortBy("priority").reverse()}static #i=(()=>dt7948.n(this.prototype,"buttons",[(0,n.computed)("allButtons.[]")]))()},[(0,r.attributeBindings)("role")]),c=(0,s.setComponentTemplate)(a,l)},85273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){return[{id:"notYou",icon:"user-xmark",name:(0,r.i18n)("user.auth_tokens.not_you"),description:""},{id:"logOut",icon:"right-from-bracket",name:(0,r.i18n)("user.log_out"),description:""}]}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){switch(e){case"notYou":this.showToken(this.token);break;case"logOut":this.revokeAuthToken(this.token)}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("auth-token-dropdown")])},34303:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42064),n=i(40260);class r extends n.default{widget="avatar-flair";_rerender(){this.queueRerender()}static #e=(()=>dt7948.n(this.prototype,"_rerender",[(0,s.observes)("flairName","flairUrl","flairBgColor","flairColor")]))();buildArgs(){return{flair_name:this.flairName,flair_url:this.flairUrl,flair_bg_color:this.flairBgColor,flair_color:this.flairColor}}}},25222:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(31049),o=i(75983),a=i(53397),l=i(63748),c=i(6535),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"6J5Z/bbV",block:'[[[11,"input"],[24,0,"hidden-upload-field"],[16,"disabled",[30,0,["uploading"]]],[24,"accept","image/*"],[24,"aria-hidden","true"],[24,4,"file"],[4,[38,1],[[30,0,["uppyUpload","setup"]]],null],[12],[13],[1,"\\n"],[8,[39,2],[[24,0,"btn-default avatar-uploader__button"],[16,"data-uploaded",[30,0,["customAvatarUploaded"]]],[16,"data-avatar-upload-id",[30,0,["uploadedAvatarId"]]]],[["@translatedLabel","@icon","@disabled","@action","@title"],[[30,0,["uploadLabel"]],"far-image",[30,0,["uploading"]],[30,0,["chooseImage"]],"user.change_avatar.upload_title"]],null],[1,"\\n\\n"],[41,[30,0,["imageIsNotASquare"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,[28,[35,5],["user.change_avatar.image_is_not_a_square"],null]],[13],[1,"\\n"]],[]],null]],[],false,["input","did-insert","d-button","if","div","i18n"]]',moduleName:"discourse/components/avatar-uploader.hbs",isStrictMode:!1}),p=dt7948.c(class extends s.default{uppyUpload=(()=>new c.default((0,r.getOwner)(this),{id:"avatar-uploader",type:"avatar",validateUploadedFilesOptions:{imagesOnly:!0},uploadDone:e=>{this.setProperties({imageIsNotASquare:e.width!==e.height,uploadedAvatarTemplate:e.url,uploadedAvatarId:e.id}),this.done()},additionalParams:()=>({user_id:this.user_id})}))();imageIsNotASquare=!1;customAvatarUploaded(){return!this.uppyUpload.uploading&&!(0,o.isBlank)(this.uploadedAvatarId)}static #e=(()=>dt7948.n(this.prototype,"customAvatarUploaded",[(0,l.default)("uppyUpload.uploading","uploadedAvatarId")]))();uploadLabel(){return this.uppyUpload.uploading?`${(0,u.i18n)("uploading")} ${this.uppyUpload.uploadProgress}%`:(0,u.i18n)("upload")}static #i=(()=>dt7948.n(this.prototype,"uploadLabel",[(0,l.default)("uppyUpload.uploading","uppyUpload.uploadProgress")]))();chooseImage(){this.uppyUpload.openPicker()}static #s=(()=>dt7948.n(this.prototype,"chooseImage",[n.action]))()},[(0,a.tagName)("span")]),h=(0,s.setComponentTemplate)(d,p)},2123:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(43696),n=i(81329),r=i(72738),o=i(843),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"iAmIOSf5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn btn-flat back-button"]],[["@route"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["chevron-left"],null]],[1,"\\n "],[1,[28,[32,2],[[28,[32,3],[[30,2],"back_button"],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],["@route","@label"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/back-button.js",scope:()=>[s.LinkTo,r.default,o.i18n,n.or],isStrictMode:!0}),(0,c.default)(void 0,"back-button"))},32868:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(99615),r=i(35533),o=i(18387),a=i(83133),l=i(18638),c=i(33515),u=i(42236),d=i(843),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get siteTitleSlug(){let e=this.siteSettings.title,t=(0,u.toAsciiPrintable)(e,"discourse");return(0,u.slugify)(t)}get base64BackupCode(){return function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}(this.formattedBackupCodes)}get formattedBackupCodes(){return this.args.backupCodes?this.args.backupCodes.join("\n").trim():null}copyToClipboard(){this._selectAllBackupCodes();let e=(0,c.default)("",this.backupCodesArea);this.args.copyBackupCode(e)}static #i=(()=>dt7948.n(this.prototype,"copyToClipboard",[r.action]))();registerBackupCodesArea(e){this.backupCodesArea=e,e.style.height=e.scrollHeight}static #s=(()=>dt7948.n(this.prototype,"registerBackupCodesArea",[r.action]))();_selectAllBackupCodes(){this.backupCodesArea.focus(),this.backupCodesArea.setSelectionRange(0,this.formattedBackupCodes.length)}static #l=(()=>dt7948.n(this.prototype,"_selectAllBackupCodes",[r.action]))();static #c=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"rcvm3HRP",block:'[[[1,"\\n "],[10,0],[14,0,"backup-codes"],[12],[1,"\\n "],[10,0],[14,0,"wrapper"],[12],[1,"\\n "],[11,"textarea"],[24,1,"backupCodes"],[24,0,"backup-codes-area"],[24,"rows","10"],[24,"readonly",""],[4,[32,0],[[30,0,["registerBackupCodesArea"]]],null],[4,[32,1],["click",[30,0,["_selectAllBackupCodes"]]],null],[12],[1,[30,0,["formattedBackupCodes"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,2],[[24,0,"backup-codes-copy-btn"]],[["@action","@icon","@ariaLabel","@title"],[[30,0,["copyToClipboard"]],"copy","user.second_factor_backup.copy_to_clipboard","user.second_factor_backup.copy_to_clipboard"]],null],[1,"\\n\\n "],[8,[32,2],[[16,"download",[29,[[30,0,["siteTitleSlug"]],"-backup-codes.txt"]]],[24,0,"backup-codes-download-btn"],[16,"aria-label",[28,[32,3],["user.second_factor_backup.download_backup_codes"],null]],[16,"title",[28,[32,3],["user.second_factor_backup.download_backup_codes"],null]],[24,"rel","noopener noreferrer"],[24,"target","_blank"]],[["@href","@icon"],[[29,["data:application/octet-stream;charset=utf-8;base64,",[30,0,["base64BackupCode"]]]],"download"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/backup-codes.js",scope:()=>[o.default,n.on,l.default,d.i18n],isStrictMode:!0}),this))()}},1139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(10463),r=i(45067),o=i(53653),a=i(85671);class l extends s.default{get title(){let e=this.args.badge?.description;if(e)return(0,r.default)(`
${e}
`)[0].innerText}get showName(){return this.args.showName??!0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"YmgWTQpp",block:'[[[1,"\\n "],[11,1],[16,"title",[30,0,["title"]]],[16,"data-badge-name",[30,1,["name"]]],[16,0,[29,["user-badge\\n ",[30,1,["badgeTypeClassName"]],"\\n ",[52,[51,[30,1,["enabled"]]],"disabled"]]]],[17,2],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],null]],[1,"\\n"],[41,[30,0,["showName"]],[[[1," "],[10,1],[14,0,"badge-display-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[18,3,null],[1,"\\n "],[13],[1,"\\n "]],["@badge","&attrs","&default"],false,["unless","if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-button.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},71649:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989),n=i(8554),r=i(75446),o=i(42256),a=i(75983),l=i(81329),c=i(18638),u=i(72738),d=i(10463),p=i(72613),h=i(50409),m=i(843),g=i(98740),f=i(53653),_=i(85671);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"size",[n.tracked],function(){return this.args.size||"medium"}))();#b=(()=>void dt7948.i(this,"size"))();get url(){let{badge:e,filterUser:t,username:i}=this.args;return t?`${e.url}?username=${i}`:e.url}get displayCount(){let{count:e,badge:t}=this.args;return null==e?t.grant_count:e>1?e:void 0}get summary(){let{size:e,badge:t}=this.args;return"large"!==e||(0,a.isEmpty)(t.long_description)?(0,h.sanitize)(t.description):(0,h.emojiUnescape)((0,h.sanitize)(t.long_description))}get showFavorite(){let{badge:e}=this.args;return![1,2,3,4].includes(e.id)}static #i=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"57imT9mv",block:'[[[1,"\\n "],[10,0],[15,0,[29,["badge-card --badge-",[30,0,["size"]]]]],[15,"data-badge-slug",[30,1,["slug"]]],[12],[1,"\\n "],[10,0],[14,0,"badge-contents"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["badge-contents-top",[28,[32,1],null,[["badge","url"],[[30,1],[30,0,["url"]]]]]]],null],[1,"\\n "],[10,1],[15,0,[29,["badge-icon ",[30,1,["badgeTypeClassName"]]]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,2],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"badge-info"],[12],[1,"\\n "],[10,0],[14,0,"badge-info-item"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n"],[41,[28,[32,3],[[30,0,["size"]],"large"],null],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,0,["url"]]],[14,0,"badge-link"],[15,"aria-describedby",[29,["badge-summary-",[30,1,["slug"]]," badge-granted-",[30,1,["slug"]]," badge-awarded-",[30,1,["slug"]]]]],[12],[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[15,1,[29,["badge-summary-",[30,1,["slug"]]]]],[14,0,"badge-summary"],[12],[1,"\\n "],[1,[28,[32,4],[[30,0,["summary"]]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["displayCount"]],[[[1," "],[10,0],[15,1,[29,["badge-granted-",[30,1,["slug"]]]]],[14,0,"badge-granted"],[12],[1,"\\n "],[1,[28,[32,4],[[28,[32,5],["badges.awarded"],[["count","number"],[[30,0,["displayCount"]],[28,[32,6],[[30,0,["displayCount"]]],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["has_badge"]],[[[1," "],[10,0],[15,1,[29,["badge-awarded-",[30,1,["slug"]]]]],[14,0,"check-display status-checked"],[15,"aria-label",[28,[32,5],["notifications.titles.granted_badge"],null]],[12],[1,"\\n "],[1,[28,[32,7],["check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[41,[30,3],[[[1," "],[8,[32,8],[[24,0,"btn-default favorite-btn"]],[["@icon","@action"],["star",[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,8],[[24,0,"btn-default favorite-btn"]],[["@icon","@action","@title","@disabled"],["far-star",[30,4],[52,[30,5],"badges.favorite_max_not_reached","badges.favorite_max_reached"],[28,[32,9],[[30,5]],null]]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "]],["@badge","@canFavorite","@isFavorite","@onFavoriteClick","@canFavoriteMoreBadges"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-card.js",scope:()=>[g.default,r.hash,d.default,l.eq,o.htmlSafe,m.i18n,p.default,u.default,c.default,l.not],isStrictMode:!0}),this))()}},52714:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(83133),o=i(53397),a=i(6864),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"usffQdd6",block:'[[[10,0],[14,0,"badge-title"],[12],[1,"\\n "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n\\n "],[10,"h3"],[12],[1,[28,[35,3],["badges.select_badge_for_title"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,4],null,[["@value","@nameProperty","@content","@onChange"],[[30,0,["_selectedUserBadgeId"]],"badge.name",[30,0,["selectableUserBadges"]],[28,[37,5],[[28,[37,6],[[30,0,["_selectedUserBadgeId"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveBadgeTitle"]],[30,0,["_isSaving"]],[52,[30,0,["_isSaving"]],"saving","save"]]],null],[1,"\\n"],[41,[30,0,["closeAction"]],[[[1," "],[8,[39,7],[[24,0,"btn-default close-btn"]],[["@action","@label"],[[30,0,["closeAction"]],"close"]],null],[1,"\\n"]],[]],null],[41,[30,0,["_isSaved"]],[[[1," "],[10,1],[14,"role","status"],[14,0,"badge-title__saved"],[12],[1,[28,[35,3],["saved"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","form","h3","i18n","combo-box","fn","mut","d-button","if","span"]]',moduleName:"discourse/components/badge-title.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();selectableUserBadges=null;_selectedUserBadgeId=null;_isSaved=!1;_isSaving=!1;init(){super.init(...arguments);let e=this._findBadgeByTitle(this.selectableUserBadges,this.currentUser.title);this.set("_selectedUserBadgeId",e?.id||0)}saveBadgeTitle(){this.setProperties({_isSaved:!1,_isSaving:!0});let e=this._findBadgeById(this.selectableUserBadges,this._selectedUserBadgeId);return(0,a.ajax)(`${this.currentUser.path}/preferences/badge_title`,{type:"PUT",data:{user_badge_id:e?.id||0}}).then(()=>{this.set("_isSaved",!0),this.currentUser.set("title",e?.badge?.name||"")},()=>{this.dialog.alert((0,l.i18n)("generic_error"))}).finally(()=>this.set("_isSaving",!1))}static #i=(()=>dt7948.n(this.prototype,"saveBadgeTitle",[n.action]))();_findBadgeById(e,t){return(e||[]).findBy("id",t)}_findBadgeByTitle(e,t){return(e||[]).findBy("badge.name",t)}},[(0,o.tagName)("")]),d=(0,s.setComponentTemplate)(c,u)},52333:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(30574),r=i(83133),o=i(42064),a=i(25124),l=i.n(a),c=i(63748);let u=(0,i(85671).createTemplateFactory)({id:"j32ZFimd",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["topics"]],[[[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[8,[39,2],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectHelper","@canBulkSelect","@tagsForUser","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectHelper"]],[30,0,["canBulkSelect"]],[30,0,["tagsForUser"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["focusLastVisitedTopic"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectHelper","@canBulkSelect","@tagsForUser","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectHelper"]],[30,0,["canBulkSelect"]],[30,0,["tagsForUser"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["focusLastVisitedTopic"]]]],null],[1,"\\n"]],[]]]],[]],[[[41,[51,[30,0,["loadingMore"]]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,"\\n "],[1,[28,[35,6],["choose_topic.none_found"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]]]],[],false,["conditional-loading-spinner","if","topic-list/list","topic-list","unless","div","i18n"]]',moduleName:"discourse/components/basic-topic-list.hbs",isStrictMode:!1});class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"loadingMore",[(0,n.alias)("topicList.loadingMore")]))();#k=(()=>void dt7948.i(this,"loadingMore"))();static #s=(()=>dt7948.g(this.prototype,"loading",[(0,n.not)("loaded")]))();#T=(()=>void dt7948.i(this,"loading"))();init(){super.init(...arguments);let e=this.topicList;e&&this._initFromTopicList(e)}loaded(){let e=this.topicList;return!e||e.get("loaded")}static #l=(()=>dt7948.n(this.prototype,"loaded",[(0,c.default)("topicList.loaded")]))();_topicListChanged(){this._initFromTopicList(this.topicList)}static #c=(()=>dt7948.n(this.prototype,"_topicListChanged",[(0,o.observes)("topicList.[]")]))();_initFromTopicList(e){null!==e&&(this.set("topics",e.get("topics")),this.rerender())}didInsertElement(){super.didInsertElement(...arguments),this.topics.forEach(e=>{void 0!==e.unread_by_group_member&&this.messageBus.subscribe(`/private-messages/unread-indicator/${e.id}`,this.onMessage)})}willDestroyElement(){super.willDestroyElement(...arguments),this.messageBus.unsubscribe("/private-messages/unread-indicator/*",this.onMessage)}onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)}static #u=(()=>dt7948.n(this.prototype,"onMessage",[c.bind]))();showUnreadIndicator(e){return e.some(e=>void 0!==e.unread_by_group_member)}static #d=(()=>dt7948.n(this.prototype,"showUnreadIndicator",[(0,c.default)("topics")]))();click(e){if(this.site.desktopView)return;let t=l()(e.target);if(t.closest(".posts-map").length){let e=t.closest("tr").attr("data-topic-id");if(e){if("A"!==t.prop("tagName")){let e=t.find("a");if(e.length)t=e;else{if(!(e=t.closest("a")).length)return!1;t=e}}let i=this.topics.findBy("id",parseInt(e,10));this.appEvents.trigger("topic-entrance:show",{topic:i,position:t.offset()})}return!1}}}(0,s.setComponentTemplate)(u,d)},12033:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(35533),n=i(53397),r=i(63748),o=i(843),a=i(68636),l=i(16303);let c="remove",u="edit",d="clear_reminder",p=dt7948.c(class extends a.default{content(e){let t=[];return t.push({id:c,icon:"trash-can",name:(0,o.i18n)("post.bookmarks.actions.delete_bookmark.name"),description:(0,o.i18n)("post.bookmarks.actions.delete_bookmark.description")}),t.push({id:u,icon:"pencil",name:(0,o.i18n)("post.bookmarks.actions.edit_bookmark.name"),description:(0,o.i18n)("post.bookmarks.actions.edit_bookmark.description")}),e.reminder_at&&t.push({id:d,icon:"clock-rotate-left",name:(0,o.i18n)("post.bookmarks.actions.clear_bookmark_reminder.name"),description:(0,o.i18n)("post.bookmarks.actions.clear_bookmark_reminder.description")}),t.push({id:"pin",icon:"thumbtack",name:(0,o.i18n)(`post.bookmarks.actions.${e.pinAction()}_bookmark.name`),description:(0,o.i18n)(`post.bookmarks.actions.${e.pinAction()}_bookmark.description`)}),t}static #e=(()=>dt7948.n(this.prototype,"content",[(0,r.default)("bookmark")]))();onChange(e){e===c?this.removeBookmark(this.bookmark):e===u?this.editBookmark(this.bookmark):e===d?this.clearBookmarkReminder(this.bookmark):"pin"===e&&this.togglePinBookmark(this.bookmark)}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,l.pluginApiIdentifiers)("bookmark-actions-dropdown"),(0,l.selectKitOptions)({icon:null,translatedNone:"...",showFullTitle:!0}),(0,n.classNames)("bookmark-actions-dropdown")])},82483:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(72738),r=i(27431),o=i(843),a=i(53653),l=i(85671);class c extends s.default{get icon(){return this.args.bookmark?.get("reminder_at")?r.WITH_REMINDER_ICON:r.NO_REMINDER_ICON}get cssClasses(){return this.args.bookmark?"bookmark-icon bookmark-icon__bookmarked":"bookmark-icon"}get title(){return this.args.bookmark?this.args.bookmark.get("reminderTitle"):(0,o.i18n)("bookmarks.create")}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"P6s4+vdY",block:'[[[1,"\\n "],[1,[28,[32,0],[[30,0,["icon"]]],[["translatedTitle","class"],[[30,0,["title"]],[30,0,["cssClasses"]]]]]],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bookmark-icon.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},53007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(53653),n=i(35533),r=i(4959),o=i(83133),a=i(53397),l=i(24571),c=i(46079),u=i(6864),d=i(61390),p=i(7294),h=i(843);let m=(0,i(85671).createTemplateFactory)({id:"JB3nkSBH",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@selector","@action"],[".bookmark-list .bookmark-list-item",[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"topic-list bookmark-list"],[12],[1,"\\n "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,5],null,[["@name"],["bookmark-list-table-header"]],[["default"],[[[[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,"th"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n "],[8,[39,7],null,[["@action","@class","@icon","@title"],[[30,0,["toggleBulkSelect"]],"bulk-select","list-check","bookmarks.bulk.toggle"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"th"],[14,0,"topic-list-data"],[12],[1,"\\n\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,1],[14,0,"bulk-select-topics"],[12],[41,[30,0,["canDoBulkActions"]],[[[1," "],[10,0],[14,0,"bulk-select-bookmarks-dropdown"],[12],[1,"\\n "],[10,1],[14,0,"bulk-select-bookmark-dropdown__count"],[12],[1,"\\n "],[1,[28,[35,10],["bookmarks.bulk.selected_count"],[["count"],[[30,0,["selectedCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,11],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"]],[]],null],[8,[39,12],[[24,0,"btn btn-default bulk-select-all"]],[["@action","@label"],[[30,0,["selectAll"]],"bookmarks.bulk.select_all"]],null],[1,"\\n "],[8,[39,12],[[24,0,"btn btn-default bulk-clear-all"]],[["@action","@label"],[[30,0,["clearAll"]],"bookmarks.bulk.clear_all"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@action","@class","@icon","@title"],[[30,0,["toggleBulkSelect"]],"bulk-select","list-check","bookmarks.bulk.toggle"]],null],[1,"\\n "],[1,[28,[35,10],["topic.title"],null]],[1,"\\n"]],[]]],[13],[1,"\\n "],[10,"th"],[14,0,"topic-list-data"],[12],[1," "],[13],[1,"\\n "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,10],["post.bookmarks.updated"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,10],["activity"],null]],[13],[1,"\\n "],[10,"th"],[12],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["content"]]],null]],null],null,[[[1," "],[10,"tr"],[14,0,"topic-list-item bookmark-list-item"],[12],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,"td"],[14,0,"bulk-select bookmark-list-data"],[12],[1,"\\n "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[10,"input"],[14,0,"bulk-select"],[15,1,[29,["bulk-select-",[30,1,["id"]]]]],[15,"data-id",[30,1,["id"]]],[14,4,"checkbox"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"td"],[14,0,"main-link topic-list-data"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["bookmark-list-before-link",[28,[37,20],null,[["bookmark"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,1],[14,0,"link-top-line"],[12],[1,"\\n "],[10,0],[14,0,"bookmark-metadata"],[12],[1,"\\n"],[41,[30,1,["reminder_at"]],[[[1," "],[10,1],[15,0,[29,["bookmark-metadata-item bookmark-reminder\\n ",[52,[30,1,["reminderAtExpired"]],"bookmark-expired-reminder"]]]],[12],[1,"\\n "],[1,[28,[35,21],["far-clock"],null]],[1,[30,1,["formattedReminder"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["name"]],[[[1," "],[10,1],[14,0,"bookmark-metadata-item"],[12],[1,"\\n "],[1,[28,[35,21],["circle-info"],null]],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"bookmark-status-with-link"],[12],[1,"\\n"],[41,[30,1,["pinned"]],[[[1," "],[1,[28,[35,21],["thumbtack"],[["class"],["bookmark-pinned"]]]],[1,"\\n"]],[]],null],[41,[30,1,["bookmarkableTopicAlike"]],[[[1," "],[8,[39,22],null,[["@topic"],[[30,1,["topicStatus"]]]],null],[1,"\\n "],[1,[28,[35,23],[[30,1,["topicForList"]]],null]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,1,["bookmarkable_url"]]],[14,"role","heading"],[14,"aria-level","2"],[14,0,"title"],[14,"data-topic-id","${topic.id}"],[12],[1,"\\n "],[1,[30,1,["fancy_title"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["bookmarkableTopicAlike"]],[[[1," "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n "],[1,[28,[35,25],[[30,1,["category"]]],null]],[1,"\\n "],[1,[28,[35,26],[[30,1]],[["mode","tagsForUser"],["list",[30,0,["tagsForUser"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,27],[[30,0,["site","mobileView"]],[30,1,["excerpt"]],[30,1,["user","avatar_template"]]],null],[[[1," "],[10,3],[15,6,[30,1,["bookmarkableUser","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n "],[1,[28,[35,28],[[30,1,["bookmarkableUser"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1," "],[11,2],[24,0,"post-excerpt"],[4,[38,30],["click",[30,0,["screenExcerptForExternalLink"]]],null],[12],[1,[28,[35,31],[[30,1,["excerpt"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,"td"],[14,0,"author-avatar topic-list-data"],[12],[1,"\\n"],[41,[30,1,["user","avatar_template"]],[[[1," "],[10,3],[15,6,[30,1,["user","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n "],[1,[28,[35,28],[[30,1,["user"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"td"],[14,0,"post-metadata topic-list-data updated-at"],[12],[1,[28,[35,32],[[30,1,["updated_at"]]],[["format"],["tiny"]]]],[13],[1,"\\n "],[1,[28,[35,33],["list/activity-column"],[["topic","class","tagName"],[[30,1],"num post-metadata","td"]]]],[1,"\\n"]],[]],null],[1," "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n "],[8,[39,34],null,[["@bookmark","@removeBookmark","@editBookmark","@clearBookmarkReminder","@togglePinBookmark"],[[30,1],[28,[37,35],[[30,0],"removeBookmark"],null],[28,[37,35],[[30,0],"editBookmark"],null],[28,[37,35],[[30,0],"clearBookmarkReminder"],null],[28,[37,35],[[30,0],"togglePinBookmark"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,0],null,[["@condition"],[[30,0,["loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]]]],["bookmark"],false,["conditional-loading-spinner","load-more","table","thead","if","plugin-outlet","th","flat-button","span","div","i18n","bulk-select-bookmarks-dropdown","d-button","tbody","each","-track-array","tr","td","label","input","hash","d-icon","topic-status","topic-link","a","category-link","discourse-tags","and","avatar","p","on","html-safe","format-date","raw","bookmark-actions-dropdown","action"]]',moduleName:"discourse/components/bookmark-list.hbs",isStrictMode:!1}),g=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();get canDoBulkActions(){return this.bulkSelectHelper?.selected.length}get selected(){return this.bulkSelectHelper?.selected}get selectedCount(){return this.selected?.length||0}removeBookmark(e){return new l.Promise((t,i)=>{let s=()=>{e.destroy().then(()=>{this.appEvents.trigger("bookmarks:changed",null,e.attachedTo()),this._removeBookmarkFromList(e),t(!0)}).catch(e=>{i(e)})};if(!e.reminder_at)return s();this.dialog.deleteConfirm({message:(0,h.i18n)("bookmarks.confirm_delete"),didConfirm:()=>s(),didCancel:()=>t(!1)})})}static #s=(()=>dt7948.n(this.prototype,"removeBookmark",[n.action]))();screenExcerptForExternalLink(e){e?.target?.tagName==="A"&&(0,p.shouldOpenInNewTab)(e.target.href)&&(0,p.openLinkInNewTab)(e,e.target)}static #l=(()=>dt7948.n(this.prototype,"screenExcerptForExternalLink",[n.action]))();editBookmark(e){this.modal.show(c.default,{model:{bookmark:new d.BookmarkFormData(e),afterSave:t=>{this.appEvents.trigger("bookmarks:changed",t,e.attachedTo()),this.reload()},afterDelete:()=>{this.reload()}}})}static #c=(()=>dt7948.n(this.prototype,"editBookmark",[n.action]))();clearBookmarkReminder(e){return(0,u.ajax)(`/bookmarks/${e.id}`,{type:"PUT",data:{reminder_at:null}}).then(()=>{e.set("reminder_at",null)})}static #u=(()=>dt7948.n(this.prototype,"clearBookmarkReminder",[n.action]))();togglePinBookmark(e){e.togglePin().then(this.reload)}static #d=(()=>dt7948.n(this.prototype,"togglePinBookmark",[n.action]))();toggleBulkSelect(){this.bulkSelectHelper?.toggleBulkSelect(),this.rerender()}static #p=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[n.action]))();selectAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}static #h=(()=>dt7948.n(this.prototype,"selectAll",[n.action]))();clearAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}static #m=(()=>dt7948.n(this.prototype,"clearAll",[n.action]))();get bulkSelectEnabled(){return this.bulkSelectHelper?.bulkSelectEnabled}static #g=(()=>dt7948.n(this.prototype,"bulkSelectEnabled",[r.dependentKeyCompat]))();_removeBookmarkFromList(e){this.content.removeObject(e)}_toggleSelection(e,t,i){let s=this.selected;if(e.checked){if(s.addObject(t),i){let t=Array.from(document.querySelectorAll("input.bulk-select")),i=t.indexOf(e),s=t.findIndex(e=>e.id===this.lastChecked.id),n=Math.min(i,s),r=Math.max(i,s);t.slice(n,r).filter(e=>!0!==e.checked).forEach(e=>{e.click()})}this.set("lastChecked",e)}else s.removeObject(t),this.set("lastChecked",null)}click(e){((t,i)=>{let s=e.target.closest(t);s&&i(s)})("input.bulk-select",()=>{let t=e.target,i=t.dataset.id,s=this.content.find(e=>e.id.toString()===i);this._toggleSelection(t,s,this.lastChecked&&e.shiftKey)})}},[(0,a.classNames)("bookmark-list-wrapper")]),f=(0,s.setComponentTemplate)(m,g)},4833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(18387),l=i(83133),c=i(18638),u=i(82698),d=i(46079),p=i(72738),h=i(88355),m=i(66914),g=i(843),f=i(12610),_=i(53653),y=i(85671);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"toasts",[l.service]))();#C=(()=>void dt7948.i(this,"toasts"))();static #l=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"quicksaved",[n.tracked],function(){return!1}))();#x=(()=>void dt7948.i(this,"quicksaved"))();bookmarkManager=this.args.bookmarkManager;timezone=(()=>this.currentUser?.user_option?.timezone||moment.tz.guess())();timeShortcuts=(()=>(0,m.timeShortcuts)(this.timezone))();bookmarkCreatePromise=null;setReminderShortcuts(){this.reminderAtOptions=[this.timeShortcuts.twoHours(),this.timeShortcuts.tomorrow(),this.timeShortcuts.threeDays()];let e=this.timeShortcuts.custom();e.label="time_shortcut.more_options",this.reminderAtOptions.push(e)}static #u=(()=>dt7948.n(this.prototype,"setReminderShortcuts",[o.action]))();get existingBookmark(){return this.bookmarkManager.trackedBookmark?.id?this.bookmarkManager.trackedBookmark:null}get showEditDeleteMenu(){return this.existingBookmark&&!this.quicksaved}get buttonTitle(){return this.existingBookmark?this.existingBookmark.reminderAt?(0,g.i18n)("bookmarks.created_with_reminder_generic",{date:this.existingBookmark.formattedReminder(this.timezone),name:this.existingBookmark.name||""}):(0,g.i18n)("bookmarks.created_generic",{name:this.existingBookmark.name||""}):(0,g.i18n)("bookmarks.not_bookmarked")}get buttonClasses(){let e=["bookmark widget-button bookmark-menu__trigger"];return this.args.showLabel?e.push("btn-icon-text"):e.push("btn-icon no-text"),this.args.buttonClasses&&e.push(this.args.buttonClasses),this.existingBookmark&&(e.push("bookmarked"),this.existingBookmark.reminderAt&&e.push("with-reminder")),e.join(" ")}get buttonIcon(){return this.existingBookmark?.reminderAt?"discourse-bookmark-clock":"bookmark"}get buttonLabel(){return this.args.showLabel?this.existingBookmark?(0,g.i18n)("bookmarked.edit_bookmark"):(0,g.i18n)("bookmarked.title"):void 0}reminderShortcutTimeTitle(e){return e.time?e.time.format((0,g.i18n)(e.timeFormatKey)):""}static #d=(()=>dt7948.n(this.prototype,"reminderShortcutTimeTitle",[o.action]))();onBookmark(){this.bookmarkCreatePromise=this.bookmarkManager.create(),this.bookmarkCreatePromise.then(()=>{this.quicksaved=!0,this.toasts.success({duration:1500,views:["mobile"],data:{message:(0,g.i18n)("bookmarks.bookmarked_success")}})}).catch(e=>(0,h.popupAjaxError)(e)).finally(()=>{this.bookmarkCreatePromise=null})}static #p=(()=>dt7948.n(this.prototype,"onBookmark",[o.action]))();onShowMenu(){this.existingBookmark||this.onBookmark()}static #h=(()=>dt7948.n(this.prototype,"onShowMenu",[o.action]))();onRegisterApi(e){this.dMenu=e}static #m=(()=>dt7948.n(this.prototype,"onRegisterApi",[o.action]))();onEditBookmark(){this._openBookmarkModal()}static #g=(()=>dt7948.n(this.prototype,"onEditBookmark",[o.action]))();onCloseMenu(){this.quicksaved=!1}static #A=(()=>dt7948.n(this.prototype,"onCloseMenu",[o.action]))();async onRemoveBookmark(){try{let e=await this.bookmarkManager.delete();this.bookmarkManager.afterDelete(e,this.existingBookmark.id),this.toasts.success({duration:1500,data:{icon:"trash-can",message:(0,g.i18n)("bookmarks.deleted_bookmark_success")}})}catch(e){(0,h.popupAjaxError)(e)}finally{this.dMenu.close()}}static #E=(()=>dt7948.n(this.prototype,"onRemoveBookmark",[o.action]))();async onChooseReminderOption(e){if(this.bookmarkCreatePromise&&await this.bookmarkCreatePromise,e.id===m.TIME_SHORTCUT_TYPES.CUSTOM)this._openBookmarkModal();else{this.existingBookmark.selectedReminderType=e.id,this.existingBookmark.selectedDatetime=e.time,this.existingBookmark.reminderAt=e.time;try{await this.bookmarkManager.save(),this.toasts.success({duration:1500,views:["mobile"],data:{message:(0,g.i18n)("bookmarks.reminder_set_success")}})}catch(e){(0,h.popupAjaxError)(e)}finally{this.dMenu.close()}}}static #D=(()=>dt7948.n(this.prototype,"onChooseReminderOption",[o.action]))();async _openBookmarkModal(){this.dMenu.close();try{let e=await this.modal.show(d.default,{model:{bookmark:this.existingBookmark,afterSave:e=>this.bookmarkManager.afterSave(e),afterDelete:(e,t)=>{this.bookmarkManager.afterDelete(e,t)}}});this.bookmarkManager.afterModalClose(e)}catch(e){(0,h.popupAjaxError)(e)}}static #P=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"WJiXoXNj",block:'[[[1,"\\n "],[8,[32,0],[[17,1],[16,0,[30,0,["buttonClasses"]]],[4,[32,2],[[30,0,["setReminderShortcuts"]]],null]],[["@identifier","@triggers","@title","@label","@icon","@onClose","@onShow","@onRegisterApi","@arrow"],["bookmark-menu",[28,[32,1],["click"],null],[30,0,["buttonTitle"]],[30,0,["buttonLabel"]],[30,0,["buttonIcon"]],[30,0,["onCloseMenu"]],[30,0,["onShowMenu"]],[30,0,["onRegisterApi"]],false]],[["content"],[[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[41,[51,[30,0,["showEditDeleteMenu"]]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__title"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,4],["circle-check"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["bookmarks.bookmarked_success"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEditDeleteMenu"]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row -edit"],[24,"data-menu-option-id","edit"]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent"]],[["@icon","@label","@action"],["pencil","edit",[30,0,["onEditBookmark"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row --remove"],[24,"role","button"],[24,"tabindex","0"],[24,"data-menu-option-id","delete"]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent btn-danger"]],[["@icon","@label","@action"],["trash-can","delete",[30,0,["onRemoveBookmark"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row-title"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,5],["bookmarks.also_set_reminder"],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["divider"]],null,null,null],[1,"\\n\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["reminderAtOptions"]]],null]],null],null,[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row"],[16,"data-menu-option-id",[30,3,["id"]]]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent"]],[["@label","@translatedTitle","@action"],[[30,3,["label"]],[28,[30,0,["reminderShortcutTimeTitle"]],[[30,3]],null],[28,[32,7],[[30,0,["onChooseReminderOption"]],[30,3]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null]],[]]],[1," "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","dropdown","option"],false,["unless","if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bookmark-menu.js",scope:()=>[f.default,r.array,a.default,u.default,p.default,g.i18n,c.default,r.fn],isStrictMode:!0}),this))()}},38320:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(87353),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();routeToAdminGuide(){a.default.routeTo(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}static #i=(()=>dt7948.n(this.prototype,"routeToAdminGuide",[n.action]))();static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"HNaVdZ+o",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default bootstrap-mode"]],[["@action","@label"],[[30,0,["routeToAdminGuide"]],"bootstrap_mode"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bootstrap-mode-notice.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},60482:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(30574),r=i(53397),o=i(63748),a=i(16547);let l=(0,i(85671).createTemplateFactory)({id:"Vz1skePn",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-left","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoryBreadcrumbs"]]],null]],null],null,[[[41,[30,1,["hasOptions"]],[[[1," "],[10,"li"],[15,5,[52,[30,1,["category"]],[28,[37,6],[[30,1,["category"]]],null]]],[12],[1,"\\n "],[8,[39,7],null,[["@category","@categories","@tagId","@editingCategory","@editingCategoryTab","@options"],[[30,1,["category"]],[30,1,["options"]],[30,0,["tag","id"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]],[28,[37,1],null,[["parentCategory","subCategory","noSubcategories","autoFilterable"],[[30,1,["parentCategory"]],[30,1,["isSubcategory"]],[30,1,["noSubcategories"]],true]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n"],[41,[30,0,["showTagsSection"]],[[[41,[30,0,["additionalTags"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,8],null,[["@currentCategory","@mainTag","@additionalTags","@options"],[[30,0,["category"]],[30,0,["tag","id"]],[30,0,["additionalTags"]],[28,[37,1],null,[["categoryId"],[[30,0,["category","id"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,9],null,[["@currentCategory","@noSubcategories","@tagId"],[[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag","id"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-right","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null]],["breadcrumb"],false,["plugin-outlet","hash","each","-track-array","if","li","category-variables","category-drop","tags-intersection-chooser","tag-drop"]]',moduleName:"discourse/components/bread-crumbs.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{editingCategory=!1;editingCategoryTab=null;static #e=(()=>dt7948.g(this.prototype,"parentCategories",[(0,n.filter)("categories",function(e){return(0,a.default)("The parentCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategories"}),(e.id!==this.site.get("uncategorized_category_id")||!!this.siteSettings.allow_uncategorized_topics)&&!e.get("parentCategory")})]))();#M=(()=>void dt7948.i(this,"parentCategories"))();categoryBreadcrumbs(e,t,i){let s=e?.ancestors||[],n=[void 0,...s],r=[...s,void 0];return n.map((e,t)=>[e,r[t]]).map(e=>{let[s,n]=e,r=t.filter(e=>e.get("parentCategory.id")===(s&&s.id));return{category:n,parentCategory:s,options:r,isSubcategory:!!s,noSubcategories:!n&&i,hasOptions:!s||s.has_children}})}static #i=(()=>dt7948.n(this.prototype,"categoryBreadcrumbs",[(0,o.default)("category","categories","noSubcategories")]))();showTagsSection(e,t){return e&&!t}static #s=(()=>dt7948.n(this.prototype,"showTagsSection",[(0,o.default)("siteSettings.tagging_enabled","editingCategory")]))();parentCategory(e){return(0,a.default)("The parentCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategory"}),e&&e.parentCategory}static #l=(()=>dt7948.n(this.prototype,"parentCategory",[(0,o.default)("category")]))();parentCategoriesSorted(e){return((0,a.default)("The parentCategoriesSorted property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategoriesSorted"}),this.siteSettings.fixed_category_positions)?e:e.sortBy("totalTopicCount").reverse()}static #c=(()=>dt7948.n(this.prototype,"parentCategoriesSorted",[(0,o.default)("parentCategories")]))();hidden(e){return this.site.mobileView&&!e}static #u=(()=>dt7948.n(this.prototype,"hidden",[(0,o.default)("category")]))();firstCategory(e,t){return(0,a.default)("The firstCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.firstCategory"}),t||e}static #d=(()=>dt7948.n(this.prototype,"firstCategory",[(0,o.default)("category","parentCategory")]))();secondCategory(e,t){return(0,a.default)("The secondCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.secondCategory"}),t&&e}static #p=(()=>dt7948.n(this.prototype,"secondCategory",[(0,o.default)("category","parentCategory")]))();childCategories(e,t){return((0,a.default)("The childCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.childCategories"}),t||!e)?[]:this.categories.filter(t=>t.get("parentCategory")===e)}static #h=(()=>dt7948.n(this.prototype,"childCategories",[(0,o.default)("firstCategory","hideSubcategories")]))()},[(0,r.classNameBindings)("hidden:hidden",":category-breadcrumb"),(0,r.tagName)("ol")]),u=(0,s.setComponentTemplate)(l,c)},65865:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(8554);let r=(0,i(85671).createTemplateFactory)({id:"+xvOX6CR",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_append_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,2],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,3],[[24,0,"topic-bulk-actions__append-tags"]],[["@action","@disabled","@label"],[[28,[37,4],[[30,2],[28,[37,5],null,[["type","tags"],["append_tags",[30,0,["tags"]]]]]],null],[28,[37,6],[[30,0,["tags"]]],null],"topics.bulk.append_tags"]],null]],["@categoryId","@performAndRefresh"],false,["p","i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/append-tags.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#F=(()=>void dt7948.i(this,"tags"))()}(0,o.setComponentTemplate)(r,a)},31431:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(35533);let r=(0,i(85671).createTemplateFactory)({id:"kFw9w5kH",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_new_category"],null]],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,3],[[28,[37,4],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@condition"],[[30,1]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@action","@label"],[[30,0,["changeCategory"]],"topics.bulk.change_category"]],null],[1,"\\n"]],[]]]]]],["@loading"],false,["p","i18n","category-chooser","fn","mut","conditional-loading-spinner","d-button"]]',moduleName:"discourse/components/bulk-actions/change-category.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{categoryId=0;async changeCategory(){await this.args.forEachPerformed({type:"change_category",category_id:this.categoryId},e=>e.set("category_id",this.categoryId))}static #e=(()=>dt7948.n(this.prototype,"changeCategory",[n.action]))()}(0,o.setComponentTemplate)(r,a)},41430:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(8554);let r=(0,i(85671).createTemplateFactory)({id:"8Xtgecm8",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_new_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,2],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,3],null,[["@action","@disabled","@label"],[[28,[37,4],[[30,2],[28,[37,5],null,[["type","tags"],["change_tags",[30,0,["tags"]]]]]],null],[28,[37,6],[[30,0,["tags"]]],null],"topics.bulk.change_tags"]],null]],["@categoryId","@performAndRefresh"],false,["p","i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/change-tags.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#F=(()=>void dt7948.i(this,"tags"))()}(0,o.setComponentTemplate)(r,a)},4695:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(30574),o=i(23777),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"4kr6PTub",block:'[[[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["notificationLevels"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio notification-level-radio checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@value","@name","@selection"],[[30,1,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n "],[10,"strong"],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[35,6],[[30,1,["description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13],[1,"\\n\\n"],[8,[39,7],null,[["@disabled","@action","@label"],[[30,0,["disabled"]],[30,0,["changeNotificationLevel"]],"topics.bulk.change_notification_level"]],null]],["level"],false,["div","each","-track-array","label","radio-button","strong","html-safe","d-button"]]',moduleName:"discourse/components/bulk-actions/notification-level.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{notificationLevelId=null;static #e=(()=>dt7948.g(this.prototype,"disabled",[(0,r.empty)("notificationLevelId")]))();#I=(()=>void dt7948.i(this,"disabled"))();get notificationLevels(){return o.topicLevels.map(e=>({id:e.id.toString(),name:(0,a.i18n)(`topic.notifications.${e.key}.title`),description:(0,a.i18n)(`topic.notifications.${e.key}.description`)}))}changeNotificationLevel(){this.args.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId})}static #i=(()=>dt7948.n(this.prototype,"changeNotificationLevel",[n.action]))()}(0,c.setComponentTemplate)(l,u)},86682:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"removeMembers",name:(0,r.i18n)("groups.members.remove_members"),description:(0,r.i18n)("groups.members.remove_members_description"),icon:"user-xmark"}),this.bulkSelection.some(e=>!e.owner)&&e.push({id:"makeOwners",name:(0,r.i18n)("groups.members.make_owners"),description:(0,r.i18n)("groups.members.make_owners_description"),icon:"shield-halved"}),this.bulkSelection.some(e=>e.owner)&&e.push({id:"removeOwners",name:(0,r.i18n)("groups.members.remove_owners"),description:(0,r.i18n)("groups.members.remove_owners_description"),icon:"shield-halved"}),this.currentUser.staff&&(this.bulkSelection.some(e=>!e.primary)&&e.push({id:"setPrimary",name:(0,r.i18n)("groups.members.make_all_primary"),description:(0,r.i18n)("groups.members.make_all_primary_description"),icon:"id-card"}),this.bulkSelection.some(e=>e.primary)&&e.push({id:"unsetPrimary",name:(0,r.i18n)("groups.members.remove_all_primary"),description:(0,r.i18n)("groups.members.remove_all_primary_description"),icon:"id-card"})),e}static #e=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("bulkSelection.[]")]))()},[(0,a.pluginApiIdentifiers)("bulk-group-member-dropdown"),(0,a.selectKitOptions)({icon:"gear",showFullTitle:!1}),(0,n.classNames)("bulk-group-member-dropdown")])},61683:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"BaLKAVvX",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default bulk-select"]],[["@action","@icon"],[[30,1,["toggleBulkSelect"]],"list"]],null],[1,"\\n"]],["@bulkSelectHelper"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-select-toggle.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"bulk-select-toggle:BulkSelectToggle"))},20797:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addBulkDropdownButton:()=>w,default:()=>k});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(18638),l=i(82698),c=i(58511),u=i(71128),d=i(35092),p=i(81133),h=i(72738),m=i(843),g=i(12610),f=i(53653),_=i(85671);let y=[],b={};function w(e){y.push({id:e.id,icon:e.icon,name:(0,m.i18n)(e.label),visible:e.visible,class:e.class}),(0,c.addBulkDropdownAction)(e.id,e.action);let t={label:e.label,setComponent:!0};"performAndRefresh"===e.actionType&&(t.setComponent=!1),b[e.id]=t}class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get buttons(){return[{id:"dismiss-unread",icon:"check",name:(0,m.i18n)("topic_bulk_actions.dismiss.name"),visible:e=>{let{router:t}=e;return"discovery.unread"===t.currentRouteName}},{id:"dismiss-new",icon:"check",name:(0,m.i18n)("topic_bulk_actions.dismiss.name"),visible:e=>{let{router:t}=e;return"discovery.new"===t.currentRouteName}},{id:"update-category",icon:"pencil",name:(0,m.i18n)("topic_bulk_actions.update_category.name"),visible:e=>{let{topics:t}=e;return!t.some(e=>e.isPrivateMessage)}},{id:"update-notifications",icon:"d-regular",name:(0,m.i18n)("topic_bulk_actions.update_notifications.name")},{id:"reset-bump-dates",icon:"anchor",name:(0,m.i18n)("topic_bulk_actions.reset_bump_dates.name")},{id:"defer",icon:"circle",name:(0,m.i18n)("topic_bulk_actions.defer.name"),visible:e=>{let{currentUser:t}=e;return t.user_option.enable_defer}},{id:"close-topics",icon:"lock",name:(0,m.i18n)("topic_bulk_actions.close_topics.name")},{id:"archive-topics",icon:"folder",name:(0,m.i18n)("topic_bulk_actions.archive_topics.name"),visible:e=>{let{topics:t}=e;return!t.some(e=>e.isPrivateMessage)}},{id:"archive-messages",icon:"box-archive",name:(0,m.i18n)("topic_bulk_actions.archive_messages.name"),visible:e=>{let{topics:t}=e;return t.every(e=>e.isPrivateMessage)}},{id:"move-messages-to-inbox",icon:"envelope",name:(0,m.i18n)("topic_bulk_actions.move_messages_to_inbox.name"),visible:e=>{let{topics:t}=e;return t.every(e=>e.isPrivateMessage)}},{id:"unlist-topics",icon:"far-eye-slash",name:(0,m.i18n)("topic_bulk_actions.unlist_topics.name"),visible:e=>{let{topics:t}=e;return t.some(e=>e.visible)&&!t.some(e=>e.isPrivateMessage)}},{id:"relist-topics",icon:"far-eye",name:(0,m.i18n)("topic_bulk_actions.relist_topics.name"),visible:e=>{let{topics:t}=e;return t.some(e=>!e.visible)&&!t.some(e=>e.isPrivateMessage)}},{id:"append-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.append_tags.name"),visible:e=>{let{currentUser:t,siteSettings:i}=e;return i.tagging_enabled&&t.canManageTopic}},{id:"replace-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.replace_tags.name"),visible:e=>{let{currentUser:t,siteSettings:i}=e;return i.tagging_enabled&&t.canManageTopic}},{id:"remove-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.remove_tags.name"),visible:e=>{let{currentUser:t,siteSettings:i}=e;return i.tagging_enabled&&t.canManageTopic}},{id:"delete-topics",icon:"trash-can",name:(0,m.i18n)("topic_bulk_actions.delete_topics.name"),visible:e=>{let{currentUser:t}=e;return t.staff}},...y].filter(e=>{let{visible:t}=e;return!t||t({topics:this.args.bulkSelectHelper.selected,currentUser:this.currentUser,siteSettings:this.siteSettings,router:this.router})})}showBulkTopicActionsModal(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=!1,n=null,r=null,o=null;!0===i.allowSilent&&(s=!0),!0===i.custom?(t=(0,m.i18n)(b[e].label),r=e,!0===i.setComponent&&(n="set-component")):t=(0,m.i18n)(`topics.bulk.${t}`),i.description&&(o=i.description),this.modal.show(c.default,{model:{action:e,title:t,description:o,bulkSelectHelper:this.args.bulkSelectHelper,refreshClosure:()=>this.args.afterBulkActionComplete(),allowSilent:s,initialAction:n,initialActionLabel:r}})}async onSelect(e){switch(await this.dMenu.close(),e){case"dismiss-unread":this.modal.show(d.default,{model:{title:"topics.bulk.dismiss_read_with_selected",count:this.args.bulkSelectHelper.selected.length,dismissRead:e=>this.dismissRead(e)}});break;case"dismiss-new":this.modal.show(u.default,{model:{selectedTopics:this.args.bulkSelectHelper.selected,dismissCallback:e=>this.dismissRead(e)}});break;case"update-category":this.showBulkTopicActionsModal(e,"change_category",{description:(0,m.i18n)("topic_bulk_actions.update_category.description")});break;case"update-notifications":this.showBulkTopicActionsModal(e,"notification_level",{description:(0,m.i18n)("topic_bulk_actions.update_notifications.description")});break;case"close-topics":this.showBulkTopicActionsModal("close","close_topics",{allowSilent:!0});break;case"archive-topics":this.showBulkTopicActionsModal("archive","archive_topics");break;case"archive-messages":this.showBulkTopicActionsModal("archive_messages","archive_messages");break;case"move-messages-to-inbox":this.showBulkTopicActionsModal("move_messages_to_inbox","move_messages_to_inbox");break;case"unlist-topics":this.showBulkTopicActionsModal("unlist","unlist_topics");break;case"relist-topics":this.showBulkTopicActionsModal("relist","relist_topics");break;case"append-tags":this.showBulkTopicActionsModal(e,"choose_append_tags");break;case"replace-tags":this.showBulkTopicActionsModal(e,"change_tags");break;case"remove-tags":this.showBulkTopicActionsModal(e,"remove_tags");break;case"delete-topics":this.showBulkTopicActionsModal("delete","delete");break;case"reset-bump-dates":this.showBulkTopicActionsModal(e,"reset_bump_dates",{description:(0,m.i18n)("topic_bulk_actions.reset_bump_dates.description")});break;case"defer":this.showBulkTopicActionsModal(e,"defer",{description:(0,m.i18n)("topic_bulk_actions.defer.description")});break;default:b[e]&&this.showBulkTopicActionsModal(e,b[e].label,{custom:!0,setComponent:b[e].setComponent})}}static #c=(()=>dt7948.n(this.prototype,"onSelect",[r.action]))();dismissRead(e){this.args.bulkSelectHelper.dismissRead(e?"topics":"posts")}onRegisterApi(e){this.dMenu=e}static #u=(()=>dt7948.n(this.prototype,"onRegisterApi",[r.action]))();static #d=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"y5cIm15k",block:'[[[1,"\\n "],[8,[32,0],null,[["@modalForMobile","@autofocus","@identifier","@onRegisterApi"],[true,true,"bulk-select-topics-dropdown",[30,0,["onRegisterApi"]]]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[28,[32,1],["select_kit.components.bulk_select_topics_dropdown.title"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,2],["angle-down"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,5],["btn-transparent",[30,2,["id"]],[30,2,["class"]]],null]]],[["@translatedLabel","@icon","@action"],[[30,2,["name"]],[30,2,["icon"]],[28,[32,6],[[30,0,["onSelect"]],[30,2,["id"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]],null],[1," "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["dropdown","button"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-select-topics-dropdown.js",scope:()=>[g.default,m.i18n,h.default,l.default,a.default,p.default,n.fn],isStrictMode:!0}),this))()}},5111:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(75983),a=i(24571),l=i(53404),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"5qvf64t2",block:'[[[11,0],[24,0,"calendar-date-time-input"],[4,[38,1],[[30,0,["setupInternalDateTime"]]],null],[4,[38,1],[[30,0,["setupPikaday"]]],null],[4,[38,2],[[30,0,["changeMinDate"]],[30,1]],null],[4,[38,2],[[30,0,["changeDate"]],[30,2]],null],[4,[38,2],[[30,0,["changeTime"]],[30,3]],null],[12],[1,"\\n "],[8,[39,3],[[24,0,"fake-input"]],null,null],[1,"\\n\\n "],[10,0],[14,0,"date-picker"],[15,1,[29,["picker-container-",[30,4]]]],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"time-pickers"],[12],[1,"\\n "],[1,[28,[35,4],["far-clock"],null]],[1,"\\n "],[8,[39,3],[[16,"maxlength",5],[24,"placeholder","hh:mm"],[24,0,"time-picker"],[4,[38,5],["input",[28,[37,6],[[30,0],[30,0,["onChangeTime"]]],null]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@minDate","@date","@time","@datePickerId"],false,["div","did-insert","did-update","input","d-icon","on","action"]]',moduleName:"discourse/components/calendar-date-time-input.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{_timeFormat=(()=>this.args.timeFormat||"HH:mm:ss")();_dateFormat=(()=>this.args.dateFormat||"YYYY-MM-DD")();_dateTimeFormat=(()=>this.args.dateTimeFormat||"YYYY-MM-DD HH:mm:ss")();_picker=null;static #e=(()=>dt7948.g(this.prototype,"_time",[n.tracked]))();#O=(()=>void dt7948.i(this,"_time"))();static #i=(()=>dt7948.g(this.prototype,"_date",[n.tracked]))();#L=(()=>void dt7948.i(this,"_date"))();setupInternalDateTime(){this._time=this.args.time,this._date=this.args.date}static #s=(()=>dt7948.n(this.prototype,"setupInternalDateTime",[r.action]))();setupPikaday(e){this.#R(e).then(e=>{this._picker=e})}static #l=(()=>dt7948.n(this.prototype,"setupPikaday",[r.action]))();onChangeTime(e){this._time=e.target.value,this.args.onChangeTime(this._time)}static #c=(()=>dt7948.n(this.prototype,"onChangeTime",[r.action]))();changeDate(){moment(this.args.date,this._dateFormat).isValid()?(this._date=this.args.date,this._picker.setDate(moment.utc(this._date).format("YYYY/MM/DD"),!0)):(this._date=null,this._picker.setDate(null))}static #u=(()=>dt7948.n(this.prototype,"changeDate",[r.action]))();changeTime(){if((0,o.isEmpty)(this.args.time)){this._time=null;return}/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.args.time)&&(this._time=this.args.time)}static #d=(()=>dt7948.n(this.prototype,"changeTime",[r.action]))();changeMinDate(){this.args.minDate&&moment(this.args.minDate,this._dateFormat).isValid()?this._picker.setMinDate(moment(this.args.minDate,this._dateFormat).toDate()):this._picker.setMinDate(null)}static #p=(()=>dt7948.n(this.prototype,"changeMinDate",[r.action]))();#R(e){return new a.Promise(t=>{(0,l.default)("/javascripts/pikaday.js").then(()=>{t(new Pikaday({field:e.querySelector(".fake-input"),container:e.querySelector(`#picker-container-${this.args.datePickerId}`),bound:!1,format:"YYYY-MM-DD",reposition:!1,firstDay:1,setDefaultDate:!0,keyboardInput:!1,i18n:{previousMonth:(0,c.i18n)("dates.previous_month"),nextMonth:(0,c.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>{let t=moment(e).format("YYYY-MM-DD");this.args.onChangeDate(t)}}))})})}}(0,d.setComponentTemplate)(u,p)},90889:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(28418),r=i(35533),o=i(83133),a=i(38635),l=i(96141),c=i(95422),u=i(87353),d=i(98740),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"topic",[n.inject]))();#U=(()=>void dt7948.i(this,"topic"))();filterPosts(e){this.topic.send("filterParticipant",e)}static #s=(()=>dt7948.n(this.prototype,"filterPosts",[r.action]))();showUser(e){u.default.routeTo((0,u.userPath)(e.username_lower))}static #l=(()=>dt7948.n(this.prototype,"showUser",[r.action]))();showGroup(e){u.default.routeTo((0,u.groupPath)(e.name))}static #c=(()=>dt7948.n(this.prototype,"showGroup",[r.action]))();static #u=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"LJSOFGKD",block:'[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"card-cloak hidden"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,0],null,[["@name"],["user-card-content-container"]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,"role","dialog"]],[["@topic","@showUser","@filterPosts","@composePrivateMessage"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["filterPosts"]],[28,[32,2],["composePrivateMessage"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],null,[["@topic","@showUser","@showGroup"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["showGroup"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/card-container.js",scope:()=>[d.default,l.default,c.default,a.default],isStrictMode:!0}),this))()}},13654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addCardClickListenerSelector:()=>f,default:()=>y,resetCardClickListenerSelector:()=>_});var s=i(53653),n=i(30574),r=i(62053),o=i(83133),a=i(63748),l=i(97015),c=i(53306),u=i(77270),d=i(87353),p=i(42236);let h="#main-outlet",m="scroll.mobile-card-cloak",g=[h];function f(e){g.push(e)}function _(){g=[h]}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"menu",[o.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #c=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();elementId=null;visible=!1;username=null;loading=null;cardTarget=null;post=null;isDocked=!1;static #d=(()=>dt7948.g(this.prototype,"postStream",[(0,n.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #p=(()=>dt7948.g(this.prototype,"viewingTopic",[(0,n.match)("router.currentRouteName",/^topic\./)]))();#$=(()=>void dt7948.i(this,"viewingTopic"))();_menuInstance=null;_show(e,t,i){if(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser)return!0;if(e=(0,p.escapeExpression)(e.toString()),t.closest(".card-content"))return this._close(),d.default.routeTo(t.href),!1;this.appEvents.trigger("card:show",e,t,i);let s=t.closest("article")?.dataset?.postId||null;if(this.visible&&(this._close(),t===this.cardTarget))return;let n=this.viewingTopic&&s?this.postStream.findLoadedPost(s):null;return this.setProperties({username:e,loading:e,cardTarget:t,post:n}),document.querySelector(".card-cloak")?.classList.remove("hidden"),this.appEvents.trigger("user-card:show",{username:e}),(0,r.next)(()=>{this._positionCard(t,i),this._showCallback(e).then(e=>{this.appEvents.trigger("user-card:after-show",{user:e})})}),this.site.mobileView&&this._bindMobileScroll(),!1}didInsertElement(){super.didInsertElement(...arguments),document.addEventListener("mousedown",this._clickOutsideHandler),document.addEventListener("keyup",this._escListener),g.forEach(e=>{document.querySelector(e).addEventListener("click",this._cardClickHandler)}),this.appEvents.on(`d-editor:preview-click-${this.elementId}`,this,"_previewClick"),this.appEvents.on(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.on("card:close",this,"_close")}_cardClickHandler(e){this.avatarSelector&&this._showCardOnClick(e,this.avatarSelector,e=>e.dataset[this.avatarDataAttrKey])||this._showCardOnClick(e,this.mentionSelector,e=>e.innerText.replace(/^@/,""))}static #h=(()=>dt7948.n(this.prototype,"_cardClickHandler",[a.bind]))();_showCardOnClick(e,t,i){let s=e.target.closest(t);if(s){if((0,l.wantsNewWindow)(e))return!0;this._show(i(s),s,e)||(e.preventDefault(),e.stopPropagation())}return!1}_topicHeaderTrigger(e,t,i){return this.set("isDocked",!0),this._show(e,t,i)}_onScroll(){(0,r.throttle)(this,this._close,1e3)}static #m=(()=>dt7948.n(this.prototype,"_onScroll",[a.bind]))();_bindMobileScroll(){window.addEventListener(m,this._onScroll)}_unbindMobileScroll(){window.removeEventListener(m,this._onScroll)}_previewClick(e,t){return this._show(e.innerText.replace(/^@/,""),e,t)}_positionCard(e){(0,r.schedule)("afterRender",async()=>{this.site.desktopView?this._menuInstance=await this.menu.show(e,{content:this.element,autoUpdate:!1,identifier:"usercard",padding:{top:54+(0,u.headerOffset)(),right:10,bottom:10,left:10},maxWidth:"unset"}):this._menuInstance=await this.menu.show(e,{content:this.element,strategy:"fixed",identifier:"usercard",computePosition:e=>{e.style.left="10px",e.style.right="10px",e.style.top="54px"}}),this.element.classList.toggle("docked-card",this.isDocked),(0,c.default)(()=>{this.element.setAttribute("tabindex","-1"),this.element.focus()},350)})}_hide(){!this.visible&&this.site.mobileView&&document.querySelector(".card-cloak")?.classList.add("hidden"),this._menuInstance?.destroy()}static #g=(()=>dt7948.n(this.prototype,"_hide",[a.bind]))();_close(){this.setProperties({visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1}),this.site.mobileView&&this._unbindMobileScroll(),this._hide(),this.appEvents.trigger("card:hide")}willDestroyElement(){super.willDestroyElement(...arguments),document.removeEventListener("mousedown",this._clickOutsideHandler),document.removeEventListener("keyup",this._escListener),g.forEach(e=>{document.querySelector(e).removeEventListener("click",this._cardClickHandler)}),this.appEvents.off(`d-editor:preview-click-${this.elementId}`,this,"_previewClick"),this.appEvents.off(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.off("card:close",this,"_close"),this._hide()}_clickOutsideHandler(e){!this.visible||e.target.closest(`[data-${this.elementId}]`)?.getAttribute(`data-${this.elementId}`)||e.target.closest(`a.${this.triggeringLinkClass}`)||e.target.closest(`#${this.elementId}`)||this._close()}static #A=(()=>dt7948.n(this.prototype,"_clickOutsideHandler",[a.bind]))();_escListener(e){this.visible&&"Escape"===e.key&&(this.cardTarget?.focus(),this._close())}static #E=(()=>dt7948.n(this.prototype,"_escListener",[a.bind]))()}},66104:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"QwJVlBVM",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n "],[8,[39,1],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n "],[8,[39,2],[[24,0,"latest-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"latest"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["div","categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-latest-topics.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.classNames)("categories-and-latest")]),a=(0,s.setComponentTemplate)(r,o)},24353:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"p3ux30M9",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n "],[8,[39,1],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n "],[8,[39,2],[[24,0,"top-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"top"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["div","categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-top-topics.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.classNames)("categories-and-top")]),a=(0,s.setComponentTemplate)(r,o)},89959:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"mOfHitzq",block:'[[[1,[28,[35,0],[[30,0,["topicStatusIcon"]]],null]],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["topic","fancyTitle"]]],null]],[1,"\\n"],[13]],[],false,["d-icon","a","html-safe"]]',moduleName:"discourse/components/categories-boxes-topic.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{topicStatusIcon(e,t,i){return e?"thumbtack":t||i?"lock":"far-file-lines"}static #e=(()=>dt7948.n(this.prototype,"topicStatusIcon",[(0,r.default)("topic.pinned","topic.closed","topic.archived")]))()},[(0,n.attributeBindings)("topic.id:data-topic-id"),(0,n.tagName)("li")]),l=(0,s.setComponentTemplate)(o,a)},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(75983),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"s9iPRapd",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1," "],[10,0],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,5,[28,[37,3],[[30,1,["color"]]],null]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,7],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[8,[39,9],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1," "],[1,[28,[35,10],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,1,["displayName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"featured-topics"],[12],[1,"\\n"],[41,[30,1,["topics"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["topics"]]],null]],null],null,[[[1," "],[8,[39,12],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,14],null,[["category"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],["c","topic"],false,["each","-track-array","div","category-color-variable","if","a","unless","category-logo","h3","category-title-before","d-icon","ul","categories-boxes-topic","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-boxes-with-topics.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{lockIcon="lock";anyLogos(){return this.categories.any(e=>!(0,n.isEmpty)(e.get("uploaded_logo.url")))}static #e=(()=>dt7948.n(this.prototype,"anyLogos",[(0,o.default)("categories.[].uploaded_logo.url")]))()},[(0,r.classNameBindings)(":category-boxes-with-topics","anyLogos:with-logos:no-logos"),(0,r.tagName)("section")]),c=(0,s.setComponentTemplate)(a,l)},88691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(75983),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"2RyB3VJ2",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["categories-boxes-wrapper",[28,[37,1],null,[["categories"],[[30,0,["categories"]]]]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-before-each-box",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[15,5,[28,[37,5],[[30,1,["color"]]],null]],[15,"data-category-id",[30,1,["id"]]],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,"data-url",[30,1,["url"]]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"category-logo"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,8],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"category-details"],[12],[1,"\\n "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[8,[39,11],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1," "],[1,[28,[35,12],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,1,["displayName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"description"],[12],[1,"\\n "],[1,[28,[35,13],[[30,1,["description_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["isGrandParent"]],[[[42,[28,[37,3],[[28,[37,3],[[30,1,["subcategories"]]],null]],null],null,[[[1," "],[10,0],[15,"data-category-id",[30,2,["id"]]],[15,"data-notification-level",[30,2,["notificationLevelString"]]],[15,5,[28,[37,14],[[30,2,["color"]]],null]],[15,0,[29,["subcategory with-subcategories\\n ",[52,[30,2,["uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n "],[10,0],[14,0,"subcategory-box-inner"],[12],[1,"\\n "],[8,[39,15],null,[["@tagName","@category"],["h4",[30,2]]],null],[1,"\\n"],[41,[30,2,["subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["subcategories"]]],null]],null],null,[[[41,[51,[30,3,["isMuted"]]],[[[1," "],[10,1],[14,0,"subcategory"],[12],[1,"\\n "],[8,[39,11],null,[["@category"],[[30,3]]],null],[1,"\\n "],[1,[28,[35,17],[[30,3]],[["hideParent"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null]],[]],[[[41,[30,1,["subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["subcategories"]]],null]],null],null,[[[1," "],[10,3],[14,0,"subcategory"],[15,6,[30,4,["url"]]],[12],[1,"\\n "],[10,1],[14,0,"subcategory-image-placeholder"],[12],[1,"\\n"],[41,[30,4,["uploaded_logo","url"]],[[[1," "],[8,[39,8],null,[["@category"],[[30,4]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[1,[28,[35,17],[[30,4]],[["hideParent"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-after-each-box",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],[1]],null]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@outletArgs"],["category-boxes-after-boxes",[28,[37,1],null,[["category"],[[30,0,["c"]]]]]]],null]],["c","subcategory","subsubcategory","sc"],false,["plugin-outlet","hash","each","-track-array","div","category-color-variable","if","unless","category-logo","a","h3","category-title-before","d-icon","html-safe","border-color","category-title-link","span","category-link"]]',moduleName:"discourse/components/categories-boxes.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{lockIcon="lock";anyLogos(){return this.categories.any(e=>!(0,n.isEmpty)(e.get("uploaded_logo.url")))}static #e=(()=>dt7948.n(this.prototype,"anyLogos",[(0,o.default)("categories.[].uploaded_logo.url")]))();hasSubcategories(){return this.categories.any(e=>!(0,n.isEmpty)(e.get("subcategories")))}static #i=(()=>dt7948.n(this.prototype,"hasSubcategories",[(0,o.default)("categories.[].subcategories")]))()},[(0,r.classNameBindings)(":category-boxes","anyLogos:with-logos:no-logos","hasSubcategories:with-subcategories"),(0,r.tagName)("section")]),c=(0,s.setComponentTemplate)(a,l)},66630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(35533),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"ERIfrH0W",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["categories-only-wrapper",[28,[37,1],null,[["categories"],[[30,0,["categories"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["mobile-categories",[28,[37,1],null,[["categories"],[[30,0,["filteredCategories"]]]]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["filteredCategories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category"],[12],[1,[28,[35,12],["categories.category"],null]],[13],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,12],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1," "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,12],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics"],[[30,2],[30,0,["showTopics"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1," "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,15],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,12],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1," "],[1,[28,[35,17],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[15,0,[29,["category-list\\n ",[52,[30,0,["showTopics"]],"with-topics"],"\\n ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["mutedCategories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics","@listType"],[[30,3],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[15,0,[29,["category-list\\n ",[52,[30,0,["showTopics"]],"with-topics"],"\\n ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category-muted"],[12],[1,[28,[35,12],["categories.category"],null]],[13],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,12],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1," "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,12],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category-muted"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics","@listType"],[[30,4],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["below-categories-only","div",[28,[37,1],null,[["categories","showTopics"],[[30,0,["categories"]],[30,0,["showTopics"]]]]]]],null]],["c","category","c","category"],false,["plugin-outlet","hash","if","div","each","-track-array","parent-category-row","table","thead","tr","th","span","i18n","tbody","a","on","h3","d-icon","unless"]]',moduleName:"discourse/components/categories-only.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{showMuted=!1;mutedToggleIcon(e,t){return 0===t?void 0:e?"minus":"plus"}static #e=(()=>dt7948.n(this.prototype,"mutedToggleIcon",[(0,o.default)("showMutedCategories","filteredCategories.length")]))();showMutedCategories(e,t){return e||0===t}static #i=(()=>dt7948.n(this.prototype,"showMutedCategories",[(0,o.default)("showMuted","filteredCategories.length")]))();filteredCategories(e,t){return e&&0!==t?e.filter(e=>!e.isHidden):[]}static #s=(()=>dt7948.n(this.prototype,"filteredCategories",[(0,o.default)("categories","categories.length")]))();mutedCategories(e,t){return!e||0===t||e.firstObject.parent_category_id?[]:e.filterBy("hasMuted")}static #l=(()=>dt7948.n(this.prototype,"mutedCategories",[(0,o.default)("categories","categories.length")]))();toggleShowMuted(e){e?.preventDefault(),this.toggleProperty("showMuted")}static #c=(()=>dt7948.n(this.prototype,"toggleShowMuted",[n.action]))()},[(0,r.tagName)("")]),c=(0,s.setComponentTemplate)(a,l)},56438:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"dM4hfIr8",block:'[[[10,0],[14,"role","heading"],[14,"aria-level","2"],[14,0,"table-heading"],[12],[1,"\\n "],[1,[28,[35,1],[[28,[37,2],["filters.",[30,0,["filter"]],".title"],null]],null]],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["categories-topics-table-heading","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["topics"]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,["topics"]]],null]],null],null,[[[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[8,[39,7],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n "],[10,0],[14,0,"more-topics"],[12],[1,"\\n"],[41,[28,[37,9],[[30,0,["siteSettings","desktop_category_page_style"]],"categories_and_latest_topics_created_date"],null],[[[1," "],[10,3],[15,6,[28,[37,11],[[28,[37,2],["/",[30,0,["filter"]],"?order=created"],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,1],["more"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[37,11],[[28,[37,2],["/",[30,0,["filter"]]],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,1],["more"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-topics"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],[[28,[37,2],["topics.none.",[30,0,["filter"]]],null]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],["t"],false,["div","i18n","concat","plugin-outlet","if","each","-track-array","topic-list/latest-topic-list-item","latest-topic-list-item","eq","a","get-url","h3"]]',moduleName:"discourse/components/categories-topic-list.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},86805:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"Ee+adfCO",block:'[[[8,[39,0],null,[["@categories","@showTopics"],[[30,0,["categories"]],"true"]],null]],[],false,["categories-only"]]',moduleName:"discourse/components/categories-with-featured-topics.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},72508:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(63748),o=i(1799);let a={NORMAL:"normal",MUTED:"muted"},l=dt7948.c(class extends s.default{category=null;listType=(()=>a.NORMAL)();isHidden(e,t,i){return e&&i===a.NORMAL||!t&&i===a.MUTED}static #e=(()=>dt7948.n(this.prototype,"isHidden",[(0,r.default)("category.isHidden","category.hasMuted","listType")]))();isMuted(e,t){return e&&t===a.NORMAL||!e&&t===a.MUTED}static #i=(()=>dt7948.n(this.prototype,"isMuted",[(0,r.default)("category.isMuted","listType")]))();get unreadTopicsCount(){return this.category.unreadTopicsCount}get newTopicsCount(){return this.category.newTopicsCount}slugPath(e){return e.substring(3)}static #s=(()=>dt7948.n(this.prototype,"slugPath",[(0,r.default)("category.path")]))();applyValueTransformer(e,t,i){return(0,o.applyValueTransformer)(e,t,i)}},[(0,n.tagName)("")])},34409:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(74916),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"z+CHxD7Q",block:'[[[1,"\\n "],[10,0],[14,0,"category-logo aspect-image"],[12],[1,"\\n "],[8,[32,0],null,[["@lightImg","@darkImg"],[[30,1,["uploaded_logo"]],[30,1,["uploaded_logo_dark"]]]],null],[1,"\\n "],[13],[1,"\\n"]],["@category"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-logo.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"category-logo:CategoryLogo"))},35072:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"ou1POVtQ",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["category-name-fields-details",[28,[37,1],null,[["category"],[[30,0,["category"]]]]]]],[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"field category-name-fields"],[12],[1,"\\n"],[41,[51,[30,0,["category","isUncategorizedCategory"]]],[[[1," "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,5],["category.name"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"category-name"]],[["@value","@placeholderKey","@maxlength"],[[30,0,["category","name"]],"category.name_placeholder","50"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,5],["category.slug"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@value","@placeholderKey","@maxlength"],[[30,0,["category","slug"]],"category.slug_placeholder","255"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],[],false,["plugin-outlet","hash","section","unless","label","i18n","text-field"]]',moduleName:"discourse/components/category-name-fields.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},30636:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75099),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"S+mvTCGS",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"category-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix","@title"],[[30,1],[30,2],[30,3],[30,4],"category.notifications",[28,[32,1],["category.notifications.title"],null]]],null],[1,"\\n"]],["@onChange","@levelId","@showCaret","@showFullTitle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-notifications-tracking.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,a.default)(void 0,"category-notifications-tracking:CategoryNotificationsTracking"))},55252:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(81133),l=i(94636),c=i(54761),u=i(843),d=i(53653),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get everyonePermissionType(){return this.args.everyonePermission?.permission_type}get canReply(){return this.args.type===c.default.CREATE_POST||this.args.type===c.default.FULL}get canCreate(){return this.args.type===c.default.FULL}get canCreateIcon(){return this.canCreate?"square-check":"far-square"}get canReplyIcon(){return this.canReply?"square-check":"far-square"}get replyGrantedClass(){return this.args.type<=c.default.CREATE_POST?"reply-granted":""}get createGrantedClass(){return this.args.type===c.default.FULL?"create-granted":""}get isEveryoneGroup(){return"everyone"===this.args.groupName}get replyDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&this.everyonePermissionType<=c.default.CREATE_POST}get replyTooltip(){return this.replyDisabled?(0,u.i18n)("category.permissions.inherited"):(0,u.i18n)("category.permissions.toggle_reply")}get createDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&this.everyonePermissionType===c.default.FULL}get createTooltip(){return this.createDisabled?(0,u.i18n)("category.permissions.inherited"):(0,u.i18n)("category.permissions.toggle_full")}get groupLink(){return(0,l.default)(`/g/${this.args.groupName}`)}removeRow(e){e?.preventDefault(),this.args.category.removePermission(this.args.groupName)}static #i=(()=>dt7948.n(this.prototype,"removeRow",[n.action]))();setPermissionReply(){this.args.type<=c.default.CREATE_POST?this.#q(c.default.READONLY):this.#q(c.default.CREATE_POST)}static #s=(()=>dt7948.n(this.prototype,"setPermissionReply",[n.action]))();setPermissionFull(){(this.isEveryoneGroup||this.everyonePermissionType!==c.default.FULL)&&(this.args.type===c.default.FULL?this.#q(c.default.CREATE_POST):this.#q(c.default.FULL))}static #l=(()=>dt7948.n(this.prototype,"setPermissionFull",[n.action]))();#q(e){this.args.category.updatePermission(this.args.groupName,e),this.isEveryoneGroup&&this.args.onChangeEveryonePermission(e)}static #c=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"N1S2cY6F",block:'[[[1,"\\n "],[10,0],[14,0,"permission-row row-body"],[15,"data-group-name",[30,1]],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,"\\n"],[41,[30,0,["isEveryoneGroup"]],[[[1," "],[10,1],[14,0,"group-name-label"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[14,0,"group-name-link"],[15,6,[30,0,["groupLink"]]],[12],[1,[30,1]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"options actionable"],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat see"]],[["@icon","@disabled"],["square-check",true]],null],[1,"\\n\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn btn-flat reply-toggle",[30,0,["replyGrantedClass"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canReplyIcon"]],[30,0,["setPermissionReply"]],[30,0,["replyTooltip"]],[30,0,["replyDisabled"]]]],null],[1,"\\n\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn-flat create-toggle",[30,0,["createGrantedClass"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canCreateIcon"]],[30,0,["setPermissionFull"]],[30,0,["createTooltip"]],[30,0,["createDisabled"]]]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"remove-permission btn-flat"]],[["@action","@icon"],[[30,0,["removeRow"]],"trash-can"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@groupName"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-permission-row.js",scope:()=>[o.default,a.default],isStrictMode:!0}),this))()}},90072:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(42256),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get shouldShow(){return this.args.category?.read_only_banner&&this.args.readOnly&&this.currentUser}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"EVXd1s4J",block:'[[[1,"\\n"],[41,[30,0,["shouldShow"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-info category-read-only-banner"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["read_only_banner"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@category"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-read-only-banner.js",scope:()=>[r.htmlSafe],isStrictMode:!0}),this))()}},40275:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(98740),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ccpYkg9G",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["category-title-before",[28,[32,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],["@category"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-title-before.js",scope:()=>[n.default,s.hash],isStrictMode:!0}),(0,a.default)(void 0,"category-title-before:CategoryTitleBefore"))},81630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"ltyGIunA",block:'[[[10,3],[14,0,"category-title-link"],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[10,0],[14,0,"category-text-title"],[12],[1,"\\n "],[8,[39,2],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","read_restricted"]],[[[1," "],[1,[28,[35,4],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"category-name"],[12],[1,[28,[35,6],[[30,0,["category","displayName"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["category","uploaded_logo","url"]],[[[1," "],[8,[39,7],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[13]],[],false,["a","div","category-title-before","if","d-icon","span","dir-span","category-logo"]]',moduleName:"discourse/components/category-title-link.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.tagName)("h3")]),a=(0,s.setComponentTemplate)(r,o);o.prototype.lockIcon="lock"},82954:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"LrkNZZVB",block:'[[[41,[30,0,["unreadTopicsCount"]],[[[1," "],[10,3],[15,6,[30,0,["category","unreadUrl"]]],[15,"title",[28,[37,2],["topic.unread_topics"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,2],["filters.unread.lower_title_with_count"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["newTopicsCount"]],[[[1," "],[10,3],[15,6,[30,0,["category","newUrl"]]],[15,"title",[28,[37,2],["topic.new_topics"],[["count"],[[30,0,["newTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,2],["filters.new.lower_title_with_count"],[["count"],[[30,0,["newTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["if","a","i18n"]]',moduleName:"discourse/components/category-unread.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.classNames)("category__badges"),(0,n.tagName)("span")]),a=(0,s.setComponentTemplate)(r,o)},21340:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(42256),r=i(94636),o=i(53653),a=i(85671);class l extends s.default{get cdnSrc(){return(0,r.getURLWithCDN)(this.args.src)}get style(){if(this.args.width&&this.args.height)return(0,n.htmlSafe)(`--aspect-ratio: ${this.args.width/this.args.height};`)}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"NED4BHCL",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,"img"],[17,2],[16,"src",[30,0,["cdnSrc"]]],[16,"width",[30,3]],[16,"height",[30,4]],[16,5,[30,0,["style"]]],[24,"alt",""],[12],[13],[1,"\\n"]],[]],null],[1," "]],["@src","&attrs","@width","@height"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/cdn-img.js",isStrictMode:!0}),this))()}},37042:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"dgnS0dsy",block:'[[[11,0],[16,0,[28,[37,1],["char-counter",[52,[28,[37,3],[[30,1,["length"]],[30,2]],null],"exceeded"]],null]],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[10,"small"],[14,0,"char-counter__ratio"],[12],[1,"\\n "],[1,[30,1,["length"]]],[1,"/"],[1,[30,2]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,"aria-live","polite"],[14,0,"sr-only"],[12],[1,"\\n "],[1,[52,[28,[37,3],[[30,1,["length"]],[30,2]],null],[28,[37,7],["char_counter.exceeded"],null]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@value","@max","&attrs","&default"],false,["div","concat-class","if","gt","yield","small","span","i18n"]]',moduleName:"discourse/components/char-counter.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"char-counter"))},77910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(75983),c=i(63748),u=i(98802),d=i(843),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"hasSearched",[n.tracked],function(){return!1}))();#V=(()=>void dt7948.i(this,"hasSearched"))();static #i=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #s=(()=>dt7948.g(this.prototype,"messages",[n.tracked]))();#H=(()=>void dt7948.i(this,"messages"))();async debouncedSearch(e){if((0,l.isEmpty)(e)){this.messages=null,this.loading=!1;return}let t=await (0,u.searchForTerm)(e,{typeFilter:"private_messages",searchForId:!0,restrictToArchetype:"private_message"});this.messages=t?.posts?.mapBy("topic").filter(e=>e.id!==this.args.currentTopicId),this.loading=!1}static #l=(()=>dt7948.n(this.prototype,"debouncedSearch",[(0,c.debounce)(300)]))();search(e){this.hasSearched=!0,this.loading=!0,this.args.setSelectedTopicId(null),this.debouncedSearch(e.target.value)}static #c=(()=>dt7948.n(this.prototype,"search",[a.action]))();static #u=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"U52a2Q1A",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,"label"],[14,"for","choose-message-title"],[12],[1,"\\n "],[1,[28,[32,0],["choose_message.title.search"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[11,"input"],[16,"placeholder",[28,[32,0],["choose_message.title.placeholder"],null]],[24,1,"choose-message-title"],[24,4,"text"],[4,[32,1],["input",[30,0,["search"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,2],[12],[1,[28,[32,0],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasSearched"]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["messages"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls existing-message"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[12],[1,"\\n "],[11,"input"],[24,3,"choose_message_id"],[24,4,"radio"],[4,[32,1],["click",[28,[32,2],[[30,2],[30,1]],null]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"message-title"],[12],[1,"\\n "],[1,[30,1,["title"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],[[[1," "],[10,2],[12],[1,[28,[32,0],["choose_message.none_found"],null]],[13],[1,"\\n"]],[]]],[1," "]],[]],null]],[]]],[1," "],[13],[1,"\\n "]],["message","@setSelectedTopicId"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/choose-message.js",scope:()=>[d.i18n,o.on,r.fn],isStrictMode:!0}),this))()}},44028:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(75983),a=i(88355),l=i(63748),c=i(77093),u=i(98802);let d=(0,i(85671).createTemplateFactory)({id:"E14dI1+M",block:'[[[10,0],[12],[1,"\\n "],[10,"label"],[14,"for","choose-topic-title"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],[[28,[37,4],[[30,1],"choose_topic.title.search"],null]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,"input"],[16,"placeholder",[28,[37,3],["choose_topic.title.placeholder"],null]],[24,1,"choose-topic-title"],[24,4,"text"],[4,[38,6],["keydown",[30,0,["ignoreEnter"]]],null],[4,[38,6],["input",[30,0,["onTopicTitleChange"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,2],[12],[1,[28,[35,3],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[28,[37,9],[[30,0,["topics","length"]]],null],[[[1," "],[10,2],[12],[1,[28,[35,3],["choose_topic.none_found"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"choose-topic-list"],[14,"role","radiogroup"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["topics"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls existing-topic"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[12],[1,"\\n "],[8,[39,5],[[24,3,"choose_topic_id"],[16,1,[28,[37,12],["choose-topic-",[30,2,["id"]]],null]],[4,[38,6],["click",[28,[37,14],[[30,0,["chooseTopic"]],[30,2]],null]],null]],[["@checked","@type"],[[28,[37,13],[[30,2,["id"]],[30,0,["selectedTopicId"]]],null],"radio"]],null],[1,"\\n "],[8,[39,15],null,[["@topic","@disableActions"],[[30,2],true]],null],[1,"\\n "],[10,1],[14,0,"topic-title"],[12],[1,"\\n "],[1,[28,[35,16],[[30,2,["title"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"topic-categories"],[12],[1,"\\n "],[1,[28,[35,17],[[30,2,["category"]]],[["ancestors","hideParent","link"],[[30,2,["category","predecessors"]],true,false]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "]],[]]]],[]]],[13]],["@label","t"],false,["div","label","span","i18n","or","input","on","if","p","not","each","-track-array","concat","eq","fn","topic-status","replace-emoji","bound-category-link"]]',moduleName:"discourse/components/choose-topic.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"topics",[n.tracked]))();#z=(()=>void dt7948.i(this,"topics"))();topicTitle;constructor(){super(...arguments),this.args.loadOnInit&&(0,o.isPresent)(this.args.additionalFilters)&&this.initialSearch()}async initialSearch(){try{let e=await (0,u.searchForTerm)(this.args.additionalFilters);if(!e?.posts?.length)return;this.topics=e.posts.mapBy("topic").filter(e=>e.id!==this.args.currentTopicId)}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}async search(e){let t;if(this.isDestroying||this.isDestroyed)return;if((0,o.isEmpty)(e)&&(0,o.isEmpty)(this.args.additionalFilters)){this.topics=null,this.loading=!1;return}let i=[e,this.args.additionalFilters].filter(Boolean).join(" ");(0,o.isPresent)(e)&&(t={typeFilter:"topic",restrictToArchetype:"regular",searchForId:!0});try{let s=await (0,u.searchForTerm)(i,t);if(e!==this.topicTitle)return;if(!s?.posts?.length){this.topics=null;return}this.topics=s.posts.mapBy("topic").filter(e=>e.id!==this.args.currentTopicId),1===this.topics.length&&this.chooseTopic(this.topics[0])}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}static #s=(()=>dt7948.n(this.prototype,"search",[(0,l.debounce)(c.INPUT_DELAY)]))();async onTopicTitleChange(e){this.topicTitle=e.target.value,this.loading=!0,await this.search(this.topicTitle)}static #l=(()=>dt7948.n(this.prototype,"onTopicTitleChange",[r.action]))();ignoreEnter(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}static #c=(()=>dt7948.n(this.prototype,"ignoreEnter",[r.action]))();chooseTopic(e){this.args.topicChangedCallback(e)}static #u=(()=>dt7948.n(this.prototype,"chooseTopic",[r.action]))()}(0,p.setComponentTemplate)(d,h)},2157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(42256),r=i(53397),o=i(63748),a=i(843);let l=dt7948.c(class extends s.default{isUsed(e,t){return(t||[]).includes(e.toUpperCase())}static #e=(()=>dt7948.n(this.prototype,"isUsed",[(0,o.default)("color","usedColors")]))();title(e){return e?(0,a.i18n)("category.already_used"):null}static #i=(()=>dt7948.n(this.prototype,"title",[(0,o.default)("isUsed")]))();style(e){return(0,n.htmlSafe)(`background-color: #${e};`)}static #s=(()=>dt7948.n(this.prototype,"style",[(0,o.default)("color")]))();click(e){e.preventDefault(),this.selectColor(this.color)}},[(0,r.classNameBindings)(":colorpicker","isUsed:used-color:unused-color"),(0,r.attributeBindings)("style","title","ariaLabel:aria-label"),(0,r.tagName)("button")])},43441:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(35533),r=i(53397),o=i(843);let a=(0,i(85671).createTemplateFactory)({id:"qMChWhMk",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["colors"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@color","@usedColors","@selectColor","@ariaLabel"],[[30,1],[30,0,["usedColors"]],[28,[37,3],[[30,0],"selectColor"],null],[28,[30,0,["getColorLabel"]],[[30,1]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["check"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null]],["c"],false,["each","-track-array","color-picker-choice","action","d-icon"]]',moduleName:"discourse/components/color-picker.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{role="group";selectColor(e){this.set("value",e)}static #e=(()=>dt7948.n(this.prototype,"selectColor",[n.action]))();getColorLabel(e){let t=this.usedColors?.includes(e.toUpperCase())?(0,o.i18n)("category.color_used"):"";return`#${e} ${t}`}static #i=(()=>dt7948.n(this.prototype,"getColorLabel",[n.action]))()},[(0,r.attributeBindings)("role","ariaLabel:aria-label"),(0,r.classNames)("colors-container")]),c=(0,s.setComponentTemplate)(a,l)},23921:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(53653),n=i(30574),r=i(42256),o=i(53397),a=i(63748),l=i(84457),c=i(51429),u=i(39965),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"puPlMiRq",block:'[[[8,[39,0],null,[["@composerModel","@replyOptions","@canWhisper","@action","@tabindex","@topic","@post","@whisper","@noBump","@options"],[[30,0,["model"]],[30,0,["model","replyOptions"]],[30,0,["canWhisper"]],[30,0,["model","action"]],[30,0,["tabindex"]],[30,0,["model","topic"]],[30,0,["model","post"]],[30,0,["model","whisper"]],[30,0,["model","noBump"]],[28,[37,1],null,[["mobilePlacementStrategy"],["fixed"]]]]],null],[1,"\\n\\n"],[10,1],[14,0,"action-title"],[14,"role","heading"],[14,"aria-level","1"],[12],[1,"\\n "],[1,[30,0,["actionTitle"]]],[1,"\\n"],[13]],[],false,["composer-actions","hash","span"]]',moduleName:"discourse/components/composer-action-title.hbs",isStrictMode:!1}),h={[u.PRIVATE_MESSAGE]:"topic.private_message",[u.CREATE_TOPIC]:"topic.create_long",[u.CREATE_SHARED_DRAFT]:"composer.create_shared_draft",[u.EDIT_SHARED_DRAFT]:"composer.edit_shared_draft"},m=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"options",[(0,n.alias)("model.replyOptions")]))();#W=(()=>void dt7948.i(this,"options"))();static #i=(()=>dt7948.g(this.prototype,"action",[(0,n.alias)("model.action")]))();#K=(()=>void dt7948.i(this,"action"))();actionTitle(e,t){let i=this.model.customizationFor("actionTitle");if(i)return i;if(h[t])return(0,d.i18n)(h[t]);if(t===u.REPLY){if(e.userAvatar&&e.userLink)return this._formatReplyToUserPost(e.userAvatar,e.userLink);if(e.topicLink)return this._formatReplyToTopic(e.topicLink)}if(t===u.EDIT&&e.userAvatar&&e.userLink&&e.postLink)return this._formatEditUserPost(e.userAvatar,e.userLink,e.postLink,e.originalUser)}static #s=(()=>dt7948.n(this.prototype,"actionTitle",[(0,a.default)("options","action","model.tags","model.category")]))();_formatEditUserPost(e,t,i,s){let n=` ${i.anchor} ${e} ${t.anchor} `;return s&&(n+=` ${(0,c.iconHTML)("share",{class:"reply-to-glyph"})} ${s.avatar} ${s.username} `),(0,r.htmlSafe)(n)}_formatReplyToTopic(e){return(0,r.htmlSafe)(`${e.anchor}`)}_formatReplyToUserPost(e,t){let i=`${(0,l.default)(t.anchor)}`;return(0,r.htmlSafe)(`${e}${i}`)}},[(0,o.classNames)("composer-action-title")]),g=(0,s.setComponentTemplate)(p,m)},48144:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(53653),n=i(62053),r=i(83133),o=i(53397),a=i(42064),l=i(46301),c=i(63748),u=i(53306),d=i(77270),p=i(42236),h=i(39965);let m=["touchstart","mousedown"],g=["touchmove","mousemove"],f=["touchend","mouseup"];function _(e){return e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY}let y=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();elementId="reply-control";prefixedComposerAction(e){return e?`composer-action-${e}`:""}static #i=(()=>dt7948.n(this.prototype,"prefixedComposerAction",[(0,c.default)("composer.action")]))();currentUserPrimaryGroupClass(e){return e&&`group-${e}`}static #s=(()=>dt7948.n(this.prototype,"currentUserPrimaryGroupClass",[(0,c.default)("currentUser.primary_group_name")]))();composeState(e){return e||h.default.CLOSED}static #l=(()=>dt7948.n(this.prototype,"composeState",[(0,c.default)("composer.composeState")]))();keyUp(){this.typed();let e=new Date;this._lastKeyUp=e,(0,n.cancel)(this._lastKeyTimeout),this._lastKeyTimeout=(0,u.default)(()=>{e===this._lastKeyUp&&this.appEvents.trigger("composer:find-similar")},1e3)}setupComposerResizeEvents(){this.origComposerSize=0,this.lastMousePos=0,m.forEach(e=>{this.element.querySelector(".grippie")?.addEventListener(e,this.startDragHandler,{passive:!1})})}performDragHandler(){this.appEvents.trigger("composer:div-resizing"),this.element.classList.add("clear-transitions");let e=_(event),t=this.origComposerSize+(this.lastMousePos-e);t=Math.min(t,this.capabilities.isTablet?window.innerHeight:window.innerHeight-(0,d.headerOffset)()),t=Math.max(parseInt(getComputedStyle(this.element).minHeight,10),t),this.set("composer.composerHeight",`${t}px`),this.keyValueStore.set({key:"composerHeight",value:this.get("composer.composerHeight")}),document.documentElement.style.setProperty("--composer-height",t?`${t}px`:""),this._triggerComposerResized()}static #c=(()=>dt7948.n(this.prototype,"performDragHandler",[c.bind]))();_triggerComposerResized(){(0,n.schedule)("afterRender",()=>{(0,l.default)(this,this.composerResized,300)})}static #u=(()=>dt7948.n(this.prototype,"_triggerComposerResized",[(0,a.observes)("composeState","composer.{action,canEditTopicFeaturedLink}")]))();composerResized(){!this.element||this.isDestroying||this.isDestroyed||this.appEvents.trigger("composer:resized")}startDragHandler(e){e.preventDefault(),this.origComposerSize=this.element.offsetHeight,this.lastMousePos=_(e),g.forEach(e=>{document.addEventListener(e,this.throttledPerformDrag)}),f.forEach(e=>{document.addEventListener(e,this.endDragHandler)}),this.appEvents.trigger("composer:resize-started")}static #d=(()=>dt7948.n(this.prototype,"startDragHandler",[c.bind]))();endDragHandler(){this.appEvents.trigger("composer:resize-ended"),g.forEach(e=>{document.removeEventListener(e,this.throttledPerformDrag)}),f.forEach(e=>{document.removeEventListener(e,this.endDragHandler)}),this.element.classList.remove("clear-transitions"),this.element.focus()}static #p=(()=>dt7948.n(this.prototype,"endDragHandler",[c.bind]))();throttledPerformDrag(e){e.preventDefault(),(0,n.throttle)(this,this.performDragHandler,e,20)}static #h=(()=>dt7948.n(this.prototype,"throttledPerformDrag",[c.bind]))();didInsertElement(){super.didInsertElement(...arguments),this.setupComposerResizeEvents();let e=()=>{this.get("composer.composeState")===h.default.OPEN&&this.appEvents.trigger("composer:opened")};e(),this.element.addEventListener("transitionend",t=>{"height"===t.propertyName&&e()})}willDestroyElement(){super.willDestroyElement(...arguments),m.forEach(e=>{this.element.querySelector(".grippie")?.removeEventListener(e,this.startDragHandler)}),(0,n.cancel)(this._lastKeyTimeout)}click(){this.openIfDraft()}keyDown(e){"Escape"===e.key?(e.preventDefault(),this.cancelled()):"Enter"===e.key&&(e.ctrlKey||e.metaKey||(0,p.isiPad)()&&e.altKey)&&(e.preventDefault(),this.save(void 0,e))}},[(0,o.classNameBindings)("composer.creatingPrivateMessage:private-message","composeState","composer.loading","prefixedComposerAction","composer.canEditTitle:edit-title","composer.createdPost:created-post","composer.creatingTopic:topic","composer.whisper:composing-whisper","composer.sharedDraft:composing-shared-draft","showPreview:show-preview:hide-preview","currentUserPrimaryGroupClass")])},98211:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"oJP7deyo",block:'[[[8,[39,0],null,[["@composer","@showPreview","@openIfDraft","@typed","@cancelled","@save"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","typed"]],[30,0,["composer","cancelled"]],[30,0,["composer","saveAction"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"grippie"],[12],[13],[1,"\\n"],[41,[30,0,["composer","visible"]],[[[1," "],[1,[28,[35,3],[[52,[30,0,["composer","showPreview"]],"composer-has-preview"]],null]],[1,"\\n "],[8,[39,4],null,[["@composer","@messageCount","@addLinkLookup"],[[30,0,["composer","model"]],[30,0,["composer","messageCount"]],[30,0,["composer","addLinkLookup"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","showFullScreenPrompt"]],[[[1," "],[8,[39,5],null,[["@removeFullScreenExitPrompt"],[[30,0,["composer","removeFullScreenExitPrompt"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","viewOpenOrFullscreen"]],[[[1," "],[10,0],[14,"role","dialog"],[15,"aria-label",[30,0,["composer","ariaLabel"]]],[15,0,[29,["reply-area\\n ",[52,[30,0,["composer","canEditTags"]],"with-tags","without-tags"],"\\n ",[52,[30,0,["composer","hasFormTemplate"]],"with-form-template","without-form-template"],"\\n ",[52,[30,0,["composer","model","showCategoryChooser"]],"with-category","without-category"]]]],[12],[1,"\\n "],[10,1],[14,0,"composer-open-plugin-outlet-container"],[12],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["composer-open","div",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reply-to"],[12],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[1," "],[10,0],[14,0,"reply-details"],[12],[1,"\\n "],[8,[39,10],null,[["@model","@canWhisper"],[[30,0,["composer","model"]],[30,0,["composer","canWhisper"]]]],null],[1,"\\n\\n "],[8,[39,7],null,[["@name","@outletArgs"],["composer-action-after",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[41,[30,0,["composer","model","unlistTopic"]],[[[1," "],[10,1],[14,0,"unlist"],[12],[1,"("],[1,[28,[35,11],["composer.unlist"],null]],[1,")"],[13],[1,"\\n"]],[]],null],[41,[30,0,["composer","isWhispering"]],[[[41,[30,0,["composer","model","noBump"]],[[[1," "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,12],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1," "],[8,[39,13],[[24,0,"display-edit-reason"]],[["@onClick","@showInput","@icon"],[[30,0,["composer","displayEditReason"]],[30,0,["composer","showEditReason"]],"circle-info"]],[["default"],[[[[1,"\\n "],[8,[39,14],null,[["@value","@id","@maxlength","@placeholderKey"],[[30,0,["composer","editReason"]],"edit-reason","255","composer.edit_reason_placeholder"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["before-composer-controls",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n "],[8,[39,15],null,[["@composeState","@showToolbar","@toggleComposer","@toggleToolbar","@toggleFullscreen","@disableTextarea"],[[30,0,["composer","model","composeState"]],[30,0,["composer","showToolbar"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]],[30,0,["composer","fullscreenComposer"]],[30,0,["composer","disableTextarea"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,16],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"composer-fields"],[12],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["before-composer-fields",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[41,[30,0,["composer","model","canEditTitle"]],[[[41,[30,0,["composer","model","creatingPrivateMessage"]],[[[1," "],[10,0],[14,0,"user-selector"],[12],[1,"\\n "],[8,[39,17],[[16,0,[28,[37,18],["users-input",[52,[30,0,["composer","showWarning"]],"can-warn"]],null]]],[["@topicId","@recipients","@hasGroups","@focusTarget"],[[30,0,["composer","topicModel","id"]],[30,0,["composer","model","targetRecipients"]],[30,0,["composer","model","hasTargetGroups"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n"],[41,[30,0,["composer","showWarning"]],[[[1," "],[10,"label"],[14,0,"add-warning"],[12],[1,"\\n "],[8,[39,20],null,[["@type","@checked"],["checkbox",[30,0,["composer","model","isWarning"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["composer.add_warning"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[29,["title-and-category\\n ",[52,[30,0,["composer","showPreview"]],"with-preview"]]]],[12],[1,"\\n "],[8,[39,21],null,[["@composer","@lastValidatedAt","@focusTarget"],[[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","model","showCategoryChooser"]],[[[1," "],[10,0],[14,0,"category-input"],[12],[1,"\\n "],[8,[39,22],null,[["@value","@onChange","@options"],[[30,0,["composer","model","categoryId"]],[30,0,["composer","updateCategory"]],[28,[37,8],null,[["disabled","scopedCategoryId","prioritizedCategoryId"],[[30,0,["composer","disableCategoryChooser"]],[30,0,["composer","scopedCategoryId"]],[30,0,["composer","prioritizedCategoryId"]]]]]]],null],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["after-composer-category-input",[28,[37,8],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[39,23],null,[["@validation"],[[30,0,["composer","categoryValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEditTags"]],[[[1," "],[10,0],[14,0,"tags-input"],[12],[1,"\\n "],[8,[39,24],null,[["@value","@onChange","@options"],[[30,0,["composer","model","tags"]],[28,[37,25],[[28,[37,26],[[30,0,["composer","model","tags"]]],null]],null],[28,[37,8],null,[["disabled","categoryId","minimum"],[[30,0,["composer","disableTagsChooser"]],[30,0,["composer","model","categoryId"]],[30,0,["composer","model","minimumRequiredTags"]]]]]]],null],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["after-composer-tag-input",[28,[37,8],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[39,23],null,[["@validation"],[[30,0,["composer","tagValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["after-title-and-category",[28,[37,8],null,[["model","tagValidation","canEditTags","disabled"],[[30,0,["composer","model"]],[30,0,["composer","tagValidation"]],[30,0,["composer","canEditTags"]],[30,0,["composer","disableTagsChooser"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields","div",[28,[37,8],null,[["model","showPreview"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["composer-after-composer-editor",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"submit-panel"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields-below","div",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"save-or-cancel"],[12],[1,"\\n "],[8,[39,27],null,[["@action","@icon","@label","@forwardEvent","@disableSubmit"],[[30,0,["composer","saveAction"]],[30,0,["composer","saveIcon"]],[30,0,["composer","saveLabel"]],true,[30,0,["composer","disableSubmit"]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,28],[[24,0,"cancel btn-transparent"]],[["@action","@icon","@preventFocus","@title"],[[30,0,["composer","cancel"]],[52,[30,0,["composer","canEdit"]],"xmark","trash-can"],true,"close"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,28],[[24,0,"cancel btn-transparent"]],[["@action","@preventFocus","@title","@label"],[[30,0,["composer","cancel"]],true,"close","close"]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["composer","whisperOrUnlistTopic"]],[[[1," "],[10,1],[14,0,"whisper"],[12],[1,"\\n "],[1,[28,[35,12],["far-eye-slash"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","noBump"]],[[[1," "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,12],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["composer-after-save-or-cancel",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["composer-mobile-buttons-bottom",[28,[37,8],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["composer","allowUpload"]],[[[1," "],[10,3],[14,1,"mobile-file-upload"],[15,0,[29,["btn btn-default no-text mobile-file-upload\\n ",[52,[30,0,["composer","isUploading"]],"hidden"]]]],[15,"aria-label",[28,[37,11],["composer.upload_title"],null]],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["composer","uploadIcon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[24,6,""],[24,0,"btn btn-default no-text mobile-preview"],[16,"title",[28,[37,11],["composer.show_preview"],null]],[16,"aria-label",[28,[37,11],["composer.show_preview"],null]],[4,[38,30],["click",[30,0,["composer","togglePreview"]]],null],[12],[1,"\\n "],[1,[28,[35,12],["desktop"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["composer","showPreview"]],[[[1," "],[8,[39,28],[[24,0,"hide-preview"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["composer","togglePreview"]],"composer.hide_preview","composer.hide_preview","pencil"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,31],[[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]]],null],[[[1," "],[10,0],[14,1,"file-uploading"],[12],[1,"\\n"],[41,[30,0,["composer","isProcessingUpload"]],[[[1," "],[1,[28,[35,32],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,11],["upload_selector.processing"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,32],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,11],["upload_selector.uploading"],null]],[1,"\\n "],[1,[30,0,["composer","uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","isCancellable"]],[[[1," "],[11,3],[24,6,""],[24,1,"cancel-file-upload"],[4,[38,30],["click",[30,0,["composer","cancelUpload"]]],null],[12],[1,[28,[35,12],["xmark"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[52,[30,0,["composer","isUploading"]],"hidden"]],[14,1,"draft-status"],[12],[1,"\\n"],[41,[30,0,["composer","model","draftStatus"]],[[[1," "],[10,1],[14,0,"draft-error"],[15,"title",[30,0,["composer","model","draftStatus"]]],[12],[1,"\\n"],[41,[30,0,["composer","model","draftConflictUser"]],[[[1," "],[1,[28,[35,33],[[30,0,["composer","model","draftConflictUser"]]],[["imageSize"],["small"]]]],[1,"\\n "],[1,[28,[35,12],["user-pen"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,12],["triangle-exclamation"],null]],[1,"\\n"]],[]]],[41,[30,0,["site","desktopView"]],[[[1," "],[1,[30,0,["composer","model","draftStatus"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,28],[[16,0,[28,[37,18],["btn-transparent btn-mini-toggle toggle-preview",[52,[51,[30,0,["composer","showPreview"]]],"active"]],null]]],[["@action","@translatedTitle","@icon"],[[30,0,["composer","togglePreview"]],[30,0,["composer","toggleText"]],"angles-left"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"saving-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","createdPost"]],[[[1," "],[1,[28,[35,11],["composer.saved"],null]],[1,"\\n "],[11,3],[16,6,[30,0,["composer","createdPost","url"]]],[24,0,"permalink"],[4,[38,30],["click",[30,0,["composer","viewNewReply"]]],null],[12],[1,[28,[35,11],["composer.view_new_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],["composer.saving"],null]],[1,"\\n "],[1,[28,[35,32],null,[["size"],["small"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"draft-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","topic"]],[[[1," "],[1,[28,[35,12],["share"],null]],[1,"\\n "],[1,[28,[35,34],[[30,0,["composer","draftTitle"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],["composer.saved_draft"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,15],null,[["@composeState","@toggleFullscreen","@toggleComposer","@toggleToolbar"],[[30,0,["composer","model","composeState"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[]]]]]],[],false,["composer-body","div","if","html-class","composer-messages","composer-fullscreen-prompt","span","plugin-outlet","hash","unless","composer-action-title","i18n","d-icon","link-to-input","text-field","composer-toggles","composer-editor","composer-user-selector","concat-class","label","input","composer-title","category-chooser","popup-input-tip","mini-tag-chooser","fn","mut","composer-save-button","d-button","a","on","or","loading-spinner","avatar","html-safe"]]',moduleName:"discourse/components/composer-container.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[n.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},69008:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addApiImageWrapperButtonClickEvent:()=>B,addComposerUploadHandler:()=>M,addComposerUploadMarkdownResolver:()=>R,addComposerUploadPreProcessor:()=>N,cleanUpComposerUploadHandler:()=>F,cleanUpComposerUploadMarkdownResolver:()=>U,cleanUpComposerUploadPreProcessor:()=>O,default:()=>q});var s=i(53653),n=i(35533),r=i(31049),o=i(62053),a=i(83133),l=i(53397),c=i(42064),u=i(27295),d=i(25124),p=i.n(d),h=i(71788),m=i(6864),g=i(17587),f=i(8001),_=i(63748),y=i(36712),b=i(51429),w=i(53306),k=i(99236),T=i(47806),S=i(65742),C=i(39687),x=i(42236),A=i(39965),E=i(843);let D=(0,i(85671).createTemplateFactory)({id:"7NT5Nb2m",block:'[[[41,[30,0,["showFormTemplateForm"]],[[[1," "],[10,0],[14,0,"d-editor"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-container"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n "],[18,1,null],[1,"\\n\\n"],[41,[28,[37,3],[[30,0,["composer","formTemplateIds","length"]],1],null],[[[1," "],[8,[39,4],[[24,0,"composer-select-form-template"]],[["@filteredIds","@value","@onChange","@options"],[[30,0,["composer","formTemplateIds"]],[30,0,["selectedFormTemplateId"]],[30,0,["updateSelectedFormTemplateId"]],[28,[37,5],null,[["maximum"],[1]]]]],null],[1,"\\n"]],[]],null],[1," "],[10,"form"],[14,1,"form-template-form"],[12],[1,"\\n "],[8,[39,7],null,[["@id","@initialValues","@onSelectFormTemplate"],[[30,0,["selectedFormTemplateId"]],[30,0,["composer","formTemplateInitialValues"]],[30,0,["composer","onSelectFormTemplate"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@value","@placeholder","@previewUpdated","@markdownOptions","@extraButtons","@importQuote","@processPreview","@validation","@loading","@forcePreview","@showLink","@composerEvents","@onPopupMenuAction","@popupMenuOptions","@disabled","@outletArgs","@topicId","@categoryId","@onSetup"],[[30,0,["composer","model","reply"]],[30,0,["replyPlaceholder"]],[28,[37,9],[[30,0],"previewUpdated"],null],[30,0,["markdownOptions"]],[28,[37,9],[[30,0],"extraButtons"],null],[30,0,["composer","importQuote"]],[30,0,["composer","showPreview"]],[30,0,["validation"]],[30,0,["composer","loading"]],[30,0,["forcePreview"]],[30,0,["showLink"]],true,[30,0,["composer","onPopupMenuAction"]],[30,0,["composer","popupMenuOptions"]],[30,0,["composer","disableTextarea"]],[28,[37,5],null,[["composer","editorType"],[[30,0,["composer","model"]],"composer"]]],[30,0,["composer","model","topic","id"]],[30,0,["composer","model","category","id"]],[30,0,["setupEditor"]]]],[["default"],[[[[1,"\\n "],[18,1,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","allowUpload"]],[[[1," "],[8,[39,10],[[24,3,"file-uploader"]],[["@fileInputId","@allowMultiple"],[[30,0,["fileUploadElementId"]],true]],null],[1,"\\n"]],[]],null]],["&default"],false,["if","div","yield","gt","form-template-chooser","hash","form","form-template-field/wrapper","d-editor","action","pick-files-button"]]',moduleName:"discourse/components/composer-editor.hbs",isStrictMode:!1}),P=[];function M(e,t){P.push({extensions:e,method:t})}function F(){P.length=0}let I=[];function N(e,t){if(!(e.prototype instanceof u.A))throw Error("Composer upload preprocessors must inherit from the Uppy BasePlugin class.");I.push({pluginClass:e,optionsResolverFn:t})}function O(){I=[]}let L=[];function R(e){L.push(e)}function U(){L=[]}let j=[];function B(e){j.push(e)}let $=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#Y=(()=>void dt7948.i(this,"composer"))();composerEventPrefix="composer";shouldBuildScrollMap=!0;scrollMap=null;fileUploadElementId="file-uploader";init(){super.init(...arguments),this.warnedCannotSeeMentions=[],this.warnedGroupMentions=[],this.uppyComposerUpload=new C.default((0,r.getOwner)(this),{composerEventPrefix:this.composerEventPrefix,composerModel:this.composer.model,uploadMarkdownResolvers:L,uploadPreProcessors:I,uploadHandlers:P,fileUploadElementId:this.fileUploadElementId})}get topic(){return this.composer.get("model.topic")}replyPlaceholder(e){if(e)return"composer.reply_placeholder_choose_category";{let e=(0,S.authorizesOneOrMoreImageExtensions)(this.currentUser.staff,this.siteSettings)?"reply_placeholder":"reply_placeholder_no_images";return`composer.${e}`}}static #i=(()=>dt7948.n(this.prototype,"replyPlaceholder",[(0,_.default)("composer.model.requiredCategoryMissing")]))();showLink(){return this.currentUser&&"none"!==this.currentUser.link_posting_access}static #s=(()=>dt7948.n(this.prototype,"showLink",[_.default]))();setFocus(){"editor"===this.composer.focusTarget&&this.textManipulation.putCursorAtEnd()}static #l=(()=>dt7948.n(this.prototype,"setFocus",[(0,c.observes)("composer.focusTarget")]))();markdownOptions(){return{previewing:!0,formatUsername:x.formatUsername,lookupAvatarByPostNumber:(e,t)=>{let i=this.topic;if(!i)return;let s=i.get("postStream.posts");if(s&&t===i.get("id")){let t=s.findBy("post_number",e);if(t)return(0,g.tinyAvatar)(t.get("avatar_template"))}},lookupPrimaryUserGroupByPostNumber:(e,t)=>{let i=this.topic;if(!i)return;let s=i.get("postStream.posts");if(s&&t===i.get("id")){let t=s.findBy("post_number",e);if(t)return t.primary_group_name}},hashtagTypesInPriorityOrder:this.site.hashtag_configurations["topic-composer"],hashtagIcons:this.site.hashtag_icons}}static #c=(()=>dt7948.n(this.prototype,"markdownOptions",[_.default]))();_composerEditorInit(){let e=this.element.querySelector(".d-editor-preview-wrapper");this._registerImageAltTextButtonClick(e),this.composer.allowUpload&&this.uppyComposerUpload.setup(this.element),this.appEvents.trigger(`${this.composerEventPrefix}:will-open`)}static #u=(()=>dt7948.n(this.prototype,"_composerEditorInit",[(0,c.on)("didInsertElement")]))();setupEditor(e){this.textManipulation=e,this.uppyComposerUpload.textManipulation=e;let t=this.element.querySelector(".d-editor-input");t.addEventListener("scroll",this._throttledSyncEditorAndPreviewScroll),this.get("composer.model.canEditTitle")||this.textManipulation.putCursorAtEnd();let i=(0,f.setupComposerPosition)(t);return()=>{i(),t.removeEventListener("scroll",this._throttledSyncEditorAndPreviewScroll)}}static #d=(()=>dt7948.n(this.prototype,"setupEditor",[_.bind]))();validation(e,t,i,s,r){let o;if(this.get("composer.post.post_type")!==this.site.get("post_types.small_action")){if(t<1)o=(0,E.i18n)("composer.error.post_missing");else if(i>0){o=(0,E.i18n)("composer.error.post_length",{count:s});let e=this.get("currentUser.trust_level");0!==e&&1!==e||this._isNewTopic||(o+="
"+(0,E.i18n)("composer.error.try_like",{heart:(0,b.iconHTML)("heart",{label:(0,E.i18n)("likes_lowercase",{count:1})})}))}if(o)return n.default.create({failed:!0,reason:o,lastShownAt:r})}}static #p=(()=>dt7948.n(this.prototype,"validation",[(0,_.default)("composer.model.reply","composer.model.replyLength","composer.model.missingReplyCharacters","composer.model.minimumPostLength","composer.lastValidatedAt")]))();get _isNewTopic(){return this.composer.model.creatingTopic||this.composer.model.editingFirstPost||this.composer.model.creatingSharedDraft}static #h=(()=>dt7948.n(this.prototype,"_isNewTopic",[(0,n.computed)("composer.{creatingTopic,editingFirstPost,creatingSharedDraft}")]))();_resetShouldBuildScrollMap(){this.set("shouldBuildScrollMap",!0)}_handleInputInteraction(e){let t=this.element.querySelector(".d-editor-preview-wrapper");p()(t).is(":visible")&&(t.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target.addEventListener("scroll",this._handleInputOrPreviewScroll))}static #m=(()=>dt7948.n(this.prototype,"_handleInputInteraction",[_.bind]))();_handleInputOrPreviewScroll(e){this._syncScroll(this._syncEditorAndPreviewScroll,p()(e.target),p()(this.element.querySelector(".d-editor-preview-wrapper")))}static #g=(()=>dt7948.n(this.prototype,"_handleInputOrPreviewScroll",[_.bind]))();_handlePreviewInteraction(e){this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target?.addEventListener("scroll",this._handleInputOrPreviewScroll)}static #A=(()=>dt7948.n(this.prototype,"_handlePreviewInteraction",[_.bind]))();_syncScroll(e,t,i){(!this.scrollMap||this.shouldBuildScrollMap)&&(this.set("scrollMap",this._buildScrollMap(t,i)),this.set("shouldBuildScrollMap",!1)),(0,o.throttle)(this,e,t,i,this.scrollMap,20)}_buildScrollMap(e,t){let i=p()("
").css({position:"absolute",height:"auto",visibility:"hidden",width:e[0].clientWidth,"font-size":e.css("font-size"),"font-family":e.css("font-family"),"line-height":e.css("line-height"),"white-space":e.css("white-space")}).appendTo("body"),s=[],n=0;e.val().split("\n").forEach(e=>{if(s.push(n),0===e.length)n++;else{let t,s;i.text(e),t=parseFloat(i.css("height")),s=parseFloat(i.css("line-height")),n+=Math.round(t/s)}}),s.push(n),i.remove();let r=t.offset().top,o=t.scrollTop()-r-(e.offset().top-r),a=[],l=[];for(let e=0;e{let i=p()(t),n=s[i.data("line-number")];0!==n&&a.push(n),l[n]=Math.round(i.offset().top+o)}),a.push(n),l[n]=t[0].scrollHeight;let c=0;for(let e=1;edt7948.n(this.prototype,"_throttledSyncEditorAndPreviewScroll",[_.bind]))();_syncEditorAndPreviewScroll(e,t){if(!e)return;if(0===e.scrollTop()){t.scrollTop(0);return}let i=e[0].scrollHeight,s=t[0].scrollHeight;if(e.height()+e.scrollTop()+100>i){t.scrollTop(s);return}let n=e.scrollTop(),r=s/i;t.scrollTop(n*r+50)}_renderMentions(e,t){(t||=(0,k.linkSeenMentions)(e,this.siteSettings)).length>0?this._renderUnseenMentions(e,t):(this._warnMentionedGroups(e),this._warnCannotSeeMention(e))}_renderUnseenMentions(e,t){(0,k.fetchUnseenMentions)({names:t,topicId:this.get("composer.model.topic.id"),allowedNames:this.get("composer.model.targetRecipients")?.split(",")}).then(t=>{(0,k.linkSeenMentions)(e,this.siteSettings),this._warnMentionedGroups(e),this._warnCannotSeeMention(e),this._warnHereMention(t.here_count)})}static #D=(()=>dt7948.n(this.prototype,"_renderUnseenMentions",[(0,_.debounce)(450)]))();_renderHashtags(e,t){let i=this.site.hashtag_configurations["topic-composer"];(t||=(0,y.linkSeenHashtagsInContext)(i,e)).length>0&&this._renderUnseenHashtags(e,t,i)}_renderUnseenHashtags(e,t,i){(0,y.fetchUnseenHashtagsInContext)(i,t).then(()=>(0,y.linkSeenHashtagsInContext)(i,e))}static #P=(()=>dt7948.n(this.prototype,"_renderUnseenHashtags",[(0,_.debounce)(450)]))();_refreshOneboxes(e){let t=this.get("composer.post"),i=t&&!t.get("refreshedPost"),s=(0,T.loadOneboxes)(e,m.ajax,this.get("composer.topic.id"),this.get("composer.category.id"),this.siteSettings.max_oneboxes_per_post,i);i&&s>0&&t.set("refreshedPost",!0)}static #Q=(()=>dt7948.n(this.prototype,"_refreshOneboxes",[(0,_.debounce)(450)]))();_expandShortUrls(e){(0,h.resolveAllShortUrls)(m.ajax,this.siteSettings,e)}_decorateCookedElement(e){this.appEvents.trigger("decorate-non-stream-cooked-element",e)}_warnMentionedGroups(e){(0,o.schedule)("afterRender",()=>{e.querySelectorAll(".mention-group[data-mentionable-user-count]").forEach(e=>{let{name:t}=e.dataset;this.warnedGroupMentions.includes(t)||this._isInQuote(e)||(this.warnedGroupMentions.push(t),this.composer.groupsMentioned({name:t,userCount:e.dataset.mentionableUserCount,maxMentions:e.dataset.maxMentions}))})})}static #J=(()=>dt7948.n(this.prototype,"_warnMentionedGroups",[(0,_.debounce)(2e3)]))();_warnCannotSeeMention(e){this.composer.model?.draftKey!==A.default.NEW_PRIVATE_MESSAGE_KEY&&(e.querySelectorAll(".mention[data-reason]").forEach(e=>{let{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.composer.cannotSeeMention({name:t,reason:e.dataset.reason}))}),e.querySelectorAll(".mention-group[data-reason]").forEach(e=>{let{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.composer.cannotSeeMention({name:t,reason:e.dataset.reason,notifiedCount:e.dataset.notifiedUserCount,isGroup:!0}))}))}static #X=(()=>dt7948.n(this.prototype,"_warnCannotSeeMention",[(0,_.debounce)(2e3)]))();_warnHereMention(e){e&&0!==e&&this.composer.hereMention(e)}_handleImageScaleButtonClick(e){if(!e.target.classList.contains("scale-btn"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=e.target.dataset.scale,s=this.get("composer.model.reply").match(S.IMAGE_MARKDOWN_REGEX);if(s){let e=s[t];if(e){let n=e.replace(S.IMAGE_MARKDOWN_REGEX,`![$1|$2, ${i}%$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,s[t],n,{regex:S.IMAGE_MARKDOWN_REGEX,index:t})}}e.preventDefault()}static #Z=(()=>dt7948.n(this.prototype,"_handleImageScaleButtonClick",[_.bind]))();resetImageControls(e){let t=e.querySelector(".scale-btn-container"),i=e.querySelector(".delete-image-button"),s=e.querySelector(".alt-text-readonly-container"),n=e.querySelector(".alt-text-edit-container");t.removeAttribute("hidden"),i.removeAttribute("hidden"),s.removeAttribute("hidden"),e.removeAttribute("editing"),n.setAttribute("hidden","true")}commitAltText(e){let t=parseInt(e.getAttribute("data-image-index"),10),i=this.get("composer.model.reply").match(S.IMAGE_MARKDOWN_REGEX)[t],s=e.querySelector("input.alt-text-input"),n=i.replace(S.IMAGE_MARKDOWN_REGEX,`![${s.value}|$2$3$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i,n),this.resetImageControls(e)}_handleAltTextInputKeypress(e){if(e.target.classList.contains("alt-text-input")&&(("["===e.key||"]"===e.key)&&e.preventDefault(),"Enter"===e.key)){let t=e.target.closest(".button-wrapper");this.commitAltText(t)}}static #ee=(()=>dt7948.n(this.prototype,"_handleAltTextInputKeypress",[_.bind]))();_handleAltTextEditButtonClick(e){if(!e.target.classList.contains("alt-text-edit-btn"))return;let t=e.target.closest(".button-wrapper"),i=t.querySelector(".scale-btn-container"),s=t.querySelector(".delete-image-button"),n=t.querySelector(".alt-text-readonly-container"),r=n.querySelector(".alt-text"),o=t.querySelector(".alt-text-edit-container"),a=o.querySelector(".alt-text-input");t.setAttribute("editing","true"),i.setAttribute("hidden","true"),s.setAttribute("hidden","true"),n.setAttribute("hidden","true"),a.value=r.textContent,o.removeAttribute("hidden"),a.focus(),e.preventDefault()}static #et=(()=>dt7948.n(this.prototype,"_handleAltTextEditButtonClick",[_.bind]))();_handleAltTextOkButtonClick(e){if(!e.target.classList.contains("alt-text-edit-ok"))return;let t=e.target.closest(".button-wrapper");this.commitAltText(t)}static #ei=(()=>dt7948.n(this.prototype,"_handleAltTextOkButtonClick",[_.bind]))();_handleAltTextCancelButtonClick(e){if(!e.target.classList.contains("alt-text-edit-cancel"))return;let t=e.target.closest(".button-wrapper");this.resetImageControls(t)}static #es=(()=>dt7948.n(this.prototype,"_handleAltTextCancelButtonClick",[_.bind]))();_handleImageDeleteButtonClick(e){if(!e.target.classList.contains("delete-image-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.model.reply").match(S.IMAGE_MARKDOWN_REGEX);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i[t],"",{regex:S.IMAGE_MARKDOWN_REGEX,index:t})}static #en=(()=>dt7948.n(this.prototype,"_handleImageDeleteButtonClick",[_.bind]))();_handleImageGridButtonClick(e){if(!e.target.classList.contains("wrap-image-grid-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.model.reply"),s=i.match(S.IMAGE_MARKDOWN_REGEX),n=t+parseInt(e.target.dataset.imageCount,10)-1,r=this.element.querySelector(".d-editor-input");r.selectionStart=i.indexOf(s[t]),r.selectionEnd=i.indexOf(s[n])+s[n].length,this.appEvents.trigger(`${this.composerEventPrefix}:apply-surround`,"[grid]","[/grid]","grid_surround",{useBlockMode:!0})}static #er=(()=>dt7948.n(this.prototype,"_handleImageGridButtonClick",[_.bind]))();_registerImageAltTextButtonClick(e){e&&(e.addEventListener("click",this._handleAltTextCancelButtonClick),e.addEventListener("click",this._handleAltTextEditButtonClick),e.addEventListener("click",this._handleAltTextOkButtonClick),e.addEventListener("click",this._handleImageDeleteButtonClick),e.addEventListener("click",this._handleImageGridButtonClick),e.addEventListener("click",this._handleImageScaleButtonClick),e.addEventListener("keypress",this._handleAltTextInputKeypress),j.forEach(t=>e.addEventListener("click",t)))}_composerClosed(){let e=this.element.querySelector(".d-editor-preview-wrapper");this.composer.allowUpload&&this.uppyComposerUpload.teardown(),this.appEvents.trigger(`${this.composerEventPrefix}:will-close`),(0,w.default)(()=>this.appEvents.trigger(`${this.composerEventPrefix}:closed`),400),e?.removeEventListener("click",this._handleAltTextCancelButtonClick),e?.removeEventListener("click",this._handleAltTextEditButtonClick),e?.removeEventListener("click",this._handleAltTextOkButtonClick),e?.removeEventListener("click",this._handleImageDeleteButtonClick),e?.removeEventListener("click",this._handleImageGridButtonClick),e?.removeEventListener("click",this._handleImageScaleButtonClick),e?.removeEventListener("keypress",this._handleAltTextInputKeypress),j.forEach(t=>e?.removeEventListener("click",t))}static #eo=(()=>dt7948.n(this.prototype,"_composerClosed",[(0,c.on)("willDestroyElement")]))();onExpandPopupMenuOptions(e){let t=e.selected;e.selectText(t.start,t.end-t.start),this.composer.storeToolbarState(e)}static #ea=(()=>dt7948.n(this.prototype,"onExpandPopupMenuOptions",[n.action]))();showPreview(){this.composer.togglePreview()}_isInQuote(e){let t=e.parentElement;for(;t&&!this._isPreviewRoot(t);){if(this._isQuote(t))return!0;t=t.parentElement}return!1}_isPreviewRoot(e){return"DIV"===e.tagName&&e.classList.contains("d-editor-preview")}_isQuote(e){return"ASIDE"===e.tagName&&e.classList.contains("quote")}extraButtons(e){e.addButton({id:"quote",group:"fontStyles",icon:"far-comment",sendAction:this.composer.importQuote,title:"composer.quote_post_title",unshift:!0}),this.composer.allowUpload&&this.composer.uploadIcon&&this.site.desktopView&&e.addButton({id:"upload",group:"insertions",icon:this.composer.uploadIcon,title:"upload",sendAction:this.showUploadModal}),e.addButton({id:"options",group:"extras",icon:"gear",title:"composer.options",sendAction:this.onExpandPopupMenuOptions.bind(this),popupMenu:!0})}static #el=(()=>dt7948.n(this.prototype,"extraButtons",[n.action]))();previewUpdated(e,t,i){this._renderMentions(e,t),this._renderHashtags(e,i),this._refreshOneboxes(e),this._expandShortUrls(e),this.siteSettings.enable_diffhtml_preview||this._decorateCookedElement(e),this.composer.afterRefresh(e)}static #ec=(()=>dt7948.n(this.prototype,"previewUpdated",[n.action]))();get selectedFormTemplateId(){return this._selectedFormTemplateId?this._selectedFormTemplateId:this.composer.model.formTemplateId||this.composer.formTemplateIds?.[0]}static #eu=(()=>dt7948.n(this.prototype,"selectedFormTemplateId",[(0,n.computed)("composer.formTemplateIds")]))();set selectedFormTemplateId(e){this._selectedFormTemplateId=e}updateSelectedFormTemplateId(e){this.selectedFormTemplateId=e}static #ed=(()=>dt7948.n(this.prototype,"updateSelectedFormTemplateId",[n.action]))();showFormTemplateForm(e,t,i){return e?.length>0&&!t&&!i}static #ep=(()=>dt7948.n(this.prototype,"showFormTemplateForm",[(0,_.default)("composer.formTemplateIds","composer.model.replyingToTopic","composer.model.editingPost")]))();showUploadModal(){document.getElementById(this.fileUploadElementId).click()}static #eh=(()=>dt7948.n(this.prototype,"showUploadModal",[n.action]))()},[(0,l.classNameBindings)("composer.showToolbar:toolbar-visible",":wmd-controls")]),q=(0,s.setComponentTemplate)(D,$)},29049:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"z9QSuQH1",block:'[[[11,0],[24,0,"composer-fullscreen-prompt"],[4,[38,1],["animationend",[30,1]],null],[12],[1,"\\n "],[1,[28,[35,2],[[28,[37,3],["composer.exit_fullscreen_prompt"],null]],null]],[1,"\\n"],[13]],["@removeFullScreenExitPrompt"],false,["div","on","html-safe","i18n"]]',moduleName:"discourse/components/composer-fullscreen-prompt.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"composer-fullscreen-prompt"))},43941:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(31049),r=i(53397),o=i(63748);let a=dt7948.c(class extends s.default{layout(e){return(0,n.getOwner)(this).lookup(`template:composer/${e}`)}static #e=(()=>dt7948.n(this.prototype,"layout",[(0,o.default)("message.templateName")]))()},[(0,r.classNameBindings)(":composer-popup","message.extraClass")])},6577:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(8554),n=i(53653),r=i(35533),o=i(30574),a=i(83133),l=i(53397),c=i(6864),u=i(63748),d=i(77093),p=i(18029),h=i(843);let m=(0,i(85671).createTemplateFactory)({id:"ATeamNJW",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["messages"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@message","@closeMessage","@shareModal","@switchPM"],[[30,1],[30,0,["closeMessage"]],[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],true],null],[30,0,["switchPM"]]]],null],[1,"\\n"],[41,[30,0,["showShareModal"]],[[[1," "],[8,[39,6],null,[["@closeModal","@model"],[[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],false],null],[30,0,["shareModalData"]]]],null],[1,"\\n"]],[]],null]],[1]],null]],["message"],false,["each","-track-array","composer-message","fn","mut","if","modal/share-topic"]]',moduleName:"discourse/components/composer-messages.hbs",isStrictMode:!1}),g={},f=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"showShareModal",[s.tracked]))();#em=(()=>void dt7948.i(this,"showShareModal"))();checkedMessages=!1;messages=null;messagesByTemplate=null;queuedForTyping=null;similarTopics=null;usersNotSeen=null;recipientNames=[];static #s=(()=>dt7948.g(this.prototype,"hidden",[(0,o.not)("composer.viewOpenOrFullscreen")]))();#eg=(()=>void dt7948.i(this,"hidden"))();_lastSimilaritySearch=null;_similarTopicsMessage=null;didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("composer:typed-reply",this,this._typedReply),this.appEvents.on("composer:opened",this,this._findMessages),this.appEvents.on("composer:find-similar",this,this._findSimilar),this.appEvents.on("composer-messages:close",this,this._closeTop),this.appEvents.on("composer-messages:create",this,this._create),this.reset()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("composer:typed-reply",this,this._typedReply),this.appEvents.off("composer:opened",this,this._findMessages),this.appEvents.off("composer:find-similar",this,this._findSimilar),this.appEvents.off("composer-messages:close",this,this._closeTop),this.appEvents.off("composer-messages:create",this,this._create)}_closeTop(){this.isDestroying||this.isDestroyed||(this.messages.popObject(),this.set("messageCount",this.messages.length))}_removeMessage(e){this.messages.removeObject(e),this.set("messageCount",this.messages.length)}_create(e){this.isDestroying||this.isDestroyed||(this.reset(),this.popup(r.default.create(e)))}reset(){this.setProperties({messages:[],messagesByTemplate:{},queuedForTyping:[],checkedMessages:!1,similarTopics:[]})}async _typedReply(){if(!this.isDestroying&&!this.isDestroyed){for(let e of this.queuedForTyping){if(this.composer.whisper&&e.hide_if_whisper)return;this.popup(e)}if(this.composer.privateMessage){if(this.composer.targetRecipientsArray.length>0&&this.composer.targetRecipientsArray.every(e=>e.name===this.currentUser.username)){let e=this.composer.store.createRecord("composer-message",{id:"yourself_confirm",templateName:"education",title:(0,h.i18n)("composer.yourself_confirm.title"),body:(0,h.i18n)("composer.yourself_confirm.body")});this.popup(e)}let e=this.composer.targetRecipientsArray.filter(e=>"user"===e.type).map(e=>{let{name:t}=e;return t});if(e.length>0&&e.length!==this.recipientNames.length&&!e.every((e,t)=>e===this.recipientNames[t])){this.recipientNames=e;let t=await (0,c.ajax)("/composer_messages/user_not_seen_in_a_while",{type:"GET",data:{usernames:e}});if(this.isDestroying||this.isDestroyed)return;if(t.user_count>0&&this.usersNotSeen!==t.usernames.join("-")){let e;this.set("usersNotSeen",t.usernames.join("-")),this.messagesByTemplate.education=void 0;let i=[];t.usernames.forEach((e,t)=>{i[t]=`@${e}`}),e=1===t.user_count?"composer.user_not_seen_in_a_while.single":"composer.user_not_seen_in_a_while.multiple";let s=this.composer.store.createRecord("composer-message",{id:"user-not-seen",templateName:"education",body:(0,h.i18n)(e,{usernames:i.join(", "),time_ago:t.time_ago})});this.popup(s)}}}}}static #l=(()=>dt7948.n(this.prototype,"_typedReply",[(0,u.debounce)(d.INPUT_DELAY)]))();async _findSimilar(){if(this.isDestroying||this.isDestroyed||!this.composer.creatingTopic||this.composer?.category?.form_template_ids.length>0)return;let e=(this.composer.reply||"").slice(0,200),t=this.composer.title||"";if(t.length0?(this._similarTopicsMessage.set("similarTopics",this.similarTopics),this.popup(this._similarTopicsMessage)):this._similarTopicsMessage&&this.hideMessage(this._similarTopicsMessage))}async _findMessages(){let e;if(this.isDestroying||this.isDestroyed||this.checkedMessages)return;let t={composer_action:this.composer.action},i=this.composer.topic?.id,s=this.composer.post?.id;i&&(t.topic_id=i),s&&(t.post_id=s);let n=`${t.composer_action}${t.topic_id}${t.post_id}`;if(g.cacheKey===n)e=g.messages;else{if(e=await this.composer.store.find("composer-message",t),this.isDestroying||this.isDestroyed)return;g={messages:e,cacheKey:n}}e.extras?.duplicate_lookup&&this.addLinkLookup(new p.default(e.extras.duplicate_lookup)),this.set("checkedMessages",!0),e.forEach(e=>{e.wait_for_typing?this.queuedForTyping.addObject(e):this.popup(e)})}closeMessage(e,t){t?.preventDefault(),this._removeMessage(e)}static #c=(()=>dt7948.n(this.prototype,"closeMessage",[r.action]))();hideMessage(e){this._removeMessage(e),this.messagesByTemplate[e.templateName]=void 0}static #u=(()=>dt7948.n(this.prototype,"hideMessage",[r.action]))();popup(e){this.messagesByTemplate[e.templateName]||(this.messages.pushObject(e),this.set("messageCount",this.messages.length),this.messagesByTemplate[e.templateName]=e)}static #d=(()=>dt7948.n(this.prototype,"popup",[r.action]))();get shareModalData(){let{topic:e}=this.composer;return{topic:e,category:e.category,allowInvites:e.details.can_invite_to&&!e.archived&&!e.closed&&!e.deleted}}switchPM(e){this.composer.set("action","privateMessage"),this.composer.set("targetRecipients",e.reply_username),this._removeMessage(e)}static #p=(()=>dt7948.n(this.prototype,"switchPM",[r.action]))()},[(0,l.classNameBindings)(":composer-popup-container","hidden")]),_=(0,n.setComponentTemplate)(m,f)},12198:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(18638),r=i(81133),o=i(42236),a=i(843),l=i(53653),c=i(85671);class u extends s.default{get translatedTitle(){return(0,a.i18n)("composer.title",{modifier:(0,o.translateModKey)("Meta+")})}static #e=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"14dcz4HJ",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn-primary create",[52,[30,1],"disabled"]],null]],[17,2]],[["@action","@label","@icon","@translatedTitle","@forwardEvent"],[[30,3],[30,4],[30,5],[30,0,["translatedTitle"]],[30,6]]],null],[1,"\\n "]],["@disabledSubmit","&attrs","@action","@label","@icon","@forwardEvent"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-save-button.js",scope:()=>[n.default,r.default],isStrictMode:!0}),this))()}},30304:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"S8AdQgjN",block:'[[[8,[39,0],[[24,0,"btn-transparent close"]],[["@action","@icon","@label","@ariaLabel"],[[30,1],"xmark","composer.esc","composer.esc_label"]],null]],["@action"],false,["d-button"]]',moduleName:"discourse/components/composer-tip-close-button.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"composer-tip-close-button"))},15887:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(53653),n=i(35533),r=i(30574),o=i(62053),a=i(53397),l=i(42064),c=i(87784),u=i(47431),d=i(6864),p=i(46301),h=i(63748),m=i(77093),g=i(25824),f=i(843);let _=(0,i(85671).createTemplateFactory)({id:"IetttjVL",block:'[[[8,[39,0],null,[["@value","@id","@maxLength","@placeholderKey","@aria-label","@disabled","@autocomplete"],[[30,0,["composer","title"]],"reply-title",[30,0,["titleMaxLength"]],[30,0,["composer","titlePlaceholder"]],[28,[37,1],[[30,0,["composer","titlePlaceholder"]]],null],[30,0,["disabled"]],"off"]],null],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["after-composer-title-input","div",[28,[37,3],null,[["composer"],[[30,0,["composer"]]]]]]],null],[1,"\\n\\n"],[8,[39,4],null,[["@validation"],[[30,0,["validation"]]]],null]],[],false,["text-field","i18n","plugin-outlet","hash","popup-input-tip"]]',moduleName:"discourse/components/composer-title.hbs",isStrictMode:!1}),y=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"watchForLink",[(0,r.alias)("composer.canEditTopicFeaturedLink")]))();#ef=(()=>void dt7948.i(this,"watchForLink"))();static #i=(()=>dt7948.g(this.prototype,"disabled",[(0,r.or)("composer.loading","composer.disableTitleInput")]))();#I=(()=>void dt7948.i(this,"disabled"))();isTitleFocused=!1;didInsertElement(){super.didInsertElement(...arguments);let e=this.element.querySelector("input");this._focusHandler=()=>this.set("isTitleFocused",!0),this._blurHandler=()=>this.set("isTitleFocused",!1),e.addEventListener("focus",this._focusHandler),e.addEventListener("blur",this._blurHandler),"title"===this.focusTarget&&(0,g.default)(e),this.get("composer.titleLength")>0&&(0,p.default)(this,this._titleChanged,10)}willDestroyElement(){super.willDestroyElement(...arguments);let e=this.element.querySelector("input");e&&(e.removeEventListener("focus",this._focusHandler),e.removeEventListener("blur",this._blurHandler))}validation(e,t,i,s,r){let o;if(!r&&(e<1?o=(0,f.i18n)("composer.error.title_missing"):t>0?o=(0,f.i18n)("composer.error.title_too_short",{count:i}):e>this.siteSettings.max_topic_title_length&&(o=(0,f.i18n)("composer.error.title_too_long",{count:this.siteSettings.max_topic_title_length})),o))return n.default.create({failed:!0,reason:o,lastShownAt:s})}static #s=(()=>dt7948.n(this.prototype,"validation",[(0,h.default)("composer.titleLength","composer.missingTitleCharacters","composer.minimumTitleLength","lastValidatedAt","isTitleFocused")]))();titleMaxLength(e){return e?null:this.siteSettings.max_topic_title_length}static #l=(()=>dt7948.n(this.prototype,"titleMaxLength",[(0,h.default)("watchForLink")]))();_titleChanged(){0===this.get("composer.titleLength")&&this.set("autoPosted",!1),!this.autoPosted&&this.watchForLink&&((0,m.isTesting)()?(0,o.next)(()=>this._checkForUrl()):(0,p.default)(this,this._checkForUrl,500))}static #c=(()=>dt7948.n(this.prototype,"_titleChanged",[(0,l.observes)("composer.titleLength","watchForLink")]))();_clearFeaturedLink(){this.watchForLink&&this.bodyIsDefault()&&this.set("composer.featuredLink",null)}static #u=(()=>dt7948.n(this.prototype,"_clearFeaturedLink",[(0,l.observes)("composer.replyLength")]))();_checkForUrl(){if(this.element&&!this.isDestroying&&!this.isDestroyed&&this.isAbsoluteUrl&&this.bodyIsDefault()){if(this.get("composer.title").match(RegExp("^https?:\\/\\/"+window.location.hostname,"i")))return;this.set("composer.loading",!0);let e=document.createElement("a");e.href=this.get("composer.title");let t=(0,c.load)({elem:e,refresh:!1,ajax:d.ajax,synchronous:!0,categoryId:this.get("composer.category.id"),topicId:this.get("composer.topic.id")});t&&t.then?t.then(()=>{let t=(0,u.lookupCache)(this.get("composer.title"));this._updatePost(t||e)}).finally(()=>{this.set("composer.loading",!1),(0,o.schedule)("afterRender",()=>{(0,g.default)(this.element.querySelector("input"))})}):(this._updatePost(t),this.set("composer.loading",!1),(0,o.schedule)("afterRender",()=>{(0,g.default)(this.element.querySelector("input"))}))}}_updatePost(e){if(e){let t=document.createRange().createContextualFragment(e),i=this.composer;if(this.set("autoPosted",!0),this.set("composer.featuredLink",this.get("composer.title")),i.appendText(this.get("composer.title"),null,{block:!0}),t.querySelector(".twitterstatus")){this.set("composer.title","");return}let s=t.querySelector("h3, h4"),n=s&&s.textContent||t.firstElementChild&&t.firstElementChild.title;if(n)this.changeTitle(n);else{let e=t.firstChild&&t.firstChild.attributes&&t.firstChild.attributes.title||t.querySelector("[title]")&&t.querySelector("[title]").attributes.title;e&&this.changeTitle(e)}}}changeTitle(e){e&&e.length>0&&this.set("composer.title",e.trim())}isAbsoluteUrl(e,t){return t>0&&/^(https?:)?\/\/[\w\.\-]+/i.test(e)&&!/\s/.test(e)}static #d=(()=>dt7948.n(this.prototype,"isAbsoluteUrl",[(0,h.default)("composer.title","composer.titleLength")]))();bodyIsDefault(){let e=this.get("composer.reply")||"";return 0===e.length||e===(this.get("composer.category.topic_template")||"")}},[(0,a.classNames)("title-input")]),b=(0,s.setComponentTemplate)(_,y)},64676:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"MjSJkmY0",block:'[[[10,0],[14,0,"composer-controls"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName"],["before-composer-toggles","div"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,4],[[24,0,"btn-flat toggle-toolbar btn-mini-toggle"]],[["@icon","@action","@title","@preventFocus"],["bars",[30,0,["toggleToolbar"]],[30,0,["toggleToolbarTitle"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFullScreenButton"]],[[[1," "],[8,[39,4],[[24,0,"btn-transparent toggle-fullscreen btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["fullscreenIcon"]],[30,0,["toggleFullscreen"]],[30,0,["fullscreenTitle"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],[[24,0,"btn-transparent toggler toggle-minimize btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["toggleIcon"]],[30,0,["toggleComposer"]],[30,0,["toggleTitle"]]]],null],[1,"\\n"],[13]],[],false,["div","span","plugin-outlet","if","d-button"]]',moduleName:"discourse/components/composer-toggles.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{toggleTitle(e){return"draft"===e||"saving"===e?"composer.abandon":"composer.collapse"}static #e=(()=>dt7948.n(this.prototype,"toggleTitle",[(0,r.default)("composeState")]))();toggleToolbarTitle(e){return e?"composer.hide_toolbar":"composer.show_toolbar"}static #i=(()=>dt7948.n(this.prototype,"toggleToolbarTitle",[(0,r.default)("showToolbar")]))();fullscreenTitle(e){return"draft"===e?"composer.open":"fullscreen"===e?"composer.exit_fullscreen":"composer.enter_fullscreen"}static #s=(()=>dt7948.n(this.prototype,"fullscreenTitle",[(0,r.default)("composeState")]))();toggleIcon(e){return"draft"===e||"saving"===e?"xmark":"angles-down"}static #l=(()=>dt7948.n(this.prototype,"toggleIcon",[(0,r.default)("composeState")]))();fullscreenIcon(e){return"draft"===e?"angles-up":"fullscreen"===e?"discourse-compress":"discourse-expand"}static #c=(()=>dt7948.n(this.prototype,"fullscreenIcon",[(0,r.default)("composeState")]))();showFullScreenButton(e){return!this.site.mobileView&&!e}static #u=(()=>dt7948.n(this.prototype,"showFullScreenButton",[(0,r.default)("disableTextarea")]))()},[(0,n.tagName)("")]),l=(0,s.setComponentTemplate)(o,a)},8727:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(35533),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"KhWwI0hr",block:'[[[8,[39,0],null,[["@id","@value","@onChange","@options"],["private-message-users",[30,0,["splitRecipients"]],[28,[37,1],[[30,0],"updateRecipients"],null],[28,[37,2],null,[["topicId","none","includeMessageableGroups","allowEmails","autoWrap"],[[30,0,["topicId"]],"composer.users_placeholder",true,[30,0,["currentUser","can_send_private_email_messages"]],true]]]]],null]],[],false,["email-group-user-chooser","action","hash"]]',moduleName:"discourse/components/composer-user-selector.hbs",isStrictMode:!1});class a extends s.default{_groups=[];didInsertElement(){super.didInsertElement(...arguments),"usernames"===this.focusTarget&&this.element.querySelector(".select-kit .select-kit-header").focus()}splitRecipients(e){return Array.isArray(e)?e:e?e.split(",").filter(Boolean):[]}static #e=(()=>dt7948.n(this.prototype,"splitRecipients",[(0,r.default)("recipients")]))();_updateGroups(e,t){let i=[];this._groups.forEach(t=>{e.includes(t)&&i.addObject(t)}),t.forEach(e=>{i.includes(e)||i.addObject(e)}),this.setProperties({_groups:i,hasGroups:i.length>0})}updateRecipients(e,t){let i=t.filterBy("isGroup").mapBy("id");this._updateGroups(e,i),this.set("recipients",e.join(","))}static #i=(()=>dt7948.n(this.prototype,"updateRecipients",[n.action]))()}(0,s.setComponentTemplate)(o,a)},41988:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(31049),r=i(83133),o=i(51367),a=i.n(o),l=i(68587),c=i(74052),u=i(63748),d=i(70958),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();textarea;registerTextarea=(()=>(0,l.modifier)(e=>{for(let[t,i]of(this.textarea=e,this.#e_=new(a())(e),this.textManipulation=new d.default((0,n.getOwner)(this),{markdownOptions:this.args.markdownOptions,textarea:e}),Object.entries(this.args.keymap)))this.#e_.bind(t,i);let t=this.args.onSetup(this.textManipulation);return this.setupSmartList(),()=>{this.destroySmartList(),t?.(),this.#e_?.destroy(),this.#e_=null}}))();#e_;#ey=!1;#eb=!1;onInputSmartList(){this.#ey&&this.textManipulation.maybeContinueList(),this.#ey=!1}static #i=(()=>dt7948.n(this.prototype,"onInputSmartList",[u.bind]))();onBeforeInputSmartListShiftDetect(e){this.#eb=e.shiftKey}static #s=(()=>dt7948.n(this.prototype,"onBeforeInputSmartListShiftDetect",[u.bind]))();onBeforeInputSmartList(e){this.#eb||(this.#ey="insertLineBreak"===e.inputType)}static #l=(()=>dt7948.n(this.prototype,"onBeforeInputSmartList",[u.bind]))();setupSmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.addEventListener("beforeinput",this.onBeforeInputSmartList),this.textarea.addEventListener("keydown",this.onBeforeInputSmartListShiftDetect),this.textarea.addEventListener("input",this.onInputSmartList))}destroySmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.removeEventListener("beforeinput",this.onBeforeInputSmartList),this.textarea.removeEventListener("keydown",this.onBeforeInputSmartListShiftDetect),this.textarea.removeEventListener("input",this.onInputSmartList))}static #c=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"oY2ufwEb",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"d-editor-input"],[4,[30,0,["registerTextarea"]],null,null]],[["@autocomplete","@value","@placeholder","@aria-label","@disabled","@input","@focusIn","@focusOut","@id"],["off",[30,1],[30,2],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n "]],["@value","@placeholder","@disabled","@change","@focusIn","@focusOut","@id"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer/textarea-editor.js",scope:()=>[c.default],isStrictMode:!0}),this))()}},47774:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"qfxJbZN7",block:'[[[41,[30,1],[[[1," "],[18,4,null],[1,"\\n"]],[]],[[[41,[30,2],[[[41,[30,3],[[[1," "],[40,[[[18,4,null]],[]],"%cursor:0%",[28,[37,3],[[30,2]],null],null],[1,"\\n"]],[]],[[[1," "],[40,[[[18,4,null]],[]],"%cursor:1%",[28,[37,3],[[30,2]],null]],[1,"\\n"]],[]]]],[]],null]],[]]]],["@inline","@element","@append","&default"],false,["if","yield","in-element","-in-el-null"]]',moduleName:"discourse/components/conditional-in-element.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"conditional-in-element"))},53755:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(843);let o=(0,i(85671).createTemplateFactory)({id:"HUV4wwBt",block:'[[[41,[30,0,["isLoading"]],[[[1," "],[10,1],[14,0,"title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n "],[10,0],[15,0,[29,["spinner ",[30,0,["size"]]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","span","div","yield"]]',moduleName:"discourse/components/conditional-loading-section.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{isLoading=!1;title=(()=>(0,r.i18n)("conditional_loading_section.loading"))()},[(0,n.classNameBindings)("isLoading"),(0,n.classNames)("conditional-loading-section")]),l=(0,s.setComponentTemplate)(o,a)},96320:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75446),n=i(81329),r=i(81133),o=i(98740),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"hYywZBz/",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@defaultGlimmer","@outletArgs"],["conditional-loading-spinner",true,[28,[32,1],null,[["condition","size"],[[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n "],[11,0],[16,0,[28,[32,2],["loading-container",[52,[30,1],"visible"],[52,[28,[32,3],[[30,2],"small"],null],"inline-spinner"]],null]],[17,3],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[15,0,[29,["spinner ",[30,2]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[18,4,null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],["@condition","@size","&attrs","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/conditional-loading-spinner.js",scope:()=>[o.default,s.hash,r.default,n.eq],isStrictMode:!0}),(0,c.default)(void 0,"conditional-loading-spinner:ConditionalLoadingSpinner"))},79120:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(53653);class n extends s.default{}},84329:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(35533),o=i(31351),a=i(83133),l=i(71788),c=i(6864),u=i(47806),d=i(50409),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"cooked",[n.tracked],function(){return null}))();#ev=(()=>void dt7948.i(this,"cooked"))();constructor(e,t){super(e,t),this.loadCookedText()}async loadCookedText(){let e=await (0,d.cook)(this.args.rawText);this.cooked=e}static #s=(()=>dt7948.n(this.prototype,"loadCookedText",[r.action]))();calculateOffsetHeight(e){if(this.args.onOffsetHeightCalculated)return this.args.onOffsetHeightCalculated(e?.offsetHeight)}static #l=(()=>dt7948.n(this.prototype,"calculateOffsetHeight",[r.action]))();buildOneboxes(e){this.args.paintOneboxes&&null!==this.cooked&&(0,u.loadOneboxes)(e,c.ajax,this.args.topicId,this.args.categoryId,this.siteSettings.max_oneboxes_per_post,!1)}static #c=(()=>dt7948.n(this.prototype,"buildOneboxes",[r.action]))();resolveShortUrls(e){(0,l.resolveAllShortUrls)(c.ajax,this.siteSettings,e,this.args.opts)}static #u=(()=>dt7948.n(this.prototype,"resolveShortUrls",[r.action]))();static #d=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"Gnx6a88S",block:'[[[1,"\\n "],[11,0],[17,1],[4,[32,0],[[30,0,["buildOneboxes"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["resolveShortUrls"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["calculateOffsetHeight"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["loadCookedText"]],[30,2]],null],[12],[1,"\\n "],[1,[30,0,["cooked"]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@rawText"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/cook-text.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},63837:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(35533),r=i(53397),o=i(46301),a=i(63748);let l=(0,i(85671).createTemplateFactory)({id:"A6464iIk",block:'[[[8,[39,0],[[16,0,[29,["copy-button ",[30,0,["copyClass"]]]]]],[["@icon","@action","@ariaLabel","@translatedLabel"],[[30,0,["copyIcon"]],[30,0,["copy"]],[30,0,["ariaLabel"]],[30,0,["copyTranslatedLabel"]]]],null]],[],false,["d-button"]]',moduleName:"discourse/components/copy-button.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{copyIcon="copy";copyClass="btn-primary";init(){super.init(...arguments),this.copyTranslatedLabel=this.translatedLabel}_restoreButton(){this.isDestroying||this.isDestroyed||(this.set("copyIcon","copy"),this.set("copyClass","btn-primary"),this.set("copyTranslatedLabel",this.translatedLabel))}static #e=(()=>dt7948.n(this.prototype,"_restoreButton",[a.bind]))();copy(){let e=document.querySelector(this.selector);e.select(),e.setSelectionRange(0,e.value.length);try{document.execCommand("copy"),this.copied&&this.copied(),this.set("copyIcon","check"),this.set("copyClass","btn-primary ok"),this.set("copyTranslatedLabel",this.translatedLabelAfterCopy),(0,o.default)(this._restoreButton,3e3)}catch{}}static #i=(()=>dt7948.n(this.prototype,"copy",[n.action]))()},[(0,r.tagName)("")]),u=(0,s.setComponentTemplate)(l,c)},31859:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(83133),r=i(42256),o=i(843),a=i(53653),l=i(85671);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get fullKey(){let e=this.args.key;return this.args.suffix&&(e+=this.args.suffix),this.currentUser?.new_new_view_enabled&&"topic_count_new"===e&&(e="topic_count_latest"),e}static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"lROKUEwj",block:'[[[1,"\\n "],[10,1],[12],[1,[28,[32,0],[[28,[32,1],[[30,0,["fullKey"]]],[["count"],[[30,1]]]]],null]],[13],[1,"\\n "]],["@count"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/count-i18n.js",scope:()=>[r.htmlSafe,o.i18n],isStrictMode:!0}),this))()}},3001:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(31049),o=i(53397),a=i(63748),l=i(6535);let c=(0,i(85671).createTemplateFactory)({id:"IcCkJGvV",block:'[[[18,1,[[28,[37,1],null,[["data","uploading","uploadProgress","uploaded","submitDisabled","startUpload"],[[30,0,["data"]],[30,0,["uploading"]],[30,0,["uploadProgress"]],[30,0,["uploaded"]],[30,0,["submitDisabled"]],[30,0,["startUpload"]]]]],[30,0,["uppyUpload","setup"]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/create-invite-uploader.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{uppyUpload=(()=>new l.default((0,r.getOwner)(this),{id:"create-invite-uploader",type:"csv",autoStartUploads:!1,uploadUrl:"/invites/upload_csv",preventDirectS3Uploads:!0,validateUploadedFilesOptions:{bypassNewUserRestriction:!0,csvOnly:!0},uploadDone:()=>{this.set("uploaded",!0)}}))();submitDisabled(e,t){return!e||t}static #e=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,a.default)("uppyUpload.filesAwaitingUpload","uppyUpload.uploading")]))();startUpload(){this.uppyUpload.startUpload()}static #i=(()=>dt7948.n(this.prototype,"startUpload",[n.action]))()},[(0,o.tagName)("div")]),d=(0,s.setComponentTemplate)(c,u)},96760:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"26GWpM/+",block:'[[[41,[30,0,["canCreateTopic"]],[[[1," "],[8,[39,1],null,null,[["button","tooltip"],[[[[1,"\\n "],[8,[39,3],[[24,1,"create-topic"],[16,0,[30,0,["btnClass"]]]],[["@action","@icon","@disabled","@label"],[[30,0,["action"]],"plus",[30,0,["disabled"]],[30,0,["label"]]]],null],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[39,5],null,[["@icon","@content"],["circle-info",[28,[37,6],[[30,0,["disallowedReason"]]],null]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[39,7],null,null,null],[1,"\\n"]],[]],null]],[]],null]],["@disabled","@showDrafts"],false,["if","d-button-tooltip",":button","d-button",":tooltip","d-tooltip","i18n","topic-drafts-dropdown"]]',moduleName:"discourse/components/create-topic-button.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{label="topic.create";btnClass="btn-default";get disallowedReason(){return!1===this.canCreateTopicOnTag?"topic.create_disabled_tag":this.disabled?"topic.create_disabled_category":void 0}},[(0,n.tagName)("")]),a=(0,s.setComponentTemplate)(r,o)},18782:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(31049),r=i(1157),o=i(16547),a=i(85671);class l extends s.default{triggerAppEvent=null;init(){super.init(...arguments);let e=this.name,t=(0,r.getCustomHTML)(e);if(t)this.set("html",t),this.set("layout",(0,a.createTemplateFactory)({id:"BAiCigqH",block:'[[[1,[30,0,["html"]]]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/custom-html.js",isStrictMode:!1}));else{let t=(0,n.getOwner)(this).lookup(`template:${e}`);t&&((0,o.default)("Defining an hbs template for CustomHTML rendering is deprecated. Use plugin outlets instead.",{id:"discourse.custom_html_template"}),this.set("layout",t))}}didInsertElement(){super.didInsertElement(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`inserted-custom-html:${this.name}`)}willDestroyElement(){super.willDestroyElement(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`destroyed-custom-html:${this.name}`)}}},31096:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(68587),o=i(81329),a=i(81133),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"breadcrumbs",[n.service]))();#ew=(()=>void dt7948.i(this,"breadcrumbs"))();registerContainer=(()=>(0,r.modifier)(e=>{let t={element:e};return this.breadcrumbs.containers.add(t),()=>this.breadcrumbs.containers.delete(t)}))();get lastItemIndex(){return this.breadcrumbs.items.size-1}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"wkZlLMUk",block:'[[[1,"\\n "],[11,"ul"],[24,0,"d-breadcrumbs"],[17,1],[4,[30,0,["registerContainer"]],null,null],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["breadcrumbs","items"]]],null]],null],null,[[[44,[[30,2,["templateForContainer"]]],[[[1," "],[8,[30,4],[[16,"aria-current",[52,[28,[32,0],[[30,3],[30,0,["lastItemIndex"]]],null],"page"]],[16,0,[28,[32,1],["d-breadcrumbs__item",[30,5]],null]]],[["@linkClass"],[[28,[32,1],["d-breadcrumbs__link",[30,6]],null]]],null],[1,"\\n"]],[4]]]],[2,3]],null],[1," "],[13],[1,"\\n "]],["&attrs","item","index","Template","@additionalItemClasses","@additionalLinkClasses"],false,["each","-track-array","let","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-breadcrumbs-container.js",scope:()=>[o.eq,a.default],isStrictMode:!0}),this))()}},5104:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(72738),o=i(94636),a=i(53653),l=i(85671),c=i(73306);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"breadcrumbs",[n.service]))();#ew=(()=>void dt7948.i(this,"breadcrumbs"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(){super(...arguments),this.breadcrumbs.items.add(this)}willDestroy(){super.willDestroy(...arguments),this.breadcrumbs.items.delete(this)}get templateForContainer(){let{label:e,path:t}=this.args;return(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"BSB99eLu",block:'[[[1,"\\n "],[11,"li"],[17,1],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[32,1]],null]],[15,0,[30,2]],[12],[1,"\\n "],[1,[32,2]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"separator"],[12],[1,[28,[32,3],["angle-right"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@linkClass"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-breadcrumbs-item.js",scope:()=>[o.default,t,e,r.default],isStrictMode:!0}),(0,c.default)(void 0,void 0))}}},18638:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(99615),n=i(35533),r=i(30574),o=i(62053),a=i(83133),l=i(42256),c=i(81329),u=i(7056),d=i(81133),p=i(72738),h=i(45782),m=i(16547),g=i(843),f=i(53653),_=i(85671);let y=["DButton no longer supports @action as a string. Please refactor to use an closure action instead.",{id:"discourse.d-button-action-string"}];class b extends u.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"btnIcon",[(0,r.notEmpty)("args.icon")]))();#ek=(()=>void dt7948.i(this,"btnIcon"))();static #l=(()=>dt7948.g(this.prototype,"btnLink",[(0,r.equal)("args.display","link")]))();#eT=(()=>void dt7948.i(this,"btnLink"))();static #c=(()=>dt7948.g(this.prototype,"noText",[(0,r.empty)("computedLabel")]))();#eS=(()=>void dt7948.i(this,"noText"))();constructor(){super(...arguments),"string"==typeof this.args.action&&(0,m.default)(...y)}get forceDisabled(){return!!this.args.isLoading}get isDisabled(){return this.forceDisabled||this.args.disabled}get btnType(){return this.args.icon?this.computedLabel?"btn-icon-text":"btn-icon":this.computedLabel?"btn-text":void 0}get computedTitle(){return this.args.title?(0,g.i18n)(this.args.title):this.args.translatedTitle}get computedLabel(){return this.args.label?(0,l.htmlSafe)((0,g.i18n)(this.args.label)):this.args.translatedLabel}get computedAriaLabel(){return this.args.ariaLabel?(0,g.i18n)(this.args.ariaLabel):this.args.translatedAriaLabel?this.args.translatedAriaLabel:void 0}get computedAriaExpanded(){return!0===this.args.ariaExpanded?"true":!1===this.args.ariaExpanded?"false":void 0}get computedAriaPressed(){return!0===this.args.ariaPressed?"true":!1===this.args.ariaPressed?"false":void 0}keyDown(e){this.args.onKeyDown?(e.stopPropagation(),this.args.onKeyDown(e)):"Enter"===e.key&&this._triggerAction(e)}static #u=(()=>dt7948.n(this.prototype,"keyDown",[n.action]))();click(e){return this._triggerAction(e)}static #d=(()=>dt7948.n(this.prototype,"click",[n.action]))();mouseDown(e){this.args.preventFocus&&e.preventDefault()}static #p=(()=>dt7948.n(this.prototype,"mouseDown",[n.action]))();_triggerAction(e){let{action:t,route:i,routeModels:s}=this.args,n=this.capabilities?.isIOS;if(t||i){if(t){let{actionParam:i,forwardEvent:s}=this.args;if("string"==typeof t){if((0,m.default)(...y),this._target?.send)this._target.send(t,i);else throw Error("DButton could not find a target for the action. Use a closure action instead")}else"object"==typeof t&&t.value?n?s?t.value(i,e):t.value(i):(0,o.next)(()=>s?t.value(i,e):t.value(i)):"function"==typeof t&&(n?s?t(i,e):t(i):(0,o.next)(()=>s?t(i,e):t(i)))}else if(i){if(s){let e=Array.isArray(s)?s:[s];this.router.transitionTo(i,...e)}else this.router.transitionTo(i)}return e.preventDefault(),e.stopPropagation(),!1}}get wrapperElement(){return(0,h.default)(this.args.href?"a":"button")}static #h=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"Db9irkWL",block:'[[[1,"\\n"],[1," "],[8,[30,0,["wrapperElement"]],[[16,6,[30,1]],[16,4,[52,[51,[30,1]],[28,[32,0],[[30,2],"button"],null]]],[16,0,[28,[32,1],[[30,3],[52,[30,4],"is-loading"],[52,[30,0,["btnLink"]],"btn-link","btn"],[52,[30,0,["noText"]],"no-text"],[30,0,["btnType"]]],null]],[16,1,[30,5]],[16,"form",[30,6]],[16,"aria-controls",[30,7]],[16,"aria-expanded",[30,0,["computedAriaExpanded"]]],[16,"aria-pressed",[30,0,["computedAriaPressed"]]],[16,"tabindex",[30,8]],[16,"disabled",[30,0,["isDisabled"]]],[16,"title",[30,0,["computedTitle"]]],[16,"aria-label",[30,0,["computedAriaLabel"]]],[17,9],[4,[32,2],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],["click",[30,0,["click"]]],null],[4,[32,2],["mousedown",[30,0,["mouseDown"]]],null]],null,[["default"],[[[[1,"\\n"],[41,[30,4],[[[1,[28,[32,3],["spinner"],[["class"],["loading-icon"]]]]],[]],[[[41,[30,10],[[[41,[30,11],[[[1," "],[10,1],[14,"aria-hidden","true"],[12],[1,[28,[32,3],[[30,10]],null]],[13],[1,"\\n"]],[]],[[[1,[28,[32,3],[[30,10]],null]]],[]]],[1," "]],[]],null]],[]]],[41,[30,0,["computedLabel"]],[[[10,1],[14,0,"d-button-label"],[12],[1,[30,0,["computedLabel"]]],[41,[30,12],[[[1,"…"]],[]],null],[13]],[]],[[[41,[28,[32,0],[[30,10],[30,4]],null],[[[1,"​\\n"]],[]],null]],[]]],[18,13,null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@href","@type","@class","@isLoading","@id","@form","@ariaControls","@tabindex","&attrs","@icon","@ariaHidden","@ellipsis","&default"],false,["unless","if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-button.js",scope:()=>[c.or,d.default,s.on,p.default],isStrictMode:!0}),this))()}},30799:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addPluginDocumentTitleCounter:()=>p,default:()=>h});var s=i(53653),n=i(83133),r=i(53397),o=i(6864),a=i(17112),l=i(63748),c=i(63464),u=i(843);let d=[];function p(e){d.push(e)}let h=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"documentTitle",[n.service]))();#eC=(()=>void dt7948.i(this,"documentTitle"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[n.service]))();#v=(()=>void dt7948.i(this,"dialog"))();_showingLogout=!1;didInsertElement(){super.didInsertElement(...arguments),this.documentTitle.setTitle(document.title),document.addEventListener("visibilitychange",this._focusChanged),document.addEventListener("resume",this._focusChanged),document.addEventListener("freeze",this._focusChanged),this.session.hasFocus=!0,this.appEvents.on("notifications:changed",this,this._updateNotifications),(0,o.setLogoffCallback)(()=>this.displayLogoff())}willDestroyElement(){super.willDestroyElement(...arguments),(0,o.setLogoffCallback)(null),document.removeEventListener("visibilitychange",this._focusChanged),document.removeEventListener("resume",this._focusChanged),document.removeEventListener("freeze",this._focusChanged),this.appEvents.off("notifications:changed",this,this._updateNotifications)}_updateNotifications(e){if(!this.currentUser)return;let t=d.reduce((e,t)=>e+t(),0);t+=this.currentUser.all_unread_notifications_count,this.currentUser.unseen_reviewable_count&&(t+=this.currentUser.unseen_reviewable_count),this.documentTitle.updateNotificationCount(t,{forced:e?.forced})}_focusChanged(){(0,a.clearAllBodyScrollLocks)(),"hidden"===document.visibilityState?this.session.hasFocus&&this.documentTitle.setFocus(!1):this.hasFocus||this.documentTitle.setFocus(!0)}static #s=(()=>dt7948.n(this.prototype,"_focusChanged",[l.bind]))();displayLogoff(){this._showingLogout||(this._showingLogout=!0,this.messageBus.stop(),this.dialog.alert({message:(0,u.i18n)("logout"),confirmButtonLabel:"refresh",didConfirm:()=>(0,c.default)(),didCancel:()=>(0,c.default)()}))}},[(0,r.tagName)("")])},4855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addToolbarCallback:()=>B,clearToolbarCallbacks:()=>$,default:()=>H,onToolbarCreate:()=>q});var s=i(53653),n=i(35533),r=i(31049),o=i(62053),a=i(83133),l=i(53397),c=i(42064),u=i(80370),d=i(32277),p=i(71788),h=i(24571),m=i(41988),g=i(74423),f=i(22381),_=i(6864),y=i(37054),b=i(58996),w=i(46301),k=i(63748),T=i(16547),S=i(77093),C=i(99434),x=i(41089),A=i(36712),E=i(97015),D=i(19905),P=i(99236),M=i(47806),F=i(47716),I=i(50409),N=i(98074),O=i(59457),L=i(14507),R=i(843);let U=(0,i(85671).createTemplateFactory)({id:"wnSDoezt",block:'[[[10,0],[14,0,"d-editor-container"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n "],[18,3,null],[1,"\\n\\n "],[10,0],[15,0,[29,["d-editor-textarea-wrapper\\n ",[52,[30,0,["disabled"]],"disabled"],"\\n ",[52,[30,0,["isEditorFocused"]],"in-focus"]]]],[12],[1,"\\n "],[10,0],[14,0,"d-editor-button-bar"],[14,"role","toolbar"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["toolbar","groups"]]],null]],null],null,[[[42,[28,[37,4],[[28,[37,4],[[30,1,["buttons"]]],null]],null],null,[[[41,[28,[30,2,["condition"]],[[30,0]],null],[[[41,[30,2,["popupMenu"]],[[[1," "],[8,[39,5],[[16,0,[30,2,["className"]]]],[["@content","@onChange","@onOpen","@tabindex","@onKeydown","@options"],[[30,0,["popupMenuOptions"]],[30,0,["onPopupMenuAction"]],[28,[37,6],[[30,0],[30,2,["action"]],[30,2]],null],-1,[30,0,["rovingButtonBar"]],[28,[37,7],null,[["icon","focusAfterOnChange"],[[30,2,["icon"]],false]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[16,"tabindex",[30,2,["tabindex"]]],[16,0,[30,2,["className"]]]],[["@action","@translatedTitle","@label","@icon","@preventFocus","@onKeyDown"],[[28,[37,9],[[28,[37,6],[[30,0],[30,2,["action"]]],null],[30,2]],null],[30,2,["title"]],[30,2,["label"]],[30,2,["icon"]],[30,2,["preventFocus"]],[30,0,["rovingButtonBar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[2]],null]],[1]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[8,[30,0,["editorComponent"]],null,[["@onSetup","@markdownOptions","@keymap","@value","@placeholder","@disabled","@change","@focusIn","@focusOut","@id"],[[30,0,["setupEditor"]],[30,0,["markdownOptions"]],[30,0,["keymap"]],[30,0,["value"]],[30,0,["placeholderTranslated"]],[30,0,["disabled"]],[30,0,["change"]],[30,0,["handleFocusIn"]],[30,0,["handleFocusOut"]],[30,0,["textAreaId"]]]],null],[1,"\\n "],[8,[39,11],null,[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["after-d-editor","div",[30,0,["outletArgs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[15,0,[29,["d-editor-preview-wrapper ",[52,[30,0,["forcePreview"]],"force-preview"]]]],[12],[1,"\\n "],[10,0],[14,0,"d-editor-preview"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","enable_diffhtml_preview"]]],[[[1," "],[1,[28,[35,14],[[30,0,["preview"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,1],[14,0,"d-editor-plugin"],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["editor-preview","div",[30,0,["outletArgs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["group","b","&default"],false,["div","yield","if","each","-track-array","toolbar-popup-menu-options","action","hash","d-button","fn","conditional-loading-spinner","popup-input-tip","plugin-outlet","unless","html-safe","span"]]',moduleName:"discourse/components/d-editor.hbs",isStrictMode:!1}),j=[];function B(e){j.push(e)}function $(){j=[]}function q(e){(0,T.default)("`onToolbarCreate` is deprecated, use the plugin api instead.",{id:"discourse.d-editor.on-toolbar-create"}),B(e)}let V=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[a.service]))();#ex=(()=>void dt7948.i(this,"emojiStore"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"menu",[a.service]))();#j=(()=>void dt7948.i(this,"menu"))();editorComponent=(()=>m.default)();textManipulation;ready=!1;lastSel=null;showLink=!0;isEditorFocused=!1;processPreview=!0;morphingOptions={beforeAttributeUpdated:(e,t)=>"DETAILS"!==e.tagName||"open"!==t};init(){super.init(...arguments),this.register=(0,C.getRegister)(this)}placeholderTranslated(e){return e?(0,R.i18n)(e):null}static #l=(()=>dt7948.n(this.prototype,"placeholderTranslated",[(0,k.default)("placeholder")]))();_readyNow(){this.set("ready",!0),this.autofocus&&this.textManipulation.focus()}didInsertElement(){super.didInsertElement(...arguments),this._previewMutationObserver=this._disablePreviewTabIndex(),this.element.querySelector(".d-editor-preview").addEventListener("click",this._handlePreviewLinkClick)}get keymap(){let e={},t=this.get("toolbar.shortcuts");return Object.keys(t).forEach(i=>{let s=t[i];e[i]=()=>{let e=t[i].shortcutAction;return e?e(this.newToolbarEvent()):s.action(s),!1}}),this.popupMenuOptions&&this.onPopupMenuAction&&this.popupMenuOptions.forEach(t=>{t.shortcut&&t.condition&&(e[`${D.PLATFORM_KEY_MODIFIER}+${t.shortcut}`.toLowerCase()]=()=>(this.onPopupMenuAction(t,this.newToolbarEvent()),!1))}),e.tab=()=>this.textManipulation.indentSelection("right"),e["shift+tab"]=()=>this.textManipulation.indentSelection("left"),e}_handlePreviewLinkClick(e){if(!(0,E.wantsNewWindow)(e)&&"A"===e.target.tagName)return e.target.classList.contains("mention")&&this.appEvents.trigger("d-editor:preview-click-user-card",e.target,e),e.target.classList.contains("mention-group")&&this.appEvents.trigger("d-editor:preview-click-group-card",e.target,e),e.preventDefault(),!1}static #c=(()=>dt7948.n(this.prototype,"_handlePreviewLinkClick",[k.bind]))();_shutDown(){this.element.querySelector(".d-editor-preview")?.removeEventListener("click",this._handlePreviewLinkClick),this._previewMutationObserver?.disconnect(),this._cachedCookFunction=null}static #u=(()=>dt7948.n(this.prototype,"_shutDown",[(0,c.on)("willDestroyElement")]))();toolbar(){let e=new b.default(this.getProperties("site","siteSettings","showLink","capabilities"));e.context=this,j.forEach(t=>t(e)),this.extraButtons&&this.extraButtons(e);let t=e.groups.mapBy("buttons").flat().firstObject;return t&&(t.tabindex=0),e}static #d=(()=>dt7948.n(this.prototype,"toolbar",[(0,k.default)()]))();async cachedCookAsync(e,t){return this._cachedCookFunction||=await (0,I.generateCookFunction)(t||{}),await this._cachedCookFunction(e)}async _updatePreview(){let e,t;if("inDOM"!==this._state||!this.processPreview||this.isDestroying||this.isDestroyed)return;let s=await this.cachedCookAsync(this.value,this.markdownOptions);if(this.preview!==s&&!this.isDestroying&&!this.isDestroyed){if(this.set("preview",s),this.siteSettings.enable_diffhtml_preview){let n=this.element.querySelector(".d-editor-preview"),r=n.cloneNode(!1);r.innerHTML=s,e=(0,P.linkSeenMentions)(r,this.siteSettings),t=(0,A.linkSeenHashtagsInContext)(this.site.hashtag_configurations["topic-composer"],r),(0,M.loadOneboxes)(r,_.ajax,this.topicId,this.categoryId,this.siteSettings.max_oneboxes_per_post,!1,!0),(0,p.resolveCachedShortUrls)(this.siteSettings,r),this.appEvents.trigger("decorate-non-stream-cooked-element",r),(await i.e(374).then(i.bind(i,57374))).morph(n,r,this.morphingOptions)}(0,o.schedule)("afterRender",()=>{if("inDOM"!==this._state||!this.element||this.isDestroying||this.isDestroyed)return;let i=this.element.querySelector(".d-editor-preview");i&&this.previewUpdated&&this.previewUpdated(i,e,t)})}}async _watchForChanges(){this.ready&&((0,S.isTesting)()?await this._updatePreview():(0,w.default)(this,this._updatePreview,30))}static #p=(()=>dt7948.n(this.prototype,"_watchForChanges",[(0,c.observes)("ready","value","processPreview")]))();_applyHashtagAutocomplete(){this.textManipulation.autocomplete((0,x.hashtagAutocompleteOptions)(this.site.hashtag_configurations["topic-composer"],this.siteSettings,{afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)}}))}_applyEmojiAutocomplete(){this.siteSettings.enable_emoji&&this.textManipulation.autocomplete({template:(0,F.findRawTemplate)("emoji-selector-autocomplete"),key:":",afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)},onKeyUp:(e,t)=>{let i=/(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(e.substring(0,t));if(i&&i[1])return[i[1]]},transformComplete:(e,t)=>{if(e.code)return this.emojiStore.trackEmojiForContext(e.code,"topic"),`${e.code}:`;{let i;this.textManipulation.autocomplete({cancel:!0});let s={identifier:"emoji-picker",component:g.default,modalForMobile:!0,data:{didSelectEmoji:e=>{this.textManipulation.emojiSelected(e)},term:e.term}};return t instanceof KeyboardEvent?i=(0,L.default)():i=this.textManipulation.textarea,this.menuInstance=this.menu.show(i,s),""}},dataSource:e=>new h.Promise(t=>{let i=`:${e}`;if((e=e.toLowerCase()).length!this.site.denied_emojis?.includes(e)).slice(0,5):["slight_smile","smile","wink","sunny","blush"])}let s=this.get("site.custom_emoji_translation")||{},n=Object.assign({},d.translations,s);if(n[i])return t([n[i]]);let r=this.get("site.denied_emojis")||[],o=e.match(/^:?(.*?):t([2-6])?$/);if(o){let e=o[1],i=o[2];if((0,u.isSkinTonableEmoji)(e)&&!r.includes(e))return t(i?[`${e}:t${i}`]:[2,3,4,5,6].map(t=>`${e}:t${t}`))}return t((0,u.emojiSearch)(e,{maxResults:5,diversity:this.emojiStore.diversity,exclude:r}))}).then(e=>e===y.SKIP?[]:e.map(e=>({code:e,src:(0,I.emojiUrlFor)(e)}))).then(t=>(t.length&&t.push({label:(0,R.i18n)("composer.more_emoji"),term:e}),t)),triggerRule:async()=>!await this.textManipulation.inCodeBlock()})}_applyMentionAutocomplete(){this.siteSettings.enable_mentions&&this.textManipulation.autocomplete({template:(0,F.findRawTemplate)("user-selector-autocomplete"),dataSource:e=>((0,O.destroyUserStatuses)(),(0,N.default)({term:e,topicId:this.topicId,categoryId:this.categoryId,includeGroups:!0}).then(e=>((0,O.initUserStatusHtml)((0,r.getOwner)(this),e.users),e))),onRender:e=>(0,O.renderUserStatusHtml)(e),key:"@",transformComplete:e=>e.username||e.name,afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)},triggerRule:async()=>!await this.textManipulation.inCodeBlock(),onClose:O.destroyUserStatuses})}rovingButtonBar(e){let t,i=e.target;if("ArrowRight"===e.code)t="nextElementSibling";else{if("ArrowLeft"!==e.code)return!0;t="previousElementSibling"}for(;i.parentNode&&!i.parentNode.classList.contains("d-editor-button-bar");)i=i.parentNode;let s=i[t];if(s){for(;"BUTTON"!==s.tagName&&!s.classList.contains("select-kit")||s.classList.contains("hidden");)s=s[t];s?.tagName==="DETAILS"&&(s=s.querySelector("summary")),s?.focus()}return!0}static #h=(()=>dt7948.n(this.prototype,"rovingButtonBar",[n.action]))();newToolbarEvent(e){let t=this.textManipulation.getSelected(e);return{selected:t,selectText:(e,t)=>this.textManipulation.selectText(e,t,{scroll:!1}),applySurround:(e,i,s,n)=>this.textManipulation.applySurround(t,e,i,s,n),applyList:(e,i,s)=>this.textManipulation.applyList(t,e,i,s),formatCode:()=>this.textManipulation.formatCode(),addText:e=>this.textManipulation.addText(t,e),getText:()=>this.value,toggleDirection:()=>this.textManipulation.toggleDirection(),replaceText:(e,t,i)=>this.textManipulation.replaceText(e,t,i)}}toolbarButton(e){if(this.disabled)return;let t=this.newToolbarEvent(e.trimLeading);if(e.sendAction)return e.sendAction(t);e.perform(t)}static #m=(()=>dt7948.n(this.prototype,"toolbarButton",[n.action]))();showLinkModal(e){if(this.disabled)return;let t="";this._lastSel=e.selected,this._lastSel&&(t=this._lastSel.value),this.modal.show(f.default,{model:{linkText:t,toolbarEvent:e}})}static #g=(()=>dt7948.n(this.prototype,"showLinkModal",[n.action]))();handleFocusIn(){this.set("isEditorFocused",!0)}static #A=(()=>dt7948.n(this.prototype,"handleFocusIn",[n.action]))();handleFocusOut(){this.set("isEditorFocused",!1)}static #E=(()=>dt7948.n(this.prototype,"handleFocusOut",[n.action]))();setupEditor(e){this.set("textManipulation",e);let t=this.setupEvents();this.element.addEventListener("paste",e.paste),this._applyEmojiAutocomplete(),this._applyHashtagAutocomplete(),this._applyMentionAutocomplete();let i=this.onSetup?.(e);return(0,o.scheduleOnce)("afterRender",this,this._readyNow),()=>{t?.(),this.element?.removeEventListener("paste",e.paste),e.autocomplete("destroy"),i?.()}}static #D=(()=>dt7948.n(this.prototype,"setupEditor",[n.action]))();setupEvents(){let e=this.textManipulation;if(this.composerEvents)return this.appEvents.on("composer:insert-block",e,"insertBlock"),this.appEvents.on("composer:insert-text",e,"insertText"),this.appEvents.on("composer:replace-text",e,"replaceText"),this.appEvents.on("composer:apply-surround",e,"applySurroundSelection"),this.appEvents.on("composer:indent-selected-text",e,"indentSelection"),()=>{this.appEvents.off("composer:insert-block",e,"insertBlock"),this.appEvents.off("composer:insert-text",e,"insertText"),this.appEvents.off("composer:replace-text",e,"replaceText"),this.appEvents.off("composer:apply-surround",e,"applySurroundSelection"),this.appEvents.off("composer:indent-selected-text",e,"indentSelection")}}_disablePreviewTabIndex(){let e=new MutationObserver(function(){document.querySelectorAll(".d-editor-preview a").forEach(e=>{e.setAttribute("tabindex","-1")})});return e.observe(document.querySelector(".d-editor-preview"),{childList:!0,subtree:!0,attributes:!1,characterData:!0}),e}},[(0,l.classNames)("d-editor")]),H=(0,s.setComponentTemplate)(U,V)},38108:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"/jbbeH0V",block:'[[[8,[39,0],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@translatedLabel"],[[30,1],[28,[37,1],["cancel"],null]]],null]],["@close"],false,["d-button","i18n"]]',moduleName:"discourse/components/d-modal-cancel.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"d-modal-cancel"))},1453:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CLOSE_INITIATED_BY_BUTTON:()=>A,CLOSE_INITIATED_BY_CLICK_OUTSIDE:()=>D,CLOSE_INITIATED_BY_ESC:()=>E,CLOSE_INITIATED_BY_MODAL_SHOW:()=>P,CLOSE_INITIATED_BY_SWIPE_DOWN:()=>M,default:()=>F});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(18387),l=i(99269),c=i(83133),u=i(68587),d=i(81329),p=i(47774),h=i(18638),m=i(35445),g=i(81133),f=i(45782),_=i(69488),y=i(17112),b=i(63748),w=i(38254),k=i(14259),T=i(79692),S=i(53653),C=i(85671);let x=(0,i(38168).A)(i(8554)).cached,A="initiatedByCloseButton",E="initiatedByESC",D="initiatedByClickOut",P="initiatedByModalShow",M="initiatedBySwipeDown";class F extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[c.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"capabilities",[c.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #c=(()=>dt7948.g(this.prototype,"wrapperElement",[n.tracked]))();#eA=(()=>void dt7948.i(this,"wrapperElement"))();static #u=(()=>dt7948.g(this.prototype,"animating",[n.tracked],function(){return!1}))();#eE=(()=>void dt7948.i(this,"animating"))();registerModalContainer=(()=>(0,u.modifier)(e=>{this.modalContainer=e}))();setupModalBody=(()=>(0,u.modifier)(e=>{if(this.site.mobileView)return(0,y.disableBodyScroll)(e),()=>{(0,y.enableBodyScroll)(e)}}))();async setupModal(e){document.documentElement.addEventListener("keydown",this.handleDocumentKeydown),this.appEvents.on("keyboard-visibility-change",this.handleKeyboardVisibilityChange),this.site.mobileView&&(this.animating=!0,await e.animate([{transform:"translateY(100%)"},{transform:"translateY(0)"}],{duration:(0,w.getMaxAnimationTimeMs)(),easing:"ease",fill:"forwards"}).finished,this.animating=!1),this.wrapperElement=e}static #d=(()=>dt7948.n(this.prototype,"setupModal",[o.action]))();cleanupModal(){document.documentElement.removeEventListener("keydown",this.handleDocumentKeydown),this.appEvents.off("keyboard-visibility-change",this.handleKeyboardVisibilityChange)}static #p=(()=>dt7948.n(this.prototype,"cleanupModal",[o.action]))();get dismissable(){return!!this.args.closeModal&&(!("dismissable"in this.args)||this.args.dismissable)}get autofocus(){return this.args.autofocus??!0}shouldTriggerClickOnEnter(e){return!(!1===this.args.submitOnEnter||e.target.closest("form")||document.activeElement?.nodeName==="TEXTAREA")}async handleSwipe(e){if(!this.animating&&e.deltaY>=0)return await this.#eD(e.deltaY)}static #h=(()=>dt7948.n(this.prototype,"handleSwipe",[o.action]))();async handleSwipeEnded(e){if(!this.animating){if(e.goingUp()||e.velocityY<.4)return await this.#eD(0);this.modalContainer.style.transform=`translateY(${e.deltaY}px)`,this.closeModal(M)}}static #m=(()=>dt7948.n(this.prototype,"handleSwipeEnded",[o.action]))();handleWrapperPointerDown(e){e.stopPropagation()}static #g=(()=>dt7948.n(this.prototype,"handleWrapperPointerDown",[o.action]))();handleWrapperClick(e){if(0===e.button&&this.dismissable)return this.closeModal(D)}static #A=(()=>dt7948.n(this.prototype,"handleWrapperClick",[o.action]))();async closeModal(e){this.args.closeModal&&(this.site.mobileView&&(this.animating=!0,this.#eP(window.innerHeight),await this.#eD(this.modalContainer.clientHeight),this.animating=!1),this.args.closeModal({initiatedBy:e}))}static #E=(()=>dt7948.n(this.prototype,"closeModal",[o.action]))();handleDocumentKeydown(e){!this.args.hidden&&("Escape"===e.key&&this.dismissable&&(e.stopPropagation(),this.closeModal(E)),"Enter"===e.key&&this.shouldTriggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".d-modal__footer .btn-primary")?.click(),e.preventDefault()))}static #D=(()=>dt7948.n(this.prototype,"handleDocumentKeydown",[o.action]))();handleCloseButton(){this.closeModal(A)}static #P=(()=>dt7948.n(this.prototype,"handleCloseButton",[o.action]))();get dynamicElement(){let e=this.args.tagName||"div";if(!["div","form"].includes(e))throw"@tagName must be form or div";return(0,f.default)(e)}static #Q=(()=>dt7948.n(this.prototype,"dynamicElement",[x]))();handleKeyboardVisibilityChange(e){e&&this.capabilities.isIOS&&!this.capabilities.isIpadOS&&window.scrollTo(0,0)}static #J=(()=>dt7948.n(this.prototype,"handleKeyboardVisibilityChange",[b.bind]))();#eP(e){let t=this.wrapperElement.nextElementSibling;if(!t)return;let i=1-e/this.modalContainer.clientHeight;t.animate([{opacity:Math.max(0,Math.min(i,.6))}],{fill:"forwards"})}async #eD(e){this.#eP(e),await this.modalContainer.animate([{transform:`translateY(${e}px)`}],{fill:"forwards",duration:(0,w.getMaxAnimationTimeMs)()}).finished}static #X=(()=>(0,S.setComponentTemplate)((0,C.createTemplateFactory)({id:"Xypvnm6P",block:'[[[1,"\\n"],[1,"\\n "],[8,[32,0],null,[["@element","@inline","@append"],[[30,0,["modal","containerElement"]],[30,1],true]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["modal-open"],null]],[1,"\\n "],[8,[30,0,["dynamicElement"]],[[16,0,[28,[32,2],["modal","d-modal",[52,[30,1],"-inline"],[52,[30,0,["animating"]],"is-animating"]],null]],[24,"data-keyboard","false"],[24,"aria-modal","true"],[24,"role","dialog"],[16,"aria-labelledby",[52,[30,2],"discourse-modal-title"]],[17,3],[4,[32,3],[[30,0,["setupModal"]]],null],[4,[32,4],[[30,0,["cleanupModal"]]],null],[4,[32,5],null,[["preventScroll","autofocus"],[false,[30,0,["autofocus"]]]]]],null,[["default"],[[[[1,"\\n "],[11,0],[24,0,"d-modal__container"],[4,[30,0,["registerModalContainer"]],null,null],[12],[1,"\\n "],[18,11,null],[1,"\\n\\n"],[41,[28,[32,6],[[28,[32,7],[[30,4]],null],[28,[32,8],[[30,0,["dismissable"]],[30,2],[48,[30,12]],[48,[30,13]]],null]],null],[[[1," "],[11,0],[16,0,[28,[32,2],["d-modal__header",[30,5]],null]],[4,[32,9],null,[["onDidSwipe","onDidEndSwipe","enabled"],[[30,0,["handleSwipe"]],[30,0,["handleSwipeEnded"]],[30,0,["dismissable"]]]]],[12],[1,"\\n "],[18,13,null],[1,"\\n\\n"],[41,[28,[32,6],[[30,0,["site","mobileView"]],[30,0,["dismissable"]],[48,[30,14]]],null],[[[1," "],[10,0],[14,0,"d-modal__dismiss-action"],[12],[1,"\\n "],[8,[32,10],[[24,0,"btn-transparent btn-primary d-modal__dismiss-action-button"]],[["@label","@action","@title"],["cancel",[30,0,["handleCloseButton"]],"modal.close"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"d-modal__title"],[12],[1,"\\n "],[10,"h1"],[14,1,"discourse-modal-title"],[14,0,"d-modal__title-text"],[12],[1,[30,2]],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[10,2],[14,0,"d-modal__subtitle-text"],[12],[1,[30,6]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,15,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[18,12,null],[1,"\\n\\n"],[41,[28,[32,6],[[30,0,["site","mobileView"]],[48,[30,14]]],null],[[[1," "],[10,0],[14,0,"d-modal__primary-action"],[12],[1,"\\n "],[18,14,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["dismissable"]],[[[1," "],[8,[32,10],[[24,0,"btn-transparent modal-close"]],[["@icon","@action","@title"],["xmark",[30,0,["handleCloseButton"]],"modal.close"]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,16,null],[1,"\\n\\n "],[8,[32,11],[[24,1,"modal-alert"],[24,"role","alert"]],[["@flash","@type"],[[30,7],[30,8]]],null],[1,"\\n\\n "],[11,0],[16,0,[28,[32,2],["d-modal__body",[30,9]],null]],[24,"tabindex","-1"],[4,[30,0,["setupModalBody"]],null,null],[12],[1,"\\n"],[41,[48,[30,17]],[[[1," "],[18,17,null],[1,"\\n"]],[]],[[[1," "],[18,18,null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,6],[[48,[30,19]],[28,[32,7],[[30,10]],null]],null],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[18,19,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,20,null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[51,[30,1]],[[[1," "],[11,0],[24,0,"d-modal__backdrop"],[4,[32,9],null,[["onDidSwipe","onDidEndSwipe","enabled"],[[30,0,["handleSwipe"]],[30,0,["handleSwipeEnded"]],[30,0,["dismissable"]]]]],[4,[32,12],["click",[30,0,["handleWrapperClick"]]],null],[4,[32,12],["pointerdown",[30,0,["handleWrapperPointerDown"]]],null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@inline","@title","&attrs","@hideHeader","@headerClass","@subtitle","@flash","@flashType","@bodyClass","@hideFooter","&aboveHeader","&headerBelowTitle","&headerAboveTitle","&headerPrimaryAction","&belowModalTitle","&belowHeader","&body","&default","&footer","&belowFooter"],false,["if","yield","has-block","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-modal.js",scope:()=>[p.default,_.default,g.default,a.default,l.default,T.default,d.and,d.not,d.or,k.default,h.default,m.default,r.on],isStrictMode:!0}),this))()}},20883:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(65573);let o=(0,i(85671).createTemplateFactory)({id:"f6I+VGPA",block:'[[[11,"li"],[16,"aria-current",[30,0,["ariaCurrent"]]],[16,"title",[30,1]],[16,0,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,0,["models"]],[[[1," "],[8,[39,2],null,[["@route","@models"],[[30,4],[30,0,["models"]]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,2],null,[["@route"],[[30,4]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[13]],["@title","@class","&attrs","@route","&default"],false,["li","if","link-to","yield"]]',moduleName:"discourse/components/d-navigation-item.hbs",isStrictMode:!1});var a=i(53653);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();get ariaCurrent(){return"parentNav"===this.args.ariaCurrentContext&&this.router.currentRouteName!==this.args.route&&this.router.currentRoute.parent.name.includes(this.args.route)?"page":this.router.currentRouteName!==this.args.route?null:"subNav"===this.args.ariaCurrentContext?"location":"page"}get models(){return(0,r.makeArray)(this.args.models||this.args.model)}}(0,a.setComponentTemplate)(o,l)},78130:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(8554),n=i(53653),r=i(35533),o=i(4959),a=i(83133),l=i(42256),c=i(53397),u=i(82805),d=i(63748),p=i(58302),h=i(23777),m=i(6404);let g=(0,i(85671).createTemplateFactory)({id:"VWq0qqk3",block:'[[[8,[39,0],null,[["@categories","@category","@noSubcategories","@tag","@additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag"]],[30,0,["additionalTags"]]]],null],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["after-breadcrumbs",[28,[37,2],null,[["categories","category","tag","additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["tag"]],[30,0,["additionalTags"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["additionalTags"]]],[[[1," "],[8,[39,4],null,[["@navItems","@filterMode","@category","@tag"],[[30,0,["navItems"]],[30,0,["filterMode"]],[30,0,["category"]],[30,0,["tag"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["notCategoriesRoute"]],[30,0,["site","mobileView"]],[30,1]],null],[[[1," "],[8,[39,8],null,[["@bulkSelectHelper"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,9],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,2,["selected"]],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n\\n"],[41,[30,0,["showCategoryAdmin"]],[[[41,[30,0,["fixedCategoryPositions"]],[[[1," "],[8,[39,10],null,[["@onChange","@options"],[[28,[37,11],[[30,0],"selectCategoryAdminDropdownAction"],null],[28,[37,2],null,[["triggerOnChangeOnTab"],[false]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,12],[[24,0,"btn-default"],[24,1,"create-category"]],[["@action","@icon","@label"],[[30,0,["createCategory"]],"plus",[52,[30,0,["site","mobileView"]],"categories.category","category.create"]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[28,[37,7],[[30,0,["category"]],[30,0,["showCategoryEdit"]]],null],[[[1," "],[8,[39,12],[[24,0,"btn-default edit-category"]],[["@action","@icon","@title"],[[30,0,["editCategory"]],"wrench","category.edit_title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[30,0,["showToggleInfo"]],[[[1," "],[8,[39,12],[[24,1,"show-tag-info"],[24,0,"btn-default"]],[["@icon","@ariaLabel","@action"],[[52,[30,0,["currentUser","staff"]],"wrench","circle-info"],"tagging.info",[30,0,["toggleInfo"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["before-create-topic-button",[28,[37,2],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","additionalTags","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["additionalTags"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n "],[8,[39,13],null,[["@canCreateTopic","@action","@disabled","@label","@btnClass","@canCreateTopicOnTag","@showDrafts"],[[30,0,["canCreateTopic"]],[28,[37,11],[[30,0],"clickCreateTopicButton"],null],[30,0,["createTopicButtonDisabled"]],[30,0,["createTopicLabel"]],[30,0,["createTopicClass"]],[30,0,["canCreateTopicOnTag"]],[52,[28,[37,14],[[30,0,["draftCount"]],0],null],true,false]]],null],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["after-create-topic-button",[28,[37,2],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category"]],[[[41,[51,[30,0,["tag"]]],[[[41,[30,0,["showCategoryNotifications"]],[[[41,[51,[30,0,["category","deleted"]]],[[[1," "],[8,[39,15],null,[["@levelId","@showFullTitle","@showCaret","@onChange"],[[30,0,["categoryNotificationLevel"]],false,false,[30,0,["changeCategoryNotificationLevel"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[51,[30,0,["category"]]],[[[41,[30,0,["showTagNotifications"]],[[[1," "],[8,[39,16],null,[["@onChange","@levelId"],[[30,0,["changeTagNotificationLevel"]],[30,0,["tagNotification","notification_level"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[13]],["@canBulkSelect","@bulkSelectHelper","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],false,["bread-crumbs","plugin-outlet","hash","unless","navigation-bar","div","if","and","bulk-select-toggle","topic-dismiss-buttons","categories-admin-dropdown","action","d-button","create-topic-button","gt","category-notifications-tracking","tag-notifications-tracking"]]',moduleName:"discourse/components/d-navigation.hbs",isStrictMode:!1}),f=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"filterMode",[s.tracked]))();#eM=(()=>void dt7948.i(this,"filterMode"))();static #l=(()=>dt7948.g(this.prototype,"fixedCategoryPositions",[(0,u.setting)("fixed_category_positions")]))();#eF=(()=>void dt7948.i(this,"fixedCategoryPositions"))();createTopicLabel="topic.create";get filterType(){return(0,p.filterTypeForMode)(this.filterMode)}static #c=(()=>dt7948.n(this.prototype,"filterType",[o.dependentKeyCompat]))();categories(){let e=this.site.categoriesList;return this.siteSettings.allow_uncategorized_topics||(e=e.filter(e=>e.id!==this.site.uncategorized_category_id)),this.currentUser?.indirectly_muted_category_ids&&(e=e.filter(e=>!this.currentUser.indirectly_muted_category_ids.includes(e.id))),e}static #u=(()=>dt7948.n(this.prototype,"categories",[(0,d.default)()]))();showCategoryNotifications(e){return e&&this.currentUser}static #d=(()=>dt7948.n(this.prototype,"showCategoryNotifications",[(0,d.default)("category")]))();categoryNotificationLevel(e){return this.currentUser?.indirectly_muted_category_ids?.includes(this.category.id)?h.NotificationLevels.MUTED:e}static #p=(()=>dt7948.n(this.prototype,"categoryNotificationLevel",[(0,d.default)("category.notification_level")]))();showTagNotifications(e,t){return e&&!t}static #h=(()=>dt7948.n(this.prototype,"showTagNotifications",[(0,d.default)("tagNotification","additionalTags")]))();categoryReadOnlyBanner(e,t){if(e&&this.currentUser&&t)return e.read_only_banner}static #m=(()=>dt7948.n(this.prototype,"categoryReadOnlyBanner",[(0,d.default)("category","createTopicDisabled")]))();createTopicButtonDisabled(e,t,i,s){return!!s&&!i||!t&&e}static #g=(()=>dt7948.n(this.prototype,"createTopicButtonDisabled",[(0,d.default)("createTopicDisabled","categoryReadOnlyBanner","canCreateTopicOnTag","tag.id")]))();createTopicClass(e){let t=["btn-default"];return e&&t.push("disabled"),t.join(" ")}static #A=(()=>dt7948.n(this.prototype,"createTopicClass",[(0,d.default)("categoryReadOnlyBanner")]))();showCategoryEdit(e){return e}static #E=(()=>dt7948.n(this.prototype,"showCategoryEdit",[(0,d.default)("category.can_edit")]))();showToggleInfo(e,t,i){return!e&&!t&&"none"!==i}static #D=(()=>dt7948.n(this.prototype,"showToggleInfo",[(0,d.default)("additionalTags","category","tag.id")]))();navItems(e,t,i,s,n,r){return m.default.buildList(t,{filterType:e,noSubcategories:i,currentRouteQueryParams:n,tagId:s,siteSettings:this.siteSettings,skipCategoriesNavItem:r})}static #P=(()=>dt7948.n(this.prototype,"navItems",[(0,d.default)("filterType","category","noSubcategories","tag.id","router.currentRoute.queryParams","skipCategoriesNavItem")]))();notCategoriesRoute(e){return"categories"!==e}static #Q=(()=>dt7948.n(this.prototype,"notCategoriesRoute",[(0,d.default)("filterType")]))();async changeTagNotificationLevel(e){let t=(await this.tagNotification.update({notification_level:e})).responseJson;this.tagNotification.set("notification_level",e),this.currentUser.setProperties({watched_tags:t.watched_tags,watching_first_post_tags:t.watching_first_post_tags,tracked_tags:t.tracked_tags,muted_tags:t.muted_tags,regular_tags:t.regular_tags})}static #J=(()=>dt7948.n(this.prototype,"changeTagNotificationLevel",[r.action]))();changeCategoryNotificationLevel(e){this.category.setNotification(e)}static #X=(()=>dt7948.n(this.prototype,"changeCategoryNotificationLevel",[r.action]))();selectCategoryAdminDropdownAction(e){switch(e){case"create":this.createCategory();break;case"reorder":this.reorderCategories()}}static #Z=(()=>dt7948.n(this.prototype,"selectCategoryAdminDropdownAction",[r.action]))();clickCreateTopicButton(){this.categoryReadOnlyBanner?this.dialog.alert({message:(0,l.htmlSafe)(this.categoryReadOnlyBanner)}):this.createTopic()}static #ee=(()=>dt7948.n(this.prototype,"clickCreateTopicButton",[r.action]))()},[(0,c.tagName)("")]),_=(0,n.setComponentTemplate)(g,f)},729:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DPageActionButton:()=>l,DPageActionListItem:()=>h,DangerActionListItem:()=>f,DangerButton:()=>d,DefaultActionListItem:()=>g,DefaultButton:()=>p,PrimaryButton:()=>u,WrappedActionListItem:()=>m,WrappedButton:()=>c});var s=i(75446),n=i(18638),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"m9INvKqm",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"d-page-action-button btn-small"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[n.default],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DPageActionButton")),c=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"1Vzs3Q5J",block:'[[[1,"\\n "],[10,1],[14,0,"d-page-action-wrapped-button"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:WrappedButton")),u=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"PlNK2NOo",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:PrimaryButton")),d=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"Uqpir9Xa",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-danger"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DangerButton")),p=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"5Yj/bn9D",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DefaultButton")),h=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"tuyCr8F6",block:'[[[1,"\\n "],[10,"li"],[14,0,"dropdown-menu__item d-page-action-list-item"],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-transparent"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DPageActionListItem")),m=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"sodHwkFk",block:'[[[1,"\\n "],[10,"li"],[14,0,"dropdown-menu__item d-page-action-list-item d-page-action-wrapped-list-item"],[12],[1,"\\n "],[18,1,[[28,[32,0],null,[["buttonClass"],["btn-transparent"]]]]],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[s.hash],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:WrappedActionListItem")),g=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"yPZEiglo",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[h],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DefaultActionListItem")),f=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"b1Qq+GKI",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-danger"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[h],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DangerActionListItem"))},73567:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989),n=i(8554),r=i(75446),o=i(83133),a=i(42256),l=i(81329),c=i(31096),u=i(729),d=i(82698),p=i(37740);i(63748);var h=i(843),m=i(12610),g=i(53653),f=i(85671);let _=["new","edit"];class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"shouldDisplay",[n.tracked],function(){return!0}))();#eI=(()=>void dt7948.i(this,"shouldDisplay"))();constructor(){super(...arguments),this.router.on("routeDidChange",this,this.#eN),this.#eN()}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this,this.#eN)}#eN(){if(void 0!==this.args.shouldDisplay)return this.shouldDisplay=this.args.shouldDisplay;let e=this.router._router.currentPath;if(!e)return this.shouldDisplay=!0;let t=e.split(".");this.shouldDisplay=!t.includes("admin")||!_.find(e=>t.includes(e))}static #l=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"GQCIJlA3",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"d-page-header"],[12],[1,"\\n "],[10,0],[14,0,"d-page-header__breadcrumbs"],[12],[1,"\\n "],[8,[32,0],null,null,null],[1,"\\n "],[18,8,null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"d-page-header__title-row"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,"h1"],[14,0,"d-page-header__title"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[48,[30,9]],[30,2]],null],[[[1," "],[10,0],[14,0,"d-page-header__actions"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,2],[[24,0,"btn-small"]],[["@identifier","@title","@icon"],["d-page-header-mobile-actions",[28,[32,3],["more_options"],null],"ellipsis-vertical"]],[["content"],[[[[1,"\\n "],[8,[32,4],[[24,0,"d-page-header__mobile-actions"]],null,[["default"],[[[[1,"\\n"],[44,[[28,[32,5],null,[["Primary","Default","Danger","Wrapped"],[[32,6],[32,6],[32,7],[32,8]]]]],[[[41,[48,[30,9]],[[[1," "],[18,9,[[30,3]]],[1,"\\n"]],[]],[[[1," "],[8,[30,2],null,[["@actions"],[[30,3]]],null],[1,"\\n"]],[]]]],[3]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[44,[[28,[32,5],null,[["Primary","Default","Danger","Wrapped"],[[32,9],[32,10],[32,11],[32,12]]]]],[[[41,[48,[30,9]],[[[1," "],[18,9,[[30,4]]],[1,"\\n"]],[]],[[[1," "],[8,[30,2],null,[["@actions"],[[30,4]]],null],[1,"\\n"]],[]]]],[4]]]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,5],[[[1," "],[10,2],[14,0,"d-page-header__description"],[12],[1,"\\n "],[1,[28,[32,13],[[30,5]],null]],[1,"\\n"],[41,[30,6],[[[1," "],[10,1],[14,0,"d-page-header__learn-more"],[12],[1,[28,[32,13],[[28,[32,3],["learn_more_with_link"],[["url"],[[30,6]]]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,7]],[[[1," "],[10,0],[14,0,"d-nav-submenu"],[12],[1,"\\n "],[8,[32,14],[[24,0,"d-nav-submenu__tabs"]],null,[["default"],[[[[1,"\\n "],[18,10,null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@titleLabel","@headerActionComponent","actions","actions","@descriptionLabel","@learnMoreUrl","@hideTabs","&breadcrumbs","&actions","&tabs"],false,["if","yield","has-block","let","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-header.js",scope:()=>[c.default,l.or,m.default,h.i18n,d.default,r.hash,u.DefaultActionListItem,u.DangerActionListItem,u.WrappedActionListItem,u.PrimaryButton,u.DefaultButton,u.DangerButton,u.WrappedButton,a.htmlSafe,p.default],isStrictMode:!0}),this))()}},37743:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(75446),r=i(83133),o=i(42256),a=i(729),l=i(82698),c=i(843),u=i(12610),d=i(53653),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"aMFLMkjc",block:'[[[1,"\\n "],[10,0],[14,0,"d-page-subheader"],[12],[1,"\\n "],[10,0],[14,0,"d-page-subheader__title-row"],[12],[1,"\\n "],[10,"h2"],[14,0,"d-page-subheader__title"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,3],[15,6,[30,1]],[14,0,"d-page-subheader__title-link"],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[48,[30,5]],[[[1," "],[10,0],[14,0,"d-page-subheader__actions"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,0],[[24,0,"btn-small"]],[["@identifier","@title","@icon"],["d-page-subheader-mobile-actions",[28,[32,1],["more_options"],null],"ellipsis-vertical"]],[["content"],[[[[1,"\\n "],[8,[32,2],[[24,0,"d-page-subheader__mobile-actions"]],null,[["default"],[[[[1,"\\n "],[18,5,[[28,[32,3],null,[["Primary","Default","Danger","Wrapped"],[[32,4],[32,4],[32,5],[32,6]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[18,5,[[28,[32,3],null,[["Primary","Default","Danger","Wrapped"],[[32,7],[32,8],[32,9],[32,10]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,3],[[[1," "],[10,2],[14,0,"d-page-subheader__description"],[12],[1,"\\n "],[1,[28,[32,11],[[30,3]],null]],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"d-page-subheader__learn-more"],[12],[1,"\\n "],[1,[28,[32,11],[[28,[32,1],["learn_more_with_link"],[["url"],[[30,4]]]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@titleUrl","@titleLabel","@descriptionLabel","@learnMoreUrl","&actions"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-subheader.js",scope:()=>[u.default,c.i18n,l.default,n.hash,a.DefaultActionListItem,a.DangerActionListItem,a.WrappedActionListItem,a.PrimaryButton,a.DefaultButton,a.DangerButton,a.WrappedButton,o.htmlSafe],isStrictMode:!0}),this))()}},84631:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(75446),r=i(81329),o=i(49941),a=i(16547),l=i(53653),c=i(85671);class u extends s.default{constructor(){super(...arguments),(0,a.default)(' is deprecated. Use {{body-class "foo-page" "bar"}} and/or
instead.',{since:"3.2.0.beta1",dropFrom:"3.3.0.beta1",id:"discourse.d-section"})}static #e=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"DzxK1IWm",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],[[28,[32,1],[[30,1],"-page"],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,3],""],null],[[[1," "],[11,"section"],[16,1,[30,4]],[16,0,[30,5]],[17,6],[12],[18,7,null],[13],[1,"\\n"]],[]],[[[1," "],[18,7,null],[1,"\\n"]],[]]],[1," "]],["@pageClass","@bodyClass","@tagName","@id","@class","&attrs","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-section.js",scope:()=>[o.default,n.concat,r.notEq],isStrictMode:!0}),this))()}},64994:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DSelectOption:()=>h,NO_VALUE_OPTION:()=>p,default:()=>m});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(75983),l=i(81329),c=i(843),u=i(53653),d=i(85671);let p="__NONE__";class h extends s.default{get value(){return(0,a.isNone)(this.args.value)?p:this.args.value}static #e=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"Gd19FDlZ",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[30,2]],null],[[[1," "],[11,"option"],[24,0,"d-select__option --selected"],[16,2,[30,0,["value"]]],[24,"selected",""],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"option"],[24,0,"d-select__option"],[16,2,[30,0,["value"]]],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@selected","@value","&attrs","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-select.js",scope:()=>[l.eq],isStrictMode:!0}),this))()}class m extends s.default{handleInput(e){this.args.onChange(e.target.value===p?void 0:e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[o.action]))();get hasSelectedValue(){return this.args.value&&this.args.value!==p}get includeNone(){return this.args.includeNone??!0}static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"wT05FrDo",block:'[[[1,"\\n "],[11,"select"],[16,2,[30,1]],[17,2],[24,0,"d-select"],[4,[32,0],["input",[30,0,["handleInput"]]],null],[12],[1,"\\n"],[41,[30,0,["includeNone"]],[[[1," "],[8,[32,1],null,[["@value"],[[32,2]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasSelectedValue"]],[[[1," "],[1,[28,[32,3],["none_placeholder"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["select_placeholder"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[18,3,[[28,[32,4],null,[["Option"],[[50,[32,1],0,null,[["selected"],[[30,1]]]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["@value","&attrs","&default"],false,["if","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-select.js",scope:()=>[r.on,h,p,c.i18n,n.hash],isStrictMode:!0}),this))()}},16484:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75446),n=i(17206),r=i(31886),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"6YxNJ5kl",block:'[[[1,"\\n "],[10,0],[14,0,"d-stat-tile"],[14,"role","group"],[12],[1,"\\n "],[10,0],[14,0,"d-stat-tile__top"],[12],[1,"\\n "],[10,1],[14,0,"d-stat-tile__label"],[12],[1,[30,1]],[13],[1,"\\n"],[41,[30,2],[[[1," "],[8,[32,0],[[24,0,"d-stat-tile__tooltip"]],[["@icon","@content"],["circle-question",[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,3],[[[1," "],[10,3],[15,6,[30,3]],[14,0,"d-stat-tile__value"],[15,"title",[30,4]],[12],[1,"\\n "],[1,[28,[32,1],[[30,4]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"d-stat-tile__value"],[15,"title",[30,4]],[12],[1,[28,[32,1],[[30,4]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],["@label","@tooltip","@url","@value"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-stat-tiles.js",scope:()=>[r.default,n.number],isStrictMode:!0}),(0,l.default)(void 0,"d-stat-tiles:DStatTile")),u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"s+uRsT/M",block:'[[[1,"\\n "],[11,0],[24,0,"d-stat-tiles"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["Tile"],[[32,1]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-stat-tiles.js",scope:()=>[s.hash,c],isStrictMode:!0}),(0,l.default)(void 0,"d-stat-tiles:DStatTiles"))},99040:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(94636),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[n.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();get categoryColors(){return[":root {",...this.site.categories.map(e=>`--category-${e.id}-color: #${e.color};`),"}"].join("\n")}get categoryBackgrounds(){let e=[],t=[];return this.site.categories.forEach(i=>{let s=i.uploaded_background?.url,n=this.session.defaultColorSchemeIsDark||this.session.darkModeAvailable?i.uploaded_background_dark?.url:null,o=n&&this.session.defaultColorSchemeIsDark?n:s;if(o){let t=(0,r.getURLWithCDN)(o);e.push(`body.category-${i.fullSlug} { background-image: url(${t}); }`)}if(n&&o!==n){let e=(0,r.getURLWithCDN)(n);t.push(`body.category-${i.fullSlug} { background-image: url(${e}); }`)}}),t.length>0&&e.push("@media (prefers-color-scheme: dark) {",...t,"}"),e.join("\n")}get categoryBadges(){let e=[];return this.site.categories.forEach(t=>{e.push(`.badge-category[data-category-id="${t.id}"] { --category-badge-color: var(--category-${t.id}-color); --category-badge-text-color: #${t.text_color}; }`),t.isParent&&e.push(`.badge-category[data-parent-category-id="${t.id}"] { --parent-category-badge-color: var(--category-${t.id}-color); }`)}),e.join("\n")}static #s=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ubSv2iSd",block:'[[[1,"\\n"],[1," "],[10,"style"],[14,1,"d-styles"],[12],[1,"\\n"],[41,[30,0,["site","categories"]],[[[1," "],[1,[30,0,["categoryColors"]]],[1,"\\n "],[1,[30,0,["categoryBackgrounds"]]],[1,"\\n "],[1,[30,0,["categoryBadges"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-styles.js",isStrictMode:!0}),this))()}},74052:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(69302),n=i(53397);let r=dt7948.c(class extends s.TextArea{},[(0,n.attributeBindings)("aria-label")])},65903:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(72738),r=i(843),o=i(53653),a=i(85671);class l extends s.default{get computedLabel(){return this.args.label?(0,r.i18n)(this.args.label):this.args.translatedLabel}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Ch8X/gs6",block:'[[[1,"\\n "],[10,0],[14,0,"d-toggle-switch"],[12],[1,"\\n "],[10,"label"],[14,0,"d-toggle-switch__label"],[12],[1,"\\n "],[11,"button"],[24,0,"d-toggle-switch__checkbox"],[24,4,"button"],[24,"role","switch"],[16,"aria-checked",[52,[30,1],"true","false"]],[17,2],[12],[13],[1,"\\n\\n "],[10,1],[14,0,"d-toggle-switch__checkbox-slider"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],["check"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["computedLabel"]],[[[1," "],[10,1],[14,0,"d-toggle-switch__checkbox-label"],[12],[1,"\\n "],[1,[30,0,["computedLabel"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@state","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-toggle-switch.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},77207:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(62053),r=i(83133),o=i(46301),a=i(63748),l=i(98668);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();MIN_THRESHOLD=120;constructor(){if(super(...arguments),!window.visualViewport||!this.capabilities.isIpadOS&&this.site.desktopView)return;this.windowInnerHeight=window.innerHeight,(0,n.scheduleOnce)("afterRender",this,this.debouncedOnViewportResize),window.visualViewport.addEventListener("resize",this.debouncedOnViewportResize)}willDestroy(){super.willDestroy(...arguments),(0,n.cancel)(this.debouncedHandler),window.visualViewport.removeEventListener("resize",this.debouncedOnViewportResize)}setVH(){if((0,l.default)())return;let e=Math.round(window.visualViewport.height);if(this.previousHeight&&1>=Math.abs(this.previousHeight-e))return!1;this.previousHeight=e,document.documentElement.style.setProperty("--composer-vh",`${e/100}px`)}debouncedOnViewportResize(){this.debouncedHandler=(0,o.default)(this,this.onViewportResize,50)}static #l=(()=>dt7948.n(this.prototype,"debouncedOnViewportResize",[a.bind]))();onViewportResize(){if(!1===this.setVH())return;let e=document.documentElement,t=!1;this.windowInnerHeight-window.visualViewport.height>this.MIN_THRESHOLD&&(t=!0),this.appEvents.trigger("keyboard-visibility-change",t),t?e.classList.add("keyboard-visible"):e.classList.remove("keyboard-visible")}static #c=(()=>dt7948.n(this.prototype,"onViewportResize",[a.bind]))()}},45063:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(62053),o=i(53397),a=i(42064),l=i(24571),c=i(63748),u=i(53404),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"6mnpW9Ug",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[16,1,[30,0,["inputId"]]],[4,[38,2],["input",[28,[37,3],[[30,0],"onChangeDate"],null]],null]],[["@type","@value"],[[30,0,["inputType"]],[28,[37,1],[[30,0,["value"]]],null]]],null],[1,"\\n\\n"],[41,[51,[30,0,["useGlobalPickerContainer"]]],[[[1," "],[10,0],[14,0,"picker-container"],[12],[13],[1,"\\n"]],[]],null]],[],false,["input","readonly","on","action","unless","div"]]',moduleName:"discourse/components/date-input.hbs",isStrictMode:!1}),h=dt7948.c(class extends s.default{date=null;useNativePicker=(()=>(function(){let e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value})())();_picker=null;inputType(){return this.useNativePicker?"date":"text"}static #e=(()=>dt7948.n(this.prototype,"inputType",[(0,c.default)("site.mobileView")]))();click(e){e.stopPropagation()}didInsertElement(){super.didInsertElement(...arguments),(0,r.schedule)("afterRender",()=>{if(!this.element||this.isDestroying||this.isDestroying)return;let e=document.getElementById(this.containerId);(this.useNativePicker?this._loadNativePicker(e):this._loadPikadayPicker(e)).then(e=>{if(this._picker=e,this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}})})}didUpdateAttrs(){if(super.didUpdateAttrs(...arguments),this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}if(this._picker&&this.relativeDate){let e=this.relativeDate instanceof moment?this.relativeDate:moment(this.relativeDate);this._picker.setMinDate(e,!0)}this._picker&&!this.date&&this._picker.setDate(null)}_loadPikadayPicker(e){return(0,u.default)("/javascripts/pikaday.js").then(()=>{let t={field:this.element.querySelector(".date-picker"),container:e||this.element.querySelector(".picker-container"),bound:null===e,format:"LL",firstDay:1,i18n:{previousMonth:(0,d.i18n)("dates.previous_month"),nextMonth:(0,d.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()},onSelect:e=>this._handleSelection(e)};return this.relativeDate&&(t.minDate=moment(this.relativeDate).toDate()),new Pikaday({...t,...this._opts()})})}_loadNativePicker(e){let t=(e||this.element).querySelector("input.date-picker");return t.onchange=()=>this._handleSelection(t.value),t.hide=()=>{},t.destroy=()=>{},t.setDate=e=>{t.value=e?moment(e).format("YYYY-MM-DD"):null},t.setMinDate=e=>{t.min=e},this.date&&t.setDate(this.date),l.Promise.resolve(t)}_handleSelection(e){this.element&&!this.isDestroying&&!this.isDestroyed&&this.onChange&&this.onChange(e?moment(e):null)}_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)}static #i=(()=>dt7948.n(this.prototype,"_destroy",[(0,a.on)("willDestroyElement")]))();get placeholder(){return this._placeholder||(0,d.i18n)("dates.placeholder")}static #s=(()=>dt7948.n(this.prototype,"placeholder",[(0,n.computed)("_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}_opts(){return null}onChangeDate(e){this._handleSelection(e.target.value)}static #l=(()=>dt7948.n(this.prototype,"onChangeDate",[n.action]))()},[(0,o.classNames)("d-date-input")]),m=(0,s.setComponentTemplate)(p,h)},26206:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(44481);class n extends s.default{_opts(){return{defaultDate:this.defaultDate||moment().add(1,"day").toDate(),setDefaultDate:!!this.defaultDate,minDate:this.minDate||moment().toDate()}}}},88153:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(44481);class n extends s.default{_opts(){return{defaultDate:moment(this.defaultDate,"YYYY-MM-DD").toDate()||new Date,setDefaultDate:!!this.defaultDate,maxDate:new Date}}}},44481:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(62053),o=i(53397),a=i(42064),l=i(63748),c=i(53404),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"kT0NJodg",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"]],[["@type","@value"],[[30,0,["inputType"]],[30,0,["value"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/date-picker.hbs",isStrictMode:!1}),p="YYYY-MM-DD",h=dt7948.c(class extends s.default{value=null;_picker=null;inputType(e){return e?"date":"text"}static #e=(()=>dt7948.n(this.prototype,"inputType",[(0,l.default)("site.mobileView")]))();_loadDatePicker(){if(this.site.mobileView)this._loadNativePicker();else{let e=document.getElementById(this.containerId);this._loadPikadayPicker(e)}}static #i=(()=>dt7948.n(this.prototype,"_loadDatePicker",[(0,a.on)("didInsertElement")]))();_loadPikadayPicker(e){(0,c.default)("/javascripts/pikaday.js").then(()=>{(0,r.schedule)("afterRender",()=>{let t={field:this.element.querySelector(".date-picker"),container:e||null,bound:null===e,format:p,firstDay:1,i18n:{previousMonth:(0,u.i18n)("dates.previous_month"),nextMonth:(0,u.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>this._handleSelection(e)};this._picker=new Pikaday(Object.assign(t,this._opts()))})})}_loadNativePicker(){let e=this.element.querySelector("input.date-picker");e.onchange=()=>this._handleSelection(e.value),e.hide=()=>{},e.destroy=()=>{},this._picker=e}_handleSelection(e){let t=moment(e).format(p);this.element&&!this.isDestroying&&!this.isDestroyed&&this.onSelect&&this.onSelect(t)}_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)}static #s=(()=>dt7948.n(this.prototype,"_destroy",[(0,a.on)("willDestroyElement")]))();get placeholder(){return this._placeholder||(0,u.i18n)("dates.placeholder")}static #l=(()=>dt7948.n(this.prototype,"placeholder",[(0,n.computed)("_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}_opts(){return null}},[(0,o.classNames)("date-picker-wrapper")]),m=(0,s.setComponentTemplate)(d,h)},35643:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"wBVuhpzf",block:'[[[8,[39,0],[[24,0,"from"]],[["@date","@onChange","@showTime","@placeholder","@timezone"],[[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["from"]]]],null],[30,0,["showFromTime"]],[28,[37,3],["dates.from_placeholder"],null],[30,1]]],null],[1,"\\n\\n"],[8,[39,0],[[24,0,"to"]],[["@date","@relativeDate","@onChange","@timeFirst","@showTime","@clearable","@placeholder","@timezone"],[[30,0,["to"]],[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["to"]]]],null],[30,0,["toTimeFirst"]],[30,0,["showToTime"]],[30,0,["clearable"]],[28,[37,3],["dates.to_placeholder"],null],[30,1]]],null]],["@timezone"],false,["date-time-input","action","hash","i18n"]]',moduleName:"discourse/components/date-time-input-range.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{from=null;to=null;onChangeTo=null;onChangeFrom=null;toTimeFirst=!1;showToTime=!0;showFromTime=!0;clearable=!1;onChangeRanges(e,t){if(this.onChange){let i={from:this.from,to:this.to},s={};"from"===e.prop&&(this.to&&t?.isAfter(this.to)?(s[e.prop]=t,s.to=t.clone().add(1,"hour")):s[e.prop]=t),"to"===e.prop&&(t&&t.isBefore(this.from)?s[e.prop]=this.from.clone().add(1,"hour"):s[e.prop]=t);let n={...i,...s};this.onChange(n)}}static #e=(()=>dt7948.n(this.prototype,"onChangeRanges",[n.action]))()},[(0,r.classNames)("d-date-time-input-range")]),l=(0,s.setComponentTemplate)(o,a)},19425:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"JEY1fEoP",block:'[[[41,[51,[30,0,["timeFirst"]]],[[[1," "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTime"]],[[[1," "],[8,[39,4],null,[["@date","@relativeDate","@onChange"],[[30,0,["date"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeTime"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["timeFirst"]],[[[1," "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["clearable"]],[[[1," "],[8,[39,5],[[24,0,"btn-default clear-date-time"]],[["@icon","@action"],["xmark",[30,0,["onClear"]]]],null],[1,"\\n"]],[]],null]],[],false,["unless","date-input","action","if","time-input","d-button"]]',moduleName:"discourse/components/date-time-input.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{date=null;relativeDate=null;showTime=!0;clearable=!1;get hours(){return this.date&&this.get("showTime")?this.date.hours():null}static #e=(()=>dt7948.n(this.prototype,"hours",[(0,n.computed)("date","showTime")]))();get minutes(){return this.date&&this.get("showTime")?this.date.minutes():null}static #i=(()=>dt7948.n(this.prototype,"minutes",[(0,n.computed)("date","showTime")]))();onClear(){this.onChange(null)}static #s=(()=>dt7948.n(this.prototype,"onClear",[n.action]))();onChangeTime(e){if(this.onChange){let t=this.date?this.date:this.relativeDate?this.relativeDate:moment.tz(this.resolvedTimezone);this.onChange(moment.tz({year:t.year(),month:t.month(),day:t.date(),hours:e.hours,minutes:e.minutes},this.resolvedTimezone))}}static #l=(()=>dt7948.n(this.prototype,"onChangeTime",[n.action]))();onChangeDate(e){if(!e){this.onClear();return}this.onChange?.(moment.tz({year:e.year(),month:e.month(),day:e.date(),hours:this.hours||0,minutes:this.minutes||0},this.resolvedTimezone))}static #c=(()=>dt7948.n(this.prototype,"onChangeDate",[n.action]))();get resolvedTimezone(){return this.timezone||moment.tz.guess()}static #u=(()=>dt7948.n(this.prototype,"resolvedTimezone",[(0,n.computed)("timezone")]))()},[(0,r.classNames)("d-date-time-input")]),l=(0,s.setComponentTemplate)(o,a)},63671:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(8554),r=i(14335),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"shouldRender",[n.tracked],function(){return!1}))();#eL=(()=>void dt7948.i(this,"shouldRender"))();constructor(){super(...arguments),(0,r.default)(()=>this.shouldRender=!0)}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Ze/rFA8f",block:'[[[1,"\\n"],[41,[30,0,["shouldRender"]],[[[1," "],[18,1,null],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/deferred-render.js",isStrictMode:!0}),this))()}},41452:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(83133),r=i(18638),o=i(843),a=i(53653),l=i(85671);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"desktopNotifications",[n.service]))();#eR=(()=>void dt7948.i(this,"desktopNotifications"))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"T2UfeX3k",block:'[[[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["desktopNotifications","isNotSupported"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.not_supported","true"]],null],[1,"\\n"]],[]],null],[41,[30,0,["desktopNotifications","isDeniedPermission"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.perm_denied_btn","true"]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["user.desktop_notifications.perm_denied_expl"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["desktopNotifications","isSubscribed"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell-slash","user.desktop_notifications.disable",[30,0,["desktopNotifications","disable"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell","user.desktop_notifications.enable",[30,0,["desktopNotifications","enable"]]]],null],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/desktop-notification-config.js",scope:()=>[r.default,o.i18n],isStrictMode:!0}),this))()}},80500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(53653),o=i(35533),a=i(83133),l=i(18638),c=i(1779),u=i(6864),d=i(88355),p=i(98988),h=i(843),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#eU=(()=>void dt7948.i(this,"errorMessage"))();static #c=(()=>dt7948.g(this.prototype,"resetEmailSent",[n.tracked],function(){return null}))();#ej=(()=>void dt7948.i(this,"resetEmailSent"))();passwordLabel=(()=>(0,h.i18n)("user.password.title"))();instructions=(()=>(0,h.i18n)("user.confirm_access.instructions"))();loggedInAs=(()=>(0,h.i18n)("user.confirm_access.logged_in_as"))();finePrint=(()=>(0,h.i18n)("user.confirm_access.fine_print"))();get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&this.currentUser.user_passkeys?.length>0&&(0,p.isWebauthnSupported)()}async confirmWithPasskey(){try{let e=await (0,p.getPasskeyCredential)(e=>this.dialog.alert(e));if(!e)return;(await (0,u.ajax)("/u/confirm-session.json",{type:"POST",data:{publicKeyCredential:e}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=(0,h.i18n)("user.confirm_access.incorrect_passkey")}catch(e){(0,d.popupAjaxError)(e)}}static #u=(()=>dt7948.n(this.prototype,"confirmWithPasskey",[o.action]))();async submit(){this.errorMessage=this.password?null:(0,h.i18n)("user.confirm_access.incorrect_password"),(await (0,u.ajax)("/u/confirm-session.json",{type:"POST",data:{password:this.password}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=(0,h.i18n)("user.confirm_access.incorrect_password")}static #d=(()=>dt7948.n(this.prototype,"submit",[o.action]))();async sendPasswordResetEmail(){try{(await (0,u.ajax)("/session/forgot_password.json",{data:{login:this.currentUser.username},type:"POST"})).success?(this.errorMessage=null,this.resetEmailSent=(0,h.i18n)("user.confirm_access.password_reset_email_sent")):this.errorMessage=(0,h.i18n)("user.confirm_access.cannot_send_password_reset_email")}catch(e){this.errorMessage=(0,d.extractError)(e,(0,h.i18n)("user.confirm_access.cannot_send_password_reset_email"))}}static #p=(()=>dt7948.n(this.prototype,"sendPasswordResetEmail",[o.action]))();static #h=(()=>(0,r.setComponentTemplate)((0,m.createTemplateFactory)({id:"TRSpITyD",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group confirm-session"],[12],[1,"\\n "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n "],[1,[30,0,["instructions"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n "],[10,1],[12],[1,[30,0,["loggedInAs"]]],[13],[1,"\\n "],[8,[32,0],null,[["@user"],[[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[30,0,["currentUser","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["passwordLabel"]]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"inline-form"],[12],[1,"\\n "],[8,[32,1],[[24,1,"password"],[24,0,"input-large"],[24,"autofocus","autofocus"]],[["@value","@type"],[[30,0,["password"]],"password"]],null],[1,"\\n "],[8,[32,2],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["submit"]],"user.password.confirm"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"confirm-session__reset"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-link btn-flat confirm-session__reset-btn"]],[["@label","@action"],["user.confirm_access.forgot_password",[30,0,["sendPasswordResetEmail"]]]],null],[1,"\\n"],[41,[30,0,["resetEmailSent"]],[[[1," "],[10,1],[14,0,"confirm-session__reset-email-sent"],[12],[1,"\\n "],[1,[30,0,["resetEmailSent"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["canUsePasskeys"]],[[[1," "],[10,0],[14,0,"confirm-session__passkey"],[12],[1,"\\n "],[8,[32,2],null,[["@action","@label","@icon"],[[30,0,["confirmWithPasskey"]],"user.passkeys.confirm_button","user"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"confirm-session__fine-print"],[12],[1,"\\n "],[1,[30,0,["finePrint"]]],[1,"\\n "],[13],[1,"\\n\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dialog-messages/confirm-session.js",scope:()=>[c.default,r.Input,l.default],isStrictMode:!0}),this))()}},93755:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"gu9uDxQy",block:'[[[41,[30,1,["members","length"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["users"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_details"],[["count"],[[30,1,["members","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message_count"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["envelope"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_with_messages_confirm"],[["count"],[[30,1,["message_count"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_warning"],null]],[1,"\\n"],[13]],["@model"],false,["if","p","d-icon","i18n"]]',moduleName:"discourse/components/dialog-messages/group-delete.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"group-delete"))},69763:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"mWt/b6Ta",block:'[[[1,[28,[35,0],["user.second_factor.delete_confirm_header"],null]],[1,"\\n\\n"],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["totps"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,2,["name"]]],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["security_keys"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["currentUser","second_factor_backup_enabled"]],[[[1," "],[10,"li"],[12],[1,[28,[35,0],["user.second_factor_backup.title"],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,0],["user.second_factor.delete_confirm_instruction"],[["confirm"],[[30,0,["disabledString"]]]]]],null]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,8],[[4,[38,9],["input",[30,0,["onConfirmPhraseInput"]]],null]],[["@value","@id","@autocorrect","@autocapitalize"],[[30,0,["confirmPhraseInput"]],"confirm-phrase","off","off"]],null]],["@model","totp","sk"],false,["i18n","ul","each","-track-array","li","if","p","html-safe","text-field","on"]]',moduleName:"discourse/components/dialog-messages/second-factor-confirm-phrase.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"confirmPhraseInput",[n.tracked],function(){return""}))();#eB=(()=>void dt7948.i(this,"confirmPhraseInput"))();disabledString=(()=>(0,a.i18n)("user.second_factor.disable"))();onConfirmPhraseInput(){this.confirmPhraseInput===this.disabledString?this.dialog.set("confirmButtonDisabled",!1):this.dialog.set("confirmButtonDisabled",!0)}static #l=(()=>dt7948.n(this.prototype,"onConfirmPhraseInput",[r.action]))()}(0,c.setComponentTemplate)(l,u)},70691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(43696),l=i(83133),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();get fieldData(){let{item:e,column:t}=this.args;return e?.user?.user_fields?.[t.user_field_id]}get values(){let e=this.fieldData;return e&&e.value?e.value.toString().split(",").map(e=>e.replace(/-/g," ")).map(e=>e.trim()):null}get isSearchable(){return this.fieldData?.searchable}refreshRoute(e){this.router.transitionTo({queryParams:{name:e}})}static #i=(()=>dt7948.n(this.prototype,"refreshRoute",[o.action]))();static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"m4/JK1bj",block:'[[[1,"\\n "],[10,1],[14,0,"directory-table__value--user-field"],[12],[1,"\\n"],[41,[30,0,["values"]],[[[41,[30,0,["isSearchable"]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["values"]]],null]],null],null,[[[1," "],[8,[32,0],[[24,0,"directory-value-list-item"],[4,[32,2],["click",[28,[32,3],[[30,0,["refreshRoute"]],[30,1]],null]],null]],[["@route","@query"],["users",[28,[32,1],null,[["name"],[[30,1]]]]]],[["default"],[[[[1,[30,1]]],[]]]]],[1,"\\n"]],[1]],null]],[]],[[[1," "],[1,[30,0,["values"]]],[1,"\\n"]],[]]]],[]],[[[1," -\\n"]],[]]],[1," "],[13],[1,"\\n "]],["value"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/directory-item-user-field-value.js",scope:()=>[a.LinkTo,n.hash,r.on,n.fn],isStrictMode:!0}),this))()}},71324:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(82805);let o=(0,i(85671).createTemplateFactory)({id:"JgarBy/e",block:'[[[10,0],[14,0,"directory-table__cell"],[14,"role","rowheader"],[12],[1,"\\n "],[8,[39,1],null,[["@user"],[[30,0,["item","user"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["columns"]]],null]],null],null,[[[41,[28,[37,5],null,[["column"],[[30,1]]]],[[[1," "],[10,0],[14,0,"directory-table__cell--user-field"],[14,"role","cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,7],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"directory-table__cell"],[14,"role","cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1," "],[1,[28,[35,8],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,9],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,10],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1," "],[10,0],[14,0,"directory-table__cell time-read"],[14,"role","cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["directory.time_read"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["item","time_read"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["column"],false,["div","user-info","each","-track-array","if","directory-column-is-user-field","span","directory-item-user-field-value","d-icon","directory-item-label","directory-item-value","i18n","format-duration"]]',moduleName:"discourse/components/directory-item.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{role="row";static #e=(()=>dt7948.g(this.prototype,"me",[(0,r.propertyEqual)("item.user.id","currentUser.id")]))();#e$=(()=>void dt7948.i(this,"me"))();columns=null},[(0,n.attributeBindings)("role"),(0,n.classNameBindings)("me"),(0,n.classNames)("directory-table__row"),(0,n.tagName)("div")]),l=(0,s.setComponentTemplate)(o,a)},30115:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(35533),r=i(18387),o=i(71324),a=i(8974),l=i(51752),c=i(53563),u=i(843),d=i(53653),p=i(85671);class h extends s.default{table;setupTable(e){this.table=e.querySelector(".directory-table");let t=this.args.showTimeRead?this.args.columns.length+1:this.args.columns.length;this.table.style.gridTemplateColumns=`minmax(15em, 3fr) repeat(${t}, minmax(max-content, 1fr))`}static #e=(()=>dt7948.n(this.prototype,"setupTable",[n.action]))();updateOrderAndAsc(e,t){this.args.updateOrder(e),this.args.updateAsc(t)}static #i=(()=>dt7948.n(this.prototype,"updateOrderAndAsc",[n.action]))();static #s=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"N3ZIF8zy",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,1],[[30,0,["setupTable"]]],null]],null,[["header","body"],[[[[1,"\\n "],[8,[32,2],null,[["@field","@order","@asc"],["username",[30,1],[30,2]]],null],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,3]],null]],null],null,[[[1," "],[8,[32,2],null,[["@onToggle","@field","@icon","@order","@asc","@automatic","@translated"],[[30,0,["updateOrderAndAsc"]],[30,4,["name"]],[30,4,["icon"]],[30,1],[30,2],[28,[32,3],null,[["column"],[[30,4]]]],[30,4,["user_field_id"]]]],null],[1,"\\n"]],[4]],null],[1,"\\n"],[41,[30,5],[[[1," "],[10,0],[14,0,"directory-table__column-header"],[12],[1,"\\n "],[10,0],[14,0,"header-contents"],[12],[1,"\\n "],[1,[28,[32,4],["directory.time_read"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,6]],null]],null],null,[[[1," "],[8,[32,5],null,[["@item","@columns","@showTimeRead"],[[30,7],[30,3],[30,5]]],null],[1,"\\n"]],[7]],null],[1," "]],[]]]]],[1,"\\n "]],["@order","@asc","@columns","column","@showTimeRead","@items","item"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/directory-table.js",scope:()=>[a.default,r.default,l.default,c.default,u.i18n,o.default],isStrictMode:!0}),this))()}},7731:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(35533),o=i(18387),a=i(83133),l=i(42256),c=i(18638),u=i(72738),d=i(843),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"keyValueStore",[a.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"hide",[n.tracked],function(){return!1}))();#eV=(()=>void dt7948.i(this,"hide"))();get banner(){return this.site.get("banner")}get content(){let e=this.banner.html,t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("[id^='heading--']").forEach(e=>{e.removeAttribute("id")}),t.innerHTML}get visible(){let e=this.currentUser?.dismissed_banner_key||this.keyValueStore.get("dismissed_banner_key"),t=this.banner?.key;return t&&(t=parseInt(t,10)),e&&(e=parseInt(e,10)),!this.hide&&t&&e!==t}decorate(e){this.appEvents.trigger("decorate-non-stream-cooked-element",e)}static #u=(()=>dt7948.n(this.prototype,"decorate",[r.action]))();dismiss(){this.currentUser?this.currentUser.dismissBanner(this.banner.key):(this.hide=!0,this.keyValueStore.set({key:"dismissed_banner_key",value:this.banner.key}))}static #d=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #p=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"ZFxgRja9",block:'[[[1,"\\n "],[11,0],[4,[32,0],[[30,0,["decorate"]]],null],[12],[1,"\\n"],[41,[30,0,["visible"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,1,"banner"],[12],[1,"\\n "],[10,0],[14,0,"floated-buttons"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[10,3],[15,6,[30,0,["banner","url"]]],[14,0,"btn btn-transparent edit-banner"],[12],[1,"\\n "],[1,[28,[32,1],["pencil"],null]],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[1,[28,[32,2],[[28,[32,3],["banner.edit"],null]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,4],[[24,0,"btn-transparent close"]],[["@action","@icon","@title"],[[30,0,["dismiss"]],"xmark","banner.close"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,1,"banner-content"],[12],[1,"\\n "],[1,[28,[32,2],[[30,0,["content"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discourse-banner.js",scope:()=>[o.default,u.default,l.htmlSafe,d.i18n,c.default],isStrictMode:!0}),this))()}},72401:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(63748),o=i(843);let a=(0,i(85671).createTemplateFactory)({id:"DQBQg4Aa",block:'[[[1,[28,[35,0],[[30,0,["translatedText"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/discourse-linked-text.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{translatedText(e){if(e)return(0,o.i18n)(...arguments)}static #e=(()=>dt7948.n(this.prototype,"translatedText",[(0,r.default)("text","textParams")]))();click(e){return"A"===e.target.tagName.toUpperCase()&&this.action(this.actionParam),!1}},[(0,n.tagName)("span")]),c=(0,s.setComponentTemplate)(a,l)},98365:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653),n=i(53397);let r=dt7948.c(class extends s.default{},[(0,n.classNames)("discourse-root"),(0,n.tagName)("div")])},25971:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(63748),o=i(94636);let a=(0,i(85671).createTemplateFactory)({id:"MDll+Ehk",block:'[[[1,[30,0,["tagRecord","id"]]]],[],false,[]]',moduleName:"discourse/components/discourse-tag-bound.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{tagClass(e){return"tag-"+e}static #e=(()=>dt7948.n(this.prototype,"tagClass",[(0,r.default)("tagRecord.id")]))();href(e){return(0,o.default)("/tag/"+e)}static #i=(()=>dt7948.n(this.prototype,"href",[(0,r.default)("tagRecord.id")]))()},[(0,n.attributeBindings)("href"),(0,n.classNameBindings)(":discourse-tag","style","tagClass"),(0,n.tagName)("a")]),c=(0,s.setComponentTemplate)(a,l)},31394:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(53653),n=i(30574),r=i(31049),o=i(62053),a=i(75983),l=i(53397),c=i(42064),u=i(25124),d=i.n(u),p=i(7294),h=i(63748),m=i(42236),g=i(38228);let f=dt7948.c(class extends s.default.extend(g.default){static #e=(()=>dt7948.g(this.prototype,"userFilters",[(0,n.alias)("topic.userFilters")]))();#eH=(()=>void dt7948.i(this,"userFilters"))();static #i=(()=>dt7948.g(this.prototype,"postStream",[(0,n.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();menuVisible=!0;SHORT_POST=1200;dockAt=0;init(){super.init(...arguments),this.appEvents.on("discourse:focus-changed",this,"gotFocus"),this.appEvents.on("post:highlight",this,"_highlightPost")}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("discourse:focus-changed",this,"gotFocus"),this.appEvents.off("post:highlight",this,"_highlightPost")}_enteredTopic(){this.enteredAt&&this.lastEnteredAt!==this.enteredAt&&((0,o.schedule)("afterRender",this.scrolled),this.set("lastEnteredAt",this.enteredAt))}static #s=(()=>dt7948.n(this.prototype,"_enteredTopic",[(0,c.observes)("enteredAt")]))();_highlightPost(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};((0,a.isBlank)(t.jump)||!1!==t.jump)&&(0,o.scheduleOnce)("afterRender",null,m.highlightPost,e)}didInsertElement(){super.didInsertElement(...arguments),this.bindScrolling(),window.addEventListener("resize",this.scrolled),d()(this.element).on("click.discourse-redirect",".cooked a, a.track-link",e=>p.default.trackClick(e,(0,r.getOwner)(this)))}willDestroyElement(){super.willDestroyElement(...arguments),this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),d()(this.element).off("click.discourse-redirect",".cooked a, a.track-link")}gotFocus(e){e&&this.scrolled()}scrolled(){if(this.isDestroyed||this.isDestroying||"inDOM"!==this._state)return;let e=window.pageYOffset||document.documentElement.scrollTop;this.set("hasScrolled",e>0),this.appEvents.trigger("topic:scrolled",e)}static #l=(()=>dt7948.n(this.prototype,"scrolled",[h.bind]))()},[(0,l.classNameBindings)("multiSelect","topic.archetype","topic.is_warning","topic.category.read_restricted:read_restricted","topic.deleted:deleted-topic")])},40673:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(53653),n=i(35533),r=i(83133),o=i(53397),a=i(42064),l=i(25124),c=i.n(l),u=i(1799),d=i(56793);let p=dt7948.c(class extends s.default.extend(d.default){static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"documentTitle",[r.service]))();#eC=(()=>void dt7948.i(this,"documentTitle"))();eyelineSelector=".topic-list-item";_monitorTrackingState(){this.stateChangeCallbackId=this.topicTrackingState.onStateChange(()=>this._updateTrackingTopics())}static #s=(()=>dt7948.n(this.prototype,"_monitorTrackingState",[(0,a.on)("didInsertElement")]))();_removeTrackingStateChangeMonitor(){this.stateChangeCallbackId&&this.topicTrackingState.offStateChange(this.stateChangeCallbackId)}static #l=(()=>dt7948.n(this.prototype,"_removeTrackingStateChangeMonitor",[(0,a.on)("willDestroyElement")]))();_updateTrackingTopics(){this.topicTrackingState.updateTopics(this.model.topics)}_updateTitle(){this.documentTitle.updateContextCount(this.incomingCount)}static #c=(()=>dt7948.n(this.prototype,"_updateTitle",[(0,a.observes)("incomingCount")]))();loadMore(){var e=this;(0,u.applyBehaviorTransformer)("discovery-topic-list-load-more",()=>(this.documentTitle.updateContextCount(0),this.model.loadMore().then(function(){let{moreTopicsUrl:t,newTopics:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i&&i.length&&e.bulkSelectHelper?.bulkSelectEnabled&&e.bulkSelectHelper.addTopics(i),t&&c()(window).height()>=c()(document).height()&&e.send("loadMore")})),{model:this.model})}static #u=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))()},[(0,o.classNames)("contents")])},38761:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(75446),r=i(83133),o=i(66104),a=i(24353),l=i(88691),c=i(16545),u=i(66630),d=i(86805),p=i(96320),h=i(66203),m=i(98740),g=i(22388),f=i(17773),_=i(53653),y=i(85671);let b={boxes_with_featured_topics:c.default,boxes:l.default,rows_with_featured_topics:d.default,rows:u.default},w={categories_and_latest_topics_created_date:o.default,categories_and_latest_topics:o.default,categories_and_top_topics:a.default,categories_boxes_with_topics:c.default,categories_boxes:l.default,categories_only:u.default,categories_with_featured_topics:d.default,subcategories_with_featured_topics:g.default};class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();get #ez(){let e=this.args.parentCategory.subcategory_list_style;return b[e]||(console.error("Unknown subcategory list style: "+e),u.default)}get style(){let e=this.siteSettings.desktop_category_page_style;return this.site.mobileView&&(e=this.siteSettings.mobile_category_page_style),this.site.categories.length>f.MAX_UNOPTIMIZED_CATEGORIES&&(e="categories_only"),e}get #eW(){return w[this.style]||(console.error("Unknown category list style: "+this.style),u.default)}get categoriesComponent(){return this.args.parentCategory&&"discovery.subcategories"!==this.router.currentRouteName?this.#ez:this.#eW}get canLoadMore(){return this.args.loadMore&&(this.site.lazy_load_categories||this.site.categories.length>f.MAX_UNOPTIMIZED_CATEGORIES)}static #l=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"kcdr7TWA",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["above-discovery-categories","div",[28,[32,1],null,[["categories","topics"],[[30,1],[30,2]]]]]],null],[1,"\\n"],[41,[30,0,["canLoadMore"]],[[[1," "],[8,[32,2],null,[["@selector","@action"],[".category:not(.muted-categories *)",[30,3]]],[["default"],[[[[1,"\\n "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,4]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n"]],[]]],[1," "]],["@categories","@topics","@loadMore","@loadingMore"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/categories-display.js",scope:()=>[m.default,n.hash,h.default,p.default],isStrictMode:!0}),this))()}},21475:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(46301),l=i(63748),c=i(20144);let u=(0,i(85671).createTemplateFactory)({id:"iIZDxI8r",block:'[[[1,[28,[35,0],["navigation-filter"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"navigation-container"],[12],[1,"\\n "],[10,0],[14,0,"topic-query-filter"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["site","mobileView"]],[30,1]],null],[[[1," "],[10,0],[14,0,"topic-query-filter__bulk-action-btn"],[12],[1,"\\n "],[8,[39,5],null,[["@bulkSelectHelper"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"topic-query-filter__input"],[12],[1,"\\n "],[1,[28,[35,6],["filter"],[["class"],["topic-query-filter__icon"]]]],[1,"\\n "],[8,[39,7],[[24,0,"topic-query-filter__filter-term"],[24,1,"queryStringInput"],[24,"autocomplete","off"]],[["@value","@enter","@type"],[[30,0,["newQueryString"]],[28,[37,8],[[30,0],[30,3],[30,0,["newQueryString"]]],null],"text"]],null],[1,"\\n"],[1," "],[8,[39,9],null,[["@name","@outletArgs"],["below-filter-input",[28,[37,10],null,[["updateQueryString","newQueryString"],[[30,0,["updateQueryString"]],[30,0,["newQueryString"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["newQueryString"]],[[[1," "],[10,0],[14,0,"topic-query-filter__controls"],[12],[1,"\\n "],[8,[39,11],null,[["@icon","@action","@disabled"],["xmark",[30,0,["clearInput"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n\\n"],[41,[30,0,["discoveryFilter","q"]],[[[1," "],[8,[39,11],[[16,0,[30,0,["copyClass"]]]],[["@icon","@action","@disabled"],[[30,0,["copyIcon"]],[30,0,["copyQueryString"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@canBulkSelect","@bulkSelectHelper","@updateTopicsListQueryParams"],false,["body-class","section","div","if","and","bulk-select-toggle","d-icon","input","action","plugin-outlet","hash","d-button","unless"]]',moduleName:"discourse/components/discovery/filter-navigation.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"copyIcon",[n.tracked],function(){return"link"}))();#eK=(()=>void dt7948.i(this,"copyIcon"))();static #s=(()=>dt7948.g(this.prototype,"copyClass",[n.tracked],function(){return"btn-default"}))();#eG=(()=>void dt7948.i(this,"copyClass"))();static #l=(()=>dt7948.g(this.prototype,"newQueryString",[c.resettableTracked],function(){return this.args.queryString}))();#eY=(()=>void dt7948.i(this,"newQueryString"))();updateQueryString(e){this.newQueryString=e}static #c=(()=>dt7948.n(this.prototype,"updateQueryString",[l.bind]))();clearInput(){this.newQueryString="",this.args.updateTopicsListQueryParams(this.newQueryString)}static #u=(()=>dt7948.n(this.prototype,"clearInput",[r.action]))();copyQueryString(){this.copyIcon="check",this.copyClass="btn-default ok",navigator.clipboard.writeText(window.location),(0,a.default)(this._restoreButton,3e3)}static #d=(()=>dt7948.n(this.prototype,"copyQueryString",[r.action]))();_restoreButton(){this.isDestroying||this.isDestroyed||(this.copyIcon="link",this.copyClass="btn-default")}static #p=(()=>dt7948.n(this.prototype,"_restoreButton",[l.bind]))()}(0,d.setComponentTemplate)(u,p)},36094:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"MWHIba8T",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,1],null,null,null],[1,"\\n"],[41,[30,1,["category"]],[[[1," "],[8,[39,3],null,[["@category","@readOnly"],[[30,1,["category"]],[30,2]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-controls-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-navigation-bar-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"container list-container"],[12],[1,"\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"full-width"],[12],[1,"\\n "],[10,0],[14,1,"header-list-area"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["header-list-container-bottom",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"full-width"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["before-list-area",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[10,0],[14,1,"list-area"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs","@defaultGlimmer"],["discovery-list-area",[28,[37,6],null,[["category","tag","model"],[[30,1,["category"]],[30,1,["tag"]],[30,1]]]],true]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-container-top","span",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-below","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13]],["@model","@createTopicDisabled","&navigation","&header","&list"],false,["div","discourse-banner","if","category-read-only-banner","span","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/discovery/layout.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"layout"))},86784:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(35533),r=i(83133),o=i(32904),a=i(58302),l=i(95098),c=i(87353),u=i(1559);let d=(0,i(85671).createTemplateFactory)({id:"LOrctbWU",block:'[[[8,[39,0],null,[["@category","@tags"],[[30,1],[52,[30,2],[28,[37,2],[[30,2,["id"]]],null]]]],null],[1,"\\n\\n"],[41,[30,1],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["above-category-heading",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n\\n "],[10,"section"],[14,0,"category-heading"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,2],[12],[1,[28,[35,8],[[30,1,["description"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-heading","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,10],[[30,0,["bodyClass"]]],null]],[1,"\\n\\n"],[10,"section"],[15,0,[28,[37,11],["navigation-container",[52,[30,1],"category-navigation"]],null]],[12],[1,"\\n "],[8,[39,12],null,[["@category","@tag","@additionalTags","@filterMode","@noSubcategories","@canCreateTopic","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@draftCount","@editCategory","@showCategoryAdmin","@createCategory","@reorderCategories","@canBulkSelect","@bulkSelectHelper","@skipCategoriesNavItem","@toggleInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],[[30,1],[30,2],[30,3],[30,0,["filterMode"]],[30,4],[30,0,["canCreateTopic"]],[30,5],[30,6],[30,7],[30,0,["currentUser","draft_count"]],[30,0,["editCategory"]],[30,8],[30,0,["createCategory"]],[30,0,["reorderCategories"]],[30,9],[30,10],[30,0,["skipCategoriesNavItem"]],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17]]],null],[1,"\\n\\n"],[41,[30,1],[[[1," "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["tag-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[13]],["@category","@tag","@additionalTags","@noSubcategories","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@showCategoryAdmin","@canBulkSelect","@bulkSelectHelper","@toggleTagInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],false,["add-category-tag-classes","if","array","plugin-outlet","hash","section","category-logo","p","dir-span","span","body-class","concat-class","d-navigation"]]',moduleName:"discourse/components/discovery/navigation.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();get filterMode(){return(0,a.calculateFilterMode)({category:this.args.category,filterType:this.args.filterType,noSubcategories:this.args.noSubcategories})}get skipCategoriesNavItem(){return this.router.currentRoute.queryParams.f===l.TRACKED_QUERY_PARAM_VALUE}get canCreateTopic(){return this.currentUser?.can_create_topic}get bodyClass(){return this.args.tag?["tags-page",this.args.additionalTags?"tags-intersection":null].filter(Boolean).join(" "):"categories"===this.filterMode?"navigation-categories":this.args.category?"navigation-category":"navigation-topics"}editCategory(){c.default.routeTo(`/c/${u.default.slugFor(this.args.category)}/edit`)}static #l=(()=>dt7948.n(this.prototype,"editCategory",[n.action]))();createCategory(){this.router.transitionTo("newCategory")}static #c=(()=>dt7948.n(this.prototype,"createCategory",[n.action]))();reorderCategories(){this.modal.show(o.default)}static #u=(()=>dt7948.n(this.prototype,"reorderCategories",[n.action]))()}(0,p.setComponentTemplate)(d,h)},28582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(88355),l=i(58302),c=i(87353),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"SzuRHlv5",block:'[[[41,[30,1,["canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["redirectedReason"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[30,0,["redirectedReason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["sharedDrafts"]],[[[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[8,[39,3],[[24,0,"shared-drafts"]],[["@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared_drafts.title",[30,0,["top"]],"true",[30,2],[30,1,["sharedDrafts"]],true]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],[[24,0,"shared-drafts"]],[["@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared_drafts.title",[30,0,["top"]],"true",[30,2],[30,1,["sharedDrafts"]],true]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,5],null,[["@model","@incomingCount","@bulkSelectHelper","@class"],[[30,1],[30,0,["topicTrackingState","incomingCount"]],[30,3],[52,[30,0,["footerEducation"]],"--no-topics-education"]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1," "],[10,0],[14,0,"top-lists"],[12],[1,"\\n "],[8,[39,6],null,[["@period","@action","@fullDay"],[[30,4],[30,5],false]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,7],[[30,0,["topicTrackingState","hasIncoming"]],[30,1,["loadingBefore"]]],null],[[[1," "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n "],[11,3],[24,"tabindex","0"],[24,6,""],[16,0,[29,["alert alert-info clickable\\n ",[52,[30,1,["loadingBefore"]],"loading"]]]],[4,[38,9],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,10],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[28,[37,7],[[30,1,["loadingBefore"]],[30,0,["topicTrackingState","incomingCount"]]],null]]],null],[1,"\\n"],[41,[30,1,["loadingBefore"]],[[[1," "],[1,[28,[35,11],null,[["size"],["small"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["renderNewListHeaderControls"]],[[[1," "],[8,[39,12],null,[["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,1,["params","subset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-list","div",[28,[37,15],null,[["category","tag"],[[30,2],[30,7]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasTopics"]],[[[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[8,[39,3],null,[["@highlightLastVisited","@top","@hot","@showTopicPostBadges","@showPosters","@canBulkSelect","@bulkSelectHelper","@changeSort","@hideCategory","@order","@ascending","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@focusLastVisitedTopic","@showTopicsAndRepliesToggle","@newListSubset","@changeNewListSubset","@newRepliesCount","@newTopicsCount"],[true,[30,0,["top"]],[30,0,["hot"]],[30,0,["showTopicPostBadges"]],true,[30,8],[30,3],[30,9],[30,1,["hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,2],[30,1,["topics"]],true,true,[30,0,["showTopicsAndRepliesToggle"]],[30,1,["params","subset"]],[30,6],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@highlightLastVisited","@top","@hot","@showTopicPostBadges","@showPosters","@canBulkSelect","@bulkSelectHelper","@changeSort","@hideCategory","@order","@ascending","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@focusLastVisitedTopic","@showTopicsAndRepliesToggle","@newListSubset","@changeNewListSubset","@newRepliesCount","@newTopicsCount"],[true,[30,0,["top"]],[30,0,["hot"]],[30,0,["showTopicPostBadges"]],true,[30,8],[30,3],[30,9],[30,1,["hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,2],[30,1,["topics"]],true,true,[30,0,["showTopicsAndRepliesToggle"]],[30,1,["params","subset"]],[30,6],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n "],[10,1],[14,0,"after-topic-list-plugin-outlet-wrapper"],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-list","div",[28,[37,15],null,[["category","tag","loadingMore","canLoadMore"],[[30,2],[30,7],[30,1,["loadingMore"]],[30,1,["canLoadMore"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n "],[8,[39,17],null,[["@condition"],[[30,1,["loadingMore"]]]],null],[1,"\\n"],[41,[30,0,["allLoaded"]],[[[1," "],[8,[39,14],null,[["@name","@outletArgs"],["topic-list-bottom",[28,[37,15],null,[["category","tag","allLoaded","model"],[[30,2],[30,7],[30,0,["allLoaded"]],[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[39,18],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,3,["selected"]],[30,1],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n\\n "],[8,[39,19],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n"],[41,[30,7],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_tags_or_latest"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["latest"]],[[[41,[30,2,["canCreateTopic"]],[[[1," "],[8,[39,23],null,[["@action","@text"],[[28,[37,24],[[30,0,["composer","openNewTopic"]],[28,[37,15],null,[["category"],[[30,2]]]]],null],"topic.suggest_create_topic"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["top"]],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_categories_latest_or_top"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n "],[8,[39,25],null,[["@period","@action"],[[30,4],[30,5]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_categories_latest"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n "]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[13]],["@model","@category","@bulkSelectHelper","@period","@changePeriod","@changeNewListSubset","@tag","@canBulkSelect","@changeSort","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],false,["if","hide-application-footer","div","topic-list/list","topic-list","discovery-topics-list","period-chooser","or","a","on","count-i18n","loading-spinner","new-list-header-controls-wrapper","span","plugin-outlet","hash","footer","conditional-loading-spinner","topic-dismiss-buttons","footer-message","html-safe","i18n","base-path","discourse-linked-text","fn","top-period-buttons"]]',moduleName:"discourse/components/discovery/topics.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #s=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();static #u=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"loadingNew",[n.tracked]))();#eJ=(()=>void dt7948.i(this,"loadingNew"))();get redirectedReason(){return this.currentUser?.user_option.redirected_to_top?.reason}get order(){return this.args.model.get("params.order")}get ascending(){return"true"===this.args.model.get("params.ascending")}get hasTopics(){return this.args.model.get("topics.length")>0}get allLoaded(){return!this.args.model.get("more_topics_url")}get latest(){return"latest"===(0,l.filterTypeForMode)(this.args.model.filter)}get top(){return"top"===(0,l.filterTypeForMode)(this.args.model.filter)}get hot(){return"hot"===(0,l.filterTypeForMode)(this.args.model.filter)}get new(){return"new"===(0,l.filterTypeForMode)(this.args.model.filter)}async showInserted(e){if(e?.preventDefault(),this.args.model.loadingBefore)return;let{topicTrackingState:t}=this;try{let e=[...t.newIncoming];await this.args.model.loadBefore(e,!0),t.clearIncoming(e)}catch(e){(0,a.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"showInserted",[r.action]))();get showTopicsAndRepliesToggle(){return this.new&&this.currentUser?.new_new_view_enabled}get newRepliesCount(){return(this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled)?this.topicTrackingState.countUnread({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get newTopicsCount(){return(this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled)?this.topicTrackingState.countNew({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get showTopicPostBadges(){return!this.new||this.currentUser?.new_new_view_enabled}get footerMessage(){let e=this.args.model.get("topics.length");if(!this.allLoaded)return;let{category:t,tag:i}=this.args;if(t)return(0,u.i18n)("topics.bottom.category",{category:t.get("name")});if(i)return(0,u.i18n)("topics.bottom.tag",{tag:i.id});{let t=(this.args.model.get("filter")||"").split("/");return 0===e?(0,u.i18n)("topics.none."+t[0],{category:t[1]}):(0,u.i18n)("topics.bottom."+t[0],{category:t[1]})}}get footerEducation(){let e=this.args.model.get("topics.length");if(!this.allLoaded||e>0||!this.currentUser)return;let t=(this.args.model.get("filter")||"").split("/"),i=t[t.length-1];if("new"===i||"unread"===i)return"new"===i&&this.currentUser.new_new_view_enabled&&(i="new_new"),(0,u.i18n)("topics.none.educate."+i,{userPrefsUrl:(0,c.userPath)(`${this.currentUser.get("username_lower")}/preferences/tracking`)})}get renderNewListHeaderControls(){return this.site.mobileView&&this.showTopicsAndRepliesToggle&&!this.args.bulkSelectEnabled}get expandGloballyPinned(){return!this.expandAllPinned}get expandAllPinned(){return this.args.tag||this.args.category}}(0,p.setComponentTemplate)(d,h)},82698:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(75446),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"mi9+L+so",block:'[[[1,"\\n "],[11,"li"],[24,0,"dropdown-menu__item"],[17,1],[12],[18,2,null],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownItem")),l=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"ly8SkaXR",block:'[[[1,"\\n "],[11,"li"],[17,1],[12],[10,"hr"],[14,0,"dropdown-menu__divider"],[12],[13],[13],[1,"\\n"]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownDivider")),c=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"31kQoA3l",block:'[[[1,"\\n "],[11,"ul"],[24,0,"dropdown-menu"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["item","divider"],[[32,1],[32,2]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",scope:()=>[s.hash,a,l],isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownMenu"))},25088:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(35533),n=i(30574),r=i(62053),o=i(75983),a=i(70916),l=i(18385),c=i(63748),u=i(94636),d=i(53306),p=i(1559);let h=(0,i(85671).createTemplateFactory)({id:"X8PwVHa8",block:'[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,"\\n "],[1,[28,[35,2],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,3],[[28,[37,4],["category.uncategorized_general_warning"],[["settingLink","customizeLink"],[[30,0,["uncategorizedSiteSettingLink"]],[30,0,["customizeTextContentLink"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"form"],[12],[1,"\\n "],[8,[39,6],null,[["@category","@tagName"],[[30,0,["category"]],""]],null],[1,"\\n\\n"],[41,[30,0,["canSelectParentCategory"]],[[[1," "],[10,"section"],[14,0,"field parent-category"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.parent"],null]],[13],[1,"\\n "],[8,[39,9],null,[["@value","@allowSubCategories","@allowRestrictedCategories","@onChange","@options"],[[30,0,["category","parent_category_id"]],true,true,[28,[37,10],[[28,[37,11],[[30,0,["category","parent_category_id"]]],null]],null],[28,[37,12],null,[["allowUncategorized","excludeCategoryId","autoInsertNoneItem","none"],[false,[30,0,["category","id"]],true,true]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["subCategories"]],[[[1," "],[10,"section"],[14,0,"field subcategories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["categories.subcategories"],null]],[13],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["subCategories"]]],null]],null],null,[[[1," "],[1,[28,[35,15],[[30,1]],[["hideParent"],["true"]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1," "],[10,"section"],[14,0,"field description"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.description"],null]],[13],[1,"\\n"],[41,[30,0,["category","description"]],[[[1," "],[1,[28,[35,3],[[30,0,["category","description"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["category.no_description"],null]],[1,"\\n"]],[]]],[41,[30,0,["category","topic_url"]],[[[1," "],[10,"br"],[12],[13],[1,"\\n "],[8,[39,17],[[24,0,"btn-default edit-category-description"]],[["@action","@icon","@label"],[[30,0,["showCategoryTopic"]],"pencil","category.change_in_category_topic"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field category-colors"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.badge_colors"],null]],[13],[1,"\\n "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["categoryBadgePreview"]]],null]],[1,"\\n\\n "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,1],[14,1,"background-color-label"],[14,0,"color-title"],[12],[1,[28,[35,4],["category.background_color"],null]],[1,":"],[13],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper"],[12],[1,"\\n "],[8,[39,20],null,[["@hexValue","@valid","@ariaLabelledby"],[[30,0,["category","color"]],[30,0,["category","colorValid"]],"background-color-label"]],null],[1,"\\n "],[8,[39,21],null,[["@colors","@usedColors","@value","@ariaLabel"],[[30,0,["backgroundColors"]],[30,0,["usedBackgroundColors"]],[30,0,["category","color"]],[28,[37,4],["category.predefined_colors"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,1],[14,1,"foreground-color-label"],[14,0,"color-title"],[12],[1,[28,[35,4],["category.foreground_color"],null]],[1,":"],[13],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper edit-text-color"],[12],[1,"\\n "],[8,[39,20],null,[["@hexValue","@ariaLabelledby"],[[30,0,["category","text_color"]],"foreground-color-label"]],null],[1,"\\n "],[8,[39,21],null,[["@colors","@value","@id","@ariaLabel"],[[30,0,["foregroundColors"]],[30,0,["category","text_color"]],"edit-text-color",[28,[37,4],["category.predefined_colors"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["s"],false,["if","p","d-icon","html-safe","i18n","form","category-name-fields","section","label","category-chooser","fn","mut","hash","each","-track-array","category-badge","br","d-button","div","span","color-input","color-picker"]]',moduleName:"discourse/components/edit-category-general.hbs",isStrictMode:!1});var m=i(53653);class g extends(0,a.buildCategoryPanel)("general"){static #e=(()=>dt7948.g(this.prototype,"canSelectParentCategory",[(0,n.not)("category.isUncategorizedCategory")]))();#eX=(()=>void dt7948.i(this,"canSelectParentCategory"))();uncategorizedSiteSettingLink=(()=>(0,u.default)("/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"))();customizeTextContentLink=(()=>(0,u.default)("/admin/customize/site_texts?q=uncategorized"))();foregroundColors=["FFFFFF","000000"];didInsertElement(){super.didInsertElement(...arguments),this._focusCategoryName()}willDestroyElement(){super.willDestroyElement(...arguments),this._laterFocus&&(0,r.cancel)(this._laterFocus)}backgroundColors(){let e=this.site.get("categoriesList");return this.siteSettings.category_colors.split("|").map(function(e){return e.toUpperCase()}).concat(e.map(function(e){return e.color.toUpperCase()})).uniq()}static #i=(()=>dt7948.n(this.prototype,"backgroundColors",[c.default]))();usedBackgroundColors(e,t){return this.site.get("categoriesList").map(function(i){return e&&t.toUpperCase()===i.color.toUpperCase()?null:i.color.toUpperCase()},this).compact()}static #s=(()=>dt7948.n(this.prototype,"usedBackgroundColors",[(0,c.default)("category.id","category.color")]))();parentCategories(){return this.site.get("categoriesList").filter(e=>e.level+1dt7948.n(this.prototype,"parentCategories",[c.default]))();categoryBadgePreview(e,t,i,s){let n=this.category,r=p.default.create({name:t,color:i,id:n.id,text_color:s,parent_category_id:parseInt(e,10),read_restricted:n.get("read_restricted")});return(0,l.categoryBadgeHTML)(r,{link:!1,previewColor:!0})}static #c=(()=>dt7948.n(this.prototype,"categoryBadgePreview",[(0,c.default)("category.parent_category_id","category.name","category.color","category.text_color")]))();subCategories(e){return(0,o.isEmpty)(e)?null:p.default.list().filterBy("parent_category_id",e)}static #u=(()=>dt7948.n(this.prototype,"subCategories",[(0,c.default)("category.id")]))();showDescription(e,t,i){return!e&&t&&i}static #d=(()=>dt7948.n(this.prototype,"showDescription",[(0,c.default)("category.isUncategorizedCategory","category.id","category.topic_url")]))();showCategoryTopic(){return window.open(this.get("category.topic_url"),"_blank").focus(),!1}static #p=(()=>dt7948.n(this.prototype,"showCategoryTopic",[s.action]))();_focusCategoryName(){this._laterFocus=(0,d.default)(()=>{let e=this.element.querySelector(".category-name");e&&e.focus()},25)}}(0,m.setComponentTemplate)(h,g)},80587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(70916),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"ALAzfS5k",block:'[[[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.logo"],null]],[13],[1,"\\n "],[8,[39,3],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageUrl"]],[28,[37,4],[[30,0],"logoUploadDone"],null],[28,[37,4],[[30,0],"logoUploadDeleted"],null],"category_logo","category-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.logo_dark"],null]],[13],[1,"\\n "],[8,[39,3],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageDarkUrl"]],[28,[37,4],[[30,0],"logoDarkUploadDone"],null],[28,[37,4],[[30,0],"logoDarkUploadDeleted"],null],"category_logo_dark","category-dark-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.background_image"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundImageUrl"]],[28,[37,4],[[30,0],"backgroundUploadDone"],null],[28,[37,4],[[30,0],"backgroundUploadDeleted"],null],"category_background","category-background-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.background_image_dark"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundDarkImageUrl"]],[28,[37,4],[[30,0],"backgroundDarkUploadDone"],null],[28,[37,4],[[30,0],"backgroundDarkUploadDeleted"],null],"category_background_dark","category-dark-background-uploader"]],null],[1,"\\n"],[13]],[],false,["section","label","i18n","uppy-image-uploader","action"]]',moduleName:"discourse/components/edit-category-images.hbs",isStrictMode:!1});var a=i(53653);class l extends(0,n.buildCategoryPanel)("images"){backgroundImageUrl(e){return e||""}static #e=(()=>dt7948.n(this.prototype,"backgroundImageUrl",[(0,r.default)("category.uploaded_background.url")]))();backgroundDarkImageUrl(e){return e||""}static #i=(()=>dt7948.n(this.prototype,"backgroundDarkImageUrl",[(0,r.default)("category.uploaded_background_dark.url")]))();logoImageUrl(e){return e||""}static #s=(()=>dt7948.n(this.prototype,"logoImageUrl",[(0,r.default)("category.uploaded_logo.url")]))();logoImageDarkUrl(e){return e||""}static #l=(()=>dt7948.n(this.prototype,"logoImageDarkUrl",[(0,r.default)("category.uploaded_logo_dark.url")]))();logoUploadDone(e){this._setFromUpload("category.uploaded_logo",e)}static #c=(()=>dt7948.n(this.prototype,"logoUploadDone",[s.action]))();logoUploadDeleted(){this._deleteUpload("category.uploaded_logo")}static #u=(()=>dt7948.n(this.prototype,"logoUploadDeleted",[s.action]))();logoDarkUploadDone(e){this._setFromUpload("category.uploaded_logo_dark",e)}static #d=(()=>dt7948.n(this.prototype,"logoDarkUploadDone",[s.action]))();logoDarkUploadDeleted(){this._deleteUpload("category.uploaded_logo_dark")}static #p=(()=>dt7948.n(this.prototype,"logoDarkUploadDeleted",[s.action]))();backgroundUploadDone(e){this._setFromUpload("category.uploaded_background",e)}static #h=(()=>dt7948.n(this.prototype,"backgroundUploadDone",[s.action]))();backgroundUploadDeleted(){this._deleteUpload("category.uploaded_background")}static #m=(()=>dt7948.n(this.prototype,"backgroundUploadDeleted",[s.action]))();backgroundDarkUploadDone(e){this._setFromUpload("category.uploaded_background_dark",e)}static #g=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDone",[s.action]))();backgroundDarkUploadDeleted(){this._deleteUpload("category.uploaded_background_dark")}static #A=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDeleted",[s.action]))();_deleteUpload(e){this.set(e,s.default.create({id:null,url:null}))}_setFromUpload(e,t){this.set(e,s.default.create({url:t.url,id:t.id}))}}(0,a.setComponentTemplate)(o,l)},70916:(e,t,i)=>{"use strict";i.r(t),i.d(t,{buildCategoryPanel:()=>l,default:()=>a});var s=i(53653),n=i(30574),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"j67r9u89",block:'[[[46,[30,0,["customComponent"]],null,[["tab","selectedTab","category"],[[30,0,["tab"]],[30,0,["selectedTab"]],[30,0,["category"]]]],null]],[],false,["component"]]',moduleName:"discourse/components/edit-category-panel.hbs",isStrictMode:!1});class a extends s.default{}function l(e){return dt7948.c(class extends a{static #e=(()=>dt7948.g(this.prototype,"activeTab",[(0,n.equal)("selectedTab",e)]))();#eZ=(()=>void dt7948.i(this,"activeTab"))()},[(0,r.classNameBindings)(":edit-category-tab","activeTab::hide",`:edit-category-tab-${e}`)])}(0,s.setComponentTemplate)(o,a)},49744:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(35533),n=i(30574),r=i(70916),o=i(63748),a=i(54761);let l=(0,i(85671).createTemplateFactory)({id:"KAHkFKWL",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[30,0,["category","is_special"]],[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.uncategorized_security_warning"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.special_warning"],null]],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[51,[30,0,["category","is_special"]]],[[[1," "],[10,0],[14,0,"category-permissions-table"],[12],[1,"\\n "],[10,0],[14,0,"permission-row row-header"],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,[28,[35,3],["category.permissions.group"],null]],[13],[1,"\\n "],[10,1],[14,0,"options"],[12],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.see"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.reply"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.create"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","permissions"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@groupName","@type","@category","@everyonePermission","@onChangeEveryonePermission"],[[30,1,["group_name"]],[30,1,["permission_type"]],[30,0,["category"]],[30,0,["everyonePermission"]],[28,[37,10],[[30,0],"onChangeEveryonePermission"],null]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[51,[30,0,["category","permissions"]]],[[[1," "],[10,0],[14,0,"permission-row row-empty"],[12],[1,"\\n "],[1,[28,[35,3],["category.permissions.no_groups_selected"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","availableGroups"]],[[[1," "],[10,0],[14,0,"add-group"],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,"\\n "],[8,[39,11],[[24,0,"available-groups"]],[["@content","@onChange","@value","@valueProperty","@nameProperty","@options"],[[30,0,["category","availableGroups"]],[28,[37,10],[[30,0],"onSelectGroup"],null],null,null,null,[28,[37,12],null,[["none"],["category.security_add_group"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["everyoneGrantedFull"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.permissions.everyone_has_access"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,13],null,[["@name","@outletArgs"],["category-custom-security",[28,[37,12],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],["p"],false,["section","if","p","i18n","unless","div","span","each","-track-array","category-permission-row","action","combo-box","hash","plugin-outlet"]]',moduleName:"discourse/components/edit-category-security.hbs",isStrictMode:!1});var c=i(53653);class u extends(0,r.buildCategoryPanel)("security"){selectedGroup=null;static #e=(()=>dt7948.g(this.prototype,"noGroupSelected",[(0,n.not)("selectedGroup")]))();#e1=(()=>void dt7948.i(this,"noGroupSelected"))();everyonePermission(e){return e.findBy("group_name","everyone")}static #i=(()=>dt7948.n(this.prototype,"everyonePermission",[(0,o.default)("category.permissions.@each.permission_type")]))();everyoneGrantedFull(){return this.everyonePermission&&this.everyonePermission.permission_type===a.default.FULL}static #s=(()=>dt7948.n(this.prototype,"everyoneGrantedFull",[(0,o.default)("category.permissions.@each.permission_type")]))();minimumPermission(e){return e?e.permission_type:a.default.READONLY}static #l=(()=>dt7948.n(this.prototype,"minimumPermission",[(0,o.default)("everyonePermission")]))();onSelectGroup(e){this.category.addPermission({group_name:e,permission_type:this.minimumPermission})}static #c=(()=>dt7948.n(this.prototype,"onSelectGroup",[s.action]))();onChangeEveryonePermission(e){this.category.permissions.forEach((t,i)=>{"everyone"!==t.group_name&&edt7948.n(this.prototype,"onChangeEveryonePermission",[s.action]))()}(0,c.setComponentTemplate)(l,u)},4671:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addCategorySortCriteria:()=>h,default:()=>m});var s=i(35533),n=i(30574),r=i(70916),o=i(82805),a=i(17773),l=i(63748),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"ihwWKEd8",block:'[[[10,"section"],[12],[1,"\\n"],[41,[30,0,["showPositionInput"]],[[[1," "],[10,"section"],[14,0,"field position-fields"],[12],[1,"\\n "],[10,"label"],[14,"for","category-position"],[12],[1,"\\n "],[1,[28,[35,3],["category.position"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","position"]]],[24,"min","0"],[24,1,"category-position"],[24,0,"position-input"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","position"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showPositionInput"]]],[[[1," "],[10,"section"],[14,0,"field position-disabled"],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,3],["category.position_disabled"],[["url"],[[28,[37,11],["/admin/site_settings/category/all_results?filter=fixed_category_positions"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field num-featured-topics"],[12],[1,"\\n "],[10,"label"],[14,"for","category-number-featured-topics"],[12],[1,"\\n"],[41,[30,0,["category","parent_category_id"]],[[[1," "],[1,[28,[35,3],["category.subcategory_num_featured_topics"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["category.num_featured_topics"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","num_featured_topics"]]],[24,"min","1"],[24,1,"category-number-featured-topics"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","num_featured_topics"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field search-priority"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.search_priority.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@onChange","@options"],["value","category-search-priority",[30,0,["searchPrioritiesOptions"]],[30,0,["category","search_priority"]],[28,[37,7],[[28,[37,8],[[30,0,["category","search_priority"]]],null]],null],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[10,"section"],[14,0,"field allow-badges"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_badges"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.allow_badges_label"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[10,"section"],[14,0,"field topic-featured-link-allowed"],[12],[1,"\\n "],[10,0],[14,0,"allowed-topic-featured-link-category"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","topic_featured_link_allowed"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.topic_featured_link_allowed"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field navigate-to-first-post-after-read"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","navigate_to_first_post_after_read"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.navigate_to_first_post_after_read"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field all-topics-wiki"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","all_topics_wiki"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.all_topics_wiki"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field allow-unlimited-owner-edits-on-first-post"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_unlimited_owner_edits_on_first_post"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.allow_unlimited_owner_edits_on_first_post"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.moderation"],null]],[13],[1,"\\n"],[41,[30,0,["siteSettings","enable_category_group_moderation"]],[[[1," "],[10,"section"],[14,0,"field reviewable-by-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["category.reviewable_by_group"],null]],[13],[1,"\\n "],[8,[39,16],null,[["@content","@value","@onChange"],[[30,0,["site","groups"]],[30,0,["category","moderating_group_ids"]],[30,0,["onCategoryModeratingGroupsChange"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field require-topic-approval"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_topic_approval"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.require_topic_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field require-reply-approval"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_reply_approval"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.require_reply_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-slow-mode"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","category-default-slow-mode"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_slow_mode"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-default-slow-mode-seconds"],[12],[1,"\\n "],[8,[39,17],null,[["@id","@durationMinutes","@onChange"],["category-default-slow-mode",[30,0,["category","defaultSlowModeMinutes"]],[28,[37,18],[[30,0],"onDefaultSlowModeDurationChange"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field auto-close"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","topic-auto-close"],[12],[1,"\\n "],[1,[28,[35,3],["topic.auto_close.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-topic-auto-close-hours"],[12],[1,"\\n "],[8,[39,17],null,[["@id","@durationHours","@hiddenIntervals","@onChange"],["topic-auto-close",[30,0,["category","auto_close_hours"]],[30,0,["hiddenRelativeIntervals"]],[28,[37,18],[[30,0],"onAutoCloseDurationChange"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","auto_close_based_on_last_post"]]]],null],[1,"\\n "],[1,[28,[35,3],["topic.auto_close.based_on_last_post"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field num-auto-bump-daily"],[12],[1,"\\n "],[10,"label"],[14,"for","category-number-daily-bump"],[12],[1,"\\n "],[1,[28,[35,3],["category.num_auto_bump_daily"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","category_setting","num_auto_bump_daily"]]],[24,"min","0"],[24,1,"category-number-daily-bump"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","category_setting","num_auto_bump_daily"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field auto-bump-cooldown-days"],[12],[1,"\\n "],[10,"label"],[14,"for","category-auto-bump-cooldown-days"],[12],[1,"\\n "],[1,[28,[35,3],["category.auto_bump_cooldown_days"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","category_setting","auto_bump_cooldown_days"]]],[24,"min","0"],[24,1,"category-auto-bump-cooldown-days"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","category_setting","auto_bump_cooldown_days"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.appearance"],null]],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-view-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_view"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-view",[30,0,["availableViews"]],[30,0,["category","default_view"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-top-period-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_top_period"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-period",[30,0,["availableTopPeriods"]],[30,0,["category","default_top_period"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field sort-order"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.sort_order"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["availableSorts"]],[30,0,["category","sort_order"]],[28,[37,14],null,[["none"],["category.sort_options.default"]]],[28,[37,7],[[28,[37,8],[[30,0,["category","sort_order"]]],null]],null]]],null],[1,"\\n"],[41,[51,[30,0,["isDefaultSortOrder"]]],[[[1," "],[8,[39,13],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["sortAscendingOptions"]],[30,0,["sortAscendingOption"]],[28,[37,14],null,[["none","placementStrategy"],["category.sort_options.default","absolute"]]],[28,[37,7],[[28,[37,8],[[30,0,["category","sort_ascending"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-filter"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_list_filter"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@id","@valueProperty","@content","@value"],["category-default-filter","value",[30,0,["availableListFilters"]],[30,0,["category","default_list_filter"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["isParentCategory"]],[[[1," "],[10,"section"],[14,0,"field show-subcategory-list-field"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","show_subcategory_list"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.show_subcategory_list"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSubcategoryListStyle"]],[[[1," "],[10,"section"],[14,0,"field subcategory-list-style-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.subcategory_list_style"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","subcategory-list-style",[30,0,["availableSubcategoryListStyles"]],[30,0,["category","subcategory_list_style"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field category-read-only-banner"],[12],[1,"\\n "],[10,"label"],[14,"for","read-only-message"],[12],[1,[28,[35,3],["category.read_only_banner"],null]],[13],[1,"\\n "],[8,[39,19],null,[["@valueProperty","@id","@value","@options"],["value","read-only-message",[30,0,["category","read_only_banner"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.email"],null]],[13],[1,"\\n\\n"],[41,[30,0,["emailInEnabled"]],[[[1," "],[10,"section"],[14,0,"field category-email-in"],[12],[1,"\\n "],[10,"label"],[14,"for","category-email-in"],[12],[1,"\\n "],[1,[28,[35,20],["envelope"],null]],[1,"\\n "],[1,[28,[35,3],["category.email_in"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,19],[[24,0,"email-in"]],[["@id","@value"],["category-email-in",[30,0,["category","email_in"]]]],null],[1,"\\n\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field email-in-allow-strangers"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","email_in_allow_strangers"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.email_in_allow_strangers"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field mailinglist-mirror"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","mailinglist_mirror"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.mailinglist_mirror"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,22],null,[["@name","@connectorTagName","@outletArgs"],["category-email-in","div",[28,[37,14],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["emailInEnabled"]]],[[[1," "],[10,"section"],[14,0,"field email-in-disabled"],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,3],["category.email_in_disabled"],[["setting_url"],[[28,[37,11],["/admin/site_settings/category/all_results?filter=email_in"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,22],null,[["@name","@outletArgs"],["category-custom-settings",[28,[37,14],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],[],false,["section","if","label","i18n","input","on","with-event-value","fn","mut","unless","html-safe","get-url","div","combo-box","hash","h3","group-chooser","relative-time-picker","action","text-field","d-icon","span","plugin-outlet"]]',moduleName:"discourse/components/edit-category-settings.hbs",isStrictMode:!1});var d=i(53653);let p=[];function h(e){p.push(e)}class m extends(0,r.buildCategoryPanel)("settings"){static #e=(()=>dt7948.g(this.prototype,"emailInEnabled",[(0,o.setting)("email_in")]))();#e0=(()=>void dt7948.i(this,"emailInEnabled"))();static #i=(()=>dt7948.g(this.prototype,"showPositionInput",[(0,o.setting)("fixed_category_positions")]))();#e3=(()=>void dt7948.i(this,"showPositionInput"))();static #s=(()=>dt7948.g(this.prototype,"showSubcategoryListStyle",[(0,n.and)("category.show_subcategory_list","isParentCategory")]))();#e8=(()=>void dt7948.i(this,"showSubcategoryListStyle"))();static #l=(()=>dt7948.g(this.prototype,"isDefaultSortOrder",[(0,n.empty)("category.sort_order")]))();#e2=(()=>void dt7948.i(this,"isDefaultSortOrder"))();isParentCategory(e,t){return e||!t}static #c=(()=>dt7948.n(this.prototype,"isParentCategory",[(0,l.default)("category.isParent","category.parent_category_id")]))();availableSubcategoryListStyles(){return[{name:(0,c.i18n)("category.subcategory_list_styles.rows"),value:"rows"},{name:(0,c.i18n)("category.subcategory_list_styles.rows_with_featured_topics"),value:"rows_with_featured_topics"},{name:(0,c.i18n)("category.subcategory_list_styles.boxes"),value:"boxes"},{name:(0,c.i18n)("category.subcategory_list_styles.boxes_with_featured_topics"),value:"boxes_with_featured_topics"}]}static #u=(()=>dt7948.n(this.prototype,"availableSubcategoryListStyles",[l.default]))();availableViews(){return[{name:(0,c.i18n)("filters.latest.title"),value:"latest"},{name:(0,c.i18n)("filters.top.title"),value:"top"}]}static #d=(()=>dt7948.n(this.prototype,"availableViews",[l.default]))();availableTopPeriods(){return["all","yearly","quarterly","monthly","weekly","daily"].map(e=>({name:(0,c.i18n)(`filters.top.${e}.title`),value:e}))}static #p=(()=>dt7948.n(this.prototype,"availableTopPeriods",[l.default]))();availableListFilters(){return["all","none"].map(e=>({name:(0,c.i18n)(`category.list_filters.${e}`),value:e}))}static #h=(()=>dt7948.n(this.prototype,"availableListFilters",[l.default]))();searchPrioritiesOptions(){let e=[];return Object.entries(a.SEARCH_PRIORITIES).forEach(t=>{let[i,s]=t;e.push({name:(0,c.i18n)(`category.search_priority.options.${i}`),value:s})}),e}static #m=(()=>dt7948.n(this.prototype,"searchPrioritiesOptions",[l.default]))();availableSorts(){return["likes","op_likes","views","posts","activity","posters","category","created"].concat(p).map(e=>({name:(0,c.i18n)("category.sort_options."+e),value:e})).sort((e,t)=>e.name.localeCompare(t.name))}static #g=(()=>dt7948.n(this.prototype,"availableSorts",[l.default]))();sortAscendingOption(e){return"false"!==e&&("true"===e||e)}static #A=(()=>dt7948.n(this.prototype,"sortAscendingOption",[(0,l.default)("category.sort_ascending")]))();sortAscendingOptions(){return[{name:(0,c.i18n)("category.sort_ascending"),value:!0},{name:(0,c.i18n)("category.sort_descending"),value:!1}]}static #E=(()=>dt7948.n(this.prototype,"sortAscendingOptions",[l.default]))();hiddenRelativeIntervals(){return["mins"]}static #D=(()=>dt7948.n(this.prototype,"hiddenRelativeIntervals",[l.default]))();onAutoCloseDurationChange(e){this.set("category.auto_close_hours",e?e/60:null)}static #P=(()=>dt7948.n(this.prototype,"onAutoCloseDurationChange",[s.action]))();onDefaultSlowModeDurationChange(e){this.set("category.default_slow_mode_seconds",e?60*e:null)}static #Q=(()=>dt7948.n(this.prototype,"onDefaultSlowModeDurationChange",[s.action]))();onCategoryModeratingGroupsChange(e){this.set("category.moderating_group_ids",e)}static #J=(()=>dt7948.n(this.prototype,"onCategoryModeratingGroupsChange",[s.action]))()}(0,d.setComponentTemplate)(u,m)},78411:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(53653),n=i(35533),r=i(30574),o=i(62053),a=i(94480),l=i(53397),c=i(82805),u=i(63748),d=i(94636),p=i(87353),h=i(843);let m=(0,i(85671).createTemplateFactory)({id:"0WZ1aO2c",block:'[[[11,3],[24,6,""],[16,0,[52,[30,0,["active"]],"active"]],[4,[38,2],["click",[30,0,["select"]]],null],[12],[1,[30,0,["title"]]],[13]],[],false,["a","if","on"]]',moduleName:"discourse/components/edit-category-tab.hbs",isStrictMode:!1}),g=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"newCategory",[(0,r.empty)("params.slug")]))();#e4=(()=>void dt7948.i(this,"newCategory"))();static #i=(()=>dt7948.g(this.prototype,"active",[(0,c.propertyEqual)("selectedTab","tab")]))();#e7=(()=>void dt7948.i(this,"active"))();tabClassName(e){return"edit-category-"+e}static #s=(()=>dt7948.n(this.prototype,"tabClassName",[(0,u.default)("tab")]))();title(e){return(0,h.i18n)(`category.${(0,a.underscore)(e)}`)}static #l=(()=>dt7948.n(this.prototype,"title",[(0,u.default)("tab")]))();didInsertElement(){super.didInsertElement(...arguments),(0,o.scheduleOnce)("afterRender",this,this._addToCollection)}willDestroyElement(){super.willDestroyElement(...arguments),this.setProperties({selectedTab:"general",params:{}})}_addToCollection(){this.panels.addObject(this.tabClassName)}fullSlug(e,t){let i=t&&e?`${t}/${e}`:e;return(0,d.default)(`/c/${i}/edit/${this.tab}`)}static #c=(()=>dt7948.n(this.prototype,"fullSlug",[(0,u.default)("params.slug","params.parentSlug")]))();select(e){e?.preventDefault(),this.set("selectedTab",this.tab),this.newCategory||p.default.routeTo(this.fullSlug)}static #u=(()=>dt7948.n(this.prototype,"select",[n.action]))()},[(0,l.classNameBindings)("active","tabClassName"),(0,l.tagName)("li")]),f=(0,s.setComponentTemplate)(m,g)},63570:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(30574),r=i(70916);let o=(0,i(85671).createTemplateFactory)({id:"nqLLoG2h",block:'[[[10,"section"],[14,0,"field minimum-required-tags"],[12],[1,"\\n "],[10,"label"],[14,"for","category-minimum-tags"],[12],[1,"\\n "],[1,[28,[35,2],["category.minimum_required_tags"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,3],null,[["@value","@id","@type","@min"],[[30,0,["category","minimum_required_tags"]],"category-minimum-tags","number","0"]],null],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"field allowed-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.tags_allowed_tags"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@id","@tags","@everyTag","@excludeSynonyms","@unlimitedTagCount","@onChange","@options"],["category-allowed-tags",[30,0,["category","allowed_tags"]],true,true,true,[28,[37,5],[[28,[37,6],[[30,0,["category","allowed_tags"]]],null]],null],[28,[37,7],null,[["filterPlaceholder"],["category.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allowed-tag-groups"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.tags_allowed_tag_groups"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@id","@tagGroups","@onChange"],["category-allowed-tag-groups",[30,0,["category","allowed_tag_groups"]],[28,[37,5],[[28,[37,6],[[30,0,["category","allowed_tag_groups"]]],null]],null]]],null],[1,"\\n "],[8,[39,9],[[24,0,"manage-tag-groups"]],[["@route"],["tagGroups"]],[["default"],[[[[1,[28,[35,2],["category.manage_tag_groups_link"],null]]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allow-global-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[24,1,"allow_global_tags"],[16,"disabled",[30,0,["disableAllowGlobalTags"]]]],[["@type","@checked"],["checkbox",[30,0,["category","allow_global_tags"]]]],null],[1,"\\n "],[1,[28,[35,2],["category.allow_global_tags_label"],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field tags-tab-description"],[12],[1,"\\n "],[1,[28,[35,2],["category.tags_tab_description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field required-tag-group-description"],[12],[1,"\\n "],[1,[28,[35,2],["category.required_tag_group.description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field with-items"],[12],[1,"\\n "],[10,"section"],[14,0,"field-item required-tag-groups"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["category","required_tag_groups"]]],null]],null],null,[[[1," "],[10,0],[14,0,"required-tag-group-row"],[12],[1,"\\n "],[8,[39,3],null,[["@value","@type","@min"],[[30,1,["min_count"]],"number","1"]],null],[1,"\\n "],[8,[39,8],null,[["@tagGroups","@onChange","@options"],[[52,[30,1,["name"]],[28,[37,15],[[30,1,["name"]]],null],[28,[37,15],null,null]],[28,[37,16],[[30,0],"onTagGroupChange",[30,1]],null],[28,[37,7],null,[["maximum","filterPlaceholder"],[1,"category.required_tag_group.placeholder"]]]]],null],[1,"\\n "],[8,[39,17],[[24,0,"delete-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.delete",[28,[37,5],[[30,0,["deleteRequiredTagGroup"]],[30,1]],null],"trash-can"]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,17],[[24,0,"btn-default add-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.add",[30,0,["addRequiredTagGroup"]],"plus"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["rtg"],false,["section","label","i18n","text-field","tag-chooser","fn","mut","hash","tag-group-chooser","link-to","input","each","-track-array","div","if","array","action","d-button"]]',moduleName:"discourse/components/edit-category-tags.hbs",isStrictMode:!1});var a=i(53653);class l extends(0,r.buildCategoryPanel)("tags"){static #e=(()=>dt7948.g(this.prototype,"allowedTagsEmpty",[(0,n.empty)("category.allowed_tags")]))();#e9=(()=>void dt7948.i(this,"allowedTagsEmpty"))();static #i=(()=>dt7948.g(this.prototype,"allowedTagGroupsEmpty",[(0,n.empty)("category.allowed_tag_groups")]))();#e5=(()=>void dt7948.i(this,"allowedTagGroupsEmpty"))();static #s=(()=>dt7948.g(this.prototype,"disableAllowGlobalTags",[(0,n.and)("allowedTagsEmpty","allowedTagGroupsEmpty")]))();#e6=(()=>void dt7948.i(this,"disableAllowGlobalTags"))();onTagGroupChange(e,t){(0,s.set)(e,"name",t[0])}static #l=(()=>dt7948.n(this.prototype,"onTagGroupChange",[s.action]))();addRequiredTagGroup(){this.category.required_tag_groups.pushObject({min_count:1})}static #c=(()=>dt7948.n(this.prototype,"addRequiredTagGroup",[s.action]))();deleteRequiredTagGroup(e){this.category.required_tag_groups.removeObject(e)}static #u=(()=>dt7948.n(this.prototype,"deleteRequiredTagGroup",[s.action]))()}(0,a.setComponentTemplate)(o,l)},12077:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(8554),n=i(35533),r=i(62053),o=i(42064),a=i(70916),l=i(63748);let c=(0,i(85671).createTemplateFactory)({id:"z7ZEoVer",block:'[[[41,[30,0,["siteSettings","experimental_form_templates"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,2],[[24,0,"toggle-template-type"],[4,[38,3],["click",[30,0,["toggleTemplateType"]]],null]],[["@state","@label"],[[30,0,["showFormTemplate"]],[30,0,["templateTypeToggleLabel"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFormTemplate"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,4],[[24,0,"select-category-template"]],[["@value","@onChange"],[[30,0,["category","form_template_ids"]],[28,[37,5],[[28,[37,6],[[30,0,["category","form_template_ids"]]],null]],null]]],null],[1,"\\n\\n "],[10,2],[14,0,"select-category-template__info desc"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[39,8],null,[["@route"],["adminCustomizeFormTemplates"]],[["default"],[[[[1,"\\n "],[1,[28,[35,9],["admin.form_templates.edit_category.select_template_help"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[39,10],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[],false,["if","div","d-toggle-switch","on","form-template-chooser","fn","mut","p","link-to","i18n","d-editor"]]',moduleName:"discourse/components/edit-category-topic-template.hbs",isStrictMode:!1});var u=i(53653);class d extends(0,a.buildCategoryPanel)("topic-template"){static #e=(()=>dt7948.g(this.prototype,"_showFormTemplateOverride",[s.tracked]))();#te=(()=>void dt7948.i(this,"_showFormTemplateOverride"))();get showFormTemplate(){return this._showFormTemplateOverride??!!this.category.get("form_template_ids.length")}set showFormTemplate(e){this._showFormTemplateOverride=e}templateTypeToggleLabel(e){return e?"admin.form_templates.edit_category.toggle_form_template":"admin.form_templates.edit_category.toggle_freeform"}static #i=(()=>dt7948.n(this.prototype,"templateTypeToggleLabel",[(0,l.default)("showFormTemplate")]))();toggleTemplateType(){this.toggleProperty("showFormTemplate"),this.showFormTemplate||this.set("category.form_template_ids",[])}static #s=(()=>dt7948.n(this.prototype,"toggleTemplateType",[n.action]))();_activeTabChanged(){this.activeTab&&!this.showFormTemplate&&(0,r.schedule)("afterRender",()=>this.element.querySelector(".d-editor-input").focus())}static #l=(()=>dt7948.n(this.prototype,"_activeTabChanged",[(0,o.observes)("activeTab","showFormTemplate")]))()}(0,u.setComponentTemplate)(c,d)},30454:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(75983),l=i(51367),c=i.n(l),u=i(97088),d=i(19905),p=i(66914),h=i(843),m=i(9105);let g=(0,i(85671).createTemplateFactory)({id:"aXwMZMYs",block:'[[[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,2],[[24,0,"timer-type"]],[["@value","@onChange"],[[30,0,["statusType"]],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,3]],null]],null],null,[[[1," "],[8,[30,2,["Option"]],null,[["@value"],[[30,4,["id"]]]],[["default"],[[[[1,[30,4,["name"]]]],[]]]]],[1,"\\n"]],[4]],null],[1," "]],[2]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["publishToCategory"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.publish_to"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],null,[["@value","@onChange","@options"],[[30,5,["category_id"]],[28,[37,9],[[28,[37,10],[[30,5,["category_id"]]],null]],null],[28,[37,11],null,[["excludeCategoryId"],[[30,0,["excludeCategoryId"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFutureDateInput"]],[[[1," "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.when"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,12],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@_itsatrap"],[[30,0,["timeOptions"]],[30,5,["execute_at"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["useDuration"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.duration"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,13],null,[["@onChange","@durationMinutes"],[[30,0,["changeDuration"]],[30,5,["duration_minutes"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["willCloseImmediately"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,"\\n "],[1,[28,[35,14],["triangle-exclamation"],null]],[1,"\\n "],[1,[30,0,["willCloseI18n"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTopicTimerInfo"]],[[[1," "],[10,0],[14,0,"alert alert-info modal-topic-timer-info"],[12],[1,"\\n "],[8,[39,15],null,[["@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId"],[[30,0,["statusType"]],[30,0,["executeAt"]],[30,5,["based_on_last_post"]],[30,5,["duration_minutes"]],[30,5,["category_id"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@onChangeStatusType","select","@timerTypes","timer","@topicTimer"],false,["form","div","d-select","each","-track-array","if","label","i18n","category-chooser","fn","mut","hash","time-shortcut-picker","relative-time-picker","d-icon","topic-timer-info"]]',moduleName:"discourse/components/edit-topic-timer-form.hbs",isStrictMode:!1});var f=i(53653);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"timerType",[n.tracked]))();#tt=(()=>void dt7948.i(this,"timerType"))();constructor(){super(...arguments),d.default.pause(),this._itsatrap=new(c())}willDestroy(){super.willDestroy(...arguments),this._itsatrap.destroy(),d.default.unpause()}get showTimeOnly(){return this.statusType===u.OPEN_STATUS_TYPE||this.statusType===u.DELETE_STATUS_TYPE||this.statusType===u.BUMP_TYPE}get showFutureDateInput(){return this.showTimeOnly||this.publishToCategory||this.statusType===u.CLOSE_STATUS_TYPE}get useDuration(){return this.autoCloseAfterLastPost||this.autoDeleteReplies}get autoCloseAfterLastPost(){return this.statusType===u.CLOSE_AFTER_LAST_POST_STATUS_TYPE}get publishToCategory(){return this.statusType===u.PUBLISH_TO_CATEGORY_STATUS_TYPE}get autoDeleteReplies(){return this.statusType===u.DELETE_REPLIES_TYPE}get statusType(){return this.args.topicTimer.status_type}get excludeCategoryId(){if(this.args.topic.visible)return this.args.topic.category_id}get timeOptions(){let e=this.currentUser.user_option.timezone,t=(0,p.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.sixMonths()]}get hiddenTimeShortcutOptions(){return[p.TIME_SHORTCUT_TYPES.NONE,p.TIME_SHORTCUT_TYPES.LATER_TODAY,p.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]}get executeAt(){return this.useDuration?moment().add(parseFloat(this.args.topicTimer.duration_minutes),"minutes").format(m.FORMAT):this.args.topicTimer.updateTime}get willCloseImmediately(){if(this.autoCloseAfterLastPost&&this.args.topicTimer.duration_minutes)return moment(this.args.topic.last_posted_at).add(this.args.topicTimer.duration_minutes,"minutes")dt7948.n(this.prototype,"onTimeSelected",[r.action]))();changeDuration(e){this.args.topicTimer.duration_minutes=e}static #l=(()=>dt7948.n(this.prototype,"changeDuration",[r.action]))()}(0,f.setComponentTemplate)(g,_)},11935:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(35533),n=i(83133),r=i(53397),o=i(843),a=i(68636),l=i(16303);let c=dt7948.c(class extends a.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();get content(){let e=[];return this.email.primary&&e.push({id:"updateEmail",icon:"pencil",name:(0,o.i18n)("user.email.update_email"),description:""}),!this.email.primary&&this.email.confirmed&&e.push({id:"setPrimaryEmail",icon:"star",name:(0,o.i18n)("user.email.set_primary"),description:""}),this.email.primary||e.push({id:"destroyEmail",icon:"xmark",name:(0,o.i18n)("user.email.destroy"),description:""}),e}static #i=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("email")]))();onChange(e){switch(e){case"updateEmail":this.router.transitionTo("preferences.email");break;case"setPrimaryEmail":this.setPrimaryEmail(this.email.email);break;case"destroyEmail":this.destroyEmail(this.email.email)}}static #s=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,l.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,r.classNames)("email-dropdown")])},90564:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>L});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18387),c=i(62053),u=i(83133),d=i(68587),p=i(80370),h=i(81329),m=i(18638),g=i(80278),f=i(81133),_=i(4964),y=i(46153),b=i(48137),w=i(6864),k=i(88355),T=i(17112),S=i(46301),C=i(63748),x=i(77093),A=i(65573),E=i(50409),D=i(843),P=i(31220),M=i(53653),F=i(85671);let I=["favorites","smileys_&_emotion"],N=(e,t)=>e.tonable&&1!==t?`:${e.name}:t${t}:`:`:${e.name}:`,O=(e,t)=>e.tonable&&1!==t?e.url.split(".png")[0]+`/${t}.png`:e.url;class L extends s.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[u.service]))();#ex=(()=>void dt7948.i(this,"emojiStore"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[u.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"site",[u.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"isFiltering",[n.tracked],function(){return!1}))();#ti=(()=>void dt7948.i(this,"isFiltering"))();static #c=(()=>dt7948.g(this.prototype,"filteredEmojis",[n.tracked],function(){return null}))();#ts=(()=>void dt7948.i(this,"filteredEmojis"))();static #u=(()=>dt7948.g(this.prototype,"scrollObserverEnabled",[n.tracked],function(){return!0}))();#tn=(()=>void dt7948.i(this,"scrollObserverEnabled"))();static #d=(()=>dt7948.g(this.prototype,"scrollDirection",[n.tracked],function(){return"up"}))();#tr=(()=>void dt7948.i(this,"scrollDirection"))();static #p=(()=>dt7948.g(this.prototype,"emojis",[n.tracked],function(){return null}))();#to=(()=>void dt7948.i(this,"emojis"))();static #h=(()=>dt7948.g(this.prototype,"visibleSections",[n.tracked],function(){return I}))();#ta=(()=>void dt7948.i(this,"visibleSections"))();static #m=(()=>dt7948.g(this.prototype,"lastVisibleSection",[n.tracked],function(){return"favorites"}))();#tl=(()=>void dt7948.i(this,"lastVisibleSection"))();static #g=(()=>dt7948.g(this.prototype,"term",[n.tracked],function(){return this.args.term}))();#tc=(()=>void dt7948.i(this,"term"))();prevYPosition=0;scrollableNode;setupSectionsNavScroll=(()=>(0,d.modifier)(e=>((0,T.disableBodyScroll)(e),()=>{(0,T.enableBodyScroll)(e)})))();scrollListener=(()=>(0,d.modifier)(e=>(this.scrollableNode=e,(0,T.disableBodyScroll)(e),e.addEventListener("scroll",this._handleScroll),()=>{this.scrollableNode=null,e.removeEventListener("scroll",this._handleScroll),(0,T.enableBodyScroll)(e)})))();addVisibleSections(e){this.visibleSections=(0,A.makeArray)(this.visibleSections).concat((0,A.makeArray)(e)).uniq()}get sections(){return!this.loading&&this.emojiStore.list?Object.keys(this.emojiStore.list):[]}get groups(){return{favorites:this.emojiStore.favoritesForContext(this.args.context).filter(e=>!this.site.denied_emojis?.includes(e)).map(e=>({name:e,group:"favorites",url:(0,E.emojiUrlFor)(e)})),...this.emojiStore.list}}get flatEmojis(){if(!this.emojiStore.list)return[];let{favorites:e,...t}=this.emojiStore.list;return Object.values(t).flat()}registerFilterInput(e){this.filterInput=e}static #A=(()=>dt7948.n(this.prototype,"registerFilterInput",[a.action]))();clearFavorites(){this.emojiStore.resetContext(this.args.context)}static #E=(()=>dt7948.n(this.prototype,"clearFavorites",[a.action]))();trapKeyDownEvents(e){"ArrowUp"===e.key&&e.stopPropagation(),"ArrowDown"===e.key&&e.target===this.filterInput&&(e.stopPropagation(),e.preventDefault(),this.scrollableNode.querySelector('.emoji[tabindex="0"]')?.focus())}static #D=(()=>dt7948.n(this.prototype,"trapKeyDownEvents",[a.action]))();didInputFilter(e){if(this.isFiltering=!0,!e?.length){(0,c.cancel)(this.debouncedFilterHandler),this.visibleSections=I,this.filteredEmojis=null,this.isFiltering=!1;return}this.debouncedFilterHandler=(0,S.default)(this,this.debouncedDidInputFilter,e,x.INPUT_DELAY)}static #P=(()=>dt7948.n(this.prototype,"didInputFilter",[a.action]))();focusFilter(e){e?.focus({preventScroll:!0})}static #Q=(()=>dt7948.n(this.prototype,"focusFilter",[a.action]))();debouncedDidInputFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.toLowerCase();let t=(0,p.emojiSearch)(e,{exclude:this.site.denied_emojis}).slice(0,50);this.filteredEmojis=this.flatEmojis.filter(e=>t.includes(e.name))??[],this.isFiltering=!1,(0,c.schedule)("afterRender",()=>{this.scrollableNode&&(this.scrollableNode.scrollTop=0)})}onSectionsKeyDown(e){"Enter"===e.key?this.didSelectEmoji(e):this.didNavigateSection(e)}static #J=(()=>dt7948.n(this.prototype,"onSectionsKeyDown",[a.action]))();didNavigateSection(e){let t=e=>[...e.querySelectorAll(".emoji")],i=e=>{t(e)[0].focus()},s=e.target.closest(".emoji-picker__section"),n=()=>{this.filterInput?.focus()},r=()=>[...document.querySelectorAll(".emoji-picker__section:not(.hidden) .emoji")];if("ArrowRight"===e.key){e.preventDefault();let t=e.target.nextElementSibling;if(t)t.focus();else{let e=s.nextElementSibling;e&&i(e)}}if("ArrowLeft"===e.key){e.preventDefault();let i=e.target.previousElementSibling;if(i)i.focus();else{let e=s.previousElementSibling;e?(e=>{let i=t(e);return i[i.length-1].focus()})(e):n()}}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=r().filter(t=>t.offsetTop>e.target.offsetTop).findBy("offsetLeft",e.target.offsetLeft);if(t)t.focus();else{let e=s.nextElementSibling;e&&i(e)}}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=r().reverse().filter(t=>t.offsetTopdt7948.n(this.prototype,"didNavigateSection",[a.action]))();async didSelectEmoji(e){if(e.target.classList.contains("emoji")&&("click"===e.type||"Enter"===e.key)){e.preventDefault(),e.stopPropagation();let t=e.target.dataset.emoji,i=e.target.dataset.tonable,s=this.emojiStore.diversity;i&&s>1&&(t=`${t}:t${s}`),this.emojiStore.trackEmojiForContext(t,this.args.context),this.args.didSelectEmoji?.(t),await this.args.close?.()}}static #Z=(()=>dt7948.n(this.prototype,"didSelectEmoji",[a.action]))();didRequestSection(e){this.term="",this.didInputFilter(null),this.scrollObserverEnabled=!1,this.addVisibleSections(this._getSectionsUpTo(e)),this.lastVisibleSection=e,this.scrollableNode&&this.capabilities.isIOS&&(this.scrollableNode.style.overflow="hidden"),(0,c.next)(()=>{(0,c.schedule)("afterRender",()=>{document.querySelector(`.emoji-picker__section[data-section="${e}"]`).scrollIntoView({block:"nearest"}),this.scrollableNode&&this.capabilities.isIOS&&(this.scrollableNode.style.overflow="scroll"),this.scrollObserverEnabled=!0})})}static #ee=(()=>dt7948.n(this.prototype,"didRequestSection",[a.action]))();async loadEmojis(){if(this.emojiStore.list){this.didInputFilter(this.term);return}this.loading=!0;try{this.emojiStore.list=await (0,w.ajax)("/emojis.json"),this.didInputFilter(this.term)}catch(e){(0,k.popupAjaxError)(e)}finally{this.loading=!1}}static #et=(()=>dt7948.n(this.prototype,"loadEmojis",[a.action]))();_handleScroll(e){if(!this.scrollObserverEnabled)return;this._setScrollDirection(e.target);let t=[...document.querySelectorAll(".emoji-picker__section")].filter(t=>this._isSectionVisibleInPicker(t,e.target));if(t?.length){let e;e="up"===this.scrollDirection||this.prevYPosition<50?t.firstObject:t.lastObject,this.lastVisibleSection=e.dataset.section,this.addVisibleSections(t.map(e=>e.dataset.section)),document.querySelector(".emoji-picker__section-btn.active")?.scrollIntoView({block:"nearest",inline:"start"})}}static #ei=(()=>dt7948.n(this.prototype,"_handleScroll",[C.bind]))();_setScrollDirection(e){e.scrollTop>this.prevYPosition?this.scrollDirection="down":this.scrollDirection="up",this.prevYPosition=e.scrollTop}_isSectionVisibleInPicker(e,t){let{bottom:i,height:s,top:n}=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n<=r.top?r.top-n<=s:i-r.bottom<=s}_getSectionsUpTo(e){let t=[];for(let i of document.querySelectorAll(".emoji-picker__section")){let s=i.dataset.section;if(t.push(i.dataset.section),s===e)break}return t}static #es=(()=>(0,M.setComponentTemplate)((0,F.createTemplateFactory)({id:"qW80OW4L",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[28,[32,0],["emoji-picker"],null]],[17,1],[4,[32,1],[[30,0,["loadEmojis"]]],null],[4,[32,1],[[52,[30,2],[30,2],[28,[32,2],null,null]]],null],[4,[32,3],["keydown",[30,0,["trapKeyDownEvents"]]],null],[12],[1,"\\n "],[10,0],[14,0,"emoji-picker__filter-container"],[12],[1,"\\n "],[8,[32,4],[[16,"placeholder",[28,[32,5],["chat.emoji_picker.search_placeholder"],null]],[4,[32,1],[[52,[30,0,["site","desktopView"]],[30,0,["focusFilter"]],[28,[32,2],null,null]]],null],[4,[32,1],[[30,0,["registerFilterInput"]]],null]],[["@value","@filterAction","@icons","@containerClass"],[[30,0,["term"]],[28,[32,6],[[30,0,["didInputFilter"]]],null],[28,[32,7],null,[["right"],["magnifying-glass"]]],"emoji-picker__filter"]],null],[1,"\\n\\n "],[8,[32,8],null,null,null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,9],[[24,0,"btn-transparent emoji-picker__close-btn"]],[["@icon","@action"],["xmark",[30,3]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"emoji-picker__content"],[12],[1,"\\n "],[11,0],[24,0,"emoji-picker__sections-nav"],[4,[30,0,["setupSectionsNavScroll"]],null,null],[12],[1,"\\n"],[42,[28,[31,2],[[30,0,["groups"]]],null],null,[[[41,[30,4,["length"]],[[[1," "],[8,[32,9],[[16,0,[28,[32,0],["btn-flat","emoji-picker__section-btn",[52,[28,[32,10],[[30,0,["lastVisibleSection"]],[30,5]],null],"active"]],null]],[24,"tabindex","-1"],[16,"data-section",[30,5]]],[["@action"],[[28,[32,11],[[30,0,["didRequestSection"]],[30,5]],null]]],[["default"],[[[[1,"\\n"],[41,[28,[32,10],[[30,5],"favorites"],null],[[[1," "],[1,[28,[32,12],[":star:"],null]],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,"width","18"],[14,"height","18"],[14,0,"emoji"],[15,"src",[28,[32,13],[[30,4],"0.url"],null]],[12],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null]],[4,5]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["emojiStore","list"]],[[[1," "],[11,0],[24,0,"emoji-picker__scrollable-content"],[4,[30,0,["scrollListener"]],null,null],[12],[1,"\\n "],[11,0],[24,0,"emoji-picker__sections"],[24,"role","button"],[4,[32,3],["click",[30,0,["didSelectEmoji"]]],null],[4,[32,3],["keydown",[30,0,["onSectionsKeyDown"]]],null],[12],[1,"\\n"],[41,[30,0,["term","length"]],[[[1," "],[10,0],[14,0,"emoji-picker__section filtered"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["filteredEmojis"]]],null]],null],null,[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,14],[[30,6],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","0"],[15,"data-emoji",[30,6,["name"]]],[15,"data-tonable",[52,[30,6,["tonable"]],"true"]],[15,"alt",[30,6,["name"]]],[15,"title",[28,[32,15],[[30,6],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[6]],[[[41,[30,0,["isFiltering"]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner medium"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"emoji-picker__no-results"],[12],[1,"\\n "],[1,[28,[32,5],["chat.emoji_picker.no_results"],null]],[1,"\\n "],[1,[28,[32,12],[":crying_cat_face:"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[30,0,["groups"]]],null],null,[[[41,[30,7],[[[1," "],[10,0],[15,0,[28,[32,0],["emoji-picker__section",[52,[28,[32,16],[[30,0,["filteredEmojis"]],null],null],"hidden"]],null]],[15,"data-section",[30,8]],[14,"role","region"],[15,"aria-label",[28,[32,5],[[28,[32,17],["chat.emoji_picker.",[30,8]],null]],[["translatedFallback"],[[30,8]]]]],[12],[1,"\\n "],[10,0],[14,0,"emoji-picker__section-title-container"],[12],[1,"\\n "],[10,"h2"],[14,0,"emoji-picker__section-title"],[12],[1,"\\n "],[1,[28,[32,5],[[28,[32,17],["chat.emoji_picker.",[30,8]],null]],[["translatedFallback"],[[30,8]]]]],[1,"\\n "],[13],[1,"\\n"],[41,[28,[32,10],[[30,8],"favorites"],null],[[[1," "],[8,[32,9],[[24,0,"btn-transparent"]],[["@icon","@action"],["trash-can",[30,0,["clearFavorites"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"emoji-picker__section-emojis"],[12],[1,"\\n"],[44,[[28,[32,13],[[30,7],"0"],null]],[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,14],[[30,9],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","0"],[15,"data-emoji",[30,9,["name"]]],[15,"data-tonable",[52,[30,9,["tonable"]],"true"]],[15,"alt",[30,9,["name"]]],[15,"title",[28,[32,15],[[30,9],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[9]]],[1,"\\n"],[41,[28,[32,18],[[30,0,["visibleSections"]],[30,8]],null],[[[42,[28,[31,3],[[28,[31,3],[[30,7]],null]],null],null,[[[41,[28,[32,19],[[30,11],0],null],[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,14],[[30,10],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","-1"],[15,"data-emoji",[30,10,["name"]]],[15,"data-tonable",[52,[30,10,["tonable"]],"true"]],[15,"alt",[30,10,["name"]]],[15,"title",[28,[32,15],[[30,10],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[]],null]],[10,11]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[7,8]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner medium"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@didInsert","@close","emojis","section","emoji","emojis","section","emoji","emoji","index"],false,["if","each","-each-in","-track-array","let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/content.js",scope:()=>[f.default,l.default,_.default,o.on,g.default,D.i18n,b.default,r.hash,P.default,m.default,h.eq,r.fn,y.default,a.get,O,N,h.notEq,r.concat,h.includes,h.gt],isStrictMode:!0}),this))()}},74423:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(90564),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"cBkj03m1",block:'[[[1,"\\n "],[8,[32,0],null,[["@close","@term","@didSelectEmoji","@context"],[[30,1],[30,2,["term"]],[30,2,["didSelectEmoji"]],[30,2,["context"]]]],null],[1,"\\n"]],["@close","@data"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/detached.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"detached:EmojiPickerDetached"))},31220:(e,t,i)=>{"use strict";i.r(t),i.d(t,{FITZPATRICK_MODIFIERS:()=>m,default:()=>g});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(81329),l=i(18638),c=i(82698),u=i(46153),d=i(12610),p=i(53653),h=i(85671);let m=[{scale:1,modifier:null},{scale:2,modifier:":t2"},{scale:3,modifier:":t3"},{scale:4,modifier:":t4"},{scale:5,modifier:":t5"},{scale:6,modifier:":t6"}];class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[o.service]))();#ex=(()=>void dt7948.i(this,"emojiStore"))();fitzpatrickModifiers=(()=>m)();didRequestFitzpatrickScale(e){this.emojiStore.diversity=e,this.api.close()}static #i=(()=>dt7948.n(this.prototype,"didRequestFitzpatrickScale",[r.action]))();registerApi(e){this.api=e}static #s=(()=>dt7948.n(this.prototype,"registerApi",[r.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"6nWqOkPn",block:'[[[1,"\\n "],[8,[32,0],null,[["@contentClass","@triggerClass","@onRegisterApi"],["emoji-picker__diversity-menu","emoji-picker__diversity-trigger btn-transparent",[30,0,["registerApi"]]]],[["trigger","content"],[[[[1,"\\n"],[41,[28,[32,1],[[30,0,["emojiStore","diversity"]],1],null],[[[1," "],[1,[28,[32,2],[":clap:"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],[[28,[32,3],[":clap:t",[30,0,["emojiStore","diversity"]],":"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[32,4],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["fitzpatrickModifiers"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,5],[[24,0,"btn-transparent emoji-picker__diversity-item"],[16,"data-level",[30,2,["scale"]]]],[["@action"],[[28,[32,6],[[30,0,["didRequestFitzpatrickScale"]],[30,2,["scale"]]],null]]],[["default"],[[[[1,"\\n"],[41,[28,[32,1],[[30,2,["scale"]],1],null],[[[1," "],[1,[28,[32,2],[":clap:"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],[[28,[32,3],[":clap:t",[30,2,["scale"]],":"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]],null],[1," "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["dropdown","fitzpatrick"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/diversity-menu.js",scope:()=>[d.default,a.eq,u.default,n.concat,c.default,l.default,n.fn],isStrictMode:!0}),this))()}},63829:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(75446),r=i(35533),o=i(90564),a=i(81133),l=i(72738),c=i(46153),u=i(12610),d=i(53653),p=i(85671);class h extends s.default{onRegisterMenu(e){this.menu=e}static #e=(()=>dt7948.n(this.prototype,"onRegisterMenu",[r.action]))();get icon(){return this.args.icon??"face-smile"}get context(){return this.args.context??"topic"}get modalForMobile(){return this.args.modalForMobile??!0}static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"ZQ8bzHGP",block:'[[[1,"\\n "],[8,[32,0],null,[["@triggerClass","@contentClass","@onRegisterApi","@identifier","@groupIdentifier","@modalForMobile","@maxWidth","@onShow","@onClose"],[[28,[32,1],[[30,1]],null],"emoji-picker-content",[30,0,["onRegisterMenu"]],"emoji-picker","emoji-picker",[30,0,["modalForMobile"]],405,[30,2],[30,3]]],[["trigger","content"],[[[[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,2],[[28,[32,3],[":",[30,4],":"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,5],[[[1," "],[10,1],[14,0,"d-button-label"],[12],[1,[30,5]],[13],[1,"\\n"]],[]],[[[1," ​\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[32,5],null,[["@close","@didSelectEmoji","@context"],[[30,0,["menu","close"]],[30,6],[30,0,["context"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@btnClass","@onShow","@onClose","@emoji","@label","@didSelectEmoji"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/index.js",scope:()=>[u.default,a.default,c.default,n.concat,l.default,o.default],isStrictMode:!0}),this))()}},74740:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"GyNqhby7",block:'[[[1,"\\n "],[10,0],[14,0,"empty-state-container"],[12],[1,"\\n "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,[30,1]],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,[30,2]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@title","@body"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/empty-state.js",isStrictMode:!0}),(0,r.default)(void 0,"empty-state:EmptyState"))},26372:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(18638),a=i(81133),l=i(6864),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"expanded",[n.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();loading=!1;async toggleItem(){if(!this.loading){if(this.expanded){this.expanded=!1,this.args.item.set("expandedExcerpt",null);return}this.loading=!0;try{let e=await (0,l.ajax)(`/posts/by_number/${this.args.item.topic_id}/${this.args.item.post_number}.json`);this.expanded=!0,this.args.item.set("expandedExcerpt",e.cooked)}finally{this.loading=!1}}}static #i=(()=>dt7948.n(this.prototype,"toggleItem",[r.action]))();static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"m1wRDXPI",block:'[[[1,"\\n"],[41,[30,1,["truncated"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["btn-transparent",[52,[30,0,["expanded"]],"collapse-item","expand-item"]],null]]],[["@action","@icon","@title"],[[30,0,["toggleItem"]],[52,[30,0,["expanded"]],"chevron-up","chevron-down"],"post.expand_collapse"]],null],[1,"\\n"]],[]],null],[1," "]],["@item"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/expand-post.js",scope:()=>[o.default,a.default],isStrictMode:!0}),this))()}},38679:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(99615),n=new Map;function r(e){var t=n.get(e);t&&t.destroy()}function o(e){var t=n.get(e);t&&t.update()}var a=null;"undefined"==typeof window?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t,i=null,s=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=(function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",l),e.removeEventListener("input",r),window.removeEventListener("resize",l),Object.keys(t).forEach(function(i){return e.style[i]=t[i]}),n.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",l),e.addEventListener("input",r),window.addEventListener("resize",l),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:o,update:l}),l()}function a(t){var n,r,o=t.restoreTextAlign,l=void 0===o?null:o,c=t.testForHeightReduction,u=s.overflowY;if(0!==e.scrollHeight&&("vertical"===s.resize?e.style.resize="none":"both"===s.resize&&(e.style.resize="horizontal"),(void 0===c||c)&&(n=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],i=e[1];t.style.scrollBehavior="auto",t.scrollTop=i,t.style.scrollBehavior=null})}}(e),e.style.height=""),r="content-box"===s.boxSizing?e.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):e.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),"none"!==s.maxHeight&&r>parseFloat(s.maxHeight)?("hidden"===s.overflowY&&(e.style.overflow="scroll"),r=parseFloat(s.maxHeight)):"hidden"!==s.overflowY&&(e.style.overflow="hidden"),e.style.height=r+"px",l&&(e.style.textAlign=l),n&&n(),i!==r&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=r),u!==s.overflow&&!l)){var d=s.textAlign;"hidden"===s.overflow&&(e.style.textAlign="start"===d?"end":"start"),a({restoreTextAlign:d,testForHeightReduction:!0})}}function l(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e});var l=a,c=i(68587),u=i(3539),d=i(53653),p=i(85671),h=i(73306);let m=(0,c.modifier)(e=>(l(e),()=>l.destroy(e))),g=(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"k3lthKwc",block:'[[[1,"\\n "],[11,"textarea"],[16,"autocorrect",[30,1]],[16,0,[30,2]],[16,"maxlength",[30,3]],[16,3,[30,4]],[16,"rows",[30,5]],[16,2,[30,6]],[17,7],[4,[32,0],null,null],[4,[32,1],null,null],[4,[52,[30,8],[50,[32,2],2,["input",[30,8]],null]],null,null],[12],[13],[1,"\\n"]],["@autocorrect","@class","@maxlength","@name","@rows","@value","&attrs","@input"],false,["if","modifier"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/expanding-text-area.js",scope:()=>[u.default,m,s.on],isStrictMode:!0}),(0,h.default)(void 0,"expanding-text-area:ExpandingTextArea"))},77924:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18638),c=i(98740),u=i(6864),d=i(88355),p=i(42236),h=i(3539),m=i(843),g=i(53653),f=i(85671);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"isSaving",[n.tracked],function(){return!1}))();#tu=(()=>void dt7948.i(this,"isSaving"))();static #i=(()=>dt7948.g(this.prototype,"value",[n.tracked],function(){return this.args.newValue||this.args.initialValue}))();#td=(()=>void dt7948.i(this,"value"))();buttonTitle=(()=>(0,m.i18n)("composer.title",{modifier:(0,p.translateModKey)("Meta+")}))();get disabled(){return this.value===this.args.initialValue}onKeydown(e){"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&!this.disabled&&this.save()}static #s=(()=>dt7948.n(this.prototype,"onKeydown",[a.action]))();updateValue(e){e.preventDefault(),this.value=e.target.value}static #l=(()=>dt7948.n(this.prototype,"updateValue",[a.action]))();updateValueProperty(e){this.value=e}static #c=(()=>dt7948.n(this.prototype,"updateValueProperty",[a.action]))();async save(){this.isSaving=!0;try{let e=await (0,u.ajax)(`/posts/${this.args.post.id}`),t=e.raw.replace(this.args.initialValue,this.value);if(t===e.raw)throw Error("Failed to update the post. Did your fast edit include a special character?");await this.args.post.save({raw:t})}catch(e){(0,d.popupAjaxError)(e)}finally{this.isSaving=!1,this.args.close()}}static #u=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #d=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"LYn4DRiS",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"fast-edit-container"],[4,[32,0],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n "],[11,"textarea"],[24,1,"fast-edit-input"],[4,[32,0],["input",[30,0,["updateValue"]]],null],[4,[32,1],null,null],[12],[1,[30,0,["value"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"fast-edit-container__footer"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-small btn-primary save-fast-edit"]],[["@action","@icon","@label","@translatedTitle","@isLoading","@disabled"],[[30,0,["save"]],"pencil","composer.save_edit",[30,0,["buttonTitle"]],[30,0,["isSaving"]],[30,0,["disabled"]]]],null],[1,"\\n\\n "],[8,[32,3],null,[["@name","@defaultGlimmer","@outletArgs"],["fast-edit-footer-after",true,[28,[32,4],null,[["initialValue","newValue","updateValue"],[[30,1],[30,2],[30,0,["updateValueProperty"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@initialValue","@newValue"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/fast-edit.js",scope:()=>[o.on,h.default,l.default,c.default,r.hash],isStrictMode:!0}),this))()}},24406:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(25124),o=i.n(r);let a=(0,i(85671).createTemplateFactory)({id:"BhaMd7lX",block:'[[[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[35,2],[[30,0,["topic","fancyTitle"]]],null]],[13],[1,"\\n"],[8,[39,3],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[14,0,"last-posted-at"],[12],[1,[28,[35,4],[[30,0,["topic","last_posted_at"]]],null]],[13]],[],false,["raw","a","html-safe","topic-post-badges","format-age"]]',moduleName:"discourse/components/featured-topic.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{click(e){if(e.target.closest(".last-posted-at"))return this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:o()(e.target).offset()}),!1}},[(0,n.attributeBindings)("topic.id:data-topic-id"),(0,n.classNameBindings)(":featured-topic")]),c=(0,s.setComponentTemplate)(a,l)},80278:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(53653),o=i(99615),a=i(68587),l=i(81133),c=i(72738),u=i(4964),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"isFocused",[n.tracked],function(){return!1}))();#tp=(()=>void dt7948.i(this,"isFocused"))();focusState=(()=>(0,a.modifier)(e=>{let t=()=>{this.isFocused=!0},i=()=>{this.isFocused=!1};return e.addEventListener("focusin",t),e.addEventListener("focusout",i),()=>{e.removeEventListener("focusin",t),e.removeEventListener("focusout",i)}}))();static #i=(()=>(0,r.setComponentTemplate)((0,d.createTemplateFactory)({id:"Y+/gX3QE",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],[[30,1],"filter-input-container",[52,[30,0,["isFocused"]],"is-focused"]],null]],[12],[1,"\\n"],[41,[30,2,["left"]],[[[1," "],[1,[28,[32,1],[[30,2,["left"]]],[["class"],["-left"]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],[[24,0,"filter-input"],[17,3],[4,[30,0,["focusState"]],null,null],[4,[32,3],["input",[52,[30,5],[30,5],[28,[32,4],null,null]]],null]],[["@value"],[[30,4]]],null],[1,"\\n\\n "],[18,6,null],[1,"\\n\\n"],[41,[30,2,["right"]],[[[1," "],[1,[28,[32,1],[[30,2,["right"]]],[["class"],["-right"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@containerClass","@icons","&attrs","@value","@filterAction","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/filter-input.js",scope:()=>[l.default,c.default,r.Input,o.on,u.default],isStrictMode:!0}),this))()}},72135:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(30574),r=i(53397),o=i(63748),a=i(23865),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"qoTVXSq2",block:'[[[10,0],[15,0,[30,0,["wrapperClassNames"]]],[12],[1,"\\n"],[41,[30,0,["isNotifyUser"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["changePostActionType"]],[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n "],[10,1],[14,0,"description"],[12],[1,[28,[35,8],[[30,0,["flag","description"]]],null]],[13],[1,"\\n"],[41,[30,0,["showMessageInput"]],[[[1," "],[8,[39,9],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,10],["flagging.notify_user_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1," "],[10,0],[15,0,[28,[37,11],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n "],[1,[30,0,["customMessageLength"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["staffFlagsAvailable"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,10],["flagging.notify_staff"],null]],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[15,0,[29,["controls ",[30,0,["flag","name_key"]]]]],[12],[1,"\\n "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[16,"checked",[30,0,["selected"]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["changePostActionType"]],[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n "],[10,"strong"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1," "],[10,0],[14,0,"description"],[12],[1,[28,[35,8],[[30,0,["description"]]],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showMessageInput"]],[[[1," "],[8,[39,9],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,10],["flagging.notify_moderators_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1," "],[10,0],[15,0,[28,[37,11],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n "],[1,[30,0,["customMessageLength"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showConfirmation"]],[[[1," "],[10,"label"],[14,0,"checkbox-label flag-confirmation"],[12],[1,"\\n "],[8,[39,4],[[24,3,"confirmation"]],[["@type","@checked"],["checkbox",[30,0,["isConfirmed"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,10],["flagging.confirmation_illegal"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","h3","label","input","on","fn","span","html-safe","textarea","i18n","concat-class","hr","strong"]]',moduleName:"discourse/components/flag-action-type.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"showMessageInput",[(0,n.and)("flag.require_message","selected")]))();#th=(()=>void dt7948.i(this,"showMessageInput"))();static #i=(()=>dt7948.g(this.prototype,"showConfirmation",[(0,n.and)("flag.isIllegal","selected")]))();#tm=(()=>void dt7948.i(this,"showConfirmation"))();static #s=(()=>dt7948.g(this.prototype,"showDescription",[(0,n.not)("showMessageInput")]))();#tg=(()=>void dt7948.i(this,"showDescription"))();static #l=(()=>dt7948.g(this.prototype,"isNotifyUser",[(0,n.equal)("flag.name_key","notify_user")]))();#tf=(()=>void dt7948.i(this,"isNotifyUser"))();wrapperClassNames(e){return`flag-action-type ${e}`}static #c=(()=>dt7948.n(this.prototype,"wrapperClassNames",[(0,o.default)("flag.name_key")]))();customPlaceholder(e){return(0,l.i18n)("flagging.custom_placeholder_"+e,{defaultValue:(0,l.i18n)("flagging.custom_placeholder_notify_moderators")})}static #u=(()=>dt7948.n(this.prototype,"customPlaceholder",[(0,o.default)("flag.name_key")]))();formattedName(e,t,i){return["notify_user","notify_moderators"].includes(t)?e.replace(/{{username}}|%{username}/,i):(0,l.i18n)("flagging.formatted_name."+t,{defaultValue:e})}static #d=(()=>dt7948.n(this.prototype,"formattedName",[(0,o.default)("flag.name","flag.name_key","username")]))();selected(e,t){return e===t}static #p=(()=>dt7948.n(this.prototype,"selected",[(0,o.default)("flag","selectedFlag")]))();description(e,t){return this.site.mobileView?t:e}static #h=(()=>dt7948.n(this.prototype,"description",[(0,o.default)("flag.description","flag.short_description")]))();customMessageLengthClasses(e){return edt7948.n(this.prototype,"customMessageLengthClasses",[(0,o.default)("message.length")]))();customMessageLength(e){let t=e||0,i=this.siteSettings.min_personal_message_post_length;return 0===t?(0,l.i18n)("flagging.custom_message.at_least",{count:i}):tdt7948.n(this.prototype,"customMessageLength",[(0,o.default)("message.length")]))()},[(0,r.tagName)("")]),d=(0,s.setComponentTemplate)(c,u)},23656:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(62053),r=i(42064);let o=(0,i(85671).createTemplateFactory)({id:"US7eVXzz",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["flags"]]],null]],null],null,[[[1," "],[18,2,[[30,1]]],[1,"\\n"]],[1]],[[[1," "],[1,[28,[35,3],["flagging.cant"],null]],[1,"\\n"]],[]]]],["f","&default"],false,["each","-track-array","yield","i18n"]]',moduleName:"discourse/components/flag-selection.hbs",isStrictMode:!1});class a extends s.default{_selectRadio(){this.element.querySelector("input[type='radio']").checked=!1;let e=this.nameKey;if(!e)return;let t=this.element.querySelector("#radio_"+e);t&&(t.checked="true")}selectedChanged(){(0,n.next)(this,this._selectRadio)}static #e=(()=>dt7948.n(this.prototype,"selectedChanged",[(0,r.observes)("nameKey")]))()}(0,s.setComponentTemplate)(o,a)},35445:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(81133),r=i(53653),o=i(85671);let a=["success","error","warning","info"];class l extends s.default{get flashClass(){if(this.args.type&&!a.includes(this.args.type))throw`@type must be one of ${a.join(", ")}`;return this.args.type?`alert-${this.args.type}`:null}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ZYOewSyP",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[16,0,[28,[32,0],["alert",[30,0,["flashClass"]]],null]],[17,2],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1," "]],["@flash","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/flash-message.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},22073:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(63748),o=i(843);let a=(0,i(85671).createTemplateFactory)({id:"Y4OXmcyw",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/flat-button.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{resolvedTitle(e,t){return e?(0,o.i18n)(e):t||void 0}static #e=(()=>dt7948.n(this.prototype,"resolvedTitle",[(0,r.default)("title","translatedTitle")]))();keyDown(e){if("Enter"===e.key)return this.action?.(),!1}click(){return this.action?.(),!1}},[(0,n.attributeBindings)("disabled","resolvedTitle:title"),(0,n.classNames)("btn-flat"),(0,n.tagName)("button")]),c=(0,s.setComponentTemplate)(a,l)},17788:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"kKbO7+SV",block:'[[[10,"h3"],[12],[1,"\\n "],[1,[30,0,["message"]]],[1,"\\n "],[18,1,null],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["education"]],[[[1," "],[10,0],[14,0,"education"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["education"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["&default"],false,["h3","yield","if","div","html-safe"]]',moduleName:"discourse/components/footer-message.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.classNames)("footer-message")]),a=(0,s.setComponentTemplate)(r,o)},41194:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(81133),l=i(69488),c=i(42236),u=i(2012),d=i(69909),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"scrollDirection",[r.service]))();#tr=(()=>void dt7948.i(this,"scrollDirection"))();static #l=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #c=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #u=(()=>dt7948.g(this.prototype,"historyStore",[r.service]))();#t_=(()=>void dt7948.i(this,"historyStore"))();_modalOn(){(0,c.postRNWebviewMessage)("headerBg","rgb(0, 0, 0)")}_modalOff(){let e=document.querySelector(".d-header-wrap .d-header");e&&(0,c.postRNWebviewMessage)("headerBg",window.getComputedStyle(e).backgroundColor)}setDiscourseHubHeaderBg(e){this.capabilities.isAppWebview&&(e?this._modalOn():this._modalOff())}static #d=(()=>dt7948.n(this.prototype,"setDiscourseHubHeaderBg",[n.action]))();dismiss(){(0,c.postRNWebviewMessage)("dismiss",!0)}static #p=(()=>dt7948.n(this.prototype,"dismiss",[n.action]))();share(){(0,c.postRNWebviewMessage)("shareUrl",window.location.href)}static #h=(()=>dt7948.n(this.prototype,"share",[n.action]))();goBack(e,t){window.history.back(),t.preventDefault()}static #m=(()=>dt7948.n(this.prototype,"goBack",[n.action]))();goForward(e,t){window.history.forward(),t.preventDefault()}static #g=(()=>dt7948.n(this.prototype,"goForward",[n.action]))();get isVisible(){return[u.UNSCROLLED,u.SCROLLED_UP].includes(this.scrollDirection.lastScrollDirection)&&!this.composer.isOpen&&(this.capabilities.isAppWebview||this.canGoBack||this.canGoForward)}get canGoBack(){return this.historyStore.hasPastEntries||!!document.referrer}get canGoForward(){return this.historyStore.hasFutureEntries}static #A=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"TYy7X6/M",block:'[[[1,"\\n "],[1,[28,[30,0,["setDiscourseHubHeaderBg"]],[[30,0,["modal","activeModal"]]],null]],[1,"\\n\\n"],[41,[30,0,["capabilities","isIpadOS"]],[[[1," "],[1,[28,[32,0],["footer-nav-ipad"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isVisible"]],[[[1," "],[1,[28,[32,0],["footer-nav-visible"],null]],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[10,0],[15,0,[28,[32,1],["footer-nav",[52,[30,0,["isVisible"]],"visible"]],null]],[12],[1,"\\n "],[10,0],[14,0,"footer-nav-widget"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@disabled","@title","@forwardEvent"],[[30,0,["goBack"]],"chevron-left",[28,[32,3],[[30,0,["canGoBack"]]],null],"footer_nav.back",true]],null],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@disabled","@title","@forwardEvent"],[[30,0,["goForward"]],"chevron-right",[28,[32,3],[[30,0,["canGoForward"]]],null],"footer_nav.forward",true]],null],[1,"\\n\\n"],[41,[30,0,["capabilities","isAppWebview"]],[[[1," "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@title"],[[30,0,["share"]],"link","footer_nav.share"]],null],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@title"],[[30,0,["dismiss"]],"chevron-down","footer_nav.dismiss"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/footer-nav.js",scope:()=>[l.default,a.default,o.default,d.default],isStrictMode:!0}),this))()}},60463:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"ZLvtHLvj",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","checkbox"],[12],[1,"\\n "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[8,[39,2],[[16,3,[30,1]],[24,0,"form-template-field__checkbox"],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@checked","@type"],[[30,3],"checkbox"]],null],[1,"\\n "],[1,[30,4,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,4],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,4,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,6],[[30,4,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@id","@validations","@value","@attributes"],false,["div","label","input","if","d-icon","span","html-safe"]]',moduleName:"discourse/components/form-template-field/checkbox.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"checkbox"))},83193:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Ypoqlagg",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","dropdown"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"select"],[15,3,[30,3]],[14,0,"form-template-field__dropdown"],[15,"required",[52,[30,2,["required"]],"required",""]],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1," "],[10,"option"],[14,0,"form-template-field__dropdown-placeholder"],[14,2,""],[14,"disabled",""],[14,"selected",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,9],[[28,[37,9],[[30,4]],null]],null],null,[[[1," "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[37,10],[[30,6],[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n"],[13]],["@attributes","@validations","@id","@choices","choice","@value"],false,["div","if","label","d-icon","span","html-safe","select","option","each","-track-array","eq"]]',moduleName:"discourse/components/form-template-field/dropdown.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"dropdown"))},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"2hv0vv8S",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","input"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],[[16,3,[30,3]],[24,0,"form-template-field__input"],[16,"placeholder",[30,1,["placeholder"]]],[16,"required",[52,[30,2,["required"]],"required",""]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]],[16,"disabled",[30,1,["disabled"]]]],[["@value","@type"],[[30,4],[52,[30,2,["type"]],[30,2,["type"]],"text"]]],null],[1,"\\n"],[13]],["@attributes","@validations","@id","@value"],false,["div","if","label","d-icon","span","html-safe","input"]]',moduleName:"discourse/components/form-template-field/input.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"input"))},29402:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(35533),r=i(42256),o=i(72738),a=i(53653),l=i(85671);class c extends s.default{isSelected(e){return this.args.value?.includes(e)}static #e=(()=>dt7948.n(this.prototype,"isSelected",[n.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"QNWs276D",block:'[[[1,"\\n "],[10,0],[14,"data-field-type","multi-select"],[14,0,"control-group form-template-field"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[32,0],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"select"],[15,3,[30,3]],[15,"required",[52,[30,2,["required"]],"required",""]],[14,"multiple","multiple"],[14,0,"form-template-field__multi-select"],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1," "],[10,"option"],[14,0,"form-template-field__multi-select-placeholder"],[14,2,""],[14,"disabled",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[31,2],[[28,[31,2],[[30,4]],null]],null],null,[[[1," "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[30,0,["isSelected"]],[[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@attributes","@validations","@id","@choices","choice"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/multi-select.js",scope:()=>[o.default,r.htmlSafe],isStrictMode:!0}),this))()}},57470:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"gSFL/4b7",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","textarea"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],[[16,3,[30,3]],[24,0,"form-template-field__textarea"],[16,"placeholder",[30,1,["placeholder"]]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@value"],[[30,4]]],null],[1,""],[13]],["@attributes","@validations","@id","@value"],false,["div","if","label","d-icon","span","html-safe","textarea"]]',moduleName:"discourse/components/form-template-field/textarea.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"textarea"))},4135:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(31049),o=i(94480),a=i(42256),l=i(13780),c=i(72738),u=i(63748),d=i(65742),p=i(6535),h=i(53653),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"uploadValue",[n.tracked]))();#ty=(()=>void dt7948.i(this,"uploadValue"))();static #i=(()=>dt7948.g(this.prototype,"uploadedFiles",[n.tracked],function(){return[]}))();#tb=(()=>void dt7948.i(this,"uploadedFiles"))();static #s=(()=>dt7948.g(this.prototype,"fileUploadElementId",[n.tracked],function(){return`${(0,o.dasherize)(this.args.id)}-uploader`}))();#tv=(()=>void dt7948.i(this,"fileUploadElementId"))();static #l=(()=>dt7948.g(this.prototype,"fileInputSelector",[n.tracked],function(){return`#${this.fileUploadElementId}`}))();#tw=(()=>void dt7948.i(this,"fileInputSelector"))();uppyUpload=(()=>new p.default((0,r.getOwner)(this),{id:this.args.id,type:"composer",uploadDone:this.uploadDone}))();get uploadStatusLabel(){return this.uppyUpload.uploading||this.uppyUpload.processing?"form_templates.upload_field.uploading":"form_templates.upload_field.upload"}get disabled(){return this.uppyUpload.uploading||this.uppyUpload.processing}isUploadedFileAllowed(e){let t=this.args.attributes.file_types,i=e.name.split(".").pop();return!t||t.includes(`.${i}`)||t.includes(e.type)}uploadDone(e){!this.args.attributes.allow_multiple&&this.uploadValue&&(this.uploadedFiles=[],this.uploadValue=""),this.uploadedFiles.pushObject(e);let t=this.buildMarkdown(e);this.uploadValue&&this.uppyUpload.allowMultipleFiles?this.uploadValue=`${this.uploadValue} ${t}`:this.uploadValue=t}static #c=(()=>dt7948.n(this.prototype,"uploadDone",[u.bind]))();buildMarkdown(e){return(0,d.isImage)(e.url)?`![${e.file_name}|${e.width}x${e.height}](${e.short_url})`:(0,d.isAudio)(e.url)?`![${e.file_name}|audio](${e.short_url})`:(0,d.isVideo)(e.url)?`![${e.file_name}|video](${e.short_url})`:`[${e.file_name}|attachment](${e.short_url}) (${e.human_filesize})`}static #u=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"YUs/J29j",block:'[[[1,"\\n "],[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","upload"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[32,0],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"input"],[15,3,[30,3]],[15,2,[30,0,["uploadValue"]]],[14,4,"hidden"],[12],[13],[1,"\\n\\n "],[8,[32,2],null,[["@registerFileInput","@fileInputClass","@fileInputId","@allowMultiple","@showButton","@onFilesPicked","@icon","@label","@fileInputDisabled","@acceptedFormatsOverride","@acceptedFileTypesString"],[[30,0,["uppyUpload","setup"]],"form-template-field__upload",[30,0,["fileUploadElementId"]],[30,1,["allow_multiple"]],true,true,"upload",[30,0,["uploadStatusLabel"]],[30,0,["disabled"]],[30,1,["file_types"]],[30,1,["file_types"]]]],null],[1,"\\n\\n"],[41,[30,0,["uploadedFiles"]],[[[1," "],[10,"ul"],[14,0,"form-template-field__uploaded-files"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["uploadedFiles"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[1,[28,[32,0],["file"],null]],[1,"\\n "],[10,3],[15,6,[30,4,["url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,4,["file_name"]]],[13],[1,"\\n "],[10,1],[12],[1,[30,4,["human_filesize"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@attributes","@validations","@id","file"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/upload.js",scope:()=>[c.default,a.htmlSafe,l.default],isStrictMode:!0}),this))()}},22053:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>eJ});var s=i(80989),n=i(8554),r=i(35533),o=i(31351),a={isObject:function(e){return"object"==typeof e&&null!==e},repeat:function(e,t){var i,s="";for(i=0;ia&&(t=s-a+(r=" ... ").length),i-s>a&&(i=s+a-(o=" ...").length),{str:r+e.slice(t,i).replace(/\t/g,"→")+o,pos:s-t+r.length}}function d(e,t){return a.repeat(" ",t-e.length)+e}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.toString=function(e){return this.name+": "+l(this,e)};var p=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i=/\r?\n|\r|\0/g,s=[0],n=[],r=-1;o=i.exec(e.buffer);)n.push(o.index),s.push(o.index+o[0].length),e.position<=o.index&&r<0&&(r=s.length-2);r<0&&(r=s.length-1);var o,l,c,p="",h=Math.min(e.line+t.linesAfter,n.length).toString().length,m=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(r-l<0);l++)c=u(e.buffer,s[r-l],n[r-l],e.position-(s[r]-s[r-l]),m),p=a.repeat(" ",t.indent)+d((e.line-l+1).toString(),h)+" | "+c.str+"\n"+p;for(c=u(e.buffer,s[r],n[r],e.position,m),p+=a.repeat(" ",t.indent)+d((e.line+1).toString(),h)+" | "+c.str+"\n"+a.repeat("-",t.indent+h+3+c.pos)+"^\n",l=1;l<=t.linesAfter&&!(r+l>=n.length);l++)c=u(e.buffer,s[r+l],n[r+l],e.position-(s[r]-s[r+l]),m),p+=a.repeat(" ",t.indent)+d((e.line+l+1).toString(),h)+" | "+c.str+"\n";return p.replace(/\n$/,"")},h=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"],g=function(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===h.indexOf(t))throw new c('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(i){e[i].forEach(function(e){t[String(e)]=i})}),t}(t.styleAliases||null),-1===m.indexOf(this.kind))throw new c('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var i=[];return e[t].forEach(function(e){var t=i.length;i.forEach(function(i,s){i.tag===e.tag&&i.kind===e.kind&&i.multi===e.multi&&(t=s)}),i[t]=e}),i}function _(e){return this.extend(e)}_.prototype.extend=function(e){var t=[],i=[];if(e instanceof g)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new c("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof g))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new c("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(e){if(!(e instanceof g))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(_.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=f(s,"implicit"),s.compiledExplicit=f(s,"explicit"),s.compiledTypeMap=function(){var e,t,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(i.multi[e.kind].push(e),i.multi.fallback.push(e)):i[e.kind][e.tag]=i.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),T=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),S=/^[-+]?[0-9]+e/,C=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&T.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,i;return(i="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:i*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||a.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(e))return"-0.0";return i=e.toString(10),S.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),x=y.extend({implicit:[b,w,k,C]}),A=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),E=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),D=new g("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==A.exec(e)||null!==E.exec(e))},construct:function(e){var t,i,s,n,r,o,a,l,c=0,u=null;if(null===(t=A.exec(e))&&(t=E.exec(e)),null===t)throw Error("Date resolve error");if(i=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(i,s,n));if(r=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(u=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(i,s,n,r,o,a,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),P=new g("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",F=new g("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,i,s=0,n=e.length;for(i=0;i64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,i,s=e.replace(/[\r\n=]/g,""),n=s.length,r=0,o=[];for(t=0;t>16&255),o.push(r>>8&255),o.push(255&r)),r=r<<6|M.indexOf(s.charAt(t));return 0==(i=n%4*6)?(o.push(r>>16&255),o.push(r>>8&255),o.push(255&r)):18===i?(o.push(r>>10&255),o.push(r>>2&255)):12===i&&o.push(r>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,i,s="",n=0,r=e.length;for(t=0;t>18&63],s+=M[n>>12&63],s+=M[n>>6&63],s+=M[63&n]),n=(n<<8)+e[t];return 0==(i=r%3)?(s+=M[n>>18&63],s+=M[n>>12&63],s+=M[n>>6&63],s+=M[63&n]):2===i?(s+=M[n>>10&63],s+=M[n>>4&63],s+=M[n<<2&63],s+=M[64]):1===i&&(s+=M[n>>2&63],s+=M[n<<4&63],s+=M[64],s+=M[64]),s}}),I=Object.prototype.hasOwnProperty,N=Object.prototype.toString,O=new g("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,i,s,n,r,o=[];for(t=0,i=e.length;t1&&(e.result+=a.repeat("\n",t-1))}function em(e,t){var i,s,n=e.tag,r=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,en(e,"tab characters must not be used in indentation")),45===s&&Q(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,ed(e,!0,-1)&&e.lineIndent<=t){o.push(null),s=e.input.charCodeAt(e.position);continue}if(i=e.line,eg(e,t,3,!1,!0),o.push(e.result),ed(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&0!==s)en(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(_&&(o=e.line,a=e.lineStart,l=e.position),eg(e,t,4,!0,n)&&(_?g=e.result:f=e.result),_||(ec(e,p,h,m,g,f,o,a,l),m=g=f=null),ed(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===r||e.lineIndent>t)&&0!==c)en(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===n?en(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?en(e,"repeat of an indentation width identifier"):(u=t+n-1,c=!0);else break;if(Y(r)){do r=e.input.charCodeAt(++e.position);while(Y(r))if(35===r)do r=e.input.charCodeAt(++e.position);while(!G(r)&&0!==r)}for(;0!==r;){for(eu(e),e.lineIndent=0,r=e.input.charCodeAt(e.position);(!c||e.lineIndentu&&(u=e.lineIndent),G(r)){d++;continue}if(e.lineIndent0){for(n=o,r=0;n>0;n--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(a=e.input.charCodeAt(++e.position)))>=0?r=(r<<4)+o:en(e,"expected hexadecimal character");e.result+=function(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}(r),e.position++}else en(e,"unknown escape sequence");i=s=e.position}else G(a)?(ea(e,i,s,!0),eh(e,ed(e,!1,t)),i=s=e.position):e.position===e.lineStart&&ep(e)?en(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}en(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?_=!0:function(e){var t,i,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Q(s)&&!J(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&en(e,"name of an alias node must contain at least one character"),i=e.input.slice(t,e.position),$.call(e.anchorMap,i)||en(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],ed(e,!0,-1),!0}(e)?(_=!0,(null!==e.tag||null!==e.anchor)&&en(e,"alias node should not have any properties")):function(e,t,i){var s,n,r,o,a,l,c,u,d=e.kind,p=e.result;if(Q(u=e.input.charCodeAt(e.position))||J(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(Q(s=e.input.charCodeAt(e.position+1))||i&&J(s)))return!1;for(e.kind="scalar",e.result="",n=r=e.position,o=!1;0!==u;){if(58===u){if(Q(s=e.input.charCodeAt(e.position+1))||i&&J(s))break}else if(35===u){if(Q(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ep(e)||i&&J(u))break;else if(G(u)){if(a=e.line,l=e.lineStart,c=e.lineIndent,ed(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=r,e.line=a,e.lineStart=l,e.lineIndent=c;break}o&&(ea(e,n,r,!1),eh(e,e.line-a),n=r=e.position,o=!1),Y(u)||(r=e.position+1),u=e.input.charCodeAt(++e.position)}return ea(e,n,r,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,h,1===i)&&(_=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(_=l&&em(e,m))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&en(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c"),null!==e.result&&p.kind!==e.kind&&en(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):en(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||_}function ef(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var i=new ei(e,t),s=e.indexOf("\0");for(-1!==s&&(i.position=s,en(i,"null byte is not allowed in input")),i.input+="\0";32===i.input.charCodeAt(i.position);)i.lineIndent+=1,i.position+=1;for(;i.position0)&&37===n);){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Q(n);)n=e.input.charCodeAt(++e.position);for(i=e.input.slice(t,e.position),s=[],i.length<1&&en(e,"directive name must not be less than one character in length");0!==n;){for(;Y(n);)n=e.input.charCodeAt(++e.position);if(35===n){do n=e.input.charCodeAt(++e.position);while(0!==n&&!G(n))break}if(G(n))break;for(t=e.position;0!==n&&!Q(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&eu(e),$.call(eo,i)?eo[i](e,i,s):er(e,'unknown document directive "'+i+'"')}if(ed(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ed(e,!0,-1)):o&&en(e,"directives end mark is expected"),eg(e,e.lineIndent-1,4,!1,!0),ed(e,!0,-1),e.checkLineBreaks&&V.test(e.input.slice(r,e.position))&&er(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ep(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,ed(e,!0,-1));return}e.position=55296&&s<=56319&&t+1=56320&&i<=57343?(s-55296)*1024+i-56320+65536:s}function eP(e){return/^\n* /.test(e)}function eM(e,t){var i=eP(e)?String(t):"",s="\n"===e[e.length-1];return i+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function eF(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eI(e,t){if(""===e||" "===e[0])return e;for(var i,s,n=/ [^ ]/g,r=0,o=0,a=0,l="";i=n.exec(e);)(a=i.index)-r>t&&(s=o>r?o:a,l+="\n"+e.slice(r,s),r=s+1),o=a;return l+="\n",e.length-r>t&&o>r?l+=e.slice(r,o)+"\n"+e.slice(o+1):l+=e.slice(r),l.slice(1)}function eN(e,t,i,s){var n,r,o,a="",l=e.tag;for(n=0,r=i.length;n tag resolver accepts not "'+l+'" style');e.dump=s}return!0}return!1}function eL(e,t,i,s,n,r,o){e.tag=null,e.dump=i,eO(e,i,!1)||eO(e,i,!0);var l=ey.call(e.dump),u=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var d,p,h,m="[object Object]"===l||"[object Array]"===l;if(m&&(h=-1!==(p=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(n=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(m&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)s&&0!==Object.keys(e.dump).length?(!function(e,t,i,s){var n,r,o,a,l,u,d="",p=e.tag,h=Object.keys(i);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new c("sortKeys must be a boolean or a function");for(n=0,r=h.length;n1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,l&&(u+=eS(e,t)),eL(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,d+=u));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,n),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,i){var s,n,r,o,a,l="",c=e.tag,u=Object.keys(i);for(s=0,n=u.length;s1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eL(e,t,o,!1,!1)&&(a+=e.dump,l+=a));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?eN(e,t-1,e.dump,n):eN(e,t,e.dump,n),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,i){var s,n,r,o="",a=e.tag;for(s=0,n=i.length;s=65536?l+=2:l++){if(!ex(c=eD(e,l)))return 5;g=g&&eE(c,u,a),u=c}else{for(l=0;l=65536?l+=2:l++){if(10===(c=eD(e,l)))d=!0,h&&(p=p||l-m-1>s&&" "!==e[m+1],m=l);else if(!ex(c))return 5;g=g&&eE(c,u,a),u=c}p=p||h&&l-m-1>s&&" "!==e[m+1]}return d||p?i>9&&eP(e)?5:o?2===r?5:2:p?4:3:!g||o||n(e)?2===r?5:2:1}(t,s||e.flowLevel>-1&&i>=e.flowLevel,e.indent,o,function(t){return function(e,t){var i,s;for(i=0,s=e.implicitTypes.length;i"+eM(t,e.indent)+eF(eT(function(e,t){for(var i,s,n=/(\n+)([^\n]*)/g,r=function(){var i=e.indexOf("\n");return i=-1!==i?i:e.length,n.lastIndex=i,eI(e.slice(0,i),t)}(),o="\n"===e[0]||" "===e[0];s=n.exec(e);){var a=s[1],l=s[2];i=" "===l[0],r+=a+(o||i||""===l?"":"\n")+eI(l,t),o=i}return r}(t,o),r));case 5:return'"'+function(e){for(var t,i="",s=0,n=0;n=65536?n+=2:n++)!(t=ev[s=eD(e,n)])&&ex(s)?(i+=e[n],s>=65536&&(i+=e[n+1])):i+=t||function(e){var t,i,s;if(t=e.toString(16).toUpperCase(),e<=255)i="x",s=2;else if(e<=65535)i="u",s=4;else if(e<=0xffffffff)i="U",s=8;else throw new c("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+a.repeat("0",s-t.length)+t}(s);return i}(t)+'"';default:throw new c("impossible error: invalid scalar style")}}()}(e,e.dump,t,r,u);else{if("[object Undefined]"===l||e.skipInvalid)return!1;throw new c("unacceptable kind of an object to dump "+l)}null!==e.tag&&"?"!==e.tag&&(d=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),d="!"===e.tag[0]?"!"+d:"tag:yaml.org,2002:"===d.slice(0,18)?"!!"+d.slice(18):"!<"+d+">",e.dump=d+" "+e.dump)}return!0}function eR(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var eU=e_.load;e_.loadAll,eR("safeLoad","load"),eR("safeLoadAll","loadAll"),eR("safeDump","dump");let ej={load:eU};var eB=i(95628),e$=i(60463),eq=i(83193),eV=i(74855),eH=i(29402),ez=i(57470),eW=i(4135),eK=i(53653),eG=i(85671),eY=i(73306);let eQ=(0,eK.setComponentTemplate)((0,eG.createTemplateFactory)({id:"XB8p01N8",block:'[[[1,"\\n "],[8,[30,1],null,[["@id","@attributes","@choices","@validations","@value"],[[30,2,["id"]],[30,2,["attributes"]],[30,2,["choices"]],[30,2,["validations"]],[30,3]]],null],[1,"\\n"]],["@component","@content","@initialValue"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",isStrictMode:!0}),(0,eY.default)(void 0,"wrapper:FormTemplateField"));class eJ extends s.default{static #e=(()=>dt7948.g(this.prototype,"error",[n.tracked],function(){return null}))();#tk=(()=>void dt7948.i(this,"error"))();static #i=(()=>dt7948.g(this.prototype,"parsedTemplate",[n.tracked],function(){return null}))();#tT=(()=>void dt7948.i(this,"parsedTemplate"))();initialValues=(()=>this.args.initialValues??{})();fieldTypes=(()=>({checkbox:e$.default,input:eV.default,dropdown:eq.default,"multi-select":eH.default,textarea:ez.default,upload:eW.default}))();constructor(){super(...arguments),this.args.content?this._loadTemplate(this.args.content):this.args.id&&this._fetchTemplate(this.args.id)}_loadTemplate(e){try{this.parsedTemplate=ej.load(e),this.args.onSelectFormTemplate?.(this.parsedTemplate)}catch(e){this.error=e}}refreshTemplate(){if(!Array.isArray(this.args?.id)||this.args?.id.length!==0)return this._fetchTemplate(this.args.id)}static #s=(()=>dt7948.n(this.prototype,"refreshTemplate",[r.action]))();async _fetchTemplate(e){let t=await eB.default.findById(e),i=await t.form_template.template;return this._loadTemplate(i)}static #l=(()=>(0,eK.setComponentTemplate)((0,eG.createTemplateFactory)({id:"DSB1XEt6",block:'[[[1,"\\n"],[41,[30,0,["parsedTemplate"]],[[[1," "],[11,0],[24,0,"form-template-form__wrapper"],[4,[32,0],[[30,0,["refreshTemplate"]],[30,1]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["parsedTemplate"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@component","@content","@initialValue"],[[28,[32,2],[[30,0,["fieldTypes"]],[30,2,["type"]]],null],[30,2],[28,[32,2],[[30,0,["initialValues"]],[30,2,["id"]]],null]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["error"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "]],["@id","content"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",scope:()=>[o.default,eQ,r.get],isStrictMode:!0}),this))()}},15447:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(86597).default},72530:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(99615),r=i(83133),o=i(91933),a=i(39131),l=i(82645),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get showFullnameInstructions(){return this.siteSettings.show_signup_form_full_name_instructions&&!this.args.nameValidation.reason}static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"z35U5rFG",block:'[[[1,"\\n "],[11,0],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,"aria-describedby","fullname-validation fullname-validation-more-info"],[16,"aria-invalid",[30,2,["failed"]]],[16,0,[28,[32,1],[[30,3]],null]],[24,3,"name"],[4,[32,2],["focusin",[30,5]],null]],[["@disabled","@value","@id"],[[30,4],[30,3],"new-account-name"]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n "],[1,[30,6]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFullnameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"fullname-validation-more-info"],[12],[1,"\\n "],[1,[28,[32,3],["user.name.instructions_required"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[24,1,"fullname-validation"]],[["@validation"],[[30,2]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["&attrs","@nameValidation","@accountName","@nameDisabled","@onFocusIn","@nameTitle"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/fullname-input.js",scope:()=>[a.default,l.default,n.on,c.i18n,o.default],isStrictMode:!0}),this))()}},92076:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(30574),o=i(63748),a=i(66914),l=i(843),c=i(9105);let u=(0,i(85671).createTemplateFactory)({id:"PGZOu0ho",block:'[[[10,0],[14,0,"future-date-input"],[12],[1,"\\n"],[41,[51,[30,0,["noRelativeOptions"]]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[15,0,[30,0,["labelClasses"]]],[12],[1,"\\n "],[41,[30,0,["displayLabelIcon"]],[[[1,[28,[35,4],[[30,0,["displayLabelIcon"]]],null]]],[]],null],[1,[30,0,["displayLabel"]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],null,[["@value","@content","@clearable","@onChangeInput","@onChange","@options"],[[28,[37,6],[[30,0,["selection"]]],null],[30,0,["shortcuts"]],[30,0,["clearable"]],[30,0,["onChangeInput"]],[28,[37,7],[[28,[37,8],[[30,0,["selection"]]],null]],null],[28,[37,9],null,[["none"],["time_shortcut.select_timeframe"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayDateAndTimePicker"]],[[[1," "],[10,0],[14,0,"control-group future-date-input-date-picker"],[12],[1,"\\n "],[1,[28,[35,4],["calendar-days"],null]],[1,"\\n "],[8,[39,10],null,[["@value","@defaultDate","@onSelect"],[[30,0,["_date"]],[30,0,["_date"]],[28,[37,11],[[30,0],"onChangeDate"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group future-date-input-time-picker"],[12],[1,"\\n "],[1,[28,[35,4],["far-clock"],null]],[1,"\\n "],[8,[39,12],[[24,"placeholder","--:--"],[24,0,"time-input"],[16,"disabled",[30,0,["timeInputDisabled"]]],[4,[38,13],["input",[28,[37,14],[[30,0,["onChangeTime"]]],null]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","unless","label","if","d-icon","future-date-input-selector","readonly","fn","mut","hash","date-picker-future","action","input","on","with-event-value"]]',moduleName:"discourse/components/future-date-input.hbs",isStrictMode:!1});class d extends s.default{selection=null;includeDateTime=!0;static #e=(()=>dt7948.g(this.prototype,"isCustom",[(0,r.equal)("selection","custom")]))();#tS=(()=>void dt7948.i(this,"isCustom"))();static #i=(()=>dt7948.g(this.prototype,"displayDateAndTimePicker",[(0,r.and)("includeDateTime","isCustom")]))();#tC=(()=>void dt7948.i(this,"displayDateAndTimePicker"))();static #s=(()=>dt7948.g(this.prototype,"timeInputDisabled",[(0,r.empty)("_date")]))();#tx=(()=>void dt7948.i(this,"timeInputDisabled"))();displayLabel=null;labelClasses=null;userTimezone=null;onChangeInput=null;_date=null;_time=null;init(){super.init(...arguments),this.userTimezone=this.currentUser.user_option.timezone}didReceiveAttrs(){if(super.didReceiveAttrs(...arguments),this.label&&this.set("displayLabel",(0,l.i18n)(this.label)),this.input){let e=moment(this.input),t=this._findClosestShortcut(e);!this.noRelativeOptions&&t?this.set("selection",t.id):this.setProperties({selection:a.TIME_SHORTCUT_TYPES.CUSTOM,_date:e.format("YYYY-MM-DD"),_time:e.format("HH:mm")})}}shortcuts(e){let t;t=e&&e.length?e:(0,a.extendedDefaultTimeShortcuts)(this.userTimezone);let i=(0,a.timeShortcuts)(this.userTimezone);return this.includeDateTime&&t.push(i.custom()),this.includeNow&&t.push(i.now()),(t=(0,a.hideDynamicTimeShortcuts)(t,this.userTimezone,this.siteSettings)).map(e=>({id:e.id,name:(0,l.i18n)(e.label),time:e.time,timeFormatted:(0,a.formatTime)(e),icon:e.icon}))}static #l=(()=>dt7948.n(this.prototype,"shortcuts",[(0,o.default)("customShortcuts")]))();onChangeDate(e){e||this.set("_time",null),this._dateTimeChanged(e,this._time)}static #c=(()=>dt7948.n(this.prototype,"onChangeDate",[n.action]))();onChangeTime(e){this._date&&this._dateTimeChanged(this._date,e)}static #u=(()=>dt7948.n(this.prototype,"onChangeTime",[n.action]))();_dateTimeChanged(e,t){t=t?` ${t}`:"";let i=moment(`${e}${t}`);i.isValid()?this.onChangeInput?.(i.format(c.FORMAT)):this.onChangeInput?.(null)}_findClosestShortcut(e){return this.shortcuts.find(t=>{if(t.time){let i=t.time.diff(e);return 0<=i&&i<6e4}})}}(0,s.setComponentTemplate)(u,d)},11961:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(843),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"ebu5JPrm",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,2],[12],[1,[28,[32,0],["user.invited.link_generated"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"input"],[15,2,[30,1]],[14,0,"invite-link-input"],[14,"autofocus","autofocus"],[14,4,"text"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,2],[12],[1,[28,[32,0],["user.invited.valid_for"],[["email"],[[30,2]]]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@link","@email"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/generated-invite-link.js",scope:()=>[s.i18n],isStrictMode:!0}),(0,o.default)(void 0,"generated-invite-link:GeneratedInviteLink"))},7056:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(76151),r=i(50061),o=i(695);class a extends r.CustomComponentManager{create(e,t,i,s,n,r){let a=super.create(...arguments);return a.component.parentView=n.view,n.view=a.component,a.component._target=(0,o.valueForRef)(r),a}getCapabilities(){return{...super.getCapabilities(),createCaller:!0}}}class l extends s.default{}(0,r.setInternalComponentManager)(new a(e=>new n.default(e)),l)},54664:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S,forceDropdownForMenuPanels:()=>C});var s=i(80989),n=i(35533),r=i(18387),o=i(62053),a=i(83133),l=i(983),c=i(51367),u=i.n(c),d=i(81133),p=i(63748),h=i(77093),m=i(53306),g=i(35715),f=i(38254),_=i(64873),y=i(14259),b=i(8972),w=i(53653),k=i(85671);let T=[];class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"header",[a.service]))();#tA=(()=>void dt7948.i(this,"header"))();pxClosed;headerElement;_animate=!1;_headerWrap;_mainOutletWrapper;_swipeMenuOrigin;_applicationElement;_resizeObserver;constructor(){super(...arguments),this.currentUser?.staff&&document.body.classList.add("staff"),(0,o.schedule)("afterRender",()=>this.animateMenu())}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("user-menu:rendered",this,this.animateMenu),this.dropDownHeaderEnabled&&this.appEvents.off("sidebar-hamburger-dropdown:rendered",this,this.animateMenu),this._itsatrap?.destroy(),this._itsatrap=null,window.removeEventListener("scroll",this._recalculateHeaderOffset),this._resizeObserver.disconnect()}get dropDownHeaderEnabled(){return!this.sidebarEnabled||this.site.narrowDesktopView}get slideInMode(){return this.site.mobileView||this.site.narrowDesktopView}get leftMenuClass(){return(0,_.isDocumentRTL)()?"user-menu":"hamburger-panel"}_recalculateHeaderOffset(){if(this.isDestroying||this.isDestroyed)return;let e=Math.max(0,document.documentElement.getBoundingClientRect().top),t=parseInt(window.getComputedStyle(this._headerWrap).getPropertyValue("top"),10),i=this._headerWrap.getBoundingClientRect().bottom-e;i=Math.max(i,t+this._headerWrap.getBoundingClientRect().height);let s=this._headerWrap.getBoundingClientRect().top-e-t;1>Math.abs(s)&&(i-=s);let n=Math.max(0,this._mainOutletWrapper.getBoundingClientRect().top-i-e),r=document.documentElement.style,o=parseInt(r.getPropertyValue("--header-offset"),10)||0,a=Math.floor(i);o!==a&&r.setProperty("--header-offset",`${a}px`);let l=parseInt(r.getPropertyValue("--main-outlet-offset"),10)||0,c=Math.floor(i+n);l!==c&&r.setProperty("--main-outlet-offset",`${c}px`)}static #c=(()=>dt7948.n(this.prototype,"_recalculateHeaderOffset",[(0,p.debounce)(10)]))();setupHeader(){this.appEvents.on("user-menu:rendered",this,this.animateMenu),this.dropDownHeaderEnabled&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,this.animateMenu),this._headerWrap=document.querySelector(".d-header-wrap"),this._mainOutletWrapper=document.querySelector("#main-outlet-wrapper"),this._headerWrap&&((0,o.schedule)("afterRender",()=>{this.headerElement=this._headerWrap.querySelector("header.d-header")}),window.addEventListener("scroll",this._recalculateHeaderOffset,{passive:!0}),this._itsatrap=new(u())(this.headerElement),this._itsatrap.bind(["up","down"],e=>this._handleArrowKeysNav(e)),this._resizeObserver=new ResizeObserver(this._recalculateHeaderOffset),this._resizeObserver.observe(document.querySelector(".discourse-root")))}static #u=(()=>dt7948.n(this.prototype,"setupHeader",[n.action]))();_handleArrowKeysNav(e){let t=document.querySelector(".menu-tabs-container .btn.active");if(t){let i=Number(document.activeElement.dataset.tabNumber||t.dataset.tabNumber),s=document.querySelectorAll(".menu-tabs-container .btn").length-1,n="ArrowDown"===e.key,r=n?i+1:i-1;n&&r>s&&(r=0),!n&&r<0&&(r=s),e.preventDefault(),document.querySelector(`.menu-tabs-container .btn[data-tab-number='${r}']`).focus()}}animateMenu(){let e=document.querySelectorAll(".menu-panel");if(0===e.length){this._animate=this.slideInMode;return}let t=this.slideInMode?"slide-in":"drop-down";e.forEach(e=>{(function(e){if(!T)return!1;for(let t of T)if(e.classList.contains(t))return!0;return!1})(e)&&(t="drop-down",this._animate=!1);let i=document.querySelector(".header-cloak");if(e.classList.remove("drop-down"),e.classList.remove("slide-in"),e.classList.add(t),this._animate){let t=null,s=340;this._swipeMenuOrigin="right",this.slideInMode&&e.parentElement.classList.contains(this.leftMenuClass)&&(this._swipeMenuOrigin="left",s=-340),t=e.animate([{transform:`translate3d(${s}px, 0, 0)`}],{fill:"forwards"}).finished,(0,l.YZ)(t),i.animate([{opacity:0}],{fill:"forwards"}),i.style.display="block",t.then(()=>{(0,h.isTesting)()?this._animateOpening(e):(0,m.default)(()=>this._animateOpening(e))})}this._animate=!1})}static #d=(()=>dt7948.n(this.prototype,"animateMenu",[n.action]))();_animateOpening(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=document.querySelector(".header-cloak"),s=(0,f.getMaxAnimationTimeMs)();t&&this.pxClosed>0&&(s=(0,f.getMaxAnimationTimeMs)(this.pxClosed/Math.abs(t.velocityX)));let n={duration:s>0?s:0,fill:"forwards",easing:"ease-out"};e.animate([{transform:"translate3d(0, 0, 0)"}],n),i?.animate?.([{opacity:1}],n),this.pxClosed=null}static #p=(()=>dt7948.n(this.prototype,"_animateOpening",[p.bind]))();_animateClosing(e,t,i){this._animate=!0;let s=document.querySelector(".header-cloak"),n=(0,f.getMaxAnimationTimeMs)();if(e&&this.pxClosed>0){let t=340-this.pxClosed;n=(0,f.getMaxAnimationTimeMs)(t/Math.abs(e.velocityX))}let r={duration:n>0?n:0,fill:"forwards"},o=-340;"right"===i&&(o=340),t.animate([{transform:`translate3d(${o}px, 0, 0)`}],r),s&&(s.animate([{opacity:0}],r),s.style.display="none",(this.header.hamburgerVisible||this.header.userVisible)&&(this.header.hamburgerVisible=!1,this.header.userVisible=!1)),this.pxClosed=null}static #h=(()=>dt7948.n(this.prototype,"_animateClosing",[p.bind]))();onSwipeStart(e){let t=e.center;document.elementsFromPoint(t.x,t.y).some(e=>e.classList.contains("panel-body")||e.classList.contains("header-cloak"))&&("left"===e.direction||"right"===e.direction)?(0,g.default)(!0,document.querySelector(".panel-body")):event.preventDefault()}static #m=(()=>dt7948.n(this.prototype,"onSwipeStart",[p.bind]))();onSwipeEnd(e){let t=document.querySelectorAll(".menu-panel");(0,g.default)(!1,document.querySelector(".panel-body")),t.forEach(t=>{(0,f.shouldCloseMenu)(e,this._swipeMenuOrigin)?(this._animateClosing(e,t,this._swipeMenuOrigin),(0,g.default)(!1)):this._animateOpening(t,e)})}static #g=(()=>dt7948.n(this.prototype,"onSwipeEnd",[p.bind]))();onSwipeCancel(){let e=document.querySelectorAll(".menu-panel");(0,g.default)(!1,document.querySelector(".panel-body")),e.forEach(e=>{this._animateOpening(e)})}static #A=(()=>dt7948.n(this.prototype,"onSwipeCancel",[p.bind]))();onSwipe(e){let t=document.querySelector(".menu-panel"),i=document.querySelector(".header-cloak");this.pxClosed=Math.max(0,-e.deltaX);let s=-this.pxClosed;"right"===this._swipeMenuOrigin&&(this.pxClosed=Math.max(0,e.deltaX),s=this.pxClosed),t.animate([{transform:`translate3d(${s}px, 0, 0)`}],{fill:"forwards"}),i?.animate?.([{opacity:(340-this.pxClosed)/340}],{fill:"forwards"})}static #E=(()=>dt7948.n(this.prototype,"onSwipe",[p.bind]))();static #D=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"CPSAZtYM",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],[[52,[51,[30,0,["slideInMode"]]],"drop-down-mode"],"d-header-wrap"],null]],[4,[32,1],[[30,0,["setupHeader"]]],null],[4,[32,2],null,[["onDidStartSwipe","onDidEndSwipe","onDidCancelSwipe","onDidSwipe","lockBody"],[[30,0,["onSwipeStart"]],[30,0,["onSwipeEnd"]],[30,0,["onSwipeCancel"]],[30,0,["onSwipe"]],false]]],[12],[1,"\\n "],[8,[32,3],null,[["@canSignUp","@showSidebar","@sidebarEnabled","@toggleSidebar","@showCreateAccount","@showLogin","@animateMenu","@topicInfo","@topicInfoVisible"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,0,["animateMenu"]],[30,0,["header","topicInfo"]],[30,0,["header","topicInfoVisible"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@canSignUp","@showSidebar","@sidebarEnabled","@toggleSidebar","@showCreateAccount","@showLogin"],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/glimmer-site-header.js",scope:()=>[d.default,r.default,y.default,b.default],isStrictMode:!0}),this))()}function C(e){return"string"==typeof e&&(e=[e]),T.push(...e)}},66758:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addGlobalNotice:()=>m,default:()=>y});var s=i(53653),n=i(35533),r=i(83133),o=i(42256),a=i(53397),l=i(61004),c=i(63748),u=i(20144),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"m6AOwdKd",block:'[[[10,0],[14,0,"global-notice"],[12],[1,"\\n"],[41,[30,0,["visible"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["notices"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[15,1,[29,["global-notice-",[30,1,["id"]]]]],[15,0,[29,["alert alert-",[30,1,["options","level"]]," ",[30,1,["id"]]]]],[12],[1,"\\n"],[41,[30,1,["options","html"]],[[[1," "],[1,[28,[35,4],[[30,1,["options","html"]]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,[28,[35,4],[[30,1,["text"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["options","dismissable"]],[[[1," "],[8,[39,6],[[24,0,"btn-transparent close"]],[["@icon","@action"],["xmark",[28,[37,7],[[30,0,["dismissNotice"]],[30,1]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],[]],null],[13]],["notice"],false,["div","if","each","-track-array","html-safe","span","d-button","fn"]]',moduleName:"discourse/components/global-notice.hbs",isStrictMode:!1}),h=new u.DeferredTrackedSet;function m(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};h.add(f.create({text:e,id:t,options:i}))}let g="dismissed-global-notice-v2";class f extends n.default{static #e=(()=>dt7948.g(this.prototype,"logsNoticeService",[(0,r.service)("logsNotice")]))();#tE=(()=>void dt7948.i(this,"logsNoticeService"))();text=null;id=null;options=null;init(){super.init(...arguments),this.options=this.set("options",Object.assign({dismissable:!1,html:null,level:"info",persistentDismiss:!0,onDismiss:null,visibility:null,dismissDuration:null},this.options||{}))}}let _=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[r.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #i=(()=>dt7948.g(this.prototype,"logsNoticeService",[(0,r.service)("logsNotice")]))();#tE=(()=>void dt7948.i(this,"logsNoticeService"))();static #s=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();logNotice=null;constructor(){super(...arguments),this.logsNoticeService.addObserver("hidden",this._handleLogsNoticeUpdate),this.logsNoticeService.addObserver("text",this._handleLogsNoticeUpdate)}willDestroyElement(){super.willDestroyElement(...arguments),this.logsNoticeService.removeObserver("text",this._handleLogsNoticeUpdate),this.logsNoticeService.removeObserver("hidden",this._handleLogsNoticeUpdate)}get visible(){return!this.router.currentRouteName.startsWith("wizard.")}get notices(){let e=[];return"1"===(0,l.default)("dosp")&&((0,l.removeCookie)("dosp",{path:"/"}),e.push(f.create({text:this.siteSettings.login_required?(0,d.i18n)("forced_anonymous_login_required"):(0,d.i18n)("forced_anonymous"),id:"forced-anonymous"}))),this.session.get("safe_mode")&&e.push(f.create({text:(0,d.i18n)("safe_mode.enabled"),id:"safe-mode"})),this.site.get("isStaffWritesOnly")?e.push(f.create({text:(0,d.i18n)("staff_writes_only_mode.enabled"),id:"alert-staff-writes-only"})):this.site.get("isReadOnly")&&e.push(f.create({text:(0,d.i18n)("read_only_mode.enabled"),id:"alert-read-only"})),this.router.currentRoute?.queryParams?.preview_theme_id&&e.push(f.create({text:(0,d.i18n)("theme_preview_notice"),id:"theme-preview"})),"yes"===this.siteSettings.disable_emails?e.push(f.create({text:(0,d.i18n)("emails_are_disabled"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})):"non-staff"===this.siteSettings.disable_emails&&e.push(f.create({text:(0,d.i18n)("emails_are_disabled_non_staff"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})),this.siteSettings.global_notice?.length>0&&e.push(f.create({text:this.siteSettings.global_notice,id:"alert-global-notice"})),this.get("logNotice")&&e.push(this.get("logNotice")),e.concat(Array.from(h)).filter(e=>{if(e.options.visibility)return e.options.visibility(e);let t=`${g}-${e.id}`,i=this.keyValueStore.get(t);if(!i||!e.options.persistentDismiss)return!0;if(!e.options.dismissDuration)return!1;{let t=moment(i).add(e.options.dismissDuration);return moment().isAfter(t)}})}dismissNotice(e){e.options.onDismiss?.(e),e.options.persistentDismiss&&this.keyValueStore.set({key:`${g}-${e.id}`,value:moment().toISOString(!0)});let t=document.getElementById(`global-notice-${e.id}`);t&&(t.style.display="none")}static #l=(()=>dt7948.n(this.prototype,"dismissNotice",[n.action]))();_handleLogsNoticeUpdate(){let e=f.create({text:(0,o.htmlSafe)(this.logsNoticeService.message),id:"alert-logs-notice",options:{dismissable:!0,persistentDismiss:!1,visibility:()=>!this.logsNoticeService.hidden,onDismiss:()=>this.logsNoticeService.set("text","")}});this.set("logNotice",e)}static #c=(()=>dt7948.n(this.prototype,"_handleLogsNoticeUpdate",[c.bind]))()},[(0,a.tagName)("")]),y=(0,s.setComponentTemplate)(p,_)},54514:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"TiRkyhg9",block:'[[[10,"svg"],[14,0,"fa d-icon d-icon-custom-google-oauth2 svg-icon"],[14,"viewBox","0 0 48 48"],[12],[10,"defs"],[12],[10,"path"],[14,1,"google-icon-a"],[14,"d","M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"],[12],[13],[13],[10,"clipPath"],[14,1,"google-icon-b"],[12],[10,"use"],[14,6,"#google-icon-a"],[14,"overflow","visible"],[12],[13],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#FBBC05"],[14,"d","M0 37V11l17 13z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#EA4335"],[14,"d","M0 11l17 13 7-6.1L48 14V0H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#34A853"],[14,"d","M0 37l30-23 7.9 1L48 0v48H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#4285F4"],[14,"d","M48 48L17 24l-4-3 35-10z"],[12],[13],[13]],[],false,["svg","defs","path","clipPath","use"]]',moduleName:"discourse/components/google-icon.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"google-icon"))},4751:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(30574),r=i(53397),o=i(63748),a=i(94636);let l=(0,i(85671).createTemplateFactory)({id:"N1J+U3zK",block:'[[[10,"form"],[14,"action","//google.com/search"],[14,1,"google-search"],[14,0,"inline-form"],[12],[1,"\\n "],[10,"input"],[14,3,"q"],[15,"aria-label",[28,[37,2],["search.search_google"],null]],[15,2,[30,0,["searchTerm"]]],[14,4,"text"],[12],[13],[1,"\\n "],[10,"input"],[14,3,"as_sitesearch"],[15,2,[30,0,["siteUrl"]]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,"button"],[14,0,"btn btn-primary"],[14,4,"submit"],[12],[1,[28,[35,2],["search.search_google_button"],null]],[13],[1,"\\n"],[13]],[],false,["form","input","i18n","button"]]',moduleName:"discourse/components/google-search.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"hidden",[(0,n.alias)("siteSettings.login_required")]))();#eg=(()=>void dt7948.i(this,"hidden"))();siteUrl(){return`${location.protocol}//${location.host}${(0,a.default)("/")}`}static #i=(()=>dt7948.n(this.prototype,"siteUrl",[o.default]))()},[(0,r.classNameBindings)("hidden:hidden"),(0,r.classNames)("google-search-form")]),u=(0,s.setComponentTemplate)(l,c)},27033:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(75446),n=i(43696),r=i(843),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"dWNaiuNL",block:'[[[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,0],null,[["@route","@query"],[[28,[32,1],["group.activity.",[30,1]],null],[28,[32,2],null,[["category_id"],[[30,2]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,1],["groups.",[30,1]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],["@filter","@categoryId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-activity-filter.js",scope:()=>[n.LinkTo,s.concat,s.hash,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,"group-activity-filter:GroupActivityFilter"))},38635:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(35533),n=i(30574),r=i(83133),o=i(53397),a=i(42064),l=i(13654),c=i(82805),u=i(63748),d=i(97015),p=i(87353);let h=(0,i(85671).createTemplateFactory)({id:"Uto7jXk8",block:'[[[41,[30,0,["visible"]],[[[1," "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"card-huge-avatar"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,"\\n "],[8,[39,4],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["group","name"]],[30,0,["group","flair_url"]],[30,0,["group","flair_bg_color"]],[30,0,["group","flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[10,0],[15,0,[29,["names__primary ",[30,0,["group","name"]]]]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"group-page-link"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["group","full_name"]],[[[1," "],[10,0],[14,0,"names__secondary full-name"],[12],[1,"\\n "],[1,[30,0,["group","full_name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"names__secondary username"],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"ul"],[14,0,"usercard-controls group-details-button"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,8],null,[["@model","@showLogin"],[[30,0,["group"]],[28,[37,9],["showLogin"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["group","messageable"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,10],[[24,0,"btn-primary group-message-button inline"]],[["@action","@icon","@label"],[[28,[37,11],[[30,0],"messageGroup"],null],"envelope","groups.message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","bio_excerpt"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"bio"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["group","bio_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["group","members"]],[[[1," "],[10,0],[14,0,"card-row third-row"],[12],[1,"\\n "],[10,0],[14,0,"members metadata"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["highlightedMembers"]]],null]],null],null,[[[1," "],[11,3],[16,6,[30,1,["path"]]],[24,0,"card-tiny-avatar"],[4,[38,3],["click",[30,0,["close"]]],null],[12],[1,[28,[35,15],[[30,1],"tiny"],null]],[13],[1,"\\n"]],[1]],null],[41,[30,0,["showMoreMembers"]],[[[1," "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"more-members-link"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,"\\n "],[10,1],[14,0,"more-members-count"],[12],[1,"+"],[1,[30,0,["moreMembersCount"]]],[1,"\\n "],[1,[28,[35,16],["more"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],["user"],false,["if","div","a","on","avatar-flair","span","ul","li","group-membership-button","route-action","d-button","action","html-safe","each","-track-array","bound-avatar","i18n"]]',moduleName:"discourse/components/group-card-contents.hbs",isStrictMode:!1});var m=i(53653);let g=dt7948.c(class extends l.default{static #e=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"allowBackgrounds",[(0,c.setting)("allow_profile_backgrounds")]))();#tD=(()=>void dt7948.i(this,"allowBackgrounds"))();static #s=(()=>dt7948.g(this.prototype,"showBadges",[(0,c.setting)("enable_badges")]))();#tP=(()=>void dt7948.i(this,"showBadges"))();static #l=(()=>dt7948.g(this.prototype,"postStream",[(0,n.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #c=(()=>dt7948.g(this.prototype,"showMoreMembers",[(0,n.gt)("moreMembersCount",0)]))();#tM=(()=>void dt7948.i(this,"showMoreMembers"))();elementId="group-card";mentionSelector="a.mention-group";group=null;highlightedMembers(e){return e.slice(0,10)}static #u=(()=>dt7948.n(this.prototype,"highlightedMembers",[(0,u.default)("group.members.[]")]))();moreMembersCount(e){return Math.max(e-10,0)}static #d=(()=>dt7948.n(this.prototype,"moreMembersCount",[(0,u.default)("group.user_count","group.members.[]")]))();groupClass(e){return e?`group-card-${e}`:""}static #p=(()=>dt7948.n(this.prototype,"groupClass",[(0,u.default)("group.name")]))();groupPath(e){return(0,p.groupPath)(e.name)}static #h=(()=>dt7948.n(this.prototype,"groupPath",[(0,u.default)("group")]))();_inserted(){this.appEvents.on("dom:clean",this,this._close)}static #m=(()=>dt7948.n(this.prototype,"_inserted",[(0,a.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this._close)}static #g=(()=>dt7948.n(this.prototype,"_destroyed",[(0,a.on)("didDestroyElement")]))();async _showCallback(e){this.setProperties({visible:!0,loading:!0});try{let t=await this.store.find("group",e);if(this.setProperties({group:t}),t.flair_url||t.flair_bg_color||t.set("flair_url","users"),t.can_see_members&&t.members.length<10)return t.reloadMembers({limit:10},!0)}catch{this._close()}finally{this.set("loading",null)}}_close(){this.set("group",null),super._close(...arguments)}close(e){e?.preventDefault(),this._close()}static #A=(()=>dt7948.n(this.prototype,"close",[s.action]))();handleShowGroup(e){(0,d.wantsNewWindow)(e)||(e.preventDefault(),this.showGroup(this.group),this._close())}static #E=(()=>dt7948.n(this.prototype,"handleShowGroup",[s.action]))();cancelFilter(){this.postStream.cancelFilter(),this.postStream.refresh(),this._close()}static #D=(()=>dt7948.n(this.prototype,"cancelFilter",[s.action]))();messageGroup(){this.composer.openNewMessage({recipients:this.get("group.name"),hasGroups:!0})}static #P=(()=>dt7948.n(this.prototype,"messageGroup",[s.action]))()},[(0,o.classNameBindings)("visible:show","showBadges","hasCardBadgeImage","isFixed:fixed","groupClass"),(0,o.classNames)("no-bg","group-card")]),f=(0,m.setComponentTemplate)(h,g)},44921:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(53653),n=i(35533),r=i(53397),o=i(42064),a=i(25124),l=i.n(a),c=i(6864),u=i(46301),d=i(63748),p=i(94636),h=i(51429),m=i(843);let g=(0,i(85671).createTemplateFactory)({id:"+PWkGt7R",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_url"],[12],[1,[28,[35,2],["groups.flair_url"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"radios"],[12],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-icon"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@id","@value","@selection"],["avatar-flair-icon","avatar-flair-icon","icon",[30,0,["model","flair_type"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.flair_type.icon"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-image"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@id","@value","@selection"],["avatar-flair-image","avatar-flair-image","image",[30,0,["model","flair_type"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.flair_type.image"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1," "],[8,[39,5],null,[["@name","@value","@options","@onChange"],["icon",[30,0,["model","flair_icon"]],[28,[37,6],null,[["maximum"],[1]]],[28,[37,7],[[28,[37,8],[[30,0,["model","flair_icon"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["flairPreviewImage"]],[[[1," "],[8,[39,9],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["flairImageUrl"]],[28,[37,10],[[30,0],"setFlairImage"],null],[28,[37,10],[[30,0],"removeFlairImage"],null],"group_flair","group-flair-uploader"]],null],[1,"\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,2],["groups.flair_upload_description"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_bg_color"],[12],[1,[28,[35,2],["groups.flair_bg_color"],null]],[13],[1,"\\n\\n "],[8,[39,11],[[24,0,"group-flair-bg-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_bg_color",[30,0,["model","flair_bg_color"]],"groups.flair_bg_color_placeholder"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_color"],[12],[1,[28,[35,2],["groups.flair_color"],null]],[13],[1,"\\n\\n "],[8,[39,11],[[24,0,"group-flair-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_color",[30,0,["model","flair_color"]],"groups.flair_color_placeholder"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["flairPreviewLabel"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"avatar-flair-preview"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[10,"img"],[14,"width","45"],[14,"height","45"],[15,"src",[30,0,["demoAvatarUrl"]]],[14,0,"avatar actor"],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[37,13],[[30,0,["model","flair_icon"]],[30,0,["flairImageUrl"]],[30,0,["model","flairBackgroundHexColor"]]],null],[[[1," "],[8,[39,14],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[52,[30,0,["flairPreviewIcon"]],[30,0,["model","flair_icon"]],[52,[30,0,["flairPreviewImage"]],[30,0,["flairImageUrl"]],""]],[30,0,["model","flairBackgroundHexColor"]],[30,0,["model","flairHexColor"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],[],false,["div","label","i18n","radio-button","if","icon-picker","hash","fn","mut","uppy-image-uploader","action","text-field","img","or","avatar-flair"]]',moduleName:"discourse/components/group-flair-inputs.hbs",isStrictMode:!1}),f=dt7948.c(class extends s.default{demoAvatarUrl(){return(0,p.default)("/images/avatar.png")}static #e=(()=>dt7948.n(this.prototype,"demoAvatarUrl",[d.default]))();flairPreviewIcon(e){return e&&"icon"===e}static #i=(()=>dt7948.n(this.prototype,"flairPreviewIcon",[(0,d.default)("model.flair_type")]))();flairPreviewIconUrl(e){return e?(0,h.convertIconClass)(e):""}static #s=(()=>dt7948.n(this.prototype,"flairPreviewIconUrl",[(0,d.default)("model.flair_icon")]))();_loadSVGIcon(e){e&&(0,u.default)(this,this._loadIcon,1e3)}static #l=(()=>dt7948.n(this.prototype,"_loadSVGIcon",[(0,o.observes)("model.flair_icon"),(0,o.on)("didInsertElement")]))();_loadIcon(){if(!this.model.flair_icon)return;let e=(0,h.convertIconClass)(this.model.flair_icon),t="#svg-sprites",i="ajax-icon-holder",s=`${t} .${i}`;e&&(l()(`${t} symbol#${e}`).length||(0,c.ajax)(`/svg-sprite/search/${e}`).then(function(e){0===l()(s).length&&l()(t).append(`
`),l()(s).html(`${e}`)}))}flairPreviewImage(e){return e&&"image"===e}static #c=(()=>dt7948.n(this.prototype,"flairPreviewImage",[(0,d.default)("model.flair_type")]))();flairImageUrl(e){return e&&e.includes("/")?e:null}static #u=(()=>dt7948.n(this.prototype,"flairImageUrl",[(0,d.default)("model.flair_url")]))();flairPreviewLabel(e){return(0,m.i18n)(`groups.flair_preview_${e?"image":"icon"}`)}static #d=(()=>dt7948.n(this.prototype,"flairPreviewLabel",[(0,d.default)("flairPreviewImage")]))();setFlairImage(e){this.model.setProperties({flair_url:(0,p.default)(e.url),flair_upload_id:e.id})}static #p=(()=>dt7948.n(this.prototype,"setFlairImage",[n.action]))();removeFlairImage(){this.model.setProperties({flair_url:null,flair_upload_id:null})}static #h=(()=>dt7948.n(this.prototype,"removeFlairImage",[n.action]))()},[(0,r.classNames)("group-flair-inputs")]),_=(0,s.setComponentTemplate)(g,f)},52909:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(75983),o=i(53397),a=i(42064),l=i(6864),c=i(88355),u=i(63748),d=i(13280);let p=(0,i(85671).createTemplateFactory)({id:"/+qxK1a3",block:'[[[10,0],[14,0,"group-imap-email-settings"],[12],[1,"\\n "],[10,"form"],[14,0,"groups-form form-horizontal groups-form-imap"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","imap_server"],[12],[1,[28,[35,3],["groups.manage.email.credentials.imap_server"],null]],[13],[1,"\\n "],[8,[39,4],[[24,3,"imap_server"],[24,"tabindex","8"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_server"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_ssl_imap"],[14,0,"groups-form__enable-ssl"],[12],[1,"\\n "],[8,[39,4],[[24,1,"enable_ssl_imap"],[24,"tabindex","11"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","imap_ssl"]]]],null],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.credentials.imap_ssl"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","imap_port"],[12],[1,[28,[35,3],["groups.manage.email.credentials.imap_port"],null]],[13],[1,"\\n "],[8,[39,4],[[24,3,"imap_port"],[24,"tabindex","9"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid",[30,0,["form","imap_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_port"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group group-imap-mailboxes"],[12],[1,"\\n"],[41,[30,0,["mailboxes"]],[[[1," "],[10,"label"],[14,"for","imap_mailbox_name"],[12],[1,[28,[35,3],["groups.manage.email.mailboxes.synchronized"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@name","@id","@value","@valueProperty","@content","@tabindex","@onChange","@options"],["imap_mailbox_name","imap_mailbox",[30,0,["group","imap_mailbox_name"]],"value",[30,0,["mailboxes"]],"10",[28,[37,9],[[28,[37,10],[[30,0,["group","imap_mailbox_name"]]],null]],null],[28,[37,11],null,[["none"],["groups.manage.email.mailboxes.disabled"]]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"group-imap-prefill-options"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.prefill.title"],null]],[1,"\\n "],[11,3],[24,1,"prefill_imap_gmail"],[24,6,""],[4,[38,5],["click",[28,[37,9],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,3],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,0,["mailboxSelected"]]],[[[1," "],[10,0],[14,0,"alert alert-error imap-no-mailbox-selected"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.imap_mailbox_not_selected"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n "],[8,[39,14],[[24,"tabindex","12"],[24,0,"btn-primary test-imap-settings"]],[["@disabled","@action","@icon","@label","@title"],[[28,[37,15],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],[30,0,["testImapSettings"]],"gear","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n "],[8,[39,16],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["imapSettingsValid"]],[[[1," "],[10,1],[14,0,"imap-settings-ok"],[12],[1,"\\n "],[1,[28,[35,18],["circle-check"],null]],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.imap_settings_valid"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_updated_at"]],[[[1," "],[10,0],[14,0,"group-email-last-updated-details for-imap"],[12],[1,"\\n "],[10,"small"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.last_updated"],null]],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,21],[[30,0,["group","imap_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.last_updated_by"],null]],[1,"\\n "],[8,[39,22],null,[["@route","@model"],["user",[30,0,["group","imap_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","imap_updated_by","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","form","label","i18n","input","on","action","if","combo-box","fn","mut","hash","a","unless","d-button","or","conditional-loading-spinner","span","d-icon","small","strong","format-date","link-to"]]',moduleName:"discourse/components/group-imap-email-settings.hbs",isStrictMode:!1}),h=dt7948.c(class extends s.default{form=null;missingSettings(e,t,i,s){return[e,t,i,s].some(e=>(0,r.isEmpty)(e))}static #e=(()=>dt7948.n(this.prototype,"missingSettings",[(0,u.default)("group.email_username","group.email_password","form.imap_server","form.imap_port")]))();mailboxes(e){return e?e.map(e=>({name:e,value:e})):[]}static #i=(()=>dt7948.n(this.prototype,"mailboxes",[(0,u.default)("group.imap_mailboxes")]))();mailboxSelected(e,t){return 0===t||!(0,r.isEmpty)(e)}static #s=(()=>dt7948.n(this.prototype,"mailboxSelected",[(0,u.default)("group.imap_mailbox_name","mailboxes.length")]))();resetSettingsValid(){this.set("imapSettingsValid",!1)}static #l=(()=>dt7948.n(this.prototype,"resetSettingsValid",[n.action]))();_fillForm(){this.set("form",n.default.create({imap_server:this.group.imap_server,imap_port:(this.group.imap_port||"").toString(),imap_ssl:this.group.imap_ssl}))}static #c=(()=>dt7948.n(this.prototype,"_fillForm",[(0,a.on)("init")]))();prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,d.default)(e,"imap"))}static #u=(()=>dt7948.n(this.prototype,"prefillSettings",[n.action]))();testImapSettings(){let e={host:this.form.imap_server,port:this.form.imap_port,ssl:this.form.imap_ssl,username:this.group.email_username,password:this.group.email_password};return this.set("testingSettings",!0),this.set("imapSettingsValid",!1),(0,l.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"imap"})}).then(()=>{this.set("imapSettingsValid",!0),this.group.setProperties({imap_server:this.form.imap_server,imap_port:this.form.imap_port,imap_ssl:this.form.imap_ssl})}).catch(c.popupAjaxError).finally(()=>this.set("testingSettings",!1))}static #d=(()=>dt7948.n(this.prototype,"testImapSettings",[n.action]))()},[(0,o.tagName)("")]),m=(0,s.setComponentTemplate)(p,h)},65079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(75446),r=i(98740),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"K+Jz+69p",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@defaultGlimmer"],["group-info-details",[28,[32,1],null,[["group"],[[30,1]]]],true]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"group-info-details"],[12],[1,"\\n "],[10,1],[14,0,"group-info-name"],[12],[1,"\\n "],[1,[30,0,["name"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["mentionName"]],[[[1," "],[10,1],[14,0,"group-info-mention-name"],[12],[1,"\\n "],[1,[30,0,["mentionName"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@group"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-info.js",scope:()=>[r.default,n.hash],isStrictMode:!0}),this))();get names(){let{full_name:e,display_name:t,name:i}=this.args.group;return[...new Set([e,t,i].filter(Boolean))]}get name(){return this.names[0]}get mentionName(){return this.names[1]?`@${this.names[1]}`:null}}},85974:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(83133),o=i(75983),a=i(53397),l=i(42064),c=i(63748),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"1ARDPepw",block:'[[[10,0],[14,0,"group-manage-email-settings"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.smtp_title"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,2],["groups.manage.email.smtp_instructions"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_smtp"],[12],[1,"\\n "],[8,[39,5],[[24,1,"enable_smtp"],[24,"tabindex","1"],[4,[38,6],["input",[30,0,["smtpEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","smtp_enabled"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.manage.email.enable_smtp"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_enabled"]],[[[1," "],[8,[39,8],null,[["@group","@smtpSettingsValid","@onChangeSmtpSettingsValid"],[[30,0,["group"]],[30,0,["smtpSettingsValid"]],[30,0,["onChangeSmtpSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_imap"]],[[[1," "],[10,0],[14,0,"group-manage-email-imap-wrapper"],[12],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.imap_title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,2],["groups.manage.email.imap_instructions"],null]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,2],["groups.manage.email.imap_alpha_warning"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_imap"],[12],[1,"\\n "],[8,[39,5],[[16,"disabled",[28,[37,11],[[30,0,["enableImapSettings"]]],null]],[24,1,"enable_imap"],[24,"tabindex","8"],[4,[38,6],["input",[30,0,["imapEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","imap_enabled"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.manage.email.enable_imap"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_enabled"]],[[[1," "],[8,[39,12],null,[["@group","@imapSettingsValid"],[[30,0,["group"]],[30,0,["imapSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-manage-email-additional-settings-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.imap_additional_settings"],null]],[13],[1,"\\n "],[10,"label"],[14,0,"control-group-inline"],[14,"for","allow_unknown_sender_topic_replies"],[12],[1,"\\n "],[8,[39,5],[[24,3,"allow_unknown_sender_topic_replies"],[24,1,"allow_unknown_sender_topic_replies"],[24,"tabindex","13"]],[["@type","@checked"],["checkbox",[30,0,["group","allow_unknown_sender_topic_replies"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["groups.manage.email.settings.allow_unknown_sender_topic_replies"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,2],["groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n "],[8,[39,14],null,[["@model","@disabled","@beforeSave","@afterSave","@tabindex"],[[30,0,["group"]],[28,[37,11],[[30,0,["emailSettingsValid"]]],null],[30,0,["beforeSave"]],[30,0,["afterSave"]],"15"]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","p","label","input","on","if","group-smtp-email-settings","br","html-safe","not","group-imap-email-settings","span","group-manage-save-button"]]',moduleName:"discourse/components/group-manage-email-settings.hbs",isStrictMode:!1}),p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();imapSettingsValid=!1;smtpSettingsValid=!1;_determineSettingsValid(){this.set("imapSettingsValid",this.group.imap_enabled&&this.group.imap_server),this.set("smtpSettingsValid",this.group.smtp_enabled&&this.group.smtp_server)}static #i=(()=>dt7948.n(this.prototype,"_determineSettingsValid",[(0,l.on)("init")]))();enableImapSettings(e,t,i){return t&&(e||i)}static #s=(()=>dt7948.n(this.prototype,"enableImapSettings",[(0,c.default)("emailSettingsValid","group.smtp_enabled","group.imap_enabled")]))();emailSettingsValid(e,t,i,s){return(!i||e)&&(!s||t)}static #l=(()=>dt7948.n(this.prototype,"emailSettingsValid",[(0,c.default)("smtpSettingsValid","imapSettingsValid","group.smtp_enabled","group.imap_enabled")]))();_anySmtpFieldsFilled(){return[this.group.smtp_server,this.group.smtp_port,this.group.email_username,this.group.email_password].some(e=>!(0,o.isEmpty)(e))}_anyImapFieldsFilled(){return[this.group.imap_server,this.group.imap_port].some(e=>!(0,o.isEmpty)(e))}onChangeSmtpSettingsValid(e){this.set("smtpSettingsValid",e)}static #c=(()=>dt7948.n(this.prototype,"onChangeSmtpSettingsValid",[n.action]))();smtpEnabledChange(e){!e.target.checked&&this.group.smtp_enabled&&this._anySmtpFieldsFilled()&&this.dialog.confirm({message:(0,u.i18n)("groups.manage.email.smtp_disable_confirm"),didConfirm:()=>this.group.set("smtp_enabled",!0),didCancel:()=>this.group.set("imap_enabled",!1)}),this.group.set("smtp_enabled",e.target.checked)}static #u=(()=>dt7948.n(this.prototype,"smtpEnabledChange",[n.action]))();imapEnabledChange(e){!e.target.checked&&this.group.imap_enabled&&this._anyImapFieldsFilled()&&this.dialog.confirm({message:(0,u.i18n)("groups.manage.email.imap_disable_confirm"),didConfirm:()=>this.group.set("imap_enabled",!0)}),this.group.set("imap_enabled",e.target.checked)}static #d=(()=>dt7948.n(this.prototype,"imapEnabledChange",[n.action]))();afterSave(){this.store.find("group",this.group.name).then(()=>{this._determineSettingsValid()})}static #p=(()=>dt7948.n(this.prototype,"afterSave",[n.action]))()},[(0,a.tagName)("")]),h=(0,s.setComponentTemplate)(d,p)},97442:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(63748),o=i(843);let a=(0,i(85671).createTemplateFactory)({id:"RDMA0X5G",block:'[[[41,[30,0,["value"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-manage-logs-filter"]],[["@action","@icon","@translatedLabel"],[[28,[37,2],[[30,0,["clearFilter"]],[30,0,["type"]]],null],"circle-xmark",[28,[37,3],[[30,0,["label"]],": ",[30,0,["filterText"]]],null]]],null],[1,"\\n"]],[]],null]],[],false,["if","d-button","fn","concat"]]',moduleName:"discourse/components/group-manage-logs-filter.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{label(e){return(0,o.i18n)(`groups.manage.logs.${e}`)}static #e=(()=>dt7948.n(this.prototype,"label",[(0,r.default)("type")]))();filterText(e,t){return"action"===t?(0,o.i18n)(`group_histories.actions.${e}`):e}static #i=(()=>dt7948.n(this.prototype,"filterText",[(0,r.default)("value","type")]))()},[(0,n.tagName)("")]),c=(0,s.setComponentTemplate)(a,l)},48103:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"7MQ5LOAQ",block:'[[[10,"tr"],[14,0,"group-manage-logs-row"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","action"]],"action"]]]],null],[30,0,["log","actionTitle"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,6],[[30,0,["log","acting_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","acting_user","username"]],"acting_user"]]]],null],[30,0,["log","acting_user","username"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","target_user"]],[[[1," "],[10,1],[12],[1,[28,[35,6],[[30,0,["log","target_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","target_user","username"]],"target_user"]]]],null],[30,0,["log","target_user","username"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","subject"]],[[[1," "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","subject"]],"subject"]]]],null],[30,0,["log","subject"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,[28,[35,8],[[30,0,["log","created_at"]]],null]],[13],[1,"\\n\\n "],[10,"td"],[14,0,"group-manage-logs-expand-details"],[12],[1,"\\n"],[41,[30,0,["log","prev_value"]],[[[1," "],[8,[39,2],null,[["@action","@icon"],[[30,0,["toggleDetails"]],[52,[30,0,["expandDetails"]],"angle-up","angle-down"]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["expandDetails"]],[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[14,"colspan","6"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,11],["groups.manage.logs.from"],null]],[13],[1,":\\n "],[10,"code"],[12],[1,[30,0,["log","prev_value"]]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[12],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,11],["groups.manage.logs.to"],null]],[13],[1,":\\n "],[10,"code"],[12],[1,[30,0,["log","new_value"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["tr","td","d-button","fn","hash","span","avatar","if","bound-date","p","strong","i18n","code"]]',moduleName:"discourse/components/group-manage-logs-row.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{expandDetails=!1;toggleDetails(){this.toggleProperty("expandDetails")}static #e=(()=>dt7948.n(this.prototype,"toggleDetails",[n.action]))();filter(e){this.set(`filters.${e.key}`,e.value)}static #i=(()=>dt7948.n(this.prototype,"filter",[n.action]))()},[(0,r.tagName)("")]),l=(0,s.setComponentTemplate)(o,a)},45176:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(30574),o=i(83133),a=i(36453),l=i(9687),c=i(88355),u=i(63748),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"u7wAEI2x",block:'[[[41,[30,0,["privateGroupNameNotice"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-warning alert-private-group-name"],[12],[1,"\\n "],[1,[30,0,["privateGroupNameNotice"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"control-group buttons group-manage-save-button"],[12],[1,"\\n "],[8,[39,2],[[24,0,"btn-primary group-manage-save"]],[["@action","@disabled","@translatedLabel"],[[30,0,["save"]],[28,[37,3],[[30,0,["disabled"]],[30,0,["saving"]]],null],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[12],[1,[28,[35,5],["saved"],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","div","d-button","or","span","i18n"]]',moduleName:"discourse/components/group-manage-save-button.hbs",isStrictMode:!1});class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();saving=null;disabled=!1;updateExistingUsers=null;static #i=(()=>dt7948.g(this.prototype,"hasFlair",[(0,r.or)("model.flair_icon","model.flair_upload_id")]))();#tF=(()=>void dt7948.i(this,"hasFlair"))();savingText(e){return e?(0,d.i18n)("saving"):(0,d.i18n)("save")}static #s=(()=>dt7948.n(this.prototype,"savingText",[(0,u.default)("saving")]))();privateGroupNameNotice(e,t,i){return 0===e?void 0:t?(0,d.i18n)("admin.groups.manage.alert.primary_group",{group_name:this.model.name}):i?(0,d.i18n)("admin.groups.manage.alert.flair_group",{group_name:this.model.name}):void 0}static #l=(()=>dt7948.n(this.prototype,"privateGroupNameNotice",[(0,u.default)("model.visibility_level","model.primary_group","hasFlair")]))();setUpdateExistingUsers(e){this.updateExistingUsers=e}static #c=(()=>dt7948.n(this.prototype,"setUpdateExistingUsers",[n.action]))();save(){this.beforeSave&&this.beforeSave(),this.set("saving",!0);let e=this.model;(0,l.popupAutomaticMembershipAlert)(e.id,e.automatic_membership_email_domains);let t={};return null!==this.updateExistingUsers&&(t.update_existing_users=this.updateExistingUsers),e.save(t).then(()=>{this.setProperties({saved:!0,updateExistingUsers:null}),this.afterSave&&this.afterSave()}).catch(e=>{let t=e.jqXHR.responseJSON;422===e.jqXHR.status&&t.user_count?this.editGroupNotifications(t):(0,c.popupAjaxError)(e)}).finally(()=>this.set("saving",!1))}static #u=(()=>dt7948.n(this.prototype,"save",[n.action]))();async editGroupNotifications(e){await this.modal.show(a.default,{model:{count:e.user_count,setUpdateExistingUsers:this.setUpdateExistingUsers}}),this.save()}static #d=(()=>dt7948.n(this.prototype,"editGroupNotifications",[n.action]))()}(0,s.setComponentTemplate)(p,h)},14995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){let e=[{id:"removeMember",name:(0,r.i18n)("groups.members.remove_member"),description:(0,r.i18n)("groups.members.remove_member_description",{username:this.get("member.username")}),icon:"user-xmark"}];return this.canAdminGroup?this.member.owner?e.push({id:"removeOwner",name:(0,r.i18n)("groups.members.remove_owner"),description:(0,r.i18n)("groups.members.remove_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}):e.push({id:"makeOwner",name:(0,r.i18n)("groups.members.make_owner"),description:(0,r.i18n)("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}):this.canEditGroup&&!this.member.owner&&e.push({id:"makeOwner",name:(0,r.i18n)("groups.members.make_owner"),description:(0,r.i18n)("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}),this.currentUser.staff&&(this.member.primary?e.push({id:"removePrimary",name:(0,r.i18n)("groups.members.remove_primary"),description:(0,r.i18n)("groups.members.remove_primary_description",{username:this.get("member.username")}),icon:"id-card"}):e.push({id:"makePrimary",name:(0,r.i18n)("groups.members.make_primary"),description:(0,r.i18n)("groups.members.make_primary_description",{username:this.get("member.username")}),icon:"id-card"})),e}static #e=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("member.owner","member.primary")]))()},[(0,a.pluginApiIdentifiers)("group-member-dropdown"),(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("group-member-dropdown")])},10588:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"++b6J6cv",block:'[[[10,3],[15,6,[30,0,["member","adminPath"]]],[12],[1,"\\n "],[1,[28,[35,1],[[30,0,["member"]]],[["imageSize"],["small"]]]],[1,"\\n"],[13],[1,"\\n"],[10,1],[12],[1,[30,0,["member","username"]]],[13],[1,"\\n"],[41,[51,[30,0,["automatic"]]],[[[1," "],[11,3],[24,6,""],[24,0,"remove"],[4,[38,4],["click",[30,0,["remove"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["xmark"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["a","avatar","span","unless","on","d-icon"]]',moduleName:"discourse/components/group-member.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{remove(e){e?.preventDefault(),this.removeAction(this.member)}static #e=(()=>dt7948.n(this.prototype,"remove",[n.action]))()},[(0,r.classNames)("item")]),l=(0,s.setComponentTemplate)(o,a)},95253:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(83133),o=i(53397),a=i(88355),l=i(61004),c=i(63748),u=i(843),d=i(24822);let p=(0,i(85671).createTemplateFactory)({id:"QND6VZq1",block:'[[[41,[30,0,["canJoinGroup"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-index-join"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"joinGroup"],null],"user-plus","groups.join",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canLeaveGroup"]],[[[1," "],[8,[39,1],[[24,0,"btn-danger group-index-leave"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"leaveGroup"],null],"user-xmark","groups.leave",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canRequestMembership"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-index-request"]],[["@action","@disabled","@icon","@label"],[[28,[37,2],[[30,0],"showRequestMembershipForm"],null],[30,0,["loading"]],"user-plus","groups.request"]],null],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],[]]]],[]]]],["&default"],false,["if","d-button","action","yield"]]',moduleName:"discourse/components/group-membership-button.hbs",isStrictMode:!1}),h=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();canJoinGroup(e,t){return e&&!t}static #c=(()=>dt7948.n(this.prototype,"canJoinGroup",[(0,c.default)("model.public_admission","userIsGroupUser")]))();canLeaveGroup(e,t){return e&&t}static #u=(()=>dt7948.n(this.prototype,"canLeaveGroup",[(0,c.default)("model.public_exit","userIsGroupUser")]))();canRequestMembership(e,t){return e&&!t}static #d=(()=>dt7948.n(this.prototype,"canRequestMembership",[(0,c.default)("model.allow_membership_requests","userIsGroupUser")]))();userIsGroupUser(e){return!!e}static #p=(()=>dt7948.n(this.prototype,"userIsGroupUser",[(0,c.default)("model.is_group_user")]))();_showLoginModal(){this.showLogin(),(0,l.default)("destination_url",window.location.href)}removeFromGroup(){let e=this.model;e.leave().then(()=>{e.set("is_group_user",!1),this.appEvents.trigger("group:leave",e)}).catch(a.popupAjaxError).finally(()=>this.set("updatingMembership",!1))}joinGroup(){if(this.currentUser){this.set("updatingMembership",!0);let e=this.model;e.join().then(()=>{e.set("is_group_user",!0),this.appEvents.trigger("group:join",e)}).catch(a.popupAjaxError).finally(()=>{this.set("updatingMembership",!1)})}else this._showLoginModal()}static #h=(()=>dt7948.n(this.prototype,"joinGroup",[n.action]))();leaveGroup(){if(this.set("updatingMembership",!0),!this.model.public_admission)return this.dialog.yesNoConfirm({message:(0,u.i18n)("groups.confirm_leave"),didConfirm:()=>this.removeFromGroup(),didCancel:()=>this.set("updatingMembership",!1)});this.removeFromGroup()}static #m=(()=>dt7948.n(this.prototype,"leaveGroup",[n.action]))();showRequestMembershipForm(){this.currentUser?this.modal.show(d.default,{model:{group:this.model}}):this._showLoginModal()}static #g=(()=>dt7948.n(this.prototype,"showRequestMembershipForm",[n.action]))()},[(0,o.classNames)("group-membership-button")]),m=(0,s.setComponentTemplate)(p,h)},70972:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"VeHiyDk0",block:'[[[8,[39,0],[[24,0,"group-nav"]],[["@desktopClass"],["nav nav-pills"]],[["default"],[[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route"],["groups.index"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["groups.index.all"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,5],null,[["@groups","@value"],[[30,0,["group","extras","visible_group_names"]],[30,0,["group","name"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,3],[[16,"title",[30,1,["message"]]],[16,0,[30,1,["name"]]]],[["@route","@model"],[[30,1,["route"]],[30,0,["group"]]]],[["default"],[[[[1,"\\n "],[41,[30,1,["icon"]],[[[1,[28,[35,8],[[30,1,["icon"]]],null]]],[]],null],[1,"\\n "],[1,[30,1,["message"]]],[1,"\\n "],[41,[30,1,["count"]],[[[10,1],[14,0,"count"],[12],[1,"("],[1,[30,1,["count"]]],[1,")"],[13]],[]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@name","@outletArgs","@connectorTagName"],["group-reports-nav-item",[28,[37,11],null,[["group"],[[30,0,["group"]]]]],"li"]],null],[1,"\\n"]],[]]]]]],["tab"],false,["mobile-nav","if","li","link-to","i18n","group-dropdown","each","-track-array","d-icon","span","plugin-outlet","hash"]]',moduleName:"discourse/components/group-navigation.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.tagName)("")]),a=(0,s.setComponentTemplate)(r,o)},18005:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75099),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"YvH6hSJz",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"group-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix"],[[30,1],[30,2],false,false,"groups.notifications"]],null],[1,"\\n"]],["@onChange","@levelId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-notifications-tracking.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"group-notifications-tracking:GroupNotificationsTracking"))},26145:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(53653),n=i(75983),r=i(42064),o=i(25124),a=i.n(o),l=i(63748),c=i(47716),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"HT731gUy",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,0,"group-selector"],[14,3,"groups"],[14,4,"text"],[12],[13]],[],false,["input"]]',moduleName:"discourse/components/group-selector.hbs",isStrictMode:!1});class p extends s.default{placeholder(e){return e?(0,u.i18n)(e):""}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,l.default)("placeholderKey")]))();_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})}static #i=(()=>dt7948.n(this.prototype,"_update",[(0,r.observes)("groupNames")]))();_initializeAutocomplete(e){let t;let i=this.groupNames;a()(this.element.querySelector("input")).autocomplete({debounced:!0,allowAny:!1,items:Array.isArray(i)?i:(0,n.isEmpty)(i)?[]:[i],single:this.single,fullWidthWrap:this.fullWidthWrap,updateData:!!e&&!!e.updateData&&e.updateData,onChangeItems:e=>{t=e,this.onChange?this.onChange(e.join(",")):this.onChangeCallback?this.onChangeCallback(this.groupNames,t):this.set("groupNames",e.join(","))},transformComplete:e=>e.name,dataSource:e=>this.groupFinder(e).then(e=>t?e.filter(e=>!t.any(t=>t===e.name)):e),template:(0,c.findRawTemplate)("group-selector-autocomplete")})}static #s=(()=>dt7948.n(this.prototype,"_initializeAutocomplete",[(0,r.on)("didInsertElement")]))()}(0,s.setComponentTemplate)(d,p)},14178:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(43696),c=i(83133),u=i(81329),d=i(15447),p=i(54412),h=i(6864),m=i(88355),g=i(17773),f=i(13280),_=i(843),y=i(53653),b=i(85671);let w=(0,i(38168).A)(i(8554)).cached;class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[c.service]))();#C=(()=>void dt7948.i(this,"toasts"))();static #s=(()=>dt7948.g(this.prototype,"smtpSettingsValid",[n.tracked],function(){return!1}))();#tI=(()=>void dt7948.i(this,"smtpSettingsValid"))();static #l=(()=>dt7948.g(this.prototype,"testingSettings",[n.tracked],function(){return!1}))();#tN=(()=>void dt7948.i(this,"testingSettings"))();get sslModes(){return Object.keys(g.GROUP_SMTP_SSL_MODES).map(e=>({value:g.GROUP_SMTP_SSL_MODES[e],name:(0,_.i18n)(`groups.manage.email.ssl_modes.${e}`)}))}get formData(){let e=(0,a.getProperties)(this.args.group,"email_username","email_password","email_from_alias","smtp_server","smtp_port","smtp_ssl_mode");return e.smtp_ssl_mode??=g.GROUP_SMTP_SSL_MODES.none,e}static #c=(()=>dt7948.n(this.prototype,"formData",[w]))();changeSmtpSettingsValid(e){this.smtpSettingsValid=e,this.args.onChangeSmtpSettingsValid(e)}static #u=(()=>dt7948.n(this.prototype,"changeSmtpSettingsValid",[a.action]))();prefillSettings(e,t,i){i?.preventDefault();let s=(0,f.default)(e,"smtp");Object.keys(s).forEach(e=>{t(e,s[e])})}static #d=(()=>dt7948.n(this.prototype,"prefillSettings",[a.action]))();testSmtpSettings(e){let t={host:e.smtp_server,port:e.smtp_port,ssl_mode:e.smtp_ssl_mode,username:e.email_username,password:e.email_password};return this.testingSettings=!0,this.changeSmtpSettingsValid(!1),(0,h.ajax)(`/groups/${this.args.group.id}/test_email_settings`,{type:"POST",data:Object.assign(t,{protocol:"smtp"})}).then(()=>{this.changeSmtpSettingsValid(!0),this.args.group.setProperties({smtp_server:e.smtp_server,smtp_port:e.smtp_port,smtp_ssl_mode:e.smtp_ssl_mode,email_username:e.email_username,email_from_alias:e.email_from_alias||"",email_password:e.email_password}),this.toasts.success({duration:3e3,data:{message:(0,_.i18n)("groups.manage.email.smtp_settings_valid")}})}).catch(m.popupAjaxError).finally(()=>this.testingSettings=!1)}static #p=(()=>dt7948.n(this.prototype,"testSmtpSettings",[a.action]))();resetTestingSettings(e,t,i){let{set:s}=i;this.changeSmtpSettingsValid(!1),s(e,t)}static #h=(()=>dt7948.n(this.prototype,"resetTestingSettings",[a.action]))();static #m=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"gEnDujX1",block:'[[[1,"\\n "],[10,0],[14,0,"group-smtp-email-settings"],[12],[1,"\\n "],[8,[32,0],null,[["@data","@onSubmit"],[[30,0,["formData"]],[30,0,["testSmtpSettings"]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["Row"]],null,null,[["default"],[[[[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_server",[28,[32,1],["groups.manage.email.credentials.smtp_server"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_server"],null]]],[["default"],[[[[1,"\\n "],[8,[30,3,["Input"]],null,null,null],[1,"\\n "]],[3]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["email_username",[28,[32,1],["groups.manage.email.credentials.username"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"email_username"],null]]],[["default"],[[[[1,"\\n "],[8,[30,4,["Input"]],null,null,null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_port",[28,[32,1],["groups.manage.email.credentials.smtp_port"],null],"required|integer",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_port"],null]]],[["default"],[[[[1,"\\n "],[8,[30,5,["Input"]],null,[["@type"],["number"]],null],[1,"\\n "]],[5]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["email_password",[28,[32,1],["groups.manage.email.credentials.password"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"email_password"],null]]],[["default"],[[[[1,"\\n "],[8,[30,6,["Password"]],null,null,null],[1,"\\n "]],[6]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_ssl_mode",[28,[32,1],["groups.manage.email.credentials.smtp_ssl_mode"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_ssl_mode"],null]]],[["default"],[[[[1,"\\n "],[8,[30,7,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sslModes"]]],null]],null],null,[[[1," "],[8,[30,8,["Option"]],null,[["@value"],[[30,9,["value"]]]],[["default"],[[[[1,[30,9,["name"]]]],[]]]]],[1,"\\n"]],[9]],null],[1," "]],[8]]]]],[1,"\\n "]],[7]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@description"],["email_from_alias",[28,[32,1],["groups.manage.email.settings.from_alias"],null],[28,[32,1],["groups.manage.email.settings.from_alias_hint"],null]]],[["default"],[[[[1,"\\n "],[8,[30,10,["Input"]],null,null,null],[1,"\\n "]],[10]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[8,[30,1,["Submit"]],[[24,"tabindex","7"],[24,0,"btn-primary group-smtp-form__test-smtp-settings"]],[["@disabled","@icon","@label","@title"],[[28,[32,3],[[30,0,["testingSettings"]]],null],"gear","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n "],[8,[30,1,["Container"]],[[24,0,"group-smtp-prefill-options"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,1],["groups.manage.email.prefill.title"],null]],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_gmail"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"gmail",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_outlook"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"outlook",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.outlook"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_office365"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"office365",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.office365"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n\\n"],[41,[30,11,["smtp_updated_at"]],[[[1," "],[10,0],[14,0,".group-smtp-form__last-updated-details"],[12],[1,"\\n "],[10,"small"],[12],[1,"\\n "],[1,[28,[32,1],["groups.manage.email.last_updated"],null]],[1,"\\n "],[10,"strong"],[12],[1,[28,[32,5],[[30,11,["smtp_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n "],[1,[28,[32,1],["groups.manage.email.last_updated_by"],null]],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["user",[30,11,["smtp_updated_by","username"]]]],[["default"],[[[[1,[30,11,["smtp_updated_by","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["form","row","field","field","field","field","field","select","sslMode","field","@group"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-smtp-email-settings.js",scope:()=>[d.default,_.i18n,r.fn,u.or,o.on,p.default,l.LinkTo],isStrictMode:!0}),this))()}},73456:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(30574),r=i(63748),o=i(23777),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"XbRIykBW",block:'[[[41,[30,0,["canAdminGroup"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility_levels.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange","@options"],["alias","value",[30,0,["model","visibility_level"]],[30,0,["visibilityLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","visibility_level"]]],null]],null],[28,[37,7],null,[["castInteger"],[true]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility_levels.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.members_visibility_levels.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-members-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["membersVisibilityLevel"]],[30,0,["visibilityLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","members_visibility_level"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["membersVisibilityPrivate"]],[[[1," "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.members_visibility_levels.description"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.interaction.posting"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,3],["groups.alias_levels.mentionable"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-mentionable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["mentionableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","mentionable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,3],["groups.alias_levels.messageable"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-messageable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["messageableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","messageable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canAdminGroup"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,8],[[24,0,"groups-form-publish-read-state"]],[["@type","@checked"],["checkbox",[30,0,["model","publish_read_state"]]]],null],[1,"\\n\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.publish_read_state"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEmailSettings"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.email"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,"for","incoming_email"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.incoming_email"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge groups-form-incoming-email"]],[["@name","@value","@placeholderKey"],["incoming_email",[30,0,["model","incoming_email"]],"admin.groups.manage.interaction.incoming_email_placeholder"]],null],[1,"\\n\\n "],[8,[39,10],null,[["@icon","@content"],["circle-info",[28,[37,3],["admin.groups.manage.interaction.incoming_email_tooltip"],null]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["group-email-in","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.interaction.notification"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["groups.notification_level"],null]],[13],[1,"\\n\\n "],[8,[39,13],[[24,0,"groups-form-default-notification-level"]],[["@value","@options","@onChange"],[[30,0,["defaultNotificationLevel"]],[28,[37,7],null,[["i18nPrefix"],["groups.notifications"]]],[28,[37,5],[[28,[37,6],[[30,0,["model","default_notification_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["groups-interaction-custom-options","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","div","label","i18n","combo-box","fn","mut","hash","input","text-field","d-tooltip","span","plugin-outlet","notifications-button"]]',moduleName:"discourse/components/groups-form-interaction-fields.hbs",isStrictMode:!1});class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"membersVisibilityLevel",[(0,n.or)("model.members_visibility_level","visibilityLevelOptions.firstObject.value")]))();#tO=(()=>void dt7948.i(this,"membersVisibilityLevel"))();static #i=(()=>dt7948.g(this.prototype,"messageableLevel",[(0,n.or)("model.messageable_level","aliasLevelOptions.firstObject.value")]))();#tL=(()=>void dt7948.i(this,"messageableLevel"))();static #s=(()=>dt7948.g(this.prototype,"mentionableLevel",[(0,n.or)("model.mentionable_level","aliasLevelOptions.firstObject.value")]))();#tR=(()=>void dt7948.i(this,"mentionableLevel"))();visibilityLevelOptions=(()=>[{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.public"),value:0},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.logged_on_users"),value:1},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.members"),value:2},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.staff"),value:3},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.owners"),value:4}])();aliasLevelOptions=(()=>[{name:(0,a.i18n)("groups.alias_levels.nobody"),value:0},{name:(0,a.i18n)("groups.alias_levels.only_admins"),value:1},{name:(0,a.i18n)("groups.alias_levels.mods_and_admins"),value:2},{name:(0,a.i18n)("groups.alias_levels.members_mods_and_admins"),value:3},{name:(0,a.i18n)("groups.alias_levels.owners_mods_and_admins"),value:4},{name:(0,a.i18n)("groups.alias_levels.everyone"),value:99}])();watchingNotificationLevel=(()=>o.NotificationLevels.WATCHING)();defaultNotificationLevel(e,t){return Object.values(o.NotificationLevels).includes(e)?e:t}static #l=(()=>dt7948.n(this.prototype,"defaultNotificationLevel",[(0,r.default)("model.default_notification_level","watchingNotificationLevel")]))();showEmailSettings(e,t,i){return e&&i&&!t}static #c=(()=>dt7948.n(this.prototype,"showEmailSettings",[(0,r.default)("siteSettings.email_in","model.automatic","currentUser.admin")]))();canAdminGroup(e,t,i){return!e&&i||e&&t}static #u=(()=>dt7948.n(this.prototype,"canAdminGroup",[(0,r.default)("model.isCreated","model.can_admin_group","currentUser.can_create_group")]))();membersVisibilityPrivate(e){return e!==this.visibilityLevelOptions.firstObject.value}static #d=(()=>dt7948.n(this.prototype,"membersVisibilityPrivate",[(0,r.default)("membersVisibilityLevel")]))()}(0,s.setComponentTemplate)(l,c)},7325:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(35533),r=i(30574),o=i(63748),a=i(32275),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"cvYorSfn",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["groups.manage.membership.access"],null]],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-public-admission"],[16,"disabled",[30,0,["disablePublicSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","public_admission"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.public_admission"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-public-exit"]],[["@type","@checked"],["checkbox",[30,0,["model","public_exit"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.public_exit"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-allow-membership-requests"],[16,"disabled",[30,0,["disableMembershipRequestSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","allow_membership_requests"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.allow_membership_requests"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","allow_membership_requests"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"label"],[14,"for","membership-request-template"],[12],[1,"\\n "],[1,[28,[35,2],["groups.membership_request_template"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,5],[[16,2,[30,0,["model","membership_request_template"]]],[24,3,"membership-request-template"],[24,0,"group-form-membership-request-template input-xxlarge"],[4,[38,6],["input",[28,[37,7],[[28,[37,8],[[28,[37,9],[[30,0,["model","membership_request_template"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["model","can_admin_group"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["admin.groups.manage.membership.automatic"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","automatic_membership"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.manage.membership.automatic_membership_email_domains"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],[[24,0,"group-form-automatic-membership-automatic"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange","@options"],["automatic_membership",[30,0,["emailDomains"]],[30,0,["emailDomains"]],"name",null,null,[28,[37,11],[[30,0],"onChangeEmailDomainsSetting"],null],[28,[37,12],null,[["allowAny"],[true]]]]],null],[1,"\\n\\n"],[41,[30,0,["showAssociatedGroups"]],[[[1," "],[10,"label"],[14,"for","automatic_membership_associated_groups"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.manage.membership.automatic_membership_associated_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],[[24,0,"group-form-automatic-membership-associated-groups"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange"],["automatic_membership_associated_groups",[30,0,["model","associatedGroupIds"]],[30,0,["associatedGroups"]],"name","label","id",[28,[37,8],[[28,[37,9],[[30,0,["model","associated_group_ids"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["groups-form-membership-below-automatic","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["admin.groups.manage.membership.effects"],null]],[13],[1,"\\n "],[10,"label"],[14,"for","grant_trust_level"],[12],[1,[28,[35,2],["admin.groups.manage.membership.trust_levels_title"],null]],[13],[1,"\\n\\n "],[8,[39,15],[[24,0,"groups-form-grant-trust-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["grant_trust_level","value",[30,0,["groupTrustLevel"]],[30,0,["trustLevelOptions"]],[28,[37,8],[[28,[37,9],[[30,0,["model","grant_trust_level"]]],null]],null]]],null],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"groups-form-primary-group"]],[["@type","@checked"],["checkbox",[30,0,["model","primary_group"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["admin.groups.manage.membership.primary_group"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","title"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.default_title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],[[24,3,"title"],[24,0,"input-xxlarge"]],[["@value"],[[30,0,["model","title"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.default_title_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,16],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["div","label","i18n","input","if","expanding-text-area","on","with-event-value","fn","mut","list-setting","action","hash","span","plugin-outlet","combo-box","group-flair-inputs"]]',moduleName:"discourse/components/groups-form-membership-fields.hbs",isStrictMode:!1});class u extends s.default{tokenSeparator="|";static #e=(()=>dt7948.g(this.prototype,"showAssociatedGroups",[(0,r.readOnly)("site.can_associate_groups")]))();#tU=(()=>void dt7948.i(this,"showAssociatedGroups"))();static #i=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.not)("model.automatic")]))();#tj=(()=>void dt7948.i(this,"canEdit"))();trustLevelOptions=(()=>[{name:(0,l.i18n)("admin.groups.manage.membership.trust_levels_none"),value:0},{name:1,value:1},{name:2,value:2},{name:3,value:3},{name:4,value:4}])();init(){super.init(...arguments),this.showAssociatedGroups&&this.loadAssociatedGroups()}get groupTrustLevel(){return this.model.get("grant_trust_level")||this.trustLevelOptions.firstObject.value}static #s=(()=>dt7948.n(this.prototype,"groupTrustLevel",[(0,n.computed)("model.grant_trust_level","trustLevelOptions")]))();disableMembershipRequestSetting(e,t){return e=parseInt(e,10),t||e>1}static #l=(()=>dt7948.n(this.prototype,"disableMembershipRequestSetting",[(0,o.default)("model.visibility_level","model.public_admission")]))();disablePublicSetting(e,t){return e=parseInt(e,10),t||e>1}static #c=(()=>dt7948.n(this.prototype,"disablePublicSetting",[(0,o.default)("model.visibility_level","model.allow_membership_requests")]))();get emailDomains(){return this.model.emailDomains.split(this.tokenSeparator).filter(Boolean)}static #u=(()=>dt7948.n(this.prototype,"emailDomains",[(0,n.computed)("model.emailDomains")]))();loadAssociatedGroups(){a.default.list().then(e=>this.set("associatedGroups",e))}onChangeEmailDomainsSetting(e){this.set("model.automatic_membership_email_domains",e.join(this.tokenSeparator))}static #d=(()=>dt7948.n(this.prototype,"onChangeEmailDomainsSetting",[n.action]))()}(0,s.setComponentTemplate)(c,u)},91023:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(30574),o=i(75983),a=i(42064),l=i(88355),c=i(46301),u=i(63748),d=i(6856),p=i(843);let h=(0,i(85671).createTemplateFactory)({id:"Vc2mCVJ6",block:'[[[41,[30,0,["canEdit"]],[[[41,[30,0,["currentUser","can_create_group"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","name"],[12],[1,[28,[35,3],["groups.name"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"input-xxlarge group-form-name"]],[["@name","@value","@placeholderKey"],["name",[30,0,["nameInput"]],"admin.groups.name_placeholder"]],null],[1,"\\n\\n "],[8,[39,5],null,[["@validation"],[[30,0,["nameValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","full_name"],[12],[1,[28,[35,3],["groups.manage.full_name"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"input-xxlarge group-form-full-name"]],[["@name","@value"],["full_name",[30,0,["model","full_name"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bio"],[12],[1,[28,[35,3],["groups.bio"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"group-form-bio input-xxlarge"]],[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","automatic"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,7],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1," "],[18,1,null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["group-edit","div",[28,[37,11],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["&default"],false,["if","div","label","i18n","text-field","input-tip","d-editor","group-flair-inputs","yield","span","plugin-outlet","hash"]]',moduleName:"discourse/components/groups-form-profile-fields.hbs",isStrictMode:!1});class m extends s.default{disableSave=null;nameInput=null;static #e=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.not)("model.automatic")]))();#tj=(()=>void dt7948.i(this,"canEdit"))();didInsertElement(){super.didInsertElement(...arguments);let e=this.get("model.name");e?this.set("nameInput",e):this.set("disableSave",!0)}nameValidation(e,t){return t||e}static #i=(()=>dt7948.n(this.prototype,"nameValidation",[(0,u.default)("basicNameValidation","uniqueNameValidation")]))();_validateName(){return this.nameInput===this.get("model.name")?void 0:void 0===this.nameInput?this._failedInputValidation():""===this.nameInput?(this.set("uniqueNameValidation",null),this._failedInputValidation((0,p.i18n)("admin.groups.new.name.blank"))):this.nameInput.lengththis.siteSettings.max_username_length?this._failedInputValidation((0,p.i18n)("admin.groups.new.name.too_long")):(this.checkGroupNameDebounced(),this._failedInputValidation((0,p.i18n)("admin.groups.new.name.checking")))}static #s=(()=>dt7948.n(this.prototype,"_validateName",[(0,a.observes)("nameInput")]))();checkGroupNameDebounced(){(0,c.default)(this,this._checkGroupName,500)}_checkGroupName(){(0,o.isEmpty)(this.nameInput)||d.default.checkName(this.nameInput).then(e=>{let t="uniqueNameValidation";if(e.available)this.set(t,n.default.create({ok:!0,reason:(0,p.i18n)("admin.groups.new.name.available")})),this.set("disableSave",!1),this.set("model.name",this.nameInput);else{let i;i=e.errors?e.errors.join(" "):(0,p.i18n)("admin.groups.new.name.not_available"),this.set(t,this._failedInputValidation(i))}}).catch(l.popupAjaxError)}_failedInputValidation(e){this.set("disableSave",!0);let t={failed:!0};e&&(t.reason=e),this.set("basicNameValidation",n.default.create(t))}}(0,s.setComponentTemplate)(h,m)},24388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{needsSecondRowIf:()=>n});var s=i(16547);function n(){(0,s.default)("`needsSecondRowIf` is deprecated. Use widget hooks on `header-second-row`",{id:"discourse.header-extra-info.needs-second-row-if"})}},8972:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{clearExtraHeaderButtons:()=>D,default:()=>P,headerButtonsDAG:()=>E});var n=i(80989),r=i(8554),o=i(75446),a=i(35533),l=i(31049),c=i(83133),u=i(68587),d=i(81329),p=i(98740),h=i(72024),m=i(35715),g=i(87353),f=i(20924),_=i(96013),y=i(30165),b=i(87706),w=i(78329),k=i(36909),T=i(91080),S=i(53653),C=i(85671);let x="search-button";function A(){(s=new h.default({defaultPosition:{before:"auth"}})).add("auth")}function E(){return s}function D(){A()}A();class P extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[c.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"search",[c.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #d=(()=>dt7948.g(this.prototype,"header",[c.service]))();#tA=(()=>void dt7948.i(this,"header"))();static #p=(()=>dt7948.g(this.prototype,"skipSearchContext",[r.tracked],function(){return this.site.mobileView}))();#t$=(()=>void dt7948.i(this,"skipSearchContext"))();appEventsListeners=(()=>(0,u.modifier)(()=>(this.appEvents.on("header:keyboard-trigger",this,this.headerKeyboardTrigger),()=>{this.appEvents.off("header:keyboard-trigger",this,this.headerKeyboardTrigger)})))();handleFocus=(()=>(0,u.modifier)(e=>{let t=e.querySelector(".panel-body");if(!t)return;let i=!1,s=e=>{e.key&&(i=!0)},n=()=>{i=!1},r=e=>{if(!i)return;let s=document.querySelector(".d-modal")?.contains(e.relatedTarget);t.contains(e.relatedTarget)||s||this.closeCurrentMenu()};return t.addEventListener("keydown",s),t.addEventListener("mousedown",n),t.addEventListener("focusout",r),()=>{t.removeEventListener("keydown",s),t.removeEventListener("mousedown",n),t.removeEventListener("focusout",r)}}))();closeCurrentMenu(){this.search.visible?this.toggleSearchMenu():this.header.userVisible?(this.toggleUserMenu(),document.getElementById("toggle-current-user")?.focus()):this.header.hamburgerVisible&&(this.toggleHamburger(),document.getElementById("toggle-hamburger-menu")?.focus())}static #h=(()=>dt7948.n(this.prototype,"closeCurrentMenu",[a.action]))();headerKeyboardTrigger(e){switch(e.type){case"search":this.toggleSearchMenu();break;case"user":this.toggleUserMenu();break;case"hamburger":this.toggleNavigationMenu();break;case"page-search":this.togglePageSearch()||(e.event.preventDefault(),e.event.stopPropagation())}}static #m=(()=>dt7948.n(this.prototype,"headerKeyboardTrigger",[a.action]))();toggleSearchMenu(){if(this.site.mobileView){let e=this.search.searchContext,t="";return(e&&(t=`?context=${e.type}&context_id=${e.id}&skip_context=${this.skipSearchContext}`),"full-page-search"===this.router.currentRouteName)?((0,f.scrollTop)(),document.querySelector(".full-page-search").focus(),!1):g.default.routeTo("/search"+t)}this.search.visible=!this.search.visible,this.search.visible||(this.search.highlightTerm="",this.search.inTopicContext=!1,document.getElementById(x)?.focus())}static #g=(()=>dt7948.n(this.prototype,"toggleSearchMenu",[a.action]))();togglePageSearch(){this.search.inTopicContext=!1;let e=this.router.currentRouteName.startsWith("topic.");if(e){let t=(0,l.getOwner)(this).lookup("controller:topic"),i=t.get("model.postStream.stream.length")||0;e=i>(t.get("model.chunk_size")||0)&&document.querySelectorAll(".topic-post .cooked, .small-action:not(.time-gap)")?.lengthdt7948.n(this.prototype,"togglePageSearch",[a.action]))();toggleUserMenu(e){this.header.userVisible=e??!this.header.userVisible,this.toggleBodyScrolling(this.header.userVisible),this.args.animateMenu()}static #E=(()=>dt7948.n(this.prototype,"toggleUserMenu",[a.action]))();toggleNavigationMenu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"sidebar"===e?this.toggleSidebar():"hamburger"===e?this.toggleHamburger():void(this.args.sidebarEnabled&&!this.site.narrowDesktopView?this.toggleSidebar():this.toggleHamburger())}static #D=(()=>dt7948.n(this.prototype,"toggleNavigationMenu",[a.action]))();toggleHamburger(){this.header.hamburgerVisible=!this.header.hamburgerVisible,this.toggleBodyScrolling(this.header.hamburgerVisible),this.args.animateMenu()}static #P=(()=>dt7948.n(this.prototype,"toggleHamburger",[a.action]))();toggleSidebar(){this.args.toggleSidebar(),this.args.animateMenu()}static #Q=(()=>dt7948.n(this.prototype,"toggleSidebar",[a.action]))();toggleBodyScrolling(e){this.site.mobileView&&(0,m.default)(e)}static #J=(()=>dt7948.n(this.prototype,"toggleBodyScrolling",[a.action]))();static #X=(()=>(0,S.setComponentTemplate)((0,C.createTemplateFactory)({id:"x2hVlQEM",block:'[[[1,"\\n "],[11,"header"],[24,0,"d-header"],[4,[30,0,["appEventsListeners"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"wrap"],[12],[1,"\\n "],[8,[32,0],null,[["@sidebarEnabled","@toggleNavigationMenu","@showSidebar","@topicInfo","@topicInfoVisible"],[[30,1],[30,0,["toggleNavigationMenu"]],[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"header-buttons"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,1,["resolve"]],null,null]],null]],null],null,[[[41,[28,[32,2],[[28,[32,3],[[30,5,["key"]],"auth"],null],[28,[32,4],[[30,0,["currentUser"]]],null]],null],[[[1," "],[8,[32,5],null,[["@topicInfoVisible","@showCreateAccount","@showLogin","@canSignUp"],[[30,4],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[30,5,["value"]],[[[1," "],[8,[30,5,["value"]],null,null,null],[1,"\\n "]],[]],null]],[]]]],[5]],null],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,4],[[28,[32,2],[[30,0,["siteSettings","login_required"]],[28,[32,4],[[30,0,["currentUser"]]],null]],null]],null],[[[1," "],[8,[32,6],null,[["@sidebarEnabled","@toggleSearchMenu","@toggleNavigationMenu","@toggleUserMenu","@searchButtonId"],[[30,1],[30,0,["toggleSearchMenu"]],[30,0,["toggleNavigationMenu"]],[30,0,["toggleUserMenu"]],[32,7]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","visible"]],[[[1," "],[8,[32,8],[[4,[30,0,["handleFocus"]],null,null]],[["@closeSearchMenu"],[[30,0,["toggleSearchMenu"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["header","hamburgerVisible"]],[[[1," "],[8,[32,9],[[4,[30,0,["handleFocus"]],null,null]],[["@toggleNavigationMenu","@sidebarEnabled"],[[30,0,["toggleNavigationMenu"]],[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,0,["header","userVisible"]],[[[1," "],[8,[32,10],[[4,[30,0,["handleFocus"]],null,null]],[["@toggleUserMenu"],[[30,0,["toggleUserMenu"]]]],null],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n"],[41,[28,[32,2],[[28,[32,11],[[30,0,["site","mobileView"]],[30,0,["site","narrowDesktopView"]]],null],[28,[32,11],[[30,0,["header","hamburgerVisible"]],[30,0,["header","userVisible"]]],null]],null],[[[1," "],[10,0],[14,0,"header-cloak"],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,12],null,[["@name","@outletArgs"],["after-header",[28,[32,13],null,[["minimized"],[[28,[30,4],null,null]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@sidebarEnabled","@showSidebar","@topicInfo","@topicInfoVisible","entry","@showCreateAccount","@showLogin","@canSignUp"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header.js",scope:()=>[y.default,s,d.and,d.eq,d.not,_.default,w.default,x,k.default,b.default,T.default,d.or,p.default,o.hash],isStrictMode:!0}),this))()}},96013:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(18638),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"header",[n.service]))();#tA=(()=>void dt7948.i(this,"header"))();get showSignupButton(){return this.args.canSignUp&&!this.header.headerButtonsHidden.includes("signup")&&!this.args.topicInfoVisible}get showLoginButton(){return!this.header.headerButtonsHidden.includes("login")}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"RsH2KzG3",block:'[[[1,"\\n "],[10,1],[14,0,"auth-buttons"],[12],[1,"\\n"],[41,[30,0,["showSignupButton"]],[[[1," "],[8,[32,0],[[24,0,"btn-primary btn-small sign-up-button"]],[["@action","@label"],[[30,1],"sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showLoginButton"]],[[[1," "],[8,[32,0],[[24,0,"btn-primary btn-small login-button"]],[["@action","@label","@icon"],[[30,2],"log_in","user"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@showCreateAccount","@showLogin"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/auth-buttons.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},30165:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(83133),o=i(81329),a=i(8635),l=i(1799),c=i(38320),u=i(98740),d=i(64210),p=i(14820),h=i(26035),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tA=(()=>void dt7948.i(this,"header"))();static #c=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get sidebarIcon(){return this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?"discourse-sidebar":"bars"}get minimized(){return(0,l.applyValueTransformer)("home-logo-minimized",this.args.topicInfoVisible,{topicInfo:this.args.topicInfo,sidebarEnabled:this.args.sidebarEnabled,showSidebar:this.args.showSidebar})}static #u=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"LcbaqEpx",block:'[[[1,"\\n "],[10,0],[14,0,"contents"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["header-contents__before",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'header-contents__before\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[41,[30,3],[[[1," "],[8,[32,3],null,[["@toggleNavigationMenu","@showSidebar","@icon"],[[30,4],[30,5],[30,0,["sidebarIcon"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,0],[14,0,"home-logo-wrapper-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name"],["home-logo-wrapper"]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@minimized"],[[30,0,["minimized"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[32,5],null,[["@topicInfo"],[[30,1]]],null],[1,"\\n"]],[]],[[[41,[28,[32,6],[[30,0,["siteSettings","bootstrap_mode_enabled"]],[30,0,["currentUser","staff"]],[30,0,["site","desktopView"]]],null],[[[1," "],[10,0],[14,0,"d-header-mode"],[12],[1,"\\n "],[8,[32,7],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[10,0],[14,0,"before-header-panel-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["before-header-panel",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'before-header-panel\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"panel"],[14,"role","navigation"],[12],[18,6,null],[13],[1,"\\n "],[10,0],[14,0,"after-header-panel-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["after-header-panel",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'after-header-panel\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["header-contents__after",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'header-contents__after\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topicInfo","@topicInfoVisible","@sidebarEnabled","@toggleNavigationMenu","@showSidebar","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/contents.js",scope:()=>[u.default,n.hash,a.default,p.default,d.default,h.default,o.and,c.default],isStrictMode:!0}),this))()}},27358:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(81329),l=i(18638),c=i(81133),u=i(97015),d=i(843),p=i(29112),h=i(53653),m=i(85671);class g extends s.default{click(e){(0,u.wantsNewWindow)(e)||(e.preventDefault(),this.args.onClick(e),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur())}static #e=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #i=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"q1RHfF4y",block:'[[[1,"\\n "],[11,"li"],[16,0,[28,[32,0],[[30,1],[52,[30,2],"active"],"header-dropdown-toggle"],null]],[4,[52,[28,[32,1],[[30,2],[30,3]],null],[50,[32,2],2,[[30,4],[28,[32,3],null,[["targetSelector"],[[30,3]]]]],null]],null,null],[12],[1,"\\n "],[8,[32,4],[[24,0,"icon btn-flat"],[16,"aria-expanded",[30,2]],[24,"aria-haspopup","true"],[16,"aria-label",[28,[32,5],[[30,5]],null]],[16,1,[30,6]],[4,[32,6],["click",[30,0,["click"]]],null]],[["@translatedTitle","@icon","@translatedLabel"],[[28,[32,5],[[30,5]],null],[30,7],[30,8]]],null],[1,"\\n\\n "],[13],[1,"\\n "]],["@className","@active","@targetSelector","@onClick","@title","@iconId","@icon","@contents"],false,["if","modifier"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/dropdown.js",scope:()=>[c.default,a.and,p.default,n.hash,l.default,d.i18n,r.on],isStrictMode:!0}),this))()}},87706:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(983),c=i(77093),u=i(53306),d=i(64873),p=i(42236),h=i(29112),m=i(5787),g=i(53653),f=i(85671);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();toggleNavigation(){this.args.toggleNavigationMenu(this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?"hamburger":null)}static #l=(()=>dt7948.n(this.prototype,"toggleNavigation",[o.action]))();click(e){e.target.closest("a[href], .sidebar-section-header-button, .sidebar-section-link:not(.--link-button)")&&this.toggleNavigation()}static #c=(()=>dt7948.n(this.prototype,"click",[o.action]))();clickOutside(e){if(!e.target.closest(".sidebar-more-section-content")){if(e.target.classList.contains("header-cloak")&&!(0,p.prefersReducedMotion)()){let e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),i=(0,d.isDocumentRTL)()?"340px":"-340px",s=e.animate([{transform:`translate3d(${i}, 0, 0)`}],{duration:200*!(0,c.isTesting)(),fill:"forwards",easing:"ease-in"}).finished.then(()=>{(0,c.isTesting)()?this.toggleNavigation():(0,u.default)(()=>this.toggleNavigation())}),n=t.animate([{opacity:0}],{duration:200*!(0,c.isTesting)(),fill:"forwards",easing:"ease-in"}).finished;(0,l.YZ)(s),(0,l.YZ)(n)}else this.toggleNavigation()}}static #u=(()=>dt7948.n(this.prototype,"clickOutside",[o.action]))();get forceMainSidebarPanel(){return!!this.args.sidebarEnabled&&!!this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu}static #d=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"T5bVVwqS",block:'[[[1,"\\n "],[11,0],[24,0,"hamburger-dropdown-wrapper"],[17,1],[4,[32,0],["click",[30,0,["click"]]],null],[4,[32,1],[[30,0,["clickOutside"]],[28,[32,2],null,[["targetSelector","secondaryTargetSelector"],[".hamburger-panel",".hamburger-dropdown"]]]],null],[12],[1,"\\n "],[8,[32,3],null,[["@forceMainSidebarPanel","@toggleNavigationMenu"],[[30,0,["forceMainSidebarPanel"]],[30,0,["toggleNavigation"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/hamburger-dropdown-wrapper.js",scope:()=>[r.on,h.default,n.hash,m.default],isStrictMode:!0}),this))()}},55033:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(72738),n=i(12340),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"OSyFyulh",block:'[[[1,"\\n"],[41,[30,1],[[[41,[30,2],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-small",[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["house"],null]],[1,"\\n"]],[]]]],[]],[[[41,[30,5],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-mobile",[30,6],[30,3],[30,7]]],null],[1,"\\n"]],[]],[[[41,[30,8],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-big",[30,8],[30,3],[30,9]]],null],[1,"\\n"]],[]],[[[1," "],[10,"h1"],[14,1,"site-text-logo"],[14,0,"text-logo"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]]]],["@minimized","@logoSmallUrl","@title","@logoSmallUrlDark","@showMobileLogo","@mobileLogoUrl","@mobileLogoUrlDark","@logoUrl","@logoUrlDark"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/home-logo-contents.js",scope:()=>[n.default,s.default],isStrictMode:!0}),(0,a.default)(void 0,"home-logo-contents:HomeLogoContents"))},64210:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(98740),c=i(81133),u=i(94636),d=i(97015),p=i(1799),h=i(87353),m=i(55033),g=i(53653),f=i(85671);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[a.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();darkModeAvailable=this.session.darkModeAvailable;get href(){return(0,p.applyValueTransformer)("home-logo-href",(0,u.default)("/"))}get showMobileLogo(){return this.site.mobileView&&this.logoResolver("mobile_logo").length>0}get logoUrl(){return this.logoResolver("logo")}get logoUrlDark(){return this.logoResolver("logo",{dark:this.darkModeAvailable})}get logoSmallUrl(){return this.logoResolver("logo_small")}get logoSmallUrlDark(){return this.logoResolver("logo_small",{dark:this.darkModeAvailable})}get mobileLogoUrl(){return this.logoResolver("mobile_logo")}get mobileLogoUrlDark(){return this.logoResolver("mobile_logo",{dark:this.darkModeAvailable})}get title(){return this.siteSettings.title}logoResolver(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=i.dark?this.siteSettings[`site_${e}_dark_url`]:this.session.defaultColorSchemeIsDark?this.siteSettings[`site_${e}_dark_url`]||this.siteSettings[`site_${e}_url`]||"":this.siteSettings[`site_${e}_url`]||"",(0,p.applyValueTransformer)("home-logo-image-url",t,{name:e,dark:i.dark})}click(e){if((0,d.wantsNewWindow)(e))return!1;e.preventDefault(),h.default.routeToTag(e.target.closest("a"))}static #l=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #c=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"u2jSwFlH",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["home-logo",[28,[32,1],null,[["minimized"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[28,[32,2],[[52,[30,1],"title--minimized"],"title"],null]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["href"]]],[4,[32,3],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["home-logo-contents",[28,[32,1],null,[["logoSmallUrl","logoSmallUrlDark","logoUrl","logoUrlDark","minimized","mobileLogoUrl","mobileLogoUrlDark","showMobileLogo","title"],[[30,0,["logoSmallUrl"]],[30,0,["logoSmallUrlDark"]],[30,0,["logoUrl"]],[30,0,["logoUrlDark"]],[30,1],[30,0,["mobileLogoUrl"]],[30,0,["mobileLogoUrlDark"]],[30,0,["showMobileLogo"]],[30,0,["title"]]]]]]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@logoSmallUrl","@logoSmallUrlDark","@logoUrl","@logoUrlDark","@minimized","@mobileLogoUrl","@mobileLogoUrlDark","@showMobileLogo","@title"],[[30,0,["logoSmallUrl"]],[30,0,["logoSmallUrlDark"]],[30,0,["logoUrl"]],[30,0,["logoUrlDark"]],[30,1],[30,0,["mobileLogoUrl"]],[30,0,["mobileLogoUrlDark"]],[30,0,["showMobileLogo"]],[30,0,["title"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@minimized"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/home-logo.js",scope:()=>[l.default,n.hash,c.default,r.on,m.default],isStrictMode:!0}),this))()}},78329:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{clearExtraHeaderIcons:()=>f,default:()=>_,headerIconsDAG:()=>g});var n=i(80989),r=i(35533),o=i(83133),a=i(81329),l=i(72024),c=i(94636),u=i(27358),d=i(12352),p=i(53653),h=i(85671);function m(){(s=new l.default({defaultPosition:{before:"search"}})).add("search"),s.add("hamburger",void 0,{after:"search"}),s.add("user-menu",void 0,{after:"hamburger"})}function g(){return s}function f(){m()}m();class _ extends n.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();static #c=(()=>dt7948.g(this.prototype,"header",[o.service]))();#tA=(()=>void dt7948.i(this,"header"))();static #u=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tB=(()=>void dt7948.i(this,"search"))();get showHamburger(){return!this.header.headerButtonsHidden.includes("menu")&&(!!this.args.sidebarEnabled&&!!this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu||!this.args.sidebarEnabled||this.site.mobileView)}get hideSearchButton(){return this.header.headerButtonsHidden.includes("search")}toggleHamburger(){this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?this.args.toggleNavigationMenu("hamburger"):this.args.toggleNavigationMenu()}static #d=(()=>dt7948.n(this.prototype,"toggleHamburger",[r.action]))();static #p=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"oNmryRfX",block:'[[[1,"\\n "],[10,"ul"],[14,0,"icons d-header-icons"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,0,["resolve"]],null,null]],null]],null],null,[[[41,[28,[32,1],[[30,1,["key"]],"search"],null],[[[41,[51,[30,0,["hideSearchButton"]]],[[[1," "],[8,[32,2],null,[["@title","@icon","@iconId","@onClick","@active","@href","@className","@targetSelector"],["search.title","magnifying-glass",[30,2],[30,3],[30,0,["search","visible"]],[28,[32,3],["/search"],null],"search-dropdown",".search-menu-panel"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[28,[32,1],[[30,1,["key"]],"hamburger"],null],[[[41,[30,0,["showHamburger"]],[[[1," "],[8,[32,2],null,[["@title","@icon","@iconId","@active","@onClick","@className"],["hamburger_menu","bars","toggle-hamburger-menu",[30,0,["header","hamburgerVisible"]],[30,0,["toggleHamburger"]],"hamburger-dropdown"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[28,[32,1],[[30,1,["key"]],"user-menu"],null],[[[41,[30,0,["currentUser"]],[[[1," "],[8,[32,4],null,[["@active","@toggleUserMenu"],[[30,0,["header","userVisible"]],[30,4]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,1,["value"]],[[[1," "],[8,[30,1,["value"]],null,null,null],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]]],[1]],null],[1," "],[13],[1,"\\n "]],["entry","@searchButtonId","@toggleSearchMenu","@toggleUserMenu"],false,["each","-track-array","if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/icons.js",scope:()=>[s,a.eq,u.default,c.default,d.default],isStrictMode:!0}),this))()}},12340:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(81329),n=i(94636),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"RILycffM",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[28,[32,1],[[30,2],[30,1]],null]],null],[[[1," "],[10,"picture"],[12],[1,"\\n "],[10,"source"],[15,"srcset",[28,[32,2],[[30,1]],null]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n "],[10,"img"],[14,1,"site-logo"],[15,0,[30,3]],[15,"src",[28,[32,2],[[30,2]],null]],[15,"width",[52,[28,[32,3],[[30,3],"logo-small"],null],"36"]],[15,"alt",[30,4]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,1,"site-logo"],[15,0,[30,3]],[15,"src",[28,[32,2],[[30,2]],null]],[15,"width",[52,[28,[32,3],[[30,3],"logo-small"],null],"36"]],[15,"alt",[30,4]],[12],[13],[1,"\\n"]],[]]]],["@darkUrl","@url","@key","@title"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/logo.js",scope:()=>[s.and,s.notEq,n.default,s.eq],isStrictMode:!0}),(0,a.default)(void 0,"logo:Logo"))},36909:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(91223),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"x466McI6",block:'[[[1,"\\n "],[11,0],[24,0,"search-menu glimmer-search-menu"],[24,"aria-live","polite"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@closeSearchMenu"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@closeSearchMenu"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/search-menu-wrapper.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"search-menu-wrapper:SearchMenuWrapper"))},14820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(81133),l=i(72738),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();toggleWithBlur(e){this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?this.args.toggleNavigationMenu("sidebar"):this.args.toggleNavigationMenu(),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur()}static #s=(()=>dt7948.n(this.prototype,"toggleWithBlur",[r.action]))();static #l=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"5+22QizG",block:'[[[1,"\\n "],[10,1],[14,0,"header-sidebar-toggle"],[12],[1,"\\n "],[11,"button"],[16,"title",[28,[32,0],["sidebar.title"],null]],[16,0,[28,[32,1],["btn btn-flat btn-sidebar-toggle no-text btn-icon",[52,[30,0,["site","narrowDesktopView"]],"narrow-desktop"]],null]],[16,"aria-expanded",[52,[30,1],"true","false"]],[24,"aria-controls","d-sidebar"],[4,[32,2],["click",[30,0,["toggleWithBlur"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,2]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@showSidebar","@icon"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/sidebar-toggle.js",scope:()=>[c.i18n,a.default,n.on,l.default],isStrictMode:!0}),this))()}},64310:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(72738),r=i(10028),o=i(53653),a=i(85671);class l extends s.default{get meta(){return(0,r.extractLinkMeta)(this.args.topicInfo)}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Eo/Kk45z",block:'[[[1,"\\n"],[41,[30,0,["meta"]],[[[1," "],[10,3],[14,0,"topic-featured-link"],[15,"rel",[30,0,["meta","rel"]]],[15,"target",[30,0,["meta","target"]]],[15,6,[30,0,["meta","href"]]],[12],[1,"\\n "],[1,[28,[32,0],["up-right-from-square"],null]],[1,"\\n "],[1,[30,0,["meta","domain"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/featured-link.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},26035:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(42256),c=i(81329),u=i(40121),d=i(18385),p=i(81133),h=i(72738),m=i(97015),g=i(14298),f=i(87353),_=i(843),y=i(98740),b=i(64310),w=i(78758),k=i(53653),T=i(85671);class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get showPM(){return!this.args.topicInfo.is_warning&&this.args.topicInfo.isPrivateMessage}get totalParticipants(){return(this.args.topicInfo.details.allowed_users?.length||0)+(this.args.topicInfo.allowed_groups?.length||0)}get maxExtraItems(){return this.args.topicInfo.tags?.length>0?5:10}get twoRows(){return this.tags?.length||this.showPM||this.siteSettings.topic_featured_link_enabled}get tags(){if(this.args.topicInfo.get("tags"))return(0,g.default)(this.args.topicInfo)}get remainingParticipantCount(){return this.totalParticipants-this.maxExtraItems}get participants(){return[...this.args.topicInfo.details.allowed_users,...this.args.topicInfo.details.allowed_groups].slice(0,this.maxExtraItems)}get pmHref(){return this.currentUser.pmPath(this.args.topicInfo)}jumpToTopPost(e){!(0,m.wantsNewWindow)(e)&&(e.preventDefault(),this.args.topicInfo&&f.default.routeTo(this.args.topicInfo.firstPostUrl,{keepFilter:!0}))}static #l=(()=>dt7948.n(this.prototype,"jumpToTopPost",[o.action]))();static #c=(()=>(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:"/9k1Qevw",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],[[52,[30,0,["twoRows"]],"two-rows"],"extra-info-wrapper"],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-info__before",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[10,0],[15,0,[28,[32,0],[[52,[30,0,["twoRows"]],"two-rows"],"extra-info"],null]],[12],[1,"\\n "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n "],[10,"h1"],[14,0,"header-title"],[12],[1,"\\n"],[41,[30,0,["showPM"]],[[[1," "],[10,3],[14,0,"private-message-glyph-wrapper"],[15,6,[30,0,["pmHref"]]],[15,"aria-label",[28,[32,3],["user.messages.inbox"],null]],[12],[1,"\\n "],[1,[28,[32,4],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,5],[[30,1,["fancyTitle"]],[30,1,["url"]]],null],[[[1," "],[8,[32,6],null,[["@topic","@disableActions","@context"],[[30,1],[30,2],"header"]],null],[1,"\\n\\n "],[11,3],[24,0,"topic-link"],[16,6,[30,1,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[4,[32,7],["click",[30,0,["jumpToTopPost"]]],null],[12],[1,"\\n "],[10,1],[12],[1,[28,[32,8],[[30,1,["fancyTitle"]]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"header-topic-title-suffix"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-title-suffix",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,9],[[30,1,["details","loaded"]],[30,1,["category"]]],null],[[[41,[28,[32,5],[[30,1,["category"]],[28,[32,9],[[28,[32,10],[[30,1,["category","isUncategorizedCategory"]]],null],[28,[32,10],[[30,0,["siteSettings","suppress_uncategorized_badge"]]],null]],null]],null],[[[1," "],[10,0],[14,0,"categories-wrapper"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-categories-wrapper",[28,[32,2],null,[["category"],[[30,1,["category"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["category","parentCategory"]],[[[41,[28,[32,5],[[30,1,["category","parentCategory","parentCategory"]],[30,0,["site","desktopView"]]],null],[[[1," "],[1,[28,[32,11],[[30,1,["category","parentCategory","parentCategory"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,11],[[30,1,["category","parentCategory"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,11],[[30,1,["category"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n "],[1,[28,[32,8],[[30,0,["tags"]]],null]],[1,"\\n"],[41,[30,0,["showPM"]],[[[1," "],[10,0],[14,0,"topic-header-participants"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["participants"]]],null]],null],null,[[[1," "],[8,[32,12],null,[["@user","@type","@username"],[[30,3],[52,[30,3,["username"]],"user","group"],[28,[32,9],[[30,3,["username"]],[30,3,["name"]]],null]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[28,[32,13],[[30,0,["totalParticipants"]],[30,0,["maxExtraItems"]]],null],[[[1," "],[11,3],[24,0,"more-participants"],[16,6,[30,1,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[4,[32,7],["click",[30,0,["jumpToTopPost"]]],null],[12],[1,"\\n +"],[1,[30,0,["remainingParticipantCount"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[8,[32,14],null,[["@topicInfo"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-info__after",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topicInfo","@disableActions","participant"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/info.js",scope:()=>[p.default,y.default,n.hash,_.i18n,h.default,c.and,u.default,r.on,l.htmlSafe,c.or,c.not,d.default,w.default,c.gt,b.default],isStrictMode:!0}),this))()}},78758:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(81329),c=i(16717),u=i(72738),d=i(94636),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();get url(){return"user"===this.args.type?this.args.user.path:(0,d.default)(`/g/${this.args.username}`)}click(e){this.appEvents.trigger(`topic-header:trigger-${this.args.type}-card`,this.args.username,e.target,e),e.preventDefault()}static #i=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #s=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"vUEnQtNr",block:'[[[1,"\\n "],[10,1],[15,0,[28,[32,0],["trigger-",[30,1],"-card"],null]],[12],[1,"\\n "],[11,3],[24,0,"icon"],[16,6,[30,0,["url"]]],[24,"data-auto-route","true"],[16,"title",[30,2]],[4,[32,1],["click",[30,0,["click"]]],null],[12],[1,"\\n"],[41,[28,[32,2],[[30,1],"user"],null],[[[1," "],[1,[28,[32,3],[[30,3,["avatar_template"]],"tiny",[28,[32,4],null,[["title"],[[30,2]]]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[12],[1,"\\n "],[1,[28,[32,5],["users"],null]],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@type","@username","@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/participant.js",scope:()=>[n.concat,r.on,l.eq,c.default,n.hash,u.default],isStrictMode:!0}),this))()}},12352:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(81329),l=i(98740),c=i(81133),u=i(97015),d=i(843),p=i(55583),h=i(53653),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();click(e){(0,u.wantsNewWindow)(e)||(e.preventDefault(),this.args.toggleUserMenu(),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur())}static #i=(()=>dt7948.n(this.prototype,"click",[r.action]))();static #s=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"VzqJrcgf",block:'[[[1,"\\n "],[10,"li"],[14,1,"current-user"],[15,0,[28,[32,0],[[52,[30,1],"active"],"header-dropdown-toggle current-user user-menu-panel"],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name"],["user-dropdown-button__before"]],null],[1,"\\n "],[11,"button"],[24,1,"toggle-current-user"],[24,0,"icon btn-flat"],[24,"aria-haspopup","true"],[16,"aria-expanded",[30,1]],[16,"aria-label",[28,[32,2],["user.account_possessive"],[["name"],[[28,[32,3],[[30,0,["currentUser","name"]],[30,0,["currentUser","username"]]],null]]]]],[4,[32,4],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,5],null,[["@active"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@name"],["user-dropdown-button__after"]],null],[1,"\\n "],[13],[1,"\\n "]],["@active"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown.js",scope:()=>[c.default,l.default,d.i18n,a.or,n.on,p.default],isStrictMode:!0}),this))()}},55583:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(83133),o=i(42256),a=i(98740),l=i(72738),c=i(56665),u=i(1799),d=i(843),p=i(17282),h=i(53590),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get avatar(){let e=(0,c.addExtraUserClasses)(this.currentUser,{});return(0,o.htmlSafe)((0,c.renderAvatar)(this.currentUser,{imageSize:this.avatarSize,title:(0,d.i18n)("user.avatar.header_title"),template:this.currentUser.avatar_template,username:this.currentUser.username,name:this.siteSettings.enable_names&&this.currentUser.name,...e}))}get avatarSize(){return(0,u.applyValueTransformer)("header-notifications-avatar-size","medium")}get _shouldHighlightAvatar(){return!this.currentUser.read_first_notification&&!this.currentUser.enforcedSecondFactor&&!this.args.active}get isInDoNotDisturb(){return this.currentUser.isInDoNotDisturb()}static #s=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"wVPZGRDn",block:'[[[1,"\\n "],[8,[32,0],null,[["@name"],["user-dropdown-notifications__before"]],null],[1,"\\n "],[1,[30,0,["avatar"]]],[1,"\\n\\n"],[41,[30,0,["_shouldHighlightAvatar"]],[[[1," "],[8,[32,1],null,[["@id","@triggerSelector","@placement","@titleText","@contentText","@showSkipButton","@priority"],["first_notification",".header-dropdown-toggle.current-user","bottom-end",[28,[32,2],["user_tips.first_notification.title"],null],[28,[32,2],["user_tips.first_notification.content"],null],true,1000]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1," "],[8,[32,3],null,[["@timezone","@status"],[[30,0,["currentUser","user_option","timezone"]],[30,0,["currentUser","status"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1," "],[10,0],[14,0,"do-not-disturb-background"],[15,"title",[28,[32,2],["notifications.paused"],null]],[12],[1,[28,[32,4],["discourse-dnd"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","new_personal_messages_notifications_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification with-icon new-pms"],[15,"title",[28,[32,2],["notifications.tooltip.new_message_notification",[28,[32,5],null,[["count"],[[30,0,["currentUser","new_personal_messages_notifications_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["notifications.tooltip.new_message_notification",[28,[32,5],null,[["count"],[[30,0,["currentUser","new_personal_messages_notifications_count"]]]]]],null]],[12],[1,"\\n "],[1,[28,[32,4],["envelope"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","unseen_reviewable_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification with-icon new-reviewables"],[15,"title",[28,[32,2],["notifications.tooltip.new_reviewable",[28,[32,5],null,[["count"],[[30,0,["currentUser","unseen_reviewable_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["notifications.tooltip.new_reviewable",[28,[32,5],null,[["count"],[[30,0,["currentUser","unseen_reviewable_count"]]]]]],null]],[12],[1,"\\n "],[1,[28,[32,4],["flag"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","all_unread_notifications_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification unread-notifications"],[15,"title",[28,[32,2],["notifications.tooltip.regular",[28,[32,5],null,[["count"],[[30,0,["currentUser","all_unread_notifications_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["user.notifications",[28,[32,5],null,[["count"],[[30,0,["currentUser","all_unread_notifications_count"]]]]]],null]],[12],[1,"\\n "],[1,[30,0,["currentUser","all_unread_notifications_count"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "],[8,[32,0],null,[["@name"],["user-dropdown-notifications__after"]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown/notifications.js",scope:()=>[a.default,p.default,d.i18n,h.default,l.default,n.hash],isStrictMode:!0}),this))()}},53590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(75446),n=i(54356),r=i(84457),o=i(843),a=i(53653),l=i(85671),c=i(73306);let u=(e,t,i)=>{let s=(0,r.default)(e);if(t){let e=moment.tz(t,i).format((0,o.i18n)("dates.long_date_without_year"));s+=` ${(0,o.i18n)("until")} ${e}`}return s},d=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Z3BF1mca",block:'[[[1,"\\n "],[10,0],[14,0,"user-status-background"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["emoji"]]],[["title","alt"],[[28,[32,1],[[30,1,["description"]],[30,1,["ends_at"]],[30,2]],null],[28,[32,2],[":",[30,1,["emoji"]],":"],null]]]]],[1,"\\n "],[13],[1,"\\n"]],["@status","@timezone"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown/user-status-bubble.js",scope:()=>[n.default,u,s.concat],isStrictMode:!0}),(0,c.default)(void 0,"user-status-bubble:UserStatusBubble"))},91080:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(75446),r=i(35533),o=i(77093),a=i(53306),l=i(64873),c=i(42236),u=i(29112),d=i(30601),p=i(53653),h=i(85671);class m extends s.default{clickOutside(e){if(e.target.classList.contains("header-cloak")&&!(0,c.prefersReducedMotion)()){let e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),i=(0,l.isDocumentRTL)()?"-340px":"340px";e.animate([{transform:`translate3d(${i}, 0, 0)`}],{duration:200,fill:"forwards",easing:"ease-in"}).finished.then(()=>{(0,o.isTesting)()?this.args.toggleUserMenu():(0,a.default)(()=>this.args.toggleUserMenu())}),t.animate([{opacity:0}],{duration:200,fill:"forwards",easing:"ease-in"})}else this.args.toggleUserMenu()}static #e=(()=>dt7948.n(this.prototype,"clickOutside",[r.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"S7Hkd1b8",block:'[[[1,"\\n "],[11,0],[24,0,"user-menu-dropdown-wrapper"],[17,1],[4,[32,0],[[30,0,["clickOutside"]],[28,[32,1],null,[["targetSelector","secondaryTargetSelector"],[".user-menu-panel",".user-menu-panel"]]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@closeUserMenu"],[[28,[32,3],[[30,2],false],null]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@toggleUserMenu"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-menu-wrapper.js",scope:()=>[u.default,n.hash,d.default,n.fn],isStrictMode:!0}),this))()}},81266:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(68587),r=i(79297),o=i(53653),a=i(85671);class l extends s.default{highlight=(()=>(0,n.modifier)(e=>{(0,r.default)(e,this.args.highlight)}))();static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"wVEhS+Hk",block:'[[[1,"\\n "],[11,1],[4,[30,0,["highlight"]],null,null],[12],[18,1,null],[13],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/highlight-search.js",isStrictMode:!0}),this))()}},32574:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42064),n=i(39131);class r extends n.default{_init(){navigator.userAgent.includes("Chrome")?this.set("type","text"):this.set("type","password")}static #e=(()=>dt7948.n(this.prototype,"_init",[(0,s.on)("init")]))()}},37740:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(63748);let l=(0,i(85671).createTemplateFactory)({id:"h+Y8DOur",block:'[[[1,"\\n"],[10,"nav"],[15,0,[29,["horizontal-overflow-nav ",[52,[30,0,["hasScroll"]],"has-scroll"]]]],[15,"aria-label",[30,1]],[12],[1,"\\n"],[41,[30,0,["hasScroll"]],[[[1," "],[11,3],[24,"role","button"],[24,"data-direction","left"],[16,0,[28,[37,3],["horizontal-overflow-nav__scroll-left",[52,[30,0,["hideLeftScroll"]],"disabled"]],null]],[4,[38,4],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,4],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,4],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["chevron-left"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,"ul"],[16,0,[29,["nav-pills action-list ",[30,2]]]],[17,3],[4,[38,7],[[30,0,["onResize"]]],null],[4,[38,4],["scroll",[30,0,["onScroll"]]],null],[4,[38,8],[[30,0,["scrollToActive"]]],null],[4,[38,4],["mousedown",[30,0,["scrollDrag"]]],null],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasScroll"]],[[[1," "],[11,3],[24,"role","button"],[16,0,[28,[37,3],["horizontal-overflow-nav__scroll-right",[52,[30,0,["hideRightScroll"]],"disabled"]],null]],[4,[38,4],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,4],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,4],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["chevron-right"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@ariaLabel","@className","&attrs","&default"],false,["nav","if","a","concat-class","on","d-icon","ul","on-resize","did-insert","yield"]]',moduleName:"discourse/components/horizontal-overflow-nav.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"hasScroll",[n.tracked]))();#tV=(()=>void dt7948.i(this,"hasScroll"))();static #s=(()=>dt7948.g(this.prototype,"hideRightScroll",[n.tracked],function(){return!1}))();#tH=(()=>void dt7948.i(this,"hideRightScroll"))();static #l=(()=>dt7948.g(this.prototype,"hideLeftScroll",[n.tracked],function(){return!0}))();#tz=(()=>void dt7948.i(this,"hideLeftScroll"))();scrollInterval;scrollToActive(e){let t=e.querySelector("a.active");t?.scrollIntoView({block:"nearest",inline:"center"})}static #c=(()=>dt7948.n(this.prototype,"scrollToActive",[a.bind]))();onResize(e){if(this.site.mobileView)return;let t=e[0].target;this.watchScroll(t),this.hasScroll=t.scrollWidth>t.offsetWidth}static #u=(()=>dt7948.n(this.prototype,"onResize",[a.bind]))();stopScroll(){clearInterval(this.scrollInterval)}static #d=(()=>dt7948.n(this.prototype,"stopScroll",[a.bind]))();onScroll(e){this.site.mobileView||this.watchScroll(e.target)}static #p=(()=>dt7948.n(this.prototype,"onScroll",[a.bind]))();watchScroll(e){let{scrollWidth:t,scrollLeft:i,offsetWidth:s}=e;this.hasScroll=t>s,t-i-s<=2?(this.hideRightScroll=!0,clearInterval(this.scrollInterval)):this.hideRightScroll=!1,i<=2?(this.hideLeftScroll=!0,clearInterval(this.scrollInterval)):this.hideLeftScroll=!1}scrollDrag(e){if(this.site.mobileView||!this.hasScroll)return;e.preventDefault();let t=e.target.closest(".nav-pills"),i={left:t.scrollLeft,x:e.clientX},s=function(e){let s=e.clientX-i.x;t.scrollLeft=i.left-s};t.querySelectorAll("a").forEach(e=>{e.style.cursor="grabbing"}),document.addEventListener("mousemove",s),document.addEventListener("mouseup",function(){document.removeEventListener("mousemove",s),t.querySelectorAll("a").forEach(e=>{e.style.cursor="pointer"})},{once:!0})}static #h=(()=>dt7948.n(this.prototype,"scrollDrag",[a.bind]))();horizontalScroll(e){if(1!==e.which)return;let t=175,i=e.target.previousElementSibling;"left"===e.target.dataset.direction&&(t*=-1,i=e.target.nextElementSibling),i.scrollLeft+=t,this.scrollInterval=setInterval(function(){i.scrollLeft+=t},50)}static #m=(()=>dt7948.n(this.prototype,"horizontalScroll",[r.action]))()}(0,c.setComponentTemplate)(l,u)},29165:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653),n=i(7294);class r extends s.default{click(e){e?.target?.tagName==="A"&&(0,n.shouldOpenInNewTab)(e.target.href)&&(0,n.openLinkInNewTab)(e,e.target)}}},18771:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(18387),r=i(31351),o=i(63748),a=i(53653),l=i(85671);class c extends s.default{writeHtml(e){let t=e.contentWindow.document;t.open("text/html","replace"),t.write(this.args.html),t.close()}static #e=(()=>dt7948.n(this.prototype,"writeHtml",[o.bind]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2zu/LRV7",block:'[[[1,"\\n"],[1," "],[11,"iframe"],[24,"sandbox","allow-same-origin"],[16,0,[52,[30,1],"iframed-html"]],[17,2],[4,[32,0],[[30,0,["writeHtml"]]],null],[4,[32,1],[[30,0,["witeHtml"]],[30,1]],null],[12],[13],[1,"\\n "]],["@html","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/iframed-html.js",scope:()=>[n.default,r.default],isStrictMode:!0}),this))()}},82612:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(53397);let o=(0,i(85671).createTemplateFactory)({id:"qh4eWunY",block:'[[[10,0],[14,0,"ignored-user-list-item"],[12],[1,"\\n "],[10,1],[14,0,"ignored-user-name"],[12],[1,[30,0,["item"]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"remove-ignored-user no-text btn-icon"]],[["@action","@icon"],[[28,[37,3],[[28,[37,4],[[30,0],"removeIgnoredUser"],null],[30,0,["item"]]],null],"xmark"]],null],[1,"\\n"],[13]],[],false,["div","span","d-button","fn","action"]]',moduleName:"discourse/components/ignored-user-list-item.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{items=null;removeIgnoredUser(e){this.onRemoveIgnoredUser(e)}static #e=(()=>dt7948.n(this.prototype,"removeIgnoredUser",[n.action]))()},[(0,r.tagName)("div")]),l=(0,s.setComponentTemplate)(o,a)},41620:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(88355),l=i(59864),c=i(843),u=i(82612),d=i(41480),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();async removeIgnoredUser(e){this.args.items.removeObject(e);try{let t=await l.default.findByUsername(e);await t.updateNotificationLevel({level:"normal",actingUser:this.args.model})}catch(e){(0,a.popupAjaxError)(e)}}static #i=(()=>dt7948.n(this.prototype,"removeIgnoredUser",[n.action]))();newIgnoredUser(){this.modal.show(d.default,{model:{actingUser:this.args.model,ignoredUsername:null,onUserIgnored:e=>{this.args.items.addObject(e)}}})}static #s=(()=>dt7948.n(this.prototype,"newIgnoredUser",[n.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"jTcnqLwG",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"ignored-list"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[32,0],null,[["@item","@onRemoveIgnoredUser"],[[30,2],[30,0,["removeIgnoredUser"]]]],null],[1,"\\n"]],[2]],[[[1," "],[1,[28,[32,1],["user.user_notifications.ignore_no_users"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,1],["user.ignored_users_instructions"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,0,["newIgnoredUser"]],"plus","user.user_notifications.add_ignored_user"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@items","item"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/ignored-user-list.js",scope:()=>[u.default,c.i18n,o.default],isStrictMode:!0}),this))()}},91933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(72738),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"vBVgR9+4",block:'[[[1,"\\n "],[11,0],[16,0,[29,["tip ",[52,[30,1,["failed"]],"bad","good"]]]],[16,1,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,1,["reason"]],[[[1," "],[1,[28,[32,0],[[52,[30,1,["failed"]],"xmark","check"]],null]],[1,"\\n "],[1,[30,1,["reason"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@validation","@id","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/input-tip.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"input-tip:InputTip"))},60408:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(30574),o=i(75983),a=i(82805),l=i(63748),c=i(65460),u=i(42236),d=i(6856),p=i(843);let h=(0,i(85671).createTemplateFactory)({id:"W/5O4K13",block:'[[[41,[30,0,["inviteModel","error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["errorMessage"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"body"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[41,[30,0,["inviteModel","inviteLink"]],[[[1," "],[8,[39,3],null,[["@link","@email"],[[30,0,["inviteModel","inviteLink"]],[30,0,["invitee"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"success-message"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["successMessage"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[10,0],[14,0,"invite-user-control"],[12],[1,"\\n "],[10,"label"],[14,0,"instructions"],[12],[1,[30,0,["inviteInstructions"]]],[13],[1,"\\n "],[10,0],[14,0,"invite-user-input-wrapper"],[12],[1,"\\n"],[41,[30,0,["allowExistingMembers"]],[[[1," "],[8,[39,5],[[24,0,"invite-user-input"]],[["@value","@onChange","@options"],[[30,0,["invitee"]],[28,[37,6],[[30,0],"updateInvitee"],null],[28,[37,7],null,[["maximum","allowEmails","excludeCurrentUser","includeMessageableGroups","filterPlaceholder","fullWidthWrap"],[1,[30,0,["canInviteViaEmail"]],true,[30,0,["isPM"]],[30,0,["placeholderKey"]],true]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[24,0,"email-or-username-input"]],[["@value","@placeholderKey"],[[30,0,["invitee"]],"topic.invite_reply.email_placeholder"]],null],[1,"\\n"]],[]]],[41,[30,0,["capabilities","hasContactPicker"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary open-contact-picker"]],[["@icon","@action"],["address-book",[30,0,["searchContact"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showGroups"]],[[[1," "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[10,"label"],[15,0,[29,["instructions ",[30,0,["showGroupsClass"]]]]],[12],[1,"\\n "],[1,[28,[35,10],["topic.automatically_add_to_groups"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,11],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["groupIds"]],"name",[28,[37,12],[[28,[37,13],[[30,0,["groupIds"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCustomMessage"]],[[[1," "],[10,0],[14,0,"show-custom-message-control"],[12],[1,"\\n "],[10,"label"],[14,0,"instructions"],[12],[1,"\\n "],[8,[39,14],[[24,0,"optional"]],[["@action","@text"],[[28,[37,6],[[30,0],"showCustomMessageBox"],null],"invite.custom_message"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["hasCustomMessage"]],[[[1," "],[8,[39,15],[[16,"placeholder",[30,0,["customMessagePlaceholder"]]]],[["@value"],[[30,0,["customMessage"]]]],null],[1,""]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["showApprovalMessage"]],[[[1," "],[10,"label"],[14,0,"instructions approval-notice"],[12],[1,"\\n "],[1,[28,[35,10],["invite.approval_not_required"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"footer"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,9],[[24,0,"btn-primary send-invite"]],[["@icon","@action","@disabled","@label"],[[30,0,["inviteIcon"]],[30,0,["createInvite"]],[30,0,["disabled"]],[30,0,["buttonTitle"]]]],null],[1,"\\n"],[41,[30,0,["showCopyInviteButton"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary generate-invite-link"]],[["@icon","@action","@disabled","@label"],["link",[30,0,["generateInviteLink"]],[30,0,["disabledCopyLink"]],"user.invited.generate_link"]],null],[1,"\\n"]],[]],null]],[]]],[13]],["@closeModal"],false,["if","div","html-safe","generated-invite-link","label","email-group-user-chooser","action","hash","text-field","d-button","i18n","group-chooser","fn","mut","discourse-linked-text","textarea"]]',moduleName:"discourse/components/invite-panel.hbs",isStrictMode:!1});class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"isStaff",[(0,r.readOnly)("currentUser.staff")]))();#tW=(()=>void dt7948.i(this,"isStaff"))();static #i=(()=>dt7948.g(this.prototype,"isAdmin",[(0,r.readOnly)("currentUser.admin")]))();#tK=(()=>void dt7948.i(this,"isAdmin"))();static #s=(()=>dt7948.g(this.prototype,"topicId",[(0,r.alias)("inviteModel.id")]))();#tG=(()=>void dt7948.i(this,"topicId"))();static #l=(()=>dt7948.g(this.prototype,"isPM",[(0,r.equal)("inviteModel.archetype","private_message")]))();#tY=(()=>void dt7948.i(this,"isPM"))();static #c=(()=>dt7948.g(this.prototype,"showApprovalMessage",[(0,r.and)("isStaff","siteSettings.must_approve_users")]))();#tQ=(()=>void dt7948.i(this,"showApprovalMessage"))();static #u=(()=>dt7948.g(this.prototype,"isPrivateTopic",[(0,r.and)("invitingToTopic","inviteModel.category.read_restricted")]))();#tJ=(()=>void dt7948.i(this,"isPrivateTopic"))();static #d=(()=>dt7948.g(this.prototype,"allowExistingMembers",[(0,r.alias)("invitingToTopic")]))();#tX=(()=>void dt7948.i(this,"allowExistingMembers"))();static #p=(()=>dt7948.g(this.prototype,"customMessagePlaceholder",[(0,a.computedI18n)("invite.custom_message_placeholder")]))();#tZ=(()=>void dt7948.i(this,"customMessagePlaceholder"))();groupIds=null;allGroups=null;invitee=null;isInviteeGroup=!1;hasCustomMessage=!1;customMessage=null;inviteIcon="envelope";invitingExistingUserToTopic=!1;init(){super.init(...arguments),this.setDefaultSelectedGroups(),this.setGroupOptions()}willDestroyElement(){super.willDestroyElement(...arguments),this.reset()}disabled(e,t,i,s,n,r,a){return!!(r||(0,o.isEmpty)(t)||!i&&!(0,u.emailValid)(t)||!e&&s&&(0,u.emailValid)(t)||s&&(0,o.isEmpty)(n)&&(0,u.emailValid)(t))}static #h=(()=>dt7948.n(this.prototype,"disabled",[(0,l.default)("isAdmin","invitee","invitingToTopic","isPrivateTopic","groupIds","inviteModel.saving","inviteModel.details.can_invite_to")]))();disabledCopyLink(e,t,i,s,n,r){return!!(r||i||(0,o.isEmpty)(t)||!(0,u.emailValid)(t)||!e&&s&&(0,u.emailValid)(t)||s&&(0,o.isEmpty)(n)&&(0,u.emailValid)(t))}static #m=(()=>dt7948.n(this.prototype,"disabledCopyLink",[(0,l.default)("isAdmin","invitee","inviteModel.saving","isPrivateTopic","groupIds","hasCustomMessage")]))();buttonTitle(e){return e?"topic.inviting":"topic.invite_reply.action"}static #g=(()=>dt7948.n(this.prototype,"buttonTitle",[(0,l.default)("inviteModel.saving")]))();invitingToTopic(e){return e!==this.currentUser}static #A=(()=>dt7948.n(this.prototype,"invitingToTopic",[(0,l.default)("inviteModel")]))();canInviteViaEmail(e,t){return e===this.currentUser||t}static #E=(()=>dt7948.n(this.prototype,"canInviteViaEmail",[(0,l.default)("inviteModel","inviteModel.details.can_invite_via_email")]))();showCopyInviteButton(e,t){return t&&!e}static #D=(()=>dt7948.n(this.prototype,"showCopyInviteButton",[(0,l.default)("isPM","canInviteViaEmail")]))();isGroupOwnerOrAdmin(e,t){return e||t&&t.some(e=>e.owner)}static #P=(()=>dt7948.n(this.prototype,"isGroupOwnerOrAdmin",[(0,l.default)("isAdmin","inviteModel.group_users")]))();showGroups(e,t,i,s,n,r){return e&&r&&!s&&((0,u.emailValid)(t)||i||!n)}static #Q=(()=>dt7948.n(this.prototype,"showGroups",[(0,l.default)("isGroupOwnerOrAdmin","invitee","isPrivateTopic","isPM","invitingToTopic","canInviteViaEmail")]))();showCustomMessage(e){return this.inviteModel===this.currentUser||(0,u.emailValid)(e)}static #J=(()=>dt7948.n(this.prototype,"showCustomMessage",[(0,l.default)("invitee")]))();inviteInstructions(e,t,i,s,n,r){return r?e?(0,p.i18n)("topic.invite_private.email_or_username"):t?s&&!n?(0,p.i18n)("topic.invite_reply.to_username"):(0,o.isEmpty)(i)?(0,p.i18n)("topic.invite_reply.to_topic_blank"):(0,u.emailValid)(i)?(this.set("inviteIcon","envelope"),(0,p.i18n)("topic.invite_reply.to_topic_email")):(this.set("inviteIcon","hand-point-right"),(0,p.i18n)("topic.invite_reply.to_topic_username")):(0,p.i18n)("topic.invite_reply.to_forum"):(0,p.i18n)("topic.invite_reply.discourse_connect_enabled")}static #X=(()=>dt7948.n(this.prototype,"inviteInstructions",[(0,l.default)("isPM","invitingToTopic","invitee","isPrivateTopic","isAdmin","canInviteViaEmail")]))();showGroupsClass(e){return e?"required":"optional"}static #Z=(()=>dt7948.n(this.prototype,"showGroupsClass",[(0,l.default)("isPrivateTopic")]))();successMessage(e,t,i){return this.isInviteeGroup?(0,p.i18n)("topic.invite_private.success_group"):e?(0,p.i18n)("topic.invite_private.success"):i?(0,p.i18n)("topic.invite_reply.success_existing_email",{invitee:t}):(0,u.emailValid)(t)?(0,p.i18n)("topic.invite_reply.success_email",{invitee:t}):(0,p.i18n)("topic.invite_reply.success_username")}static #ee=(()=>dt7948.n(this.prototype,"successMessage",[(0,l.default)("isPM","invitee","invitingExistingUserToTopic")]))();errorMessage(e,t){return t||(e?(0,p.i18n)("topic.invite_private.error"):(0,p.i18n)("topic.invite_reply.error"))}static #et=(()=>dt7948.n(this.prototype,"errorMessage",[(0,l.default)("isPM","ajaxError")]))();placeholderKey(e){return e?"topic.invite_private.email_or_username_placeholder":"topic.invite_reply.username_placeholder"}static #ei=(()=>dt7948.n(this.prototype,"placeholderKey",[(0,l.default)("canInviteViaEmail")]))();reset(){this.setProperties({invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,invitingExistingUserToTopic:!1,groupIds:[]}),this.inviteModel.setProperties({error:!1,saving:!1,finished:!1,inviteLink:null})}setDefaultSelectedGroups(){this.set("groupIds",[])}setGroupOptions(){d.default.findAll().then(e=>{this.set("allGroups",e.filterBy("automatic",!1))})}createInvite(){if(this.disabled)return;let e=this.groupIds,t=this.inviteModel;t.setProperties({saving:!0,error:!1});let i=e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),t.setProperties({saving:!1,error:!0})};return this.isInviteeGroup?this.inviteModel.createGroupInvite(this.invitee.trim()).then(()=>{t.setProperties({saving:!1,finished:!0}),this.inviteModel.reload().then(()=>{this.appEvents.trigger("post-stream:refresh")})}).catch(i):this.inviteModel.createInvite(this.invitee.trim(),e,this.customMessage).then(e=>{t.setProperties({saving:!1,finished:!0}),this.isPM&&e&&e.user?(this.get("inviteModel.details.allowed_users").pushObject(n.default.create(e.user)),this.appEvents.trigger("post-stream:refresh",{force:!0})):this.invitingToTopic&&(0,u.emailValid)(this.invitee.trim())&&e&&e.user&&this.set("invitingExistingUserToTopic",!0)}).catch(i)}static #es=(()=>dt7948.n(this.prototype,"createInvite",[n.action]))();generateInviteLink(){let e;if(this.disabled)return;let t=this.groupIds,i=this.inviteModel;return i.setProperties({saving:!0,error:!1}),this.invitingToTopic&&(e=this.get("inviteModel.id")),i.generateInviteLink(this.invitee.trim(),t,e).then(e=>{i.setProperties({saving:!1,finished:!0,inviteLink:e.link})}).catch(e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),i.setProperties({saving:!1,error:!0})})}static #en=(()=>dt7948.n(this.prototype,"generateInviteLink",[n.action]))();showCustomMessageBox(){this.toggleProperty("hasCustomMessage"),this.hasCustomMessage?this.inviteModel===this.currentUser?this.set("customMessage",(0,p.i18n)("invite.custom_message_template_forum")):this.set("customMessage",(0,p.i18n)("invite.custom_message_template_topic")):this.set("customMessage",null)}static #er=(()=>dt7948.n(this.prototype,"showCustomMessageBox",[n.action]))();searchContact(){(0,c.getNativeContact)(this.capabilities,["email"],!1).then(e=>{this.set("invitee",e[0].email[0])})}static #eo=(()=>dt7948.n(this.prototype,"searchContact",[n.action]))();updateInvitee(e,t){let i=t.findBy("id",e[0]);!i&&t.length&&(i="string"==typeof t[0]?{id:t[0]}:t[0]),i?this.setProperties({invitee:i.id.trim(),isInviteeGroup:i.isGroup||!1}):this.setProperties({invitee:null,isInviteeGroup:!1})}static #ea=(()=>dt7948.n(this.prototype,"updateInvitee",[n.action]))()}(0,s.setComponentTemplate)(h,m)},66266:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(52350),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"XNUxLWek",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[10,0],[14,0,"topic-poster"],[12],[1,"\\n "],[8,[39,3],[[16,"aria-label",[52,[30,0,["topic","lastPosterUser","username"]],[28,[37,5],["latest_poster_link"],[["username"],[[30,0,["topic","lastPosterUser","username"]]]]]]]],[["@user"],[[30,0,["topic","lastPosterUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],[[30,0,["topic","lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,7],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"top-row"],[12],[1,"\\n "],[1,[28,[35,8],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n "],[1,[28,[35,9],[[30,0,["topic"]]],null]],[41,[30,0,["topic","featured_link"]],[[[1,"  "],[1,[28,[35,10],[[30,0,["topic"]]],null]],[1,"\\n "]],[]],null],[8,[39,11],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["topic","category"]]],null]],[1,[28,[35,13],[[30,0,["topic"]]],[["mode"],["list"]]]],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["below-latest-topic-list-item-bottom-row","span",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"topic-stats"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n "],[1,[28,[35,8],["list/posts-count-column"],[["topic","tagName"],[[30,0,["topic"]],"div"]]]],[1,"\\n "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[15,"title",[30,0,["topic","bumpedAtTitle"]]],[12],[1,[28,[35,15],[[30,0,["topic","bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","div","user-link","if","i18n","avatar","user-avatar-flair","raw","topic-link","topic-featured-link","topic-post-badges","category-link","discourse-tags","a","format-date"]]',moduleName:"discourse/components/latest-topic-list-item.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{showEntrance=(()=>r.showEntrance)();navigateToTopic=(()=>r.navigateToTopic)();click(e){return!1!==this.showEntrance(e)&&this.unhandledRowClick(e,this.topic)}unhandledRowClick(){}unboundClassNames(e){let t=[];return e.get("category")&&t.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach(e=>t.push("tag-"+e)),["liked","archived","bookmarked","pinned","closed","visited"].forEach(i=>{e.get(i)&&t.push(i)}),t.join(" ")}static #e=(()=>dt7948.n(this.prototype,"unboundClassNames",[(0,o.default)("topic")]))()},[(0,n.classNameBindings)(":latest-topic-list-item","unboundClassNames"),(0,n.attributeBindings)("topic.id:data-topic-id")]),c=(0,s.setComponentTemplate)(a,l)},50309:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(86792),r=i(53653),o=i(85671);class a extends s.default{get users(){return this.args.users||[]}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"mDPlsLfN",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["users"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "]],["user"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/legacy-about-page-users.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},74916:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(83133),r=i(21340),o=i(94636),a=i(53653),l=i(85671);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[n.service]))();#eO=(()=>void dt7948.i(this,"session"))();get isDarkImageAvailable(){return this.args.lightImg?.url&&this.args.darkImg?.url&&(this.session.defaultColorSchemeIsDark||this.session.darkModeAvailable)}get defaultImg(){return this.session.defaultColorSchemeIsDark&&this.args.darkImg?this.args.darkImg:this.args.lightImg}get darkImgCdnSrc(){return(0,o.getURLWithCDN)(this.args.darkImg.url)}static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"UCcxc1Cl",block:'[[[1,"\\n"],[41,[30,0,["isDarkImageAvailable"]],[[[1," "],[10,"picture"],[12],[1,"\\n "],[10,"source"],[15,"srcset",[30,0,["darkImgCdnSrc"]]],[15,"width",[30,1,["width"]]],[15,"height",[30,1,["height"]]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,0,["defaultImg","url"]],[30,0,["defaultImg","width"]],[30,0,["defaultImg","height"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,3,["url"]],[[[1," "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,3,["url"]],[30,3,["width"]],[30,3,["height"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],["@darkImg","&attrs","@lightImg"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/light-dark-img.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},64140:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(62053),r=i(25124),o=i.n(r);let a=(0,i(85671).createTemplateFactory)({id:"GR2yg6/c",block:'[[[41,[30,0,["showInput"]],[[[1," "],[18,1,null],[1,"\\n"]],[]],[[[1," "],[10,3],[14,6,""],[12],[1,"\\n"],[41,[30,0,["key"]],[[[1," "],[1,[28,[35,3],[[30,0,["key"]]],null]],[1,"\\n"]],[]],null],[41,[30,0,["icon"]],[[[1," "],[1,[28,[35,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],["&default"],false,["if","yield","a","i18n","d-icon"]]',moduleName:"discourse/components/link-to-input.hbs",isStrictMode:!1});class l extends s.default{showInput=!1;click(){return this.onClick(),(0,n.schedule)("afterRender",()=>{o()(this.element).find("input").focus()}),!1}}(0,s.setComponentTemplate)(a,l)},47677:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(31049),r=i(7294);class o extends s.default{click(e){if(e?.target?.tagName==="A")return r.default.trackClick(e,(0,n.getOwner)(this))}}},66203:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(35533),r=i(56793);class o extends s.default.extend(r.default){init(){super.init(...arguments),this.set("eyelineSelector",this.selector)}loadMore(){this.action()}static #e=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))()}},50586:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(49941),o=i(25507),a=i(43006),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"loadingSlider",[n.service]))();#t1=(()=>void dt7948.i(this,"loadingSlider"))();get shouldDisplay(){let{mode:e,loading:t,stillLoading:i}=this.loadingSlider;return"spinner"===e&&t||"slider"===e&&i}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"17XtLotn",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"route-loading-spinner"],[12],[1,[32,0]],[13],[1,"\\n "],[1,[28,[32,1],["has-route-loading-spinner"],null]],[1,"\\n "],[1,[32,2]],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/loading-slider-fallback-spinner.js",scope:()=>[a.default,r.default,o.default],isStrictMode:!0}),this))()}},24879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(42256),l=i(75983),c=i(66726),u=i(6864),d=i(88355),p=i(42236),h=i(98988),m=i(843);let g=(0,i(85671).createTemplateFactory)({id:"CUqBqoX+",block:'[[[10,"form"],[14,1,"login-form"],[14,"method","post"],[12],[1,"\\n "],[10,0],[14,1,"credentials"],[15,0,[30,0,["credentialsClass"]]],[12],[1,"\\n "],[11,0],[24,0,"input-group"],[4,[38,2],[[30,0,["passkeyConditionalLogin"]]],null],[12],[1,"\\n "],[8,[39,3],[[24,1,"login-account-name"],[16,0,[28,[37,4],[[30,1]],null]],[16,"autocomplete",[52,[30,2],"username webauthn","username"]],[24,"autocorrect","off"],[24,"autocapitalize","off"],[16,"disabled",[30,3]],[24,"autofocus","autofocus"],[24,"tabindex","1"],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,6],["input",[30,4]],null],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@type"],[[30,1],"email"]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-name"],[12],[1,"\\n "],[1,[28,[35,8],["login.email_placeholder"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,5],[[[1," "],[11,3],[24,6,""],[16,0,[52,[30,1],"","no-login-filled"]],[24,"tabindex","3"],[24,1,"email-login-link"],[4,[38,6],["click",[30,0,["emailLogin"]]],null],[12],[1,"\\n "],[1,[28,[35,8],["email_login.login_link"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,10],[[16,"disabled",[30,0,["disableLoginFields"]]],[24,"autocomplete","current-password"],[24,"maxlength","200"],[24,"tabindex","1"],[24,1,"login-account-password"],[16,0,[28,[37,4],[[30,6]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@capsLockOn"],[[30,6],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-password"],[12],[1,"\\n "],[1,[28,[35,8],["login.password"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[8,[39,11],[[24,"tabindex","3"]],[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"login__password-links"],[12],[1,"\\n "],[11,3],[24,6,""],[24,1,"forgot-password-link"],[24,"tabindex","2"],[4,[38,6],["click",[30,0,["handleForgotPassword"]]],null],[12],[1,"\\n "],[1,[28,[35,8],["forgot_password.action"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,13],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,8],["login.caps_lock_warning"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showSecondFactorForm"]],[[[1," "],[8,[39,14],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,7],[30,8],[30,9],[30,10],true]],[["default"],[[[[1,"\\n"],[41,[30,11],[[[1," "],[8,[39,15],null,[["@setShowSecurityKey","@setShowSecondFactor","@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,16],[[28,[37,17],[[30,11]],null]],null],[28,[37,16],[[28,[37,17],[[30,3]],null]],null],[28,[37,16],[[28,[37,17],[[30,7]],null]],null],[30,9],[30,10],[30,12],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,18],[[16,2,[30,8]],[24,1,"login-second-factor"],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null],[4,[38,6],["input",[28,[37,19],[[28,[37,16],[[28,[37,17],[[30,8]],null]],null]],null]],null],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@secondFactorMethod"],[[30,7]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[13]],["@loginName","@canUsePasskeys","@showSecondFactor","@loginNameChanged","@canLoginLocalWithEmail","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@showSecurityKey","@otherMethodAllowed"],false,["form","div","did-insert","input","value-entered","if","on","label","i18n","a","password-field","toggle-password-mask","unless","d-icon","second-factor-form","security-key-form","fn","mut","second-factor-input","with-event-value"]]',moduleName:"discourse/components/local-login-form.hbs",isStrictMode:!1});var f=i(53653);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"maskPassword",[n.tracked],function(){return!0}))();#t0=(()=>void dt7948.i(this,"maskPassword"))();static #s=(()=>dt7948.g(this.prototype,"processingEmailLink",[n.tracked],function(){return!1}))();#t3=(()=>void dt7948.i(this,"processingEmailLink"))();static #l=(()=>dt7948.g(this.prototype,"capsLockOn",[n.tracked],function(){return!1}))();#t8=(()=>void dt7948.i(this,"capsLockOn"))();get credentialsClass(){return this.args.showSecondFactor||this.args.showSecurityKey?"hidden":""}get showSecondFactorForm(){return this.args.showSecondFactor||this.args.showSecurityKey}get disableLoginFields(){return this.args.showSecondFactor||this.args.showSecurityKey}passkeyConditionalLogin(){this.args.canUsePasskeys&&this.args.passkeyLogin("conditional")}static #c=(()=>dt7948.n(this.prototype,"passkeyConditionalLogin",[r.action]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #u=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[r.action]))();togglePasswordMask(){this.maskPassword=!this.maskPassword}static #d=(()=>dt7948.n(this.prototype,"togglePasswordMask",[r.action]))();async emailLogin(e){if(e?.preventDefault(),!this.processingEmailLink){if((0,l.isEmpty)(this.args.loginName)){this.args.flashChanged((0,m.i18n)("login.blank_username")),this.args.flashTypeChanged("info");return}try{this.processingEmailLink=!0;let e=await (0,u.ajax)("/u/email-login",{data:{login:this.args.loginName.trim()},type:"POST"}),t=(0,p.escapeExpression)(this.args.loginName),i=t.match(/@/)?"email_login.complete_email":"email_login.complete_username";if(!1===e.user_found)this.args.flashChanged((0,a.htmlSafe)((0,m.i18n)(`${i}_not_found`,{email:t,username:t}))),this.args.flashTypeChanged("error");else{let s=e.hide_taken?"":"_found";this.args.flashChanged((0,a.htmlSafe)((0,m.i18n)(`${i}${s}`,{email:t,username:t}))),this.args.flashTypeChanged("success")}}catch(e){(0,d.popupAjaxError)(e)}finally{this.processingEmailLink=!1}}}static #p=(()=>dt7948.n(this.prototype,"emailLogin",[r.action]))();loginOnEnter(e){"Enter"===e.key&&this.args.login()}static #h=(()=>dt7948.n(this.prototype,"loginOnEnter",[r.action]))();handleForgotPassword(e){e?.preventDefault(),this.modal.show(c.default,{model:{emailOrUsername:this.args.loginName}})}static #m=(()=>dt7948.n(this.prototype,"handleForgotPassword",[r.action]))();authenticateSecurityKey(){(0,h.getWebauthnCredential)(this.args.securityKeyChallenge,this.args.securityKeyAllowedCredentialIds,e=>{this.args.securityKeyCredentialChanged(e),this.args.login()},e=>{this.args.flashChanged(e),this.args.flashTypeChanged("error")})}static #g=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[r.action]))()}(0,f.setComponentTemplate)(g,_)},15202:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(53397),r=i(63748),o=i(98988),a=i(81386);let l=(0,i(85671).createTemplateFactory)({id:"fxp2jgOr",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[11,"button"],[16,0,[29,["btn btn-social ",[30,1,["name"]]]]],[16,"aria-label",[30,1,["screenReaderTitle"]]],[24,4,"button"],[4,[38,3],["click",[28,[37,4],[[30,0],[30,0,["externalLogin"]],[30,1]],null]],null],[12],[1,"\\n"],[41,[30,1,["isGoogle"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,1,["icon"]],[[[1," "],[1,[28,[35,7],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["right-to-bracket"],null]],[1,"\\n "]],[]]]],[]]],[1," "],[10,1],[14,0,"btn-social-title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showPasskeysButton"]],[[[1," "],[8,[39,9],null,[["@passkeyLogin"],[[30,0,["passkeyLogin"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,10],null,[["@name"],["after-login-buttons"]],null]],["b"],false,["each","-track-array","button","on","action","if","google-icon","d-icon","span","passkey-login-button","plugin-outlet"]]',moduleName:"discourse/components/login-buttons.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{elementId="login-buttons";hidden(e,t,i){return 0===e&&!t&&!i}static #e=(()=>dt7948.n(this.prototype,"hidden",[(0,r.default)("buttons.length","showLoginWithEmailLink","showPasskeysButton")]))();multiple(e){return e>1}static #i=(()=>dt7948.n(this.prototype,"multiple",[(0,r.default)("buttons.length")]))();buttons(){return(0,a.findAll)()}static #s=(()=>dt7948.n(this.prototype,"buttons",[r.default]))();showPasskeysButton(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&"login"===this.context&&(0,o.isWebauthnSupported)()}static #l=(()=>dt7948.n(this.prototype,"showPasskeysButton",[r.default]))()},[(0,n.classNameBindings)("hidden","multiple")]),u=(0,s.setComponentTemplate)(l,c)},40841:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(18638),n=i(98740),r=i(843),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"72uhm36W",block:'[[[1,"\\n "],[10,0],[14,0,"login-page-cta"],[12],[1,"\\n "],[10,0],[14,0,"login-page-cta__buttons"],[12],[1,"\\n"],[41,[30,1],[[[41,[51,[30,2]],[[[1," "],[8,[32,0],[[24,1,"login-button"],[24,"form","login-form"],[24,0,"btn-large btn-primary login-page-cta__login"],[16,"tabindex",[52,[51,[30,3]],"2"]]],[["@action","@disabled","@isLoading","@label"],[[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[14,0,"login-page-cta__no-account-yet"],[12],[1,"\\n "],[1,[28,[32,1],["create_account.no_account_yet"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-large btn-flat login-page-cta__signup"],[24,1,"new-account-link"],[24,"tabindex","3"]],[["@action","@disabled","@label"],[[30,9],[30,6],"create_account.title"]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName"],["login-after-modal-footer","div"]],null],[1,"\\n "],[13],[1,"\\n"]],["@canLoginLocal","@showSecurityKey","@showSecondFactor","@login","@loginDisabled","@loggingIn","@loginButtonLabel","@showSignupLink","@createAccount"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/login-page-cta.js",scope:()=>[s.default,r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,"login-page-cta:LoginPageCta"))},79747:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"90fk+JWw",block:'[[[10,0],[15,0,[28,[37,1],["menu-panel",[30,1],[30,2]],null]],[14,"data-max-width","500"],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@panelClass","@animationClass","&default"],false,["div","concat-class","yield"]]',moduleName:"discourse/components/menu-panel.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"menu-panel"))},26068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(52350);let o=(0,i(85671).createTemplateFactory)({id:"0OPO7UJ9",block:'[[[10,"td"],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"topic-inset"],[12],[1,"\\n "],[1,[28,[35,2],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n "],[1,[28,[35,3],[[30,0,["topic"]]],null]],[1,"\\n"],[41,[30,0,["topic","unseen"]],[[[1," "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[15,0,[28,[37,6],[[30,0,["topic","last_posted_at"]]],null]],[15,"title",[28,[37,7],[[30,0,["topic","last_posted_at"]]],null]],[12],[1,[28,[35,8],[[30,0,["topic","last_posted_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,"td"],[14,0,"num posts"],[12],[1,[28,[35,2],["list/post-count-or-badges"],[["topic","postBadgesEnabled"],[[30,0,["topic"]],"true"]]]],[13]],[],false,["td","div","raw","topic-link","if","span","cold-age-class","raw-date","format-age"]]',moduleName:"discourse/components/mobile-category-topic.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{click=(()=>r.showEntrance)()},[(0,n.classNameBindings)(":category-topic-link","topic.archived","topic.visited"),(0,n.tagName)("tr")]),l=(0,s.setComponentTemplate)(o,a)},66585:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(62053),o=i(83133),a=i(53397),l=i(42064),c=i(25124),u=i.n(c);let d=(0,i(85671).createTemplateFactory)({id:"Dj5HUi/x",block:'[[[41,[30,0,["site","mobileView"]],[[[41,[30,0,["selectedHtml"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"expander"],[4,[38,3],["click",[30,0,["toggleExpanded"]]],null],[12],[1,"\\n "],[10,1],[14,0,"selection"],[12],[1,[28,[35,5],[[30,0,["selectedHtml"]]],null]],[13],[1,"\\n "],[1,[28,[35,6],["caret-down"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"ul"],[15,0,[29,["drop ",[52,[30,0,["expanded"]],"expanded"]]]],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","li","a","on","span","html-safe","d-icon","ul","yield"]]',moduleName:"discourse/components/mobile-nav.hbs",isStrictMode:!1}),p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();selectedHtml=null;_init(){if(this.site.desktopView){let e=this.desktopClass;e&&(e=e.split(" "),this.set("classNames",e))}}static #i=(()=>dt7948.n(this.prototype,"_init",[(0,l.on)("init")]))();currentRouteChanged(){this.set("expanded",!1),(0,r.next)(()=>this._updateSelectedHtml())}_updateSelectedHtml(){if(!this.element||this.isDestroying||this.isDestroyed)return;let e=this.element.querySelector(".active");e&&e.innerHTML&&this.set("selectedHtml",e.innerHTML)}didInsertElement(){super.didInsertElement(...arguments),this._updateSelectedHtml(),this.router.on("routeDidChange",this,this.currentRouteChanged)}willDestroyElement(){super.willDestroyElement(...arguments),this.router.off("routeDidChange",this,this.currentRouteChanged)}toggleExpanded(e){e?.preventDefault(),this.toggleProperty("expanded"),(0,r.next)(()=>{this.expanded&&u()(window).off("click.mobile-nav").on("click.mobile-nav",e=>{if(!this.element||this.isDestroying||this.isDestroyed)return;let t=this.element.querySelector(".expander");t&&e.target!==t&&(this.set("expanded",!1),u()(window).off("click.mobile-nav"))})})}static #s=(()=>dt7948.n(this.prototype,"toggleExpanded",[n.action]))()},[(0,a.classNames)("mobile-nav"),(0,a.tagName)("ul")]),h=(0,s.setComponentTemplate)(d,p)},27510:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(75446),r=i(35533),o=i(18387),a=i(83133),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();closeModal(e){this.modal.close(e)}static #i=(()=>dt7948.n(this.prototype,"closeModal",[r.action]))();static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"RMgTCABg",block:'[[[1,"\\n "],[11,0],[24,0,"modal-container"],[4,[32,0],[[30,0,["modal","setContainerElement"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["modal","activeModal"]],[[[42,[28,[31,2],[[28,[31,2],[[28,[32,1],[[30,0,["modal","activeModal"]]],null]],null]],null],null,[[[1," "],[8,[30,1,["component"]],null,[["@model","@closeModal"],[[30,1,["opts","model"]],[30,0,["closeModal"]]]],null],[1,"\\n"]],[1]],null]],[]],null],[1," "]],["activeModal"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal-container.js",scope:()=>[o.default,n.array],isStrictMode:!0}),this))()}},77232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(90011),l=i(18638),c=i(1453),u=i(88355),d=i(56294),p=i(843),h=i(81025),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"login",[o.service]))();#t2=(()=>void dt7948.i(this,"login"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"newEmail",[n.tracked],function(){return this.args.model.newEmail}))();#t4=(()=>void dt7948.i(this,"newEmail"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();get submitDisabled(){return this.newEmail===this.args.model.currentEmail}async changeEmail(){try{await (0,d.changeEmail)({username:this.login?.loginName,password:this.login?.loginPassword,email:this.newEmail}),this.modal.show(h.default,{model:{currentEmail:this.newEmail}})}catch(e){this.flash=(0,u.extractError)(e)}}static #c=(()=>dt7948.n(this.prototype,"changeEmail",[r.action]))();updateNewEmail(e){this.newEmail=e}static #u=(()=>dt7948.n(this.prototype,"updateNewEmail",[r.action]))();static #d=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"1DsATJ8H",block:'[[[1,"\\n "],[8,[32,0],null,[["@closeModal","@title","@flash"],[[30,1],[28,[32,1],["login.change_email"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[8,[32,2],null,[["@email","@updateNewEmail"],[[30,2,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n "],[8,[32,3],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/activation-edit.js",scope:()=>[c.default,p.i18n,a.default,l.default],isStrictMode:!0}),this))()}},81025:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"617GTxQz",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["log_in"],null],[30,1]]],[["body"],[[[[1,"\\n "],[1,[28,[35,3],[[28,[37,1],["login.sent_activation_email_again"],[["currentEmail"],[[30,2,["currentEmail"]]]]]],null]],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","html-safe"]]',moduleName:"discourse/components/modal/activation-resent.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"activation-resent"))},96049:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"NBNGi8vL",block:'[[[8,[39,0],[[24,0,"add-pm-participants"]],[["@title","@closeModal","@bodyClass"],[[28,[37,1],[[30,1,["title"]]],null],[30,2],"invite modal-panel"]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@inviteModel","@closeModal"],[[30,1,["inviteModel"]],[30,2]]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n",":body","invite-panel"]]',moduleName:"discourse/components/modal/add-pm-participants.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"add-pm-participants"))},96853:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(83133),r=i(42256),o=i(75983),a=i(1453),l=i(94636),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get description(){return(0,c.i18n)("anonymous_flagging.description",{email:this.#t9,topic_title:this.args.model.flagModel.topic.title,url:(0,l.getAbsoluteURL)(this.args.model.flagModel.url)})}get #t9(){return(0,o.isEmpty)(this.siteSettings.email_address_to_report_illegal_content)?this.siteSettings.contact_email:this.siteSettings.email_address_to_report_illegal_content}static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"ihqXT1lC",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"anonymous-flag-modal"]],[["@title","@closeModal","@bodyClass"],[[28,[32,1],["anonymous_flagging.title"],null],[30,1],"anonymous-flag-modal__body"]],[["body"],[[[[1,"\\n "],[1,[28,[32,2],[[30,0,["description"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/anonymous-flag.js",scope:()=>[a.default,c.i18n,r.htmlSafe],isStrictMode:!0}),this))()}},50984:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(88355);let c=(0,i(85671).createTemplateFactory)({id:"9cLu1DJE",block:'[[[8,[39,0],null,[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["user.associated_accounts.confirm_modal_title"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]],[30,2],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["existing_account_description"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["user.associated_accounts.confirm_description.disconnect"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["existing_account_description"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,1,["account_description"]],[[[1," "],[1,[28,[35,1],["user.associated_accounts.confirm_description.account_specific"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["account_description"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["user.associated_accounts.confirm_description.generic"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@label","@action","@icon"],["user.associated_accounts.connect",[30,0,["finishConnect"]],"plug"]],null],[1,"\\n "],[8,[39,7],null,[["@label","@action"],["user.associated_accounts.cancel",[30,2]]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n","concat",":body","if","p",":footer","d-button"]]',moduleName:"discourse/components/modal/associate-account-confirm.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();async finishConnect(){try{let e=await (0,a.ajax)({url:`/associate/${encodeURIComponent(this.args.model.token)}`,type:"POST"});e.success?(this.router.transitionTo("preferences.account",this.currentUser.findDetails()),this.args.closeModal()):this.flash=e.error}catch(e){(0,l.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"finishConnect",[r.action]))()}(0,u.setComponentTemplate)(c,d)},81031:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(87353);let c=(0,i(85671).createTemplateFactory)({id:"ATyzCCVc",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.auth_tokens.was_this_you"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.auth_tokens.was_this_you_description"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,5],[[28,[37,1],["user.second_factor.extended_description"],null]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],["user.auth_tokens.details"],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],["far-clock"],null]],[1," "],[1,[28,[35,10],[[30,2,["seen_at"]]],null]],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],["location-dot"],null]],[1," "],[1,[30,2,["location"]]],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],[[30,2,["icon"]]],null]],[1,"\\n "],[1,[28,[35,1],["user.auth_tokens.browser_and_device"],[["browser","device"],[[30,2,["browser"]],[30,2,["device"]]]]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["latestPost"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,1],["user.auth_tokens.latest_post"],null]],[1,"\\n"],[1," "],[11,3],[24,6,""],[4,[38,13],["click",[30,0,["toggleExpanded"]]],null],[4,[38,14],null,null],[12],[1,"\\n "],[1,[28,[35,9],[[52,[30,0,["expanded"]],"caret-up","caret-down"]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["expanded"]],[[[1," "],[10,"blockquote"],[12],[1,[28,[35,5],[[30,0,["latestPost","cooked"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,"blockquote"],[12],[1,[28,[35,5],[[30,0,["latestPost","excerpt"]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,17],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,1],"lock","user.auth_tokens.secure_account"]],null],[1,"\\n "],[8,[39,18],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","p","html-safe","h3","ul","li","d-icon","format-date","if","a","on","auto-focus","blockquote",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/auth-token.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"expanded",[n.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();static #s=(()=>dt7948.g(this.prototype,"latestPost",[n.tracked],function(){return null}))();#t5=(()=>void dt7948.i(this,"latestPost"))();constructor(){super(...arguments),this.fetchActivity()}async fetchActivity(){let e=await (0,a.ajax)((0,l.userPath)(`${this.currentUser.username_lower}/activity.json`));e.length>0&&(this.latestPost=e[0])}static #l=(()=>dt7948.n(this.prototype,"fetchActivity",[r.action]))();toggleExpanded(e){e?.preventDefault(),this.expanded=!this.expanded}static #c=(()=>dt7948.n(this.prototype,"toggleExpanded",[r.action]))()}(0,u.setComponentTemplate)(c,d)},67718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(88355),c=i(77093),u=i(65742);let d=(0,i(85671).createTemplateFactory)({id:"6koSvamt",block:'[[[8,[39,0],[[24,0,"avatar-selector-modal"]],[["@bodyClass","@closeModal","@title"],["avatar-selector",[30,1],[28,[37,1],["user.change_avatar.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["showSelectableAvatars"]],[[[1," "],[10,0],[14,0,"selectable-avatars"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["selectableAvatars"]]],null]],null],null,[[[1," "],[11,3],[24,6,""],[24,0,"selectable-avatar"],[4,[38,8],["click",[28,[37,9],[[30,0,["selectAvatar"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,10],[[30,2],"huge"],null]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showCustomAvatarSelector"]],[[[1," "],[10,"h4"],[12],[1,[28,[35,1],["user.change_avatar.use_custom"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["showCustomAvatarSelector"]],[[[41,[30,0,["user","use_logo_small_as_avatar"]],[[[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["logo-small","logo","logo",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","logo-small"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["siteSettings","site_logo_small_url"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.logo_small"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["system-avatar","avatar","system",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","system-avatar"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["user","system_avatar_template"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.letter_based"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["allowAvatarUpload"]],[[[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["gravatar","avatar","gravatar",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","gravatar"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["user","gravatar_avatar_template"]],"large"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,15],[[28,[37,1],["user.change_avatar.gravatar"],[["gravatarName","gravatarBaseUrl","gravatarLoginUrl"],[[30,0,["siteSettings","gravatar_name"]],[30,0,["siteSettings","gravatar_base_url"]],[30,0,["siteSettings","gravatar_login_url"]]]]]],null]],[1,"\\n "],[1,[30,0,["user","email"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,16],[[24,0,"btn-default avatar-selector-refresh-gravatar"]],[["@action","@translatedTitle","@disabled","@icon"],[[30,0,["refreshGravatar"]],[28,[37,1],["user.change_avatar.refresh_gravatar_title"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]],[30,0,["gravatarRefreshDisabled"]],"arrows-rotate"]],null],[1,"\\n\\n"],[41,[30,0,["gravatarFailed"]],[[[1," "],[10,2],[14,0,"error"],[12],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.gravatar_failed"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["uploaded-avatar","avatar","custom",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","uploaded-avatar"],[12],[1,"\\n"],[41,[30,0,["user","custom_avatar_template"]],[[[1," "],[1,[28,[35,10],[[30,0,["user","custom_avatar_template"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar_empty"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,18],[[24,0,"avatar-uploader"]],[["@user_id","@uploadedAvatarTemplate","@uploadedAvatarId","@uploading","@id","@done"],[[30,0,["user","id"]],[30,0,["user","custom_avatar_template"]],[30,0,["user","custom_avatar_upload_id"]],[30,0,["uploading"]],"avatar-uploader",[30,0,["uploadComplete"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["showCustomAvatarSelector"]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveAvatarSelection"]],[30,0,["submitDisabled"]],"save"]],null],[1,"\\n "],[8,[39,20],null,[["@close"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","avatar"],false,["d-modal","i18n",":body","if","div","each","-track-array","a","on","fn","bound-avatar-template","h4","radio-button","label","span","html-safe","d-button","p","avatar-uploader",":footer","d-modal-cancel"]]',moduleName:"discourse/components/modal/avatar-selector.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"gravatarRefreshDisabled",[n.tracked],function(){return!1}))();#t6=(()=>void dt7948.i(this,"gravatarRefreshDisabled"))();static #l=(()=>dt7948.g(this.prototype,"gravatarFailed",[n.tracked],function(){return!1}))();#ie=(()=>void dt7948.i(this,"gravatarFailed"))();static #c=(()=>dt7948.g(this.prototype,"uploading",[n.tracked],function(){return!1}))();#it=(()=>void dt7948.i(this,"uploading"))();static #u=(()=>dt7948.g(this.prototype,"_selected",[n.tracked],function(){return null}))();#ii=(()=>void dt7948.i(this,"_selected"))();get user(){return this.args.model.user}get selected(){return this._selected??this.defaultSelection}set selected(e){this._selected=e}get submitDisabled(){return"logo"===this.selected||this.uploading}get selectableAvatars(){let e=this.siteSettings.selectable_avatars_mode,t=this.siteSettings.selectable_avatars;return"disabled"!==e?t?t.split("|"):[]:null}get showSelectableAvatars(){return"disabled"!==this.siteSettings.selectable_avatars_mode}get showCustomAvatarSelector(){let e=this.siteSettings.selectable_avatars_mode;switch(e){case"no_one":return!1;case"tl1":case"tl2":case"tl3":case"tl4":let t=parseInt(e.replace("tl",""),10);return this.user.admin||this.user.moderator||this.user.trust_level>=t;case"staff":return this.user.admin||this.user.moderator;default:return!0}}get defaultSelection(){return this.user.use_logo_small_as_avatar?"logo":this.user.avatar_template===this.user.system_avatar_template?"system":this.user.avatar_template===this.user.gravatar_avatar_template?"gravatar":"custom"}get selectedUploadId(){switch(this.selected){case"system":return this.user.system_avatar_upload_id;case"gravatar":return this.user.gravatar_avatar_upload_id;default:return this.user.custom_avatar_upload_id}}get allowAvatarUpload(){return this.currentUser.can_upload_avatar&&(0,u.allowsImages)(this.currentUser.staff,this.siteSettings)}onSelectedChanged(e){this.selected=e}static #d=(()=>dt7948.n(this.prototype,"onSelectedChanged",[r.action]))();async selectAvatar(e,t){t?.preventDefault();try{await this.user.selectAvatar(e),window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"selectAvatar",[r.action]))();uploadComplete(){this.selected="custom"}static #h=(()=>dt7948.n(this.prototype,"uploadComplete",[r.action]))();async refreshGravatar(){this.gravatarRefreshDisabled=!0;try{let e=await (0,a.ajax)(`/user_avatar/${this.user.username}/refresh_gravatar.json`,{type:"POST"});e.gravatar_upload_id?(this.gravatarFailed=!1,this.user.setProperties({gravatar_avatar_upload_id:e.gravatar_upload_id,gravatar_avatar_template:e.gravatar_avatar_template})):this.gravatarFailed=!0}finally{this.gravatarRefreshDisabled=!1}}static #m=(()=>dt7948.n(this.prototype,"refreshGravatar",[r.action]))();async saveAvatarSelection(){try{await this.user.pickAvatar(this.selectedUploadId,this.selected),(0,c.isTesting)()||window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #g=(()=>dt7948.n(this.prototype,"saveAvatarSelection",[r.action]))()}(0,p.setComponentTemplate)(d,h)},46079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(80989),n=i(8554),r=i(35533),o=i(30574),a=i(83133),l=i(51367),c=i.n(l),u=i(24571),d=i(1453),p=i(88355),h=i(1602),m=i(19905),g=i(53306),f=i(50409),_=i(66914),y=i(3211),b=i(27431),w=i(843);let k=(0,i(85671).createTemplateFactory)({id:"PCF57C36",block:'[[[8,[39,0],[[24,1,"bookmark-reminder-modal"],[24,0,"bookmark-reminder-modal"],[16,"data-bookmark-id",[30,0,["bookmark","id"]]],[4,[38,1],[[30,0,["didInsert"]]],null]],[["@closeModal","@title","@flash","@flashType"],[[30,0,["closingModal"]],[30,0,["modalTitle"]],[30,0,["flash"]],"error"]],[["headerPrimaryAction","body","footer"],[[[[1,"\\n "],[8,[39,3],[[24,0,"btn-transparent btn-primary"]],[["@label","@action","@title"],["bookmarks.save",[30,0,["saveAndClose"]],"modal.close"]],null],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"control-group bookmark-name-wrap"],[12],[1,"\\n "],[8,[39,6],[[24,1,"bookmark-name"],[24,3,"bookmark-name"],[24,0,"bookmark-name"],[16,"placeholder",[28,[37,7],["post.bookmarks.name_placeholder"],null]],[16,"aria-label",[28,[37,7],["post.bookmarks.name_input_label"],null]]],[["@value"],[[30,0,["bookmark","name"]]]],null],[1,"\\n "],[8,[39,3],[[24,0,"bookmark-options-button"]],[["@icon","@action","@ariaLabel","@title"],["gear",[30,0,["toggleShowOptions"]],"post.bookmarks.options","post.bookmarks.options"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showOptions"]],[[[1," "],[10,0],[14,0,"bookmark-options-panel"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark_auto_delete_preference"],[12],[1,[28,[35,7],["bookmarks.auto_delete_preference.label"],null]],[13],[1,"\\n "],[8,[39,10],[[24,0,"bookmark-option-selector"]],[["@content","@value","@id","@onChange"],[[30,0,["autoDeletePreferences"]],[30,0,["bookmark","autoDeletePreference"]],"bookmark-auto-delete-preference",[28,[37,11],[[28,[37,12],[[30,0,["bookmark","autoDeletePreference"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showExistingReminderAt"]],[[[1," "],[10,0],[14,0,"alert alert-info existing-reminder-at-alert"],[12],[1,"\\n "],[1,[28,[35,13],["far-clock"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["bookmarks.reminders.existing_reminder"],[["at_date_time"],[[30,0,["existingReminderAtFormatted"]]]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["post.bookmarks.set_reminder"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["userHasTimezoneSet"]],[[[1," "],[8,[39,15],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@customLabels","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["prefilledDatetime"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,16],[[28,[37,7],["bookmarks.no_timezone"],[["basePath"],[[28,[37,17],null,null]]]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,3],[[24,1,"save-bookmark"],[24,0,"btn-primary"]],[["@label","@action"],["bookmarks.save",[30,0,["saveAndClose"]]]],null],[1,"\\n "],[8,[39,19],null,[["@close"],[[30,0,["closeWithoutSavingBookmark"]]]],null],[1,"\\n"],[41,[30,0,["showDelete"]],[[[1," "],[8,[39,3],[[24,1,"delete-bookmark"],[24,0,"delete-bookmark btn-danger"]],[["@icon","@action","@ariaLabel","@title"],["trash-can",[30,0,["delete"]],"post.bookmarks.actions.delete_bookmark.name","post.bookmarks.actions.delete_bookmark.name"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],[],false,["d-modal","did-insert",":headerPrimaryAction","d-button",":body","div","input","i18n","if","label","combo-box","fn","mut","d-icon","span","time-shortcut-picker","html-safe","base-path",":footer","d-modal-cancel"]]',moduleName:"discourse/components/modal/bookmark.hbs",isStrictMode:!1});var T=i(53653);let S={enter:{handler:"saveAndClose"},"d d":{handler:"delete"}};class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"bookmarkApi",[a.service]))();#is=(()=>void dt7948.i(this,"bookmarkApi"))();static #c=(()=>dt7948.g(this.prototype,"postDetectedLocalDate",[n.tracked],function(){return null}))();#ir=(()=>void dt7948.i(this,"postDetectedLocalDate"))();static #u=(()=>dt7948.g(this.prototype,"postDetectedLocalTime",[n.tracked],function(){return null}))();#io=(()=>void dt7948.i(this,"postDetectedLocalTime"))();static #d=(()=>dt7948.g(this.prototype,"postDetectedLocalTimezone",[n.tracked],function(){return null}))();#ia=(()=>void dt7948.i(this,"postDetectedLocalTimezone"))();static #p=(()=>dt7948.g(this.prototype,"prefilledDatetime",[n.tracked],function(){return null}))();#il=(()=>void dt7948.i(this,"prefilledDatetime"))();static #h=(()=>dt7948.g(this.prototype,"flash",[n.tracked],function(){return null}))();#t7=(()=>void dt7948.i(this,"flash"))();static #m=(()=>dt7948.g(this.prototype,"userTimezone",[n.tracked],function(){return this.currentUser.user_option.timezone}))();#ic=(()=>void dt7948.i(this,"userTimezone"))();static #g=(()=>dt7948.g(this.prototype,"showOptions",[n.tracked],function(){return!!this.args.model.bookmark.id}))();#iu=(()=>void dt7948.i(this,"showOptions"))();static #A=(()=>dt7948.g(this.prototype,"userHasTimezoneSet",[(0,o.notEmpty)("userTimezone")]))();#id=(()=>void dt7948.i(this,"userHasTimezoneSet"))();static #E=(()=>dt7948.g(this.prototype,"showDelete",[(0,o.notEmpty)("bookmark.id")]))();#ip=(()=>void dt7948.i(this,"showDelete"))();static #D=(()=>dt7948.g(this.prototype,"editingExistingBookmark",[(0,o.notEmpty)("bookmark.id")]))();#ih=(()=>void dt7948.i(this,"editingExistingBookmark"))();static #P=(()=>dt7948.g(this.prototype,"existingBookmarkHasReminder",[(0,o.and)("bookmark.id","bookmark.reminderAt")]))();#im=(()=>void dt7948.i(this,"existingBookmarkHasReminder"))();static #Q=(()=>dt7948.g(this.prototype,"_closeWithoutSaving",[n.tracked],function(){return!1}))();#ig=(()=>void dt7948.i(this,"_closeWithoutSaving"))();static #J=(()=>dt7948.g(this.prototype,"_savingBookmarkManually",[n.tracked],function(){return!1}))();#i_=(()=>void dt7948.i(this,"_savingBookmarkManually"))();static #X=(()=>dt7948.g(this.prototype,"_saving",[n.tracked],function(){return!1}))();#iy=(()=>void dt7948.i(this,"_saving"))();static #Z=(()=>dt7948.g(this.prototype,"_deleting",[n.tracked],function(){return!1}))();#ib=(()=>void dt7948.i(this,"_deleting"))();_itsatrap=(()=>new(c()))();willDestroy(){super.willDestroy(...arguments),this._itsatrap?.destroy(),this._itsatrap=null,m.default.unpause()}get bookmark(){return this.args.model.bookmark}get modalTitle(){return(0,w.i18n)(this.bookmark.id?"bookmarks.edit":"bookmarks.create")}get autoDeletePreferences(){return Object.keys(b.AUTO_DELETE_PREFERENCES).map(e=>({id:b.AUTO_DELETE_PREFERENCES[e],name:(0,w.i18n)(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))}get showExistingReminderAt(){return this.bookmark.reminderAt&&Date.parse(this.bookmark.reminderAt)>new Date().getTime()}get existingReminderAtFormatted(){return(0,h.formattedReminderTime)(this.bookmark.reminderAt,this.userTimezone)}get timeOptions(){let e=(0,_.defaultTimeShortcuts)(this.userTimezone);return this.showPostLocalDate&&e.push({icon:"globe-americas",id:_.TIME_SHORTCUT_TYPES.POST_LOCAL_DATE,label:"time_shortcut.post_local_date",time:this.#iv(),timeFormatKey:"dates.long_no_year",hidden:!1}),e}get showPostLocalDate(){return!(!this.postDetectedLocalTime||!this.postDetectedLocalDate||this.#iv()<(0,y.now)(this.userTimezone))}get hiddenTimeShortcutOptions(){return this.editingExistingBookmark&&!this.existingBookmarkHasReminder?[_.TIME_SHORTCUT_TYPES.NONE]:[]}get customTimeShortcutLabels(){let e={};return this.existingBookmarkHasReminder&&(e[_.TIME_SHORTCUT_TYPES.NONE]="bookmarks.remove_reminder_keep_bookmark"),e}didInsert(){(0,g.default)(()=>{this.site.isMobileDevice&&document.getElementById("bookmark-name").blur()}),this.args.model.bookmark.id||document.getElementById("tap_tile_none").classList.add("active"),this.#iw(),this.#ik(),this.#iT()}static #ee=(()=>dt7948.n(this.prototype,"didInsert",[r.action]))();saveAndClose(){if(this.flash=null,!this._saving&&!this._deleting)return this._saving=!0,this._savingBookmarkManually=!0,this.#iS().then(()=>this.args.closeModal()).catch(e=>this.#iC(e)).finally(()=>{this._saving=!1})}static #et=(()=>dt7948.n(this.prototype,"saveAndClose",[r.action]))();toggleShowOptions(){this.showOptions=!this.showOptions}static #ei=(()=>dt7948.n(this.prototype,"toggleShowOptions",[r.action]))();onTimeSelected(e,t){if(this.bookmark.selectedReminderType=e,this.bookmark.selectedDatetime=t,this.bookmark.reminderAt=t,![_.TIME_SHORTCUT_TYPES.CUSTOM,_.TIME_SHORTCUT_TYPES.RELATIVE].includes(e))return this.saveAndClose()}static #es=(()=>dt7948.n(this.prototype,"onTimeSelected",[r.action]))();closingModal(e){e.initiatedBy!==d.CLOSE_INITIATED_BY_CLICK_OUTSIDE||this._closeWithoutSaving||this._savingBookmarkManually?this.args.closeModal(e):this.#iS().catch(e=>this.#iC(e)).then(()=>{this.args.closeModal(e)})}static #en=(()=>dt7948.n(this.prototype,"closingModal",[r.action]))();closeWithoutSavingBookmark(){this._closeWithoutSaving=!0,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}static #er=(()=>dt7948.n(this.prototype,"closeWithoutSavingBookmark",[r.action]))();delete(){if(!this.bookmark.id)return;this._deleting=!0;let e=()=>{this._closeWithoutSaving=!0,this.#ix().then(()=>{this._deleting=!1,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}).catch(e=>this.#iC(e))};this.existingBookmarkHasReminder?this.dialog.deleteConfirm({message:(0,w.i18n)("bookmarks.confirm_delete"),didConfirm:()=>e()}):e()}static #eo=(()=>dt7948.n(this.prototype,"delete",[r.action]))();#iv(){let e=(0,y.parseCustomDatetime)(this.postDetectedLocalDate,this.postDetectedLocalTime,this.userTimezone,this.postDetectedLocalTimezone);return this.postDetectedLocalTime?e:(0,y.startOfDay)(e)}#iS(){return this.bookmark.selectedReminderType!==_.TIME_SHORTCUT_TYPES.CUSTOM||this.bookmark.reminderAtISO?this.editingExistingBookmark?this.bookmarkApi.update(this.bookmark).then(()=>{this.args.model.afterSave?.(this.bookmark)}):this.bookmarkApi.create(this.bookmark).then(()=>{this.args.model.afterSave?.(this.bookmark)}):u.Promise.reject((0,w.i18n)("bookmarks.invalid_custom_datetime"))}#ix(){return this.bookmarkApi.delete(this.bookmark.id).then(e=>{this.args.model.afterDelete?.(e,this.bookmark.id)})}#iC(e){this._savingBookmarkManually=!1,"string"==typeof e?this.flash=(0,f.sanitize)(e):this.flash=(0,f.sanitize)((0,p.extractError)(e))}#iw(){m.default.pause(),Object.keys(S).forEach(e=>{this._itsatrap.bind(e,()=>(this[S[e].handler](),!1))})}#ik(){this.existingBookmarkHasReminder&&this.editingExistingBookmark&&(this.prefilledDatetime=this.bookmark.reminderAt,this.bookmark.selectedDatetime=(0,y.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone))}#iT(){if("Post"!==this.bookmark.bookmarkableType)return;let e=document.querySelector(`[data-post-id="${this.bookmark.bookmarkableId}"]`),t=e?.querySelector(".discourse-local-date");t&&(this.postDetectedLocalDate=t.dataset.date,this.postDetectedLocalTime=t.dataset.time,this.postDetectedLocalTimezone=t.dataset.timezone)}}(0,T.setComponentTemplate)(k,C)},58511:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addBulkDropdownAction:()=>A,default:()=>E});var s=i(80989),n=i(8554),r=i(53653),o=i(99615),a=i(35533),l=i(31049),c=i(83133),u=i(42256),d=i(24571),p=i(53755),h=i(18638),m=i(1453),g=i(38267),f=i(18385),_=i(23777),y=i(1559),b=i(19268),w=i(3539),k=i(843),T=i(16282),S=i(12868),C=i(85671);let x={};function A(e,t){x[e]=t}class E extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[c.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[c.service]))();#C=(()=>void dt7948.i(this,"toasts"))();static #s=(()=>dt7948.g(this.prototype,"activeComponent",[n.tracked],function(){return null}))();#iA=(()=>void dt7948.i(this,"activeComponent"))();static #l=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#F=(()=>void dt7948.i(this,"tags"))();static #c=(()=>dt7948.g(this.prototype,"categoryId",[n.tracked]))();#iE=(()=>void dt7948.i(this,"categoryId"))();static #u=(()=>dt7948.g(this.prototype,"loading",[n.tracked]))();#T=(()=>void dt7948.i(this,"loading"))();static #d=(()=>dt7948.g(this.prototype,"errors",[n.tracked]))();#iD=(()=>void dt7948.i(this,"errors"))();static #p=(()=>dt7948.g(this.prototype,"isSilent",[n.tracked],function(){return!1}))();#iP=(()=>void dt7948.i(this,"isSilent"))();static #h=(()=>dt7948.g(this.prototype,"closeNote",[n.tracked],function(){return null}))();#iM=(()=>void dt7948.i(this,"closeNote"))();notificationLevelId=null;constructor(){super(...arguments),"set-component"===this.model.initialAction&&this.model.initialActionLabel in x&&x[this.model.initialActionLabel]({setComponent:this.setComponent.bind(this)})}async perform(e){this.model.bulkSelectHelper.selected.length>20&&(this.showProgress=!0);try{return await this._processChunks(e)}catch{this.errors=!0,this.showToast()}finally{this.processedTopicCount=0,this.showProgress=!1}}_generateTopicChunks(e){let t=0,i=[];for(;tasync()=>{let i=await b.default.bulkOperation(t,e,n);return this.processedTopicCount+=t.length,i});return new d.Promise((e,i)=>{let n=async()=>{if(0===r.length)return e(s.map(e=>t.findBy("id",e)));let o=r.shift();try{let e=await o();e?.topic_ids&&s.push(...e.topic_ids),n()}catch{i()}};n()})}setComponent(e){this.activeComponent=e}static #m=(()=>dt7948.n(this.prototype,"setComponent",[a.action]))();registerCustomAction(e){this.customAction=e}static #g=(()=>dt7948.n(this.prototype,"registerCustomAction",[a.action]))();performAction(){switch(this.loading=!0,this.model.action){case"close":this.forEachPerformed({type:"close"},e=>e.set("closed",!0));break;case"archive":this.forEachPerformed({type:"archive"},e=>e.set("archived",!0));break;case"archive_messages":case"move_messages_to_inbox":let e=(0,l.getOwner)(this).lookup("controller:user-private-messages"),t={type:this.model.action};e.isGroup&&(t.group=e.groupFilter),this.performAndRefresh(t);break;case"unlist":this.forEachPerformed({type:"unlist"},e=>e.set("unlisted",!0));break;case"relist":this.forEachPerformed({type:"relist"},e=>e.set("unlisted",!1));break;case"append-tags":this.performAndRefresh({type:"append_tags",tags:this.tags});break;case"replace-tags":this.performAndRefresh({type:"change_tags",tags:this.tags});break;case"remove-tags":this.performAndRefresh({type:"remove_tags"});break;case"delete":this.performAndRefresh({type:"delete"});break;case"reset-bump-dates":this.performAndRefresh({type:"reset_bump_dates"});break;case"defer":this.performAndRefresh({type:"destroy_post_timing"});break;case"update-notifications":this.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId});break;case"update-category":this.forEachPerformed({type:"change_category",category_id:this.categoryId},e=>e.set("category_id",this.categoryId));break;default:this.customAction?this.customAction(this.performAndRefresh.bind(this)):x[this.model.initialActionLabel](this)}}static #A=(()=>dt7948.n(this.prototype,"performAction",[a.action]))();showToast(){this.loading=!1,this.errors?this.toasts.error({duration:3e3,data:{message:(0,k.i18n)("generic_error")}}):this.toasts.success({duration:3e3,data:{message:(0,k.i18n)("topics.bulk.completed")}})}async forEachPerformed(e,t){let i=await this.perform(e);i&&(i.forEach(t),this.model.refreshClosure?.(),this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast())}static #E=(()=>dt7948.n(this.prototype,"forEachPerformed",[a.action]))();async performAndRefresh(e){await this.perform(e),this.model.refreshClosure?.().then(()=>{this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast()})}static #D=(()=>dt7948.n(this.prototype,"performAndRefresh",[a.action]))();get isTagAction(){return"append-tags"===this.model.action||"replace-tags"===this.model.action}get isNotificationAction(){return"update-notifications"===this.model.action}get isCategoryAction(){return"update-category"===this.model.action}get isCloseAction(){return"close"===this.model.action}updateCloseNote(e){e.preventDefault(),this.closeNote=e.target.value}static #P=(()=>dt7948.n(this.prototype,"updateCloseNote",[a.action]))();get model(){return this.args.model}get notificationLevels(){return _.topicLevels.map(e=>({id:e.id.toString(),name:(0,k.i18n)(`topic.notifications.${e.key}.title`),description:(0,k.i18n)(`topic.notifications.${e.key}.description`)}))}get soleCategoryId(){return 1===this.model.bulkSelectHelper.selectedCategoryIds.length?this.model.bulkSelectHelper.selectedCategoryIds[0]:null}get soleCategory(){return this.soleCategoryId?y.default.findById(this.soleCategoryId):null}get soleCategoryBadgeHTML(){return(0,f.categoryBadgeHTML)(this.soleCategory,{allowUncategorized:!0})}get showSoleCategoryTip(){return this.soleCategory&&this.isTagAction}onCategoryChange(e){this.categoryId=e}static #Q=(()=>dt7948.n(this.prototype,"onCategoryChange",[a.action]))();static #J=(()=>(0,r.setComponentTemplate)((0,C.createTemplateFactory)({id:"W3G6Lkiq",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"topic-bulk-actions-modal -large"]],[["@title","@subtitle","@closeModal"],[[30,1,["title"]],[30,1,["description"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[8,[32,1],null,[["@isLoading","@title"],[[30,0,["loading"]],[28,[32,2],["topics.bulk.performing"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"topic-bulk-actions-modal__selection-info"],[12],[1,"\\n\\n"],[41,[30,0,["showSoleCategoryTip"]],[[[1," "],[1,[28,[32,3],[[28,[32,2],["topics.bulk.selected_sole_category"],[["count"],[[30,1,["bulkSelectHelper","selected","length"]]]]]],null]],[1,"\\n "],[1,[28,[32,3],[[30,0,["soleCategoryBadgeHTML"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,2],["topics.bulk.selected"],[["count"],[[30,1,["bulkSelectHelper","selected","length"]]]]]],null]],[1,"\\n\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isCategoryAction"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,4],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onCategoryChange"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isNotificationAction"]],[[[1," "],[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["notificationLevels"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio notification-level-radio checkbox-label"],[12],[1,"\\n "],[8,[32,5],null,[["@value","@name","@selection"],[[30,3,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n "],[10,"strong"],[12],[1,[30,3,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[32,3],[[30,3,["description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isTagAction"]],[[[1," "],[10,2],[12],[8,[32,6],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["soleCategoryId"]]]],null],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["activeComponent"]],[[[1," "],[46,[30,0,["activeComponent"]],null,[["onRegisterAction"],[[30,0,["registerCustomAction"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isCloseAction"]],[[[1," "],[10,0],[14,0,"bulk-close-note-section"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[32,2],["topic_bulk_actions.close_topics.note"],null]],[1," "],[10,1],[14,0,"label-optional"],[12],[1,[28,[32,2],["topic_bulk_actions.close_topics.optional"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,"textarea"],[24,1,"bulk-close-note"],[4,[32,7],["input",[30,0,["updateCloseNote"]]],null],[4,[32,8],null,null],[12],[1,[30,0,["closeNote"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,1,["allowSilent"]],[[[1," "],[10,0],[14,0,"topic-bulk-actions-options"],[12],[1,"\\n "],[10,"label"],[14,"for","topic-bulk-action-options__silent"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,9],[[24,1,"topic-bulk-action-options__silent"]],[["@type","@checked"],["checkbox",[30,0,["isSilent"]]]],null],[1,[28,[32,2],["topics.bulk.silent"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,10],[[24,0,"btn-transparent d-modal-cancel"],[24,1,"bulk-topics-cancel"]],[["@action","@label"],[[30,2],"cancel"]],null],[1,"\\n "],[8,[32,10],[[24,1,"bulk-topics-confirm"],[24,0,"btn-primary"]],[["@action","@disabled","@icon","@label"],[[30,0,["performAction"]],[30,0,["loading"]],"check","topics.bulk.confirm"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal","level"],false,["if","each","-track-array","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/bulk-topic-actions.js",scope:()=>[m.default,p.default,k.i18n,u.htmlSafe,T.default,g.default,S.default,o.on,w.default,r.Input,h.default],isStrictMode:!0}),this))()}},9177:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(75983),a=i(87353),l=i(19268),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"nLTMr7NG",block:'[[[8,[39,0],[[24,0,"change-ownership-modal"]],[["@bodyClass","@closeModal","@title","@flash","@flashType"],["change-ownership",[30,1],[28,[37,1],["topic.change_owner.title"],null],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,1],[[52,[30,0,["selectedPostsUsername"]],"topic.change_owner.instructions","topic.change_owner.instructions_without_old_user"]],[["count","old_user"],[[30,0,["selectedPostsCount"]],[30,0,["selectedPostsUsername"]]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[13],[1,"\\n "],[8,[39,8],null,[["@value","@autofocus","@onChange","@options"],[[30,0,["newOwner"]],true,[30,0,["updateNewOwner"]],[28,[37,9],null,[["maximum","filterPlaceholder"],[1,"topic.change_owner.placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"],[4,[38,12],["click",[30,0,["changeOwnershipOfPosts"]]],null]],[["@disabled","@label"],[[30,0,["buttonDisabled"]],[52,[30,0,["saving"]],"saving","topic.change_owner.action"]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","span","html-safe","if","form","label","email-group-user-chooser","hash",":footer","d-button","on"]]',moduleName:"discourse/components/modal/change-owner.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #i=(()=>dt7948.g(this.prototype,"newOwner",[n.tracked],function(){return null}))();#iI=(()=>void dt7948.i(this,"newOwner"))();static #s=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();get buttonDisabled(){return this.saving||(0,o.isEmpty)(this.newOwner)}get selectedPostsUsername(){return this.args.model.selectedPostsUsername}get selectedPostIds(){return this.args.model.selectedPostIds}get selectedPostsCount(){return this.args.model.selectedPostsCount}async changeOwnershipOfPosts(){this.saving=!0;let e={post_ids:this.selectedPostIds,username:this.newOwner};try{await l.default.changeOwners(this.args.model.topic.id,e),this.args.closeModal(),this.args.model.deselectAll(),this.args.model.multiSelect&&this.args.model.toggleMultiSelect(),a.default.routeTo(this.args.model.topic.url)}catch{this.flash=(0,c.i18n)("topic.change_owner.error"),this.saving=!1}return!1}static #l=(()=>dt7948.n(this.prototype,"changeOwnershipOfPosts",[r.action]))();async updateNewOwner(e){this.newOwner=e.firstObject}static #c=(()=>dt7948.n(this.prototype,"updateNewOwner",[r.action]))()}(0,d.setComponentTemplate)(u,p)},97207:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(83133),c=i(75983),u=i(18638),d=i(1453),p=i(38108),h=i(48137),m=i(843),g=i(53653),f=i(85671);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"post",[n.tracked],function(){return this.args.model.post}))();#iN=(()=>void dt7948.i(this,"post"))();static #s=(()=>dt7948.g(this.prototype,"notice",[n.tracked],function(){return this.args.model.post.notice?.raw??""}))();#iO=(()=>void dt7948.i(this,"notice"))();static #l=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();resolve=this.args.model.resolve;reject=this.args.model.reject;get disabled(){return this.saving||(0,c.isEmpty)(this.notice)||this.notice===this.post.notice?.raw}saveNotice(){this.setNotice(this.notice)}static #c=(()=>dt7948.n(this.prototype,"saveNotice",[a.action]))();deleteNotice(){this.setNotice()}static #u=(()=>dt7948.n(this.prototype,"deleteNotice",[a.action]))();setNotice(e){let{resolve:t,reject:i}=this;this.saving=!0,this.resolve=null,this.reject=null,this.post.updatePostField("notice",e).then(t=>{if(e)return t.cooked_notice}).then(t=>{this.post.set("notice",t?{type:"custom",raw:e,cooked:t.toString()}:null),this.post.set("noticeCreatedByUser",this.currentUser)}).then(t,i).finally(()=>this.args.closeModal())}static #d=(()=>dt7948.n(this.prototype,"setNotice",[a.action]))();static #p=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"Z3b3bsyH",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"change-post-notice-modal"]],[["@title","@closeModal"],[[52,[30,1,["post","notice"]],[28,[32,1],["post.controls.change_post_notice"],null],[28,[32,1],["post.controls.add_post_notice"],null]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[12],[1,"\\n "],[11,"textarea"],[16,2,[30,0,["notice"]]],[4,[32,2],["input",[28,[32,3],[[28,[32,4],[[28,[31,1],[[30,0,["notice"]]],null]],null]],null]],null],[12],[13],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,5],[[24,0,"btn-primary"]],[["@label","@action","@disabled"],[[52,[30,0,["saving"]],"saving","save"],[28,[32,4],[[30,0,["setNotice"]],[30,0,["notice"]]],null],[30,0,["disabled"]]]],null],[1,"\\n"],[41,[30,1,["post","notice"]],[[[1," "],[8,[32,5],[[24,0,"btn-danger"]],[["@label","@action","@disabled"],["post.controls.delete_post_notice",[30,0,["setNotice"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,6],null,[["@close"],[[30,2]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/change-post-notice.js",scope:()=>[d.default,m.i18n,o.on,h.default,r.fn,u.default,p.default],isStrictMode:!0}),this))()}},78703:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(75983),l=i(87353),c=i(19268),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"UYyHshxo",block:'[[[8,[39,0],null,[["@bodyClass","@closeModal","@flash","@title"],["change-timestamp",[30,1],[30,0,["flash"]],[28,[37,1],["topic.change_timestamp.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.change_timestamp.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[15,0,[29,["alert alert-error ",[52,[51,[30,0,["validTimestamp"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,1],["topic.change_timestamp.invalid_timestamp"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,6],null,[["@value","@containerId","@onSelect"],[[28,[37,7],[[30,0,["date"]]],null],"date-container",[28,[37,8],[[28,[37,9],[[30,0,["date"]]],null]],null]]],null],[1,"\\n "],[8,[39,10],null,[["@type","@value"],["time",[30,0,["time"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"date-container"],[12],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,13],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["changeTimestamp"]],[52,[30,0,["saving"]],"saving","topic.change_timestamp.action"]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","p","unless","form","date-picker-past","readonly","fn","mut","input","div",":footer","d-button","if"]]',moduleName:"discourse/components/modal/change-timestamp.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #i=(()=>dt7948.g(this.prototype,"date",[n.tracked],function(){return moment().format("YYYY-MM-DD")}))();#iL=(()=>void dt7948.i(this,"date"))();static #s=(()=>dt7948.g(this.prototype,"time",[n.tracked]))();#iR=(()=>void dt7948.i(this,"time"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();get createdAt(){return moment(`${this.date} ${this.time}`,"YYYY-MM-DD HH:mm:ss")}get validTimestamp(){return 0>moment().diff(this.createdAt,"minutes")}get buttonDisabled(){return this.saving||this.validTimestamp||(0,a.isEmpty)(this.date)}async changeTimestamp(){this.saving=!0;try{await c.default.changeTimestamp(this.args.model.topic.id,this.createdAt.unix()),this.args.closeModal(),(0,o.next)(()=>l.default.routeTo(this.args.model.topic.url))}catch{this.flash=(0,u.i18n)("topic.change_timestamp.error")}finally{this.saving=!1}}static #c=(()=>dt7948.n(this.prototype,"changeTimestamp",[r.action]))()}(0,p.setComponentTemplate)(d,h)},42400:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(88355);let l=(0,i(85671).createTemplateFactory)({id:"gaTB2bbf",block:'[[[8,[39,0],[[24,0,"convert-to-public-topic"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.make_public.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,1],["topic.make_public.choose_category"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,4],null,[["@value","@onChange"],[[30,0,["publicCategoryId"]],[28,[37,5],[[28,[37,6],[[30,0,["publicCategoryId"]]],null]],null]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["makePublic"]],"composer.modal_ok",[30,0,["saving"]]]],null],[1,"\\n "],[8,[39,8],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","category-chooser","fn","mut",":footer","d-button"]]',moduleName:"discourse/components/modal/convert-to-public-topic.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"publicCategoryId",[n.tracked]))();#iU=(()=>void dt7948.i(this,"publicCategoryId"))();static #s=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();async makePublic(){let{topic:e}=this.args.model;try{this.saving=!0,await e.convertTopic("public",{categoryId:this.publicCategoryId}),e.set("archetype","regular"),e.set("category_id",this.publicCategoryId),this.appEvents.trigger("header:show-topic",e),this.args.closeModal()}catch(e){this.flash=(0,a.extractError)(e)}finally{this.saving=!1}}static #c=(()=>dt7948.n(this.prototype,"makePublic",[r.action]))()}(0,c.setComponentTemplate)(l,u)},63823:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>D});var s=i(8554),n=i(62459),r=i(53653),o=i(35533),a=i(4959),l=i(30574),c=i(83133),u=i(75983),d=i(42064),p=i(24571),h=i(6864),m=i(82805),g=i(61004),f=i(46301),_=i(63748),y=i(80706),b=i(87353),w=i(42236),k=i(91004),T=i(4054),S=i(13231),C=i(81386),x=i(59864),A=i(843);let E=(0,i(85671).createTemplateFactory)({id:"73X1d5Tf",block:'[[[8,[39,0],[[24,0,"create-account -large"],[24,"aria-labelledby","create-account-title"],[4,[38,1],["keydown",[30,0,["actionOnEnter"]]],null],[4,[38,1],["click",[30,0,["selectKitFocus"]]],null]],[["@closeModal","@bodyClass","@flash","@flashType"],[[30,1],[30,0,["modalBodyClasses"]],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],[[52,[30,0,["site","desktopView"]],"login-left-side"],[30,0,["model","authOptions","auth_provider"]]],null]],[12],[1,"\\n "],[8,[39,7],null,[["@step"],["signup"]],null],[1,"\\n "],[8,[39,8],[[24,1,"create-account-title"]],[["@header"],[[28,[37,9],["create_account.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-header-bottom",[28,[37,10],null,[["showLogin"],[[28,[37,11],["showLogin"],null]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showCreateForm"]],[[[1," "],[10,"form"],[14,1,"login-form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,14],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n "],[8,[39,15],[[16,"disabled",[30,0,["emailDisabled"]]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation account-email-validation-more-info"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[24,3,"email"],[24,1,"new-account-email"],[16,0,[28,[37,16],[[30,0,["model","accountEmail"]]],null]],[4,[38,1],["focusout",[30,0,["checkEmailAvailability"]]],null],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["model","accountEmail"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,9],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showEmailValidation"]],[[[1," "],[8,[39,18],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"account-email-validation-more-info"],[12],[1,"\\n"],[41,[30,0,["siteSettings","show_signup_form_email_instructions"]],[[[1," "],[1,[28,[35,9],["user.email.instructions"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["accountUsername"]]],[16,"disabled",[30,0,["usernameDisabled"]]],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation username-validation-more-info"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"],[24,3,"username"],[24,1,"new-account-username"],[16,0,[28,[37,16],[[30,0,["accountUsername"]]],null]],[24,4,"text"],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,1],["input",[30,0,["setAccountUsername"]]],null],[12],[13],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,9],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showUsernameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"username-validation-more-info"],[12],[1,"\\n "],[1,[28,[35,9],["user.username.instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,18],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[37,19],[[30,0,["showFullname"]],[30,0,["fullnameRequired"]]],null],[[[1," "],[8,[39,20],[[24,0,"input-group create-account__fullname required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["model","accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["model","authOptions"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1," "],[8,[39,21],[[24,"autocomplete","current-password"],[24,"aria-describedby","password-validation password-validation-more-info"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]],[24,1,"new-account-password"],[16,0,[28,[37,16],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,1],["focusout",[30,0,["togglePasswordValidation"]]],null],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,9],["user.password.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,22],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,18],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","show_signup_form_password_instructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"password-validation-more-info"],[12],[1,"\\n "],[1,[30,0,["passwordInstructions"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[10,0],[15,0,[28,[37,5],["caps-lock-warning",[52,[51,[30,0,["capsLockOn"]]],"hidden"]],null]],[12],[1,"\\n "],[1,[28,[35,24],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,9],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,"\\n "],[1,[28,[35,9],["user.password_confirmation.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,25],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n "],[8,[39,15],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1," "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n "],[8,[39,15],[[24,1,"inviteCode"],[16,0,[28,[37,16],[[30,0,["inviteCode"]]],null]],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,"\\n "],[1,[28,[35,9],["user.invite_code.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"more-info"],[12],[1,"\\n "],[1,[28,[35,9],["user.invite_code.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[28,[37,19],[[30,0,["showFullname"]],[28,[37,26],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,20],[[24,0,"input-group create-account__fullname"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,28],[[28,[37,28],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,29],[[16,0,[28,[37,16],[[30,2,["value"]]],null]],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value","@validation"],[[30,2,["field"]],[30,2,["value"]],[30,2,["validation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-after-user-fields",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[8,[39,30],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["model","skipConfirmation"]],[[[1," "],[1,[28,[35,31],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"login-or-separator"],[12],[10,1],[12],[1,"\\n "],[1,[28,[35,9],["login.or"],null]],[13],[13]],[]],null],[1,"\\n "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,32],null,[["@externalLogin","@context"],[[30,0,["externalLogin"]],"create-account"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[28,[37,19],[[30,0,["showCreateForm"]],[30,0,["site","mobileView"]]],null],[[[1," "],[8,[39,30],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","f"],false,["d-modal","on",":body","plugin-outlet","div","concat-class","if","signup-progress-bar","welcome-header","i18n","hash","route-action","form","span","html-safe","input","value-entered","label","input-tip","and","fullname-input","password-field","toggle-password-mask","unless","d-icon","honeypot-input","not","each","-track-array","user-field","signup-page-cta","loading-spinner","login-buttons",":footer"]]',moduleName:"discourse/components/modal/create-account.hbs",isStrictMode:!1});class D extends r.default.extend(k.default,S.default,T.default){static #e=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"login",[c.service]))();#t2=(()=>void dt7948.i(this,"login"))();static #l=(()=>dt7948.g(this.prototype,"isDeveloper",[s.tracked],function(){return!1}))();#ij=(()=>void dt7948.i(this,"isDeveloper"))();static #c=(()=>dt7948.g(this.prototype,"accountUsername",[s.tracked],function(){return this.model.accountUsername}))();#iB=(()=>void dt7948.i(this,"accountUsername"))();accountChallenge=0;accountHoneypot=0;formSubmitted=!1;rejectedEmails=(()=>(0,n.A)())();prefilledUsername=null;userFields=null;maskPassword=!0;passwordValidationVisible=!1;emailValidationVisible=!1;nameValidationHelper=(()=>new y.default(this))();static #u=(()=>dt7948.g(this.prototype,"hasAuthOptions",[(0,l.notEmpty)("model.authOptions")]))();#i$=(()=>void dt7948.i(this,"hasAuthOptions"))();static #d=(()=>dt7948.g(this.prototype,"canCreateLocal",[(0,m.setting)("enable_local_logins")]))();#iq=(()=>void dt7948.i(this,"canCreateLocal"))();static #p=(()=>dt7948.g(this.prototype,"requireInviteCode",[(0,m.setting)("require_invite_code")]))();#iV=(()=>void dt7948.i(this,"requireInviteCode"))();static #h=(()=>dt7948.g(this.prototype,"accountName",[(0,l.alias)("model.accountName")]))();#iH=(()=>void dt7948.i(this,"accountName"))();static #m=(()=>dt7948.g(this.prototype,"authOptions",[(0,l.alias)("model.authOptions")]))();#iz=(()=>void dt7948.i(this,"authOptions"))();static #g=(()=>dt7948.g(this.prototype,"accountEmail",[(0,l.alias)("model.accountEmail")]))();#iW=(()=>void dt7948.i(this,"accountEmail"))();init(){super.init(...arguments),(0,g.default)("email")&&this.set("model.accountEmail",(0,g.default)("email")),this.fetchConfirmationValue(),this.model.skipConfirmation&&this.performAccountCreation().finally(()=>this.set("model.skipConfirmation",!1))}setAccountUsername(e){this.accountUsername=e.target.value}static #A=(()=>dt7948.n(this.prototype,"setAccountUsername",[o.action]))();get nameTitle(){return this.nameValidationHelper.nameTitle}get nameValidation(){return this.nameValidationHelper.nameValidation}get forceValidationReason(){return this.nameValidationHelper.forceValidationReason}static #E=(()=>dt7948.n(this.prototype,"forceValidationReason",[a.dependentKeyCompat]))();actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}static #D=(()=>dt7948.n(this.prototype,"actionOnEnter",[_.bind]))();selectKitFocus(e){let t=document.getElementById(e.target.getAttribute("for"));t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())}static #P=(()=>dt7948.n(this.prototype,"selectKitFocus",[_.bind]))();showCreateForm(e,t,i){return(e||t)&&!i}static #Q=(()=>dt7948.n(this.prototype,"showCreateForm",[(0,_.default)("hasAuthOptions","canCreateLocal","model.skipConfirmation")]))();showExternalLoginButtons(e,t){return e&&!t}static #J=(()=>dt7948.n(this.prototype,"showExternalLoginButtons",[(0,_.default)("site.desktopView","hasAuthOptions")]))();submitDisabled(){return this.formSubmitted}static #X=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,_.default)("formSubmitted")]))();modalBodyClasses(e,t,i){let s=[];return e&&s.push("has-user-fields"),t&&!i&&s.push("has-alt-auth"),this.canCreateLocal||s.push("no-local-logins"),s.join(" ")}static #Z=(()=>dt7948.n(this.prototype,"modalBodyClasses",[(0,_.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions")]))();usernameDisabled(e,t){return e&&!t}static #ee=(()=>dt7948.n(this.prototype,"usernameDisabled",[(0,_.default)("model.authOptions","model.authOptions.can_edit_username")]))();nameDisabled(e,t){return e&&!t}static #et=(()=>dt7948.n(this.prototype,"nameDisabled",[(0,_.default)("model.authOptions","model.authOptions.can_edit_name")]))();showFullname(){return this.site.full_name_visible_in_signup}static #ei=(()=>dt7948.n(this.prototype,"showFullname",[_.default]))();fullnameRequired(){return this.site.full_name_required_for_signup}static #es=(()=>dt7948.n(this.prototype,"fullnameRequired",[_.default]))();showEmailValidation(e,t,i){return e||t&&i}static #en=(()=>dt7948.n(this.prototype,"showEmailValidation",[(0,_.default)("emailValidation.ok","emailValidation.reason","emailValidationVisible")]))();showPasswordValidation(e,t,i){return e||t&&i}static #er=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,_.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();showUsernameInstructions(e){return this.siteSettings.show_signup_form_username_instructions&&!e}static #eo=(()=>dt7948.n(this.prototype,"showUsernameInstructions",[(0,_.default)("usernameValidation.reason")]))();passwordRequired(e){return(0,u.isEmpty)(e)}static #ea=(()=>dt7948.n(this.prototype,"passwordRequired",[(0,_.default)("model.authOptions.auth_provider")]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,A.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #el=(()=>dt7948.n(this.prototype,"disclaimerHtml",[_.default]))();emailValidation(e,t,i,s,n){let r={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===i&&t?t:(0,u.isEmpty)(i)?o.default.create(Object.assign(r,{message:(0,A.i18n)("user.email.required"),reason:n?(0,A.i18n)("user.email.required"):null})):s.includes(i)||!(0,w.emailValid)(i)?o.default.create(Object.assign(r,{reason:(0,A.i18n)("user.email.invalid")})):this.get("model.authOptions.email")===i&&this.get("model.authOptions.email_valid")?o.default.create({ok:!0,reason:(0,A.i18n)("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("model.authOptions.auth_provider"))})}):o.default.create({ok:!0,reason:(0,A.i18n)("user.email.ok")})}static #ec=(()=>dt7948.n(this.prototype,"emailValidation",[(0,_.default)("serverAccountEmail","serverEmailValidation","model.accountEmail","rejectedEmails.[]","forceValidationReason")]))();togglePasswordValidation(){this.set("passwordValidationVisible",!!this.passwordValidation.reason)}static #eu=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[o.action]))();checkEmailAvailability(){if(this.set("emailValidationVisible",!!this.emailValidation.reason),this.emailValidation.ok&&this.serverAccountEmail!==this.model.accountEmail)return x.default.checkEmail(this.model.accountEmail).then(e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:o.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:o.default.create({ok:!0,reason:(0,A.i18n)("user.email.ok")})}))}).catch(()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})})}static #ed=(()=>dt7948.n(this.prototype,"checkEmailAvailability",[o.action]))();emailDisabled(){return this.get("model.authOptions.email")===this.model.accountEmail&&this.get("model.authOptions.email_valid")}static #ep=(()=>dt7948.n(this.prototype,"emailDisabled",[(0,_.default)("model.accountEmail","model.authOptions.email","model.authOptions.email_valid")]))();authProviderDisplayName(e){let t=(0,C.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.accountUsername===this.prefilledUsername&&(this.accountUsername=""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,u.isEmpty)(this.accountUsername)||this.get("model.authOptions.email"))&&(0,f.default)(this,this.fetchExistingUsername,500)}static #eh=(()=>dt7948.n(this.prototype,"prefillUsername",[(0,d.observes)("emailValidation","model.accountEmail")]))();hasAtLeastOneLoginButton(){return(0,C.findAll)().length>0}static #iK=(()=>dt7948.n(this.prototype,"hasAtLeastOneLoginButton",[_.default]))();fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,h.ajax)("/session/hp.json").then(e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))}).finally(()=>this._hpPromise=void 0)),this._hpPromise}performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then(()=>this.performAccountCreation());let e={accountName:this.model.accountName,accountEmail:this.model.accountEmail,accountPassword:this.accountPassword,accountUsername:this.accountUsername,accountChallenge:this.accountChallenge,inviteCode:this.inviteCode,accountPasswordConfirm:this.accountHoneypot},t=this.get("model.authOptions.destination_url");return(0,u.isEmpty)(t)||(0,g.default)("destination_url",t,{path:"/"}),(0,u.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach(t=>e.userFields[t.get("field.id")]=t.get("value"))),this.set("formSubmitted",!0),x.default.createAccount(e).then(t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.isDeveloper=!1,t.success){this._challengeExpiry=1;let t=document.querySelector("#hidden-login-form");return t&&(t.querySelector("input[name=username]").value=e.accountUsername,t.querySelector("input[name=password]").value=e.accountPassword,t.querySelector("input[name=redirect]").value=(0,b.userPath)("account-created"),t.submit()),new p.Promise(()=>{})}this.set("flash",t.message||(0,A.i18n)("create_account.failed")),t.is_developer&&(this.isDeveloper=!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors?.["user_password.password"]?.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url")}},()=>(this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url"),this.set("flash",(0,A.i18n)("create_account.failed"))))}associateHtml(e,t){if(e)return(0,A.i18n)("create_account.associate",{associate_link:e,provider:(0,A.i18n)(`login.${t}.name`)})}static #iG=(()=>dt7948.n(this.prototype,"associateHtml",[(0,_.default)("model.authOptions.associate_url","model.authOptions.auth_provider")]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #iY=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[o.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #iQ=(()=>dt7948.n(this.prototype,"togglePasswordMask",[o.action]))();externalLogin(e){this.login.externalLogin(e,{signup:!0})}static #iJ=(()=>dt7948.n(this.prototype,"externalLogin",[o.action]))();createAccount(){this.set("flash",""),this.nameValidationHelper.forceValidationReason=!0,this.set("emailValidationVisible",!0),this.set("passwordValidationVisible",!0);let e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find(e=>e.failed);if(e){let t=e.element;t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus());return}this.nameValidationHelper.forceValidationReason=!1,this.performAccountCreation()}static #iX=(()=>dt7948.n(this.prototype,"createAccount",[o.action]))()}(0,r.setComponentTemplate)(E,D)},94482:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"0+NYBnG4",block:'[[[8,[39,0],null,[["@autoFindInput"],[false]],[["default"],[[[[1,"\\n "],[8,[39,1],[[24,0,"create-invite-bulk-modal -large"]],[["@title","@closeModal"],[[28,[37,2],["user.invited.bulk_invite.text"],null],[30,3]]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["uploaded"]],[[[1," "],[1,[28,[35,2],["user.invited.bulk_invite.success"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],[[28,[37,2],["user.invited.bulk_invite.instructions"],null]],null]],[1,"\\n "],[11,"input"],[24,1,"csv-file"],[16,"disabled",[30,1,["uploading"]]],[24,"accept",".csv"],[24,4,"file"],[4,[38,7],[[30,2]],null],[12],[13],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[51,[30,1,["uploaded"]]],[[[1," "],[8,[39,10],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action","@disabled"],["link",[52,[30,1,["uploading"]],[28,[37,2],["user.invited.bulk_invite.progress"],[["progress"],[[30,1,["uploadProgress"]]]]],[28,[37,2],["user.invited.bulk_invite.text"],null]],[30,1,["startUpload"]],[30,1,["submitDisabled"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],[[24,0,"btn-primary"]],[["@label","@action"],["close",[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[1,2]]]]]],["uploader","setElement","@closeModal"],false,["create-invite-uploader","d-modal","i18n",":body","if","html-safe","input","did-insert",":footer","unless","d-button"]]',moduleName:"discourse/components/modal/create-invite-bulk.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"create-invite-bulk"))},70841:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>F});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(83133),c=i(42256),u=i(81329),d=i(63837),p=i(18638),h=i(1453),m=i(15447),g=i(92076),f=i(88355),_=i(65460),y=i(50409),b=i(1799),w=i(42236),k=i(6856),T=i(25506),S=i(843),C=i(9105),x=i(4199),A=i(99439),E=i(53653),D=i(85671),P=i(73306);let M=(0,i(38168).A)(i(8554)).cached;class F extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #u=(()=>dt7948.g(this.prototype,"displayAdvancedOptions",[n.tracked],function(){return!1}))();#iZ=(()=>void dt7948.i(this,"displayAdvancedOptions"))();static #d=(()=>dt7948.g(this.prototype,"isEmailInvite",[n.tracked],function(){return(0,w.emailValid)(this.data.restrictTo)}))();#i1=(()=>void dt7948.i(this,"isEmailInvite"))();static #p=(()=>dt7948.g(this.prototype,"flashText",[n.tracked]))();#i0=(()=>void dt7948.i(this,"flashText"))();static #h=(()=>dt7948.g(this.prototype,"flashClass",[n.tracked],function(){return"info"}))();#i3=(()=>void dt7948.i(this,"flashClass"))();static #m=(()=>dt7948.g(this.prototype,"topics",[n.tracked],function(){return this.invite.topics??this.model.topics??[]}))();#z=(()=>void dt7948.i(this,"topics"))();static #g=(()=>dt7948.g(this.prototype,"allGroups",[n.tracked]))();#i8=(()=>void dt7948.i(this,"allGroups"))();model=this.args.model;invite=(()=>this.model.invite??T.default.create())();sendEmail=!1;formApi;constructor(){super(...arguments),k.default.findAll().then(e=>{this.allGroups=e.filter(e=>!e.automatic)})}get linkValidityMessageFormat(){return S.default.messageFormat("user.invited.invite.link_validity_MF",{user_count:this.defaultRedemptionsAllowed,duration_days:this.siteSettings.invite_expiry_days})}get expireAfterOptions(){let e=[1,7,30,90];return e.includes(this.siteSettings.invite_expiry_days)||e.push(this.siteSettings.invite_expiry_days),(e=e.sort((e,t)=>e-t).map(e=>({value:e,text:(0,S.i18n)("dates.medium.x_days",{count:e})}))).push({value:999999,text:(0,S.i18n)("time_shortcut.never")}),e}get data(){let e={restrictTo:this.invite.emailOrDomain??"",maxRedemptions:this.invite.max_redemptions_allowed??this.defaultRedemptionsAllowed,inviteToTopic:this.invite.topicId,inviteToGroups:this.model.groupIds??this.invite.groupIds??[],customMessage:this.invite.custom_message??""};return this.inviteCreated?e.expiresAt=this.invite.expires_at:e.expiresAfterDays=this.siteSettings.invite_expiry_days,e}static #A=(()=>dt7948.n(this.prototype,"data",[M]))();async save(e){let t=!0;e.emailOrDomain&&(this.isEmailInvite?(t=!1,e.email=e.emailOrDomain):(0,w.hostnameValid)(e.emailOrDomain)&&(e.domain=e.emailOrDomain),delete e.emailOrDomain),t?this.invite.email&&(e.email=e.custom_message=""):(e.max_redemptions_allowed>1&&(e.max_redemptions_allowed=1),this.sendEmail?(e.send_email=!0,e.topic_id&&(e.invite_to_topic=!0)):e.skip_email=!0),this.saving=!0;try{await this.invite.save(e);let t=this.model?.invites;t&&!t.some(e=>e.id===this.invite.id)&&t.unshiftObject(this.invite),this.simpleMode||(this.sendEmail?this.flashText=(0,y.sanitize)((0,S.i18n)("user.invited.invite.invite_saved_with_sending_email")):this.flashText=(0,y.sanitize)((0,S.i18n)("user.invited.invite.invite_saved_without_sending_email")),this.flashClass="success")}catch(e){this.flashText=(0,y.sanitize)((0,f.extractError)(e)),this.flashClass="error"}finally{this.saving=!1}}get maxRedemptionsAllowedLimit(){return this.currentUser.staff?this.siteSettings.invite_link_max_redemptions_limit:this.siteSettings.invite_link_max_redemptions_limit_users}get defaultRedemptionsAllowed(){return Math.min(this.maxRedemptionsAllowedLimit,this.currentUser.staff?100:10)}get canInviteToGroup(){return this.currentUser.staff||this.currentUser.groups.some(e=>e.group_user?.owner)}get canArriveAtTopic(){return this.currentUser.staff&&!this.siteSettings.must_approve_users}get simpleMode(){return!this.args.model.editing&&!this.displayAdvancedOptions}get inviteCreated(){return!!this.invite.get("id")}handleRestrictToChange(e,t){let{set:i}=t;i("restrictTo",e),this.isEmailInvite=(0,w.emailValid)(e)}static #E=(()=>dt7948.n(this.prototype,"handleRestrictToChange",[a.action]))();async onFormSubmit(e){let t={emailOrDomain:e.restrictTo?.trim(),group_ids:e.inviteToGroups,topic_id:e.inviteToTopic,max_redemptions_allowed:e.maxRedemptions,custom_message:e.customMessage};e.expiresAt?t.expires_at=e.expiresAt:e.expiresAfterDays&&(t.expires_at=moment().add(e.expiresAfterDays,"days").format(C.FORMAT)),await this.save(t)}static #D=(()=>dt7948.n(this.prototype,"onFormSubmit",[a.action]))();saveInvite(){this.sendEmail=!1,this.formApi.submit()}static #P=(()=>dt7948.n(this.prototype,"saveInvite",[a.action]))();saveInviteAndSendEmail(){this.sendEmail=!0,this.formApi.submit()}static #Q=(()=>dt7948.n(this.prototype,"saveInviteAndSendEmail",[a.action]))();onChangeTopic(e,t,i){this.topics=[i],e(t)}static #J=(()=>dt7948.n(this.prototype,"onChangeTopic",[a.action]))();showAdvancedMode(e){this.displayAdvancedOptions=!0,e.preventDefault(),e.stopPropagation()}static #X=(()=>dt7948.n(this.prototype,"showAdvancedMode",[a.action]))();async createLink(){this.sendEmail=!1;let e=(0,b.applyValueTransformer)("invite-simple-mode-topic",null,{invite:this.invite});await this.save({max_redemptions_allowed:this.defaultRedemptionsAllowed,expires_at:moment().add(this.siteSettings.invite_expiry_days,"days").format(C.FORMAT),...null!=e&&{topic_id:e}})}static #Z=(()=>dt7948.n(this.prototype,"createLink",[a.action]))();cancel(){this.args.closeModal()}static #ee=(()=>dt7948.n(this.prototype,"cancel",[a.action]))();registerApi(e){this.formApi=e}static #et=(()=>dt7948.n(this.prototype,"registerApi",[a.action]))();static #ei=(()=>(0,E.setComponentTemplate)((0,D.createTemplateFactory)({id:"aVSRl3F5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"create-invite-modal"]],[["@title","@closeModal","@hideFooter","@inline"],[[28,[32,1],[[52,[30,1,["editing"]],"user.invited.invite.edit_title","user.invited.invite.new_title"]],null],[30,2],[28,[32,2],[[30,0,["simpleMode"]],[30,0,["inviteCreated"]]],null],[30,3]]],[["belowHeader","body","footer"],[[[[1,"\\n"],[41,[28,[32,3],[[30,0,["flashText"]],[30,1,["editing"]]],null],[[[1," "],[8,[32,4],null,[["@invite","@alertClass","@showInviteLink"],[[30,0,["invite"]],[30,0,["flashClass"]],[28,[32,2],[[30,0,["inviteCreated"]],[28,[32,5],[[30,0,["flashClass"]],"error"],null]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["flashText"]],[[[1," "],[1,[28,[32,6],[[30,0,["flashText"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["user.invited.invite.copy_link_and_share_it"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["simpleMode"]],[[[41,[30,0,["inviteCreated"]],[[[41,[51,[30,0,["site","mobileView"]]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,1],["user.invited.invite.copy_link_and_share_it"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[32,7],null,[["@invite"],[[30,0,["invite"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,1],["user.invited.invite.create_link_to_invite"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[14,0,"link-limits-info"],[12],[1,"\\n "],[1,[30,0,["linkValidityMessageFormat"]]],[1,"\\n "],[11,3],[24,0,"edit-link-options"],[24,"role","button"],[24,"tabindex","0"],[4,[32,8],["click",[30,0,["showAdvancedMode"]]],null],[4,[32,8],["keydown",[30,0,["showAdvancedMode"]]],null],[12],[1,[28,[32,1],["user.invited.invite.edit_link_options"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,9],null,[["@data","@onSubmit","@onRegisterApi"],[[30,0,["data"]],[30,0,["onFormSubmit"]],[30,0,["registerApi"]]]],[["default"],[[[[1,"\\n "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@onSet"],["restrictTo",[28,[32,1],["user.invited.invite.restrict"],null],"large",[30,0,["handleRestrictToChange"]]]],[["default"],[[[[1,"\\n "],[8,[30,5,["Input"]],[[16,"placeholder",[28,[32,1],["user.invited.invite.email_or_domain_placeholder"],null]]],null,null],[1,"\\n "]],[5]]]]],[1,"\\n\\n"],[41,[51,[30,0,["isEmailInvite"]]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@type","@format","@validation"],["maxRedemptions",[28,[32,1],["user.invited.invite.max_redemptions_allowed"],null],"number","small","required"]],[["default"],[[[[1,"\\n "],[8,[30,6,["Input"]],[[24,"min","1"],[16,"max",[30,0,["maxRedemptionsAllowedLimit"]]],[24,4,"number"]],null,null],[1,"\\n "]],[6]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["inviteCreated"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@validation"],["expiresAt",[28,[32,1],["user.invited.invite.expires_at"],null],"large","required"]],[["default"],[[[[1,"\\n "],[8,[30,7,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,10],null,[["@clearable","@input","@noRelativeOptions","@onChangeInput"],[true,[30,7,["value"]],true,[30,7,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[7]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@validation"],["expiresAfterDays",[28,[32,1],["user.invited.invite.expires_after"],null],"large","required"]],[["default"],[[[[1,"\\n "],[8,[30,8,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["expireAfterOptions"]]],null]],null],null,[[[1," "],[8,[30,9,["Option"]],null,[["@value"],[[30,10,["value"]]]],[["default"],[[[[1,[30,10,["text"]]]],[]]]]],[1,"\\n"]],[10]],null],[1," "]],[9]]]]],[1,"\\n "]],[8]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["canArriveAtTopic"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["inviteToTopic",[28,[32,1],["user.invited.invite.invite_to_topic"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,11,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,11],null,[["@value","@content","@onChange","@options"],[[30,11,["value"]],[30,0,["topics"]],[28,[32,12],[[30,0,["onChangeTopic"]],[30,11,["set"]]],null],[28,[32,13],null,[["additionalFilters"],["status:public"]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[11]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canInviteToGroup"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["inviteToGroups",[28,[32,1],["user.invited.invite.add_to_groups"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,12,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,14],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,12,["value"]],"name",[30,12,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[12]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isEmailInvite"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["customMessage",[28,[32,1],["user.invited.invite.custom_message"],null],"full"]],[["default"],[[[[1,"\\n "],[8,[30,13,["Textarea"]],[[16,"height",100],[16,"placeholder",[28,[32,1],["user.invited.invite.custom_message_placeholder"],null]]],null,null],[1,"\\n "]],[13]]]]],[1,"\\n"]],[]],null],[1," "]],[4]]]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["simpleMode"]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite"],[24,"autofocus","true"]],[["@label","@action","@disabled"],["user.invited.invite.create_link",[30,0,["createLink"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite"]],[["@label","@action","@disabled"],[[52,[30,0,["inviteCreated"]],"user.invited.invite.update_invite","user.invited.invite.create_link"],[30,0,["saveInvite"]],[30,0,["saving"]]]],null],[1,"\\n"],[41,[30,0,["isEmailInvite"]],[[[1," "],[8,[32,15],[[24,"autofocus","true"],[24,0,"btn-primary save-invite-and-send-email"]],[["@label","@action","@disabled"],[[52,[30,0,["inviteCreated"]],"user.invited.invite.update_invite_and_send_email","user.invited.invite.create_link_and_send_email"],[30,0,["saveInviteAndSendEmail"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[8,[32,15],[[24,0,"btn-transparent cancel-button"]],[["@label","@action"],["user.invited.invite.cancel",[30,0,["cancel"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal","@inline","form","field","field","field","field","select","option","field","field","field"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[h.default,S.i18n,u.and,u.or,I,u.notEq,c.htmlSafe,N,o.on,m.default,g.default,A.default,r.fn,r.hash,x.default,p.default],isStrictMode:!0}),this))()}let I=(0,E.setComponentTemplate)((0,D.createTemplateFactory)({id:"V7fnDNr2",block:'[[[1,"\\n "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[29,["alert alert-",[30,1]]]],[12],[1,"\\n "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[32,0],null,[["@invite"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@alertClass","@showInviteLink","@invite","&default"],false,["yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[N],isStrictMode:!0}),(0,P.default)(void 0,"create-invite:InviteModalAlert"));class N extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();async nativeShare(){await (0,_.nativeShare)(this.capabilities,{url:this.args.invite.link})}static #i=(()=>dt7948.n(this.prototype,"nativeShare",[a.action]))();static #s=(()=>(0,E.setComponentTemplate)((0,D.createTemplateFactory)({id:"yxPGvtZc",block:'[[[1,"\\n "],[10,"input"],[14,3,"invite-link"],[14,0,"invite-link"],[15,2,[30,1,["link"]]],[15,"readonly",true],[14,4,"text"],[12],[13],[1,"\\n"],[41,[28,[32,0],[[30,0,["capabilities"]]],null],[[[1," "],[8,[32,1],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action"],["share",[28,[32,2],["user.invited.invite.share_link"],null],[30,0,["nativeShare"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,3],null,[["@selector","@translatedLabel","@translatedLabelAfterCopy"],["input.invite-link",[28,[32,2],["user.invited.invite.copy_link"],null],[28,[32,2],["user.invited.invite.link_copied"],null]]],null],[1,"\\n"]],[]]],[1," "]],["@invite"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[_.canNativeShare,p.default,S.i18n,d.default],isStrictMode:!0}),this))()}},6984:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(88355),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"d5rlLfnC",block:'[[[8,[39,0],[[24,0,"customize-form-template-view-modal"]],[["@title","@closeModal"],[[30,1,["name"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,3],[[24,0,"form-templates__preview-toggle"],[4,[38,4],["click",[30,0,["togglePreview"]]],null]],[["@state","@label"],[[30,0,["showPreview"]],"admin.form_templates.view_template.toggle_preview"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showPreview"]],[[[1," "],[8,[39,6],null,[["@id"],[[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@lang","@code"],["yaml",[30,1,["template"]]]],null],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["editTemplate"]],"pencil","admin.form_templates.view_template.edit"]],null],[1,"\\n "],[8,[39,10],null,[["@close"],[[30,2]]],null],[1,"\\n "],[8,[39,9],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteTemplate"]],"trash-can","admin.form_templates.view_template.delete"]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal",":body","div","d-toggle-switch","on","if","form-template-field/wrapper","highlighted-code",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/customize-form-template-view.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"showPreview",[n.tracked],function(){return!1}))();#i2=(()=>void dt7948.i(this,"showPreview"))();togglePreview(){this.showPreview=!this.showPreview}static #l=(()=>dt7948.n(this.prototype,"togglePreview",[r.action]))();editTemplate(){this.router.transitionTo("adminCustomizeFormTemplates.edit",this.args.model)}static #c=(()=>dt7948.n(this.prototype,"editTemplate",[r.action]))();deleteTemplate(){return this.dialog.yesNoConfirm({message:(0,c.i18n)("admin.form_templates.delete_confirm",{template_name:this.args.model.name}),didConfirm:()=>{(0,a.ajax)(`/admin/customize/form-templates/${this.args.model.id}.json`,{type:"DELETE"}).then(()=>{this.args.refreshModel()}).catch(l.popupAjaxError)}})}static #u=(()=>dt7948.n(this.prototype,"deleteTemplate",[r.action]))()}(0,d.setComponentTemplate)(u,p)},39299:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(35533),r=i(6864),o=i(88355);let a=(0,i(85671).createTemplateFactory)({id:"VPZRGl69",block:'[[[8,[39,0],null,[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.customize.bulk_delete"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,1],[[28,[37,3],["admin.customize.bulk_",[30,2,["type"]],"_delete_confirm"],null]],null]],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,2,["selectedThemesOrComponents"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n\\n "]],[]],[[[1,"\\n "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["delete"]],"yes_value"]],null],[1,"\\n "],[8,[39,10],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model","theme"],false,["d-modal","i18n",":body","concat","ul","each","-track-array","li",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/delete-themes-confirm.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{delete(){(0,r.ajax)("/admin/themes/bulk_destroy.json",{type:"DELETE",data:{theme_ids:this.args.model.selectedThemesOrComponents.mapBy("id")}}).then(()=>{this.args.model.refreshAfterDelete(),this.args.closeModal()}).catch(o.popupAjaxError)}static #e=(()=>dt7948.n(this.prototype,"delete",[n.action]))()}(0,l.setComponentTemplate)(a,c)},19192:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"oS/aE0Pr",block:'[[[8,[39,0],[[24,0,"delete-topic-confirm-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.actions.delete"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["post.controls.delete_topic_confirm_modal"],[["count"],[[30,0,["siteSettings","min_topic_views_for_delete_confirm"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["deleteTopic"]],[30,0,["deletingTopic"]],[52,[30,0,["deletingTopic"]],"deleting","post.controls.delete_topic_confirm_modal_yes"]]],null],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"post.controls.delete_topic_confirm_modal_no"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","p",":footer","d-button","if"]]',moduleName:"discourse/components/modal/delete-topic-confirm.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"deletingTopic",[n.tracked],function(){return!1}))();#i4=(()=>void dt7948.i(this,"deletingTopic"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();async deleteTopic(){try{this.deletingTopic=!0,await this.args.model.topic.destroy(this.currentUser),this.args.closeModal()}catch{this.flash=(0,a.i18n)("post.controls.delete_topic_error"),this.deletingTopic=!1}}static #c=(()=>dt7948.n(this.prototype,"deleteTopic",[r.action]))()}(0,c.setComponentTemplate)(l,u)},40172:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"N17C6HAU",block:'[[[8,[39,0],null,[["@closeModal"],[[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,[28,[35,3],[[28,[37,4],["post.controls.delete_topic_disallowed_modal"],null]],null]],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal",":body","p","html-safe","i18n",":footer","d-button"]]',moduleName:"discourse/components/modal/delete-topic-disallowed.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"delete-topic-disallowed"))},93003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(18638),o=i(1453),a=i(843),l=i(53653),c=i(85671);class u extends s.default{async discardDraft(){await this.args.model.onDestroyDraft(),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"discardDraft",[n.action]))();async saveDraftAndClose(){await this.args.model.onSaveDraft(),this.args.closeModal()}static #i=(()=>dt7948.n(this.prototype,"saveDraftAndClose",[n.action]))();static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"ZE94UMEG",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"discard-draft-modal --stacked"]],[["@closeModal","@hideHeader"],[[30,1],true]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"instructions"],[14,"role","heading"],[14,"aria-level","1"],[12],[1,"\\n "],[1,[28,[32,1],["post.cancel_composer.confirm"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[24,0,"btn-danger discard-draft"]],[["@icon","@label","@action"],["trash-can","post.cancel_composer.discard",[30,0,["discardDraft"]]]],null],[1,"\\n"],[41,[30,2,["showSaveDraftButton"]],[[[1," "],[8,[32,2],[[24,0,"save-draft"]],[["@label","@action"],["post.cancel_composer.save_draft",[30,0,["saveDraftAndClose"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,2],[[24,0,"keep-editing"]],[["@label","@action"],["post.cancel_composer.keep_editing",[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/discard-draft.js",scope:()=>[o.default,a.i18n,r.default],isStrictMode:!0}),this))()}},71128:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(18638),a=i(1453),l=i(4096),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"untrack",[n.tracked],function(){return!1}))();#i7=(()=>void dt7948.i(this,"untrack"))();static #i=(()=>dt7948.g(this.prototype,"dismissTopics",[n.tracked],function(){return!0}))();#i9=(()=>void dt7948.i(this,"dismissTopics"))();static #s=(()=>dt7948.g(this.prototype,"dismissPosts",[n.tracked],function(){return!0}))();#i5=(()=>void dt7948.i(this,"dismissPosts"))();constructor(){super(...arguments),"replies"===this.args.model.subset&&(this.dismissTopics=!1),"topics"===this.args.model.subset&&(this.dismissPosts=!1)}get partialDismiss(){return 0!==(this.selectedTopics?.length||0)}get dismissNewTopicsLabel(){return"topics.bulk.dismiss_new_modal.topics"+(this.partialDismiss?"_with_count":"")}get dismissNewRepliesLabel(){return"topics.bulk.dismiss_new_modal.replies"+(this.partialDismiss?"_with_count":"")}get showDismissNewTopics(){return this.partialDismiss?this.countNewTopics>0:"topics"===this.subset||!this.subset}get showDismissNewReplies(){return this.partialDismiss?this.countNewReplies>0:"replies"===this.subset||!this.subset}get countNewTopics(){let e=this.selectedTopics;return e?.length?e.filter(e=>!e.unread_posts).length:0}get countNewReplies(){let e=this.selectedTopics;return e?.length?e.filter(e=>e.unread_posts).length:0}get subset(){return this.args.model.subset}get selectedTopics(){return this.args.model.selectedTopics}get modalTitle(){return(0,c.i18n)("topics.bulk.dismiss_new_modal.title")}dismissed(){this.args.model.dismissCallback({dismissTopics:this.dismissTopics,dismissPosts:this.dismissPosts,untrack:this.untrack}),this.args.closeModal()}static #l=(()=>dt7948.n(this.prototype,"dismissed",[r.action]))();static #c=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"3tzgzDzS",block:'[[[1,"\\n "],[8,[32,0],null,[["@closeModal","@title","@inline"],[[30,1],[30,0,["modalTitle"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["showDismissNewTopics"]],[[[1," "],[8,[32,1],[[24,0,"dismiss-topics"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewTopicsLabel"]],[30,0,["countNewTopics"]],[30,0,["dismissTopics"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showDismissNewReplies"]],[[[1," "],[8,[32,1],[[24,0,"dismiss-posts"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewRepliesLabel"]],[30,0,["countNewReplies"]],[30,0,["dismissPosts"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,1],[[24,0,"untrack"]],[["@labelKey","@checked"],["topics.bulk.dismiss_new_modal.untrack",[30,0,["untrack"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["dismissed"]],"check","topics.bulk.dismiss"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@inline"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/dismiss-new.js",scope:()=>[a.default,l.default,o.default],isStrictMode:!0}),this))()}},6868:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(35533);let r=(0,i(85671).createTemplateFactory)({id:"zbj3f75P",block:'[[[8,[39,0],[[24,0,"dismiss-notification-confirmation"]],[["@headerClass","@closeModal"],["hidden",[30,1]]],[["body","footer"],[[[[1,"\\n "],[1,[30,2,["confirmationMessage"]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,3],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["check",[30,0,["dismiss"]],"notifications.dismiss_confirmation.dismiss"]],null],[1,"\\n "],[8,[39,3],[[24,0,"btn-default"]],[["@action","@label"],[[30,1],"notifications.dismiss_confirmation.cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal",":body",":footer","d-button"]]',moduleName:"discourse/components/modal/dismiss-notification-confirmation.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{dismiss(){this.args.model?.dismissNotifications?.(),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"dismiss",[n.action]))()}(0,o.setComponentTemplate)(r,a)},35092:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(75446),o=i(18638),a=i(1453),l=i(4096),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"dismissTopics",[n.tracked],function(){return!1}))();#i9=(()=>void dt7948.i(this,"dismissTopics"))();static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"07PSiBZF",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"dismiss-read-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],[[30,2,["title"]]],[["count"],[[30,2,["count"]]]]]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[32,2],[[24,0,"dismiss-read-modal__stop-tracking"]],[["@labelKey","@checked"],["topics.bulk.also_dismiss_topics",[30,0,["dismissTopics"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[32,4],[[30,2,["dismissRead"]],[30,0,["dismissTopics"]]],null],"topics.bulk.dismiss","check"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/dismiss-read.js",scope:()=>[a.default,c.i18n,l.default,o.default,r.fn],isStrictMode:!0}),this))()}},96588:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18638),l=i(1453),c=i(43503),u=i(78569),d=i(88355),p=i(843),h=i(53653),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();async saveDuration(e){try{await this.currentUser.enterDoNotDisturbFor(e),this.args.closeModal()}catch(e){this.flash=(0,d.extractError)(e)}}static #l=(()=>dt7948.n(this.prototype,"saveDuration",[r.action]))();navigateToNotificationSchedule(){this.router.transitionTo("preferences.notifications",this.currentUser),this.args.closeModal()}static #c=(()=>dt7948.n(this.prototype,"navigateToNotificationSchedule",[r.action]))();static #u=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"yq/JDVr8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"do-not-disturb-modal"]],[["@title","@closeModal","@flash"],[[28,[32,1],["pause_notifications.title"],null],[30,1],[30,0,["flash"]]]],[["body"],[[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["30",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.half_hour"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["60",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.one_hour"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["120",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.two_hours"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["tomorrow",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.tomorrow"],null]],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[8,[32,4],null,[["@action","@label"],[[30,0,["navigateToNotificationSchedule"]],"pause_notifications.set_schedule"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","grid"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/do-not-disturb.js",scope:()=>[l.default,p.i18n,u.default,c.default,a.default],isStrictMode:!0}),this))()}},86966:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(91365);let l=(0,i(85671).createTemplateFactory)({id:"9s2EhX5y",block:'[[[8,[39,0],[[24,0,"download-calendar-modal"]],[["@title","@closeModal"],[[28,[37,1],["download_calendar.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"ics"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","ics"],[12],[1,"\\n "],[8,[39,5],[[24,1,"ics"]],[["@name","@value","@selection","@onChange"],["select-calendar","ics",[30,0,["selectedCalendar"]],[28,[37,6],[[30,0,["selectCalendar"]],"ics"],null]]],null],[1,"\\n "],[1,[28,[35,1],["download_calendar.save_ics"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"google"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","google"],[12],[1,"\\n "],[8,[39,5],[[24,1,"google"]],[["@name","@value","@selection","@onChange"],["select-calendar","google",[30,0,["selectedCalendar"]],[28,[37,6],[[30,0,["selectCalendar"]],"google"],null]]],null],[1,"\\n "],[1,[28,[35,1],["download_calendar.save_google"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1," "],[10,0],[14,0,"control-group remember"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,8],null,[["@type","@checked"],["checkbox",[30,0,["remember"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember_explanation"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["downloadCalendar"]],"download_calendar.download"]],null],[1,"\\n "],[8,[39,11],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","label","radio-button","fn","if","input","span",":footer","d-button"]]',moduleName:"discourse/components/modal/download-calendar.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"selectedCalendar",[n.tracked],function(){return"ics"}))();#i6=(()=>void dt7948.i(this,"selectedCalendar"))();static #s=(()=>dt7948.g(this.prototype,"remember",[n.tracked],function(){return!1}))();#se=(()=>void dt7948.i(this,"remember"))();downloadCalendar(){this.remember&&(this.currentUser.set("user_option.default_calendar",this.selectedCalendar),this.currentUser.save(["default_calendar"])),"ics"===this.selectedCalendar?(0,a.downloadIcs)(this.args.model.calendar.title,this.args.model.calendar.dates,{recurrenceRule:this.args.model.calendar.recurrenceRule,location:this.args.model.calendar.location,details:this.args.model.calendar.details}):(0,a.downloadGoogle)(this.args.model.calendar.title,this.args.model.calendar.dates,{recurrenceRule:this.args.model.calendar.recurrenceRule,location:this.args.model.calendar.location,details:this.args.model.calendar.details}),this.args.closeModal()}static #l=(()=>dt7948.n(this.prototype,"downloadCalendar",[r.action]))();selectCalendar(e){this.selectedCalendar=e}static #c=(()=>dt7948.n(this.prototype,"selectCalendar",[r.action]))()}(0,c.setComponentTemplate)(l,u)},57763:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(93941),l=i(88355),c=i(66914),u=i(19268),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"HZtCSw3n",block:'[[[8,[39,0],[[24,0,"edit-slow-mode-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.slow_mode_update.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.select"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],[[24,0,"slow-mode-type"]],[["@content","@value","@onChange"],[[30,0,["slowModes"]],[30,0,["selectedSlowMode"]],[30,0,["setSlowModeDuration"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showCustomSelect"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.hours"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["hours"]],"number"]],null],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.minutes"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["minutes"]],"number"]],null],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.seconds"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["seconds"]],"number"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,8],[[24,0,"enabled-until"]],[["@label","@labelClasses","@customShortcuts","@clearable","@input","@onChangeInput"],["topic.slow_mode_update.enabled_until","slow-mode-label",[30,0,["timeShortcuts"]],true,[30,2,["topic","slow_mode_enabled_until"]],[28,[37,9],[[28,[37,10],[[30,2,["topic","slow_mode_enabled_until"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,12],[[24,0,"btn-primary"]],[["@disabled","@icon","@label","@action"],[[30,0,["submitDisabled"]],"hourglass-start",[30,0,["saveButtonLabel"]],[30,0,["enableSlowMode"]]]],null],[1,"\\n"],[41,[30,2,["topic","slow_mode_seconds"]],[[[1," "],[8,[39,12],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["disableSlowMode"]],[30,0,["submitDisabled"]],"topic.slow_mode_update.remove"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","combo-box","if","input","future-date-input","fn","mut",":footer","d-button"]]',moduleName:"discourse/components/modal/edit-slow-mode.hbs",isStrictMode:!1});var h=i(53653);let m=[{id:"600",name:(0,d.i18n)("topic.slow_mode_update.durations.10_minutes")},{id:"900",name:(0,d.i18n)("topic.slow_mode_update.durations.15_minutes")},{id:"1800",name:(0,d.i18n)("topic.slow_mode_update.durations.30_minutes")},{id:"2700",name:(0,d.i18n)("topic.slow_mode_update.durations.45_minutes")},{id:"3600",name:(0,d.i18n)("topic.slow_mode_update.durations.1_hour")},{id:"7200",name:(0,d.i18n)("topic.slow_mode_update.durations.2_hours")},{id:"14400",name:(0,d.i18n)("topic.slow_mode_update.durations.4_hours")},{id:"28800",name:(0,d.i18n)("topic.slow_mode_update.durations.8_hours")},{id:"43200",name:(0,d.i18n)("topic.slow_mode_update.durations.12_hours")},{id:"86400",name:(0,d.i18n)("topic.slow_mode_update.durations.24_hours")},{id:"custom",name:(0,d.i18n)("topic.slow_mode_update.durations.custom")}];class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"selectedSlowMode",[n.tracked]))();#st=(()=>void dt7948.i(this,"selectedSlowMode"))();static #s=(()=>dt7948.g(this.prototype,"hours",[n.tracked]))();#si=(()=>void dt7948.i(this,"hours"))();static #l=(()=>dt7948.g(this.prototype,"minutes",[n.tracked]))();#ss=(()=>void dt7948.i(this,"minutes"))();static #c=(()=>dt7948.g(this.prototype,"seconds",[n.tracked]))();#sn=(()=>void dt7948.i(this,"seconds"))();static #u=(()=>dt7948.g(this.prototype,"saveDisabled",[n.tracked],function(){return!1}))();#sr=(()=>void dt7948.i(this,"saveDisabled"))();static #d=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments);let e=parseInt(this.args.model.topic.slow_mode_seconds,10);e&&(this.slowModes.find(t=>t.id===e.toString())?this.selectedSlowMode=e.toString():this.selectedSlowMode="custom",this._setFromSeconds(e))}get slowModes(){return m}get saveButtonLabel(){return this.args.model.topic.slow_mode_seconds&&0!==this.args.model.topic.slow_mode_seconds?"topic.slow_mode_update.update":"topic.slow_mode_update.enable"}get timeShortcuts(){let e=this.currentUser.user_option.timezone,t=(0,c.timeShortcuts)(e),i=t.monday();return i.label="time_shortcut.next_week",[t.laterToday(),t.tomorrow(),t.twoDays(),i,t.twoWeeks(),t.nextMonth(),t.twoMonths()]}get showCustomSelect(){return"custom"===this.selectedSlowMode}get durationIsSet(){return this.hours||this.minutes||this.seconds}async enableSlowMode(){this.saveDisabled=!0;let e=(0,a.toSeconds)(this._parseValue(this.hours),this._parseValue(this.minutes),this._parseValue(this.seconds));try{await u.default.setSlowMode(this.args.model.topic.id,e,this.args.model.topic.slow_mode_enabled_until),this.args.model.topic.set("slow_mode_seconds",e),this.args.closeModal()}catch{this.flash=(0,d.i18n)("generic_error")}finally{this.saveDisabled=!1}}static #p=(()=>dt7948.n(this.prototype,"enableSlowMode",[r.action]))();async disableSlowMode(){this.saveDisabled=!0;try{await u.default.setSlowMode(this.args.model.topic.id,0),this.args.model.topic.set("slow_mode_seconds",0),this.args.closeModal()}catch(e){this.flash=(0,l.extractError)(e)}finally{this.saveDisabled=!1}}static #h=(()=>dt7948.n(this.prototype,"disableSlowMode",[r.action]))();setSlowModeDuration(e){if("custom"!==e){let t=parseInt(e,10);this._setFromSeconds(t)}this.selectedSlowMode=e}static #m=(()=>dt7948.n(this.prototype,"setSlowModeDuration",[r.action]))();_setFromSeconds(e){let{hours:t,minutes:i,seconds:s}=(0,a.fromSeconds)(e);this.hours=t,this.minutes=i,this.seconds=s}_parseValue(e){return parseInt(e,10)||0}}(0,h.setComponentTemplate)(p,g)},97088:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BUMP_TYPE:()=>w,CLOSE_AFTER_LAST_POST_STATUS_TYPE:()=>f,CLOSE_STATUS_TYPE:()=>g,DELETE_REPLIES_TYPE:()=>k,DELETE_STATUS_TYPE:()=>b,OPEN_STATUS_TYPE:()=>_,PUBLISH_TO_CATEGORY_STATUS_TYPE:()=>y,default:()=>T});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(83133),l=i(57222),c=i(88355),u=i(66492),d=i(843),p=i(9105);let h=(0,i(85671).createTemplateFactory)({id:"nFKXA4BW",block:'[[[8,[39,0],[[24,"autoFocus","false"],[24,1,"topic-timer-modal"],[24,0,"edit-topic-timer-modal"]],[["@title","@flash","@closeModal"],[[28,[37,1],["topic.topic_status_update.title"],null],[30,0,["flash"]],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["topicTimer"]],[[[1," "],[8,[39,4],null,[["@topic","@topicTimer","@timerTypes","@onChangeStatusType","@onChangeInput"],[[30,2,["topic"]],[30,0,["topicTimer"]],[30,0,["publicTimerTypes"]],[30,0,["onChangeStatusType"]],[30,0,["onChangeInput"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@disabled","@label","@action","@isLoading"],[[30,0,["saveDisabled"]],"topic.topic_status_update.save",[30,0,["saveTimer"]],[30,0,["loading"]]]],null],[1,"\\n"],[41,[30,0,["topicTimer","execute_at"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@label"],[[30,0,["removeTimer"]],"topic.topic_status_update.remove"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","edit-topic-timer-form",":footer","d-button"]]',moduleName:"discourse/components/modal/edit-topic-timer.hbs",isStrictMode:!1});var m=i(53653);let g="close",f="close_after_last_post",_="open",y="publish_to_category",b="delete",w="bump",k="delete_replies";class T extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"topicTimer",[n.tracked]))();#so=(()=>void dt7948.i(this,"topicTimer"))();static #s=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.args.model.topic?.topic_timer?this.topicTimer=new l.TrackedObject(this.args.model.topic?.topic_timer):(0,o.next)(()=>{this.topicTimer=new l.TrackedObject(this.createDefaultTimer())})}get defaultStatusType(){return this.publicTimerTypes[0].id}get publicTimerTypes(){let e=[],{closed:t,category:i,isPrivateMessage:s,invisible:n}=this.args.model.topic;return t||(e.push({id:g,name:(0,d.i18n)("topic.auto_close.title")}),e.push({id:f,name:(0,d.i18n)("topic.auto_close_after_last_post.title")})),t&&e.push({id:_,name:(0,d.i18n)("topic.auto_reopen.title")}),this.args.model.topic.details.can_delete&&e.push({id:b,name:(0,d.i18n)("topic.auto_delete.title")}),e.push({id:w,name:(0,d.i18n)("topic.auto_bump.title")}),this.args.model.topic.details.can_delete&&e.push({id:k,name:(0,d.i18n)("topic.auto_delete_replies.title")}),t&&e.push({id:g,name:(0,d.i18n)("topic.temp_open.title")}),t||e.push({id:_,name:(0,d.i18n)("topic.temp_close.title")}),(i&&i.read_restricted||s||n)&&e.push({id:y,name:(0,d.i18n)("topic.publish_to_category.title")}),e}_setTimer(e,t,i,s,n){this.loading=!0,u.default.update(this.args.model.topic.id,e,s,i,n,t).then(i=>{if(e||t)this.args.model.updateTopicTimerProperty("execute_at",i.execute_at),this.args.model.updateTopicTimerProperty("duration_minutes",i.duration_minutes),this.args.model.updateTopicTimerProperty("category_id",i.category_id),this.args.model.updateTopicTimerProperty("closed",i.closed),this.args.closeModal();else{let e=this.createDefaultTimer();this.topicTime=e,this.args.model.setTopicTimer(e),this.onChangeInput(null,null)}}).catch(c.popupAjaxError).finally(()=>this.loading=!1)}createDefaultTimer(){let e=u.default.create({status_type:this.defaultStatusType});return this.args.model.setTopicTimer(e),e}static #c=(()=>dt7948.n(this.prototype,"createDefaultTimer",[r.action]))();onChangeStatusType(e){let t=f===e;this.topicTimer.based_on_last_post=t,this.args.model.updateTopicTimerProperty("based_on_last_post",t),this.topicTimer.status_type=e,this.args.model.updateTopicTimerProperty("status_type",e)}static #u=(()=>dt7948.n(this.prototype,"onChangeStatusType",[r.action]))();onChangeInput(e,t){moment.isMoment(t)&&(t=t.format(p.FORMAT)),this.topicTimer.updateTime=t,this.args.model.updateTopicTimerProperty("updateTime",t)}static #d=(()=>dt7948.n(this.prototype,"onChangeInput",[r.action]))();async saveTimer(){if(this.flash=null,!this.topicTimer.updateTime&&!this.topicTimer.duration_minutes){this.flash=(0,d.i18n)("topic.topic_status_update.time_frame_required");return}if(this.topicTimer.duration_minutes&&!this.topicTimer.updateTime){if(this.topicTimer.duration_minutes<=0){this.flash=(0,d.i18n)("topic.topic_status_update.min_duration");return}if(this.topicTimer.duration_minutes>10512e3){this.flash=(0,d.i18n)("topic.topic_status_update.max_duration");return}}let e=this.topicTimer.status_type;e===f&&(e=g),await this._setTimer(this.topicTimer.updateTime,this.topicTimer.duration_minutes,e,this.topicTimer.based_on_last_post,this.topicTimer.category_id)}static #p=(()=>dt7948.n(this.prototype,"saveTimer",[r.action]))();async removeTimer(){let e=this.topicTimer.status_type;e===f&&(e=g),await this._setTimer(null,null,e),this.topicTimer.execute_at=null}static #h=(()=>dt7948.n(this.prototype,"removeTimer",[r.action]))()}(0,m.setComponentTemplate)(h,T)},61705:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(4194),a=i(6864),l=i(88355);let c=(0,i(85671).createTemplateFactory)({id:"sYOZf0tH",block:'[[[8,[39,0],[[24,0,"edit-user-directory-columns-modal"]],[["@closeModal","@title","@flash"],[[30,1],[28,[37,1],["directory.edit_columns.title"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[1,[28,[35,4],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"edit-directory-columns-container"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["columns"]]],null]],null],null,[[[1," "],[10,0],[14,0,"edit-directory-column"],[12],[1,"\\n "],[10,0],[14,0,"left-content"],[12],[1,"\\n "],[10,"label"],[14,0,"column-name"],[12],[1,"\\n "],[8,[39,9],null,[["@type","@checked"],["checkbox",[30,2,["enabled"]]]],null],[1,"\\n"],[41,[28,[37,10],null,[["column"],[[30,2]]]],[[[1," "],[1,[28,[35,11],null,[["field","labelKey","icon"],[[30,2,["name"]],[30,0,["labelKey"]],[30,2,["icon"]]]]]],[1,"\\n"]],[]],[[[41,[28,[37,12],null,[["column"],[[30,2]]]],[[[1," "],[1,[28,[35,11],null,[["field","translated"],[[30,2,["user_field","name"]],true]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],null,[["field","translated"],[[28,[37,1],[[30,2,["name"]]],null],true]]]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"right-content"],[12],[1,"\\n "],[8,[39,13],[[24,0,"button-secondary move-column-up"]],[["@icon","@action"],["arrow-up",[28,[37,14],[[30,0,["moveUp"]],[30,2]],null]]],null],[1,"\\n "],[8,[39,13],[[24,0,"button-secondary"]],[["@icon","@action"],["arrow-down",[28,[37,14],[[30,0,["moveDown"]],[30,2]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,13],[[24,0,"btn-primary"]],[["@label","@action"],["directory.edit_columns.save",[30,0,["save"]]]],null],[1,"\\n "],[8,[39,13],[[24,0,"btn-secondary reset-to-default"]],[["@label","@action"],["directory.edit_columns.reset_to_default",[30,0,["resetToDefault"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","column"],false,["d-modal","i18n",":body","if","loading-spinner","div","each","-track-array","label","input","directory-column-is-automatic","directory-table-header-title","directory-column-is-user-field","d-button","fn",":footer"]]',moduleName:"discourse/components/modal/edit-user-directory-columns.hbs",isStrictMode:!1});var u=i(53653);let d="down";class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"columns",[n.tracked]))();#sa=(()=>void dt7948.i(this,"columns"))();static #s=(()=>dt7948.g(this.prototype,"labelKey",[n.tracked]))();#sl=(()=>void dt7948.i(this,"labelKey"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.setupColumns()}async setupColumns(){try{let e=await (0,a.ajax)("edit-directory-columns.json");this.loading=!1,this.columns=e.directory_columns.sort((e,t)=>e.position>t.position?1:-1).map(e=>({...e,enabled:!!e.enabled}))}catch(e){(0,l.popupAjaxError)(e)}}static #c=(()=>dt7948.n(this.prototype,"setupColumns",[r.action]))();async save(){this.loading=!0,this.flash=null;let e={directory_columns:this.columns.map(e=>({id:e.id,enabled:e.enabled,position:e.position}))};try{await (0,a.ajax)("edit-directory-columns.json",{type:"PUT",data:e}),(0,o.reload)()}catch(e){this.loading=!1,this.flash=(0,l.extractError)(e)}}static #u=(()=>dt7948.n(this.prototype,"save",[r.action]))();resetToDefault(){let e=this.columns.sort((e,t)=>{let i=e.automatic_position||(e.user_field?.position||0)+1e3,s=t.automatic_position||(t.user_field?.position||0)+1e3;return i===s?e.name.localeCompare(t.name):i>s?1:-1}).map((e,t)=>({...e,position:e.automatic_position||t+1,enabled:"automatic"===e.type}));this.columns=e}static #d=(()=>dt7948.n(this.prototype,"resetToDefault",[r.action]))();moveUp(e){this._moveColumn("up",e)}static #p=(()=>dt7948.n(this.prototype,"moveUp",[r.action]))();moveDown(e){this._moveColumn(d,e)}static #h=(()=>dt7948.n(this.prototype,"moveDown",[r.action]))();_moveColumn(e,t){if("up"===e&&1===t.position||e===d&&t.position===this.columns.length)return;let i=t.position,s="up"===e?i-1:i+1,n=this.columns.find(e=>e.position===s);t.position=s,n.position=i,this.columns=this.columns.sort((e,t)=>e.position>t.position?1:-1)}}(0,u.setComponentTemplate)(c,p)},96325:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(83133);let a=(0,i(85671).createTemplateFactory)({id:"3BJUpDx1",block:'[[[8,[39,0],[[24,0,"explain-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.explain.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["review.explain.formula"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["review.explain.subtotal"],null]],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewableExplanation","scores"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,11],null,[["@value"],["1.0"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["type_bonus"]],"type_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["take_action_bonus"]],"take_action_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["trust_level_bonus"]],"trust_level_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["user_accuracy_bonus"]],"user_accuracy_bonus"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,[28,[35,12],[[30,2,["score"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[10,"tr"],[14,0,"total"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.total"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","total_score"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"table"],[14,0,"thresholds"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.min_score_visibility"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","min_score_visibility"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.score_to_hide"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","hide_post_score"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]]],["@closeModal","s"],false,["d-modal","i18n",":body","conditional-loading-spinner","table","tbody","tr","th","each","-track-array","td","score-value","float",":footer","d-button"]]',moduleName:"discourse/components/modal/explain-reviewable.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #i=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();static #s=(()=>dt7948.g(this.prototype,"reviewableExplanation",[n.tracked],function(){return null}))();#sc=(()=>void dt7948.i(this,"reviewableExplanation"))();constructor(){super(...arguments),this.loadExplanation()}async loadExplanation(){try{let e=await this.store.find("reviewable-explanation",this.args.model.reviewable.id);this.reviewableExplanation=e}finally{this.loading=!1}}static #l=(()=>dt7948.n(this.prototype,"loadExplanation",[r.action]))()}(0,l.setComponentTemplate)(a,c)},60669:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"OX9V+/2m",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["post.quote_edit"],null],[30,1]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@newValue","@initialValue","@post","@close"],[[30,2,["newValue"]],[30,2,["initialValue"]],[30,2,["post"]],[30,1]]],null],[1,"\\n"]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","fast-edit"]]',moduleName:"discourse/components/modal/fast-edit.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"fast-edit"))},99626:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(6864),a=i(88355);let l=(0,i(85671).createTemplateFactory)({id:"F4h64/W3",block:'[[[8,[39,0],[[24,0,"feature-topic-on-profile choose-topic-modal"],[24,1,"choosing-topic"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.feature_topic_on_profile.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@topicChangedCallback","@currentTopicId","@loadOnInit","@additionalFilters","@label"],[[30,0,["newTopicSelected"]],[30,2,["user","featured_topic","id"]],true,"status:public","user.feature_topic_on_profile.search_label"]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],[[24,0,"btn-primary save-featured-topic-on-profile"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["noTopicSelected"]],"user.feature_topic_on_profile.save"]],null],[1,"\\n "],[8,[39,5],[[24,0,"btn-flat"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","choose-topic",":footer","d-button"]]',moduleName:"discourse/components/modal/feature-topic-on-profile.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"newFeaturedTopic",[n.tracked],function(){return null}))();#su=(()=>void dt7948.i(this,"newFeaturedTopic"))();static #i=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();get noTopicSelected(){return!this.newFeaturedTopic}async save(){try{this.saving=!0,await (0,o.ajax)(`/u/${this.args.model.user.username}/feature-topic`,{type:"PUT",data:{topic_id:this.newFeaturedTopic.id}}),this.args.model.setFeaturedTopic(this.newFeaturedTopic),this.args.closeModal()}catch(e){(0,a.popupAjaxError)(e)}finally{this.saving=!1}}static #s=(()=>dt7948.n(this.prototype,"save",[r.action]))();newTopicSelected(e){this.newFeaturedTopic=e}static #l=(()=>dt7948.n(this.prototype,"newTopicSelected",[r.action]))()}(0,c.setComponentTemplate)(l,u)},5730:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18385),l=i(6864),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"wvMajAeF",block:'[[[8,[39,0],[[24,0,"feature-topic"]],[["@title","@closeModal"],[[28,[37,1],["topic.feature_topic.title"],null],[30,1]]],[["body"],[[[[1,"\\n"],[41,[30,2,["topic","pinned_at"]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,2,["topic","pinned_globally"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,[28,[35,7],[[30,0,["unPinMessage"]]],null]],[13],[1,"\\n "],[10,2],[12],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["unpin"]],"thumbtack","topic.feature.unpin"]],null],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pin"]],"thumbtack","topic.feature.pin"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canPinGlobally"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pinGlobally"]],"thumbtack","topic.feature.pin_globally"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[10,"hr"],[12],[13],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["bannerCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.banner_exists"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.no_banner_exists"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.banner_note"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1," "],[1,[28,[35,1],["topic.feature_topic.remove_banner"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["topic.feature_topic.make_banner"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1," "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["removeBanner"]],"thumbtack","topic.feature.remove_banner"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[24,0,"btn-primary make-banner"]],[["@action","@icon","@label"],[[30,0,["makeBanner"]],"thumbtack","topic.feature.make_banner"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","div","p","conditional-loading-spinner","html-safe","d-button","future-date-input","action","mut","popup-input-tip","span","d-icon","hr"]]',moduleName:"discourse/components/modal/feature-topic.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"pinnedInCategoryCount",[n.tracked],function(){return 0}))();#sd=(()=>void dt7948.i(this,"pinnedInCategoryCount"))();static #c=(()=>dt7948.g(this.prototype,"pinnedGloballyCount",[n.tracked],function(){return 0}))();#sp=(()=>void dt7948.i(this,"pinnedGloballyCount"))();static #u=(()=>dt7948.g(this.prototype,"bannerCount",[n.tracked],function(){return 0}))();#sh=(()=>void dt7948.i(this,"bannerCount"))();static #d=(()=>dt7948.g(this.prototype,"pinInCategoryTipShownAt",[n.tracked],function(){return!1}))();#sm=(()=>void dt7948.i(this,"pinInCategoryTipShownAt"))();static #p=(()=>dt7948.g(this.prototype,"pinGloballyTipShownAt",[n.tracked],function(){return!1}))();#sg=(()=>void dt7948.i(this,"pinGloballyTipShownAt"))();constructor(){super(...arguments),this.loadFeatureStats()}get categoryLink(){return(0,a.categoryLinkHTML)(this.args.model.topic.category,{allowUncategorized:!0})}get unPinMessage(){let e="topic.feature_topic.unpin";this.args.model.topic.pinned_globally&&(e+="_globally"),moment(this.args.model.topic.pinned_until)>moment()&&(e+="_until");let t=moment(this.args.model.topic.pinned_until).format("LL");return(0,c.i18n)(e,{categoryLink:this.categoryLink,until:t})}get canPinGlobally(){return this.currentUser.canManageTopic&&this.args.model.topic.details.can_pin_unpin_topic}get pinMessage(){return(0,c.i18n)("topic.feature_topic.pin",{categoryLink:this.categoryLink})}get alreadyPinnedMessage(){let e=0===this.pinnedInCategoryCount?"topic.feature_topic.not_pinned":"topic.feature_topic.already_pinned";return(0,c.i18n)(e,{categoryLink:this.categoryLink,count:this.pinnedInCategoryCount})}get pinDisabled(){return!this._isDateValid(this.parsedPinnedInCategoryUntil)}get pinGloballyDisabled(){return!this._isDateValid(this.parsedPinnedGloballyUntil)}get parsedPinnedInCategoryUntil(){return this._parseDate(this.args.model.topic.pinnedInCategoryUntil)}get parsedPinnedGloballyUntil(){return this._parseDate(this.args.model.topic.pinnedGloballyUntil)}get pinInCategoryValidation(){if(this.pinDisabled)return r.default.create({failed:!0,reason:(0,c.i18n)("topic.feature_topic.pin_validation")})}get pinGloballyValidation(){if(this.pinGloballyDisabled)return r.default.create({failed:!0,reason:(0,c.i18n)("topic.feature_topic.pin_validation")})}_parseDate(e){return moment(e,["YYYY-MM-DD","YYYY-MM-DD HH:mm"])}_isDateValid(e){return e.isValid()&&e>moment()}async loadFeatureStats(){try{this.loading=!0;let e=await (0,l.ajax)("/topics/feature_stats.json",{data:{category_id:this.args.model.topic.category.id}});e&&(this.pinnedInCategoryCount=e.pinned_in_category_count,this.pinnedGloballyCount=e.pinned_globally_count,this.bannerCount=e.banner_count)}finally{this.loading=!1}}static #h=(()=>dt7948.n(this.prototype,"loadFeatureStats",[r.action]))();async _confirmBeforePinningGlobally(){this.pinnedGloballyCount<4?(this.args.model.pinGlobally(),this.args.closeModal()):this.dialog.yesNoConfirm({message:(0,c.i18n)("topic.feature_topic.confirm_pin_globally",{count:this.pinnedGloballyCount}),didConfirm:()=>{this.args.model.pinGlobally(),this.args.closeModal()}})}pin(){this.pinDisabled?this.pinInCategoryTipShownAt=Date.now():(this.args.model.togglePinned(),this.args.closeModal())}static #m=(()=>dt7948.n(this.prototype,"pin",[r.action]))();pinGlobally(){this.pinGloballyDisabled?this.pinGloballyTipShownAt=Date.now():this._confirmBeforePinningGlobally()}static #g=(()=>dt7948.n(this.prototype,"pinGlobally",[r.action]))();unpin(){this.args.model.togglePinned(),this.args.closeModal()}static #A=(()=>dt7948.n(this.prototype,"unpin",[r.action]))();makeBanner(){this.args.model.makeBanner(),this.args.closeModal()}static #E=(()=>dt7948.n(this.prototype,"makeBanner",[r.action]))();removeBanner(){this.args.model.removeBanner(),this.args.closeModal()}static #D=(()=>dt7948.n(this.prototype,"removeBanner",[r.action]))()}(0,d.setComponentTemplate)(u,p)},68395:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(4194),l=i(23865),c=i(59864),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"SgL5Jxel",block:'[[[8,[39,0],[[24,0,"flag-modal"],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null]],[["@bodyClass","@title","@submitOnEnter","@closeModal"],["flag-modal-body",[28,[37,1],[[30,0,["title"]]],null],false,[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,5],null,[["@nameKey","@flags"],[[30,0,["selected","name_key"]],[30,0,["flagsAvailable"]]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@flag","@message","@isConfirmed","@isWarning","@selectedFlag","@username","@staffFlagsAvailable","@changePostActionType"],[[30,2],[30,0,["message"]],[30,0,["isConfirmed"]],[30,0,["isWarning"]],[30,0,["selected"]],[30,3,["flagModel","username"]],[30,0,["staffFlagsAvailable"]],[30,0,["changePostActionType"]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["flag-modal-bottom","div",[28,[37,8],null,[["post"],[[30,3,["flagModel"]]]]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,10],[[24,0,"btn-primary flag-modal__create-flag"]],[["@action","@disabled","@title","@icon","@label"],[[30,0,["createFlag"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"flagging.submit_tooltip",[52,[30,0,["selected","is_custom_flag"]],"envelope","flag"],[30,0,["submitLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSendWarning"]],[[[1," "],[8,[39,10],[[24,0,"btn-danger flag-modal__send-warning"]],[["@action","@disabled","@icon","@label"],[[30,0,["createFlagAsWarning"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"triangle-exclamation","flagging.official_warning"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canTakeAction"]],[[[1," "],[8,[39,13],[[24,0,"flag-modal__take-action"]],[["@bundle","@performAction","@reviewableUpdating"],[[30,0,["flagActions"]],[30,0,["takeAction"]],[28,[37,11],[[30,0,["submitEnabled"]]],null]]],null],[1,"\\n\\n "],[8,[39,10],[[24,0,"btn-danger flag-modal__flag-for-review"]],[["@action","@disabled","@icon","@label"],[[30,0,["flagForReview"]],[28,[37,11],[[30,0,["submitEnabled"]],[30,0,["notifyModeratorsFlag"]]],null],"triangle-exclamation","flagging.flag_for_review"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDeleteSpammer"]],[[[1," "],[8,[39,10],[[24,0,"btn-danger delete-spammer flag-modal__delete-spammer"]],[["@action","@disabled","@icon","@label"],[[30,0,["deleteSpammer"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"triangle-exclamation","flagging.delete_spammer"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","f","@model"],false,["d-modal","i18n","on",":body","form","flag-selection","flag-action-type","plugin-outlet","hash",":footer","d-button","not","if","reviewable-bundled-action"]]',moduleName:"discourse/components/modal/flag.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"adminTools",[o.service]))();#sf=(()=>void dt7948.i(this,"adminTools"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"userDetails",[n.tracked]))();#s_=(()=>void dt7948.i(this,"userDetails"))();static #d=(()=>dt7948.g(this.prototype,"selected",[n.tracked]))();#sy=(()=>void dt7948.i(this,"selected"))();static #p=(()=>dt7948.g(this.prototype,"message",[n.tracked]))();#sb=(()=>void dt7948.i(this,"message"))();static #h=(()=>dt7948.g(this.prototype,"isConfirmed",[n.tracked],function(){return!1}))();#sv=(()=>void dt7948.i(this,"isConfirmed"))();static #m=(()=>dt7948.g(this.prototype,"isWarning",[n.tracked],function(){return!1}))();#sw=(()=>void dt7948.i(this,"isWarning"))();static #g=(()=>dt7948.g(this.prototype,"spammerDetails",[n.tracked]))();#sk=(()=>void dt7948.i(this,"spammerDetails"))();constructor(){super(...arguments),this.adminTools?.checkSpammer(this.args.model.flagModel.user_id).then(e=>this.spammerDetails=e),1===this.flagsAvailable.length&&(this.selected=this.flagsAvailable[0])}get flagActions(){return{icon:"gavel",label:(0,u.i18n)("flagging.take_action"),actions:[{id:"agree_and_hide",icon:"thumbs-up",label:(0,u.i18n)("flagging.take_action_options.default.title"),description:(0,u.i18n)("flagging.take_action_options.default.details")},{id:"agree_and_suspend",icon:"ban",label:(0,u.i18n)("flagging.take_action_options.suspend.title"),description:(0,u.i18n)("flagging.take_action_options.suspend.details"),client_action:"suspend"},{id:"agree_and_silence",icon:"microphone-slash",label:(0,u.i18n)("flagging.take_action_options.silence.title"),description:(0,u.i18n)("flagging.take_action_options.silence.details"),client_action:"silence"}]}}get canSendWarning(){return!this.args.model.flagTarget.targetsTopic()&&this.currentUser.staff&&this.selected?.name_key==="notify_user"}get showDeleteSpammer(){return this.spammerDetails?.canDelete&&this.selected?.name_key==="spam"}get submitLabel(){return this.selected?.require_message?this.args.model.flagTarget.customSubmitLabel():this.args.model.flagTarget.submitLabel()}get title(){return this.args.model.flagTarget.title()}get flagsAvailable(){return this.args.model.flagTarget.flagsAvailable(this).filterBy("enabled")}get staffFlagsAvailable(){return this.flagsAvailable.length>1}get submitEnabled(){if(!this.selected)return!1;if(!this.selected.require_message)return!0;if(this.selected.isIllegal&&!this.isConfirmed)return!1;let e=this.message?.length||0;return e>=this.siteSettings.min_personal_message_post_length&&e<=l.MAX_MESSAGE_LENGTH}get notifyModeratorsFlag(){return this.flagsAvailable.find(e=>"notify_moderators"===e.id)}get canTakeAction(){return!this.args.model.flagTarget.targetsTopic()&&!this.selected?.require_message&&this.currentUser.staff}onKeydown(e){if(this.submitEnabled&&"Enter"===e.key&&(e.ctrlKey||e.metaKey))return this.createFlag(),!1}static #A=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();async penalize(e,t){if(!this.adminTools)return;let i=await c.default.findByUsername(this.args.model.flagModel.username),s={before:t};return this.args.model.flagTarget.editable()&&(s.postId=this.args.model.flagModel.id,s.postEdit=this.args.model.flagModel.cooked),this.adminTools[e](i,s)}static #E=(()=>dt7948.n(this.prototype,"penalize",[r.action]))();async deleteSpammer(){this.spammerDetails&&(await this.spammerDetails.deleteUser(),(0,a.reload)())}static #D=(()=>dt7948.n(this.prototype,"deleteSpammer",[r.action]))();async takeAction(e){"suspend"===e.client_action?await this.penalize("showSuspendModal",()=>this.createFlag({takeAction:!0,skipClose:!0})):"silence"===e.client_action?await this.penalize("showSilenceModal",()=>this.createFlag({takeAction:!0,skipClose:!0})):e.client_action?console.error(`No handler for ${e.client_action} found`):(this.args.model.setHidden(),this.createFlag({takeAction:!0}))}static #P=(()=>dt7948.n(this.prototype,"takeAction",[r.action]))();createFlag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selected.require_message&&(e.message=this.message),this.args.model.flagTarget.create(this,e)}static #Q=(()=>dt7948.n(this.prototype,"createFlag",[r.action]))();createFlagAsWarning(){this.createFlag({isWarning:!0}),this.args.model.setHidden()}static #J=(()=>dt7948.n(this.prototype,"createFlagAsWarning",[r.action]))();flagForReview(){this.selected||=this.notifyModeratorsFlag,this.createFlag({queue_for_review:!0}),this.args.model.setHidden()}static #X=(()=>dt7948.n(this.prototype,"flagForReview",[r.action]))();changePostActionType(e){this.selected=e}static #Z=(()=>dt7948.n(this.prototype,"changePostActionType",[r.action]))()}(0,p.setComponentTemplate)(d,h)},66726:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(42256),l=i(75983),c=i(6864),u=i(88355),d=i(61004),p=i(94636),h=i(42236),m=i(843);let g=(0,i(85671).createTemplateFactory)({id:"tjLHb+SD",block:'[[[8,[39,0],[[24,0,"forgot-password-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["forgot_password.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1," "],[1,[28,[35,4],[[30,0,["offerHelp"]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","hide_email_address_taken"]],[[[1," "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n "],[1,[28,[35,1],["forgot_password.invite_no_username"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["email"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,7],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,1],["forgot_password.invite"],null]],[13],[1,"\\n "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n "],[1,[28,[35,1],["forgot_password.email-username"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["login.email_placeholder"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,7],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n "]],[]]]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1," "],[8,[39,10],[[24,0,"btn-large btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,1],"forgot_password.button_ok"]],null],[1,"\\n"],[41,[51,[30,0,["helpSeen"]]],[[[1," "],[8,[39,10],[[24,0,"btn-large"]],[["@action","@label","@icon"],[[30,0,["help"]],"forgot_password.button_help","circle-question"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,10],[[24,0,"btn-primary forgot-password-reset"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["resetPassword"]],[30,0,["submitDisabled"]],"forgot_password.reset"]],null],[1,"\\n"]],[]]],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","html-safe","label","input","on","p",":footer","d-button","unless"]]',moduleName:"discourse/components/modal/forgot-password.hbs",isStrictMode:!1});var f=i(53653);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"emailOrUsername",[n.tracked],function(){return(0,d.default)("email")||this.args.model?.emailOrUsername||""}))();#sT=(()=>void dt7948.i(this,"emailOrUsername"))();static #s=(()=>dt7948.g(this.prototype,"disabled",[n.tracked],function(){return!1}))();#I=(()=>void dt7948.i(this,"disabled"))();static #l=(()=>dt7948.g(this.prototype,"helpSeen",[n.tracked],function(){return!1}))();#sS=(()=>void dt7948.i(this,"helpSeen"))();static #c=(()=>dt7948.g(this.prototype,"offerHelp",[n.tracked]))();#sC=(()=>void dt7948.i(this,"offerHelp"))();static #u=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();get submitDisabled(){return!!this.disabled||(this.siteSettings.hide_email_address_taken?!this.emailOrUsername.includes("@"):(0,l.isEmpty)(this.emailOrUsername.trim()))}updateEmailOrUsername(e){this.emailOrUsername=e.target.value}static #d=(()=>dt7948.n(this.prototype,"updateEmailOrUsername",[r.action]))();help(){this.offerHelp=(0,m.i18n)("forgot_password.help",{basePath:(0,p.default)("")}),this.helpSeen=!0}static #p=(()=>dt7948.n(this.prototype,"help",[r.action]))();async resetPassword(){if(this.submitDisabled)return!1;this.disabled=!0,this.flash=null;try{let e=await (0,c.ajax)("/session/forgot_password",{data:{login:this.emailOrUsername.trim()},type:"POST"}),t=(0,h.escapeExpression)(this.emailOrUsername),i="forgot_password.complete";i+=t.match(/@/)?"_email":"_username",!1===e.user_found?(i+="_not_found",this.flash=(0,a.htmlSafe)((0,m.i18n)(i,{email:t,username:t}))):(i+=e.user_found?"_found":"",this.emailOrUsername="",this.offerHelp=(0,m.i18n)(i,{email:t,username:t}),this.helpSeen=!e.user_found)}catch(e){this.flash=(0,u.extractError)(e)}finally{this.disabled=!1}}static #h=(()=>dt7948.n(this.prototype,"resetPassword",[r.action]))()}(0,f.setComponentTemplate)(g,_)},33452:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"a6ffdu0S",block:'[[[8,[39,0],[[24,0,"form-template-form-preview-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.form_templates.preview_modal.title"],null]]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@content"],[[30,2]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@content"],false,["d-modal","i18n",":body","form-template-field/wrapper"]]',moduleName:"discourse/components/modal/form-template-form-preview.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"form-template-form-preview"))},49294:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(83133),o=i(91566),a=i(18178);let l=(0,i(85671).createTemplateFactory)({id:"6GKssFNg",block:'[[[8,[39,0],[[24,0,"fullscreen-code-modal -max"],[4,[38,2],[[30,0,["applyCodeblockButtons"]]],null]],[["@title","@closeModal"],[[28,[37,1],["copy_codeblock.view_code"],null],[30,0,["closeModal"]]]],[["body"],[[[[1,"\\n "],[10,"pre"],[12],[1," "],[10,"code"],[15,0,[30,1,["codeClasses"]]],[12],[1,[30,1,["code"]]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]]],["@model"],false,["d-modal","i18n","did-insert",":body","pre","code"]]',moduleName:"discourse/components/modal/fullscreen-code.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"session",[r.service]))();#eO=(()=>void dt7948.i(this,"session"))();closeModal(){this.codeBlockButtons.cleanup(),this.args.closeModal()}static #s=(()=>dt7948.n(this.prototype,"closeModal",[n.action]))();applyCodeblockButtons(e){let t=e.querySelector(".d-modal__body");(0,a.default)(t,this.siteSettings,this.session),this.codeBlockButtons=new o.default({showFullscreen:!1,showCopy:!0}),this.codeBlockButtons.attachToGeneric(t)}static #l=(()=>dt7948.n(this.prototype,"applyCodeblockButtons",[n.action]))()}(0,c.setComponentTemplate)(l,u)},65267:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Tk+kfqGc",block:'[[[8,[39,0],[[24,0,"fullscreen-table-modal -max"]],[["@title","@closeModal"],[[28,[37,1],["fullscreen_table.view_table"],null],[30,1]]],[["body"],[[[[1,"\\n "],[1,[30,2,["tableHtml"]]],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body"]]',moduleName:"discourse/components/modal/fullscreen-table.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"fullscreen-table"))},71339:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(18387),l=i(96320),c=i(18638),u=i(1453),d=i(88355),p=i(94636),h=i(43380),m=i(12336),g=i(65258),f=i(843),_=i(18162),y=i(53653),b=i(85671);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #s=(()=>dt7948.g(this.prototype,"selectedBadgeId",[n.tracked],function(){return null}))();#sx=(()=>void dt7948.i(this,"selectedBadgeId"))();static #l=(()=>dt7948.g(this.prototype,"flash",[n.tracked],function(){return null}))();#t7=(()=>void dt7948.i(this,"flash"))();static #c=(()=>dt7948.g(this.prototype,"flashType",[n.tracked],function(){return null}))();#sA=(()=>void dt7948.i(this,"flashType"))();static #u=(()=>dt7948.g(this.prototype,"allBadges",[n.tracked],function(){return[]}))();#sE=(()=>void dt7948.i(this,"allBadges"))();static #d=(()=>dt7948.g(this.prototype,"userBadges",[n.tracked],function(){return[]}))();#sD=(()=>void dt7948.i(this,"userBadges"))();static #p=(()=>dt7948.g(this.prototype,"availableBadges",[n.tracked],function(){return[]}))();#sP=(()=>void dt7948.i(this,"availableBadges"))();get noAvailableBadges(){this.availableBadges.length}get post(){return this.args.model.selectedPost}get buttonDisabled(){return this.saving||!(0,h.isBadgeGrantable)(this.selectedBadgeId,this.availableBadges)}#sM(){this.availableBadges=(0,h.grantableBadges)(this.allBadges,this.userBadges)}async loadBadges(){this.loading=!0;try{this.allBadges=await m.default.findAll(),this.userBadges=await g.default.findByUsername(this.post.username),this.#sM()}catch(e){this.flash=(0,d.extractError)(e),this.flashType="error"}finally{this.loading=!1}}static #h=(()=>dt7948.n(this.prototype,"loadBadges",[o.action]))();async performGrantBadge(){try{this.saving=!0;let e=this.post.username,t=await g.default.grant(this.selectedBadgeId,e,(0,p.default)(this.post.url));this.userBadges.pushObject(t),this.#sM(),this.selectedBadgeId=null,this.flash=(0,f.i18n)("badges.successfully_granted",{username:e,badge:t.get("badge.name")}),this.flashType="success"}catch(e){this.flash=(0,d.extractError)(e),this.flashType="error"}finally{this.saving=!1}}static #m=(()=>dt7948.n(this.prototype,"performGrantBadge",[o.action]))();static #g=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"gSjxXpbe",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"grant-badge-modal"],[4,[32,2],[[30,0,["loadBadges"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType","@title"],["grant-badge",[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[32,1],["admin.badges.grant_badge"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["noAvailableBadges"]],[[[1," "],[10,2],[12],[1,[28,[32,1],["admin.badges.no_badges"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,4],null,[["@value","@content","@onChange","@options"],[[30,0,["selectedBadgeId"]],[30,0,["availableBadges"]],[28,[32,5],[[28,[31,1],[[30,0,["selectedBadgeId"]]],null]],null],[28,[32,6],null,[["filterable","none"],[true,"badges.none"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,7],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["performGrantBadge"]],"admin.badges.grant"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/grant-badge.js",scope:()=>[u.default,f.i18n,a.default,l.default,_.default,r.fn,r.hash,c.default],isStrictMode:!0}),this))()}},240:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(75983),l=i(88355),c=i(42236),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"5enmeuay",block:'[[[8,[39,0],[[24,0,"group-add-members-modal"]],[["@title","@closeModal","@flash"],[[30,0,["title"]],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[14,0,"form-vertical group-add-members"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,4],["groups.add_members.description"],null]],[13],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,6],null,[["@value","@onChange","@options"],[[30,0,["usernamesAndEmails"]],[30,0,["setUsernamesAndEmails"]],[28,[37,7],null,[["allowEmails","filterPlaceholder"],[[30,0,["currentUser","can_invite_to_forum"]],[52,[30,0,["currentUser","can_invite_to_forum"]],"groups.add_members.usernames_or_emails_placeholder","groups.add_members.usernames_placeholder"]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["can_admin_group"]],[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[24,1,"set-owner"],[16,"disabled",[30,0,["emails"]]]],[["@type","@checked"],["checkbox",[30,0,["setOwner"]]]],null],[1,"\\n "],[1,[28,[35,4],["groups.add_members.set_owner"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[16,"disabled",[28,[37,11],[[28,[37,12],[[30,0,["usernames"]]],null],[30,0,["emails"]]],null]]],[["@type","@checked"],["checkbox",[30,0,["notifyUsers"]]]],null],[1,"\\n "],[1,[28,[35,4],["groups.add_members.notify_users"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],[[24,0,"add btn-primary"]],[["@action","@icon","@disabled","@label"],[[30,0,["addMembers"]],"plus",[28,[37,15],[[30,0,["loading"]],[28,[37,12],[[30,0,["usernamesAndEmails"]]],null]],null],"groups.add"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal",":body","form","p","i18n","div","email-group-user-chooser","hash","if","label","input","and","not",":footer","d-button","or"]]',moduleName:"discourse/components/modal/group-add-members.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"setOwner",[n.tracked],function(){return!1}))();#sF=(()=>void dt7948.i(this,"setOwner"))();static #c=(()=>dt7948.g(this.prototype,"notifyUsers",[n.tracked],function(){return!1}))();#sI=(()=>void dt7948.i(this,"notifyUsers"))();static #u=(()=>dt7948.g(this.prototype,"usernamesAndEmails",[n.tracked],function(){return[]}))();#sN=(()=>void dt7948.i(this,"usernamesAndEmails"))();static #d=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();get title(){return(0,u.i18n)("groups.add_members.title",{group_name:this.args.model.fullName||this.args.model.name})}get usernames(){return this.usernamesAndEmails.reject(c.emailValid).join(",")}get emails(){return this.usernamesAndEmails.filter(c.emailValid).join(",")}setUsernamesAndEmails(e){this.usernamesAndEmails=e,this.emails&&(this.usernames||(this.notifyUsers=!1),this.setOwner=!1)}static #p=(()=>dt7948.n(this.prototype,"setUsernamesAndEmails",[r.action]))();async addMembers(){if(!(0,a.isEmpty)(this.usernamesAndEmails)){this.loading=!0;try{this.setOwner?await this.args.model.addOwners(this.usernames,!0,this.notifyUsers):await this.args.model.addMembers(this.usernames,!0,this.notifyUsers,this.emails),this.router.transitionTo("group.members",this.args.model.name,{queryParams:{...this.usernames&&{filter:this.usernames}}}),this.args.closeModal()}catch(e){this.flash=(0,l.extractError)(e)}finally{this.loading=!1}}}static #h=(()=>dt7948.n(this.prototype,"addMembers",[r.action]))()}(0,p.setComponentTemplate)(d,h)},36453:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(35533);let r=(0,i(85671).createTemplateFactory)({id:"A6IluIwS",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["groups.default_notifications.modal_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,1],["groups.default_notifications.modal_description"],[["count"],[[30,2,["count"]]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["updateExistingUsers"]],"groups.default_notifications.modal_yes"]],null],[1,"\\n "],[8,[39,4],null,[["@action","@label"],[[30,0,["cancel"]],"groups.default_notifications.modal_no"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body",":footer","d-button"]]',moduleName:"discourse/components/modal/group-default-notifications.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{updateExistingUsers(){this.args.model.setUpdateExistingUsers(!0),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"updateExistingUsers",[n.action]))();cancel(){this.args.model.setUpdateExistingUsers(!1),this.args.closeModal()}static #i=(()=>dt7948.n(this.prototype,"cancel",[n.action]))()}(0,o.setComponentTemplate)(r,a)},99450:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18385),l=i(51429),c=i(50409),u=i(1559),d=i(89277),p=i(843);let h=(0,i(85671).createTemplateFactory)({id:"GTSPlCJT",block:'[[[8,[39,0],[[16,0,[29,["history-modal -max ",[28,[37,1],["--mode-",[28,[37,2],[[30,0,["viewMode"]]],null]],null]]]]],[["@title","@closeModal"],[[28,[37,3],[[30,0,["modalTitleKey"]]],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[8,[39,5],null,[["@condition"],[[30,0,["initialLoad"]]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@model","@previousCategory","@currentCategory","@displayInline","@displaySideBySide","@displaySideBySideMarkdown","@viewMode"],[[30,0,["postRevision"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["displayInline"]],[30,0,["displaySideBySide"]],[30,0,["displaySideBySideMarkdown"]],[30,0,["viewMode"]]]],null],[1,"\\n "],[8,[39,7],null,[["@model","@hiddenClasses","@mobileView","@userChanges","@previousCategory","@currentCategory","@previousTagChanges","@currentTagChanges","@bodyDiffHTML","@bodyDiff","@calculateBodyDiff","@titleDiff","@viewMode"],[[30,0,["postRevision"]],[30,0,["hiddenClasses"]],[30,0,["site","mobileView"]],[30,0,["user_changes"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["previousTagChanges"]],[30,0,["currentTagChanges"]],[30,0,["bodyDiffHTML"]],[30,0,["bodyDiff"]],[30,0,["calculateBodyDiff"]],[30,0,["titleDiff"]],[30,0,["viewMode"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,2,["editPost"]],[[[1," "],[8,[39,10],null,[["@model","@loadFirstVersion","@loadPreviousVersion","@loadNextVersion","@loadLastVersion","@displayEdit","@editPost","@editButtonLabel","@revertToVersion","@hideVersion","@showVersion","@permanentlyDeleteVersions","@loading","@canPermanentlyDelete","@loadFirstDisabled","@loadPreviousDisabled","@displayRevisions","@revisionsText","@loadNextDisabled","@loadLastDisabled","@revertToRevisionText","@isStaff"],[[30,0,["postRevision"]],[30,0,["loadFirstVersion"]],[30,0,["loadPreviousVersion"]],[30,0,["loadNextVersion"]],[30,0,["loadLastVersion"]],[30,0,["displayEdit"]],[30,0,["editPost"]],[30,0,["editButtonLabel"]],[30,0,["revertToVersion"]],[30,0,["hideVersion"]],[30,0,["showVersion"]],[30,0,["permanentlyDeleteVersions"]],[30,0,["loading"]],[30,0,["siteSettings","can_permanently_delete"]],[30,0,["loadFirstDisabled"]],[30,0,["loadPreviousDisabled"]],[30,0,["displayRevisions"]],[30,0,["revisionsText"]],[30,0,["loadNextDisabled"]],[30,0,["loadLastDisabled"]],[30,0,["revertToRevisionText"]],[30,0,["currentUser","staff"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","concat","dasherize","i18n",":body","conditional-loading-spinner","modal/history/revision","modal/history/revisions",":footer","if","modal/history/topic-footer"]]',moduleName:"discourse/components/modal/history.hbs",isStrictMode:!1});var m=i(53653);function g(e){return e?(Array.isArray(e)||(e=[e]),e):[]}class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"loading",[n.tracked]))();#T=(()=>void dt7948.i(this,"loading"))();static #d=(()=>dt7948.g(this.prototype,"postRevision",[n.tracked]))();#sO=(()=>void dt7948.i(this,"postRevision"))();static #p=(()=>dt7948.g(this.prototype,"viewMode",[n.tracked],function(){return this.site.mobileView?"inline":"side_by_side"}))();#sL=(()=>void dt7948.i(this,"viewMode"))();static #h=(()=>dt7948.g(this.prototype,"bodyDiff",[n.tracked]))();#sR=(()=>void dt7948.i(this,"bodyDiff"))();static #m=(()=>dt7948.g(this.prototype,"initialLoad",[n.tracked],function(){return!0}))();#sU=(()=>void dt7948.i(this,"initialLoad"))();constructor(){super(...arguments),this.refresh(this.args.model.postId,this.args.model.postVersion)}get loadFirstDisabled(){return this.loading||this.postRevision?.current_revision<=this.postRevision?.first_revision}get loadPreviousDisabled(){return this.loading||!this.postRevision.previous_revision||!this.postRevision.previous_revision&&this.postRevision.current_revision<=this.postRevision.previous_revision}get loadNextDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get loadLastDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get displayRevisions(){return this.postRevision?.version_count>2}get modalTitleKey(){return this.args.model.post.version>100?"history_capped_revisions":"history"}get previousVersion(){return this.postRevision?.current_version?this.postRevision.current_version-1:null}get revisionsText(){return(0,p.i18n)("post.revisions.controls.comparing_previous_to_current_out_of_total",{previous:this.previousVersion,icon:(0,l.iconHTML)("left-right"),current:this.postRevision?.current_version,total:this.postRevision?.version_count})}get titleDiff(){let e=this.viewMode;return"side_by_side_markdown"===e&&(e="side_by_side"),this.postRevision?.title_changes?.[e]}get bodyDiffHTML(){return this.postRevision?.body_changes?.[this.viewMode]}async calculateBodyDiff(e,t){let i=t;"side_by_side_markdown"!==this.viewMode&&(i=await (0,c.sanitizeAsync)(i,{features:{editHistory:!0,historyOneboxes:!0},allowListed:{editHistory:{custom:(e,t)=>"class"===t},historyOneboxes:["header","article","div[style]"]}})),this.bodyDiff=i}static #g=(()=>dt7948.n(this.prototype,"calculateBodyDiff",[r.action]))();get previousTagChanges(){let e=g(this.postRevision.tags_changes.previous),t=new Set(g(this.postRevision.tags_changes.current));return e.map(e=>({name:e,deleted:!t.has(e)}))}get currentTagChanges(){let e=new Set(g(this.postRevision.tags_changes.previous));return g(this.postRevision.tags_changes.current).map(t=>({name:t,inserted:!e.has(t)}))}get createdAtDate(){return moment(this.postRevision.created_at).format("LLLL")}get displayEdit(){return!!(this.postRevision?.can_edit&&this.args.model.editPost&&this.postRevision?.last_revision===this.postRevision?.current_revision)}get revertToRevisionText(){if(this.previousVersion)return(0,p.i18n)("post.revisions.controls.revert",{revision:this.previousVersion})}async refresh(e,t){this.loading=!0;try{let i=await d.default.loadRevision(e,t);this.postRevision=i}catch(i){this.args.closeModal(),this.dialog.alert(i.jqXHR.responseJSON.errors[0]);let t=this.args.model.post?.topic?.postStream;if(!t)return;t.triggerChangedPost(e,this.args.model).then(()=>this.appEvents.trigger("post-stream:refresh",{id:e}))}finally{this.loading=!1,this.initialLoad=!1}}hide(e,t){d.default.hideRevision(e,t).then(()=>this.refresh(e,t))}show(e,t){d.default.showRevision(e,t).then(()=>this.refresh(e,t))}async revert(e,t){try{let i=await e.revertToRevision(t);this.refresh(e.id,t),i.topic&&(e.set("topic.slug",i.topic.slug),e.set("topic.title",i.topic.title),e.set("topic.fancy_title",i.topic.fancy_title)),i.category_id&&e.set("topic.category",await u.default.asyncFindById(i.category_id)),this.args.closeModal()}catch(e){e.jqXHR.responseJSON?.errors?.[0]&&this.dialog.alert(e.jqXHR.responseJSON.errors[0])}}get editButtonLabel(){return`post.revisions.controls.${this.postRevision.wiki?"edit_wiki":"edit_post"}`}get hiddenClasses(){if("inline"===this.viewMode)return this.postRevision?.previous_hidden||this.postRevision?.current_hidden?"hidden-revision-either":null;{let e=[];return this.postRevision?.previous_hidden&&e.push("hidden-revision-previous"),this.postRevision?.current_hidden&&e.push("hidden-revision-current"),e.join(" ")}}get previousCategory(){if(this.postRevision?.category_id_changes?.previous){let e=u.default.findById(this.postRevision.category_id_changes.previous);return(0,a.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-del"})}}get currentCategory(){if(this.postRevision?.category_id_changes?.current){let e=u.default.findById(this.postRevision.category_id_changes.current);return(0,a.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-ins"})}}displayInline(e){e?.preventDefault(),this.viewMode="inline"}static #A=(()=>dt7948.n(this.prototype,"displayInline",[r.action]))();displaySideBySide(e){e?.preventDefault(),this.viewMode="side_by_side"}static #E=(()=>dt7948.n(this.prototype,"displaySideBySide",[r.action]))();displaySideBySideMarkdown(e){e?.preventDefault(),this.viewMode="side_by_side_markdown"}static #D=(()=>dt7948.n(this.prototype,"displaySideBySideMarkdown",[r.action]))();loadFirstVersion(){this.refresh(this.postRevision.post_id,this.postRevision.first_revision)}static #P=(()=>dt7948.n(this.prototype,"loadFirstVersion",[r.action]))();loadPreviousVersion(){this.refresh(this.postRevision.post_id,this.postRevision.previous_revision)}static #Q=(()=>dt7948.n(this.prototype,"loadPreviousVersion",[r.action]))();loadNextVersion(){this.refresh(this.postRevision.post_id,this.postRevision.next_revision)}static #J=(()=>dt7948.n(this.prototype,"loadNextVersion",[r.action]))();loadLastVersion(){return this.refresh(this.postRevision.post_id,this.postRevision.last_revision)}static #X=(()=>dt7948.n(this.prototype,"loadLastVersion",[r.action]))();hideVersion(){this.hide(this.postRevision.post_id,this.postRevision.current_revision)}static #Z=(()=>dt7948.n(this.prototype,"hideVersion",[r.action]))();permanentlyDeleteVersions(){this.dialog.yesNoConfirm({message:(0,p.i18n)("post.revisions.controls.destroy_confirm"),didConfirm:()=>{d.default.permanentlyDeleteRevisions(this.postRevision.post_id).then(()=>{this.args.closeModal()})}})}static #ee=(()=>dt7948.n(this.prototype,"permanentlyDeleteVersions",[r.action]))();showVersion(){this.show(this.postRevision.post_id,this.postRevision.current_revision)}static #et=(()=>dt7948.n(this.prototype,"showVersion",[r.action]))();editPost(){this.args.model.editPost(this.args.model.post),this.args.closeModal()}static #ei=(()=>dt7948.n(this.prototype,"editPost",[r.action]))();revertToVersion(){this.revert(this.args.model.post,this.postRevision.current_revision)}static #es=(()=>dt7948.n(this.prototype,"revertToVersion",[r.action]))()}(0,m.setComponentTemplate)(h,f)},66962:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"GDCQ74R9",block:'[[[10,0],[14,1,"revision"],[12],[1,"\\n "],[10,0],[14,1,"revision-details"],[12],[1,"\\n "],[1,[28,[35,1],["pencil"],null]],[1,"\\n "],[8,[39,2],[[24,0,"revision-details__user"]],[["@route","@model"],["user",[30,1,["username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,1,["avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["revision-user-details-after",[28,[37,5],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[10,1],[14,0,"date"],[12],[1,[28,[35,7],[[30,1,["created_at"]]],null]],[13],[1,"\\n"],[41,[30,1,["edit_reason"]],[[[1," "],[10,1],[14,0,"edit-reason"],[12],[1,[30,1,["edit_reason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,1],[12],[1,"\\n"],[41,[30,1,["user_changes"]],[[[1," "],[1,[28,[35,3],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n →\\n "],[1,[28,[35,3],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["wiki_changes"]],[[[1," "],[1,[28,[35,1],["far-pen-to-square"],[["class"],[[52,[30,1,["wiki_changes","current"]],"diff-ins","diff-del"]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["post_type_changes"]],[[[1," "],[1,[28,[35,1],["shield-halved"],[["class"],[[52,[28,[37,9],[[30,1,["post_type_changes","current"]],[30,2,["post_types","moderator_action"]]],null],"diff-del","diff-ins"]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["archetype_changes"]],[[[1," "],[1,[28,[35,1],[[52,[28,[37,9],[[30,1,["archetype_changes","current"]],"private_message"],null],"envelope","comment"]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,10],[[30,1,["category_id_changes"]],[28,[37,11],[[30,1,["archetype_changes"]]],null]],null],[[[41,[30,3],[[[1," "],[1,[28,[35,12],[[30,3]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["far-eye-slash"],[["class"],["diff-del"]]]],[1,"\\n"]],[]]],[1," →\\n"],[41,[30,4],[[[1," "],[1,[28,[35,12],[[30,4]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["far-eye-slash"],[["class"],["diff-ins"]]]],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,1,"display-modes"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["inline-mode",[52,[28,[37,9],[[30,5],"inline"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.inline.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.inline.title"],null]],[4,[38,18],["click",[30,6]],null],[12],[1,"\\n "],[1,[28,[35,1],["far-square"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.inline.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["side-by-side-mode",[52,[28,[37,9],[[30,5],"side_by_side"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.side_by_side.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.side_by_side.title"],null]],[4,[38,18],["click",[30,7]],null],[12],[1,"\\n "],[1,[28,[35,1],["table-columns"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.side_by_side.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["side-by-side-markdown-mode",[52,[28,[37,9],[[30,5],"side_by_side_markdown"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.side_by_side_markdown.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.side_by_side_markdown.title"],null]],[4,[38,18],["click",[30,8]],null],[12],[1,"\\n "],[1,[28,[35,1],["table-columns"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.side_by_side_markdown.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@model","@site","@previousCategory","@currentCategory","@viewMode","@displayInline","@displaySideBySide","@displaySideBySideMarkdown"],false,["div","d-icon","link-to","bound-avatar-template","plugin-outlet","hash","span","bound-date","if","eq","and","not","html-safe","ul","li","a","concat-class","i18n","on"]]',moduleName:"discourse/components/modal/history/revision.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},77086:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"eeVFPmhy",block:'[[[10,0],[14,1,"revisions"],[15,"data-post-id",[30,1,["post_id"]]],[15,0,[30,2]],[12],[1,"\\n"],[41,[30,1,["title_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"h2"],[14,0,"revision__title"],[12],[1,[28,[35,3],[[30,3]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4],[[[41,[30,5],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,4],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n →\\n "],[1,[28,[35,4],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["wiki_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,5],["far-pen-to-square"],[["class"],[[52,[30,1,["wiki_changes","current"]],"diff-ins","diff-del"]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["archetype_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,5],[[52,[28,[37,6],[[30,1,["archetype_changes","current"]],"private_message"],null],"envelope","comment"]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,7],[[30,1,["category_id_changes"]],[28,[37,8],[[30,1,["archetype_changes"]]],null]],null],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n"],[41,[30,6],[[[1," "],[1,[28,[35,3],[[30,6]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],["far-eye-slash"],[["class"],["diff-del"]]]],[1,"\\n"]],[]]],[1," →\\n"],[41,[30,7],[[[1," "],[1,[28,[35,3],[[30,7]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],["far-eye-slash"],[["class"],["diff-ins"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,1,["tags_changes"]],[[[1," "],[10,0],[14,0,"row -tag-revisions"],[12],[1,"\\n "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,8]],null]],null],null,[[[1," "],[1,[28,[35,12],[[30,9,["name"]]],[["extraClass"],[[52,[30,9,["deleted"]],"diff-del"]]]]],[1,"\\n"]],[9]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,13],[[30,4],[28,[37,6],[[30,10],"inline"],null]],null],[[[1," → \\n"]],[]],null],[1," "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,11]],null]],null],null,[[[1," "],[1,[28,[35,12],[[30,12,["name"]]],[["extraClass"],[[52,[30,12,["inserted"]],"diff-ins"]]]]],[1,"\\n"]],[12]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["featured_link_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[30,1,["featured_link_changes","previous"]]],[1,"\\n →\\n "],[1,[30,1,["featured_link_changes","current"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["post-revisions","div",[28,[37,15],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,16],[[24,0,"row body-diff"],[4,[38,17],[[30,13],[30,14]],null],[4,[38,18],[[30,13],[30,14]],null]],null,[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,15]],null]],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["@model","@hiddenClasses","@titleDiff","@mobileView","@userChanges","@previousCategory","@currentCategory","@previousTagChanges","t","@viewMode","@currentTagChanges","t","@calculateBodyDiff","@bodyDiffHTML","@bodyDiff"],false,["div","if","h2","html-safe","bound-avatar-template","d-icon","eq","and","not","span","each","-track-array","discourse-tag","or","plugin-outlet","hash","links-redirect","did-insert","did-update"]]',moduleName:"discourse/components/modal/history/revisions.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"revisions"))},44404:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"yHMr3PEq",block:'[[[10,0],[14,1,"revision-controls"],[12],[1,"\\n "],[10,0],[14,0,"revision-controls--back"],[12],[1,"\\n "],[8,[39,1],[[24,0,"btn-default first-revision"]],[["@action","@icon","@title","@disabled"],[[30,1],"backward-fast","post.revisions.controls.first",[30,2]]],null],[1,"\\n "],[8,[39,1],[[24,0,"btn-default previous-revision"]],[["@action","@icon","@title","@disabled"],[[30,3],"backward","post.revisions.controls.previous",[30,4]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"revision-numbers"],[15,0,[52,[51,[30,5]],"invisible"]],[12],[1,"\\n "],[8,[39,3],null,[["@condition","@size"],[[30,6],"small"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],[[30,7]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"revision-controls--forward"],[12],[1,"\\n "],[8,[39,1],[[24,0,"btn-default next-revision"]],[["@action","@icon","@title","@disabled"],[[30,8],"forward","post.revisions.controls.next",[30,9]]],null],[1,"\\n "],[8,[39,1],[[24,0,"btn-default last-revision"]],[["@action","@icon","@title","@disabled"],[[30,10],"forward-fast","post.revisions.controls.last",[30,11]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,1,"revision-footer-buttons"],[12],[1,"\\n"],[41,[30,12],[[[1," "],[8,[39,1],[[24,0,"btn-default edit-post"]],[["@action","@icon","@label"],[[30,13],"pencil",[30,14]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,15],[[[41,[30,16],[[[1," "],[8,[39,1],[[24,0,"btn-danger revert-to-version"]],[["@action","@icon","@translatedLabel","@disabled"],[[30,17],"arrow-rotate-left",[30,16],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,18,["previous_hidden"]],[[[1," "],[8,[39,1],[[24,0,"btn-default show-revision"]],[["@action","@icon","@label","@disabled"],[[30,19],"far-eye","post.revisions.controls.show",[30,6]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,1],[[24,0,"btn-danger hide-revision"]],[["@action","@icon","@label","@disabled"],[[30,20],"far-eye-slash","post.revisions.controls.hide",[30,6]]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[28,[37,6],[[30,21],[30,18,["previous_hidden"]]],null],[[[1," "],[8,[39,1],[[24,0,"btn-danger destroy-revision"]],[["@action","@icon","@label","@disabled"],[[30,22],"trash-can","post.revisions.controls.destroy",[30,6]]],null],[1,"\\n"]],[]],null]],[]],null],[13]],["@loadFirstVersion","@loadFirstDisabled","@loadPreviousVersion","@loadPreviousDisabled","@displayRevisions","@loading","@revisionsText","@loadNextVersion","@loadNextDisabled","@loadLastVersion","@loadLastDisabled","@displayEdit","@editPost","@editButtonLabel","@isStaff","@revertToRevisionText","@revertToVersion","@model","@showVersion","@hideVersion","@canPermanentlyDelete","@permanentlyDeleteVersions"],false,["div","d-button","unless","conditional-loading-spinner","html-safe","if","and"]]',moduleName:"discourse/components/modal/history/topic-footer.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"topic-footer"))},41480:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(88355),l=i(66914),c=i(59864),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"Z3oiVFrv",block:'[[[8,[39,0],[[24,0,"ignore-duration-with-username-modal"]],[["@closeModal","@title","@flash","@autoFocus"],[[30,1],[28,[37,1],["user.user_notifications.ignore_duration_title"],null],[30,0,["flash"]],"false"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["enableSelection"]],[[[1," "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n "],[1,[28,[35,1],["user.user_notifications.ignore_duration_username"],null]],[13],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["ignoredUsername"]],[30,0,["updateIgnoredUsername"]],[28,[37,8],null,[["excludeCurrentUser","maximum"],[true,1]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@label","@input","@customShortcuts","@includeDateTime","@onChangeInput"],["user.user_notifications.ignore_duration_when",[28,[37,10],[[30,0,["ignoredUntil"]]],null],[30,0,["timeShortcuts"]],false,[28,[37,11],[[28,[37,12],[[30,0,["ignoredUntil"]]],null]],null]]],null],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.user_notifications.ignore_duration_note"],null]],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,15],[[24,0,"btn-primary"]],[["@disabled","@label","@action"],[[30,0,["saveDisabled"]],"user.user_notifications.ignore_duration_save",[30,0,["ignore"]]]],null],[1,"\\n "],[8,[39,16],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","div","label","d-icon","email-group-user-chooser","hash","future-date-input","readonly","fn","mut","p",":footer","d-button","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/ignore-duration-with-username.hbs",isStrictMode:!1});var p=i(53653);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();static #s=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"ignoredUntil",[n.tracked],function(){return null}))();#sj=(()=>void dt7948.i(this,"ignoredUntil"))();static #c=(()=>dt7948.g(this.prototype,"ignoredUsername",[n.tracked],function(){return this.args.model.ignoredUsername}))();#sB=(()=>void dt7948.i(this,"ignoredUsername"))();enableSelection=(()=>this.args.model.enableSelection??!0)();get timeShortcuts(){let e=this.currentUser.user_option.timezone,t=(0,l.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]}ignore(){if(!this.ignoredUntil||!this.ignoredUsername){this.flash=(0,u.i18n)("user.user_notifications.ignore_duration_time_frame_required");return}this.loading=!0,c.default.findByUsername(this.ignoredUsername).then(e=>{e.updateNotificationLevel({level:"ignore",expiringAt:this.ignoredUntil,actingUser:this.args.model.actingUser}).then(()=>{this.args.model.onUserIgnored?.(this.ignoredUsername),this.args.closeModal()}).catch(a.popupAjaxError).finally(()=>this.loading=!1)})}static #u=(()=>dt7948.n(this.prototype,"ignore",[r.action]))();updateIgnoredUsername(e){this.ignoredUsername=e.firstObject}static #d=(()=>dt7948.n(this.prototype,"updateIgnoredUsername",[r.action]))()}(0,p.setComponentTemplate)(d,h)},22381:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(62053),l=i(75983),c=i(18638),u=i(1453),d=i(40121),p=i(18385),h=i(23245),m=i(43006),g=i(46153),f=i(46301),_=i(98802),y=i(87353),b=i(843),w=i(53653),k=i(85671);class T extends s.default{static #e=(()=>dt7948.g(this.prototype,"linkText",[n.tracked],function(){return this.args.model.linkText}))();#s$=(()=>void dt7948.i(this,"linkText"))();static #i=(()=>dt7948.g(this.prototype,"linkUrl",[n.tracked],function(){return""}))();#sq=(()=>void dt7948.i(this,"linkUrl"))();static #s=(()=>dt7948.g(this.prototype,"selectedRow",[n.tracked],function(){return -1}))();#sV=(()=>void dt7948.i(this,"selectedRow"))();static #l=(()=>dt7948.g(this.prototype,"searchResults",[n.tracked],function(){return[]}))();#sH=(()=>void dt7948.i(this,"searchResults"))();static #c=(()=>dt7948.g(this.prototype,"searchLoading",[n.tracked],function(){return!1}))();#sz=(()=>void dt7948.i(this,"searchLoading"))();_debounced;_activeSearch;willDestroy(){super.willDestroy(...arguments),(0,a.cancel)(this._debounced)}highlightRow(e,t){let i="down"===t?this.selectedRow+1:this.selectedRow-1;i>-1&&i-1){let t=document.querySelectorAll(".internal-link-results .search-link")[this.selectedRow];this.selectLink(t),e.preventDefault(),e.stopPropagation()}break;case"Escape":this.searchResults.length?(this.searchResults=[],e.preventDefault(),e.stopPropagation()):(this.args.closeModal(),document.querySelector(".d-editor-input")?.focus())}}static #u=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();mouseDown(e){e.target.closest(".inputs")||(this.searchResults=[])}static #d=(()=>dt7948.n(this.prototype,"mouseDown",[o.action]))();ok(){let e=this.linkUrl,t=(0,y.prefixProtocol)(e),i=this.args.model.toolbarEvent.selected;if((0,l.isEmpty)(t))return;let s=this.linkText||"";s.length?this.args.model.toolbarEvent.addText(`[${s}](${t})`):i.value?this.args.model.toolbarEvent.addText(`[${i.value}](${t})`):(this.args.model.toolbarEvent.addText(`[${e}](${t})`),this.args.model.toolbarEvent.selectText(i.start+1,e.length)),this.args.closeModal()}static #p=(()=>dt7948.n(this.prototype,"ok",[o.action]))();linkClick(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.stopPropagation(),this.selectLink(e.target.closest(".search-link")))}static #h=(()=>dt7948.n(this.prototype,"linkClick",[o.action]))();updateLinkText(e){this.linkText=e.target.value}static #m=(()=>dt7948.n(this.prototype,"updateLinkText",[o.action]))();search(e){this.linkUrl=e.target.value,this._debounced=(0,f.default)(this,this.triggerSearch,400)}static #g=(()=>dt7948.n(this.prototype,"search",[o.action]))();static #A=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"qz1KET10",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[24,0,"insert-hyperlink-modal"],[4,[32,2],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],["mousedown",[30,0,["mouseDown"]]],null]],[["@closeModal","@title","@bodyClass"],[[30,1],[28,[32,1],["composer.link_dialog_title"],null],"insert-link"]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"inputs"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["linkUrl"]]],[16,"placeholder",[28,[32,1],["composer.link_url_placeholder"],null]],[24,"autofocus","autofocus"],[24,0,"link-url"],[24,4,"text"],[4,[32,2],["input",[30,0,["search"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["searchLoading"]],[[[1," "],[1,[32,3]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["searchResults"]],[[[1," "],[10,0],[14,0,"internal-link-results"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["searchResults"]]],null]],null],null,[[[1," "],[11,3],[16,6,[30,2,["url"]]],[16,"data-title",[30,2,["fancy_title"]]],[24,0,"search-link"],[4,[32,2],["click",[30,0,["linkClick"]]],null],[12],[1,"\\n "],[8,[32,4],null,[["@topic","@disableActions"],[[30,2],true]],null],[1,"\\n "],[1,[28,[32,5],[[30,2,["title"]]],null]],[1,"\\n "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,2,["category","parentCategory"]],[[[1," "],[1,[28,[32,6],[[30,2,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,6],[[30,2,["category"]]],[["hideParent"],[true]]]],[1,"\\n "],[1,[28,[32,7],[[30,2]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"inputs"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["linkText"]]],[16,"placeholder",[28,[32,1],["composer.link_optional_text"],null]],[24,0,"link-text"],[24,4,"text"],[4,[32,2],["input",[30,0,["updateLinkText"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["ok"]],"composer.modal_ok"]],null],[1,"\\n\\n "],[8,[32,8],[[24,0,"btn-danger"]],[["@action","@label"],[[30,1],"composer.cancel"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","result"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/insert-hyperlink.js",scope:()=>[u.default,b.i18n,r.on,m.default,d.default,g.default,p.default,h.default,c.default],isStrictMode:!0}),this))()}},77499:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(983),a=i(83236),l=i(51429);let c=(0,i(85671).createTemplateFactory)({id:"IpmsRUEm",block:'[[[8,[39,0],[[24,0,"json-schema-editor-modal"]],[["@flash","@flashType","@closeModal","@title","@inline"],[[30,0,["flash"]],[30,0,["flashType"]],[30,1],[28,[37,1],["admin.site_settings.json_schema.modal_title"],[["name"],[[30,2,["settingName"]]]]],[30,3]]],[["body","footer"],[[[[1,"\\n "],[11,0],[24,1,"json-editor-holder"],[4,[38,4],[[30,0,["buildJsonEditor"]]],null],[4,[38,5],[[30,0,["teardownJsonEditor"]]],null],[12],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["saveChanges"]],"save"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model","@inline"],false,["d-modal","i18n",":body","div","did-insert","will-destroy",":footer","d-button"]]',moduleName:"discourse/components/modal/json-schema-editor.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"editor",[n.tracked],function(){return null}))();#sW=(()=>void dt7948.i(this,"editor"))();static #i=(()=>dt7948.g(this.prototype,"value",[n.tracked],function(){return this.args.model.value}))();#td=(()=>void dt7948.i(this,"value"))();static #s=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();static #l=(()=>dt7948.g(this.prototype,"flashType",[n.tracked]))();#sA=(()=>void dt7948.i(this,"flashType"))();get settingName(){return this.args.model.settingName.replace(/\_/g," ")}teardownJsonEditor(){this.editor?.destroy()}static #c=(()=>dt7948.n(this.prototype,"teardownJsonEditor",[r.action]))();saveChanges(){let e=this.editor.validate();e.length?(this.flash=e.mapBy("message").join("\n"),this.flashType="error"):(this.value=JSON.stringify(this.editor.getValue()),this.args.model.updateValue(this.value),this.args.closeModal())}static #u=(()=>dt7948.n(this.prototype,"saveChanges",[r.action]))();async buildJsonEditor(e){let t=i.e(195).then(i.t.bind(i,29195,23));(0,o.YZ)(t);let{JSONEditor:s}=await t;s.defaults.options.theme="barebones",s.defaults.iconlibs={discourseIcons:p},s.defaults.options.iconlib="discourseIcons",this.editor=new s(e,{schema:this.args.model.jsonSchema,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,disable_array_reorder:!1,disable_array_copy:!1,enable_array_copy:!0,disable_edit_json:!0,disable_properties:!0,disable_collapse:!1,show_errors:"never",startval:this.value?JSON.parse(this.value):null})}static #d=(()=>dt7948.n(this.prototype,"buildJsonEditor",[r.action]))()}class p{constructor(){this.mapping={delete:"trash-can",add:"plus",moveup:"arrow-up",movedown:"arrow-down",moveleft:"chevron-left",moveright:"chevron-right",copy:"copy",collapse:"chevron-down",expand:"chevron-up"}}getIcon(e){if(this.mapping[e])return(0,a.create)((0,l.iconNode)(this.mapping[e]))}}(0,u.setComponentTemplate)(c,d)},63568:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(53653),o=i(35533),a=i(18638),l=i(1453),c=i(38108),u=i(44481),d=i(843),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"postNumber",[n.tracked]))();#sK=(()=>void dt7948.i(this,"postNumber"))();static #i=(()=>dt7948.g(this.prototype,"postDate",[n.tracked]))();#sG=(()=>void dt7948.i(this,"postDate"))();get filteredPostsCount(){return this.args.model.topic.postStream.filteredPostsCount}_jumpToIndex(e,t){let i=Math.min(e,Math.max(1,parseInt(t,10)));this.args.model.jumpToIndex(i),this.args.closeModal()}_jumpToDate(e){this.args.model.jumpToDate(e),this.args.closeModal()}jump(){this.postNumber?this._jumpToIndex(this.filteredPostsCount,this.postNumber):this.postDate&&this._jumpToDate(this.postDate)}static #s=(()=>dt7948.n(this.prototype,"jump",[o.action]))();static #l=(()=>(0,r.setComponentTemplate)((0,p.createTemplateFactory)({id:"zitYFw1v",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"jump-to-post-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],["topic.progress.jump_prompt_long"],null]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"jump-to-post-form"],[12],[1,"\\n "],[10,0],[14,0,"jump-to-post-control"],[12],[1,"\\n "],[10,1],[14,0,"index"],[12],[1,"#"],[13],[1,"\\n "],[8,[32,2],[[24,"autofocus","true"],[24,1,"post-jump"]],[["@value","@type"],[[30,0,["postNumber"]],"number"]],null],[1,"\\n "],[10,1],[14,0,"input-hint-text post-number"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_of"],[["count"],[[30,0,["filteredPostsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"separator"],[12],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_or"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"hr"],[14,0,"right"],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"jump-to-date-control"],[12],[1,"\\n "],[10,1],[14,0,"input-hint-text post-date"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_to_date"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],[[24,1,"post-date"],[24,0,"date-input"]],[["@value","@defaultDate"],[[30,0,["postDate"]],"YYYY-MM-DD"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,4],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["jump"]],"composer.modal_ok"]],null],[1,"\\n "],[8,[32,5],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/jump-to-post.js",scope:()=>[l.default,d.i18n,r.Input,u.default,a.default,c.default],isStrictMode:!0}),this))()}},25150:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(80989),n=i(75446),r=i(83133),o=i(42256),a=i(1453),l=i(19905),c=i(42236),u=i(843),d=i(53653),p=i(85671);let h="keyboard_shortcuts_help",m=(0,u.i18n)("shortcut_modifier_key.shift"),g=(0,c.translateModKey)("Alt"),f=(0,c.translateModKey)("Meta"),_=(0,u.i18n)("shortcut_modifier_key.ctrl"),y=(0,u.i18n)("shortcut_modifier_key.enter"),b=(0,u.i18n)(`${h}.shortcut_key_delimiter_comma`),w=(0,u.i18n)(`${h}.shortcut_key_delimiter_plus`),k={shift:m,alt:g,meta:f,ctrl:_,enter:y,comma:b,plus:w};function T(e,t){return`${e}`}function S(e,t){let{keys1:i=[],keys2:s=[],keysDelimiter:n=b,shortcutsDelimiter:r="or"}=t,o={shortcut:function(e,t,i,s){let n=[e,t].reject(e=>0===e.length).map(e=>e.map(e=>`${e}`).join(i)).map(e=>"space"!==s&&"newline"!==s?T(e,s):e),[r,o]=n;return 1===n.length?r:"or"===s?(0,u.i18n)(`${h}.shortcut_delimiter_or`,{shortcut1:r,shortcut2:o}):"slash"===s?(0,u.i18n)(`${h}.shortcut_delimiter_slash`,{shortcut1:r,shortcut2:o}):"space"===s?T((0,u.i18n)(`${h}.shortcut_delimiter_space`,{shortcut1:r,shortcut2:o}),s):"newline"===s?T((0,u.i18n)(`${h}.shortcut_delimiter_newline`,{shortcut1:r,shortcut2:o}),s):void 0}(i,s,n,r)};return(0,u.i18n)(`${h}.${e}`,o)}class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get shortcuts(){let e={jump_to:{shortcuts:this._buildJumpToSection()},application:{shortcuts:{hamburger_menu:S("application.hamburger_menu",{keys1:["="]}),user_profile_menu:S("application.user_profile_menu",{keys1:["p"]}),create:S("application.create",{keys1:["c"]}),show_incoming_updated_topics:S("application.show_incoming_updated_topics",{keys1:["."]}),search:S("application.search",{keys1:["/"],keys2:[_,g,"f"],keysDelimiter:w}),filter_sidebar:S("application.filter_sidebar",{keys1:[f,"/"],keysDelimiter:w}),help:S("application.help",{keys1:["?"]}),bulk_select:S("application.toggle_bulk_select",{keys1:[m,"b"]}),dismiss:S("application.dismiss",{keys1:[m,"d"]}),x:S("application.x",{keys1:["x"]}),log_out:S("application.log_out",{keys1:[m,"z"],keys2:[m,"z"],keysDelimiter:w,shortcutsDelimiter:"space"})}},actions:{shortcuts:{bookmark_topic:S("actions.bookmark_topic",{keys1:["f"]}),reply_as_new_topic:S("actions.reply_as_new_topic",{keys1:["t"]}),reply_topic:S("actions.reply_topic",{keys1:[m,"r"],keysDelimiter:w}),reply_post:S("actions.reply_post",{keys1:["r"]}),quote_post:S("actions.quote_post",{keys1:["q"]}),pin_unpin_topic:S("actions.pin_unpin_topic",{keys1:[m,"p"],keysDelimiter:w}),share_topic:S("actions.share_topic",{keys1:[m,"s"],keysDelimiter:w}),share_post:S("actions.share_post",{keys1:["s"]}),like:S("actions.like",{keys1:["l"]}),flag:S("actions.flag",{keys1:["!"]}),bookmark:S("actions.bookmark",{keys1:["b"]}),edit:S("actions.edit",{keys1:["e"]}),delete:S("actions.delete",{keys1:["d"]}),mark_muted:S("actions.mark_muted",{keys1:["m","m"]}),mark_regular:S("actions.mark_regular",{keys1:["m","r"]}),mark_tracking:S("actions.mark_tracking",{keys1:["m","t"]}),mark_watching:S("actions.mark_watching",{keys1:["m","w"]}),print:S("actions.print",{keys1:[f,"p"],keysDelimiter:w}),defer:S("actions.defer",{keys1:[m,"u"],keysDelimiter:w}),topic_admin_actions:S("actions.topic_admin_actions",{keys1:[m,"a"],keysDelimiter:w}),archive_private_message:S("actions.archive_private_message",{keys1:["a"]})}},navigation:{shortcuts:{back:S("navigation.back",{keys1:["u"]}),jump:S("navigation.jump",{keys1:["#"]}),up_down:S("navigation.up_down",{keys1:["k"],keys2:["j"],shortcutsDelimiter:"slash"}),open:S("navigation.open",{keys1:["o"],keys2:[y]}),next_prev:S("navigation.next_prev",{keys1:[m,"j"],keys2:[m,"k"],keysDelimiter:w,shortcutsDelimiter:"slash"}),go_to_unread_post:S("navigation.go_to_unread_post",{keys1:[m,"l"],keysDelimiter:w})}},composing:{shortcuts:{return:S("composing.return",{keys1:[m,"c"],keysDelimiter:w}),fullscreen:S("composing.fullscreen",{keys1:[m,"F11"],keysDelimiter:w}),insertCurrentTime:S("composing.insert_current_time",{keys1:[f,m,"."],keysDelimiter:w})}},bookmarks:{shortcuts:{enter:S("bookmarks.enter",{keys1:[y]}),later_today:S("bookmarks.later_today",{keys1:["l","t"]}),later_this_week:S("bookmarks.later_this_week",{keys1:["l","w"]}),tomorrow:S("bookmarks.tomorrow",{keys1:["n","d"]}),next_business_week:S("bookmarks.next_business_week",{keys1:["n","b","w"]}),next_business_day:S("bookmarks.next_business_day",{keys1:["n","b","d"]}),custom:S("bookmarks.custom",{keys1:["c","r"]}),none:S("bookmarks.none",{keys1:["n","r"]}),delete:S("bookmarks.delete",{keys1:["d","d"]})}},search_menu:{shortcuts:{prev_next:S("search_menu.prev_next",{keys1:["↑"],keys2:["↓"],shortcutsDelimiter:"slash"}),insert_url:S("search_menu.insert_url",{keys1:["a"]}),full_page_search:S("search_menu.full_page_search",{keys1:[f,"Enter"],keysDelimiter:w})}}};return this._buildExtraShortcuts(e),this._addCountsToShortcutCategories(e),e}_buildExtraShortcuts(e){for(let[t,i]of Object.entries(l.extraKeyboardShortcutsHelp))i.forEach(i=>{e[t]||(e[t]={}),e[t].shortcuts||(e[t].shortcuts={}),e[t].shortcuts[i.name]=S(i.name,this._transformExtraDefinition(i.definition))})}_addCountsToShortcutCategories(e){for(let[t,i]of Object.entries(e))e[t].count=Object.keys(i.shortcuts).length}_transformExtraDefinition(e){return e.keys1&&(e.keys1=e.keys1.map(e=>this._translateKeys(e))),e.keys2&&(e.keys2=e.keys2.map(e=>this._translateKeys(e))),e.keysDelimiter&&(e.keysDelimiter=this._translateKeys(e.keysDelimiter)),e.shortcutsDelimiter&&(e.shortcutsDelimiter=this._translateKeys(e.shortcutsDelimiter)),e}_translateKeys(e){for(let[t,i]of Object.entries(k))e=e.replace(t,i);return e}_buildJumpToSection(){let e={home:S("jump_to.home",{keys1:["g","h"]}),latest:S("jump_to.latest",{keys1:["g","l"]}),new:S("jump_to.new",{keys1:["g","n"]}),unread:S("jump_to.unread",{keys1:["g","u"]}),categories:S("jump_to.categories",{keys1:["g","c"]}),top:S("jump_to.top",{keys1:["g","t"]}),bookmarks:S("jump_to.bookmarks",{keys1:["g","b"]}),profile:S("jump_to.profile",{keys1:["g","p"]})};return this.currentUser?.can_send_private_messages&&(e.messages=S("jump_to.messages",{keys1:["g","m"]})),Object.assign(e,{drafts:S("jump_to.drafts",{keys1:["g","d"]}),next:S("jump_to.next",{keys1:["g","j"]}),previous:S("jump_to.previous",{keys1:["g","k"]})}),e}static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"6iAKkCrE",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"keyboard-shortcuts-modal -max"]],[["@title","@closeModal"],[[28,[32,1],["keyboard_shortcuts_help.title"],null],[30,1]]],[["body"],[[[[1,"\\n "],[10,0],[14,1,"keyboard-shortcuts-help"],[12],[1,"\\n "],[10,0],[14,0,"keyboard-shortcuts-help__container"],[12],[1,"\\n "],[10,1],[14,"tabindex","0"],[12],[13],[1,"\\n"],[42,[28,[31,1],[[30,0,["shortcuts"]]],null],null,[[[1," "],[10,"section"],[15,0,[29,["shortcut-category span-",[30,2,["count"]],"\\n shortcut-category-",[30,3]]]],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[32,1],[[28,[32,2],["keyboard_shortcuts_help.",[30,3],".title"],null]],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,1],[[30,2,["shortcuts"]]],null],null,[[[1," "],[10,"li"],[12],[1,[28,[32,3],[[30,4]],null]],[13],[1,"\\n"]],[4,5]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","shortcutCategory","category","shortcut","name"],false,["each","-each-in"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/keyboard-shortcuts-help.js",scope:()=>[a.default,u.i18n,n.concat,o.htmlSafe],isStrictMode:!0}),this))()}},62121:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(83133),l=i(42256),c=i(75983),u=i(6864),d=i(88355),p=i(61004),h=i(84457),m=i(94636),g=i(97015),f=i(42236),_=i(98988),y=i(81386),b=i(59864),w=i(843),k=i(66726);let T=(0,i(85671).createTemplateFactory)({id:"nGxI/rC6",block:'[[[8,[39,0],[[24,0,"login-modal -large"],[4,[38,1],[[30,0,["preloadLogin"]]],null],[4,[38,2],["click",[30,0,["interceptResetLink"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType"],[[30,0,["modalBodyClasses"]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["body","footer"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n\\n"],[41,[30,0,["hasNoLoginOptions"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n "],[10,0],[14,0,"login-welcome-header no-login-methods-configured"],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,8],["login.no_login_methods.title"],null]],[13],[1,"\\n "],[10,"img"],[12],[13],[1,"\\n "],[10,2],[14,0,"login-subheader"],[12],[1,"\\n "],[1,[28,[35,11],[[28,[37,8],["login.no_login_methods.description",[28,[37,12],null,[["adminLoginPath"],[[30,0,["adminLoginPath"]]]]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,12],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1," "],[8,[39,14],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,12],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[39,15],null,[["@loginName","@loginNameChanged","@canLoginLocalWithEmail","@canUsePasskeys","@passkeyLogin","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@showSecurityKey","@otherMethodAllowed","@showSecondFactor","@handleForgotPassword","@login","@flashChanged","@flashTypeChanged","@securityKeyCredentialChanged"],[[30,0,["loginName"]],[30,0,["loginNameChanged"]],[30,0,["canLoginLocalWithEmail"]],[30,0,["canUsePasskeys"]],[30,0,["passkeyLogin"]],[30,0,["loginPassword"]],[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["totpEnabled"]],[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["otherMethodAllowed"]],[30,0,["showSecondFactor"]],[30,0,["handleForgotPassword"]],[30,0,["triggerLogin"]],[30,0,["flashChanged"]],[30,0,["flashTypeChanged"]],[30,0,["securityKeyCredentialChanged"]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[8,[39,16],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,17],[[30,0,["showLoginButtons"]],[30,0,["site","desktopView"]]],null],[[[41,[51,[30,0,["canLoginLocal"]]],[[[1," "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[1," "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,14],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[51,[30,0,["hasNoLoginOptions"]]],[[[1," "],[8,[39,16],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","did-insert","on",":body","plugin-outlet","if","div","h1","i18n","img","p","html-safe","hash","welcome-header","login-buttons","local-login-form","login-page-cta","and","unless",":footer"]]',moduleName:"discourse/components/modal/login.hbs",isStrictMode:!1});var S=i(53653);class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"login",[a.service]))();#t2=(()=>void dt7948.i(this,"login"))();static #u=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #d=(()=>dt7948.g(this.prototype,"loggingIn",[n.tracked],function(){return!1}))();#sY=(()=>void dt7948.i(this,"loggingIn"))();static #p=(()=>dt7948.g(this.prototype,"loggedIn",[n.tracked],function(){return!1}))();#sQ=(()=>void dt7948.i(this,"loggedIn"))();static #h=(()=>dt7948.g(this.prototype,"showLoginButtons",[n.tracked],function(){return!0}))();#sJ=(()=>void dt7948.i(this,"showLoginButtons"))();static #m=(()=>dt7948.g(this.prototype,"showSecondFactor",[n.tracked],function(){return!1}))();#sX=(()=>void dt7948.i(this,"showSecondFactor"))();static #g=(()=>dt7948.g(this.prototype,"loginPassword",[n.tracked],function(){return""}))();#sZ=(()=>void dt7948.i(this,"loginPassword"))();static #A=(()=>dt7948.g(this.prototype,"loginName",[n.tracked],function(){return""}))();#s1=(()=>void dt7948.i(this,"loginName"))();static #E=(()=>dt7948.g(this.prototype,"flash",[n.tracked],function(){return this.args.model.flash}))();#t7=(()=>void dt7948.i(this,"flash"))();static #D=(()=>dt7948.g(this.prototype,"flashType",[n.tracked],function(){return this.args.model.flashType}))();#sA=(()=>void dt7948.i(this,"flashType"))();static #P=(()=>dt7948.g(this.prototype,"canLoginLocal",[n.tracked],function(){return this.siteSettings.enable_local_logins}))();#s0=(()=>void dt7948.i(this,"canLoginLocal"))();static #Q=(()=>dt7948.g(this.prototype,"canLoginLocalWithEmail",[n.tracked],function(){return this.siteSettings.enable_local_logins_via_email}))();#s3=(()=>void dt7948.i(this,"canLoginLocalWithEmail"))();static #J=(()=>dt7948.g(this.prototype,"secondFactorMethod",[n.tracked],function(){return b.SECOND_FACTOR_METHODS.TOTP}))();#s8=(()=>void dt7948.i(this,"secondFactorMethod"))();static #X=(()=>dt7948.g(this.prototype,"securityKeyCredential",[n.tracked]))();#s2=(()=>void dt7948.i(this,"securityKeyCredential"))();static #Z=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[n.tracked]))();#s4=(()=>void dt7948.i(this,"otherMethodAllowed"))();static #ee=(()=>dt7948.g(this.prototype,"secondFactorRequired",[n.tracked]))();#s7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #et=(()=>dt7948.g(this.prototype,"backupEnabled",[n.tracked]))();#s9=(()=>void dt7948.i(this,"backupEnabled"))();static #ei=(()=>dt7948.g(this.prototype,"totpEnabled",[n.tracked]))();#s5=(()=>void dt7948.i(this,"totpEnabled"))();static #es=(()=>dt7948.g(this.prototype,"showSecurityKey",[n.tracked]))();#s6=(()=>void dt7948.i(this,"showSecurityKey"))();static #en=(()=>dt7948.g(this.prototype,"securityKeyChallenge",[n.tracked]))();#ne=(()=>void dt7948.i(this,"securityKeyChallenge"))();static #er=(()=>dt7948.g(this.prototype,"securityKeyAllowedCredentialIds",[n.tracked]))();#nt=(()=>void dt7948.i(this,"securityKeyAllowedCredentialIds"))();static #eo=(()=>dt7948.g(this.prototype,"secondFactorToken",[n.tracked]))();#ni=(()=>void dt7948.i(this,"secondFactorToken"))();get awaitingApproval(){return this.args.model.awaitingApproval&&!this.canLoginLocal&&!this.canLoginLocalWithEmail}get loginDisabled(){return this.loggingIn||this.loggedIn}get modalBodyClasses(){let e=["login-modal-body"];return this.awaitingApproval&&e.push("awaiting-approval"),!this.hasAtLeastOneLoginButton||this.showSecondFactor||this.showSecurityKey||e.push("has-alt-auth"),this.canLoginLocal||e.push("no-local-login"),(this.showSecondFactor||this.showSecurityKey)&&e.push("second-factor"),e.join(" ")}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,_.isWebauthnSupported)()}get hasAtLeastOneLoginButton(){return(0,y.findAll)().length>0||this.canUsePasskeys}get hasNoLoginOptions(){return!this.hasAtLeastOneLoginButton&&!this.canLoginLocal}get loginButtonLabel(){return this.loggingIn?"login.logging_in":"login.title"}get showSignupLink(){return this.args.model.canSignUp&&!this.showSecondFactor}get adminLoginPath(){return(0,m.default)("/u/admin-login")}async passkeyLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"optional";try{let t=await (0,_.getPasskeyCredential)(e=>this.dialog.alert(e),e,this.capabilities.isFirefox);if(t){let e=await (0,u.ajax)("/session/passkey/auth.json",{type:"POST",data:{publicKeyCredential:t}});if(e&&!e.error){let e=(0,p.default)("destination_url"),t=(0,p.default)("sso_destination_url");t?((0,p.removeCookie)("sso_destination_url"),window.location.assign(t)):e?((0,p.removeCookie)("destination_url"),window.location.assign(e)):window.location.reload()}else this.dialog.alert(e.error)}}catch(e){(0,d.popupAjaxError)(e)}}static #ea=(()=>dt7948.n(this.prototype,"passkeyLogin",[r.action]))();preloadLogin(){let e=document.querySelector("#hidden-login-form input[name=username]")?.value;e?(this.loginName=e,this.loginPassword=document.querySelector("#hidden-login-form input[name=password]").value):(0,p.default)("email")&&(this.loginName=(0,p.default)("email"))}static #el=(()=>dt7948.n(this.prototype,"preloadLogin",[r.action]))();securityKeyCredentialChanged(e){this.securityKeyCredential=e}static #ec=(()=>dt7948.n(this.prototype,"securityKeyCredentialChanged",[r.action]))();flashChanged(e){this.flash=e}static #eu=(()=>dt7948.n(this.prototype,"flashChanged",[r.action]))();flashTypeChanged(e){this.flashType=e}static #ed=(()=>dt7948.n(this.prototype,"flashTypeChanged",[r.action]))();loginNameChanged(e){this.loginName=e.target.value}static #ep=(()=>dt7948.n(this.prototype,"loginNameChanged",[r.action]))();async triggerLogin(){if(!this.loginDisabled){if((0,c.isEmpty)(this.loginName)||(0,c.isEmpty)(this.loginPassword)){this.flash=(0,w.i18n)("login.blank_username_or_password"),this.flashType="error";return}try{this.loggingIn=!0;let e=await (0,u.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}});if(e&&e.error){if(this.loggingIn=!1,this.flash=null,(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired){this.otherMethodAllowed=e.multiple_second_factor_methods,this.secondFactorRequired=!0,this.showLoginButtons=!1,this.backupEnabled=e.backup_enabled,this.totpEnabled=e.totp_enabled,this.showSecondFactor=e.totp_enabled,this.showSecurityKey=e.security_key_enabled,this.secondFactorMethod=e.security_key_enabled?b.SECOND_FACTOR_METHODS.SECURITY_KEY:b.SECOND_FACTOR_METHODS.TOTP,this.securityKeyChallenge=e.challenge,this.securityKeyAllowedCredentialIds=e.allowed_credential_ids,this.showSecurityKey||(0,o.schedule)("afterRender",()=>document.getElementById("second-factor").querySelector("input").focus());return}"not_activated"===e.reason?this.args.model.showNotActivated({username:this.loginName,sentTo:(0,h.default)(e.sent_to_email),currentEmail:(0,h.default)(e.current_email)}):"suspended"===e.reason?(this.args.closeModal(),this.dialog.alert(e.error)):("expired"===e.reason?this.flash=(0,l.htmlSafe)((0,w.i18n)("login.password_expired",{reset_url:(0,m.default)("/password-reset")})):this.flash=e.error,this.flashType="error")}else{this.loggedIn=!0;let e=document.getElementById("hidden-login-form"),t=(t,i)=>{e&&(e.querySelector(`input[name=${i}]`).value=t)},i=(0,p.default)("destination_url"),s=(0,p.default)("sso_destination_url");if(t(this.loginName,"username"),t(this.loginPassword,"password"),s){(0,p.removeCookie)("sso_destination_url"),window.location.assign(s);return}i?((0,p.removeCookie)("destination_url"),t(i,"redirect")):t(window.location.href,"redirect"),e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit());return}}catch(e){e.jqXHR&&429===e.jqXHR.status?this.flash=(0,w.i18n)("login.rate_limit"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?this.flash=(0,w.i18n)("read_only_mode.login_disabled"):(0,f.areCookiesEnabled)()?this.flash=(0,w.i18n)("login.error"):this.flash=(0,w.i18n)("login.cookies_error"),this.flashType="error",this.loggingIn=!1}}}static #eh=(()=>dt7948.n(this.prototype,"triggerLogin",[r.action]))();externalLoginAction(e){this.loginDisabled||this.login.externalLogin(e,{signup:!1,setLoggingIn:e=>this.loggingIn=e})}static #iK=(()=>dt7948.n(this.prototype,"externalLoginAction",[r.action]))();createAccount(){let e={};this.loginName&&this.loginName.indexOf("@")>0?(e.accountEmail=this.loginName,e.accountUsername=null):(e.accountUsername=this.loginName,e.accountEmail=null),this.args.model.showCreateAccount(e)}static #iG=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))();interceptResetLink(e){!(0,g.wantsNewWindow)(e)&&e.target.href&&new URL(e.target.href).pathname===(0,m.default)("/password-reset")&&(e.preventDefault(),e.stopPropagation(),this.modal.show(k.default,{model:{emailOrUsername:this.loginName}}))}static #iY=(()=>dt7948.n(this.prototype,"interceptResetLink",[r.action]))()}(0,S.setComponentTemplate)(T,C)},49798:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(75983),l=i(1799),c=i(87353),u=i(19268),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"93Ew/LYt",block:'[[[8,[39,0],[[24,1,"choosing-topic"],[24,0,"choose-topic-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["topic.move_to.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,2,["topic","isPrivateMessage"]],[[[1," "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitToPM"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-existing-message"]],[["@name","@value","@selection"],["move-to-entity","existing_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_existing_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1," "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["existingMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_existing_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,13],null,[["@currentTopicId","@setSelectedTopicId"],[[30,2,["topic","id"]],[28,[37,14],[[28,[37,15],[[30,0,["selectedTopic"]]],null]],null]]],null],[1,"\\n\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.participants"],null]],[13],[1,"\\n "],[8,[39,16],[[24,0,"participant-selector"]],[["@value","@onChange"],[[30,0,["participants"]],[28,[37,14],[[28,[37,15],[[30,0,["participants"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopic"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,18],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-topic"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-topic"]],[["@name","@value","@selection"],["move-to-entity","new_topic",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.split_topic.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-topic"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-existing-topic"]],[["@name","@value","@selection"],["move-to-entity","existing_topic",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.merge_topic.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitToPM"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,19],null,[["@name"],["move-to-topic-after-radio-buttons"]],null],[1,"\\n\\n"],[41,[30,0,["existingTopic"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.merge_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,20],null,[["@topicChangedCallback","@currentTopicId"],[[30,0,["newTopicSelected"]],[30,2,["topic","id"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopic"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,18],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newTopic"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.split_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[14,0,"split-new-topic-form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.split_topic.topic_name"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-title-after",[28,[37,21],null,[["selectedPosts","updateTopicName"],[[30,2,["selectedPosts"]],[30,0,["updateTopicName"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n "],[8,[39,22],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,14],[[28,[37,15],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-category-after",[28,[37,21],null,[["selectedPosts","updateCategoryId"],[[30,2,["selectedPosts"]],[30,0,["updateCategoryId"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canAddTags"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-tag-after",[28,[37,21],null,[["selectedPosts","updateTags","tags"],[[30,2,["selectedPosts"]],[30,0,["updateTags"]],[30,0,["tags"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1," "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,24],[[24,0,"btn-primary"]],[["@disabled","@action","@icon","@label"],[[30,0,["buttonDisabled"]],[30,0,["performMove"]],"right-from-bracket",[30,0,["buttonTitle"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","div","label","radio-button","b","p","html-safe","form","text-field","tag-chooser","choose-message","fn","mut","email-group-user-chooser","hr","input","plugin-outlet","choose-topic","hash","category-chooser",":footer","d-button"]]',moduleName:"discourse/components/modal/move-to-topic.hbs",isStrictMode:!1});var h=i(53653);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"topicName",[n.tracked]))();#ns=(()=>void dt7948.i(this,"topicName"))();static #l=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #c=(()=>dt7948.g(this.prototype,"categoryId",[n.tracked]))();#iE=(()=>void dt7948.i(this,"categoryId"))();static #u=(()=>dt7948.g(this.prototype,"tags",[n.tracked]))();#F=(()=>void dt7948.i(this,"tags"))();static #d=(()=>dt7948.g(this.prototype,"participants",[n.tracked],function(){return[]}))();#nn=(()=>void dt7948.i(this,"participants"))();static #p=(()=>dt7948.g(this.prototype,"chronologicalOrder",[n.tracked],function(){return!1}))();#nr=(()=>void dt7948.i(this,"chronologicalOrder"))();static #h=(()=>dt7948.g(this.prototype,"selection",[n.tracked],function(){return"new_topic"}))();#no=(()=>void dt7948.i(this,"selection"))();static #m=(()=>dt7948.g(this.prototype,"selectedTopic",[n.tracked]))();#na=(()=>void dt7948.i(this,"selectedTopic"))();static #g=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.args.model.topic.isPrivateMessage?this.selection=this.canSplitToPM?"new_message":"existing_message":this.canSplitTopic||(this.selection="existing_topic")}get newTopic(){return"new_topic"===this.selection}get existingTopic(){return"existing_topic"===this.selection}get newMessage(){return"new_message"===this.selection}get existingMessage(){return"existing_message"===this.selection}get buttonDisabled(){return this.saving||(0,a.isEmpty)(this.selectedTopic)&&(0,a.isEmpty)(this.topicName)}get buttonTitle(){return this.newTopic?"topic.split_topic.title":this.existingTopic?"topic.merge_topic.title":this.newMessage?"topic.move_to_new_message.title":this.existingMessage?"topic.move_to_existing_message.title":"saving"}get canSplitTopic(){return!this.args.model.selectedAllPosts&&this.args.model.selectedPosts.length>0&&this.args.model.selectedPosts.sort((e,t)=>e.post_number-t.post_number)[0].post_type===this.site.get("post_types.regular")}get canSplitToPM(){return this.canSplitTopic&&this.currentUser?.admin}get canAddTags(){return this.site.can_create_tag}get canTagMessages(){return this.site.can_tag_pms}performMove(){this.newTopic?this.movePostsTo("newTopic"):this.existingTopic?this.movePostsTo("existingTopic"):this.newMessage?this.movePostsTo("newMessage"):this.existingMessage&&this.movePostsTo("existingMessage")}static #A=(()=>dt7948.n(this.prototype,"performMove",[r.action]))();async movePostsTo(e){let t,i;this.saving=!0,this.flash=null,"existingTopic"===e?(t={destination_topic_id:this.selectedTopic.id,chronological_order:this.chronologicalOrder},i={post_ids:this.args.model.selectedPostIds,...t}):"existingMessage"===e?(t={destination_topic_id:this.selectedTopic.id,participants:this.participants.join(","),archetype:"private_message",chronological_order:this.chronologicalOrder},i={post_ids:this.args.model.selectedPostIds,...t}):"newTopic"===e?(t={},i={title:this.topicName,post_ids:this.args.model.selectedPostIds,category_id:this.categoryId,tags:this.tags}):(t={},i={title:this.topicName,post_ids:this.args.model.selectedPostIds,tags:this.tags,archetype:"private_message"}),t=(0,l.applyValueTransformer)("move-to-topic-merge-options",t),i=(0,l.applyValueTransformer)("move-to-topic-move-options",i);try{let e;e=this.args.model.selectedAllPosts?await (0,u.mergeTopic)(this.args.model.topic.id,t):await (0,u.movePosts)(this.args.model.topic.id,i),this.args.closeModal(),this.args.model.toggleMultiSelect(),c.default.routeTo(e.url)}catch{this.flash=(0,d.i18n)("topic.move_to.error")}finally{this.saving=!1}}static #E=(()=>dt7948.n(this.prototype,"movePostsTo",[r.action]))();updateTopicName(e){this.topicName=e}static #D=(()=>dt7948.n(this.prototype,"updateTopicName",[r.action]))();updateCategoryId(e){this.categoryId=e}static #P=(()=>dt7948.n(this.prototype,"updateCategoryId",[r.action]))();updateTags(e){this.tags=e}static #Q=(()=>dt7948.n(this.prototype,"updateTags",[r.action]))();newTopicSelected(e){this.selectedTopic=e}static #J=(()=>dt7948.n(this.prototype,"newTopicSelected",[r.action]))()}(0,h.setComponentTemplate)(p,m)},4374:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(35533),r=i(83133),o=i(56294),a=i(77232),l=i(81025);let c=(0,i(85671).createTemplateFactory)({id:"NdN081TH",block:'[[[8,[39,0],[[24,0,"not-activated-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["log_in"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,3],[[28,[37,1],["login.not_activated"],[["sentTo"],[[30,2,["sentTo"]]]]]],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],null,[["@sendActivationEmail","@editActivationEmail"],[[30,0,["sendActivationEmail"]],[30,0,["editActivationEmail"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","html-safe",":footer","activation-controls"]]',moduleName:"discourse/components/modal/not-activated.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();sendActivationEmail(){(0,o.resendActivationEmail)(this.args.model.currentEmail).then(()=>{this.modal.show(l.default,{model:{currentEmail:this.args.model.currentEmail}})})}static #i=(()=>dt7948.n(this.prototype,"sendActivationEmail",[n.action]))();editActivationEmail(){this.modal.show(a.default,{model:{currentEmail:this.args.model.currentEmail,newEmail:this.args.model.currentEmail}})}static #s=(()=>dt7948.n(this.prototype,"editActivationEmail",[n.action]))()}(0,u.setComponentTemplate)(c,d)},32871:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"tWAjpOR4",block:'[[[8,[39,0],[[24,0,"post-enqueued-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.approval.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,[28,[35,1],["review.approval.description"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,1],["review.approval.pending_posts"],[["count"],[[30,2,["pending_count"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"review.approval.ok"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","p","html-safe",":footer","d-button"]]',moduleName:"discourse/components/modal/post-enqueued.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"post-enqueued"))},57698:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(88355);let c=(0,i(85671).createTemplateFactory)({id:"WkBAt7FY",block:'[[[8,[39,0],[[24,0,"publish-page-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["topic.publish_page.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["unpublished"]],[[[1," "],[10,2],[12],[1,[28,[35,1],["topic.publish_page.unpublished"],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,5],null,[["@condition"],[[30,0,["initializing"]]]],[["default"],[[[[1,"\\n "],[10,2],[14,0,"publish-description"],[12],[1,[28,[35,1],["topic.publish_page.description"],null]],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.slug"],null]],[13],[1,"\\n "],[8,[39,9],[[24,0,"publish-slug"]],[["@value","@onChange","@onChangeImmediate","@disabled"],[[30,0,["publishedPage","slug"]],[30,0,["checkSlug"]],[30,0,["startCheckSlug"]],[30,0,["existing"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.public"],null]],[13],[1,"\\n\\n "],[10,2],[14,0,"description"],[12],[1,"\\n "],[8,[39,10],[[4,[38,12],["click",[30,0,["onChangePublic"]]],null]],[["@type","@checked"],["checkbox",[28,[37,11],[[30,0,["publishedPage","public"]]],null]]],null],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.public_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"publish-url"],[12],[1,"\\n "],[8,[39,5],null,[["@condition"],[[30,0,["checking"]]]],null],[1,"\\n\\n"],[41,[30,0,["existing"]],[[[1," "],[10,0],[14,0,"current-url"],[12],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.publish_url"],null]],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,3],[15,6,[30,0,["publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showUrl"]],[[[1," "],[10,0],[14,0,"valid-slug"],[12],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.preview_url"],null]],[1,"\\n "],[10,0],[14,0,"example-url"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["invalid"]],[[[1," "],[1,[28,[35,1],["topic.publish_page.invalid_slug"],null]],[1,"\\n "],[10,1],[14,0,"invalid-slug"],[12],[1,[30,0,["reason"]]],[1,"."],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["showUnpublish"]],[[[1," "],[8,[39,16],[[24,0,"btn-danger"]],[["@label","@icon","@isLoading","@action"],["topic.publish_page.unpublish","trash-can",[30,0,["unpublishing"]],[30,0,["unpublish"]]]],null],[1,"\\n\\n "],[8,[39,16],[[24,0,"close-publish-page"]],[["@icon","@label","@action"],["xmark","close",[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,0,["unpublished"]],[[[1," "],[8,[39,16],null,[["@label","@action"],["topic.publish_page.publishing_settings",[30,0,["startNew"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,16],[[24,0,"btn-primary publish-page"]],[["@label","@icon","@disabled","@isLoading","@action"],["topic.publish_page.publish","file",[30,0,["disabled"]],[30,0,["saving"]],[30,0,["publish"]]]],null],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","p","conditional-loading-spinner","form","div","label","text-field","input","readonly","on","a","span",":footer","d-button"]]',moduleName:"discourse/components/modal/publish-page.hbs",isStrictMode:!1});var u=i(53653);let d={initializing:"initializing",checking:"checking",valid:"valid",invalid:"invalid",saving:"saving",new:"new",existing:"existing",unpublishing:"unpublishing",unpublished:"unpublished"};class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #i=(()=>dt7948.g(this.prototype,"state",[n.tracked],function(){return d.initializing}))();#nl=(()=>void dt7948.i(this,"state"))();static #s=(()=>dt7948.g(this.prototype,"reason",[n.tracked],function(){return null}))();#nc=(()=>void dt7948.i(this,"reason"))();static #l=(()=>dt7948.g(this.prototype,"publishedPage",[n.tracked],function(){return null}))();#nu=(()=>void dt7948.i(this,"publishedPage"))();constructor(){super(...arguments),this.store.find("published_page",this.args.model.id).then(e=>{this.state=d.existing,this.publishedPage=e}).catch(this.startNew)}get initializing(){return this.state===d.initializing}get checking(){return this.state===d.checking}get valid(){return this.state===d.valid}get invalid(){return this.state===d.invalid}get saving(){return this.state===d.saving}get new(){return this.state===d.new}get existing(){return this.state===d.existing}get unpublishing(){return this.state===d.unpublishing}get unpublished(){return this.state===d.unpublished}get disabled(){return this.state!==d.valid}get showUrl(){return this.state===d.valid||this.state===d.saving||this.state===d.existing}get showUnpublish(){return this.state===d.existing||this.state===d.unpublishing}startCheckSlug(){this.state!==d.existing&&(this.state=d.checking)}static #c=(()=>dt7948.n(this.prototype,"startCheckSlug",[r.action]))();checkSlug(){if(this.state!==d.existing)return(0,a.ajax)("/pub/check-slug",{data:{slug:this.publishedPage.slug}}).then(e=>{e.valid_slug?this.state=d.valid:(this.state=d.invalid,this.reason=e.reason)})}static #u=(()=>dt7948.n(this.prototype,"checkSlug",[r.action]))();unpublish(){return this.state=d.unpublishing,this.publishedPage.destroyRecord().then(()=>{this.state=d.unpublished,this.args.model.set("publishedPage",null)}).catch(e=>{this.state=d.existing,(0,l.popupAjaxError)(e)})}static #d=(()=>dt7948.n(this.prototype,"unpublish",[r.action]))();publish(){return this.state=d.saving,this.publishedPage.update(this.publishedPage.getProperties("slug","public")).then(()=>{this.state=d.existing,this.args.model.set("publishedPage",this.publishedPage)}).catch(e=>{(0,l.popupAjaxError)(e),this.state=d.existing})}static #p=(()=>dt7948.n(this.prototype,"publish",[r.action]))();startNew(){this.state=d.new,this.publishedPage=this.store.createRecord("published_page",this.args.model.getProperties("id","slug","public")),this.checkSlug()}static #h=(()=>dt7948.n(this.prototype,"startNew",[r.action]))();onChangePublic(e){this.publishedPage.set("public",e.target.checked),this.showUnpublish&&this.publish()}static #m=(()=>dt7948.n(this.prototype,"onChangePublic",[r.action]))()}(0,u.setComponentTemplate)(c,p)},70470:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(89277);let a=(0,i(85671).createTemplateFactory)({id:"Kt2P9yCU",block:'[[[8,[39,0],[[24,0,"incoming-email-modal"]],[["@title","@closeModal"],[[28,[37,1],["raw_email.title"],null],[30,1]]],[["body"],[[[[1,"\\n "],[10,0],[14,0,"incoming-email-tabs"],[12],[1,"\\n "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"raw"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayRaw"]],"post.raw_email.displays.raw.button","post.raw_email.displays.raw.title"]],null],[1,"\\n\\n"],[41,[30,0,["textPart"]],[[[1," "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"text_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayTextPart"]],"post.raw_email.displays.text_part.button","post.raw_email.displays.text_part.title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["htmlPart"]],[[[1," "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"html_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayHtmlPart"]],"post.raw_email.displays.html_part.button","post.raw_email.displays.html_part.title"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"incoming-email-content"],[12],[1,"\\n"],[41,[28,[37,6],[[30,0,["tab"]],"raw"],null],[[[41,[30,0,["rawEmail"]],[[[1," "],[8,[39,7],null,[["@value"],[[30,0,["rawEmail"]]]],null],[1,""]],[]],[[[1," "],[1,[28,[35,1],["raw_email.not_available"],null]],[1,""]],[]]]],[]],null],[41,[28,[37,6],[[30,0,["tab"]],"text_part"],null],[[[1," "],[8,[39,7],null,[["@value"],[[30,0,["textPart"]]]],null],[1,""]],[]],null],[41,[28,[37,6],[[30,0,["tab"]],"html_part"],null],[[[1," "],[8,[39,8],[[24,0,"incoming-email-html-part"]],[["@html"],[[30,0,["htmlPart"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","d-button","if","eq","textarea","iframed-html"]]',moduleName:"discourse/components/modal/raw-email.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"rawEmail",[n.tracked],function(){return this.args.model.rawEmail||""}))();#nd=(()=>void dt7948.i(this,"rawEmail"))();static #i=(()=>dt7948.g(this.prototype,"textPart",[n.tracked],function(){return""}))();#np=(()=>void dt7948.i(this,"textPart"))();static #s=(()=>dt7948.g(this.prototype,"htmlPart",[n.tracked],function(){return""}))();#nh=(()=>void dt7948.i(this,"htmlPart"))();static #l=(()=>dt7948.g(this.prototype,"tab",[n.tracked],function(){return"raw"}))();#nm=(()=>void dt7948.i(this,"tab"))();constructor(){super(...arguments),this.args.model.id&&this.loadRawEmail(this.args.model.id)}async loadRawEmail(e){let t=await o.default.loadRawEmail(e);this.rawEmail=t.raw_email,this.textPart=t.text_part,this.htmlPart=t.html_part}static #c=(()=>dt7948.n(this.prototype,"loadRawEmail",[r.action]))();displayRaw(){this.tab="raw"}static #u=(()=>dt7948.n(this.prototype,"displayRaw",[r.action]))();displayTextPart(){this.tab="text_part"}static #d=(()=>dt7948.n(this.prototype,"displayTextPart",[r.action]))();displayHtmlPart(){this.tab="html_part"}static #p=(()=>dt7948.n(this.prototype,"displayHtmlPart",[r.action]))()}(0,l.setComponentTemplate)(a,c)},72182:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(35533);let r=(0,i(85671).createTemplateFactory)({id:"hiQp594I",block:'[[[8,[39,0],[[24,0,"reject-reason-reviewable-modal"]],[["@bodyClass","@closeModal","@title"],["reject-reason-reviewable-modal__explain-reviewable",[30,1],[28,[37,1],["review.reject_reason.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@value"],[[30,0,["rejectReason"]]]],null],[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,6],[[24,0,"reject-reason-reviewable-modal__send_email--inline"]],[["@type","@checked"],["checkbox",[30,0,["sendEmail"]]]],null],[1,"\\n "],[1,[28,[35,1],["review.reject_reason.send_email"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,8],[[24,0,"btn-danger"]],[["@icon","@action","@label"],["trash-can",[30,0,["perform"]],"admin.user.delete"]],null],[1,"\\n "],[8,[39,8],[[24,0,"cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","textarea","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/reject-reason-reviewable.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{rejectReason;sendEmail=!1;async perform(){this.args.model.reviewable.setProperties({rejectReason:this.rejectReason,sendEmail:this.sendEmail}),this.args.closeModal(),await this.args.model.performConfirmed(this.args.model.action)}static #e=(()=>dt7948.n(this.prototype,"perform",[n.action]))()}(0,o.setComponentTemplate)(r,a)},32904:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(6864),l=i(88355);let c=(0,i(85671).createTemplateFactory)({id:"jSqTBrQz",block:'[[[8,[39,0],[[24,0,"reorder-categories"]],[["@title","@closeModal","@inline"],[[28,[37,1],["categories.reorder.title"],null],[30,1],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"reorder-categories__header-position"],[12],[1,"\\n "],[1,[28,[35,1],["categories.reorder.position"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["sortedEntries"]]],null]],null],null,[[[1," "],[10,"tr"],[15,"data-category-id",[30,3,["category","id"]]],[15,0,[52,[28,[37,11],[[30,0,["highlightedCategoryId"]],[30,3,["category","id"]]],null],"highlighted"]],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[15,0,[28,[37,14],["reorder-categories-depth-",[30,3,["depth"]]],null]],[12],[1,"\\n "],[1,[28,[35,15],[[30,3,["category"]]],[["allowUncategorized"],["true"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"reorder-categories-actions"],[12],[1,"\\n "],[11,"input"],[16,2,[30,3,["position"]]],[24,"min","0"],[24,4,"number"],[4,[38,17],["change",[28,[37,18],[[28,[37,19],[[30,0,["change"]],[30,3]],null]],null]],null],[12],[13],[1,"\\n "],[8,[39,20],[[24,0,"btn-default no-text move-up"]],[["@action","@icon"],[[28,[37,19],[[30,0,["move"]],[30,3],-1],null],"arrow-up"]],null],[1,"\\n "],[8,[39,20],[[24,0,"btn-default no-text move-down"]],[["@action","@icon"],[[28,[37,19],[[30,0,["move"]],[30,3],1],null],"arrow-down"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,20],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["save"]],"categories.reorder.save",[28,[37,22],[[30,0,["changed"]]],null]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@inline","entry"],false,["d-modal","i18n",":body","table","thead","th","tbody","each","-track-array","tr","if","eq","td","div","concat","category-badge","input","on","with-event-value","fn","d-button",":footer","not"]]',moduleName:"discourse/components/modal/reorder-categories.hbs",isStrictMode:!1});var u=i(53653);class d{static #e=(()=>dt7948.g(this.prototype,"position",[n.tracked]))();#ng=(()=>void dt7948.i(this,"position"))();constructor(e){let{position:t,depth:i,category:s,descendantCount:n}=e;this.position=t,this.depth=i,this.category=s,this.descendantCount=n}}class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"changed",[n.tracked],function(){return!1}))();#nf=(()=>void dt7948.i(this,"changed"))();static #s=(()=>dt7948.g(this.prototype,"entries",[n.tracked],function(){return this.reorder()}))();#n_=(()=>void dt7948.i(this,"entries"))();static #l=(()=>dt7948.g(this.prototype,"highlightedCategoryId",[n.tracked],function(){return null}))();#ny=(()=>void dt7948.i(this,"highlightedCategoryId"))();get sortedEntries(){return this.entries.sortBy("position")}reorder(e){return e??=this.site.categories.map(e=>({category:e,position:e.position})),this.createEntries([...e.sortBy("position")])}createEntries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=[];for(let r of e)if(null===i&&!r.category.parent_category_id||r.category.parent_category_id===i){let i=this.createEntries(e,t+n.length+1,r.category.id,s+1);n=[...n,new d({position:t+n.length,depth:s,category:r.category,descendantCount:i.length}),...i]}return n}move(e,t){let i=e.position+t;if(t>0)e.descendantCount&&e.descendantCount>=t&&(i+=e.descendantCount);else{let e=this.sortedEntries[i]?.category?.ancestors;e&&(i=this.sortedEntries.findBy("category.id",e[0].id).position)}for(let s of(i>=this.entries.length?i=this.entries.length-1:i<0&&(i=0),this.sortedEntries))t>0?s.position>e.position&&s.position<=i&&(s.position-=1):s.position=i&&(s.position+=1);e.position=i,this.entries=this.reorder(this.sortedEntries),this.changed=!0,this.toggleHighlight(e.category.id)}static #c=(()=>dt7948.n(this.prototype,"move",[r.action]))();toggleHighlight(e){this.highlightedCategoryId=e,setTimeout(()=>{this.highlightedCategoryId===e&&(this.highlightedCategoryId=null)},3e3)}static #u=(()=>dt7948.n(this.prototype,"toggleHighlight",[r.action]))();change(e,t){let i=parseInt(t,10)-e.position;this.move(e,i)}static #d=(()=>dt7948.n(this.prototype,"change",[r.action]))();async save(){let e=this.reorder(this.sortedEntries),t={};for(let{category:i,position:s}of e)t[i.id]=s;try{await (0,a.ajax)("/categories/reorder",{type:"POST",data:{mapping:JSON.stringify(t)}}),window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"save",[r.action]))()}(0,u.setComponentTemplate)(c,p)},24822:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(75983),a=i(88355),l=i(87353),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"vB7Or3Gx",block:'[[[8,[39,0],[[24,0,"request-group-membership-form"]],[["@title","@closeModal","@inline"],[[30,0,["title"]],[30,1],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,4],["groups.membership_request.reason"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,5],[[16,2,[30,0,["reason"]]],[24,"maxlength","5000"],[4,[38,6],["input",[28,[37,7],[[28,[37,8],[[28,[37,9],[[30,0,["reason"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["requestMember"]],"groups.membership_request.submit",[30,0,["disableSubmit"]]]],null],[1,"\\n\\n "],[8,[39,12],null,[["@close"],[[30,1]]],null],[1,"\\n "],[8,[39,13],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@inline"],false,["d-modal",":body","div","label","i18n","expanding-text-area","on","with-event-value","fn","mut",":footer","d-button","d-modal-cancel","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/request-group-membership-form.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"reason",[n.tracked],function(){return this.args.model.group.membership_request_template}))();#nc=(()=>void dt7948.i(this,"reason"))();get title(){return(0,c.i18n)("groups.membership_request.title",{group_name:this.args.model.group.name})}get disableSubmit(){return this.loading||(0,o.isEmpty)(this.reason)}async requestMember(){this.loading=!0;try{let e=await this.args.model.group.requestMembership(this.reason);l.default.routeTo(e.relative_url)}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}static #s=(()=>dt7948.n(this.prototype,"requestMember",[r.action]))()}(0,d.setComponentTemplate)(u,p)},69587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(75983),l=i(88355),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"vYP9tw2P",block:'[[[8,[39,0],[[24,0,"revise-and-reject-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.revise_and_reject_post.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"revise-and-reject-reviewable__queued-post"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@tagName"],[[30,2,["reviewable"]],""]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.reason"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"revise-and-reject-reviewable__reason"]],[["@name","@content","@value","@onChange"],["reason",[30,0,["configuredReasons"]],[30,0,["reason"]],[28,[37,7],[[28,[37,8],[[30,0,["reason"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showCustomReason"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","custom_reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.custom_reason"],null]],[13],[1,"\\n "],[8,[39,10],[[24,3,"custom_reason"],[24,0,"revise-and-reject-reviewable__custom-reason"]],[["@type","@value"],["text",[30,0,["customReason"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","feedback"],[12],[1,[28,[35,1],["review.revise_and_reject_post.feedback"],null]],[1,"\\n "],[10,1],[14,0,"revise-and-reject-reviewable__optional"],[12],[1,"("],[1,[28,[35,1],["review.revise_and_reject_post.optional"],null]],[1,")"],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,12],[[24,0,"revise-and-reject-reviewable__feedback"]],[["@name","@value","@onChange"],["feedback",[30,0,["feedback"]],[28,[37,7],[[28,[37,8],[[30,0,["feedback"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["rejectAndSendPM"]],[30,0,["sendPMDisabled"]],"review.revise_and_reject_post.send_pm"]],null],[1,"\\n "],[8,[39,14],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","reviewable-queued-post","label","combo-box","fn","mut","if","input","span","d-textarea",":footer","d-button"]]',moduleName:"discourse/components/modal/revise-and-reject-post-reviewable.hbs",isStrictMode:!1});var d=i(53653);let p="other_reason";class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"reason",[n.tracked]))();#nc=(()=>void dt7948.i(this,"reason"))();static #s=(()=>dt7948.g(this.prototype,"customReason",[n.tracked]))();#nb=(()=>void dt7948.i(this,"customReason"))();static #l=(()=>dt7948.g(this.prototype,"feedback",[n.tracked]))();#nv=(()=>void dt7948.i(this,"feedback"))();static #c=(()=>dt7948.g(this.prototype,"submitting",[n.tracked],function(){return!1}))();#nw=(()=>void dt7948.i(this,"submitting"))();get configuredReasons(){return this.siteSettings.reviewable_revision_reasons.split("|").filter(Boolean).map(e=>({id:e,name:e})).concat([{id:p,name:(0,c.i18n)("review.revise_and_reject_post.other_reason")}])}get showCustomReason(){return this.reason===p}get sendPMDisabled(){return(0,a.isEmpty)(this.reason)||this.reason===p&&(0,a.isEmpty)(this.customReason)||this.submitting}async rejectAndSendPM(){this.submitting=!0;try{await this.args.model.performConfirmed(this.args.model.action,{revise_reason:this.reason,revise_custom_reason:this.customReason,revise_feedback:this.feedback}),this.args.closeModal()}catch(e){(0,l.popupAjaxError)(e)}finally{this.submitting=!1}}static #u=(()=>dt7948.n(this.prototype,"rejectAndSendPM",[r.action]))()}(0,d.setComponentTemplate)(u,h)},90245:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(98988),l=i(59864),c=i(843);let u=(0,i(85671).createTemplateFactory)({id:"rIN4Xq54",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["securityKeyRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.security_key.add"],null]]],[["body"],[[[[1,"\\n "],[8,[39,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,1],["user.second_factor.enable_security_key_description"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],[[24,1,"security-key-name"],[24,"placeholder","security key name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@value"],[[30,0,["securityKeyName"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[51,[30,0,["webauthnUnsupported"]]],[[[1," "],[8,[39,10],[[24,0,"btn-primary add-security-key"]],[["@action","@label"],[[30,0,["registerSecurityKey"]],"user.second_factor.security_key.register"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert",":body","conditional-loading-spinner","if","div","html-safe","input","unless","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-security-key.hbs",isStrictMode:!1});var d=i(53653);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #s=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked],function(){return null}))();#eU=(()=>void dt7948.i(this,"errorMessage"))();static #l=(()=>dt7948.g(this.prototype,"securityKeyName",[n.tracked]))();#nk=(()=>void dt7948.i(this,"securityKeyName"))();maxSecondFactorNameLength=(()=>l.MAX_SECOND_FACTOR_NAME_LENGTH)();get webauthnUnsupported(){return!(0,a.isWebauthnSupported)()}securityKeyRequested(){let e;e=this.capabilities.isIOS&&!this.capabilities.isIpadOS?"user.second_factor.security_key.iphone_default_name":this.capabilities.isAndroid?"user.second_factor.security_key.android_default_name":"user.second_factor.security_key.default_name",this.securityKeyName=(0,c.i18n)(e),this.loading=!0,this.args.model.secondFactor.requestSecurityKeyChallenge().then(e=>{if(e.error){this.errorMessage=e.error;return}this.errorMessage=(0,a.isWebauthnSupported)()?null:(0,c.i18n)("login.security_key_support_missing_error"),this.loading=!1,this.challenge=e.challenge,this.relayingParty={id:e.rp_id,name:e.rp_name},this.supported_algorithms=e.supported_algorithms,this.user_secure_id=e.user_secure_id,this.existing_active_credential_ids=e.existing_active_credential_ids}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #c=(()=>dt7948.n(this.prototype,"securityKeyRequested",[r.action]))();registerSecurityKey(){if(!this.securityKeyName){this.errorMessage=(0,c.i18n)("user.second_factor.security_key.name_required_error");return}let e={challenge:Uint8Array.from(this.challenge,e=>e.charCodeAt(0)),rp:{name:this.relayingParty.name,id:this.relayingParty.id},user:{id:Uint8Array.from(this.user_secure_id,e=>e.charCodeAt(0)),displayName:this.args.model.secondFactor.username_lower,name:this.args.model.secondFactor.username_lower},pubKeyCredParams:this.supported_algorithms.map(e=>({type:"public-key",alg:e})),excludeCredentials:this.existing_active_credential_ids.map(e=>({type:"public-key",id:(0,a.stringToBuffer)(atob(e))})),timeout:2e4,attestation:"none",authenticatorSelection:{userVerification:"discouraged"}};navigator.credentials.create({publicKey:e}).then(e=>{let t={id:e.id,rawId:(0,a.bufferToBase64)(e.rawId),type:e.type,attestation:(0,a.bufferToBase64)(e.response.attestationObject),clientData:(0,a.bufferToBase64)(e.response.clientDataJSON),name:this.securityKeyName};this.args.model.secondFactor.registerSecurityKey(t).then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload()}).catch(e=>this.args.model.onError(e)).finally(()=>this.loading=!1)},e=>{if("InvalidStateError"===e.name){this.errorMessage=(0,c.i18n)("user.second_factor.security_key.already_added_error");return}if("NotAllowedError"===e.name){this.errorMessage=(0,c.i18n)("user.second_factor.security_key.not_allowed_error");return}this.errorMessage=e.message})}static #u=(()=>dt7948.n(this.prototype,"registerSecurityKey",[r.action]))()}(0,d.setComponentTemplate)(u,p)},31555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(59864),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"Kq1uDF6y",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["totpRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.totp.add"],null]]],[["body"],[[[[1,"\\n "],[8,[39,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,1],["user.second_factor.enable_description"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"qr-code"],[12],[1,"\\n "],[10,"img"],[15,"src",[28,[37,7],[[30,0,["secondFactorImage"]]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["showSecondFactorKey"]],[[[1," "],[10,0],[14,0,"second-factor-key"],[12],[1,"\\n "],[1,[30,0,["secondFactorKey"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[24,6,""],[24,0,"show-second-factor-key"],[4,[38,11],["click",[30,0,["enableShowSecondFactorKey"]]],null],[12],[1,[28,[35,1],["user.second_factor.show_key_description"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.name"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["secondFactorName"]]],[16,"placeholder",[28,[37,1],["user.second_factor.totp.default_name"],null]],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]],[24,1,"second-factor-name"],[24,4,"text"],[4,[38,11],["input",[28,[37,14],[[28,[37,15],[[28,[37,16],[[30,0,["secondFactorName"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,"\\n "],[1,[28,[35,1],["user.second_factor.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,17],[[16,2,[30,0,["secondFactorToken"]]],[24,"placeholder","123456"],[24,1,"second-factor-token"],[4,[38,11],["input",[28,[37,14],[[28,[37,15],[[28,[37,16],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["totpType"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,18],[[24,0,"btn-primary add-totp"]],[["@action","@label"],[[30,0,["enableSecondFactor"]],"enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert",":body","conditional-loading-spinner","if","div","html-safe","img","p","a","on","label","input","with-event-value","fn","mut","second-factor-input","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-totp.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"secondFactorImage",[n.tracked]))();#nT=(()=>void dt7948.i(this,"secondFactorImage"))();static #s=(()=>dt7948.g(this.prototype,"secondFactorKey",[n.tracked]))();#nS=(()=>void dt7948.i(this,"secondFactorKey"))();static #l=(()=>dt7948.g(this.prototype,"showSecondFactorKey",[n.tracked],function(){return!1}))();#nC=(()=>void dt7948.i(this,"showSecondFactorKey"))();static #c=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#eU=(()=>void dt7948.i(this,"errorMessage"))();static #u=(()=>dt7948.g(this.prototype,"secondFactorToken",[n.tracked]))();#ni=(()=>void dt7948.i(this,"secondFactorToken"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();totpType=(()=>o.SECOND_FACTOR_METHODS.TOTP)();totpRequested(){this.args.model.secondFactor.createSecondFactorTotp().then(e=>{if(e.error){this.errorMessage=e.error;return}this.errorMessage=null,this.secondFactorKey=e.key,this.secondFactorImage=e.qr}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #d=(()=>dt7948.n(this.prototype,"totpRequested",[r.action]))();enableShowSecondFactorKey(e){e.preventDefault(),e.stopImmediatePropagation(),this.showSecondFactorKey=!0}static #p=(()=>dt7948.n(this.prototype,"enableShowSecondFactorKey",[r.action]))();enableSecondFactor(){if(!this.secondFactorToken||!this.secondFactorName){this.errorMessage=(0,a.i18n)("user.second_factor.totp.name_and_code_required_error");return}this.loading=!0,this.args.model.secondFactor.enableSecondFactorTotp(this.secondFactorToken,this.secondFactorName).then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload()}).catch(e=>this.args.model.onError(e)).finally(()=>this.loading=!1)}static #h=(()=>dt7948.n(this.prototype,"enableSecondFactor",[r.action]))()}(0,c.setComponentTemplate)(l,u)},26212:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(63748),a=i(59864),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"EWqfVjni",block:'[[[8,[39,0],[[24,0,"second-factor-backup-edit-modal"]],[["@title","@closeModal"],[[28,[37,1],["user.second_factor_backup.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,0],[14,0,"alert alert-success"],[12],[1,"\\n "],[1,[30,0,["successMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["backupCodes"]],[[[1," "],[10,"h3"],[12],[1,[28,[35,1],["user.second_factor_backup.codes.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.second_factor_backup.codes.description"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@copyBackupCode","@backupCodes"],[[30,0,["copyBackupCode"]],[30,0,["backupCodes"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["backupEnabled"]],[[[1," "],[1,[28,[35,9],[[28,[37,1],["user.second_factor_backup.remaining_codes"],[["count"],[[30,0,["remainingCodes"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[28,[37,1],["user.second_factor_backup.not_enabled"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[41,[30,0,["backupEnabled"]],[[[1," "],[8,[39,11],[[24,0,"btn-primary"]],[["@icon","@action","@type","@isLoading","@label"],["arrow-rotate-right",[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.regenerate"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@type","@disabled","@label"],[[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.enable"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","div","conditional-loading-section","h3","p","backup-codes","html-safe",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-backup-edit.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#eU=(()=>void dt7948.i(this,"errorMessage"))();static #s=(()=>dt7948.g(this.prototype,"successMessage",[n.tracked]))();#nx=(()=>void dt7948.i(this,"successMessage"))();static #l=(()=>dt7948.g(this.prototype,"backupEnabled",[n.tracked],function(){return this.args.model.secondFactor.second_factor_backup_enabled}))();#s9=(()=>void dt7948.i(this,"backupEnabled"))();static #c=(()=>dt7948.g(this.prototype,"remainingCodes",[n.tracked],function(){return this.args.model.secondFactor.second_factor_remaining_backup_codes}))();#nA=(()=>void dt7948.i(this,"remainingCodes"))();static #u=(()=>dt7948.g(this.prototype,"backupCodes",[n.tracked]))();#nE=(()=>void dt7948.i(this,"backupCodes"))();static #d=(()=>dt7948.g(this.prototype,"secondFactorMethod",[n.tracked],function(){return a.SECOND_FACTOR_METHODS.TOTP}))();#s8=(()=>void dt7948.i(this,"secondFactorMethod"))();copyBackupCode(e){e?this.successMessage=(0,l.i18n)("user.second_factor_backup.copied_to_clipboard"):this.errorMessage=(0,l.i18n)("user.second_factor_backup.copy_to_clipboard_error"),this._hideCopyMessage()}static #p=(()=>dt7948.n(this.prototype,"copyBackupCode",[r.action]))();generateSecondFactorCodes(){this.loading=!0,this.args.model.secondFactor.generateSecondFactorCodes().then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.backupCodes=e.backup_codes,this.args.model.setBackupEnabled(!0),this.backupEnabled=!0,this.remainingCodes=e.backup_codes.length,this.args.model.setCodesRemaining(this.remainingCodes)}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #h=(()=>dt7948.n(this.prototype,"generateSecondFactorCodes",[r.action]))();_hideCopyMessage(){this.successMessage=null,this.errorMessage=null}static #m=(()=>dt7948.n(this.prototype,"_hideCopyMessage",[(0,o.debounce)(2e3)]))()}(0,u.setComponentTemplate)(c,d)},34560:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(59864);let a=(0,i(85671).createTemplateFactory)({id:"sgJBWoRN",block:'[[[8,[39,0],null,[["@title","@closeModal","@tagName"],[[28,[37,1],["user.second_factor.security_key.edit"],null],[30,1],"form"]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[14,"for","security-key-name"],[12],[1,[28,[35,1],["user.second_factor.security_key.edit_description"],null]],[13],[1,"\\n "],[8,[39,5],[[24,3,"security-key-name"],[24,1,"security-key-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["securityKey","name"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label","@type"],[[30,0,["editSecurityKey"]],"user.second_factor.security_key.save","submit"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit-security-key.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();editSecurityKey(){this.loading=!0,this.args.model.user.updateSecurityKey(this.args.model.securityKey.id,this.args.model.securityKey.name,!1).then(e=>{e.error||this.args.model.markDirty()}).catch(e=>{this.args.model.onError(e)}).finally(()=>{this.loading=!1,this.args.closeModal()})}static #i=(()=>dt7948.n(this.prototype,"editSecurityKey",[r.action]))()}(0,l.setComponentTemplate)(a,c)},47844:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(59864);let a=(0,i(85671).createTemplateFactory)({id:"PWdsM/Cu",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.second_factor.edit_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[14,"for","authenticator-name"],[12],[1,[28,[35,1],["user.second_factor.edit_description"],null]],[13],[1,"\\n "],[8,[39,5],[[24,3,"authenticator-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["secondFactor","name"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["editSecondFactor"]],"user.second_factor.save"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();editSecondFactor(){this.loading=!0,this.args.model.user.updateSecondFactor(this.args.model.secondFactor.id,this.args.model.secondFactor.name,!1,this.args.model.secondFactor.method).then(e=>{e.error||this.args.model.markDirty()}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>{this.loading=!1,this.args.closeModal()})}static #i=(()=>dt7948.n(this.prototype,"editSecondFactor",[r.action]))()}(0,l.setComponentTemplate)(a,c)},9359:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(53653),n=i(35533),r=i(30574),o=i(31049),a=i(83133),l=i(70841),c=i(63748),u=i(17206),d=i(94636),p=i(47960),h=i(42496),m=i(1559),g=i(843);let f=(0,i(85671).createTemplateFactory)({id:"U/jRXD3a",block:'[[[8,[39,0],[[24,0,"share-topic-modal"]],[["@title","@subtitle","@closeModal","@flash","@flashType"],[[52,[30,0,["post"]],[28,[37,2],["post.share.title"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.title"],null]],[52,[30,0,["post"]],[30,0,["displayDate"]]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["default"],[[[[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n "],[1,[52,[30,0,["post"]],[28,[37,2],["post.share.instructions"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.instructions"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[39,6],[[24,1,"invite-link"],[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true],[24,"size","200"]],[["@value"],[[30,0,["url"]]]],null],[1,"\\n "],[8,[39,7],null,[["@selector","@ariaLabel"],["input.invite-link","share.url"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"link-share-actions"],[12],[1,"\\n "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["sources"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@source","@action"],[[30,2],[30,0,["share"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["allowInvites"]],[[[1," "],[8,[39,11],[[24,0,"btn-default invite"]],[["@label","@icon","@action"],["topic.share.invite_users","user-plus",[30,0,["inviteUsers"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topic","details","can_reply_as_new_topic"]],[[[41,[30,0,["topic","isPrivateMessage"]],[[[1," "],[8,[39,11],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_private_message","post.reply_as_new_private_message","user.new_private_message"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,11],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_topic","post.reply_as_new_topic","topic.create"]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[8,[39,12],null,[["@name","@outletArgs"],["share-topic-sources",[28,[37,13],null,[["topic","post"],[[30,0,["topic"]],[30,0,["post"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@closeModal","source"],false,["d-modal","if","i18n","form","div","label","input","copy-button","each","-track-array","share-source","d-button","plugin-outlet","hash"]]',moduleName:"discourse/components/modal/share-topic.hbs",isStrictMode:!1});class _ extends s.default.extend((0,h.bufferedProperty)("invite")){static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"topic",[(0,r.readOnly)("model.topic")]))();#U=(()=>void dt7948.i(this,"topic"))();static #s=(()=>dt7948.g(this.prototype,"post",[(0,r.readOnly)("model.post")]))();#iN=(()=>void dt7948.i(this,"post"))();static #l=(()=>dt7948.g(this.prototype,"category",[(0,r.readOnly)("model.category")]))();#nD=(()=>void dt7948.i(this,"category"))();static #c=(()=>dt7948.g(this.prototype,"allowInvites",[(0,r.readOnly)("model.allowInvites")]))();#nP=(()=>void dt7948.i(this,"allowInvites"))();didInsertElement(){this._showRestrictedGroupWarning(),this._selectUrl(),super.didInsertElement()}_showRestrictedGroupWarning(){this.category&&m.default.fetchVisibleGroups(this.category.id).then(e=>{e.groups.length>0&&this.setProperties({flash:(0,g.i18n)("topic.share.restricted_groups",{count:e.groups.length,groupNames:e.groups.join(", ")}),flashType:"warning"})})}static #u=(()=>dt7948.n(this.prototype,"_showRestrictedGroupWarning",[c.afterRender]))();_selectUrl(){let e=document.querySelector("input.invite-link");e&&this.site.desktopView&&(e.setSelectionRange(0,this.url.length),e.focus())}static #d=(()=>dt7948.n(this.prototype,"_selectUrl",[c.afterRender]))();url(e,t){return e?(0,d.getAbsoluteURL)(e):t?(0,d.getAbsoluteURL)(t):void 0}static #p=(()=>dt7948.n(this.prototype,"url",[(0,c.default)("post.shareUrl","topic.shareUrl")]))();displayDate(e,t,i){return(0,u.longDateNoYear)(new Date(t&&i?i:e))}static #h=(()=>dt7948.n(this.prototype,"displayDate",[(0,c.default)("post.created_at","post.wiki","post.last_wiki_edit")]))();sources(e){let t=this.siteSettings.login_required||e?.isPrivateMessage||e?.invisible||e?.category?.read_restricted;return p.default.activeSources(this.siteSettings.share_links,t)}static #m=(()=>dt7948.n(this.prototype,"sources",[(0,c.default)("topic.{isPrivateMessage,invisible,category.read_restricted}")]))();share(e){p.default.shareSource(e,{title:this.topic.title,url:this.url})}static #g=(()=>dt7948.n(this.prototype,"share",[n.action]))();inviteUsers(){this.modal.show(l.default,{model:{inviteToTopic:!0,topics:[this.topic],topicId:this.topic.id,topicTitle:this.topic.title}})}static #A=(()=>dt7948.n(this.prototype,"inviteUsers",[n.action]))();replyAsNewTopic(){let e=this.topic.postStream,t=this.post?.id||e.findPostIdForPostNumber(1),i=e.findLoadedPost(t),s=(0,o.getOwner)(this).lookup("controller:topic");s.actions.replyAsNewTopic.call(s,i),this.closeModal()}static #E=(()=>dt7948.n(this.prototype,"replyAsNewTopic",[n.action]))()}(0,s.setComponentTemplate)(f,_)},53527:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(8554),n=i(62459),r=i(53653),o=i(35533),a=i(83133),l=i(75983),c=i(6864),u=i(88355),d=i(17773),p=i(63748),h=i(50409),m=i(843);let g=(0,i(85671).createTemplateFactory)({id:"Iv81y6jX",block:'[[[8,[39,0],[[24,0,"sidebar-section-form-modal"]],[["@closeModal","@flash","@flashType","@title"],[[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[37,1],[[30,0,["header"]]],null]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[14,0,"form-horizontal sidebar-section-form"],[12],[1,"\\n"],[41,[51,[30,0,["transformedModel","hideTitleInput"]]],[[[1," "],[10,0],[14,0,"sidebar-section-form__input-wrapper"],[12],[1,"\\n "],[10,"label"],[14,"for","section-name"],[12],[1,"\\n "],[1,[28,[35,1],["sidebar.sections.custom.title.label"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],[[24,3,"section-name"],[16,0,[30,0,["transformedModel","titleCssClass"]]],[24,1,"section-name"],[4,[38,8],["input",[28,[37,9],[[28,[37,10],[[28,[37,11],[[30,0,["transformedModel","title"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,0,["transformedModel","title"]]]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","invalidTitleMessage"]],[[[1," "],[10,0],[14,0,"title warning"],[12],[1,"\\n "],[1,[30,0,["transformedModel","invalidTitleMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,"role","table"],[15,"aria-rowcount",[30,0,["activeLinks","length"]]],[14,0,"sidebar-section-form__links-wrapper"],[12],[1,"\\n\\n "],[10,0],[14,0,"row-wrapper header"],[14,"role","row"],[12],[1,"\\n "],[10,0],[14,0,"input-group link-icon"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.icon.label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group link-name"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.name.label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group link-url"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.value.label"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["activeLinks"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,2],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,16],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],["sidebar.sections.custom.more_menu"],null]],[13],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["activeSecondaryLinks"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,3],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[3]],null],[1," "],[8,[39,16],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addSecondaryLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,16],[[24,1,"save-section"],[24,0,"btn-primary"]],[["@action","@label","@ariaLabel","@disabled"],[[30,0,["save"]],"sidebar.sections.custom.save","sidebar.sections.custom.save",[28,[37,20],[[30,0,["transformedModel","valid"]]],null]]],null],[1,"\\n"],[41,[28,[37,21],[[30,0,["currentUser","admin"]]],null],[[[1," "],[10,0],[15,0,[29,["mark-public-wrapper\\n ",[52,[30,0,["transformedModel","sectionType"]],"-disabled"]]]],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[8,[39,22],[[24,0,"always-public-tooltip"]],[["@content"],[[28,[37,1],["sidebar.sections.custom.always_public"],null]]],[["trigger"],[[[[1,"\\n "],[1,[28,[35,24],["square-check"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,7],[[24,0,"mark-public"],[16,"disabled",[30,0,["transformedModel","sectionType"]]]],[["@type","@checked"],["checkbox",[30,0,["transformedModel","public"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canDelete"]],[[[1," "],[8,[39,16],[[24,1,"delete-section"],[24,0,"btn-danger delete"]],[["@icon","@action","@label","@ariaLabel"],["trash-can",[30,0,["delete"]],"sidebar.sections.custom.delete","sidebar.sections.custom.delete"]],null],[1,"\\n"]],[]],null],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[8,[39,16],[[24,0,"btn-flat btn-text reset-link"]],[["@action","@icon","@title","@label","@ariaLabel"],[[30,0,["resetToDefault"]],"arrow-rotate-left","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","link","link"],false,["d-modal","i18n",":body","form","unless","div","label","input","on","with-event-value","fn","mut","if","each","-track-array","sidebar/section-form-link","d-button","hr","h3",":footer","not","and","d-tooltip",":trigger","d-icon","span"]]',moduleName:"discourse/components/modal/sidebar-section-form.hbs",isStrictMode:!1}),f=(0,i(38168).A)(i(8554)).cached;class _{static #e=(()=>dt7948.g(this.prototype,"title",[s.tracked]))();#nM=(()=>void dt7948.i(this,"title"))();static #i=(()=>dt7948.g(this.prototype,"links",[s.tracked]))();#nF=(()=>void dt7948.i(this,"links"))();static #s=(()=>dt7948.g(this.prototype,"secondaryLinks",[s.tracked]))();#nI=(()=>void dt7948.i(this,"secondaryLinks"))();constructor(e){let{title:t,links:i,secondaryLinks:s,id:n,publicSection:r,sectionType:o,hideTitleInput:a}=e;this.title=t,this.public=r,this.sectionType=o,this.links=i,this.secondaryLinks=s,this.id=n,this.hideTitleInput=a}get valid(){let e=this.links.filter(e=>!e._destroy).concat(this.secondaryLinks?.filter(e=>!e._destroy)||[]),t=e.length>0&&e.every(e=>e.valid);return this.validTitle&&t}get validTitle(){return!this.#nN&&!this.#nO}get invalidTitleMessage(){return void 0===this.title?void 0:this.#nN?(0,m.i18n)("sidebar.sections.custom.title.validation.blank"):this.#nO?(0,m.i18n)("sidebar.sections.custom.title.validation.maximum",{count:d.SIDEBAR_SECTION.max_title_length}):void 0}get titleCssClass(){return void 0===this.title||this.validTitle?"":"warning"}get #nN(){return(0,l.isEmpty)(this.title)}get #nO(){return this.title.length>d.SIDEBAR_SECTION.max_title_length}}class y{static #e=(()=>dt7948.g(this.prototype,"icon",[s.tracked]))();#nL=(()=>void dt7948.i(this,"icon"))();static #i=(()=>dt7948.g(this.prototype,"name",[s.tracked]))();#nR=(()=>void dt7948.i(this,"name"))();static #s=(()=>dt7948.g(this.prototype,"value",[s.tracked]))();#td=(()=>void dt7948.i(this,"value"))();static #l=(()=>dt7948.g(this.prototype,"_destroy",[s.tracked]))();#nU=(()=>void dt7948.i(this,"_destroy"))();constructor(e){let{router:t,icon:i,name:s,value:n,id:r,objectId:o,segment:a}=e;this.router=t,this.icon=i||"link",this.name=s,this.value=n,this.id=r,this.httpHost="http://"+window.location.host,this.httpsHost="https://"+window.location.host,this.objectId=o,this.segment=a}get path(){return this.value?.replace(this.httpHost,"").replace(this.httpsHost,"")}get valid(){return this.validIcon&&this.validName&&this.validValue}get validIcon(){return!this.#nj&&!this.#nB}get validName(){return!this.#n$&&!this.#nq}get validValue(){return!this.#nV&&!this.#nH&&!this.#nz}get invalidIconMessage(){return this.#nj?(0,m.i18n)("sidebar.sections.custom.links.icon.validation.blank"):this.#nB?(0,m.i18n)("sidebar.sections.custom.links.icon.validation.maximum",{count:d.SIDEBAR_URL.max_icon_length}):void 0}get invalidNameMessage(){return void 0===this.name?void 0:this.#n$?(0,m.i18n)("sidebar.sections.custom.links.name.validation.blank"):this.#nq?(0,m.i18n)("sidebar.sections.custom.links.name.validation.maximum",{count:d.SIDEBAR_URL.max_name_length}):void 0}get invalidValueMessage(){return void 0===this.value?void 0:this.#nV?(0,m.i18n)("sidebar.sections.custom.links.value.validation.blank"):this.#nH?(0,m.i18n)("sidebar.sections.custom.links.value.validation.maximum",{count:d.SIDEBAR_URL.max_value_length}):this.#nz?(0,m.i18n)("sidebar.sections.custom.links.value.validation.invalid"):void 0}get iconCssClass(){return void 0===this.icon||this.validIcon?"":"warning"}get nameCssClass(){return void 0===this.name||this.validName?"":"warning"}get valueCssClass(){return void 0===this.value||this.validValue?"":"warning"}get isPrimary(){return"primary"===this.segment}get #nj(){return(0,l.isEmpty)(this.icon)}get #nB(){return this.icon.length>d.SIDEBAR_URL.max_icon_length}get #n$(){return(0,l.isEmpty)(this.name)}get #nq(){return this.name.length>d.SIDEBAR_URL.max_name_length}get #nV(){return(0,l.isEmpty)(this.value)}get #nH(){return this.value.length>d.SIDEBAR_URL.max_value_length}get #nz(){return this.path&&!this.#nW()}#nW(){try{return new URL(this.value,document.location.origin)}catch{return!1}}}class b extends r.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();static #l=(()=>dt7948.g(this.prototype,"flashType",[s.tracked]))();#sA=(()=>void dt7948.i(this,"flashType"))();nextObjectId=0;get transformedModel(){let e=this.model?.section;return new _(e?{title:e.title,publicSection:e.public,sectionType:e.section_type,links:e.links.reduce((e,t)=>("primary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e),(0,n.A)()),secondaryLinks:e.links.reduce((e,t)=>("secondary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e),(0,n.A)()),id:e.id,hideTitleInput:this.model.hideSectionHeader}:{links:(0,n.A)([new y({router:this.router,objectId:this.nextObjectId,segment:"primary"})])})}static #c=(()=>dt7948.n(this.prototype,"transformedModel",[f]))();initLink(e){return new y({router:this.router,icon:e.icon,name:e.name,value:e.value,id:e.id,objectId:this.nextObjectId,segment:e.segment})}create(){return(0,c.ajax)("/sidebar_sections",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.map(e=>({icon:e.icon,name:e.name,value:e.path}))})}).then(e=>{this.currentUser.set("sidebar_sections",this.currentUser.sidebar_sections.concat(e.sidebar_section)),this.closeModal()}).catch(e=>{this.flash=(0,h.sanitize)((0,u.extractError)(e)),this.flashType="error"})}update(){this.wasPublic||this.isPublic?this.#nK():this.#nG()}#nK(){return this.dialog.yesNoConfirm({message:this.isPublic?(0,m.i18n)("sidebar.sections.custom.update_public_confirm"):(0,m.i18n)("sidebar.sections.custom.mark_as_private_confirm"),didConfirm:()=>this.#nG()})}#nG(){return(0,c.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"PUT",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.concat(this.transformedModel?.secondaryLinks||[]).map(e=>({id:e.id,icon:e.icon,name:e.name,value:e.path,segment:e.segment,_destroy:e._destroy}))})}).then(e=>{let t=this.currentUser.sidebar_sections.map(t=>t.id===e.sidebar_section.id?e.sidebar_section:t);this.currentUser.set("sidebar_sections",t),this.closeModal()}).catch(e=>{this.flash=(0,h.sanitize)((0,u.extractError)(e)),this.flashType="error"})}get activeLinks(){return this.transformedModel.links.filter(e=>!e._destroy)}get activeSecondaryLinks(){return this.transformedModel.secondaryLinks?.filter(e=>!e._destroy)}get header(){return this.transformedModel.id?"sidebar.sections.custom.edit":"sidebar.sections.custom.add"}get isPublic(){return this.transformedModel.public}get wasPublic(){return this.model?.section?.public}focusNewRowInput(e){document.querySelector(`[data-row-id="${e}"] .icon-picker summary`).focus()}static #u=(()=>dt7948.n(this.prototype,"focusNewRowInput",[p.afterRender]))();setDraggedLink(e){this.draggedLink=e}static #d=(()=>dt7948.n(this.prototype,"setDraggedLink",[p.bind]))();reorder(e,t){if(this.draggedLink!==e){if(this.draggedLink.isPrimary?this.transformedModel.links.removeObject(this.draggedLink):this.transformedModel.secondaryLinks?.removeObject(this.draggedLink),e.isPrimary){let i=this.transformedModel.links.indexOf(e);this.draggedLink.segment="primary",this.transformedModel.links.insertAt(t?i:i+1,this.draggedLink)}else{this.draggedLink.segment="secondary";let i=this.transformedModel.secondaryLinks.indexOf(e);this.transformedModel.secondaryLinks.insertAt(t?i:i+1,this.draggedLink)}}}static #p=(()=>dt7948.n(this.prototype,"reorder",[p.bind]))();get canDelete(){return this.transformedModel.id&&!this.transformedModel.sectionType}deleteLink(e){e.id?e._destroy="1":e.isPrimary?this.transformedModel.links.removeObject(e):this.transformedModel.secondaryLinks.removeObject(e)}static #h=(()=>dt7948.n(this.prototype,"deleteLink",[p.bind]))();addLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.links.pushObject(new y({router:this.router,objectId:this.nextObjectId,segment:"primary"})),this.focusNewRowInput(this.nextObjectId)}static #m=(()=>dt7948.n(this.prototype,"addLink",[o.action]))();addSecondaryLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.secondaryLinks.pushObject(new y({router:this.router,objectId:this.nextObjectId,segment:"secondary"})),this.focusNewRowInput(this.nextObjectId)}static #g=(()=>dt7948.n(this.prototype,"addSecondaryLink",[o.action]))();resetToDefault(){return this.dialog.yesNoConfirm({message:(0,m.i18n)("sidebar.sections.custom.reset_confirm"),didConfirm:()=>(0,c.ajax)(`/sidebar_sections/reset/${this.transformedModel.id}`,{type:"PUT"}).then(e=>{this.currentUser.sidebar_sections.shiftObject(),this.currentUser.sidebar_sections.unshiftObject(e.sidebar_section),this.closeModal()}).catch(e=>{this.flash=(0,h.sanitize)((0,u.extractError)(e)),this.flashType="error"}),didCancel:()=>{this.closeModal()}})}static #A=(()=>dt7948.n(this.prototype,"resetToDefault",[o.action]))();save(){this.transformedModel.id?this.update():this.create()}static #E=(()=>dt7948.n(this.prototype,"save",[o.action]))();delete(){return this.dialog.yesNoConfirm({message:this.model.section.public?(0,m.i18n)("sidebar.sections.custom.delete_public_confirm"):(0,m.i18n)("sidebar.sections.custom.delete_confirm"),didConfirm:()=>(0,c.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"DELETE"}).then(()=>{let e=this.currentUser.sidebar_sections.filter(e=>e.id!==this.transformedModel.id);this.currentUser.set("sidebar_sections",e),this.closeModal()}).catch(e=>{this.flash=(0,h.sanitize)((0,u.extractError)(e)),this.flashType="error"})})}static #D=(()=>dt7948.n(this.prototype,"delete",[o.action]))()}(0,r.setComponentTemplate)(g,b)},59967:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(8554),r=i(35533),o=i(18387),a=i(83133),l=i(96320),c=i(18638),u=i(1453),d=i(38108),p=i(39131),h=i(6864),m=i(88355),g=i(19905),f=i(42236),_=i(843),y=i(31886),b=i(53653),w=i(85671);class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"showEditReason",[n.tracked],function(){return!1}))();#nY=(()=>void dt7948.i(this,"showEditReason"))();static #s=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();spreadsheet=null;defaultColWidth=150;isEditingTable=(()=>!!this.args.model.tableTokens)();alignments=null;constructor(){super(...arguments),this.loadJspreadsheet(),g.default.pause()}willDestroy(){super.willDestroy(...arguments),g.default.unpause()}get modalAttributes(){return this.isEditingTable?{title:"table_builder.edit.modal.title",insertTable:{title:"table_builder.edit.modal.create",icon:"pencil"}}:{title:"table_builder.modal.title",insertTable:{title:"table_builder.modal.create",icon:"plus"}}}createSpreadsheet(e){this.spreadsheet=e,this.isEditingTable?this.buildPopulatedTable(this.args.model.tableTokens):this.buildNewTable()}static #l=(()=>dt7948.n(this.prototype,"createSpreadsheet",[r.action]))();showEditReasonField(){this.showEditReason=!this.showEditReason}static #c=(()=>dt7948.n(this.prototype,"showEditReasonField",[r.action]))();interceptCloseModal(){this._hasChanges()?this.dialog.yesNoConfirm({message:(0,_.i18n)("table_builder.modal.confirm_close"),didConfirm:()=>this.args.closeModal()}):this.args.closeModal()}static #u=(()=>dt7948.n(this.prototype,"interceptCloseModal",[r.action]))();insertTable(){let e=this.spreadsheet.getHeaders().split(",").map(e=>e.trim()),t=this.spreadsheet.getData(),i=this.buildTableMarkdown(e,t);return this.isEditingTable?this.updateTable(i):(this.args.model.toolbarEvent.addText(i),this.args.closeModal())}static #d=(()=>dt7948.n(this.prototype,"insertTable",[r.action]))();_hasChanges(){if(!this.isEditingTable)return this.spreadsheet.getData().flat().some(e=>""!==e);{let e=this.extractTableContent((0,f.tokenRange)(this.args.model.tableTokens,"tr_open","tr_close")),t=this.spreadsheet.getHeaders().split(","),i=this.spreadsheet.getData();return JSON.stringify(t.concat(i.flat()))!==JSON.stringify(e)}}async loadJspreadsheet(){let[e]=await Promise.all([i.e(767).then(i.t.bind(i,17767,23)),i.e(421).then(i.bind(i,11421)),Promise.all([i.e(187),i.e(988)]).then(i.bind(i,17988))]);this.jspreadsheet=e.default,this.loading=!1}buildNewTable(){let e=[{title:(0,_.i18n)("table_builder.default_header.col_1"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_2"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_3"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_4"),width:this.defaultColWidth}];return this.buildSpreadsheet([["","",""],["","",""],["","",""],["","",""],["","",""],["","",""]],e)}extractTableContent(e){return e.flat().filter(e=>"inline"===e.type).map(e=>e.content)}extractTableAlignments(e){return e.flat().filter(e=>"td_open"===e.type).map(e=>{for(let t of e.attrs?.flat()??[])switch(t){case"text-align:left":return"left";case"text-align:center":return"center";case"text-align:right":return"right"}return null})}buildPopulatedTable(e){let t;let i=(0,f.tokenRange)(e,"tr_open","tr_close"),s=[];return i.forEach((e,i)=>{0===i?t=this.extractTableContent(e).map(e=>({title:e||" ",width:Math.max(8*e.length,this.defaultColWidth)})):(null==this.alignments&&(this.alignments=this.extractTableAlignments(e)),s.push(this.extractTableContent(e)))}),t.forEach((e,t)=>{e.align=this.alignments?.[t]??"left"}),this.buildSpreadsheet(s,t)}buildSpreadsheet(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.args.model?.post_number,n=s?`post-${s}-table-export`:"post-table-export";this.spreadsheet=this.jspreadsheet(this.spreadsheet,{data:e,columns:t,defaultColAlign:"left",wordWrap:!0,csvFileName:n,text:this.localeMapping(),...i})}buildUpdatedPost(e,t,i){let s;let n=t.match((0,f.findTableRegex)());return n.length?t.replace(n[e],i).replace(/\0/g,"�"):t}updateTable(e){let t=this.args.model.tableIndex,i=this.args.model.post.id,s=this.editReason||(0,_.i18n)("table_builder.edit.default_edit_reason"),n=this.args.model.post.raw,r=this.buildUpdatedPost(t,n,e);return this.sendTableUpdate(i,r,s)}sendTableUpdate(e,t,i){return(0,h.ajax)(`/posts/${e}.json`,{type:"PUT",data:{post:{raw:t,edit_reason:i}}}).catch(m.popupAjaxError).finally(()=>{this.args.closeModal()})}buildTableMarkdown(e,t){let i=[];return t.forEach(t=>{let s={};e.forEach((e,i)=>s[`col${i}`]=t[i]),i.push(s)}),(0,f.arrayToTable)(i,e,"col",this.alignments)}localeMapping(){return{noRecordsFound:T("no_records_found"),show:T("show"),entries:T("entries"),insertANewColumnBefore:T("context_menu.col.before"),insertANewColumnAfter:T("context_menu.col.after"),deleteSelectedColumns:T("context_menu.col.delete"),renameThisColumn:T("context_menu.col.rename"),orderAscending:T("context_menu.order.ascending"),orderDescending:T("context_menu.order.descending"),insertANewRowBefore:T("context_menu.row.before"),insertANewRowAfter:T("context_menu.row.after"),deleteSelectedRows:T("context_menu.row.delete"),copy:T("context_menu.copy"),paste:T("context_menu.paste"),saveAs:T("context_menu.save"),about:T("about"),areYouSureToDeleteTheSelectedRows:T("prompts.delete_selected_rows"),areYouSureToDeleteTheSelectedColumns:T("prompts.delete_selected_cols"),thisActionWillDestroyAnyExistingMergedCellsAreYouSure:T("prompts.will_destroy_merged_cells"),thisActionWillClearYourSearchResultsAreYouSure:T("prompts.will_clear_search_results"),thereIsAConflictWithAnotherMergedCell:T("prompts.conflict_with_merged_cells"),invalidMergeProperties:T("invalid_merge_props"),cellAlreadyMerged:T("cells_already_merged"),noCellsSelected:T("no_cells_selected")}}static #p=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"25Wsu9Mm",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"insert-table-modal"]],[["@title","@closeModal"],[[28,[32,1],[[30,0,["modalAttributes","title"]]],null],[30,0,["interceptCloseModal"]]]],[["body","footer"],[[[[1,"\\n "],[8,[32,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,"tabindex","1"],[24,0,"jexcel_container"],[4,[32,3],[[30,0,["createSpreadsheet"]]],null],[12],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[51,[30,0,["loading"]]],[[[1," "],[10,0],[14,0,"primary-actions"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-insert-table"]],[["@label","@icon","@action"],[[30,0,["modalAttributes","insertTable","title"]],[30,0,["modalAttributes","insertTable","icon"]],[30,0,["insertTable"]]]],null],[1,"\\n\\n "],[8,[32,5],null,[["@close"],[[30,0,["interceptCloseModal"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"secondary-actions"],[12],[1,"\\n"],[41,[30,0,["isEditingTable"]],[[[1," "],[10,0],[14,0,"edit-reason"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-edit-reason"]],[["@icon","@title","@action"],["circle-info","table_builder.edit.modal.trigger_reason",[30,0,["showEditReasonField"]]]],null],[1,"\\n"],[41,[30,0,["showEditReason"]],[[[1," "],[8,[32,6],null,[["@value","@placeholderKey"],[[30,0,["editReason"]],"table_builder.edit.modal.reason"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,7],[[24,0,"btn btn-icon no-text"]],[["@icon","@triggers","@arrow"],["question","click",false]],[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[32,1],["table_builder.modal.help.title"],null]],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[10,"kbd"],[12],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.enter_key"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.new_row"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[10,"kbd"],[12],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.tab_key"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.new_col"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[32,1],["table_builder.modal.help.options"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/spreadsheet-editor.js",scope:()=>[u.default,_.i18n,l.default,o.default,c.default,d.default,p.default,y.default],isStrictMode:!0}),this))()}function T(e){return(0,_.i18n)(`table_builder.spreadsheet.${e}`)}},33388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"fp8myiWq",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["tagging.upload"],null],[30,1]]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@refresh","@closeModal","@id"],[[28,[37,4],["triggerRefresh"],null],[30,1],"tags-uploader"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","tags-uploader","route-action"]]',moduleName:"discourse/components/modal/tag-upload.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"tag-upload"))},47235:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(53653),r=i(35533),o=i(83133),a=i(51367),l=i.n(a),c=i(57222),u=i(18638),d=i(1453),p=i(38108),h=i(6078),m=i(66168),g=i(88355),f=i(66914),_=i(843),y=i(85671);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();status=(()=>new c.TrackedObject({...this.args.model.status}))();timeShortcuts=this.#nQ();_itsatrap=(()=>new(l()))();willDestroy(){super.willDestroy(...arguments),this._itsatrap.destroy()}get showDeleteButton(){return!!this.args.model.status}get prefilledDateTime(){return this.status?.ends_at}get saveDisabled(){return!this.status?.emoji||!this.status?.description}get customTimeShortcutLabels(){return{[f.TIME_SHORTCUT_TYPES.NONE]:"time_shortcut.never"}}get hiddenTimeShortcutOptions(){return[f.TIME_SHORTCUT_TYPES.LAST_CUSTOM]}#nQ(){let e=(0,f.timeShortcuts)(this.currentUser.user_option.timezone);return[e.oneHour(),e.twoHours(),e.tomorrow()]}#nJ(e){"string"==typeof e?this.dialog.alert(e):(0,g.popupAjaxError)(e)}onTimeSelected(e,t){this.status.endsAt=t}static #s=(()=>dt7948.n(this.prototype,"onTimeSelected",[r.action]))();async delete(){try{await this.args.model.deleteAction(),this.args.closeModal()}catch(e){this.#nJ(e)}}static #l=(()=>dt7948.n(this.prototype,"delete",[r.action]))();async saveAndClose(){let e={description:this.status.description,emoji:this.status.emoji,ends_at:this.status.endsAt?.toISOString()};try{await this.args.model.saveAction(e,this.args.model.pauseNotifications),this.args.closeModal()}catch(e){this.#nJ(e)}}static #c=(()=>dt7948.n(this.prototype,"saveAndClose",[r.action]))();static #u=(()=>(0,n.setComponentTemplate)((0,y.createTemplateFactory)({id:"E4QRpmnx",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"user-status"]],[["@title","@closeModal"],[[28,[32,1],["user_status.set_custom_status"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,2],null,[["@status"],[[30,0,["status"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,2,["hidePauseNotifications"]]],[[[1," "],[10,0],[14,0,"control-group pause-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,3],null,[["@type","@checked"],["checkbox",[30,2,["pauseNotifications"]]]],null],[1,"\\n "],[1,[28,[32,1],["user_status.pause_notifications"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group control-group-remove-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[32,1],["user_status.remove_status"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@timeShortcuts","@hiddenOptions","@customLabels","@prefilledDatetime","@onTimeSelected","@_itsatrap"],[[30,0,["timeShortcuts"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["prefilledDateTime"]],[30,0,["onTimeSelected"]],[30,0,["_itsatrap"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,5],[[24,0,"btn-primary"]],[["@label","@disabled","@action"],["user_status.save",[30,0,["saveDisabled"]],[30,0,["saveAndClose"]]]],null],[1,"\\n\\n "],[8,[32,6],null,[["@close"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["showDeleteButton"]],[[[1," "],[8,[32,5],[[24,0,"delete-status btn-danger"]],[["@icon","@action"],["trash-can",[30,0,["delete"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/user-status.js",scope:()=>[d.default,_.i18n,m.default,n.Input,h.default,u.default,p.default],isStrictMode:!0}),this))()}},86385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearRegisteredTabs:()=>_,default:()=>y,registeredTabs:()=>f});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(81329),c=i(18638),u=i(16518),d=i(81133),p=i(1799),h=i(53653),m=i(85671);let g=(0,i(38168).A)(i(8554)).cached,f=[];function _(){f.length=0}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"keyValueStore",[a.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #s=(()=>dt7948.g(this.prototype,"selectedTab",[n.tracked],function(){return this.initialTab}))();#nX=(()=>void dt7948.i(this,"selectedTab"))();get initialTab(){let e=this.keyValueStore.get(`more-topics-preference-${this.context}`);return(e||=this.keyValueStore.get("more-topics-list-preference"))&&this.tabs.find(t=>t.id===e)||this.tabs[0]}get activeTab(){return this.tabs.find(e=>e===this.selectedTab)||this.tabs[0]}get context(){return this.args.topic.get("isPrivateMessage")?"pm":"topic"}get tabs(){let e=f.filter(e=>e.condition({topic:this.args.topic,context:this.context}));return(0,p.applyValueTransformer)("more-topics-tabs",e,{currentContext:this.context,user:this.currentUser,topic:this.args.topic})}static #l=(()=>dt7948.n(this.prototype,"tabs",[g]))();selectTab(e){this.selectedTab=e,this.keyValueStore.set({key:`more-topics-preference-${this.context}`,value:e.id})}static #c=(()=>dt7948.n(this.prototype,"selectTab",[o.action]))();isActiveTab(e){return e?.id===this.selectedTab?.id}static #u=(()=>dt7948.n(this.prototype,"isActiveTab",[o.action]))();static #d=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"/YO2HlOL",block:'[[[1,"\\n "],[10,0],[14,0,"more-topics__container"],[12],[1,"\\n"],[41,[28,[32,0],[[30,0,["tabs","length"]],1],null],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,1],[[16,0,[52,[28,[30,0,["isActiveTab"]],[[30,1]],null],"active"]],[16,"tabindex",[52,[28,[30,0,["isActiveTab"]],[[30,1]],null],-1,0]]],[["@action","@translatedLabel","@translatedTitle","@icon"],[[28,[32,2],[[30,0,["selectTab"]],[30,1]],null],[30,1,["name"]],[30,1,["name"]],[30,1,["icon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["activeTab"]],[[[1," "],[10,0],[15,0,[28,[32,3],["more-topics__lists",[52,[28,[32,4],[[30,0,["tabs","length"]],1],null],"single-list"]],null]],[12],[1,"\\n "],[8,[30,0,["activeTab","component"]],null,[["@topic"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["suggestedTopics","length"]],[[[1," "],[8,[32,5],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "]],["tab","@topic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/more-topics.js",scope:()=>[l.gt,c.default,r.fn,d.default,l.eq,u.default],isStrictMode:!0}),this))()}},16518:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(83133),r=i(42256),o=i(18385),a=i(94636),l=i(51429),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[n.service]))();#nZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #s=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();groupLink(e){return`${(0,l.iconHTML)("users")} ${e}`}get privateMessageBrowseMoreMessage(){let e=this.args.topic.get("suggested_group_name"),t=e?"group":"user",i=this.pmTopicTrackingState.lookupCount("unread",{inboxFilter:t,groupName:e}),s=this.pmTopicTrackingState.lookupCount("new",{inboxFilter:t,groupName:e});if(i+s>0){let t=i>0&&s>0;return e?c.default.messageFormat("user.messages.read_more_group_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:i,NEW:s,username:this.currentUser.username,groupName:e,groupLink:this.groupLink(e),basePath:(0,a.default)("")}):c.default.messageFormat("user.messages.read_more_personal_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:i,NEW:s,username:this.currentUser.username,basePath:(0,a.default)("")})}return e?(0,c.i18n)("user.messages.read_more_in_group",{groupLink:this.groupLink(e)}):(0,c.i18n)("user.messages.read_more",{basePath:(0,a.default)(""),username:this.currentUser.username})}get topicBrowseMoreMessage(){let e=this.args.topic.get("category");e&&e.id===this.site.uncategorized_category_id&&(e=null);let t=0,i=0;return(this.currentUser&&(t=this.topicTrackingState.countUnread(),i=this.topicTrackingState.countNew()),i+t>0)?c.default.messageFormat("topic.read_more_MF",{HAS_UNREAD_AND_NEW:t>0&&i>0,UNREAD:t,NEW:i,HAS_CATEGORY:!!e,categoryLink:e?(0,o.categoryBadgeHTML)(e):null,basePath:(0,a.default)("")}):e?(0,c.i18n)("topic.read_more_in_category",{categoryLink:(0,o.categoryBadgeHTML)(e),latestLink:(0,a.default)("/latest")}):(0,c.i18n)("topic.read_more",{categoryLink:(0,a.default)("/categories"),latestLink:(0,a.default)("/latest")})}static #c=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"xS5DWdKU",block:'[[[1,"\\n "],[10,"h3"],[14,0,"more-topics__browse-more"],[12],[1,"\\n"],[41,[30,1,["isPrivateMessage"]],[[[1," "],[1,[28,[32,0],[[30,0,["privateMessageBrowseMoreMessage"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],[[30,0,["topicBrowseMoreMessage"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/more-topics/browse-more.js",scope:()=>[r.htmlSafe],isStrictMode:!0}),this))()}},40260:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addWidgetCleanCallback:()=>m,default:()=>_,removeWidgetCleanCallback:()=>g,resetWidgetCleanCallbacks:()=>f});var s=i(86279),n=i(53653),r=i(62053),o=i(94480),a=i(83236),l=i(14433),c=i(99434),u=i(40366),d=i(36200);let p=(0,i(85671).createTemplateFactory)({id:"/zwe00Eu",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["_childComponents"]]],null]],null],null,[[[40,[[[1," "],[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"discourse/components/mount-widget.hbs",isStrictMode:!1}),h={};function m(e,t){h[e]=h[e]||[],h[e].push(t)}function g(e,t){let i=h[e];if(!i)return;let s=i.indexOf(t);-1!==s&&i.splice(s,1)}function f(){h={}}class _ extends n.default{dirtyKeys=null;_tree=null;_rootNode=null;_timeout=null;_widgetClass=null;_renderCallback=null;_childEvents=null;_dispatched=null;init(){super.init(...arguments);let e=this.widget;if("post-cooked"===e)throw"Cannot use with `post-cooked`.\nIt's a special-case that needs to be wrapped in another widget.\nFor example:\n createWidget('test-widget', {\n html(attrs) {\n return [\n new PostCooked(attrs, new DecoratorHelper(this), this.currentUser),\n ];\n },\n });";this.register=(0,c.getRegister)(this),this._widgetClass=(0,d.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass?.class&&(this._widgetClass=this._widgetClass.class),this._widgetClass||console.error(`Error: Could not find widget: ${e}`),this._childEvents=[],this._connected=[],this._childComponents=s.default.create({content:[]}),this._dispatched=[],this.dirtyKeys=new l.default(e)}didInsertElement(){super.didInsertElement(...arguments),u.WidgetClickHook.setupDocumentCallback(),this._rootNode=document.createElement("div"),this.element.appendChild(this._rootNode),this._timeout=(0,r.scheduleOnce)("render",this,this.rerenderWidget)}willClearRender(){super.willClearRender(...arguments);let e=h[this.widget];e&&e.forEach(e=>e(this._tree)),this._connected.forEach(e=>e.destroy()),this._connected.length=0,(0,d.traverseCustomWidgets)(this._tree,e=>e.destroy()),this._rootNode=(0,a.patch)(this._rootNode,(0,a.diff)(this._tree,null)),this._tree=null}willDestroyElement(){super.willDestroyElement(...arguments),this._dispatched.forEach(e=>{let[t,i]=e;this.appEvents.off(t,this,i)}),(0,r.cancel)(this._timeout)}afterRender(){}beforePatch(){}afterPatch(){}eventDispatched(e,t,i){t="function"==typeof t?t(i):t;let s=(0,o.camelize)(e.replace(/:/,"-"));this.dirtyKeys.keyDirty(t,{onRefresh:s,refreshArg:i}),this.queueRerender()}dispatch(e,t){this._childEvents.push(e);let i=i=>this.eventDispatched(e,t,i);this._dispatched.push([e,i]),this.appEvents.on(e,this,i)}queueRerender(e){e&&!this._renderCallback&&(this._renderCallback=e),(0,r.scheduleOnce)("render",this,this.rerenderWidget)}buildArgs(){}rerenderWidget(){if((0,r.cancel)(this._timeout),this._rootNode){if(!this._widgetClass)return;let e=Date.now(),t=this.args||this.buildArgs(),i={model:this.model,dirtyKeys:this.dirtyKeys},s=new this._widgetClass(t,this.register,i);s._rerenderable=this,s._emberView=this;let n=(0,a.diff)(this._tree||this._rootNode,s);(0,d.traverseCustomWidgets)(this._tree,e=>e.willRerenderWidget()),this.beforePatch(),this._rootNode=(0,a.patch)(this._rootNode,n),this.afterPatch(),this._tree=s,(0,d.traverseCustomWidgets)(s,e=>e.didRenderWidget()),this._renderCallback&&(this._renderCallback(),this._renderCallback=null),this.afterRender(),this.dirtyKeys.renderedKey("*"),this.profileWidget&&console.log(Date.now()-e)}}mountChildComponent(e){this._childComponents.pushObject(e)}unmountChildComponent(e){this._childComponents.removeObject(e)}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this.queueRerender()}}(0,n.setComponentTemplate)(p,_)},11262:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(43696),r=i(83133),o=i(42256),a=i(81133),l=i(94636),c=i(51429),u=i(843),d=i(53653),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();get contents(){let e=this.args.i18nLabel||(0,u.i18n)(this.args.label);return this.args.icon?(0,o.htmlSafe)(`${(0,c.iconHTML)(this.args.icon)} ${e}`):e}get active(){if(this.args.route&&this.router.currentRoute){if(this.args.routeParam){if("adminPlugins.show.settings"===this.router.currentRoute.name)return this.router.currentRoute.parent.params.plugin_id===this.args.routeParam;if(this.router.currentRoute.params.filter)return this.router.currentRoute.params.filter===this.args.routeParam;if(this.router.currentRoute.params.field_name)return this.router.currentRoute.params.field_name===this.args.routeParam}return this.router.isActive(this.args.route)}}static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"Ady/Tm2D",block:'[[[1,"\\n "],[11,"li"],[16,0,[28,[32,0],[[52,[30,0,["active"]],"active"],[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[8,[32,1],null,[["@route","@model","@current-when"],[[30,4],[30,3],[30,0,["active"]]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[41,[30,4],[[[1," "],[8,[32,1],null,[["@route"],[[30,4]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[32,2],[[30,5]],null]],[14,"data-auto-route","true"],[12],[1,[30,0,["contents"]]],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "]],["@class","&attrs","@routeParam","@route","@path"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/nav-item.js",scope:()=>[a.default,n.LinkTo,l.default],isStrictMode:!0}),this))()}},54347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(82698),c=i(52719),u=i(98740),d=i(72738),p=i(58302),h=i(1799),m=i(12610),g=i(53653),f=i(85671);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();get filterType(){return(0,p.filterTypeForMode)(this.args.filterMode)}get selectedNavItem(){let{navItems:e}=this.args,t=e.find(e=>!0===e.active);return(t=t||e.find(e=>e.filterType===this.filterType))||e[0]}get showDropdown(){return(0,h.applyValueTransformer)("navigation-bar-dropdown-mode",this.site.mobileView)}get navigationBarIcon(){return(0,h.applyValueTransformer)("navigation-bar-dropdown-icon","discourse-chevron-expand")}onRegisterApi(e){this.dMenu=e}static #i=(()=>dt7948.n(this.prototype,"onRegisterApi",[o.action]))();static #s=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"oatd1DMP",block:'[[[1,"\\n "],[10,"ul"],[14,1,"navigation-bar"],[14,0,"nav nav-pills"],[12],[1,"\\n"],[41,[30,0,["showDropdown"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,0],null,[["@modalForMobile","@autofocus","@identifier","@onRegisterApi"],[true,true,"list-control-toggle-link",[30,0,["onRegisterApi"]]]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"list-control-toggle-link__text"],[12],[1,[30,0,["selectedNavItem","displayName"]]],[13],[1,"\\n "],[1,[28,[32,1],[[30,0,["navigationBarIcon"]]],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[4,[32,3],["click",[30,0,["dMenu","close"]]],null]],null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,4],[[16,0,[28,[32,5],["nav-item_",[30,3,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,3],[30,4],[30,5]]],null],[1,"\\n\\n"]],[3]],null],[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","span",[28,[32,7],null,[["category","tag","filterMode"],[[30,5],[30,6],[30,4]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["inline-extra-nav-item","span",[28,[32,7],null,[["category","filterMode"],[[30,5],[30,4]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,4],[[16,0,[28,[32,5],["nav-item_",[30,7,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,7],[30,4],[30,5]]],null],[1,"\\n"]],[7]],null],[1," "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[32,7],null,[["category","tag","filterMode"],[[30,5],[30,6],[30,4]]]]]],null],[1,"\\n\\n"]],[]]],[1," "],[13],[1,"\\n "]],["dropdown","@navItems","navItem","@filterMode","@category","@tag","navItem"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/navigation-bar.js",scope:()=>[m.default,d.default,l.default,r.on,c.default,n.concat,u.default,n.hash],isStrictMode:!0}),this))()}},52719:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(8554),n=i(53653),r=i(4959),o=i(53397),a=i(63748),l=i(58302);let c=(0,i(85671).createTemplateFactory)({id:"7P26DY2M",block:'[[[10,3],[15,6,[30,0,["hrefLink"]]],[15,0,[30,0,["activeClass"]]],[15,"aria-current",[52,[30,0,["activeClass"]],"page"]],[12],[1,"\\n"],[41,[30,0,["hasIcon"]],[[[1," "],[10,1],[15,0,[30,0,["content","name"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,0,["content","displayName"]]],[1,"\\n"],[13]],[],false,["a","if","span"]]',moduleName:"discourse/components/navigation-item.hbs",isStrictMode:!1}),u=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"filterMode",[s.tracked]))();#eM=(()=>void dt7948.i(this,"filterMode"))();hidden=!1;activeClass="";hrefLink=null;get filterType(){return(0,l.filterTypeForMode)(this.filterMode)}static #i=(()=>dt7948.n(this.prototype,"filterType",[r.dependentKeyCompat]))();active(e,t,i){return void 0!==i?i:e===t}static #s=(()=>dt7948.n(this.prototype,"active",[(0,a.default)("content.filterType","filterType","content.active")]))();isHidden(e,t){return!this.active&&this.currentUser&&!this.currentUser.new_new_view_enabled&&this.currentUser.trust_level>0&&("new"===t||"unread"===t)&&e<1}static #l=(()=>dt7948.n(this.prototype,"isHidden",[(0,a.default)("content.count","content.name")]))();didReceiveAttrs(){super.didReceiveAttrs(...arguments);let e=this.content,[t,i]=e.get("href")?.split("?")||[],s=new URLSearchParams(i),n=!1;if(e.get("includeCategoryId")){let e=this.get("content.category.id");e&&s.set("category_id",e)}e.currentRouteQueryParams&&(e.currentRouteQueryParams.filter&&(n=!0),e.currentRouteQueryParams.f&&s.set("f",e.currentRouteQueryParams.f)),"categories_and_latest_topics_created_date"===this.siteSettings.desktop_category_page_style&&null==s.get("order")&&s.set("order","created");let r=s.toString();(n||r&&t)&&(t=(t||"")+`?${r}`),this.set("hrefLink",t),this.set("activeClass",this.active?"active":"")}},[(0,o.attributeBindings)("content.title:title"),(0,o.classNameBindings)("active","content.hasIcon:has-icon","content.classNames","isHidden:hidden","content.name"),(0,o.tagName)("li")]),d=(0,n.setComponentTemplate)(c,u)},10817:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(79360),l=i(10184),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();click(e){let t=e.target;t.closest("button.topics-replies-toggle.--all")?this.args.changeNewListSubset(null):t.closest("button.topics-replies-toggle.--topics")?this.args.changeNewListSubset("topics"):t.closest("button.topics-replies-toggle.--replies")&&this.args.changeNewListSubset("replies")}static #i=(()=>dt7948.n(this.prototype,"click",[r.action]))();static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"RkWlWIFo",block:'[[[1,"\\n"],[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[10,0],[14,0,"topic-replies-toggle-wrapper"],[12],[1,"\\n "],[8,[32,0],null,[["@current","@newRepliesCount","@newTopicsCount","@noStaticLabel","@changeNewListSubset"],[[30,1],[30,2],[30,3],true,[30,4]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,0],[24,0,"topic-replies-toggle-wrapper"],[4,[32,1],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["list/new-list-header-controls"],[["current","newRepliesCount","newTopicsCount","noStaticLabel"],[[30,1],[30,2],[30,3],true]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/new-list-header-controls-wrapper.js",scope:()=>[a.default,n.on,l.default],isStrictMode:!0}),this))()}},59084:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18638),l=i(6059),c=i(843),u=i(53653),d=i(85671);let p="dismissed-prompt";class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"desktopNotifications",[o.service]))();#eR=(()=>void dt7948.i(this,"desktopNotifications"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"bannerDismissed",[n.tracked]))();#n1=(()=>void dt7948.i(this,"bannerDismissed"))();constructor(){super(...arguments),this.bannerDismissed=l.keyValueStore.getItem(p)}setBannerDismissed(e){l.keyValueStore.setItem(p,e),this.bannerDismissed=l.keyValueStore.getItem(p)}get showNotificationPromptBanner(){return this.siteSettings.push_notifications_prompt&&!this.desktopNotifications.isNotSupported&&this.currentUser&&this.capabilities.isPwa&&"denied"!==Notification.permission&&"granted"!==Notification.permission&&!this.desktopNotifications.isEnabled&&!this.bannerDismissed}turnon(){this.desktopNotifications.enable(),this.setBannerDismissed(!0)}static #u=(()=>dt7948.n(this.prototype,"turnon",[r.action]))();dismiss(){this.setBannerDismissed(!1)}static #d=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #p=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"N36PKC7Q",block:'[[[1,"\\n"],[41,[30,0,["showNotificationPromptBanner"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"consent_banner alert alert-info"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["user.desktop_notifications.consent_prompt"],null]],[1,"\\n "],[8,[32,1],null,[["@display","@action","@label"],["link",[30,0,["turnon"]],"user.desktop_notifications.enable"]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["xmark",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notification-consent-banner.js",scope:()=>[c.i18n,a.default],isStrictMode:!0}),this))()}},75099:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(18638),l=i(82698),c=i(98740),u=i(81133),d=i(72738),p=i(23777),h=i(843),m=i(12610),g=i(53653),f=i(85671);function _(e,t,i,s){let n=e+"."+t;return i&&(n+=i),(0,h.i18n)(n+"."+s)}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();get showFullTitle(){return this.args.showFullTitle??!0}get showCaret(){return this.site.desktopView&&(this.args.showCaret??!0)}get title(){return _(this.args.prefix,this.args.selectedLevel.key,this.args.suffix,"title")}static #i=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"YCY/tntG",block:'[[[1,"\\n "],[1,[28,[32,0],[[30,1,["icon"]]],null]],[1,"\\n\\n"],[41,[30,0,["showFullTitle"]],[[[1," "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCaret"]],[[[1," "],[1,[28,[32,0],["angle-down"],[["class"],["notifications-tracking-btn__caret"]]]],[1,"\\n"]],[]],null],[1," "]],["@selectedLevel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[d.default],isStrictMode:!0}),this))()}class b extends s.default{registerDmenuApi(e){this.dmenuApi=e}static #e=(()=>dt7948.n(this.prototype,"registerDmenuApi",[r.action]))();async setNotificationLevel(e){await this.dmenuApi.close({focusTrigger:!0}),this.args.onChange?.(e)}static #i=(()=>dt7948.n(this.prototype,"setNotificationLevel",[r.action]))();description(e){return _(this.args.prefix,e.key,this.args.suffix,"description")}static #s=(()=>dt7948.n(this.prototype,"description",[r.action]))();label(e){return _(this.args.prefix,e.key,this.args.suffix,"title")}static #l=(()=>dt7948.n(this.prototype,"label",[r.action]))();isSelectedClass(e){return this.args.levelId===e.id?"-selected":""}static #c=(()=>dt7948.n(this.prototype,"isSelectedClass",[r.action]))();get selectedLevel(){return(0,p.buttonDetails)(this.args.levelId)}get levels(){return this.args.levels??p.allLevels}static #u=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"63HeCjvm",block:'[[[1,"\\n "],[8,[32,0],[[16,"data-level-id",[30,0,["selectedLevel","id"]]],[16,"data-level-name",[30,0,["selectedLevel","key"]]],[17,1]],[["@identifier","@modalForMobile","@triggerClass","@onRegisterApi","@title","@autofocus"],["notifications-tracking",true,[28,[32,1],["btn-default","notifications-tracking-trigger-btn",[30,2]],null],[30,0,["registerDmenuApi"]],[30,3],false]],[["trigger","content"],[[[[1,"\\n "],[8,[32,2],null,[["@showFullTitle","@showCaret","@selectedLevel","@suffix","@prefix"],[[30,4],[30,5],[30,0,["selectedLevel"]],[30,6],[30,7]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["levels"]]],null]],null],null,[[[1," "],[8,[30,8,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,1],["notifications-tracking-btn",[28,[30,0,["isSelectedClass"]],[[30,9]],null]],null]],[16,"data-level-id",[30,9,["id"]]],[16,"data-level-name",[30,9,["key"]]]],[["@action"],[[28,[32,5],[[30,0,["setNotificationLevel"]],[30,9,["id"]]],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"notifications-tracking-btn__icons"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["notifications-tracking-icons",[28,[32,7],null,[["selectedLevelId","level","topic"],[[30,10],[30,9],[30,11]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,8],[[30,9,["icon"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"notifications-tracking-btn__texts"],[12],[1,"\\n "],[10,1],[14,0,"notifications-tracking-btn__label"],[12],[1,"\\n "],[1,[28,[30,0,["label"]],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"notifications-tracking-btn__description"],[12],[1,"\\n "],[1,[28,[30,0,["description"]],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[9]],null],[1," "]],[8]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@triggerClass","@title","@showFullTitle","@showCaret","@suffix","@prefix","dropdown","level","@levelId","@topic"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[m.default,u.default,y,l.default,a.default,n.fn,c.default,n.hash,d.default],isStrictMode:!0}),this))()}},53985:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(35533),n=i(53397),r=i(39131),o=i(63748),a=i(16547),l=i(42236),c=i(843);let u=dt7948.c(class extends r.default{init(){super.init(...arguments),(0,a.default)(`NumberField component is deprecated. Use native elements instead. e.g. `,{id:"discourse.number-field",since:"3.2.0.beta5",dropFrom:"3.3.0"})}keyDown(e){(0,l.allowOnlyNumericInput)(e,this._minNumber&&this._minNumber<0)}get _minNumber(){if(this.get("min"))return parseInt(this.get("min"),10)}get _maxNumber(){if(this.get("max"))return parseInt(this.get("max"),10)}get value(){return null===this.number?"":parseInt(this.number,10)}static #e=(()=>dt7948.n(this.prototype,"value",[(0,s.computed)("number")]))();set value(e){let t=parseInt(e,10);isNaN(t)?(this.set("invalid",!0),this.set("number",null)):(this.set("invalid",!1),this.set("number",t))}placeholder(e){return e?(0,c.i18n)(e):""}static #i=(()=>dt7948.n(this.prototype,"placeholder",[(0,o.default)("placeholderKey")]))()},[(0,n.classNameBindings)("invalid")])},76486:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(843),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"networkConnectivity",[r.service]))();#n0=(()=>void dt7948.i(this,"networkConnectivity"))();get showing(){return!this.networkConnectivity.connected}refresh(){window.location.reload(!0)}static #i=(()=>dt7948.n(this.prototype,"refresh",[n.action]))();static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"rmsKiOI3",block:'[[[1,"\\n"],[41,[30,0,["showing"]],[[[1," "],[10,0],[14,0,"offline-indicator"],[12],[1,"\\n "],[10,1],[12],[1,[28,[32,0],["offline_indicator.no_internet"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@label","@display","@action"],["offline_indicator.refresh_page","link",[30,0,["refresh"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/offline-indicator.js",scope:()=>[a.i18n,o.default],isStrictMode:!0}),this))()}},45626:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(62053),l=i(83133),c=i(42256),u=i(81329),d=i(81133),p=i(63748),h=i(53653),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"loadingSlider",[l.service]))();#t1=(()=>void dt7948.i(this,"loadingSlider"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"state",[n.tracked],function(){return"ready"}))();#nl=(()=>void dt7948.i(this,"state"))();constructor(){super(...arguments),this.loadingSlider.on("stateChanged",this.stateChanged)}willDestroy(){super.willDestroy(...arguments),this.loadingSlider.off("stateChange",this,"stateChange"),this._deferredStateChange&&(cancelAnimationFrame(this._deferredStateChange),this._deferredStateChange=null)}stateChanged(e){this._deferredStateChange&&(cancelAnimationFrame(this._deferredStateChange),this._deferredStateChange=null),e&&this.ready?this.state="loading":e?(this.state="ready",this._deferredStateChange=requestAnimationFrame(()=>{(0,a.run)(()=>this.state="loading")})):this.state="done"}static #l=(()=>dt7948.n(this.prototype,"stateChanged",[p.bind]))();get containerStyle(){let e=this.loadingSlider.averageLoadingDuration.toFixed(2);return(0,c.htmlSafe)(`--loading-duration: ${e}s`)}onContainerTransitionEnd(e){e.target===e.currentTarget&&"opacity"===e.propertyName&&(this.state="ready")}static #c=(()=>dt7948.n(this.prototype,"onContainerTransitionEnd",[o.action]))();onBarTransitionEnd(e){e.target===e.currentTarget&&"transform"===e.propertyName&&"loading"===this.state&&(this.state="still-loading")}static #u=(()=>dt7948.n(this.prototype,"onBarTransitionEnd",[o.action]))();static #d=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"FycjnmDY",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,0,["loadingSlider","mode"]],"slider"],null],[[[1," "],[11,0],[16,5,[30,0,["containerStyle"]]],[16,0,[28,[32,1],["loading-indicator-container",[30,0,["state"]],[52,[30,0,["capabilities","isAppWebview"]],"discourse-hub-webview"]],null]],[4,[32,2],["transitionend",[30,0,["onContainerTransitionEnd"]]],null],[12],[1,"\\n "],[11,0],[24,0,"loading-indicator"],[4,[32,2],["transitionend",[30,0,["onBarTransitionEnd"]]],null],[12],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/page-loading-slider.js",scope:()=>[u.eq,d.default,r.on],isStrictMode:!0}),this))()}},52050:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(72508);let n=(0,i(85671).createTemplateFactory)({id:"EOW1gcyd",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-category-mobile",[28,[37,2],null,[["category","listType","isMuted"],[[30,0,["category"]],[30,0,["listType"]],[30,0,["isMuted"]]]]]]],null],[1,"\\n "],[10,0],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,5,[28,[37,5],[[30,0,["category","color"]]],null]],[15,0,[29,["category-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,"table"],[14,0,"topic-list"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"main-link"],[12],[1,"\\n "],[8,[39,10],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,"tr"],[14,0,"category-description"],[12],[1,"\\n "],[10,"td"],[14,"colspan","3"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","description_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null]],[]],null]],[]],null],[41,[30,0,["category","isGrandParent"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,16],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[30,0,["category","subcategories"]],[[[1," "],[10,"tr"],[14,0,"subcategories-list"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,17],null,[["@category","@listType"],[[30,3],[30,0,["listType"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"footer"],[14,0,"clearfix category-topics-count"],[12],[1,"\\n "],[10,0],[14,0,"category-stat"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","statTotal"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[51,[30,0,["category","pickAll"]]],[[[1," "],[10,0],[14,0,"category-stat"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","stat"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1,"\\n "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n ",[28,[30,0,["applyValueTransformer"]],["parent-category-row-class",[28,[37,20],null,null],[28,[37,2],null,[["category"],[[30,0,["category"]]]]]],null],"\\n ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-category-section",[28,[37,2],null,[["category","listType"],[[30,0,["category"]],[30,0,["listType"]]]]]]],null],[1,"\\n\\n "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,21],[[30,0,["category","color"]]],null]],[12],[1,"\\n "],[8,[39,10],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["below-category-title-link","div",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,0],[14,0,"category-description"],[12],[1,"\\n "],[1,[28,[35,22],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","isGrandParent"]],[[[1," "],[10,"table"],[14,0,"category-list subcategories-with-subcategories"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,16],null,[["@category","@listType"],[[30,4],[30,0,["listType"]]]],null],[1,"\\n"]],[4]],null],[41,[28,[37,23],[[30,0,["category","unloadedSubcategoryCount"]],0],null],[[[1," "],[1,[28,[35,24],["category_row.subcategory_count"],[["count"],[[30,0,["category","unloadedSubcategoryCount"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,17],null,[["@category","@listType"],[[30,5],[30,0,["listType"]]]],null],[1,"\\n"]],[5]],null],[41,[28,[37,23],[[30,0,["category","unloadedSubcategoryCount"]],0],null],[[[1," "],[10,0],[14,0,"subcategories__more-subcategories"],[12],[1,"\\n "],[8,[39,25],null,[["@route","@model"],["discovery.subcategories",[30,0,["slugPath"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,24],["category_row.subcategory_count"],[["count"],[[30,0,["category","unloadedSubcategoryCount"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-topics-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n "],[10,"td"],[14,0,"topics"],[12],[1,"\\n "],[10,0],[15,"title",[30,0,["category","statTitle"]]],[12],[1,[28,[35,12],[[30,0,["category","stat"]]],null]],[13],[1,"\\n "],[8,[39,26],[[24,0,"unread-new"]],[["@category","@tagName","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],"div",[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-after-topics-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[1," "],[10,"td"],[14,0,"latest"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[41,[30,0,["site","useGlimmerTopicList"]],[[[1," "],[8,[39,27],null,[["@topic"],[[30,6]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,28],null,[["@topic"],[[30,6]]],null],[1,"\\n"]],[]]]],[6]],null],[1," "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-after-latest-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null]],["t","subcategory","subcategory","subcategory","subcategory","t"],false,["unless","plugin-outlet","hash","if","div","border-color","table","tbody","tr","th","category-title-link","td","html-safe","each","-track-array","mobile-category-topic","sub-category-row","sub-category-item","footer","a","array","category-color-variable","dir-span","gt","i18n","link-to","category-unread","topic-list/featured-topic","featured-topic"]]',moduleName:"discourse/components/parent-category-row.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},1390:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"8Pqh+8ta",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-social passkey-login-button"]],[["@action","@icon","@label"],[[30,1],"user","login.passkey.name"]],null],[1,"\\n"]],["@passkeyLogin"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/passkey-login-button.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"passkey-login-button:PasskeyLoginButton"))},72641:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(39131);class n extends s.default{canToggle=!1;keyPress(e){e.which>=65&&e.which<=90&&!e.shiftKey||e.which>=97&&e.which<=122&&e.shiftKey?(this.set("canToggle",!0),this.set("capsLockOn",!0)):(e.which>=65&&e.which<=90&&e.shiftKey||e.which>=97&&e.which<=122&&!e.shiftKey)&&(this.set("canToggle",!0),this.set("capsLockOn",!1))}keyUp(e){20===e.which&&this.canToggle&&this.toggleProperty("capsLockOn")}focusOut(){this.set("capsLockOn",!1)}focusIn(){this.set("canToggle",!1)}}},13780:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(83133),o=i(75983),a=i(53397),l=i(63748),c=i(65742),u=i(843);let d=(0,i(85671).createTemplateFactory)({id:"cliF26hE",block:'[[[41,[30,0,["showButton"]],[[[1," "],[8,[39,1],null,[["@action","@label","@icon"],[[28,[37,2],[[30,0],"openSystemFilePicker"],null],[30,0,["label"]],[30,0,["icon"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["acceptsAllFormats"]],[[[1," "],[11,"input"],[16,1,[30,0,["fileInputId"]]],[16,0,[30,0,["fileInputClass"]]],[16,"multiple",[30,0,["allowMultiple"]]],[16,"disabled",[30,0,["fileInputDisabled"]]],[24,4,"file"],[4,[38,4],[[28,[37,5],[[30,1],[28,[37,6],null,null]],null]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[11,"input"],[16,1,[30,0,["fileInputId"]]],[16,0,[30,0,["fileInputClass"]]],[16,"accept",[30,0,["acceptedFormats"]]],[16,"multiple",[30,0,["allowMultiple"]]],[16,"disabled",[30,0,["fileInputDisabled"]]],[24,4,"file"],[4,[38,4],[[28,[37,5],[[30,1],[28,[37,6],null,null]],null]],null],[12],[13],[1,"\\n"]],[]]]],["@registerFileInput"],false,["if","d-button","action","input","did-insert","or","noop"]]',moduleName:"discourse/components/pick-files-button.hbs",isStrictMode:!1}),p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();fileInputId=null;fileInputClass=null;fileInputDisabled=!1;acceptedFormatsOverride=null;allowMultiple=!1;showButton=!1;didInsertElement(){if(super.didInsertElement(...arguments),this.onFilesPicked){let e=this.element.querySelector("input");this.set("fileInput",e),e.addEventListener("change",this.onChange,!1)}}willDestroyElement(){super.willDestroyElement(...arguments),this.onFilesPicked&&this.fileInput.removeEventListener("change",this.onChange)}onChange(){let e=this.fileInput.files;this._filesPicked(e)}static #i=(()=>dt7948.n(this.prototype,"onChange",[l.bind]))();acceptsAllFormats(){return this.capabilities.isIOS||(0,c.authorizesAllExtensions)(this.currentUser.staff,this.siteSettings)}static #s=(()=>dt7948.n(this.prototype,"acceptsAllFormats",[(0,l.default)()]))();acceptedFormats(){return(0,o.isBlank)(this.acceptedFormatsOverride)?(0,c.authorizedExtensions)(this.currentUser.staff,this.siteSettings).map(e=>`.${e}`).join():this.acceptedFormatsOverride}static #l=(()=>dt7948.n(this.prototype,"acceptedFormats",[(0,l.default)()]))();openSystemFilePicker(){this.fileInput.click()}static #c=(()=>dt7948.n(this.prototype,"openSystemFilePicker",[n.action]))();_filesPicked(e){if(e&&e.length){if(!this._haveAcceptedTypes(e)){let e=(0,u.i18n)("pick_files_button.unsupported_file_picked",{types:this.acceptedFileTypesString});this.dialog.alert(e);return}"function"==typeof this.onFilesPicked&&this.onFilesPicked(e)}}_haveAcceptedTypes(e){for(let t of e)if(!this._hasAcceptedExtensionOrType(t))return!1;return!0}_hasAcceptedExtensionOrType(e){let t=this._fileExtension(e.name);return this.acceptedFormats.includes(`.${t}`)||this.acceptedFormats.includes(e.type)}_fileExtension(e){return e.split(".").pop()}},[(0,a.classNames)("pick-files-button")]),h=(0,s.setComponentTemplate)(d,p)},44620:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addPluginOutletDecorator:()=>l,default:()=>u,resetDecorators:()=>c});var s=i(53653),n=i(35533),r=i(63748),o=i(72906);let a={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function c(){a={}}class u extends s.default{init(){super.init(...arguments),this.args&&Object.keys(this.args).forEach(e=>{(0,n.defineProperty)(this,e,(0,n.computed)("args",function(){return this.args[e]}))});let e={outletName:this.connector?.outletName,connectorName:this.connector?.connectorName,classModuleName:this.connector?.classModuleName,templateModule:this.connector?.templateModule,layoutName:this.layoutName};this.deprecatedArgs&&Object.keys(this.deprecatedArgs).forEach(t=>{(0,n.defineProperty)(this,t,(0,n.computed)("deprecatedArgs",function(){return(0,o.deprecatedArgumentValue)(this.deprecatedArgs[t],{...e,argumentName:t})}))});let t=this.connector.connectorClass;if(this.set("actions",t?.actions),this.actions)for(let[e,t]of Object.entries(this.actions))this.set(e,t.bind(this));let i=(0,o.buildArgsWithDeprecations)(this.args,this.deprecatedArgs,e);t?.setupComponent?.call(this,i,this)}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this._decoratePluginOutlets()}_decoratePluginOutlets(){(a[this.connector.outletName]||[]).forEach(e=>e(this.element,this.args))}static #e=(()=>dt7948.n(this.prototype,"_decoratePluginOutlets",[r.afterRender]))();willDestroyElement(){super.willDestroyElement(...arguments);let e=this.connector.connectorClass;e?.teardownComponent?.call(this,this)}send(e){let t=this.connector.connectorClass,i=t?.actions?.[e];for(var s=arguments.length,n=Array(s>1?s-1:0),r=1;r{"use strict";i.r(t),i.d(t,{default:()=>m}),i(8554);var s=i(53653),n=i(35533),r=i(31049),o=i(83133),a=i(7056),l=i(63748),c=i(16547),u=i(65573),d=i(72906);let p=(0,i(85671).createTemplateFactory)({id:"bRqMsmPK",block:'[[[41,[30,1],[[[1," "],[8,[30,0,["wrapperComponent"]],null,[["@tagName"],[[30,1]]],[["default"],[[[[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,null]],null]],null],null,[[[41,[30,2,["componentClass"]],[[[8,[30,2,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null]],[]],[[[41,[30,3],[[[8,[30,2,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null]],[]],[[[8,[39,3],[[16,0,[30,2,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,2],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,2,["template"]]]],null]],[]]]],[]]]],[2]],null]],[]]]]]],[]],[[[41,[28,[30,0,["connectorsExist"]],null,[["hasBlock"],[[48,[30,8]]]]],[[[41,[48,[30,8]],[[[8,[39,6],null,[["@name","@outletArgs"],[[28,[37,7],[[30,6],"__before"],null],[30,0,["outletArgsWithDeprecations"]]]],null]],[]],null],[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,[["hasBlock"],[[48,[30,8]]]]]],null]],null],null,[[[41,[30,7,["componentClass"]],[[[8,[30,7,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]],[[[41,[30,3],[[[8,[30,7,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]],[[[8,[39,3],[[16,0,[30,7,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,7],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,7,["template"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]]]],[]]]],[7]],[[[18,8,null]],[]]],[41,[48,[30,8]],[[[8,[39,6],null,[["@name","@outletArgs"],[[28,[37,7],[[30,6],"__after"],null],[30,0,["outletArgsWithDeprecations"]]]],null]],[]],null]],[]],[[[18,8,null]],[]]]],[]]]],["@tagName","c","@defaultGlimmer","@deprecatedArgs","@connectorTagName","@name","c","&default"],false,["if","each","-track-array","plugin-connector","or","has-block","plugin-outlet","concat","yield"]]',moduleName:"discourse/components/plugin-outlet.hbs",isStrictMode:!1}),h=(0,i(38168).A)(i(8554)).cached;class m extends a.default{static #e=(()=>dt7948.g(this.prototype,"clientErrorHandler",[o.service]))();#n3=(()=>void dt7948.i(this,"clientErrorHandler"))();context={...(0,u.helperContext)(),get parentView(){return this.parentView},get(){return(0,c.default)("Plugin outlet context is no longer an EmberObject - using `get()` is deprecated.",{id:"discourse.plugin-outlet-context-get"}),(0,n.get)(this,...arguments)}};#n8;constructor(){let e=super(...arguments);return this.args.tagName&&(0,c.default)(`The \`tagName\` argument to PluginOutlet is deprecated. If a wrapper element is required, define it manually around the outlet call. Using tagName will prevent wrapper PluginOutlets from functioning correctly. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-tag-name"}),this.args.args&&(0,c.default)(`PluginOutlet arguments should now be passed using \`@outletArgs=\` instead of \`@args=\` (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-args"}),e}getConnectors(){let{hasBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.renderedConnectorsFor)(this.args.name,this.outletArgsWithDeprecations,this.context,(0,r.getOwner)(this));if(t.length>1&&e){let e=`Multiple connectors were registered for the ${this.args.name} outlet. Using the first.`;return this.clientErrorHandler.displayErrorNotice(e),console.error(e,t.map(e=>e.humanReadableName)),[t[0]]}return t}static #i=(()=>dt7948.n(this.prototype,"getConnectors",[l.bind]))();connectorsExist(){let{hasBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.connectorsExist)(this.args.name)||e&&((0,d.connectorsExist)(this.args.name+"__before")||(0,d.connectorsExist)(this.args.name+"__after"))}static #s=(()=>dt7948.n(this.prototype,"connectorsExist",[l.bind]))();get outletArgs(){return this.args.outletArgs||this.args.args||{}}static #l=(()=>dt7948.n(this.prototype,"outletArgs",[h]))();get outletArgsWithDeprecations(){return this.args.deprecatedArgs?(0,d.buildArgsWithDeprecations)(this.outletArgs,this.args.deprecatedArgs||{},{outletName:this.args.name}):this.outletArgs}static #c=(()=>dt7948.n(this.prototype,"outletArgsWithDeprecations",[h]))();get parentView(){return(0,c.default)(`parentView should not be used within plugin outlets. Use the available outlet arguments, or inject a service which can provide the context you need. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-parent-view"}),this.#n8}set parentView(e){this.#n8=e}get _parentView(){return this.parentView}get wrapperComponent(){return g}}class g extends s.default{#n8;get parentView(){if(this._state)return this.#n8.parentView}set parentView(e){this.#n8=e}get _parentView(){return this.parentView}}(0,s.setComponentTemplate)(p,m)},31882:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(30574),r=i(83133),o=i(42256),a=i(53397),l=i(63748);let c=(0,i(85671).createTemplateFactory)({id:"HJxlgDXF",block:'[[[1,[30,0,["tipReason"]]],[1," "],[1,[28,[35,0],["circle-xmark"],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/popup-input-tip.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#Y=(()=>void dt7948.i(this,"composer"))();tipReason=null;tabindex="0";static #i=(()=>dt7948.g(this.prototype,"lastShownAt",[(0,n.or)("shownAt","validation.lastShownAt")]))();#n2=(()=>void dt7948.i(this,"lastShownAt"))();static #s=(()=>dt7948.g(this.prototype,"bad",[(0,n.reads)("validation.failed")]))();#n4=(()=>void dt7948.i(this,"bad"))();static #l=(()=>dt7948.g(this.prototype,"good",[(0,n.not)("bad")]))();#n7=(()=>void dt7948.i(this,"good"))();role(e){if(e)return"alert"}static #c=(()=>dt7948.n(this.prototype,"role",[(0,l.default)("bad")]))();ariaLabel(e){return e?.replace(/(<([^>]+)>)/gi,"")}static #u=(()=>dt7948.n(this.prototype,"ariaLabel",[(0,l.default)("validation.reason")]))();dismiss(){this.set("shownAt",null),this.composer.clearLastValidatedAt(),this.element.previousElementSibling?.focus()}click(){this.dismiss()}keyDown(e){"Enter"===e.key&&this.dismiss()}didReceiveAttrs(){super.didReceiveAttrs(...arguments);let e=this.get("validation.reason");e?this.set("tipReason",(0,o.htmlSafe)(`${e}`)):this.set("tipReason",null)}},[(0,a.attributeBindings)("role","ariaLabel","tabindex"),(0,a.classNameBindings)(":popup-tip","good","bad","lastShownAt::hide"),(0,a.tagName)("a")]),d=(0,s.setComponentTemplate)(c,u)},29062:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"xs5fClE4",block:'[[[10,"h3"],[12],[1,[28,[35,1],[[30,0,["title"]]],null]],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["h3","i18n","ul","yield"]]',moduleName:"discourse/components/popup-menu.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},42637:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(58339),r=i(53653),o=i(85671);class a extends s.default{get description(){if(this.args.actionCode&&this.args.createdAt)return(0,n.actionDescriptionHtml)(this.args.actionCode,this.args.createdAt,this.args.username,this.args.path)}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"bvb8aYM6",block:'[[[1,"\\n"],[41,[30,0,["description"]],[[[1," "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["description"]]],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-action-description.js",isStrictMode:!0}),this))()}},19419:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(35533),o=i(96320),a=i(66203),l=i(38003),c=i(25507),u=i(88355),d=i(843),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"canLoadMore",[n.tracked],function(){return!0}))();#n9=(()=>void dt7948.i(this,"canLoadMore"))();static #s=(()=>dt7948.g(this.prototype,"emptyText",[n.tracked],function(){return this.args.emptyText||(0,d.i18n)("post_list.empty")}))();#n5=(()=>void dt7948.i(this,"emptyText"))();async loadMore(){if(!this.canLoadMore||this.loading||void 0===this.args.fetchMorePosts)return;this.loading=!0;let e=this.args.posts;if(e&&e.length)try{let e=await this.args.fetchMorePosts();this.args.posts.addObjects(e),0===e.length&&(this.canLoadMore=!1)}catch(e){(0,u.popupAjaxError)(e)}finally{this.loading=!1}}static #l=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))();static #c=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"w6yHgZCY",block:'[[[1,"\\n"],[41,[30,0,["canLoadMore"]],[[[1," "],[1,[32,0]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,1],null,[["@selector","@action"],[".post-list-item",[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"post-list"],[17,1],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,2],null,[["@post","@idPath","@urlPath","@titlePath","@usernamePath","@additionalItemClasses","@titleAriaLabel","@showUserInfo","@resumeDraft","@removeDraft"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12]]],[["abovePostItemHeader","belowPostItemMetaData","abovePostItemExcerpt","belowPostItem"],[[[[1,"\\n "],[18,13,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,14,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,15,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,16,[[30,3]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],[[[1," "],[10,0],[14,0,"post-list__empty-text"],[12],[1,[30,0,["emptyText"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@posts","post","@idPath","@urlPath","@titlePath","@usernamePath","@additionalItemClasses","@titleAriaLabel","@showUserInfo","@resumeDraft","@removeDraft","&abovePostItemHeader","&belowPostItemMetaData","&abovePostItemExcerpt","&belowPostItem"],false,["if","each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-list/index.js",scope:()=>[c.default,a.default,l.default,o.default],isStrictMode:!0}),this))()}},71241:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989),n=i(75446),r=i(81329),o=i(18638),a=i(98740),l=i(40121),c=i(70349),u=i(18385),d=i(72738),p=i(54412),h=i(94636),m=i(21719),g=i(843),f=i(53653),_=i(85671);class y extends s.default{get url(){return this.args.urlPath?this.args.post[this.args.urlPath]:this.args.post.url}get showUserInfo(){return void 0!==this.args.showUserInfo?this.args.showUserInfo&&this.args.user:this.args.user}get topicTitle(){return this.args.titlePath?this.args.post[this.args.titlePath]:this.args.post.title}get draftTitle(){return this.args.post.title??this.args.post.data.title}get titleAriaLabel(){return this.args.titleAriaLabel?this.args.titleAriaLabel:this.args.post.post_number&&this.topicTitle?(0,g.i18n)("post_list.aria_post_number",{title:this.topicTitle,postNumber:this.args.post.post_number}):void 0}get posterName(){return(0,m.prioritizeNameInUx)(this.args.user.name)?this.args.user.name:this.args.user.username}static #e=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"dOudunhk",block:'[[[1,"\\n "],[10,0],[14,0,"post-list-item__details"],[12],[1,"\\n "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,"\\n"],[41,[30,0,["url"]],[[[1," "],[10,3],[15,6,[28,[32,1],[[30,0,["url"]]],null]],[15,"aria-label",[30,0,["titleAriaLabel"]]],[12],[1,[30,0,["topicTitle"]]],[13],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[8,[32,2],[[24,0,"btn-transparent draft-title"]],[["@action"],[[28,[32,3],[[30,3],[30,1]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],[[30,0,["draftTitle"]],[28,[32,5],["drafts.dropdown.untitled"],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["topicTitle"]]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"post-list-item__metadata"],[12],[1,"\\n"],[41,[30,1,["category"]],[[[1," "],[10,1],[14,0,"category stream-post-category"],[12],[1,"\\n "],[1,[28,[32,6],[[30,1,["category"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"time"],[12],[1,"\\n "],[1,[28,[32,7],[[30,1,["created_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["deleted_by"]],[[[1," "],[10,1],[14,0,"delete-info"],[12],[1,"\\n "],[1,[28,[32,8],["trash-can"],null]],[1,"\\n "],[1,[28,[32,9],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n "],[1,[28,[32,7],[[30,4,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showUserInfo"]],[[[1," "],[10,0],[14,0,"post-member-info names"],[12],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,[30,0,["posterName"]]],[13],[1,"\\n\\n"],[41,[30,5,["title"]],[[[1," "],[10,1],[14,0,"user-title"],[12],[1,[30,5,["user_title"]]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,10],null,[["@name","@outletArgs"],["post-list-additional-member-info",[28,[32,11],null,[["user"],[[30,5]]]]]],null],[1,"\\n\\n"],[1," "],[8,[32,10],null,[["@name","@outletArgs"],["group-post-additional-member-info",[28,[32,11],null,[["user"],[[30,5]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@post","@isDraft","@resumeDraft","@item","@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-list/item/details.js",scope:()=>[l.default,h.default,o.default,n.fn,r.or,g.i18n,u.default,p.default,d.default,c.default,a.default,n.hash],isStrictMode:!0}),this))()}},38003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(83133),o=i(42256),a=i(18638),l=i(26372),c=i(71241),u=i(70349),d=i(81133),p=i(72738),h=i(87353),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get moderatorActionClass(){return this.args.post.post_type===this.site.post_types.moderator_action?"moderator-action":""}get primaryGroupClass(){if(this.args.post.user&&this.args.post.user.primary_group_name)return`group-${this.args.post.user.primary_group_name}`}get hiddenClass(){return this.args.post.hidden&&!this.currentUser?.staff}get deletedClass(){return this.args.post.deleted?"deleted":""}get user(){return{id:this.args.post.user_id,name:this.args.post.name,username:this.args.usernamePath?this.args.post[this.args.usernamePath]:this.args.post.username,avatar_template:this.args.post.avatar_template,title:this.args.post.user_title,primary_group_name:this.args.post.primary_group_name}}get postId(){return this.args.idPath?this.args.post[this.args.idPath]:this.args.post.id}get isDraft(){return"UserDraft"===this.args.post.constructor.name}get draftIcon(){let e=this.args.post.draft_key;return e.startsWith("new_private_message")?"envelope":e.startsWith("new_topic")?"layer-group":"reply"}static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"7lTPkDf9",block:'[[[1,"\\n "],[10,0],[15,0,[29,["post-list-item\\n ",[28,[32,0],[[30,0,["moderatorActionClass"]],[30,0,["primaryGroupClass"]],[30,0,["hiddenClass"]],[30,1]],null]]]],[12],[1,"\\n "],[18,9,null],[1,"\\n\\n "],[10,0],[14,0,"post-list-item__header info"],[12],[1,"\\n"],[41,[30,0,["isDraft"]],[[[1," "],[10,0],[14,0,"draft-icon"],[12],[1,"\\n "],[1,[28,[32,1],[[30,0,["draftIcon"]]],[["class"],["icon"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[32,2],[[30,0,["user","username"]]],null]],[15,"data-user-card",[30,0,["user","username"]]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[32,3],[[30,0,["user"]]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[32,4],null,[["@post","@titleAriaLabel","@titlePath","@urlPath","@user","@showUserInfo","@isDraft","@resumeDraft"],[[30,2],[30,3],[30,4],[30,5],[30,0,["user"]],[30,6],[30,0,["isDraft"]],[30,7]]],null],[1,"\\n\\n"],[41,[51,[30,2,["draftType"]]],[[[1," "],[8,[32,5],null,[["@item"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["editableDraft"]],[[[1," "],[10,0],[14,0,"user-stream-item-draft-actions"],[12],[1,"\\n "],[8,[32,6],[[24,0,"btn-default resume-draft"]],[["@action","@icon","@title"],[[28,[32,7],[[30,7],[30,2]],null],"pencil","drafts.resume"]],null],[1,"\\n "],[8,[32,6],[[24,0,"btn-danger remove-draft"]],[["@action","@icon","@title"],[[28,[32,7],[[30,8],[30,2]],null],"trash-can","drafts.remove"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,10,null],[1,"\\n "],[13],[1,"\\n\\n "],[18,11,null],[1,"\\n\\n "],[10,0],[15,"data-topic-id",[30,2,["topic_id"]]],[15,"data-post-id",[30,0,["postId"]]],[15,"data-user-id",[30,2,["user_id"]]],[14,0,"excerpt"],[12],[1,"\\n"],[41,[30,2,["expandedExcerpt"]],[[[1,[28,[32,8],[[30,2,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[32,8],[[30,2,["excerpt"]]],null]]],[]]],[1," "],[13],[1,"\\n\\n "],[18,12,null],[1,"\\n "],[13],[1,"\\n "]],["@additionalItemClasses","@post","@titleAriaLabel","@titlePath","@urlPath","@showUserInfo","@resumeDraft","@removeDraft","&abovePostItemHeader","&belowPostItemMetadata","&abovePostItemExcerpt","&belowPostItem"],false,["yield","if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-list/item/index.js",scope:()=>[d.default,p.default,h.userPath,u.default,c.default,l.default,a.default,n.fn,o.htmlSafe],isStrictMode:!0}),this))()}},83962:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S,fixQuotes:()=>T});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(83133),c=i(68587),u=i(18638),d=i(77924),p=i(60669),h=i(98740),m=i(81133),g=i(6864),f=i(94636),_=i(47960),y=i(42236),b=i(843),w=i(53653),k=i(85671);function T(e){return e.replace(/[\u201C\u201D]/g,'"').replace(/[\u2018\u2019]/g,"'")}class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"toasts",[l.service]))();#C=(()=>void dt7948.i(this,"toasts"))();static #d=(()=>dt7948.g(this.prototype,"isFastEditing",[n.tracked],function(){return!1}))();#n6=(()=>void dt7948.i(this,"isFastEditing"))();appEventsListeners=(()=>(0,c.modifier)(()=>(this.appEvents.on("quote-button:edit",this,"toggleFastEdit"),()=>{this.appEvents.off("quote-button:edit",this,"toggleFastEdit")})))();get topic(){return this.args.data.topic}get quoteState(){return this.args.data.quoteState}get post(){return this.topic.postStream.findLoadedPost(this.args.data.quoteState.postId)}get quoteSharingEnabled(){return this.site.desktopView&&this.quoteSharingSources.length>0&&!this.topic.invisible&&!this.topic.category?.read_restricted&&("all"===this.siteSettings.share_quote_visibility||"anonymous"===this.siteSettings.share_quote_visibility&&!this.currentUser)}get quoteSharingSources(){return _.default.activeSources(this.siteSettings.share_quote_buttons,this.siteSettings.login_required||this.topic.isPrivateMessage)}get quoteSharingShowLabel(){return this.quoteSharingSources.length>1}get shareUrl(){return(0,f.getAbsoluteURL)((0,y.postUrl)(this.topic.slug,this.topic.id,this.post.post_number))}get embedQuoteButton(){let e=this.topic.details.can_create_post,t=this.topic.details.can_reply_as_new_topic;return(e||t)&&this.currentUser?.get("user_option.enable_quoting")}trapEvents(e){e.stopPropagation()}static #p=(()=>dt7948.n(this.prototype,"trapEvents",[a.action]))();async copyQuoteToClipboard(){let e=await this.args.data.buildQuote();(0,y.clipboardCopy)(e),this.toasts.success({duration:3e3,data:{message:(0,b.i18n)("post.quote_copied_to_clibboard")}}),await this.args.data.hideToolbar()}static #h=(()=>dt7948.n(this.prototype,"copyQuoteToClipboard",[a.action]))();async closeFastEdit(){this.isFastEditing=!1,await this.args.data.hideToolbar()}static #m=(()=>dt7948.n(this.prototype,"closeFastEdit",[a.action]))();async toggleFastEdit(){if(this.args.data.supportsFastEdit)this.site.desktopView?this.isFastEditing=!this.isFastEditing:(this.modal.show(p.default,{model:{initialValue:this.args.data.quoteState.buffer,post:this.post}}),this.args.data.hideToolbar());else{let e=await (0,g.ajax)(`/posts/${this.post.id}`);if(this.isDestroying||this.isDestroyed)return;let t=0,i=e.raw.split("\n"),s=T(this.args.data.quoteState.buffer.split("\n")[0].replace(/^\* /,""));i.some((e,i)=>{if(e.length&&e.includes(s))return t=i,!0}),this.args.data.editPost(this.post),document.querySelector("#reply-control")?.addEventListener("transitionend",()=>{let e=document.querySelector(".d-editor-input");!e||this.isDestroyed||this.isDestroying||(y.setCaretPosition(e,i.slice(0,t).join("\n").length+ +(t>0)),e.blur(),e.focus())}),this.args.data.hideToolbar();return}}static #g=(()=>dt7948.n(this.prototype,"toggleFastEdit",[a.action]))();share(e){_.default.shareSource(e,{url:this.shareUrl,title:this.topic.title,quote:window.getSelection().toString()})}static #A=(()=>dt7948.n(this.prototype,"share",[a.action]))();static #E=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"h0zhSUG+",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[28,[32,0],["quote-button","visible",[52,[30,0,["isFastEditing"]],"fast-editing"]],null]],[4,[32,1],["mousedown",[30,0,["trapEvents"]]],null],[4,[32,1],["mouseup",[30,0,["trapEvents"]]],null],[4,[30,0,["appEventsListeners"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@defaultGlimmer","@outletArgs"],["post-text-buttons",true,[28,[32,3],null,[["data","post"],[[30,1],[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["embedQuoteButton"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat insert-quote"]],[["@icon","@label","@title","@action"],["quote-left","post.quote_reply","post.quote_reply_shortcut",[30,1,["insertQuote"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canEditPost"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat quote-edit-label"],[4,[32,1],["click",[30,0,["toggleFastEdit"]]],null]],[["@icon","@label","@title"],["pencil","post.quote_edit","post.quote_edit_shortcut"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canCopyQuote"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat copy-quote"],[4,[32,1],["click",[30,0,["copyQuoteToClipboard"]]],null]],[["@icon","@label","@title"],["copy","post.quote_copy","post.quote_copy"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-before","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,0,["quoteSharingEnabled"]],[[[1," "],[10,1],[14,0,"quote-sharing"],[12],[1,"\\n"],[41,[30,0,["quoteSharingShowLabel"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat quote-share-label"]],[["@icon","@label"],["share","post.quote_share"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"quote-share-buttons"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["quoteSharingSources"]]],null]],null],null,[[[1," "],[8,[32,4],[[24,0,"btn-flat"]],[["@action","@translatedTitle","@icon"],[[28,[32,5],[[30,0,["share"]],[30,2]],null],[30,2,["title"]],[30,2,["icon"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-after","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"extra"],[12],[1,"\\n"],[41,[30,0,["isFastEditing"]],[[[1," "],[8,[32,6],null,[["@initialValue","@post","@close"],[[30,1,["quoteState","buffer"]],[30,0,["post"]],[30,0,["closeFastEdit"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName"],["quote-button-after","div"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@data","source"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection-toolbar.js",scope:()=>[m.default,o.on,h.default,r.hash,u.default,r.fn,d.default],isStrictMode:!0}),this))()}},65344:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(83133),l=i(68587),c=i(83962),u=i(46301),d=i(63748),p=i(77093),h=i(19587),m=i(79266),g=i(40049),f=i(42236),_=i(14507),y=i(53653),b=i(85671);let w=(0,i(38168).A)(i(8554)).cached;class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"menu",[a.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #d=(()=>dt7948.g(this.prototype,"isSelecting",[n.tracked],function(){return!1}))();#re=(()=>void dt7948.i(this,"isSelecting"))();prevSelectedText;runLoopHandlers=(()=>(0,l.modifier)(()=>()=>{(0,o.cancel)(this.selectionChangeHandler)}))();documentListeners=(()=>(0,l.modifier)(()=>(document.addEventListener("mousedown",this.mousedown,{passive:!0}),document.addEventListener("mouseup",this.mouseup,{passive:!0}),document.addEventListener("selectionchange",this.onSelectionChanged),()=>{document.removeEventListener("mousedown",this.mousedown),document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("selectionchange",this.onSelectionChanged)})))();appEventsListeners=(()=>(0,l.modifier)(()=>(this.appEvents.on("topic:current-post-scrolled",this,"handleTopicScroll"),this.appEvents.on("quote-button:quote",this,"insertQuote"),()=>{this.appEvents.off("topic:current-post-scrolled",this,"handleTopicScroll"),this.appEvents.off("quote-button:quote",this,"insertQuote")})))();willDestroy(){super.willDestroy(...arguments),(0,o.cancel)(this.debouncedSelectionChanged),this.menuInstance?.close()}async hideToolbar(){this.args.quoteState.clear(),await this.menuInstance?.close()}static #p=(()=>dt7948.n(this.prototype,"hideToolbar",[d.bind]))();async selectionChanged(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isSelecting)return;let i=(0,f.selectedText)(),s=window.getSelection();if(s.isCollapsed||""===i){this.menuInstance?.expanded||this.args.quoteState.clear();return}if(!t.force&&this.menuInstance?.expanded&&this.prevSelectedText===i)return;this.prevSelectedText=i;for(let t=0;t0)&&i===(0,g.default)(r.innerHTML)};for(let e=n;e&&"ARTICLE"!==e.tagName;e=e.parentElement)if("ASIDE"===e.tagName&&e.classList.contains("quote")){o.username=e.dataset.username||function(e){let t=e.querySelector(".title");if(!t)return;let i=t.querySelector("a:not(.back)");return i?i.textContent.trim():t.textContent.trim().replace(/:$/,"")}(e),o.post=e.dataset.post,o.topic=e.dataset.topic;break}let a=this.args.quoteState;a.selected(e,i,o);let l=this.canEditPost,u=(0,f.getElement)(s.getRangeAt(0).startContainer);if((!u||u.closest("aside.quote,aside.onebox,.cooked-date,body.encrypted-topic-page"))&&(l=!1),l){let e=RegExp((0,h.default)(a.buffer),"gi"),t=r.innerHTML.match(e);(0===a.buffer.length||a.buffer.includes("|")||a.buffer.match(/\n/g)||a.buffer.match(/[‚‘’„“”«»‹›™±…→←↔¶]/g)||t?.length!==1)&&(l=!1)}let d=3;!this.shouldRenderUnder||(d=20,(0,m.default)((0,f.selectedRange)().startContainer.parentNode)&&(0,m.default)((0,f.selectedRange)().endContainer.parentNode)||(d=70));let p={identifier:"post-text-selection-toolbar",component:c.default,inline:!0,placement:this.shouldRenderUnder?"bottom-start":"top-start",fallbackPlacements:this.shouldRenderUnder?["bottom-end","top-start"]:["bottom-start"],offset:d,trapTab:!1,closeOnScroll:!1,data:{canEditPost:this.canEditPost,canCopyQuote:this.canCopyQuote,editPost:this.args.editPost,supportsFastEdit:l,topic:this.args.topic,quoteState:a,insertQuote:this.insertQuote,buildQuote:this.buildQuote,hideToolbar:this.hideToolbar}};await this.menuInstance?.destroy(),this.menuInstance=await this.menu.show((0,_.default)(),p)}onSelectionChanged(){if(this.isSelecting)return;let{isIOS:e,isWinphone:t,isAndroid:i}=this.capabilities,s=e||t||i?p.INPUT_DELAY:25;this.selectionChangeHandler=(0,u.default)(this,this.selectionChanged,s)}static #h=(()=>dt7948.n(this.prototype,"onSelectionChanged",[d.bind]))();mousedown(){this.isSelecting=!0}static #m=(()=>dt7948.n(this.prototype,"mousedown",[d.bind]))();mouseup(){this.isSelecting=!1,this.onSelectionChanged()}static #g=(()=>dt7948.n(this.prototype,"mouseup",[d.bind]))();get post(){return this.args.topic.postStream.findLoadedPost(this.args.quoteState.postId)}get canEditPost(){return this.siteSettings.enable_fast_edit&&this.post?.can_edit}get canCopyQuote(){return this.siteSettings.enable_quote_copy&&this.currentUser?.get("user_option.enable_quoting")}get shouldRenderUnder(){let{isIOS:e,isAndroid:t,isOpera:i}=this.capabilities;return this.site.isMobileDevice||e||t||i}static #A=(()=>dt7948.n(this.prototype,"shouldRenderUnder",[w]))();handleTopicScroll(){this.site.mobileView&&(this.debouncedSelectionChanged=(0,o.debounce)(this,this.selectionChanged,{force:!0},250,!1))}static #E=(()=>dt7948.n(this.prototype,"handleTopicScroll",[r.action]))();async insertQuote(){await this.args.selectText(),await this.hideToolbar()}static #D=(()=>dt7948.n(this.prototype,"insertQuote",[r.action]))();async buildQuote(){return await this.args.buildQuoteMarkdown()}static #P=(()=>dt7948.n(this.prototype,"buildQuote",[r.action]))();static #Q=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"JaetaXsH",block:'[[[1,"\\n "],[11,0],[4,[30,0,["documentListeners"]],null,null],[4,[30,0,["appEventsListeners"]],null,null],[4,[30,0,["runLoopHandlers"]],null,null],[12],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection.js",isStrictMode:!0}),this))()}},64461:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>$});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(31049),l=i(83133),c=i(75983),u=i(81329),d=i(85205),p=i(40172),h=i(98740),m=i(10329),g=i(17282),f=i(81133),_=i(72024),y=i(1799),b=i(843),w=i(46391),k=i(11194),T=i(4495),S=i(75158),C=i(10592),x=i(32401),A=i(70862),E=i(48248),D=i(69989),P=i(64314),M=i(69504),F=i(68072),I=i(47099),N=i(97493),O=i(53653),L=i(85671);let R=(0,i(38168).A)(i(8554)).cached,U=Object.freeze({ADMIN:"admin",BOOKMARK:"bookmark",COPY_LINK:"copyLink",DELETE:"delete",EDIT:"edit",FLAG:"flag",LIKE:"like",READ:"read",REPLIES:"replies",REPLY:"reply",SHARE:"share",SHOW_MORE:"showMore"}),j=new Map([[U.ADMIN,T.default],[U.BOOKMARK,S.default],[U.COPY_LINK,C.default],[U.DELETE,x.default],[U.EDIT,A.default],[U.FLAG,E.default],[U.LIKE,D.default],[U.READ,P.default],[U.REPLIES,M.default],[U.REPLY,F.default],[U.SHARE,I.default],[U.SHOW_MORE,N.default]]),B={defaultPosition:{before:U.SHOW_MORE},throwErrorOnCycle:!1};class $ extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"keyValueStore",[l.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #c=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #u=(()=>dt7948.g(this.prototype,"menu",[l.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #d=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #p=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #h=(()=>dt7948.g(this.prototype,"store",[l.service]))();#f=(()=>void dt7948.i(this,"store"))();static #m=(()=>dt7948.g(this.prototype,"collapsed",[n.tracked],function(){return!0}))();#rt=(()=>void dt7948.i(this,"collapsed"))();static #g=(()=>dt7948.g(this.prototype,"isWhoLikedVisible",[n.tracked],function(){return!1}))();#ri=(()=>void dt7948.i(this,"isWhoLikedVisible"))();static #A=(()=>dt7948.g(this.prototype,"likedUsers",[n.tracked],function(){return[]}))();#rs=(()=>void dt7948.i(this,"likedUsers"))();static #E=(()=>dt7948.g(this.prototype,"totalLikedUsers",[n.tracked]))();#rn=(()=>void dt7948.i(this,"totalLikedUsers"))();static #D=(()=>dt7948.g(this.prototype,"isWhoReadVisible",[n.tracked],function(){return!1}))();#rr=(()=>void dt7948.i(this,"isWhoReadVisible"))();static #P=(()=>dt7948.g(this.prototype,"readers",[n.tracked],function(){return[]}))();#ro=(()=>void dt7948.i(this,"readers"))();static #Q=(()=>dt7948.g(this.prototype,"totalReaders",[n.tracked]))();#ra=(()=>void dt7948.i(this,"totalReaders"))();get buttonActions(){return{copyLink:this.args.copyLink,deletePost:this.args.deletePost,editPost:this.args.editPost,toggleLike:this.toggleLike,openAdminMenu:this.openAdminMenu,recoverPost:this.args.recoverPost,replyToPost:this.args.replyToPost,setCollapsed:e=>this.collapsed=e,share:this.args.share,showDeleteTopicModal:this.showDeleteTopicModal,showFlags:this.args.showFlags,showMoreActions:this.showMoreActions,showLogin:this.args.showLogin,toggleReplies:this.args.toggleReplies,toggleWhoLiked:this.toggleWhoLiked,toggleWhoRead:this.toggleWhoRead}}static #J=(()=>dt7948.n(this.prototype,"buttonActions",[R]))();get staticMethodsState(){return Object.freeze({canCreatePost:this.args.canCreatePost,collapsed:this.collapsed,currentUser:this.currentUser,filteredRepliesView:this.args.filteredRepliesView,isWhoLikedVisible:this.isWhoLikedVisible,isWhoReadVisible:this.isWhoReadVisible,isWikiMode:this.isWikiMode,repliesShown:this.args.repliesShown,replyDirectlyBelow:this.args.nextPost?.reply_to_post_number===this.args.post.post_number&&this.args.post.post_number!==this.args.post.filteredRepliesPostNumber,showReadIndicator:this.args.showReadIndicator,suppressReplyDirectlyBelow:this.siteSettings.suppress_reply_directly_below})}static #X=(()=>dt7948.n(this.prototype,"staticMethodsState",[R]))();get staticMethodsArgs(){return{post:this.args.post,state:this.staticMethodsState}}static #Z=(()=>dt7948.n(this.prototype,"staticMethodsArgs",[R]))();get state(){return Object.freeze({...this.staticMethodsState,collapsedButtons:this.renderableCollapsedButtons})}static #ee=(()=>dt7948.n(this.prototype,"state",[R]))();get registeredButtons(){let e;let t=new WeakMap,i=this.configuredItems,s=this.configuredPositions,n=Array.from(j.entries()).sort((e,t)=>{let[s]=e,[n]=t,r=i.indexOf(s),o=i.indexOf(n);return -1===r?-1:r-o}),r=_.default.from(Array.from(n).map(e=>{let[t,n]=e,r=-1!==i.indexOf(t)?s.get(t):null;return[t,n,r]}),{...B,onAddItem(t){e?.add(t)},onDeleteItem(t){e?.delete(t)},onReplaceItem:(e,i,s)=>{i!==s&&t.set(i,s)}});e=new Set;let o=new Map,l=i.indexOf(U.SHOW_MORE),c=this.configuredItems.filter(e=>this.#rl.includes(e));return new Map((0,y.applyMutableValueTransformer)("post-menu-buttons",r,{...this.staticMethodsArgs,buttonLabels:{hide(e){o.set(e,!1)},show(e){o.set(e,!0)},default:e=>o.delete(e)},buttonKeys:U,firstButtonKey:this.configuredItems[0],lastHiddenButtonKey:c.length?c[c.length-1]:null,lastItemBeforeMoreItemsButtonKey:l>0?this.configuredItems[l-1]:null,secondLastHiddenButtonKey:c.length>1?c[c.length-2]:null}).entries().map(i=>{let[s,n,r]=i,l=new w.default({key:s,Component:n,apiAdded:e.has(s),owner:(0,a.getOwner)(this),position:r,replacementMap:t,showLabel:o.get(s)});return[s,l]}))}static #et=(()=>dt7948.n(this.prototype,"registeredButtons",[R]))();get configuredItems(){let e=this.siteSettings.post_menu.split("|").filter(Boolean).map(e=>{if(this.isWikiMode)switch(e){case U.EDIT:return U.REPLY;case U.REPLY:return U.EDIT}return e});return e.length>0&&!e.includes(U.SHOW_MORE)&&e.splice(e.length-1,0,U.SHOW_MORE),e}static #ei=(()=>dt7948.n(this.prototype,"configuredItems",[R]))();get configuredPositions(){let e="before",t=this.configuredItems;return new Map(t.map((i,s)=>i===U.SHOW_MORE?(e="after",[i,null]):"before"===e&&s0?[i,{[e]:[U.SHOW_MORE]}]:[i,null]))}static #es=(()=>dt7948.n(this.prototype,"configuredPositions",[R]))();get extraControls(){let e=Array.from(this.registeredButtons.values()).filter(e=>(0,c.isPresent)(e)&&e.extraControls(this.staticMethodsArgs)).map(e=>[e.key,e,e.position]);return _.default.from(e,B).resolve().map(e=>{let{value:t}=e;return t})}static #en=(()=>dt7948.n(this.prototype,"extraControls",[R]))();get availableButtons(){let e=this.configuredItems;return Array.from(this.registeredButtons.values()).filter(t=>(t.apiAdded||e.includes(t.key))&&!t.extraControls(this.staticMethodsArgs))}static #er=(()=>dt7948.n(this.prototype,"availableButtons",[R]))();get availableCollapsedButtons(){let e=this.#rl;if((0,c.isEmpty)(e)||!this.collapsed||!this.isShowMoreButtonAvailable)return[];let t=this.availableButtons.filter(t=>{let i=t.hidden(this.staticMethodsArgs);return!1!==i&&t.key!==U.SHOW_MORE&&(!this.args.post.reviewable_id||t.key!==U.FLAG)&&(i||e.includes(t.key))});return t.length<=1?[]:t}static #eo=(()=>dt7948.n(this.prototype,"availableCollapsedButtons",[R]))();get renderableCollapsedButtons(){return this.availableCollapsedButtons.filter(e=>e.shouldRender(this.staticMethodsArgs))}static #ea=(()=>dt7948.n(this.prototype,"renderableCollapsedButtons",[R]))();get visibleButtons(){let e=this.availableButtons;return this.renderableCollapsedButtons.length>1&&(e=e.filter(e=>!this.renderableCollapsedButtons.includes(e))),_.default.from(e.map(e=>[e.key,e,e.position]),B).resolve().map(e=>{let{value:t}=e;return t})}static #el=(()=>dt7948.n(this.prototype,"visibleButtons",[R]))();get repliesButton(){return this.registeredButtons.get(U.REPLIES)}get showMoreButton(){return this.registeredButtons.get(U.SHOW_MORE)}get remainingLikedUsers(){return this.totalLikedUsers-this.likedUsers.length}get remainingReaders(){return this.totalReaders-this.readers.length}get isWikiMode(){return this.args.post.wiki&&this.args.post.can_edit}get isShowMoreButtonAvailable(){return this.availableButtons.some(e=>e.key===U.SHOW_MORE)||this.extraControls.some(e=>e.key===U.SHOW_MORE)}async toggleLike(){if(!this.currentUser){this.keyValueStore&&this.keyValueStore.set({key:"likedPostId",value:this.args.post.id}),this.args.showLogin();return}this.capabilities.userHasBeenActive&&this.capabilities.canVibrate&&navigator.vibrate(5),await this.args.toggleLike(),this.collapsed||await this.#rc()}static #ec=(()=>dt7948.n(this.prototype,"toggleLike",[o.action]))();openAdminMenu(e,t){this.menu.show(t.target,{identifier:"admin-post-menu",component:d.default,modalForMobile:!0,autofocus:!0,data:{post:this.args.post,changeNotice:this.args.changeNotice,changePostOwner:this.args.changePostOwner,grantBadge:this.args.grantBadge,lockPost:this.args.lockPost,permanentlyDeletePost:this.args.permanentlyDeletePost,rebakePost:this.args.rebakePost,showPagePublish:this.args.showPagePublish,togglePostType:this.args.togglePostType,toggleWiki:this.args.toggleWiki,unhidePost:this.args.unhidePost,unlockPost:this.args.unlockPost}})}static #eu=(()=>dt7948.n(this.prototype,"openAdminMenu",[o.action]))();refreshReaders(){if(this.readers.length)return this.#ru()}static #ed=(()=>dt7948.n(this.prototype,"refreshReaders",[o.action]))();showDeleteTopicModal(){this.modal.show(p.default)}static #ep=(()=>dt7948.n(this.prototype,"showDeleteTopicModal",[o.action]))();async showMoreActions(){this.collapsed=!1;let e=[!this.isWhoLikedVisible&&this.#rc(),!this.isWhoReadVisible&&this.args.showReadIndicator&&this.#ru()].filter(Boolean);await Promise.all(e)}static #eh=(()=>dt7948.n(this.prototype,"showMoreActions",[o.action]))();toggleWhoLiked(){if(this.isWhoLikedVisible){this.isWhoLikedVisible=!1;return}this.#rc()}static #iK=(()=>dt7948.n(this.prototype,"toggleWhoLiked",[o.action]))();toggleWhoRead(){if(this.isWhoReadVisible){this.isWhoReadVisible=!1;return}this.#ru()}static #iG=(()=>dt7948.n(this.prototype,"toggleWhoRead",[o.action]))();get #rl(){let e=this.siteSettings.post_menu_hidden_items;return(0,c.isEmpty)(e)?[]:e.split("|").filter(e=>!this.args.post.bookmarked||e!==U.BOOKMARK)}async #rc(){let e=await this.store.find("post-action-user",{id:this.args.post.id,post_action_type_id:2});this.likedUsers=e.map(m.smallUserAttrs),this.totalLikedUsers=e.totalRows,this.isWhoLikedVisible=!0}async #ru(){let e=await this.store.find("post-reader",{id:this.args.post.id});this.readers=e.map(m.smallUserAttrs),this.totalReaders=e.totalRows,this.isWhoReadVisible=!0}static #iY=(()=>(0,O.setComponentTemplate)((0,L.createTemplateFactory)({id:"7JlLuFQ5",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@name","@outletArgs"],["post-menu",[28,[32,1],null,[["post","state"],[[30,1],[30,0,["state"]]]]]]],[["default"],[[[[1,"\\n "],[10,"nav"],[15,0,[28,[32,2],["post-controls","glimmer-post-menu",[52,[28,[32,3],[[28,[30,0,["showMoreButton","shouldRender"]],[[28,[32,1],null,[["post","state"],[[30,0,["post"]],[30,0,["state"]]]]]],null],[30,0,["collapsed"]]],null],"collapsed","expanded"],[52,[30,0,["siteSettings","enable_filtered_replies_view"]],"replies-button-visible"]],null]],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraControls"]]],null]],null],"key",[[[1," "],[8,[32,4],null,[["@buttonActions","@buttonConfig","@post","@state"],[[30,0,["buttonActions"]],[30,2],[30,1],[30,0,["state"]]]],null],[1,"\\n"]],[2]],null],[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["visibleButtons"]]],null]],null],"key",[[[1," "],[8,[32,4],null,[["@buttonActions","@buttonConfig","@post","@state"],[[30,0,["buttonActions"]],[30,3],[30,1],[30,0,["state"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["isWhoReadVisible"]],[[[1," "],[8,[32,5],[[24,0,"who-read"]],[["@addSelf","@ariaLabel","@count","@description","@users"],[false,[28,[32,6],["post.actions.people.sr_post_readers_list_description"],null],[52,[30,0,["remainingReaders"]],[30,0,["remainingReaders"]],[30,0,["totalReaders"]]],[52,[30,0,["remainingReaders"]],"post.actions.people.read_capped","post.actions.people.read"],[30,0,["readers"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["isWhoLikedVisible"]],[[[1," "],[8,[32,5],[[24,0,"who-liked"]],[["@addSelf","@ariaLabel","@count","@description","@users"],[[28,[32,3],[[30,1,["liked"]],[28,[32,7],[[30,0,["remainingLikedUsers"]],0],null]],null],[28,[32,6],["post.actions.people.sr_post_likers_list_description"],null],[52,[30,0,["remainingLikedUsers"]],[30,0,["remainingLikedUsers"]],[30,0,["totalLikedUsers"]]],[52,[30,0,["remainingLikedUsers"]],"post.actions.people.like_capped","post.actions.people.like"],[30,0,["likedUsers"]]]],null],[1,"\\n"]],[]],null],[41,[28,[30,0,["showMoreButton","shouldRender"]],[[28,[32,1],null,[["post","state"],[[30,0,["post"]],[30,0,["state"]]]]]],null],[[[1," "],[8,[32,8],null,[["@id","@triggerSelector","@placement","@titleText","@contentText"],["post_menu",".post-controls .actions .show-more-actions","top",[28,[32,6],["user_tips.post_menu.title"],null],[28,[32,6],["user_tips.post_menu.content"],null]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[1," "]],["@post","extraControl","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu.js",scope:()=>[h.default,r.hash,f.default,u.and,k.default,m.default,b.i18n,u.eq,g.default],isStrictMode:!0}),this))()}},46391:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(63748),n=i(65573);class r{#rd;#rp;#rh;#rm;#ng;#rg;#rf;constructor(e){let{key:t,Component:i,apiAdded:s,owner:n,position:r,replacementMap:o,showLabel:a}=e;this.#rd=i,this.#rp=s,this.#rh=t,this.#rm=n,this.#ng=r,this.#rg=o,this.#rf=a}get Component(){return this.#rd}get apiAdded(){return this.#rp}hidden(e){return this.#r_({property:"hidden",args:e,defaultValue:null})}static #e=(()=>dt7948.n(this.prototype,"hidden",[s.bind]))();delegateShouldRenderToTemplate(e){return this.#r_({property:"delegateShouldRenderToTemplate",args:e,defaultValue:!1})}static #i=(()=>dt7948.n(this.prototype,"delegateShouldRenderToTemplate",[s.bind]))();extraControls(e){return this.#r_({property:"extraControls",args:e,defaultValue:!1})}static #s=(()=>dt7948.n(this.prototype,"extraControls",[s.bind]))();get key(){return this.#rh}get position(){return this.#ng}setShowLabel(e){this.#rf=e}static #l=(()=>dt7948.n(this.prototype,"setShowLabel",[s.bind]))();shouldRender(e){return this.#r_({property:"shouldRender",args:e,defaultValue:!0})}static #c=(()=>dt7948.n(this.prototype,"shouldRender",[s.bind]))();showLabel(e){return this.#rf??this.#r_({property:"showLabel",args:e,defaultValue:null})}static #u=(()=>dt7948.n(this.prototype,"showLabel",[s.bind]))();#r_(e){let t,{klass:i=this.#rd,property:s,args:r,defaultValue:o}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakSet;return!i||a.has(i)?o:void 0===i[s]?this.#r_({klass:this.#rg.get(i)||null,property:s,args:r,defaultValue:o},a.add(i)):"function"==typeof i[s]?i[s](r,(0,n.helperContext)(),this.#rm):i[s]}}},11194:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(99615),r=i(35533),o=i(18387),a=i(81329),l=i(1231),c=i(53653),u=i(85671);class d extends s.default{#ry;get delegateShouldRenderToTemplate(){return this.args.buttonConfig.delegateShouldRenderToTemplate(this.args)}get hidden(){return this.args.buttonConfig.hidden(this.args)}get shouldRender(){if(!this.delegateShouldRenderToTemplate)return this.args.buttonConfig.shouldRender(this.args)}get showLabel(){return this.args.buttonConfig.showLabel(this.args)}setElement(e){this.#ry=e}static #e=(()=>dt7948.n(this.prototype,"setElement",[r.action]))();sharedBehaviorOnClick(e){e.currentTarget?.blur()}static #i=(()=>dt7948.n(this.prototype,"sharedBehaviorOnClick",[r.action]))();showFeedback(e){this.#ry&&(0,l.showAlert)(this.args.post.id,this.args.buttonConfig.key,e,{actionBtn:this.#ry})}static #s=(()=>dt7948.n(this.prototype,"showFeedback",[r.action]))();static #l=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"eOqDL3A1",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,0,["shouldRender"]],[30,0,["delegateShouldRenderToTemplate"]]],null],[[[1," "],[8,[30,1,["Component"]],[[24,0,"btn-flat"],[4,[32,1],[[30,0,["setElement"]]],null],[4,[32,2],["click",[30,0,["sharedBehaviorOnClick"]]],null]],[["@buttonActions","@hidden","@post","@shouldRender","@showFeedback","@showLabel","@state"],[[30,2],[30,0,["hidden"]],[30,3],[30,0,["shouldRender"]],[30,0,["showFeedback"]],[30,0,["showLabel"]],[30,4]]],null],[1,"\\n"]],[]],null],[1," "]],["@buttonConfig","@buttonActions","@post","@state"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/button-wrapper.js",scope:()=>[a.or,o.default,n.on],isStrictMode:!0}),this))()}},4495:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(18638),r=i(53653),o=i(85671);class a extends s.default{static shouldRender(e){return e.post.canManage||e.post.can_wiki||e.post.canEditStaffNotes}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"Ql3/K2+i",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__admin show-post-admin-menu"],[17,1]],[["@action","@forwardEvent","@icon","@label","@title"],[[30,2,["openAdminMenu"]],true,"wrench",[52,[30,3],"post.controls.admin_action"],"post.controls.admin"]],null],[1,"\\n "]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/admin.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},75158:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989);i(8554);var n=i(31049),r=i(4833),o=i(3383),a=i(53653),l=i(85671);let c=(0,i(38168).A)(i(8554)).cached;class u extends s.default{static shouldRender(e){return!!e.post.canBookmark}get bookmarkManager(){return new o.default((0,n.getOwner)(this),this.args.post)}static #e=(()=>dt7948.n(this.prototype,"bookmarkManager",[c]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"qmNLeeaF",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__bookmark"],[17,1]],[["@bookmarkManager","@showLabel"],[[30,0,["bookmarkManager"]],[30,2]]],null],[1,"\\n "]],["&attrs","@showLabel"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/bookmark.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},10592:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"FKIVxcz8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__copy-link"],[17,1]],[["@action","@icon","@label","@title"],[[30,2,["copyLink"]],"d-post-share",[52,[30,3],"post.controls.copy_action"],"post.controls.copy_title"]],null],[1,"\\n"]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/copy-link.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"copy-link:PostMenuCopyLinkButton"))},32401:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BUTTON_ACTION_MODE_DELETE:()=>a,BUTTON_ACTION_MODE_DELETE_TOPIC:()=>l,BUTTON_ACTION_MODE_RECOVER:()=>u,BUTTON_ACTION_MODE_RECOVERING:()=>p,BUTTON_ACTION_MODE_RECOVERING_TOPIC:()=>h,BUTTON_ACTION_MODE_RECOVER_TOPIC:()=>d,BUTTON_ACTION_MODE_SHOW_FLAG_DELETE:()=>c,default:()=>m});var s=i(80989),n=i(18638),r=i(53653),o=i(85671);let a="delete",l="delete-topic",c="show-flag-delete",u="recover",d="recover-topic",p="recovering",h="recovering-topic";class m extends s.default{static shouldRender(e){return!!m.modeFor(e.post)}static modeFor(e){if(e.canRecoverTopic)return d;if(e.canDeleteTopic)return l;if(e.canRecover)return u;if(e.canDelete)return a;if(e.showFlagDelete)return c;if(e.isRecovering)return p;if(e.isRecoveringTopic)return h}get className(){switch(this.#rb){case u:case d:case p:case h:return"post-action-menu__recover recover";default:return"post-action-menu__delete delete"}}get icon(){switch(this.#rb){case u:case d:case p:case h:return"arrow-rotate-left";default:return"trash-can"}}get label(){switch(this.#rb){case a:return"post.controls.delete_action";case l:case c:return"topic.actions.delete";case u:case p:return"post.controls.undelete_action";case d:case h:return"topic.actions.recover"}}get title(){switch(this.#rb){case a:return"post.controls.delete";case l:return"post.controls.delete_topic";case c:return"post.controls.delete_topic_disallowed";case u:case p:return"post.controls.undelete";case d:case h:return"topic.actions.recover"}}get activeAction(){return this.args.post.canRecoverTopic?this.args.buttonActions.recoverPost:this.args.post.canDeleteTopic?this.args.buttonActions.deletePost:this.args.post.canRecover?this.args.buttonActions.recoverPost:this.args.post.canDelete?this.args.buttonActions.deletePost:this.args.post.showFlagDelete?this.args.buttonActions.showDeleteTopicModal:void 0}get disabled(){return!this.activeAction}get #rb(){return this.constructor.modeFor(this.args.post)}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"OIzyWdfV",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,0,["className"]]],[17,1],[16,"disabled",[30,0,["disabled"]]]],[["@action","@icon","@label","@title"],[[30,0,["activeAction"]],[30,0,["icon"]],[52,[30,2],[30,0,["label"]]],[30,0,["title"]]]],null],[1,"\\n "]],["&attrs","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/delete.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},70862:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(83133),r=i(18638),o=i(81133),a=i(53653),l=i(85671);class c extends s.default{static hidden(e){return!e.state.isWikiMode&&(!e.post.can_edit||!e.post.yours)&&null}static shouldRender(e){return e.post.can_edit}static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&this.args.state.isWikiMode)}static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Q7zohr4d",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__edit","edit",[52,[30,1,["wiki"]],"create"]],null]],[17,2]],[["@action","@icon","@label","@title"],[[30,3,["editPost"]],[52,[30,1,["wiki"]],"far-pen-to-square","pencil"],[52,[30,0,["showLabel"]],"post.controls.edit_action"],"post.controls.edit"]],null],[1,"\\n "]],["@post","&attrs","@buttonActions"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/edit.js",scope:()=>[r.default,o.default],isStrictMode:!0}),this))()}},48248:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(35533),r=i(81329),o=i(18638),a=i(81133),l=i(87353),c=i(53653),u=i(85671);class d extends s.default{static shouldRender(e,t){let{reviewable_id:i,canFlag:s,hidden:n}=e.post;return i||s&&!n||t.siteSettings.allow_tl0_and_anonymous_users_to_flag_illegal_content&&!t.currentUser}get title(){return this.args.post.currentUser?"post.controls.flag":"post.controls.anonymous_flag"}navigateToReviewable(){l.default.routeTo(`/review/${this.args.post.reviewable_id}`)}static #e=(()=>dt7948.n(this.prototype,"navigateToReviewable",[n.action]))();static #i=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"V+P+UUnj",block:'[[[1,"\\n "],[10,0],[14,0,"double-button"],[12],[1,"\\n"],[41,[30,1,["reviewable_id"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["button-count",[52,[28,[32,2],[[30,1,["reviewable_score_pending_count"]],0],null],"has-pending"]],null]],[17,2]],[["@action"],[[30,0,["navigateToReviewable"]]]],[["default"],[[[[1,"\\n "],[10,1],[12],[1,[30,1,["reviewable_score_count"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[32,0],[[24,0,"post-action-menu__flag create-flag"],[17,2]],[["@action","@icon","@label","@title"],[[30,3,["showFlags"]],"flag",[52,[30,4],"post.controls.flag_action"],[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@post","&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/flag.js",scope:()=>[o.default,a.default,r.gt],isStrictMode:!0}),this))()}},69989:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18638),l=i(81133),c=i(72738),u=i(53306),d=i(843),p=i(53653),h=i(85671);class m extends s.default{static shouldRender(e){return e.post.showLike||e.post.likeCount>0}static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"isAnimated",[n.tracked],function(){return!1}))();#rv=(()=>void dt7948.i(this,"isAnimated"))();get disabled(){return this.currentUser&&!this.args.post.canToggleLike}get title(){return this.args.post.liked&&!this.args.post.canToggleLike?"post.controls.has_liked":this.args.post.liked?"post.controls.undo_like":"post.controls.like"}async toggleLike(){return this.isAnimated=!0,new Promise(e=>{(0,u.default)(async()=>{this.isAnimated=!1,await this.args.buttonActions.toggleLike(),e()},400)})}static #s=(()=>dt7948.n(this.prototype,"toggleLike",[r.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"XhAR4DZE",block:'[[[1,"\\n"],[41,[30,1,["showLike"]],[[[1," "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[17,2]],[["@action","@state","@post"],[[30,3,["toggleWhoLiked"]],[30,4],[30,1]]],null],[1,"\\n "],[8,[32,1],[[16,0,[28,[32,2],["post-action-menu__like","toggle-like","btn-icon",[52,[30,0,["isAnimated"]],"heart-animation"],[52,[30,1,["liked"]],"has-like","like"]],null]],[17,2],[16,"data-post-id",[30,1,["id"]]],[16,"disabled",[30,0,["disabled"]]]],[["@action","@icon","@label","@title"],[[30,0,["toggleLike"]],[52,[30,1,["liked"]],"d-liked","d-unliked"],[52,[30,5],"post.controls.like_action"],[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[17,2]],[["@action","@state","@post"],[[30,3,["toggleWhoLiked"]],[30,4],[30,1]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@post","&attrs","@buttonActions","@state","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/like.js",scope:()=>[g,a.default,l.default],isStrictMode:!0}),this))()}class g extends s.default{get icon(){return this.args.post.showLike?this.args.post.yours?"d-liked":void 0:this.args.post.yours?"d-liked":"d-unliked"}get translatedTitle(){let e;return e=this.args.post.liked?1===this.args.post.likeCount?"post.has_likes_title_only_you":"post.has_likes_title_you":"post.has_likes_title",(0,d.i18n)(e,{count:this.args.post.liked?this.args.post.likeCount-1:this.args.post.likeCount})}static #e=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"+7KsLmti",block:'[[[1,"\\n"],[41,[30,1,["likeCount"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__like-count","like-count","button-count","highlight-action",[52,[30,1,["yours"]],"my-likes","regular-likes"]],null]],[17,2]],[["@ariaPressed","@translatedAriaLabel","@translatedTitle","@action"],[[30,3,["isWhoLikedVisible"]],[28,[32,2],["post.sr_post_like_count_button"],[["count"],[[30,1,["likeCount"]]]]],[30,0,["translatedTitle"]],[30,4]]],[["default"],[[[[1,"\\n "],[1,[30,1,["likeCount"]]],[1,"\\n"],[41,[30,0,["icon"]],[[[1,[28,[32,3],[[30,0,["icon"]]],null]]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@post","&attrs","@state","@action"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/like.js",scope:()=>[a.default,l.default,d.i18n,c.default],isStrictMode:!0}),this))()}},64314:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(18638),r=i(843),o=i(53653),a=i(85671);class l extends s.default{static shouldRender(e){return e.state.showReadIndicator&&e.post.readers_count>0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"W65IFLtG",block:'[[[1,"\\n "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__read read-indicator button-count"],[17,1]],[["@ariaPressed","@action","@translatedAriaLabel","@title"],[[30,2,["isWhoReadVisible"]],[30,3,["toggleWhoRead"]],[28,[32,1],["post.sr_post_read_count_button"],[["count"],[[30,4,["readers_count"]]]]],"post.controls.read_indicator"]],[["default"],[[[[1,"\\n "],[1,[30,4,["readers_count"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,0],[[17,1]],[["@action","@icon","@title"],[[30,3,["toggleWhoRead"]],"book-open-reader","post.controls.read_indicator"]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@state","@buttonActions","@post"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/read.js",scope:()=>[n.default,r.i18n],isStrictMode:!0}),this))()}},69504:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(75446),r=i(83133),o=i(81329),a=i(18638),l=i(72738),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static extraControls=!0;static shouldRender(e){let t=e.post.reply_count;return!!t&&!(1===t&&e.state.replyDirectlyBelow&&e.state.suppressReplyDirectlyBelow)}static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();get disabled(){return!!this.args.post.deleted}get translatedTitle(){if(this.args.state.filteredRepliesView)return this.args.state.repliesShown?(0,c.i18n)("post.view_all_posts"):(0,c.i18n)("post.filtered_replies_hint",{count:this.args.post.reply_count})}static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"M4281HKz",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"show-replies btn-icon-text"],[17,1],[16,"disabled",[30,0,["disabled"]]]],[["@action","@ariaControls","@ariaExpanded","@ariaPressed","@translatedAriaLabel","@translatedLabel","@translatedTitle"],[[30,2,["toggleReplies"]],[28,[32,1],["embedded-posts__bottom--",[30,3,["post_number"]]],null],[28,[32,2],[[30,4,["repliesShown"]],[28,[32,3],[[30,4,["filteredRepliesView"]]],null]],null],[52,[51,[30,4,["filteredRepliesView"]]],[30,4,["repliesShown"]]],[28,[32,4],["post.sr_expand_replies"],[["count"],[[30,3,["reply_count"]]]]],[28,[32,4],[[52,[30,0,["site","mobileView"]],"post.has_replies_count","post.has_replies"]],[["count"],[[30,3,["reply_count"]]]]],[30,0,["translatedTitle"]]]],[["default"],[[[[1,"\\n"],[1,[28,[32,5],[[52,[30,4,["repliesShown"]],"chevron-up","chevron-down"]],null]]],[]]]]],[1,"\\n "]],["&attrs","@buttonActions","@post","@state"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/replies.js",scope:()=>[a.default,n.concat,o.and,o.not,c.i18n,l.default],isStrictMode:!0}),this))()}},68072:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(18638),o=i(81133),a=i(843),l=i(53653),c=i(85671);class u extends s.default{static shouldRender(e){return e.state.canCreatePost}static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&!this.args.state.isWikiMode)}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"NcBGNBin",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__reply","reply",[52,[30,0,["showLabel"]],"create fade-out"]],null]],[17,1]],[["@action","@icon","@label","@title","@translatedAriaLabel"],[[30,2,["replyToPost"]],"reply",[52,[30,0,["showLabel"]],"topic.reply.title"],"post.controls.reply",[28,[32,2],["post.sr_reply_to"],[["post_number","username"],[[30,3,["post_number"]],[30,3,["username"]]]]]]],null],[1,"\\n "]],["&attrs","@buttonActions","@post"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/reply.js",scope:()=>[r.default,o.default,a.i18n],isStrictMode:!0}),this))()}},47099:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"SHyG8vYB",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__share share"],[17,1]],[["@action","@icon","@label","@title"],[[30,2,["share"]],"d-post-share",[52,[30,3],"post.controls.share_action"],"post.controls.share"]],null],[1,"\\n"]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/share.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"share:PostMenuShareButton"))},97493:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(18638),r=i(53653),o=i(85671);class a extends s.default{static shouldRender(e){return e.state.collapsedButtons.length>1&&e.state.collapsed}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"SSaFLpUN",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__show-more show-more-actions"],[17,1]],[["@action","@icon","@title"],[[30,2,["showMoreActions"]],"ellipsis","show_more"]],null],[1,"\\n "]],["&attrs","@buttonActions"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/show-more.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},50915:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(72738),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"xQbqWsXB",block:'[[[1,"\\n"],[1," "],[10,3],[14,0,"powered-by-discourse"],[14,6,"https://discourse.org/powered-by"],[14,"target","_blank"],[12],[1,"\\n "],[10,1],[14,0,"powered-by-discourse__content"],[12],[1,"\\n "],[10,1],[14,0,"powered-by-discourse__logo"],[12],[1,"\\n "],[1,[28,[32,0],["fab-discourse"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["powered_by_discourse"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/powered-by-discourse.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,a.default)(void 0,"powered-by-discourse:PoweredByDiscourse"))},4096:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(81133),r=i(843),o=i(85671),a=i(73306);let l=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"+ZIE8+2G",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["controls",[30,1]],null]],[17,2],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,1],[[16,"disabled",[30,3]]],[["@type","@checked"],["checkbox",[30,4]]],null],[1,"\\n\\n"],[41,[30,5],[[[1," "],[1,[28,[32,2],[[30,6]],[["count"],[[30,5]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],[[30,6]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@disabled","@checked","@labelCount","@labelKey"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/preference-checkbox.js",scope:()=>[n.default,s.Input,r.i18n],isStrictMode:!0}),(0,a.default)(void 0,"preference-checkbox:PreferenceCheckbox"))},72555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(72738),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fL5qGens",block:'[[[1,"\\n"],[41,[30,1],[[[41,[30,2],[[[1," "],[10,3],[15,6,[30,2]],[15,"title",[28,[32,0],[[30,3]],null]],[15,"aria-label",[28,[32,0],[[30,4]],null]],[12],[1,"\\n "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n "],[1,[28,[32,1],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13],[1,"\\n "],[13]],[]],[[[1," "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n "],[1,[28,[32,1],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13]],[]]]],[]],null]],["@shouldShow","@href","@title","@ariaLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/private-message-glyph.js",scope:()=>[n.i18n,s.default],isStrictMode:!0}),(0,a.default)(void 0,"private-message-glyph:PrivateMessageGlyph"))},94106:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(68587),c=i(18638),u=i(72401),d=i(53653),p=i(85671);let h="dismissed-pwa-install-banner";class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"keyValueStore",[a.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"bannerDismissed",[n.tracked],function(){return"true"===this.keyValueStore.get(h)}))();#n1=(()=>void dt7948.i(this,"bannerDismissed"))();static #u=(()=>dt7948.g(this.prototype,"deferredInstallPromptEvent",[n.tracked],function(){return null}))();#rw=(()=>void dt7948.i(this,"deferredInstallPromptEvent"))();registerInstallPromptListener=(()=>(0,l.modifier)(()=>{let e=e=>{e.preventDefault(),this.deferredInstallPromptEvent=e};return window.addEventListener("beforeinstallprompt",e),()=>{window.removeEventListener("beforeinstallprompt",e)}}))();get showPWAInstallBanner(){return this.capabilities.isAndroid&&this.currentUser?.trust_level>0&&this.deferredInstallPromptEvent&&!window.matchMedia("(display-mode: standalone)").matches&&!this.capabilities.isAppWebview&&!this.bannerDismissed}turnOn(){this.dismiss(),this.deferredInstallPromptEvent.prompt()}static #d=(()=>dt7948.n(this.prototype,"turnOn",[o.action]))();dismiss(){this.keyValueStore.set({key:h,value:!0}),this.bannerDismissed=!0}static #p=(()=>dt7948.n(this.prototype,"dismiss",[o.action]))();static #h=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"EMNyDLBi",block:'[[[1,"\\n"],[41,[30,0,["showPWAInstallBanner"]],[[[1," "],[10,0],[14,0,"pwa-install-banner alert alert-info"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@action","@text","@textParams"],[[30,0,["turnOn"]],"pwa.install_banner",[28,[32,1],null,[["title"],[[30,0,["siteSettings","title"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["xmark",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/pwa-install-banner.js",scope:()=>[u.default,r.hash,c.default],isStrictMode:!0}),this))()}},38267:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(25124),o=i.n(r),a=i(63748);let l=dt7948.c(class extends s.default{type="radio";click(){let e=o()(this.element).val();this.onChange?this.onChange(e):(this.selection===e&&this.set("selection",void 0),this.set("selection",e))}checked(e,t){return e===t}static #e=(()=>dt7948.n(this.prototype,"checked",[(0,a.default)("value","selection")]))()},[(0,n.attributeBindings)("name","type","value","checked:checked","disabled:disabled"),(0,n.tagName)("input")])},85943:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989);i(8554);var n=i(83133),r=i(42256),o=i(52333),a=i(94636),l=i(843),c=i(53653),u=i(85671);let d=(0,i(38168).A)(i(8554)).cached;class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get targetUser(){let{topic:e}=this.args;if(e&&e.isPrivateMessage&&e.relatedMessages?.length>=5&&0===e.details.allowed_groups.length&&2===e.details.allowed_users.length&&e.details.allowed_users.find(e=>e.username===this.currentUser.username))return e.details.allowed_users.find(e=>e.username!==this.currentUser.username)}static #i=(()=>dt7948.n(this.prototype,"targetUser",[d]))();get searchLink(){return(0,a.default)(`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`)}static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"/UHgJGK3",block:'[[[1,"\\n "],[10,0],[14,"role","complementary"],[14,"aria-labelledby","related-messages-title"],[14,1,"related-messages"],[14,0,"more-topics__list"],[12],[1,"\\n "],[10,"h3"],[14,1,"related-messages-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n "],[1,[28,[32,0],["related_messages.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topics"],[12],[1,"\\n "],[8,[32,1],null,[["@topics","@hideCategory","@showPosters"],[[30,1,["relatedMessages"]],true,true]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["targetUser"]],[[[1," "],[10,"h3"],[14,0,"see-all-pms-message"],[12],[1,"\\n "],[1,[28,[32,2],[[28,[32,0],["related_messages.see_all"],[["path","username"],[[30,0,["searchLink"]],[30,0,["targetUser","username"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/related-messages.js",scope:()=>[l.i18n,o.default,r.htmlSafe],isStrictMode:!0}),this))()}},17942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(17206),r=i(53653),o=i(85671);class a extends s.default{get datetime(){return new Date(this.args.date)}get title(){return(0,n.longDate)(this.datetime)}get time(){return this.datetime.getTime()}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"D86FUnxh",block:'[[[1,"\\n "],[10,1],[14,0,"relative-date"],[15,"title",[30,0,["title"]]],[15,"data-time",[30,0,["time"]]],[14,"data-format","tiny"],[12],[1,"\\n "],[1,[28,[32,0],[[30,0,["datetime"]]],null]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-date.js",scope:()=>[n.relativeAge],isStrictMode:!0}),this))()}},61382:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(31351),l=i(75983),c=i(81329),u=i(843),d=i(18162),p=i(53653),h=i(85671);function m(e){let t=parseFloat(e.toFixed(1));return(t=Math.round(2*t)/2)%1==0?t.toFixed(0):t}function g(e){return e?e>525600?m(e/525600):e>43200?m(e/43200):e>1440?m(e/1440):e>60?m(e/60):e:null}function f(e){return e>525600?"years":e>43200?"months":e>1440?"days":e>60?"hours":"mins"}class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"inputValue",[n.tracked]))();#rk=(()=>void dt7948.i(this,"inputValue"))();static #i=(()=>dt7948.g(this.prototype,"duration",[n.tracked]))();#rT=(()=>void dt7948.i(this,"duration"))();static #s=(()=>dt7948.g(this.prototype,"interval",[n.tracked]))();#rS=(()=>void dt7948.i(this,"interval"))();constructor(){super(...arguments),this.initValues()}get intervals(){let e=this.duration?parseFloat(this.duration):0;return[{id:"mins",name:(0,u.i18n)("relative_time_picker.minutes",{count:e})},{id:"hours",name:(0,u.i18n)("relative_time_picker.hours",{count:e})},{id:"days",name:(0,u.i18n)("relative_time_picker.days",{count:e})},{id:"months",name:(0,u.i18n)("relative_time_picker.months",{count:e})},{id:"years",name:(0,u.i18n)("relative_time_picker.years",{count:e})}].filter(e=>!this.args.hiddenIntervals?.includes(e.id))}minutesFromInputValueAndInterval(e,t){if(isNaN(e))return null;switch(t){case"mins":return Math.ceil(e);case"hours":return 60*e;case"days":return 1440*e;case"months":return 43200*e;case"years":return 525600*e}}initValues(){let e=this.args.durationMinutes;this.args.durationHours&&(e??=60*this.args.durationHours),this.inputValue=g(e),void 0!==this.args.durationMinutes?this.interval=f(this.args.durationMinutes):null===this.args.durationHours?this.interval="hours":void 0!==this.args.durationHours?this.interval=f(60*this.args.durationHours):this.interval="mins",this.duration=this.minutesFromInputValueAndInterval(this.inputValue,this.interval)}static #l=(()=>dt7948.n(this.prototype,"initValues",[o.action]))();onChangeDuration(e){if((0,l.isBlank)(e.target.value))this.duration=null,this.inputValue=null;else{let t=this.minutesFromInputValueAndInterval(parseFloat(e.target.value),this.interval);t>this.duration&&(525600===this.duration||43200===this.duration||1440===this.duration||60===this.duration)&&(t=this.minutesFromInputValueAndInterval(1.5*parseFloat(e.target.value),this.interval)),this.duration=t,this.interval=f(this.duration),this.inputValue=g(this.duration)}this.args.onChange?.(this.duration)}static #c=(()=>dt7948.n(this.prototype,"onChangeDuration",[o.action]))();onChangeInterval(e){this.interval=e;let t=this.minutesFromInputValueAndInterval(this.inputValue,this.interval);t!==this.duration&&(this.duration=t,this.args.onChange?.(this.duration))}static #u=(()=>dt7948.n(this.prototype,"onChangeInterval",[o.action]))();static #d=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"VXuPx6YU",block:'[[[1,"\\n "],[11,0],[24,0,"relative-time-picker"],[17,1],[12],[1,"\\n "],[11,"input"],[16,"min",[52,[28,[32,0],[[30,0,["interval"]],"mins"],null],1,0.5]],[16,"step",[52,[28,[32,0],[[30,0,["interval"]],"mins"],null],1,0.5]],[16,2,[30,0,["inputValue"]]],[16,1,[30,2]],[24,0,"relative-time-duration"],[24,4,"number"],[4,[32,1],[[30,0,["initValues"]],[30,3],[30,4]],null],[4,[32,2],["change",[30,0,["onChangeDuration"]]],null],[12],[13],[1,"\\n "],[8,[32,3],[[24,0,"relative-time-intervals"]],[["@content","@value","@onChange"],[[30,0,["intervals"]],[30,0,["interval"]],[30,0,["onChangeInterval"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@id","@durationMinutes","@durationHours"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-time-picker.js",scope:()=>[c.eq,a.default,r.on,d.default],isStrictMode:!0}),this))()}},47265:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133),r=i(53653),o=i(85671);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"renderGlimmer",[n.service]))();#rC=(()=>void dt7948.i(this,"renderGlimmer"))();static #i=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"yBAYBs89",block:'[[[42,[28,[31,1],[[28,[31,1],[[30,0,["renderGlimmer","_registrations"]]],null]],null],null,[[[40,[[[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null]],[]],"%cursor:0%",[28,[31,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/render-glimmer-container.js",isStrictMode:!0}),this))()}},8974:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(75446),r=i(99615),o=i(31351),a=i(68587),l=i(81133),c=i(63748),u=i(17693),d=i(53653),p=i(85671);class h extends s.default{lastScrollPosition=0;ticking=!1;table;topHorizontalScrollBar;fakeScrollContent;setup=(()=>(0,a.modifier)(e=>{this.table=e.querySelector(".directory-table"),this.topHorizontalScrollBar=e.querySelector(".directory-table-top-scroll"),this.fakeScrollContent=e.querySelector(".directory-table-top-scroll-fake-content"),this.checkScroll()}))();checkScroll(){this.table.getBoundingClientRect().bottomdt7948.n(this.prototype,"checkScroll",[c.bind]))();replicateScroll(e,t){this.lastScrollPosition=e?.scrollLeft,this.ticking||(window.requestAnimationFrame(()=>{t.scrollLeft=this.lastScrollPosition,this.ticking=!1}),this.ticking=!0)}static #i=(()=>dt7948.n(this.prototype,"replicateScroll",[c.bind]))();static #s=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"s0tNXs4g",block:'[[[1,"\\n "],[11,0],[24,0,"directory-table-container"],[17,1],[4,[30,0,["setup"]],null,null],[12],[1,"\\n "],[11,0],[24,0,"directory-table-top-scroll"],[4,[32,0],["scroll",[28,[32,1],[[30,0,["replicateScroll"]],[30,0,["topHorizontalScrollBar"]],[30,0,["table"]]],null]],null],[12],[1,"\\n "],[10,0],[14,0,"directory-table-top-scroll-fake-content"],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,0],[24,"role","table"],[16,"aria-label",[30,2]],[16,5,[30,3]],[16,0,[28,[32,2],["directory-table",[30,4]],null]],[4,[32,3],[[30,0,["checkScroll"]]],null],[4,[32,4],[[30,0,["checkScroll"]]],null],[4,[32,0],["scroll",[28,[32,1],[[30,0,["replicateScroll"]],[30,0,["table"]],[30,0,["topHorizontalScrollBar"]]],null]],null],[12],[1,"\\n "],[10,0],[14,0,"directory-table__header"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"directory-table__body"],[12],[1,"\\n "],[18,6,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@ariaLabel","@style","@className","&header","&body"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/responsive-table.js",scope:()=>[r.on,n.fn,l.default,o.default,u.default],isStrictMode:!0}),this))()}},71295:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(94480),l=i(18638),c=i(81133),u=i(64873),d=i(68636),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();get multiple(){return this.args.bundle.actions.length>1}get first(){return this.args.bundle.actions[0]}get placement(){let e=this.site.mobileView?"top":"bottom",t=(0,u.isRTL)()?"end":"start";return`${e}-${t}`}perform(e){if(e){let t=this.args.bundle.actions.find(t=>t.id===e);this.args.performAction(t)}else this.args.performAction(this.first)}static #i=(()=>dt7948.n(this.prototype,"perform",[r.action]))();static #s=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"9U3p/RCO",block:'[[[1,"\\n"],[41,[30,0,["multiple"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["reviewable-action-dropdown","btn-icon-text",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@nameProperty","@content","@onChange","@options"],["label",[30,1,["actions"]],[30,0,["perform"]],[28,[32,3],null,[["showCaret","disabled","placement","translatedNone"],[true,[30,2],[30,0,["placement"]],[30,1,["label"]]]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[16,0,[28,[32,1],["btn-default reviewable-action",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@action","@translatedLabel","@disabled"],[[30,0,["perform"]],[30,0,["first","label"]],[30,2]]],null],[1,"\\n"]],[]]],[1," "]],["@bundle","@reviewableUpdating"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-bundled-action.js",scope:()=>[d.default,c.default,a.dasherize,n.hash,l.default],isStrictMode:!0}),this))()}},72087:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(70349),l=i(6864),c=i(88355),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"store",[r.service]))();#f=(()=>void dt7948.i(this,"store"))();get enabled(){return"disabled"!==this.siteSettings.reviewable_claiming}async unclaim(){try{await (0,l.ajax)(`/reviewable_claimed_topics/${this.args.topicId}`,{type:"DELETE"}),this.args.onClaim(null)}catch(e){(0,c.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"unclaim",[n.action]))();async claim(){let e=this.store.createRecord("reviewable-claimed-topic");try{await e.save({topic_id:this.args.topicId}),this.args.onClaim(this.currentUser)}catch(e){(0,c.popupAjaxError)(e)}}static #c=(()=>dt7948.n(this.prototype,"claim",[n.action]))();static #u=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"FCCQ6Xu1",block:'[[[1,"\\n"],[41,[30,0,["enabled"]],[[[1," "],[10,0],[14,0,"reviewable-claimed-topic"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"claimed-by"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],[["imageSize"],["small"]]]],[1,"\\n "],[10,1],[14,0,"claimed-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-small unclaim"]],[["@icon","@action","@title"],["xmark",[30,0,["unclaim"]],"review.unclaim.help"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,1],[[24,0,"btn-small claim"]],[["@icon","@title","@action"],["user-plus","review.claim.title",[30,0,["claim"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@claimedBy"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-claimed-topic.js",scope:()=>[a.default,o.default],isStrictMode:!0}),this))()}},88840:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(30574);let r=(0,i(85671).createTemplateFactory)({id:"UdnRSMHG",block:'[[[41,[30,0,["post"]],[[[1," "],[10,0],[14,0,"reviewable-conversation-post"],[12],[1,"\\n"],[41,[30,0,["showUsername"]],[[[1," "],[8,[39,2],[[24,0,"username"]],[["@route","@model"],["user",[30,0,["post","user"]]]],[["default"],[[[[1,"@"],[1,[30,0,["post","user","username"]]]],[]]]]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,3],[[30,0,["post","excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","link-to","html-safe"]]',moduleName:"discourse/components/reviewable-conversation-post.hbs",isStrictMode:!1});class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"showUsername",[(0,n.gte)("index",1)]))();#rx=(()=>void dt7948.i(this,"showUsername"))()}(0,s.setComponentTemplate)(r,o)},33546:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(75446),n=i(98740),r=i(1779),o=i(72738),a=i(843),l=i(53653),c=i(85671),u=i(73306);let d=(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"8ZY6CgB9",block:'[[[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,[30,1,["username"]]]],[]]]]],[1,"\\n"],[41,[30,1,["silenced"]],[[[1," "],[1,[28,[32,1],["ban"],[["title"],["user.silenced_tooltip"]]]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[32,2],["review.deleted_user"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-post-user","div",[28,[32,4],null,[["user"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-created-by-name.js",scope:()=>[r.default,o.default,a.i18n,n.default,s.hash],isStrictMode:!0}),(0,u.default)(void 0,"reviewable-created-by-name:ReviewableCreatedByName"))},78928:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(1779),n=i(70349),r=i(72738),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"IyuF2Yo1",block:'[[[1,"\\n "],[10,0],[14,0,"created-by"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,[28,[32,1],[[30,1]],[["imageSize"],["large"]]]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["trash-can"],[["class"],["deleted-user-avatar"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-created-by.js",scope:()=>[s.default,n.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"reviewable-created-by:ReviewableCreatedBy"))},89866:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(8554),r=i(35533);let o=(0,i(85671).createTemplateFactory)({id:"HLHNYAx5",block:'[[[8,[39,0],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onChange"]]]],null]],[],false,["category-chooser"]]',moduleName:"discourse/components/reviewable-field-category.hbs",isStrictMode:!1}),a=(0,i(53653).setComponentTemplate)(o,class extends s.default{static #e=(()=>dt7948.g(this.prototype,"categoryId",[n.tracked],function(){return this.args.value}))();#iE=(()=>void dt7948.i(this,"categoryId"))();onChange(e){this.categoryId=e,this.args.categoryChanged?.(e)}static #i=(()=>dt7948.n(this.prototype,"onChange",[r.action]))()})},16994:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"adhFukNT",block:'[[[8,[39,0],null,[["@value","@change"],[[30,0,["value"]],[30,0,["valueChanged"]]]],null]],[],false,["d-editor"]]',moduleName:"discourse/components/reviewable-field-editor.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},17451:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(35533);let r=(0,i(85671).createTemplateFactory)({id:"JKyUkA0b",block:'[[[8,[39,0],null,[["@value","@onChange","@options"],[[30,0,["value"]],[28,[37,1],[[30,0],"onChange"],null],[28,[37,2],null,[["categoryId"],[[30,0,["tagCategoryId"]]]]]]],null]],[],false,["mini-tag-chooser","action","hash"]]',moduleName:"discourse/components/reviewable-field-tags.hbs",isStrictMode:!1});class o extends s.default{onChange(e){this.set("value",e),this.valueChanged&&this.valueChanged({target:{value:e}})}static #e=(()=>dt7948.n(this.prototype,"onChange",[n.action]))()}(0,s.setComponentTemplate)(r,o)},11275:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"tBQ611mt",block:'[[[8,[39,0],[[24,0,"reviewable-input-text"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["input","on"]]',moduleName:"discourse/components/reviewable-field-text.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},29297:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"qWCiGgyG",block:'[[[8,[39,0],[[24,0,"reviewable-input-textarea"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["textarea","on"]]',moduleName:"discourse/components/reviewable-field-textarea.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},60333:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"6yUsHrKk",block:'[[[41,[30,0,["value"]],[[[1," "],[10,0],[15,0,[30,0,["classes"]]],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,[30,0,["value"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div"]]',moduleName:"discourse/components/reviewable-field.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},33858:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"6RnTtrWW",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n "],[8,[39,2],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n "],[11,0],[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]],[4,[38,6],[[30,0,["calculatePostBodySize"]],[30,1]],null],[12],[1,"\\n"],[41,[30,1,["blank_post"]],[[[1," "],[10,2],[12],[1,[28,[35,8],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[30,1,["cooked"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[39,10],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-flagged-post-body","div",[28,[37,13],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["div","reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","did-insert","p","i18n","html-safe","d-button","span","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/reviewable-flagged-post.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"isCollapsed",[n.tracked],function(){return!1}))();#rA=(()=>void dt7948.i(this,"isCollapsed"))();static #i=(()=>dt7948.g(this.prototype,"isLongPost",[n.tracked],function(){return!1}))();#rE=(()=>void dt7948.i(this,"isLongPost"))();maxPostHeight=300;toggleContent(){this.isCollapsed=!this.isCollapsed}static #s=(()=>dt7948.n(this.prototype,"toggleContent",[r.action]))();calculatePostBodySize(e){e?.offsetHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}static #l=(()=>dt7948.n(this.prototype,"calculatePostBodySize",[o.bind]))();get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}}(0,l.setComponentTemplate)(a,c)},72168:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(30574);let r=(0,i(85671).createTemplateFactory)({id:"Yzm1Ja/g",block:'[[[41,[30,0,["filteredHistories"]],[[[1," "],[10,"table"],[14,0,"reviewable-histories"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,"colspan","3"],[12],[1,[28,[35,5],["review.history.title"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["filteredHistories"]]],null]],null],null,[[[41,[51,[30,1,["created"]]],[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,11],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,12],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,13],[[30,1,["created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,1,["created_by","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,14],[[30,1,["created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["rh"],false,["if","table","thead","tr","th","i18n","tbody","each","-track-array","unless","td","reviewable-history-description","user-link","avatar","format-date"]]',moduleName:"discourse/components/reviewable-histories.hbs",isStrictMode:!1});class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"filteredHistories",[(0,n.filterBy)("histories","created",!1)]))();#rD=(()=>void dt7948.i(this,"filteredHistories"))()}(0,s.setComponentTemplate)(r,o)},9212:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addPluginReviewableParam:()=>x,default:()=>D,registerReviewableActionModal:()=>A});var s=i(53653),n=i(35533),r=i(31049),o=i(83133),a=i(94480),l=i(53397),c=i(96325),u=i(72182),d=i(69587),p=i(6864),h=i(88355),m=i(63748),g=i(90092),f=i(1559),_=i(39965),y=i(19268),b=i(843);let w=(0,i(85671).createTemplateFactory)({id:"7AbTqbEr",block:'[[[10,0],[15,"data-reviewable-id",[30,0,["reviewable","id"]]],[15,0,[29,["reviewable-item ",[30,0,["customClasses"]]]]],[12],[1,"\\n "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n "],[10,1],[15,0,[28,[37,2],["reviewable-type",[30,0,["reviewable","humanTypeCssClass"]]],null]],[12],[1,[30,0,["reviewable","humanType"]]],[13],[1,"\\n"],[41,[30,0,["reviewable","reply_count"]],[[[1," "],[10,1],[14,0,"reply-count"],[12],[1,[28,[35,4],["review.replies"],[["count"],[[30,0,["reviewable","reply_count"]]]]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"created-at"],[12],[1,"\\n "],[8,[39,5],null,[["@route","@model"],["review.show",[30,0,["reviewable","id"]]]],[["default"],[[[[1,[28,[35,6],[[30,0,["reviewable","created_at"]]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"status"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["reviewable","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n "],[13],[1,"\\n "],[11,3],[24,6,""],[16,"title",[28,[37,4],["review.explain.why"],null]],[24,0,"explain"],[4,[38,9],["click",[28,[37,10],[[30,0,["explainReviewable"]],[30,0,["reviewable"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,11],["circle-question"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-contents"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,0],[14,0,"editable-fields"],[12],[1,"\\n"],[41,[30,0,["reviewable","created_by"]],[[[1," "],[10,0],[14,0,"editable-created-by"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewable","created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[8,[39,13],null,[["@user"],[[30,0,["reviewable","created_by"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["reviewable","editable_fields"]]],null]],null],null,[[[1," "],[10,0],[15,0,[29,["editable-field ",[28,[37,16],[[30,1,["id"]]],null]]]],[12],[1,"\\n "],[46,[28,[37,18],["reviewable-field-",[30,1,["type"]]],null],null,[["tagName","value","tagCategoryId","valueChanged","categoryChanged"],["",[28,[37,19],[[30,0,["reviewable"]],[30,1,["id"]]],null],[30,0,["tagCategoryId"]],[28,[37,20],[[30,0],"valueChanged",[30,1,["id"]]],null],[28,[37,20],[[30,0],"categoryChanged"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],[[[44,[[50,[30,0,["reviewableComponent"]],0,null,[["reviewable","tagName"],[[30,0,["reviewable"]],""]]]],[[[1," "],[1,"\\n "],[8,[30,2],null,null,[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["displayContextQuestion"]],[[[1," "],[10,"h3"],[14,0,"reviewable-item__context-question"],[12],[1,"\\n "],[1,[30,0,["reviewable","flaggedReviewableContextQuestion"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n"],[41,[51,[30,0,["reviewable","last_performing_username"]]],[[[41,[30,0,["canPerform"]],[[[41,[30,0,["editing"]],[[[1," "],[8,[39,25],[[24,0,"btn-primary reviewable-action save-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"check",[28,[37,20],[[30,0],"saveEdit"],null],"review.save"]],null],[1,"\\n "],[8,[39,25],[[24,0,"btn-danger reviewable-action cancel-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"xmark",[28,[37,20],[[30,0],"cancelEdit"],null],"review.cancel"]],null],[1,"\\n"]],[]],[[[42,[28,[37,15],[[28,[37,15],[[30,0,["reviewable","bundled_actions"]]],null]],null],null,[[[1," "],[8,[39,26],null,[["@bundle","@performAction","@reviewableUpdating"],[[30,3],[28,[37,20],[[30,0],"perform"],null],[30,0,["disabled"]]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["reviewable","can_edit"]],[[[1," "],[8,[39,25],[[24,0,"reviewable-action btn-default edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"pencil",[28,[37,20],[[30,0],"edit"],null],"review.edit"]],null],[1,"\\n"]],[]],null]],[]]]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["reviewable","last_performing_username"]],[[[1," "],[10,0],[14,0,"stale-help"],[12],[1,[28,[35,27],[[28,[37,4],["review.stale_help"],[["username"],[[30,0,["reviewable","last_performing_username"]]]]]],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["claimEnabled"]],[[[1," "],[10,0],[14,0,"claimed-actions"],[12],[1,"\\n "],[10,1],[14,0,"help"],[12],[1,[28,[35,27],[[30,0,["claimHelp"]]],null]],[13],[1,"\\n "],[8,[39,28],null,[["@topicId","@claimedBy","@onClaim"],[[30,0,["topicId"]],[30,0,["reviewable","claimed_by"]],[28,[37,10],[[28,[37,29],[[30,0,["reviewable","claimed_by"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["showIpLookup"]],[[[1," "],[8,[39,30],null,[["@ip","@userId"],["adminLookup",[30,0,["reviewable","target_created_by","id"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,31],null,[["@name","@connectorTagName","@outletArgs"],["reviewable-item-actions","div",[28,[37,32],null,[["reviewable"],[[30,0,["reviewable"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["f","ReviewableComponent","bundle"],false,["div","span","concat-class","if","i18n","link-to","age-with-tooltip","reviewable-status","a","on","fn","d-icon","avatar","reviewable-created-by-name","each","-track-array","dasherize","component","concat","editable-value","action","let","reviewable-scores","h3","unless","d-button","reviewable-bundled-action","html-safe","reviewable-claimed-topic","mut","ip-lookup","plugin-outlet","hash"]]',moduleName:"discourse/components/reviewable-item.hbs",isStrictMode:!1}),k={},T={},S={revise_and_reject_post:d.default},C={...S};function x(e,t){T[e]?T[e].push(t):T[e]=[t]}function A(e,t){if(Object.keys(S).includes(e))throw Error(`Cannot override default action modal class for ${e} (mapped to ${S[e].name})!`);C[e]=t}let E=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #u=(()=>dt7948.g(this.prototype,"adminTools",[g.default]))();#sf=(()=>void dt7948.i(this,"adminTools"))();updating=null;editing=!1;_updates=null;customClasses(e,t,i,s,n){let r=(0,a.dasherize)(e);return t&&(r=`${r} reviewable-stale`),i&&0===s&&(r=`${r} blur-images`),n&&(r=`${r} reviewable-deleted`),r}static #d=(()=>dt7948.n(this.prototype,"customClasses",[(0,m.default)("reviewable.type","reviewable.last_performing_username","siteSettings.blur_tl0_flagged_posts_media","reviewable.target_created_by_trust_level","reviewable.deleted_at")]))();displayContextQuestion(e,t,i,s,n){return e&&0===t&&(i||s&&null!==n)}static #p=(()=>dt7948.n(this.prototype,"displayContextQuestion",[(0,m.default)("reviewable.created_from_flag","reviewable.status","claimOptional","claimRequired","reviewable.claimed_by")]))();topicId(e,t,i){return e&&e.id||t||i}static #h=(()=>dt7948.n(this.prototype,"topicId",[(0,m.default)("reviewable.topic","reviewable.topic_id","reviewable.removed_topic_id")]))();claimEnabled(e,t){return"disabled"!==e&&!!t}static #m=(()=>dt7948.n(this.prototype,"claimEnabled",[(0,m.default)("siteSettings.reviewable_claiming","topicId")]))();claimOptional(e,t){return!t||"optional"===e}static #g=(()=>dt7948.n(this.prototype,"claimOptional",[(0,m.default)("siteSettings.reviewable_claiming","claimEnabled")]))();claimRequired(e,t){return t&&"required"===e}static #A=(()=>dt7948.n(this.prototype,"claimRequired",[(0,m.default)("siteSettings.reviewable_claiming","claimEnabled")]))();canPerform(e,t,i){return!e||(i?i.id===this.currentUser.id:"required"!==t)}static #E=(()=>dt7948.n(this.prototype,"canPerform",[(0,m.default)("claimEnabled","siteSettings.reviewable_claiming","reviewable.claimed_by")]))();claimHelp(e,t){return t?t.id===this.currentUser.id?(0,b.i18n)("review.claim_help.claimed_by_you"):(0,b.i18n)("review.claim_help.claimed_by_other",{username:t.username}):"optional"===e?(0,b.i18n)("review.claim_help.optional"):(0,b.i18n)("review.claim_help.required")}static #D=(()=>dt7948.n(this.prototype,"claimHelp",[(0,m.default)("siteSettings.reviewable_claiming","reviewable.claimed_by")]))();reviewableComponent(e){if(void 0!==k[e])return k[e];let t=(0,a.dasherize)(e),i=(0,r.getOwner)(this),s=i.hasRegistration(`component:${t}`)||i.hasRegistration(`template:components/${t}`);return k[e]=s?t:null,k[e]}static #P=(()=>dt7948.n(this.prototype,"reviewableComponent",[(0,m.default)("reviewable.type")]))();tagCategoryId(e,t){return e||t}static #Q=(()=>dt7948.n(this.prototype,"tagCategoryId",[(0,m.default)("_updates.category_id","reviewable.category.id")]))();showIpLookup(e){return"ReviewableUser"!==e&&this.currentUser.staff&&this.reviewable.target_created_by}static #J=(()=>dt7948.n(this.prototype,"showIpLookup",[(0,m.default)("reviewable.type","reviewable.target_created_by")]))();_performConfirmed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.reviewable,s=()=>{let s=i.get("version");this.set("updating",!0);let n={send_email:i.sendEmail,reject_reason:i.rejectReason,...t};return(T[i.type]||[]).forEach(e=>{i[e]&&(n[e]=i[e])}),(0,p.ajax)(`/review/${i.id}/perform/${e.server_action}?version=${s}`,{type:"PUT",dataType:"json",data:n}).then(e=>{let t=e.reviewable_perform_result;if(void 0!==t.reviewable_count&&this.currentUser.updateReviewableCount(t.reviewable_count),void 0!==t.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",t.unseen_reviewable_count),!this.remove)return this.store.find("reviewable",i.id);this.remove(t.remove_reviewable_ids)}).catch(h.popupAjaxError).finally(()=>this.set("updating",!1))};if(!e.client_action)return s();{let t=this[`client${(0,a.classify)(e.client_action)}`];return t?t.call(this,i,s):void console.error(`No handler for ${e.client_action} found`)}}static #X=(()=>dt7948.n(this.prototype,"_performConfirmed",[m.bind]))();clientSuspend(e,t){this._penalize("showSuspendModal",e,t)}clientSilence(e,t){this._penalize("showSilenceModal",e,t)}async clientEdit(e,t){if(!this.currentUser)return this.dialog.alert((0,b.i18n)("post.controls.edit_anonymous"));let i=await this.store.find("post",e.post_id),s=await y.default.find(i.topic_id,{}),n=y.default.create(s);if(i.set("topic",n),!i.can_edit)return!1;let r={post:i,action:_.default.EDIT,draftKey:i.get("topic.draft_key"),draftSequence:i.get("topic.draft_sequence"),skipJumpOnSave:!0};return this.composer.open(r),t()}_penalize(e,t,i){let s=this.adminTools;if(s){let n=t.get("target_created_by"),r=t.get("post_id"),o=t.get("raw");return s[e](n,{postId:r,postEdit:o,before:i})}}explainReviewable(e,t){t.preventDefault(),this.modal.show(c.default,{model:{reviewable:e}})}static #Z=(()=>dt7948.n(this.prototype,"explainReviewable",[n.action]))();edit(){this.set("editing",!0),this.set("_updates",{payload:{}})}static #ee=(()=>dt7948.n(this.prototype,"edit",[n.action]))();cancelEdit(){this.set("editing",!1)}static #et=(()=>dt7948.n(this.prototype,"cancelEdit",[n.action]))();saveEdit(){let e=this._updates;return Object.keys(e).forEach(t=>{let i=e[t];"object"==typeof i&&0===Object.keys(i).length&&delete e[t]}),this.set("updating",!0),this.reviewable.update(e).then(()=>this.set("editing",!1)).catch(h.popupAjaxError).finally(()=>this.set("updating",!1))}static #ei=(()=>dt7948.n(this.prototype,"saveEdit",[n.action]))();categoryChanged(e){let t=f.default.findById(e);t||(t=f.default.findUncategorized()),(0,n.set)(this._updates,"category_id",t.id)}static #es=(()=>dt7948.n(this.prototype,"categoryChanged",[n.action]))();valueChanged(e,t){(0,n.set)(this._updates,e,t.target.value)}static #en=(()=>dt7948.n(this.prototype,"valueChanged",[n.action]))();perform(e){if(this.updating)return;let t=e.get("confirm_message"),i=e.get("require_reject_reason")?u.default:C[e.server_action];if(t)this.dialog.confirm({message:t,didConfirm:()=>this._performConfirmed(e)});else{if(!i)return this._performConfirmed(e);this.modal.show(i,{model:{reviewable:this.reviewable,performConfirmed:this._performConfirmed,action:e}})}}static #er=(()=>dt7948.n(this.prototype,"perform",[n.action]))()},[(0,l.tagName)("")]),D=(0,s.setComponentTemplate)(w,E)},27333:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(53653),n=i(35533),r=i(30574),o=i(83133),a=i(99450),l=i(63748),c=i(17206),u=i(458);let d=(0,i(85671).createTemplateFactory)({id:"2pZ5zfkn",block:'[[[41,[30,0,["hasEdits"]],[[[1," "],[11,3],[24,6,""],[16,0,[29,["has-edits ",[30,0,["historyClass"]]]]],[16,"title",[28,[37,2],["post.last_edited_on"],[["dateTime"],[[30,0,["editedDate"]]]]]],[4,[38,3],["click",[30,0,["showEditHistory"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["pencil"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","a","i18n","on","d-icon"]]',moduleName:"discourse/components/reviewable-post-edits.hbs",isStrictMode:!1});class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"hasEdits",[(0,r.gt)("reviewable.post_version",1)]))();#rP=(()=>void dt7948.i(this,"hasEdits"))();historyClass(e){return(0,u.historyHeat)(this.siteSettings,new Date(e))}static #s=(()=>dt7948.n(this.prototype,"historyClass",[(0,l.default)("reviewable.post_updated_at")]))();editedDate(e){return(0,c.longDate)(e)}static #l=(()=>dt7948.n(this.prototype,"editedDate",[(0,l.default)("reviewable.post_updated_at")]))();showEditHistory(e){e?.preventDefault();let t=this.get("reviewable.post_id");this.store.find("post",t).then(e=>{this.modal.show(a.default,{model:{post:e,postId:t,postVersion:"latest",topicController:null}})})}static #c=(()=>dt7948.n(this.prototype,"showEditHistory",[n.action]))()}(0,s.setComponentTemplate)(d,p)},6220:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"dR6cZYqQ",block:'[[[10,0],[14,0,"reviewable-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@user"],[[30,0,["createdBy"]]]],null],[1,"\\n"],[41,[30,0,["reviewable","reply_to_post_number"]],[[[1," "],[10,3],[15,6,[28,[37,4],[[30,0,["reviewable","topic_url"]],"/",[30,0,["reviewable","reply_to_post_number"]]],null]],[14,0,"reviewable-reply-to"],[12],[1,"\\n "],[1,[28,[35,5],["share"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["review.in_reply_to"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","reviewable-created-by-name","if","a","concat","d-icon","span","i18n"]]',moduleName:"discourse/components/reviewable-post-header.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},92699:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"6iUQ6uSz",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n "],[8,[39,2],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,0,["reviewable","target_created_by"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@createdBy","@tagName"],[[30,0,["reviewable"]],[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n "],[10,0],[14,0,"post-body"],[12],[1,"\\n"],[41,[30,0,["reviewable","blank_post"]],[[[1," "],[10,2],[12],[1,[28,[35,7],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],[[30,0,["reviewable","cooked"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"],[13]],["&default"],false,["div","reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","p","i18n","html-safe","yield"]]',moduleName:"discourse/components/reviewable-post.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},15306:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(70470);let l=(0,i(85671).createTemplateFactory)({id:"2G6hk4yj",block:'[[[8,[39,0],null,[["@reviewable","@tagName"],[[30,1],""]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"title-text"],[12],[1,"\\n "],[1,[28,[35,2],["square-plus"],[["title"],["review.new_topic"]]]],[1,"\\n "],[1,[30,1,["payload","title"]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,3],[[30,1,["category"]]],null]],[1,"\\n "],[8,[39,4],null,[["@tags","@tagName"],[[30,1,["payload","tags"]],""]],null],[1,"\\n"],[41,[30,1,["payload","via_email"]],[[[1," "],[11,3],[24,6,""],[24,0,"show-raw-email"],[4,[38,7],["click",[30,0,["showRawEmail"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["envelope"],[["title"],["post.via_email"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,8],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,9],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n\\n "],[8,[39,10],[[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]]],[["@rawText","@categoryId","@topicId","@paintOneboxes","@opts","@onOffsetHeightCalculated"],[[30,1,["payload","raw"]],[30,1,["category_id"]],[30,1,["topic_id"]],true,[28,[37,11],null,[["removeMissing"],[true]]],[30,0,["setPostBodyHeight"]]]],null],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[39,12],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["reviewable-topic-link","div","d-icon","category-badge","reviewable-tags","if","a","on","reviewable-created-by","reviewable-post-header","cook-text","hash","d-button","yield"]]',moduleName:"discourse/components/reviewable-queued-post.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"isCollapsed",[n.tracked],function(){return!1}))();#rA=(()=>void dt7948.i(this,"isCollapsed"))();static #s=(()=>dt7948.g(this.prototype,"isLongPost",[n.tracked],function(){return!1}))();#rE=(()=>void dt7948.i(this,"isLongPost"))();static #l=(()=>dt7948.g(this.prototype,"postBodyHeight",[n.tracked],function(){return 0}))();#rM=(()=>void dt7948.i(this,"postBodyHeight"))();maxPostHeight=300;showRawEmail(e){e?.preventDefault(),this.modal.show(a.default,{model:{rawEmail:this.args.reviewable.payload.raw_email}})}static #c=(()=>dt7948.n(this.prototype,"showRawEmail",[r.action]))();toggleContent(){this.isCollapsed=!this.isCollapsed}static #u=(()=>dt7948.n(this.prototype,"toggleContent",[r.action]))();get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}setPostBodyHeight(e){this.postBodyHeight=e,this.postBodyHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}static #d=(()=>dt7948.n(this.prototype,"setPostBodyHeight",[r.action]))()}(0,c.setComponentTemplate)(l,u)},97197:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(30574),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"b/yfFLzJ",block:'[[[10,"tr"],[14,0,"reviewable-score"],[12],[1,"\\n "],[10,"td"],[14,0,"user"],[12],[1,"\\n "],[8,[39,2],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,0,["rs","user"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,0,["rs","user","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["rs","created_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,5],[[30,0,["rs","score_type","icon"]]],null]],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showStatus"]],[[[1," "],[10,"td"],[14,0,"reviewed-by"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1," "],[8,[39,2],null,[["@user"],[[30,0,["rs","reviewed_by"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,0,["rs","reviewed_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,0,["rs","reviewed_by","username"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," —\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1," "],[1,[28,[35,4],[[30,0,["rs","reviewed_at"]]],[["format"],["tiny"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["rs","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[10,"td"],[14,"colspan","4"],[12],[13],[1,"\\n"]],[]]],[13]],[],false,["tr","td","user-link","avatar","format-date","d-icon","if","reviewable-status"]]',moduleName:"discourse/components/reviewable-score.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"showStatus",[(0,n.gt)("rs.status",0)]))();#rF=(()=>void dt7948.i(this,"showStatus"))();title(e,t){return e&&t?e.replace(/{{username}}|%{username}/,t.username):e}static #i=(()=>dt7948.n(this.prototype,"title",[(0,o.default)("rs.score_type.title","reviewable.target_created_by")]))()},[(0,r.tagName)("")]),c=(0,s.setComponentTemplate)(a,l)},36406:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"RW92kHi2",block:'[[[41,[30,0,["reviewable","reviewable_scores"]],[[[1," "],[10,0],[14,0,"reviewable-scores__table-wrapper"],[12],[1,"\\n "],[10,"table"],[14,0,"reviewable-scores"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.submitted_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.date"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.type"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.reviewed_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.reviewed_timestamp"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.status"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@rs","@reviewable"],[[30,1],[30,0,["reviewable"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[41,[30,2,["reason"]],[[[1," "],[10,0],[14,0,"reviewable-score-reason"],[12],[1,[28,[35,11],[[30,2,["reason"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["reviewable_conversation"]],[[[1," "],[10,0],[14,0,"reviewable-conversation"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,2,["reviewable_conversation","conversation_posts"]]],null]],null],null,[[[1," "],[8,[39,12],null,[["@post","@index"],[[30,3],[30,4]]],null],[1,"\\n"]],[3,4]],null],[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["reviewable_conversation","permalink"]]],[14,0,"btn btn-small"],[12],[1,"\\n "],[1,[28,[35,6],["review.conversation.view_full"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"]],[]],null]],["rs","rs","p","index"],false,["if","div","table","thead","tr","th","i18n","tbody","each","-track-array","reviewable-score","html-safe","reviewable-conversation-post","a"]]',moduleName:"discourse/components/reviewable-scores.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},57939:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"HhQegpnE",block:'[[[41,[30,0,["tags"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[42,[28,[37,3],[[28,[37,3],[[30,0,["tags"]]],null]],null],null,[[[1,[28,[35,4],[[30,1]],null]]],[1]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["t"],false,["if","div","each","-track-array","discourse-tag"]]',moduleName:"discourse/components/reviewable-tags.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},70744:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"Ern8OUiJ",block:'[[[10,0],[14,0,"post-topic"],[12],[1,"\\n"],[41,[30,0,["reviewable","topic"]],[[[1," "],[8,[39,2],null,[["@topic","@showPrivateMessageIcon"],[[30,0,["reviewable","topic"]],true]],null],[1,"\\n "],[10,3],[15,6,[30,0,["reviewable","target_url"]]],[14,0,"title-text"],[12],[1,[28,[35,4],[[30,0,["reviewable","topic","fancyTitle"]]],null]],[13],[1,"\\n "],[1,[28,[35,5],[[30,0,["reviewable","category"]]],null]],[1,"\\n "],[8,[39,6],null,[["@tags","@tagName"],[[30,0,["reviewable","topic_tags"]],""]],null],[1,"\\n"]],[]],[[[41,[48,[30,1]],[[[1," "],[18,1,null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"title-text"],[12],[1,"\\n "],[1,[28,[35,10],["review.topics.deleted"],null]],[1,"\\n "],[8,[39,11],null,[["@route","@models"],["topic",[28,[37,12],["-",[30,0,["reviewable","removed_topic_id"]]],null]]],[["default"],[[[[1,[28,[35,10],["review.topics.original"],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[13]],["&default"],false,["div","if","topic-status","a","html-safe","category-badge","reviewable-tags","has-block","yield","span","i18n","link-to","array"]]',moduleName:"discourse/components/reviewable-topic-link.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},79494:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(63748);let r=(0,i(85671).createTemplateFactory)({id:"1zfFC7V1",block:'[[[10,0],[14,0,"reviewable-user-info"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-user-fields"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-user-details username"],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[28,[35,1],["review.user.username"],null]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,"\\n"],[41,[30,0,["reviewable","link_admin"]],[[[1," "],[10,3],[15,6,[28,[37,4],[[28,[37,5],["/admin/users/",[30,0,["reviewable","user_id"]],"/",[30,0,["reviewable","payload","username"]]],null]],null]],[12],[1,"\\n "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details name",[28,[37,1],["review.user.name"],null],[30,0,["reviewable","payload","name"]]]],null],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details email",[28,[37,1],["review.user.email"],null],[30,0,["reviewable","payload","email"]]]],null],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details bio",[28,[37,1],["review.user.bio"],null],[30,0,["reviewable","payload","bio"]]]],null],[1,"\\n\\n"],[41,[30,0,["reviewable","payload","website"]],[[[1," "],[10,0],[14,0,"reviewable-user-details website"],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[28,[35,1],["review.user.website"],null]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["reviewable","payload","website"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["reviewable","payload","website"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details reject-reason",[28,[37,1],["review.user.reject_reason"],null],[30,0,["reviewable","reject_reason"]]]],null],[1,"\\n\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@classes","@name","@value","@tagName"],["reviewable-user-details user-field",[30,1,["name"]],[30,1,["value"]],""]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n "],[18,2,null],[1,"\\n"],[13]],["f","&default"],false,["div","i18n","if","a","get-url","concat","reviewable-field","each","-track-array","yield"]]',moduleName:"discourse/components/reviewable-user.hbs",isStrictMode:!1});class o extends s.default{userFields(e){return this.site.collectUserFields(e)}static #e=(()=>dt7948.n(this.prototype,"userFields",[(0,n.default)("reviewable.user_fields")]))()}(0,s.setComponentTemplate)(r,o)},5968:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(30574),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"l7eGBclQ",block:'[[[8,[39,0],[[24,0,"btn-primary save-changes"]],[["@action","@disabled","@label"],[[30,0,["action"]],[30,0,["buttonDisabled"]],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[14,0,"saved"],[12],[1,[28,[35,3],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,1,null]],["&default"],false,["d-button","if","span","i18n","yield"]]',moduleName:"discourse/components/save-controls.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"buttonDisabled",[(0,n.or)("model.isSaving","saveDisabled")]))();#rI=(()=>void dt7948.i(this,"buttonDisabled"))();didInsertElement(){super.didInsertElement(...arguments),this.set("saved",!1)}savingText(e){return e?"saving":"save"}static #i=(()=>dt7948.n(this.prototype,"savingText",[(0,o.default)("model.isSaving")]))()},[(0,r.classNames)("controls","save-button")]),c=(0,s.setComponentTemplate)(a,l)},21623:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(843),r=i(53653),o=i(85671);class a extends s.default{get numericValue(){return parseFloat(Math.abs(this.args.value)).toFixed(1)}get isNegative(){return this.args.value<0}get explanationTitle(){return(0,n.i18n)(`review.explain.${this.args.label}.title`)}get explanationContent(){return(0,n.i18n)(`review.explain.${this.args.label}.name`)}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"0/NcLGRO",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[14,0,"op"],[12],[1,[52,[30,0,["isNegative"]],"-","+"]],[13],[1,"\\n "],[10,1],[14,0,"score-value"],[12],[1,"\\n "],[10,1],[14,0,"score-number"],[12],[1,[30,0,["numericValue"]]],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,1],[15,"title",[30,0,["explanationTitle"]]],[14,0,"score-value-type"],[12],[1,"\\n "],[1,[30,0,["explanationContent"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@value","@label"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/score-value.js",isStrictMode:!0}),this))()}},19538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(62053),n=i(83133),r=i(40260),o=i(46301),a=i(63748),l=i(48276),c=i(77270),u=i(87353),d=i(59095);class p extends r.default{static #e=(()=>dt7948.g(this.prototype,"screenTrack",[n.service]))();#rN=(()=>void dt7948.i(this,"screenTrack"))();widget="post-stream";_topVisible=null;_bottomVisible=null;_currentPostObj=null;_currentVisible=null;_currentPercent=null;buildArgs(){return this.getProperties("posts","canCreatePost","filteredPostsCount","multiSelect","gaps","selectedQuery","selectedPostsCount","searchService","showReadIndicator","streamFilters","lastReadPostNumber","highestPostNumber")}scrolled(){if(this.isDestroyed||this.isDestroying||document.webkitFullscreenElement||document.fullscreenElement)return;let e=window.innerHeight,t=Math.round(5*e),i=[],n=[],r=document.scrollingElement.scrollTop,o=l.default.offset(document.querySelector(".posts-wrapper")).top,a=this.element.querySelectorAll(".onscreen-post, .cloaked-post"),u=function(e,t,i,s,n){if(ns;){let r=Math.floor((s+n)/2),o=e.item(r);l.default.offset(o).top-i+o.clientHeight>t?n=r-1:s=r+1}return s}(a,r-t,o,0,a.length-1),p=r+e,h=p+t,m=document.body.clientHeight;p>m&&(p=m),h>m&&(h=m);let g=null,f=null,_=Math.ceil(r+(0,c.default)()+5),y=!0,b=u,w=0;for(;bh)break;o>=r&&t<=p&&i.push(b),null===g&&(t<=_&&o>=_||w<=_&&t>=_)&&(f=(_-t)/s,g=b),w=o,n.push(b),b++}y&&(null===f&&(f=1),null===g&&(g=b-1));let k=this.posts,T=e=>this.queueRerender(e);if(i.length){let e=k.objectAt(i[0]);if(this._topVisible!==e){this._topVisible=e;let t=a.item(i[0]).id;this.topVisibleChanged({post:e,refresh:()=>{T(()=>{let e=document.getElementById(t);if(!e)return;let i=e=>e?e.offsetTop+i(e.offsetParent):0;window.scrollTo({top:i(e)-(0,c.default)()}),(0,s.schedule)("afterRender",()=>{window.scrollTo({top:i(e)-(0,c.default)()})})})}})}let t=k.objectAt(i[i.length-1]);this._bottomVisible!==t&&(this._bottomVisible=t,this.bottomVisibleChanged({post:t,refresh:T}));let n=k.objectAt(g),r=this._currentPostObj!==n;r&&(this._currentPostObj=n,this.currentPostChanged({post:n})),null!==f&&(f=Math.max(0,Math.min(1,f)),(r||this._currentPercent!==f)&&(this._currentPercent=f,this.currentPostScrolled({percent:f})))}else this._topVisible=null,this._bottomVisible=null,this._currentPostObj=null,this._currentPercent=null;let S=new Set,C=new Set,x=new Set;n.forEach(e=>{let t=k.objectAt(e);this._previouslyNearby.delete(t.post_number),i.includes(e)&&(S.add(t.post_number),t.read&&C.add(t.post_number)),x.add(t.post_number,t),(0,d.uncloak)(t,this)}),Object.values(this._previouslyNearby).forEach(e=>(0,d.cloak)(e,this)),this._previouslyNearby=x,this.screenTrack.setOnscreen(S,C)}_scrollTriggered(){(0,s.scheduleOnce)("afterRender",this,this.scrolled)}_posted(e){this.queueRerender(()=>{if(e){let t=e.post_number;u.default.jumpToPost(t,{skipIfOnScreen:!0})}})}_refresh(e){e&&(e.id?(this.dirtyKeys.keyDirty(`post-${e.id}`),e.refreshLikes&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshLikes"}),e.refreshReaders&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshReaders"})):e.force&&this.dirtyKeys.forceAll()),this.queueRerender(),this._scrollTriggered()}_debouncedScroll(){(0,o.default)(this,this._scrollTriggered,50)}static #i=(()=>dt7948.n(this.prototype,"_debouncedScroll",[a.bind]))();didInsertElement(){super.didInsertElement(...arguments),this._previouslyNearby=new Set,this.appEvents.on("post-stream:refresh",this,"_debouncedScroll");let e={passive:!0};document.addEventListener("touchmove",this._debouncedScroll,e),window.addEventListener("scroll",this._debouncedScroll,e),this._scrollTriggered(),this.appEvents.on("post-stream:posted",this,"_posted"),this.element.addEventListener("mouseenter",this._handleWidgetButtonHoverState,!0),this.element.addEventListener("mouseleave",this._removeWidgetButtonHoverState,!0),this.appEvents.on("post-stream:refresh",this,"_refresh"),window.onpageshow=function(e){e.persisted&&u.default.routeTo(this.location.pathname)}}willDestroyElement(){super.willDestroyElement(...arguments),document.removeEventListener("touchmove",this._debouncedScroll),window.removeEventListener("scroll",this._debouncedScroll),this.appEvents.off("post-stream:refresh",this,"_debouncedScroll"),this.element.removeEventListener("mouseenter",this._handleWidgetButtonHoverState),this.element.removeEventListener("mouseleave",this._removeWidgetButtonHoverState),this.appEvents.off("post-stream:refresh",this,"_refresh"),this.appEvents.off("post-stream:posted",this,"_posted")}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._refresh({force:!0})}_handleWidgetButtonHoverState(e){e.target.classList.contains("widget-button")&&(document.querySelectorAll("button.widget-button").forEach(e=>{e.classList.remove("d-hover")}),e.target.classList.add("d-hover"))}_removeWidgetButtonHoverState(){document.querySelectorAll("button.widget-button").forEach(e=>{e.classList.remove("d-hover")})}}},65755:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addAdvancedSearchOptions:()=>I,default:()=>O});var s=i(53653),n=i(35533),r=i(53397),o=i(42236),a=i(1559),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"ibfMn8DZ",block:'[[[10,"summary"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.title"],null]],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"search-advanced-filters"],[12],[1,"\\n "],[10,0],[14,0,"search-advanced-options"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-above","div",[28,[37,4],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-category"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.in_category.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,6],null,[["@id","@value","@onChange"],["search-in-category",[30,0,["searchedTerms","category","id"]],[28,[37,7],[[30,0],"onChangeSearchTermForCategory"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[10,0],[14,0,"control-group advanced-search-tags"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.with_tags.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,9],null,[["@id","@tags","@everyTag","@unlimitedTagCount","@onChange","@options"],["search-with-tags",[30,0,["searchedTerms","tags"]],true,true,[28,[37,7],[[30,0],"onChangeSearchTermForTags"],null],[28,[37,4],null,[["allowAny","headerAriaLabel"],[false,[28,[37,1],["search.advanced.with_tags.aria_label"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showAllTagsCheckbox"]],[[[1," "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,11],[[24,0,"all-tags"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForAllTags"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","all_tags"]]]],null],[1,"\\n "],[1,[28,[35,1],["search.advanced.filters.all_tags"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group advanced-search-topics-posts"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"fieldset"],[14,0,"grouped-control"],[12],[1,"\\n "],[10,"legend"],[14,0,"grouped-control-label"],[12],[1,[28,[35,1],["search.advanced.filters.label"],null]],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1," "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-title-only"],[24,0,"in-title"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInTitle"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","title"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-title-only"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.filters.title"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-liked"],[24,0,"in-likes"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInLikes"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","likes"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-liked"],[12],[1,[28,[35,1],["search.advanced.filters.likes"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-in-messages"],[24,0,"in-private"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInMessages"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","messages"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-in-messages"],[12],[1,[28,[35,1],["search.advanced.filters.private"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-seen"],[24,0,"in-seen"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInSeen"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","seen"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-seen"],[12],[1,[28,[35,1],["search.advanced.filters.seen"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["in","value",[30,0,["inOptions"]],[30,0,["searchedTerms","in"]],[28,[37,7],[[30,0],"onChangeSearchTermForIn"],null],[28,[37,4],null,[["none","clearable"],["user.locale.any",true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-topic-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.statuses.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["search-status-options","value",[30,0,["statusOptions"]],[30,0,["searchedTerms","status"]],[28,[37,7],[[30,0],"onChangeSearchTermForStatus"],null],[28,[37,4],null,[["none","headerAriaLabel","clearable"],["user.locale.any",[28,[37,1],["search.advanced.statuses.label"],null],true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-posted-by"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.posted_by.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,16],null,[["@id","@value","@onChange","@options"],["search-posted-by",[30,0,["searchedTerms","username"]],[28,[37,7],[[30,0],"onChangeSearchTermForUsername"],null],[28,[37,4],null,[["headerAriaLabel","maximum","excludeCurrentUser"],[[28,[37,1],["search.advanced.posted_by.aria_label"],null],1,false]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-posted-date"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.post.time.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls inline-form full-width"],[12],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["postTime","value",[30,0,["postTimeOptions"]],[30,0,["searchedTerms","time","when"]],[28,[37,7],[[30,0],"onChangeWhenTime"],null],[28,[37,4],null,[["headerAriaLabel"],[[28,[37,1],["search.advanced.post.time.aria_label"],null]]]]]],null],[1,"\\n "],[8,[39,17],null,[["@date","@onChange","@inputId"],[[30,0,["searchedTerms","time","days"]],[28,[37,7],[[30,0],"onChangeWhenDate"],null],"search-post-date"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-below","div",[28,[37,4],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"details"],[14,0,"search-advanced-additional-options"],[12],[1,"\\n "],[10,"summary"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.additional_options.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1," "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.post.count.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-min-post-count"],[16,"placeholder",[28,[37,1],["search.advanced.post.min.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.post.min.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMinPostCount"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","min_posts"]]],null]]],null],[1,"\\n "],[1,[28,[35,22],["left-right"],null]],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-max-post-count"],[16,"placeholder",[28,[37,1],["search.advanced.post.max.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.post.max.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMaxPostCount"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","max_posts"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1," "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.views.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-min-views"],[16,"placeholder",[28,[37,1],["search.advanced.min_views.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.min_views.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMinViews"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","min_views"]]],null]]],null],[1,"\\n "],[1,[28,[35,22],["left-right"],null]],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-max-views"],[16,"placeholder",[28,[37,1],["search.advanced.max_views.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.max_views.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMaxViews"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","max_views"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"second-search-button"],[12],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[30,0,["search"]],"magnifying-glass","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["summary","i18n","div","plugin-outlet","hash","label","search-advanced-category-chooser","action","if","tag-chooser","section","input","on","fieldset","legend","combo-box","user-chooser","date-input","details","span","readonly","with-event-value","d-icon","d-button"]]',moduleName:"discourse/components/search-advanced-options.hbs",isStrictMode:!1}),u=/(([^" \t\n\x0B\f\r]+)?(("[^"]+")?))/g,d=/^(user:|@)/gi,p=/^(category:|#)/gi,h=/^(tags?:|#(?=[a-z0-9\-]+::tag))/gi,m=/^(in|with):/gi,g=/^status:/gi,f=/^min_posts:/gi,_=/^max_posts:/gi,y=/^min_views:/gi,b=/^max_views:/gi,w=/^(before|after):/gi,k=/(^(tags?:|#(?=[a-z0-9\-]+::tag))|::tag\s?$)/gi,T=/^in:likes$/gi,S=/^in:title$/gi,C=/^in:(personal|messages)$/gi,x=/^in:seen$/gi,A=/^(\#[a-zA-Z0-9\-:]+)/gi,E=/^(category:[0-9]+)/gi,D=/^(before|after)/gi,P={images:"with"},M=[];function F(){return[{name:(0,l.i18n)("search.advanced.filters.first"),value:"first"},{name:(0,l.i18n)("search.advanced.filters.pinned"),value:"pinned"},{name:(0,l.i18n)("search.advanced.filters.wiki"),value:"wiki"},{name:(0,l.i18n)("search.advanced.filters.images"),value:"images"}].concat(...M.map(e=>e.inOptionsForAll).filter(Boolean))}function I(e){M.push(e)}let N=dt7948.c(class extends s.default{category=null;init(){super.init(...arguments),this.setProperties({searchedTerms:{username:null,category:null,tags:null,in:null,special:{in:{title:!1,likes:!1,messages:!1,seen:!1},all_tags:!1},status:null,min_posts:null,max_posts:null,min_views:null,max_views:null,time:{when:"before",days:null}},inOptions:this.currentUser?(function(){return[{name:(0,l.i18n)("search.advanced.filters.unseen"),value:"unseen"},{name:(0,l.i18n)("search.advanced.filters.posted"),value:"posted"},{name:(0,l.i18n)("search.advanced.filters.created"),value:"created"},{name:(0,l.i18n)("search.advanced.filters.watching"),value:"watching"},{name:(0,l.i18n)("search.advanced.filters.tracking"),value:"tracking"},{name:(0,l.i18n)("search.advanced.filters.bookmarks"),value:"bookmarks"}].concat(...M.map(e=>e.inOptionsForUsers).filter(Boolean))})().concat(F()):F(),statusOptions:function(){return[{name:(0,l.i18n)("search.advanced.statuses.open"),value:"open"},{name:(0,l.i18n)("search.advanced.statuses.closed"),value:"closed"},{name:(0,l.i18n)("search.advanced.statuses.public"),value:"public"},{name:(0,l.i18n)("search.advanced.statuses.archived"),value:"archived"},{name:(0,l.i18n)("search.advanced.statuses.noreplies"),value:"noreplies"},{name:(0,l.i18n)("search.advanced.statuses.single_user"),value:"single_user"}].concat(...M.map(e=>e.statusOptions).filter(Boolean))}(),postTimeOptions:function(){return[{name:(0,l.i18n)("search.advanced.post.time.before"),value:"before"},{name:(0,l.i18n)("search.advanced.post.time.after"),value:"after"}].concat(...M.map(e=>e.postTimeOptions).filter(Boolean))}(),showAllTagsCheckbox:!1})}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.setSearchedTermValue("searchedTerms.username",d),this.setSearchedTermValueForCategory(),this.setSearchedTermValueForTags();let e=this.inOptions.map(e=>e.value).join("|"),t=RegExp(`(in|with):(${e})`,"i");this.setSearchedTermValue("searchedTerms.in",m,t),this.setSearchedTermSpecialInValue("searchedTerms.special.in.likes",T),this.setSearchedTermSpecialInValue("searchedTerms.special.in.title",S),this.setSearchedTermSpecialInValue("searchedTerms.special.in.messages",C),this.setSearchedTermSpecialInValue("searchedTerms.special.in.seen",x);let i=this.statusOptions.map(e=>e.value).join("|"),s=RegExp(`status:(${i})`,"i");this.setSearchedTermValue("searchedTerms.status",g,s),this.setSearchedTermValueForPostTime(),this.setSearchedTermValue("searchedTerms.min_posts",f),this.setSearchedTermValue("searchedTerms.max_posts",_),this.setSearchedTermValue("searchedTerms.min_views",y),this.setSearchedTermValue("searchedTerms.max_views",b)}findSearchTerms(){let e=(0,o.escapeExpression)(this.searchTerm);if(!e)return[];let t=e.match(u);if(!t)return[];let i=[];return t.forEach(e=>{0!==e.length&&i.push(e)}),i}filterBlocks(e){let t=this.findSearchTerms();if(!t)return[];let i=[];return t.forEach(t=>{-1!==t.search(e)&&i.push(t)}),i}setSearchedTermValue(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i=i||t;let s=this.filterBlocks(i),n=this.get(e);if(0!==s.length){let i=s[0].replace(t,"").toLowerCase();n!==i&&i.length&&this.set(e,i)}else n&&0!==n.length&&this.set(e,null)}setSearchedTermSpecialInValue(e,t){0!==this.filterBlocks(t).length?!0!==this.get(e)&&this.set(e,!0):!1!==this.get(e)&&this.set(e,!1)}setSearchedTermValueForCategory(){let e=this.filterBlocks(p);if(0!==e.length){let t;let i=this.get("searchedTerms.category"),s=e[0].replace(p,"").split(":");s.length>1?t=a.default.list().find(e=>e.get("parentCategory.slug")===s[0]&&e.slug===s[1]):(t=a.default.list().find(e=>!e.parentCategory&&e.slug===s[0]))||(t=a.default.list().find(e=>e.slug===s[0])),(!i&&t||i&&t&&i.id!==t.id)&&this.set("searchedTerms.category",t)}else this.set("searchedTerms.category",null)}setSearchedTermValueForTags(){if(!this.siteSettings.tagging_enabled)return;let e=this.filterBlocks(h),t=this.get("searchedTerms.tags");e.length&&this.set("searchedTerms.special.all_tags",e[0].includes("+"));let i=this.get("searchedTerms.special.all_tags");if(0!==e.length){let s=i?"+":",",n=Array.isArray(t)?t.join(s):t,r=e[0].replace(k,"");if(n!==r){let e=r?.split(s);this.set("searchedTerms.tags",e),this.set("showAllTagsCheckbox",e.length>1)}}else t||this.set("searchedTerms.tags",null)}setSearchedTermValueForPostTime(){let e=this.filterBlocks(w);if(0!==e.length){let t=this.get("searchedTerms.time.when"),i=e[0].match(D)[0].toLowerCase(),s=this.get("searchedTerms.time.days"),n=e[0].replace(w,""),r={};t!==i&&(r["searchedTerms.time.when"]=i),s!==n&&(r["searchedTerms.time.days"]=n),this.setProperties(r)}else this.set("searchedTerms.time.when","before"),this.set("searchedTerms.time.days",null)}updateInRegex(e,t){let i=this.filterBlocks(e),s=this.get("searchedTerms.special.in."+t),n=this.searchTerm||"";s?0===i.length&&(n+=` in:${t}`,this._updateSearchTerm(n)):0!==i.length&&(n=n.replace(i,""),this._updateSearchTerm(n))}onChangeSearchTermMinPostCount(e){this.set("searchedTerms.min_posts",e.length?e:null),this._updateSearchTermForMinPostCount()}static #e=(()=>dt7948.n(this.prototype,"onChangeSearchTermMinPostCount",[n.action]))();onChangeSearchTermMaxPostCount(e){this.set("searchedTerms.max_posts",e.length?e:null),this._updateSearchTermForMaxPostCount()}static #i=(()=>dt7948.n(this.prototype,"onChangeSearchTermMaxPostCount",[n.action]))();onChangeSearchTermMinViews(e){this.set("searchedTerms.min_views",e.length?e:null),this._updateSearchTermForMinViews()}static #s=(()=>dt7948.n(this.prototype,"onChangeSearchTermMinViews",[n.action]))();onChangeSearchTermMaxViews(e){this.set("searchedTerms.max_views",e.length?e:null),this._updateSearchTermForMaxViews()}static #l=(()=>dt7948.n(this.prototype,"onChangeSearchTermMaxViews",[n.action]))();onChangeSearchTermForIn(e){this.set("searchedTerms.in",e),this._updateSearchTermForIn()}static #c=(()=>dt7948.n(this.prototype,"onChangeSearchTermForIn",[n.action]))();onChangeSearchTermForStatus(e){this.set("searchedTerms.status",e),this._updateSearchTermForStatus()}static #u=(()=>dt7948.n(this.prototype,"onChangeSearchTermForStatus",[n.action]))();onChangeWhenTime(e){e&&(this.set("searchedTerms.time.when",e),this._updateSearchTermForPostTime())}static #d=(()=>dt7948.n(this.prototype,"onChangeWhenTime",[n.action]))();onChangeWhenDate(e){e&&(this.set("searchedTerms.time.days",e.format("YYYY-MM-DD")),this._updateSearchTermForPostTime())}static #p=(()=>dt7948.n(this.prototype,"onChangeWhenDate",[n.action]))();onChangeSearchTermForCategory(e){if(e){let t=a.default.findById(e);this.onChangeCategory&&this.onChangeCategory(t),this.set("searchedTerms.category",t)}else this.onChangeCategory&&this.onChangeCategory(null),this.set("searchedTerms.category",null);this._updateSearchTermForCategory()}static #h=(()=>dt7948.n(this.prototype,"onChangeSearchTermForCategory",[n.action]))();onChangeSearchTermForUsername(e){this.set("searchedTerms.username",e.length?e:null),this._updateSearchTermForUsername()}static #m=(()=>dt7948.n(this.prototype,"onChangeSearchTermForUsername",[n.action]))();onChangeSearchTermForTags(e){this.set("searchedTerms.tags",e.length?e:null),this._updateSearchTermForTags()}static #g=(()=>dt7948.n(this.prototype,"onChangeSearchTermForTags",[n.action]))();onChangeSearchTermForAllTags(e){this.set("searchedTerms.special.all_tags",e),this._updateSearchTermForTags()}static #A=(()=>dt7948.n(this.prototype,"onChangeSearchTermForAllTags",[n.action]))();onChangeSearchTermForSpecialInLikes(e){this.set("searchedTerms.special.in.likes",e),this.updateInRegex(T,"likes")}static #E=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInLikes",[n.action]))();onChangeSearchTermForSpecialInMessages(e){this.set("searchedTerms.special.in.messages",e),this.updateInRegex(C,"messages")}static #D=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInMessages",[n.action]))();onChangeSearchTermForSpecialInSeen(e){this.set("searchedTerms.special.in.seen",e),this.updateInRegex(x,"seen")}static #P=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInSeen",[n.action]))();onChangeSearchTermForSpecialInTitle(e){this.set("searchedTerms.special.in.title",e),this.updateInRegex(S,"title")}static #Q=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInTitle",[n.action]))();onChangeSearchedTermField(e,t,i){this.set(`searchedTerms.${e}`,i),this[t]()}static #J=(()=>dt7948.n(this.prototype,"onChangeSearchedTermField",[n.action]))();_updateSearchTermForTags(){let e=this.filterBlocks(h),t=this.get("searchedTerms.tags"),i=this.searchTerm||"",s=this.get("searchedTerms.special.all_tags");if(t&&0!==t.length){let n=t.join(s?"+":",");0!==e.length?i=i.replace(e[0],`tags:${n}`):i+=` tags:${n}`,t.length>1&&this.set("showAllTagsCheckbox",!0),this._updateSearchTerm(i)}else 0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForCategory(){let e=this.filterBlocks(p),t=this.get("searchedTerms.category"),i=this.searchTerm||"",s=0!==e.length?e[0].match(A):null,n=0!==e.length?e[0].match(E):null;if(t){let e=t.id,r=t.slug;if(t.parentCategory){let o=t.parentCategory.slug;s?i=i.replace(s[0],`#${o}:${r}`):n?i=i.replace(n[0],`category:${e}`):r?i+=` #${o}:${r}`:i+=` category:${e}`,this._updateSearchTerm(i)}else s?i=i.replace(s[0],`#${r}`):n?i=i.replace(n[0],`category:${e}`):r?i+=` #${r}`:i+=` category:${e}`,this._updateSearchTerm(i)}else s&&(i=i.replace(s[0],"")),n&&(i=i.replace(n[0],"")),this._updateSearchTerm(i)}_updateSearchTermForUsername(){let e=this.filterBlocks(d),t=this.get("searchedTerms.username"),i=this.searchTerm||"";t&&0!==t.length?(0!==e.length?i=i.replace(e[0],`@${t}`):i+=` @${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForPostTime(){let e=this.filterBlocks(w),t=this.get("searchedTerms.time.days"),i=this.searchTerm||"";if(t){let s=this.get("searchedTerms.time.when");0!==e.length?i=i.replace(e[0],`${s}:${t}`):i+=` ${s}:${t}`,this._updateSearchTerm(i)}else 0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForIn(){let e=this.inOptions.map(e=>e.value).join("|"),t=RegExp(`(in|with):(${e})`,"i"),i=this.filterBlocks(t),s=this.get("searchedTerms.in"),n="in";s in P&&(n=P[s]);let r=this.searchTerm||"";s?(0!==i.length?r=r.replace(i[0],`${n}:${s}`):r+=` ${n}:${s}`,this._updateSearchTerm(r)):0!==i.length&&(r=r.replace(i,""),this._updateSearchTerm(r))}_updateSearchTermForStatus(){let e=this.statusOptions.map(e=>e.value).join("|"),t=RegExp(`status:(${e})`,"i"),i=this.filterBlocks(t),s=this.get("searchedTerms.status"),n=this.searchTerm||"";s?(0!==i.length?n=n.replace(i[0],`status:${s}`):n+=` status:${s}`,this._updateSearchTerm(n)):0!==i.length&&(n=n.replace(i[0],""),this._updateSearchTerm(n))}_updateSearchTermForMinPostCount(){let e=this.filterBlocks(f),t=this.get("searchedTerms.min_posts"),i=this.searchTerm||"";t?(0!==e.length?i=i.replace(e[0],`min_posts:${t}`):i+=` min_posts:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForMaxPostCount(){let e=this.filterBlocks(_),t=this.get("searchedTerms.max_posts"),i=this.searchTerm||"";t?(0!==e.length?i=i.replace(e[0],`max_posts:${t}`):i+=` max_posts:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForMinViews(){let e=this.filterBlocks(y),t=this.get("searchedTerms.min_views"),i=this.searchTerm||"";t?(0!==e.length?i=i.replace(e[0],`min_views:${t}`):i+=` min_views:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTermForMaxViews(){let e=this.filterBlocks(b),t=this.get("searchedTerms.max_views"),i=this.searchTerm||"";t?(0!==e.length?i=i.replace(e[0],`max_views:${t}`):i+=` max_views:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))}_updateSearchTerm(e){this.onChangeSearchTerm(e.trim())}},[(0,r.classNames)("advanced-filters"),(0,r.attributeBindings)("expandFilters:open"),(0,r.tagName)("details")]),O=(0,s.setComponentTemplate)(c,N)},91223:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"OTcRKFmr",block:'[[[8,[39,0],null,[["@animationClass","@panelClass"],[[30,0,["animationClass"]],"search-menu-panel"]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@onClose","@inlineResults","@autofocusInput"],[[30,1],true,true]],null],[1,"\\n"]],[]]]]]],["@closeSearchMenu"],false,["menu-panel","search-menu"]]',moduleName:"discourse/components/search-menu-panel.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();get animationClass(){return this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down"}}(0,o.setComponentTemplate)(r,a)},57746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_TYPE_FILTER:()=>x,MODIFIER_REGEXP:()=>C,SEARCH_INPUT_ID:()=>S,default:()=>E,focusSearchInput:()=>A});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(83133),l=i(24571),c=i(88355),u=i(37054),d=i(90184),p=i(46301),h=i(63748),m=i(94636),g=i(98802),f=i(87353),_=i(98074);let y=(0,i(85671).createTemplateFactory)({id:"fO+S2ewF",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[4,[38,1],[[30,0,["setupEventListeners"]]],null],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n "],[10,0],[14,0,"search-input"],[12],[1,"\\n"],[41,[30,0,["search","inTopicContext"]],[[[1," "],[8,[39,4],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["xmark","search.in_this_topic","search.in_this_topic_tooltip",[30,0,["clearTopicContext"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["inPMInboxContext"]],[[[1," "],[8,[39,4],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["xmark","search.in_messages","search.in_messages_tooltip",[30,0,["clearPMInboxContext"]]]],null],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["search-menu-before-term-input",[28,[37,6],null,[["openSearchMenu"],[[30,0,["open"]]]]]]],null],[1,"\\n\\n "],[8,[39,7],null,[["@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@clearPMInboxContext","@clearTopicContext","@closeSearchMenu","@openSearchMenu","@autofocus"],[[30,0,["searchTermChanged"]],[30,0,["typeFilter"]],[30,0,["updateTypeFilter"]],[30,0,["triggerSearch"]],[30,0,["fullSearch"]],[30,0,["clearPMInboxContext"]],[30,0,["clearTopicContext"]],[30,0,["close"]],[30,0,["open"]],[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[1,[35,8]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[8,[39,5],null,[["@name"],["search-menu-before-advanced-search"]],null],[1,"\\n"],[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[39,9],null,[["@clearSearch"],[[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],null,[["@openAdvancedSearch"],[[30,0,["openAdvancedSearch"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[39,11],null,[["@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["displayMenuPanelResults"]],[[[1," "],[8,[39,12],null,[["@panelClass"],["search-menu-panel"]],[["default"],[[[[1,"\\n "],[8,[39,11],null,[["@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[13]],["@autofocusInput","@inlineResults"],false,["div","did-insert","on","if","d-button","plugin-outlet","hash","search-menu/search-term","loading-spinner","search-menu/clear-button","search-menu/advanced-button","search-menu/results","menu-panel"]]',moduleName:"discourse/components/search-menu.hbs",isStrictMode:!1});var b=i(53653);let w=/(\#[a-zA-Z0-9\-:]*)$/gi,k=/(\@[a-zA-Z0-9\-\_]*)$/gi,T=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,S="search-term",C=/.*(\#|\@|:).*$/gi,x="exclude_topics";function A(){document.getElementById(S).focus()}class E extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[a.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #u=(()=>dt7948.g(this.prototype,"inPMInboxContext",[n.tracked],function(){return this.search.searchContext?.type==="private_messages"}))();#rO=(()=>void dt7948.i(this,"inPMInboxContext"))();static #d=(()=>dt7948.g(this.prototype,"typeFilter",[n.tracked],function(){return x}))();#rL=(()=>void dt7948.i(this,"typeFilter"))();static #p=(()=>dt7948.g(this.prototype,"suggestionKeyword",[n.tracked],function(){return!1}))();#rR=(()=>void dt7948.i(this,"suggestionKeyword"))();static #h=(()=>dt7948.g(this.prototype,"suggestionResults",[n.tracked],function(){return[]}))();#rU=(()=>void dt7948.i(this,"suggestionResults"))();static #m=(()=>dt7948.g(this.prototype,"invalidTerm",[n.tracked],function(){return!1}))();#rj=(()=>void dt7948.i(this,"invalidTerm"))();static #g=(()=>dt7948.g(this.prototype,"menuPanelOpen",[n.tracked],function(){return!1}))();#rB=(()=>void dt7948.i(this,"menuPanelOpen"))();_debouncer=null;_activeSearch=null;willDestroy(){this.args.inlineResults||(document.removeEventListener("mousedown",this.onDocumentPress),document.removeEventListener("touchend",this.onDocumentPress)),super.willDestroy(...arguments)}setupEventListeners(){this.args.inlineResults||(document.addEventListener("mousedown",this.onDocumentPress),document.addEventListener("touchend",this.onDocumentPress))}static #A=(()=>dt7948.n(this.prototype,"setupEventListeners",[h.bind]))();onDocumentPress(e){this.menuPanelOpen&&(e.target.closest(".search-menu-container.menu-panel-results")||this.close())}static #E=(()=>dt7948.n(this.prototype,"onDocumentPress",[h.bind]))();get classNames(){let e=["search-menu-container"];return this.args.inlineResults||e.push("menu-panel-results"),this.loading&&e.push("loading"),e.join(" ")}get includesTopics(){return!!this.search.results?.topics?.length||this.typeFilter!==x}get searchContext(){return(!!this.search.inTopicContext||!!this.inPMInboxContext)&&this.search.searchContext}onKeydown(e){"Escape"===e.key&&this.close()}static #D=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();close(){if(this.args?.onClose)return this.args.onClose();document.getElementById(S)?.blur(),this.menuPanelOpen=!1}static #P=(()=>dt7948.n(this.prototype,"close",[r.action]))();open(){this.menuPanelOpen=!0}static #Q=(()=>dt7948.n(this.prototype,"open",[r.action]))();fullSearchUrl(e){let t="/search",i=new URLSearchParams;if(this.search.activeGlobalSearchTerm){let e=this.search.activeGlobalSearchTerm;this.searchContext?.type==="topic"?e+=` topic:${this.searchContext.id}`:this.searchContext?.type==="private_messages"&&(e+=" in:messages"),i.set("q",e)}return e?.expanded&&i.set("expanded","true"),""!==i.toString()&&(t=`${t}?${i}`),(0,m.default)(t)}static #J=(()=>dt7948.n(this.prototype,"fullSearchUrl",[h.bind]))();openAdvancedSearch(){this.fullSearch(),this.close()}static #X=(()=>dt7948.n(this.prototype,"openAdvancedSearch",[r.action]))();get displayMenuPanelResults(){return!this.args.inlineResults&&this.menuPanelOpen}clearSearch(e){e.stopPropagation(),e.preventDefault(),this.search.activeGlobalSearchTerm="",A(),this.triggerSearch()}static #Z=(()=>dt7948.n(this.prototype,"clearSearch",[h.bind]))();searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.typeFilter=t.searchTopics?null:x,t.setTopicContext&&(this.search.inTopicContext=!0),this.search.activeGlobalSearchTerm=e,this.triggerSearch()}static #ee=(()=>dt7948.n(this.prototype,"searchTermChanged",[r.action]))();fullSearch(){this.loading=!1;let e=this.fullSearchUrl();e&&f.default.routeTo(e)}static #et=(()=>dt7948.n(this.prototype,"fullSearch",[r.action]))();updateTypeFilter(e){this.typeFilter=e}static #ei=(()=>dt7948.n(this.prototype,"updateTypeFilter",[r.action]))();clearPMInboxContext(){this.inPMInboxContext=!1}static #es=(()=>dt7948.n(this.prototype,"clearPMInboxContext",[r.action]))();clearTopicContext(){this.search.inTopicContext=!1}static #en=(()=>dt7948.n(this.prototype,"clearTopicContext",[r.action]))();cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)}async perform(){this.cancel();let e=this.matchesSuggestions();if(e){if(this.search.noResults=!0,this.search.results={},this.loading=!1,this.suggestionResults=[],"category"===e.type){let t=e.categoriesMatch[0].replace("#",""),i=(0,d.search)(t,this.siteSettings);l.Promise.resolve(i).then(e=>{e!==u.CANCELLED_STATUS&&(this.suggestionResults=e,this.suggestionKeyword="#")})}else if("username"===e.type){let t=e.usernamesMatch[0].replace("@",""),i={includeGroups:!0,limit:6};t.length>0?i.term=t:i.lastSeenUsers=!0,(0,_.default)(i).then(e=>{e?.users?.length>0?(this.suggestionResults=e.users,this.suggestionKeyword="@"):(this.search.noResults=!0,this.suggestionKeyword=!1)})}else this.suggestionKeyword=e[0];return}this.suggestionKeyword=!1,this.search.activeGlobalSearchTerm?(0,g.isValidSearchTerm)(this.search.activeGlobalSearchTerm,this.siteSettings)?(this.loading=!0,this.invalidTerm=!1,this._activeSearch=(0,g.searchForTerm)(this.search.activeGlobalSearchTerm,{typeFilter:this.typeFilter,fullSearchUrl:this.fullSearchUrl,searchContext:this.searchContext}),this._activeSearch.then(e=>{e&&(this.searchContext&&this.appEvents.trigger("post-stream:refresh",{force:!0}),this.search.noResults=0===e.resultTypes.length,this.search.results=e)}).catch(c.popupAjaxError).finally(()=>{this.loading=!1})):(this.search.noResults=!0,this.search.results={},this.loading=!1,this.invalidTerm=!0):(this.search.noResults=!1,this.search.results={},this.loading=!1,this.invalidTerm=!1)}matchesSuggestions(){if(void 0===this.search.activeGlobalSearchTerm||this.includesTopics)return!1;let e=this.search.activeGlobalSearchTerm.trim(),t=e.match(w);if(t)return{type:"category",categoriesMatch:t};let i=e.match(k);if(i)return{type:"username",usernamesMatch:i};let s=e.match(T);return!!s&&s}triggerSearch(){this.search.noResults=!1,this.includesTopics?("topic"===this.search.contextType&&(this.search.highlightTerm=this.search.activeGlobalSearchTerm),this.loading=!0,(0,o.cancel)(this._debouncer),this.perform(),this.currentUser&&(0,g.updateRecentSearches)(this.currentUser,this.search.activeGlobalSearchTerm)):(this.loading=!1,this.search.inTopicContext||(this._debouncer=(0,p.default)(this,this.perform,400)))}static #er=(()=>dt7948.n(this.prototype,"triggerSearch",[r.action]))()}(0,b.setComponentTemplate)(y,E)},33304:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"UOnyf1GH",block:'[[[8,[39,0],[[24,0,"show-advanced-search"],[16,"title",[28,[37,1],["search.open_advanced"],null]]],[["@action","@icon"],[[30,1],"sliders"]],null]],["@openAdvancedSearch"],false,["d-button","i18n"]]',moduleName:"discourse/components/search-menu/advanced-button.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"advanced-button"))},83171:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(42236),r=i(843);let o=(0,i(85671).createTemplateFactory)({id:"gyzzvKtz",block:'[[[10,0],[14,0,"browser-search-tip"],[12],[1,"\\n "],[10,1],[14,0,"tip-label"],[12],[1,"\\n "],[1,[30,0,["translatedLabel"]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"tip-description"],[12],[1,"\\n "],[1,[28,[35,2],["search.browser_tip_description"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n"]]',moduleName:"discourse/components/search-menu/browser-search-tip.hbs",isStrictMode:!1});var a=i(53653);class l extends s.default{get translatedLabel(){return(0,r.i18n)("search.browser_tip",{modifier:(0,n.translateModKey)("Meta+")})}}(0,a.setComponentTemplate)(o,l)},11112:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"xM57exZR",block:'[[[11,3],[24,0,"clear-search"],[24,"aria-label","clear_input"],[16,"title",[28,[37,1],["search.clear_search"],null]],[24,6,""],[4,[38,2],["click",[30,1]],null],[12],[1,"\\n "],[1,[28,[35,3],["xmark"],null]],[1,"\\n"],[13]],["@clearSearch"],false,["a","i18n","on","d-icon"]]',moduleName:"discourse/components/search-menu/clear-button.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"clear-button"))},23691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(35533),r=i(83133),o=i(79297);let a=(0,i(85671).createTemplateFactory)({id:"x+bwCp2+",block:'[[[11,1],[4,[38,1],[[30,0,["highlight"]]],null],[12],[1,"\\n "],[1,[28,[35,2],[[30,1]],null]],[1,"\\n"],[13]],["@string"],false,["span","did-insert","html-safe"]]',moduleName:"discourse/components/search-menu/highlighted-search.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tB=(()=>void dt7948.i(this,"search"))();highlight(e){(0,o.default)(e,this.search.activeGlobalSearchTerm)}static #i=(()=>dt7948.n(this.prototype,"highlight",[n.action]))()}(0,l.setComponentTemplate)(a,c)},81702:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(52629),l=i(10593),c=i(99918),u=i(97994),d=i(84642),p=i(28350);let h=(0,i(85671).createTemplateFactory)({id:"I8YC75Gw",block:'[[[41,[28,[37,1],[[30,0,["search","inTopicContext"]],[28,[37,2],[[30,1]],null]],null],[[[1," "],[8,[39,3],null,null,null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"results"],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-results-top",[28,[37,7],null,[["closeSearchMenu","searchTerm","inTopicContext","searchTopics"],[[30,2],[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","inTopicContext"]],[30,1]]]]]],null],[1,"\\n"],[41,[30,3],[[[1," "],[8,[39,8],null,[["@suggestionKeyword","@results","@closeSearchMenu","@searchTermChanged"],[[30,3],[30,4],[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[30,0,["termTooShort"]],[[[1," "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,9],["search.too_short"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noTopicResults"]],[[[1," "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,9],["search.no_results"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renderInitialOptions"]],[[[1," "],[8,[39,10],null,[["@closeSearchMenu","@searchTermChanged"],[[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,1]],null],[28,[37,2],[[30,6]],null]],null],[[[1," "],[8,[39,10],null,[["@closeSearchMenu","@searchTermChanged"],[[30,2],[30,5]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,1],[30,0,["resultTypesWithComponent"]]],null],[[[1," "],[8,[39,11],null,[["@resultTypes","@topicResultsOnly","@closeSearchMenu","@searchLogId"],[[30,0,["resultTypesWithComponent"]],true,[30,2],[30,0,["searchLogId"]]]],null],[1,"\\n "],[8,[39,12],null,[["@updateTypeFilter","@triggerSearch","@resultTypes","@closeSearchMenu","@searchTermChanged"],[[30,7],[30,8],[30,0,["resultTypesWithComponent"]],[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,6]],null],[28,[37,2],[[30,1]],null],[30,0,["resultTypesWithComponent"]]],null],[[[1," "],[8,[39,11],null,[["@resultTypes","@closeSearchMenu","@searchTermChanged","@displayNameWithUser","@searchLogId"],[[30,0,["resultTypesWithComponent"]],[30,2],[30,5],true,[30,0,["searchLogId"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-with-results-bottom",[28,[37,7],null,[["resultTypes"],[[30,0,["resultTypesWithComponent"]]]]]]],null],[1,"\\n "]],[]]]],[]]]],[]]]],[]]],[1," "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-results-bottom",[28,[37,7],null,[["inTopicContext","searchTermChanged","searchTopics","closeSearchMenu"],[[30,0,["search","inTopicContext"]],[30,5],[30,1],[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],["@searchTopics","@closeSearchMenu","@suggestionKeyword","@suggestionResults","@searchTermChanged","@inPMInboxContext","@updateTypeFilter","@triggerSearch"],false,["if","and","not","search-menu/browser-search-tip","conditional-loading-section","div","plugin-outlet","hash","search-menu/results/assistant","i18n","search-menu/results/initial-options","search-menu/results/types","search-menu/results/more-link"]]',moduleName:"discourse/components/search-menu/results.hbs",isStrictMode:!1});var m=i(53653);let g={"search-result-category":a.default,"search-result-topic":d.default,"search-result-post":c.default,"search-result-user":p.default,"search-result-tag":u.default,"search-result-group":l.default};class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"searchTopics",[n.tracked],function(){return this.args.searchTopics}))();#r$=(()=>void dt7948.i(this,"searchTopics"))();get renderInitialOptions(){return!this.search.activeGlobalSearchTerm&&!this.args.inPMInboxContext}get noTopicResults(){return this.args.searchTopics&&this.search.noResults}get termTooShort(){return this.args.searchTopics&&this.args.invalidTerm}get resultTypesWithComponent(){let e=[];return this.search.results.resultTypes?.map(t=>{e.push({...t,component:g[t.componentName]})}),e}get searchLogId(){return this.search.results.grouped_search_result?.search_log_id}updateSearchTopics(e){this.searchTopics=e}static #s=(()=>dt7948.n(this.prototype,"updateSearchTopics",[r.action]))()}(0,m.setComponentTemplate)(h,f)},64685:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addItemSelectCallback:()=>p,default:()=>m,resetItemSelectCallbacks:()=>h});var s=i(80989),n=i(35533),r=i(83133),o=i(57746),a=i(63748),l=i(94636);let c=(0,i(85671).createTemplateFactory)({id:"bSskH0rn",block:'[[[11,"li"],[16,0,[28,[37,1],[[30,1],"search-menu-assistant-item"],null]],[16,"data-usage",[30,2]],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[4,[38,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n "],[10,3],[14,0,"search-link"],[15,6,[30,0,["href"]]],[12],[1,"\\n "],[10,1],[15,"aria-label",[28,[37,5],["search.title"],null]],[12],[1,"\\n "],[1,[28,[35,6],[[28,[37,7],[[30,3],"magnifying-glass"],null]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["prefix"]],[[[1," "],[10,1],[14,0,"search-item-prefix"],[12],[1,"\\n "],[1,[30,0,["prefix"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"label-suffix"],[12],[1,[28,[35,5],["search.in"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[39,9],null,[["@result"],[[30,5]]],null],[1,"\\n"],[41,[28,[37,10],[[30,6],[30,7]],null],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n "],[1,[28,[35,6],["tag"],null]],[1,[30,6]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,6],[[[41,[28,[37,10],[[30,7],[30,8,["length"]]],null],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,[30,0,["tagsSlug"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n "],[8,[39,11],null,[["@result"],[[30,6]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,9],[[[1," "],[10,1],[14,0,"search-item-user"],[12],[1,"\\n "],[8,[39,12],null,[["@result"],[[30,9]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n "],[10,1],[14,0,"search-item-slug"],[12],[1,"\\n"],[41,[30,10],[[[1," "],[10,1],[14,0,"label-suffix"],[12],[1,[30,10]],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,11]],[1,"\\n "],[13],[1,"\\n"],[41,[30,12],[[[1," "],[10,1],[14,0,"extra-hint"],[12],[1,"\\n "],[1,[28,[35,5],["search.enter_hint"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@typeClass","@usage","@icon","@withInLabel","@category","@tag","@isIntersection","@additionalTags","@user","@suffix","@label","@extraHint"],false,["li","concat-class","on","a","span","i18n","d-icon","or","if","search-menu/results/type/category","and","search-menu/results/type/tag","search-menu/results/type/user"]]',moduleName:"discourse/components/search-menu/results/assistant-item.hbs",isStrictMode:!1});var u=i(53653);let d=[];function p(e){d.push(e)}function h(){d.length=0}class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();icon=(()=>this.args.icon||"magnifying-glass")();get href(){let e="#";return this.args.category?(e=this.args.category.url,this.args.tags&&this.args.isIntersection&&(e=(0,l.default)(`/tag/${this.args.tag}`))):this.args.tags&&this.args.isIntersection&&this.args.additionalTags?.length&&(e=(0,l.default)(`/tag/${this.args.tag}`)),e}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.search.activeGlobalSearchTerm?.split(this.args.suggestionKeyword)[0].trim()||"").length&&(e=`${e} `):e=this.search.activeGlobalSearchTerm,e}get tagsSlug(){if(this.args.tag&&this.args.additionalTags)return`tags:${[this.args.tag,...this.args.additionalTags].join("+")}`}onKeydown(e){"Tab"!==e.key&&("Enter"===e.key&&this.itemSelected(),("ArrowUp"===e.key||"ArrowDown"===e.key)&&this.search.handleArrowUpOrDown(e))}static #s=(()=>dt7948.n(this.prototype,"onKeydown",[n.action]))();onClick(e){return this.itemSelected(),e.preventDefault(),!1}static #l=(()=>dt7948.n(this.prototype,"onClick",[n.action]))();itemSelected(){let e="";e=this.args.slug&&(this.args.suggestionKeyword||this.args.concatSlug)?this.prefix.concat(this.args.slug):this.prefix.trim();let t=this.search.searchContext?.type==="topic",i=!t||this.search.activeGlobalSearchTerm;(!d.length||d.some(t=>t({updatedTerm:e,searchTermChanged:this.args.searchTermChanged,usage:this.args.usage})))&&(this.args.searchTermChanged(e,{searchTopics:i,...t&&!this.args.searchAllTopics&&{setTopicContext:!0}}),(0,o.focusSearchInput)())}static #c=(()=>dt7948.n(this.prototype,"itemSelected",[(0,a.debounce)(100)]))()}(0,u.setComponentTemplate)(c,m)},3506:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addSearchSuggestion:()=>u,default:()=>c});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"GqflZbbU",block:'[[[10,"ul"],[14,0,"search-menu-assistant"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["suggestionType"]],"tagIntersection"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-tag-intersection-top"]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[1," "],[8,[39,6],null,[["@tag","@additionalTags","@category","@slug","@withInLabel","@isIntersection","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,2,["tagName"]],[30,2,["additionalTags"]],[30,2,["category"]],[30,3],[30,4],true,true,[30,5],[30,6],"tag-intersection"]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[28,[37,2],[[30,0,["suggestionType"]],"categoryOrTag"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-category-or-tag-top"]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[41,[30,7,["model"]],[[[1," "],[8,[39,6],null,[["@category","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["model"]],[28,[37,7],[[30,0,["fullSlugForCategoryMap"]],[30,7,["model","id"]]],null],[30,4],true,[30,5],[30,6],"category"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,6],null,[["@tag","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["name"]],[28,[37,8],[[30,0,["prefix"]],"#",[30,7,["name"]]],null],[30,4],true,[30,5],[30,6],"tag"]],null],[1,"\\n"]],[]]]],[7]],null]],[]],[[[41,[28,[37,2],[[30,0,["suggestionType"]],"user"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-user-top"]],null],[1,"\\n"],[41,[30,0,["userMatchesInTopic"]],[[[1," "],[8,[39,6],null,[["@extraHint","@user","@slug","@suffix","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[true,[30,0,["user"]],[28,[37,8],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,9],["search.in_topics_posts"],null],true,[30,5],[30,6],"user"]],null],[1,"\\n\\n "],[8,[39,6],null,[["@user","@slug","@suffix","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,0,["user"]],[28,[37,8],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,9],["search.in_this_topic"],null],[30,5],[30,6],"user"]],null],[1,"\\n"]],[]],[[[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[1," "],[8,[39,6],null,[["@user","@slug","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,8],[28,[37,8],[[30,0,["prefix"]],"@",[30,8,["username"]]],null],true,[30,5],[30,6],"user"]],null],[1,"\\n"]],[8]],null]],[]]]],[]],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["search-menu-results-assistant-shortcut-top",[28,[37,10],null,[["suggestionShortcuts"],[[30,0,["suggestionShortcuts"]]]]]]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["suggestionShortcuts"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@slug","@label","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[28,[37,8],[[30,0,["prefix"]],[30,9]],null],[30,9],true,[30,5],[30,6],"shortcut"]],null],[1,"\\n"]],[9]],null],[1," "]],[]]]],[]]]],[]]],[1," "],[8,[39,3],null,[["@name"],["search-menu-assistant-bottom"]],null],[1,"\\n"],[13]],["@results","result","@slug","@withInLabel","@searchTermChanged","@suggestionKeyword","result","result","item"],false,["ul","if","eq","plugin-outlet","each","-track-array","search-menu/results/assistant-item","get","concat","i18n","hash"]]',moduleName:"discourse/components/search-menu/results/assistant.hbs",isStrictMode:!1});var o=i(53653);let a=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],l={"+":"tagIntersection","#":"categoryOrTag","@":"user"};class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"search",[n.service]))();#tB=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.currentUser&&(u("in:likes"),u("in:bookmarks"),u("in:mine"),u("in:messages"),u("in:seen"),u("in:tracking"),u("in:unseen"),u("in:watching")),this.siteSettings.tagging_enabled&&(u("in:tagged"),u("in:untagged"))}get suggestionShortcuts(){let e=this.search.activeGlobalSearchTerm.split(" ").slice(-1);return a.filter(t=>t.includes(e)).slice(0,8)}get userMatchesInTopic(){return 1===this.args.results.length&&this.router.currentRouteName.startsWith("topic.")}get suggestionType(){switch(this.args.suggestionKeyword){case"+":case"#":case"@":return l[this.args.suggestionKeyword]}}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.args.slug?.split(this.args.suggestionKeyword)[0].trim()||"").length&&(e=`${e} `):this.args.results.forEach(t=>{(e=t.additionalTags?this.args.slug?.split(" ").slice(0,-1).join(" ").trim()||"":this.args.slug?.split("#")[0].trim()||"").length&&(e=`${e} `)}),e}get fullSlugForCategoryMap(){let e={};return this.args.results.forEach(t=>{if(t.model){let i=t.model.parentCategory?`#${t.model.parentCategory.slug}:${t.model.slug}`:`#${t.model.slug}`;e[t.model.id]=`${this.prefix}${i}`}}),e}get user(){return this.args.results[0]}}function u(e){a.includes(e)||a.push(e)}(0,o.setComponentTemplate)(r,c)},45503:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"r679hh9L",block:'[[[10,1],[14,0,"blurb"],[12],[1,"\\n "],[1,[28,[35,1],[[30,1,["created_at"]]],null]],[1,"\\n "],[10,1],[14,0,"blurb__separator"],[12],[1," - "],[13],[1,"\\n"],[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1," "],[10,1],[12],[1,[28,[35,3],[[30,1,["blurb"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"blurb__text"],[12],[1,"\\n "],[8,[39,4],null,[["@string"],[[30,1,["blurb"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["@result"],false,["span","format-age","if","html-safe","search-menu/highlighted-search"]]',moduleName:"discourse/components/search-menu/results/blurb.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},14492:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(83133),r=i(57746),o=i(843),a=i(3506),l=i(64685);let c=(0,i(85671).createTemplateFactory)({id:"q+5CB0xM",block:'[[[10,"ul"],[14,0,"search-menu-initial-options"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["search-menu-initial-options",[28,[37,2],null,[["termMatchesContextTypeKeyword","contextTypeComponent","slug","suggestionKeyword","results","withInLabel","suffix","label","closeSearchMenu","searchTermChanged"],[[30,0,["termMatchesContextTypeKeyword"]],[30,0,["contextTypeComponent"]],[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["termMatchesContextTypeKeyword"]],[[[1," "],[8,[39,4],null,[["@slug","@extraHint","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["slug"]],true,[30,1],[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,5],[[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","searchContext"]]],null],[[[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[39,4],null,[["@suffix","@closeSearchMenu","@searchAllTopics","@extraHint","@searchTermChanged","@suggestionKeyword"],[[28,[37,6],["search.in_topics_posts"],null],[30,1],true,true,[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","searchContext"]],[[[1," "],[8,[30,0,["contextTypeComponent"]],null,[["@slug","@suggestionKeyword","@results","@withInLabel","@suffix","@label","@closeSearchMenu","@searchTermChanged"],[[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]],null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]],[30,0,["displayInitialOptions"]]],null],[[[1," "],[8,[39,8],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],[[[1," "],[8,[39,9],null,[["@searchTermChanged"],[[30,2]]],null],[1,"\\n"],[41,[28,[37,7],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]]],null],[[[1," "],[8,[39,8],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n"],[13]],["@closeSearchMenu","@searchTermChanged"],false,["ul","plugin-outlet","hash","if","search-menu/results/assistant-item","or","i18n","and","search-menu/results/recent-searches","search-menu/results/random-quick-tip"]]',moduleName:"discourse/components/search-menu/results/initial-options.hbs",isStrictMode:!1});var u=i(53653);let d={topic:l.default,private_messages:l.default,category:a.default,tag:a.default,tagIntersection:a.default,user:l.default},p=["topic","category","tag","tagIntersection","user"];class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[n.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){super(...arguments),(this.search.activeGlobalSearchTerm||this.search.searchContext)&&this.search.searchContext&&(this.contextTypeComponent=d[this.search.searchContext.type],this.setAttributesForSearchContextType(this.search.searchContext.type))}get termMatchesContextTypeKeyword(){return this.search.activeGlobalSearchTerm?.match(r.MODIFIER_REGEXP)}get displayInitialOptions(){return!this.search.activeGlobalSearchTerm&&p.includes(this.search.searchContext?.type)}setAttributesForSearchContextType(e){switch(e){case"topic":this.topicContextType();break;case"private_messages":this.privateMessageContextType();break;case"category":this.categoryContextType();break;case"tag":this.tagContextType();break;case"tagIntersection":this.tagIntersectionContextType();break;case"user":this.userContextType()}}topicContextType(){this.suffix=(0,o.i18n)("search.in_this_topic")}privateMessageContextType(){this.slug="in:messages",this.label="in:messages"}categoryContextType(){let e=this.search.searchContext.category,t=e.parentCategory?`#${e.parentCategory.slug}:${e.slug}`:`#${e.slug}`;this.slug=t,this.contextTypeKeyword="#",this.initialResults=[{model:this.search.searchContext.category}],this.withInLabel=!0}tagContextType(){this.slug=`#${this.search.searchContext.name}`,this.contextTypeKeyword="#",this.initialResults=[{name:this.search.searchContext.name}],this.withInLabel=!0}tagIntersectionContextType(){let e;let t=this.search.searchContext;if(t.additionalTags){let i=[t.tagId,...t.additionalTags];e=`tags:${i.join("+")}`}else e=`#${t.tagId}`;let i={tagName:t.tagId,additionalTags:t.additionalTags};if(t.category){let s=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`;i.categoryName=s,i.category=t.category,e+=` ${s}`}this.slug=e,this.contextTypeKeyword="+",this.initialResults=[i],this.withInLabel=!0}userContextType(){this.contextTypeKeyword="@",this.slug=`@${this.search.searchContext.user.username}`,this.suffix=(0,o.i18n)("search.in_posts_by",{username:this.search.searchContext.user.username})}}(0,u.setComponentTemplate)(c,h)},8912:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(35533),r=i(83133),o=i(87353);let a=(0,i(85671).createTemplateFactory)({id:"nUqYjIXV",block:'[[[41,[30,0,["topicResults"]],[[[1," "],[11,0],[24,0,"search-menu__show-more"],[4,[38,2],["keyup",[30,0,["onKeyup"]]],null],[12],[1,"\\n"],[41,[30,0,["moreUrl"]],[[[1," "],[11,3],[16,6,[30,0,["moreUrl"]]],[24,0,"filter search-link"],[4,[38,2],["click",[30,0,["transitionToMoreUrl"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["more"],null]],[1,"...\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicResults","more"]],[[[1," "],[11,3],[24,0,"filter search-link"],[4,[38,2],["click",[28,[37,5],[[30,0,["moreOfType"]],[30,0,["topicResults","type"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,4],["more"],null]],[1,"...\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","on","a","i18n","fn"]]',moduleName:"discourse/components/search-menu/results/more-link.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tB=(()=>void dt7948.i(this,"search"))();get topicResults(){return this.args.resultTypes.filter(e=>"topic"===e.type)[0]}get moreUrl(){return this.topicResults.moreUrl&&this.topicResults.moreUrl()}transitionToMoreUrl(e){return e.preventDefault(),this.args.closeSearchMenu(),o.default.routeTo(this.moreUrl),!1}static #i=(()=>dt7948.n(this.prototype,"transitionToMoreUrl",[n.action]))();moreOfType(e){this.args.updateTypeFilter(e),this.args.triggerSearch(),this.args.closeSearchMenu()}static #s=(()=>dt7948.n(this.prototype,"moreOfType",[n.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #l=(()=>dt7948.n(this.prototype,"onKeyup",[n.action]))()}(0,l.setComponentTemplate)(a,c)},47488:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addQuickSearchRandomTip:()=>p,default:()=>g,removeDefaultQuickSearchRandomTips:()=>m,resetQuickSearchRandomTips:()=>h});var s=i(80989),n=i(35533),r=i(83133),o=i(57746),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"fRtXjUg8",block:'[[[10,"li"],[14,0,"search-random-quick-tip"],[12],[1,"\\n "],[11,"button"],[16,0,[28,[37,2],["tip-label",[52,[30,0,["randomTip","clickable"]],"tip-clickable"]],null]],[24,"aria-describedby","tip-description"],[4,[38,4],["click",[30,0,["tipSelected"]]],null],[12],[1,"\\n "],[1,[30,0,["randomTip","label"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,1,"tip-description"],[12],[1,"\\n "],[1,[30,0,["randomTip","description"]]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["li","button","concat-class","if","on","span"]]',moduleName:"discourse/components/search-menu/results/random-quick-tip.hbs",isStrictMode:!1});var c=i(53653);let u=[{label:"#",description:(0,a.i18n)("search.tips.category_tag"),clickable:!0},{label:"@",description:(0,a.i18n)("search.tips.author"),clickable:!0},{label:"in:",description:(0,a.i18n)("search.tips.in"),clickable:!0},{label:"status:",description:(0,a.i18n)("search.tips.status"),clickable:!0},{label:(0,a.i18n)("search.tips.full_search_key",{modifier:"Ctrl"}),description:(0,a.i18n)("search.tips.full_search")},{label:"@me",description:(0,a.i18n)("search.tips.me")}],d=[];function p(e){d.includes(e)||d.push(e)}function h(){d=[].concat(u)}function m(){d=d.filter(e=>!u.includes(e))}h();class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tB=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.randomTip=d[Math.floor(Math.random()*d.length)]}tipSelected(e){e.target.classList.contains("tip-clickable")&&(this.args.searchTermChanged(this.randomTip.label),(0,o.focusSearchInput)(),e.stopPropagation(),e.preventDefault())}static #i=(()=>dt7948.n(this.prototype,"tipSelected",[n.action]))()}(0,c.setComponentTemplate)(l,g)},16391:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(35533),r=i(83133),o=i(59864);let a=(0,i(85671).createTemplateFactory)({id:"uaSh6zpz",block:'[[[41,[30,0,["currentUser","recent_searches"]],[[[1," "],[10,0],[14,0,"search-menu-recent"],[12],[1,"\\n "],[10,0],[14,0,"heading"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[35,3],["search.recent"],null]],[13],[1,"\\n "],[8,[39,4],[[24,0,"clear-recent-searches"]],[["@title","@icon","@action"],["search.clear_recent","xmark",[30,0,["clearRecent"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["currentUser","recent_searches"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@icon","@label","@slug","@closeSearchMenu","@searchTermChanged","@usage","@concatSlug"],["clock-rotate-left",[30,1],[30,1],[30,2],[30,3],"recent-search",true]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null]],["slug","@closeSearchMenu","@searchTermChanged"],false,["if","div","h4","i18n","flat-button","each","-track-array","search-menu/results/assistant-item"]]',moduleName:"discourse/components/search-menu/results/recent-searches.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();constructor(){super(...arguments),this.currentUser&&this.siteSettings.log_search_queries&&!this.currentUser.recent_searches?.length&&this.loadRecentSearches()}async clearRecent(){(await o.default.resetRecentSearches()).success&&this.currentUser.recent_searches.clear()}static #s=(()=>dt7948.n(this.prototype,"clearRecent",[n.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #l=(()=>dt7948.n(this.prototype,"onKeyup",[n.action]))();async loadRecentSearches(){let e=await o.default.loadRecentSearches();e.success&&e.recent_searches?.length&&this.currentUser.set("recent_searches",e.recent_searches)}}(0,l.setComponentTemplate)(a,c)},52629:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"aSaxH6Gy",block:'[[[1,[28,[35,0],[[30,1]],[["link","allowUncategorized"],[false,true]]]]],["@result"],false,["category-link"]]',moduleName:"discourse/components/search-menu/results/type/category.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"category"))},10593:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"welNWeeS",block:'[[[10,0],[15,0,[29,["group-result ",[52,[30,1,["flairUrl"]],"--with-flair"]]]],[12],[1,"\\n"],[41,[30,1,["flairUrl"]],[[[1," "],[8,[39,2],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor","@class"],[[30,1,["name"]],[30,1,["flairUrl"]],[30,1,["flairBgColor"]],[30,1,["flairColor"]],"avatar-flair__wrapper"]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["users"],null]],[1,"\\n"]],[]]],[1," "],[10,0],[15,0,[29,["group-names ",[52,[30,1,["fullName"]],"--group-with-slug"]]]],[12],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,[28,[35,5],[[30,1,["fullName"]],[30,1,["name"]]],null]],[13],[1,"\\n"],[41,[30,1,["fullName"]],[[[1," "],[10,0],[14,0,"slug"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@result"],false,["div","if","avatar-flair","d-icon","span","or"]]',moduleName:"discourse/components/search-menu/results/type/group.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"group"))},99918:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"b0ku8qNe",block:'[[[1,[28,[35,0],["search.post_format",[30,1]],null]],[1,"\\n"],[8,[39,1],null,[["@result"],[[30,1]]],null]],["@result"],false,["i18n","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/post.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"post"))},97994:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Ygddpubc",block:'[[[1,[28,[35,0],["tag"],null]],[1,"\\n"],[1,[28,[35,1],[[28,[37,2],[[30,1,["id"]],[30,1]],null]],[["tagName"],["span"]]]]],["@result"],false,["d-icon","discourse-tag","or"]]',moduleName:"discourse/components/search-menu/results/type/tag.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"tag"))},84642:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(83133);let r=(0,i(85671).createTemplateFactory)({id:"jTPwFLfA",block:'[[[10,1],[14,0,"topic"],[12],[1,"\\n "],[10,1],[14,0,"first-line"],[12],[1,"\\n "],[8,[39,1],null,[["@topic","@disableActions","@context"],[[30,1,["topic"]],true,"topic-view-title"]],null],[1,"\\n "],[10,1],[14,0,"topic-title"],[15,"data-topic-id",[30,1,["topic","id"]]],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[30,1,["topic_title_headline"]]],null],[[[1," "],[10,3],[15,6,[52,[30,2],[30,1,["url"]]]],[12],[1,"\\n "],[1,[28,[35,5],[[28,[37,6],[[30,1,["topic_title_headline"]]],null]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[52,[30,2],[30,1,["url"]]]],[12],[1,"\\n "],[8,[39,7],null,[["@string"],[[30,1,["topic","fancyTitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[8,[39,8],null,[["@name","@outletArgs"],["search-menu-results-topic-title-suffix",[28,[37,9],null,[["topic"],[[30,1,["topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"second-line"],[12],[1,"\\n "],[1,[28,[35,10],[[30,1,["topic","category"]]],[["link"],[[52,[30,2],true,false]]]]],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[1,[28,[35,11],[[30,1,["topic"]]],[["tagName"],["span"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,12],null,[["@result"],[[30,1]]],null]],["@result","@withTopicUrl"],false,["span","topic-status","if","and","a","replace-emoji","html-safe","search-menu/highlighted-search","plugin-outlet","hash","category-link","discourse-tags","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/topic.hbs",isStrictMode:!1});var o=i(53653);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))()}(0,o.setComponentTemplate)(r,a)},28350:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Q7KtOk/J",block:'[[[1,[28,[35,0],[[30,1]],[["imageSize","template","username"],["small",[30,1,["avatar_template"]],[30,1,["username"]]]]]],[1,"\\n"],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[28,[37,3],[[30,2],[30,1,["name"]]],null],[[[1," "],[10,1],[14,0,"name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"username"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["username"]]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["custom_data"]],[[[42,[28,[37,7],[[28,[37,7],[[30,1,["custom_data"]]],null]],null],null,[[[1," "],[10,1],[14,0,"custom-field"],[12],[1,[30,3,["name"]]],[1,": "],[1,[30,3,["value"]]],[13],[1,"\\n"]],[3]],null]],[]],null],[13]],["@result","@displayNameWithUser","row"],false,["avatar","div","if","and","span","format-username","each","-track-array"]]',moduleName:"discourse/components/search-menu/results/type/user.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"user"))},66674:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(35533),r=i(83133),o=i(97015),a=i(98802),l=i(87353);let c=(0,i(85671).createTemplateFactory)({id:"tBFei9eJ",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["filteredResultTypes"]]],null]],null],null,[[[1," "],[10,0],[15,0,[30,1,["componentName"]]],[12],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["search-menu-results-type-top",[28,[37,4],null,[["resultType"],[[30,1]]]]]],null],[1,"\\n "],[10,"ul"],[14,0,"list"],[15,"aria-label",[28,[37,6],[[28,[37,7],["search.results"],null]," ",[30,1,["type"]]],null]],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["results"]]],null]],null],null,[[[1," "],[11,"li"],[24,0,"item"],[4,[38,9],["keydown",[28,[37,10],[[30,0,["onKeydown"]],[28,[37,4],null,[["resultType","result"],[[30,1],[30,2]]]]],null]],null],[12],[1,"\\n "],[11,3],[16,6,[28,[37,12],[[30,2,["url"]],[30,2,["path"]]],null]],[24,0,"search-link"],[4,[38,9],["click",[28,[37,10],[[30,0,["onClick"]],[28,[37,4],null,[["resultType","result"],[[30,1],[30,2]]]]],null]],null],[12],[1,"\\n "],[8,[30,1,["component"]],null,[["@result","@displayNameWithUser"],[[30,2],[30,3]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],["resultType","result","@displayNameWithUser"],false,["each","-track-array","div","plugin-outlet","hash","ul","concat","i18n","li","on","fn","a","or"]]',moduleName:"discourse/components/search-menu/results/types.hbs",isStrictMode:!1});var u=i(53653);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tB=(()=>void dt7948.i(this,"search"))();get filteredResultTypes(){return this.args.topicResultsOnly?this.args.resultTypes.filter(e=>"topic"===e.type):this.args.resultTypes.filter(e=>"topic"!==e.type)}onClick(e,t){let{resultType:i,result:s}=e;(0,a.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:s.id,searchResultType:i.type}),(0,o.wantsNewWindow)(t)||(t.preventDefault(),this.routeToSearchResult(t.currentTarget.href))}static #i=(()=>dt7948.n(this.prototype,"onClick",[n.action]))();onKeydown(e,t){let{resultType:i,result:s}=e;return"Escape"===t.key?(this.args.closeSearchMenu(),t.preventDefault(),!1):"Enter"===t.key?(t.preventDefault(),t.stopPropagation(),(0,a.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:s.id,searchResultType:i.type}),this.routeToSearchResult(t.target.href),!1):void(this.search.handleResultInsertion(t),this.search.handleArrowUpOrDown(t))}static #s=(()=>dt7948.n(this.prototype,"onKeydown",[n.action]))();routeToSearchResult(e){l.default.routeTo(e),this.args.closeSearchMenu()}static #l=(()=>dt7948.n(this.prototype,"routeToSearchResult",[n.action]))()}(0,u.setComponentTemplate)(c,d)},37437:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addOnKeyUpCallback:()=>p,default:()=>m,resetOnKeyUpCallbacks:()=>h});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(57746),l=i(42236);let c=(0,i(85671).createTemplateFactory)({id:"ic+QQ8d3",block:'[[[11,"input"],[16,1,[30,0,["inputId"]]],[24,"autocomplete","off"],[16,2,[30,0,["search","activeGlobalSearchTerm"]]],[16,"placeholder",[28,[37,1],["search.title"],null]],[16,"aria-label",[28,[37,1],["search.title"],null]],[24,4,"search"],[4,[38,2],["keyup",[30,0,["onKeyup"]]],null],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[4,[38,2],["input",[30,0,["updateSearchTerm"]]],null],[4,[38,2],["focus",[30,1]],null],[4,[38,3],[[30,0,["focus"]]],null],[12],[13]],["@openSearchMenu"],false,["input","i18n","on","did-insert"]]',moduleName:"discourse/components/search-menu/search-term.hbs",isStrictMode:!1});var u=i(53653);let d=[];function p(e){d.push(e)}function h(){d.clear()}class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tB=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #s=(()=>dt7948.g(this.prototype,"lastEnterTimestamp",[n.tracked],function(){return null}))();#rq=(()=>void dt7948.i(this,"lastEnterTimestamp"))();static #l=(()=>dt7948.g(this.prototype,"searchCleared",[n.tracked],function(){return!this.search.activeGlobalSearchTerm}))();#rV=(()=>void dt7948.i(this,"searchCleared"))();get inputId(){return a.SEARCH_INPUT_ID}updateSearchTerm(e){this.parseAndUpdateSearchTerm(this.search.activeGlobalSearchTerm,e.target.value),this.searchCleared=!this.search.activeGlobalSearchTerm}static #c=(()=>dt7948.n(this.prototype,"updateSearchTerm",[r.action]))();focus(e){this.args.autofocus&&(e.focus(),e.select())}static #u=(()=>dt7948.n(this.prototype,"focus",[r.action]))();onKeydown(e){"Escape"===e.key&&(this.args.closeSearchMenu(),e.preventDefault(),e.stopPropagation())}static #d=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();onKeyup(e){if(!d.length||d.some(t=>t(this,e))){if(this.args.openSearchMenu(),this.search.handleArrowUpOrDown(e),"Enter"===e.key){let t=this.lastEnterTimestamp&&Date.now()-this.lastEnterTimestamp<15e3;e.ctrlKey||e.metaKey||(0,l.isiPad)()&&e.altKey||this.args.typeFilter!==a.DEFAULT_TYPE_FILTER&&t?(this.args.fullSearch(),this.args.closeSearchMenu()):(this.args.updateTypeFilter(null),this.args.triggerSearch()),this.lastEnterTimestamp=Date.now()}"Backspace"!==e.key||e.target.value||(this.searchCleared&&(this.args.clearTopicContext(),this.args.clearPMInboxContext(),this.focus(e.target)),this.searchCleared=!0),e.preventDefault()}}static #p=(()=>dt7948.n(this.prototype,"onKeyup",[r.action]))();parseAndUpdateSearchTerm(e,t){let i=t.replace(/[\u200B-\u200D\uFEFF]/,"");i!==e&&this.args.searchTermChanged(i)}}(0,u.setComponentTemplate)(c,m)},56208:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"csK2xg1R",block:'[[[10,0],[14,0,"fps-result-entries"],[14,"role","list"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["posts"]]],null]],null],null,[[[1," "],[8,[39,3],null,[["@post","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["searchLogId"]]]],null],[1,"\\n"]],[1]],null],[13]],["post"],false,["div","each","-track-array","search-result-entry"]]',moduleName:"discourse/components/search-result-entries.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.tagName)("")]),a=(0,s.setComponentTemplate)(r,o)},3314:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(35533),r=i(53397),o=i(97015),a=i(98802);let l=(0,i(85671).createTemplateFactory)({id:"x87hNw2M",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-results-topic-avatar-wrapper",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"author"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["post","userPath"]]],[15,"data-user-card",[30,0,["post","username"]]],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["post"]]],[["imageSize"],["large"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"fps-topic"],[15,"data-topic-id",[30,0,["post","topic","id"]]],[12],[1,"\\n "],[10,0],[14,0,"topic"],[12],[1,"\\n\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[8,[39,6],[[24,0,"bulk-select"]],[["@selectedList","@selectedId"],[[30,0,["selected"]],[30,0,["post","topic"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[16,6,[30,0,["post","url"]]],[16,0,[29,["search-link",[52,[30,0,["post","topic","visited"]]," visited"]]]],[24,"role","heading"],[24,"aria-level","2"],[4,[38,7],["click",[28,[37,8],[[30,0,["logClick"]],[30,0,["post","topic_id"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,9],["topic-status"],[["topic","showPrivateMessageIcon"],[[30,0,["post","topic"]],true]]]],[1,"\\n "],[10,1],[14,0,"topic-title"],[12],[1,"\\n"],[41,[30,0,["post","useTopicTitleHeadline"]],[[[1," "],[1,[28,[35,11],[[30,0,["post","topicTitleHeadline"]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,11],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-results-topic-title-suffix",[28,[37,1],null,[["topic"],[[30,0,["post","topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,0,["post","topic","category","parentCategory"]],[[[1," "],[1,[28,[35,13],[[30,0,["post","topic","category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,13],[[30,0,["post","topic","category"]]],[["hideParent"],[true]]]],[1,"\\n"],[41,[30,0,["post","topic"]],[[[1," "],[1,[28,[35,14],[[30,0,["post","topic"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-category","div",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-result-entry-blurb-wrapper",[28,[37,1],null,[["post","logClick"],[[30,0,["post"]],[30,0,["logClick"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"blurb container"],[12],[1,"\\n "],[10,1],[14,0,"date"],[12],[1,"\\n "],[1,[28,[35,15],[[30,0,["post","created_at"]]],[["format"],["tiny"]]]],[1,"\\n"],[41,[30,0,["post","blurb"]],[[[1," "],[10,1],[14,0,"separator"],[12],[1,"-"],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["post","blurb"]],[[[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1," "],[1,[28,[35,11],[[30,0,["post","blurb"]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,11],[[30,0,["post","blurb"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-result-entry-stats-wrapper",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showLikeCount"]],[[[41,[30,0,["post","like_count"]],[[[1," "],[10,1],[14,0,"like-count"],[12],[1,"\\n "],[10,1],[14,0,"value"],[12],[1,[30,0,["post","like_count"]]],[13],[1,"\\n "],[1,[28,[35,16],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,0],null,[["@name"],["after-search-result-entry"]],null]],[],false,["plugin-outlet","hash","div","a","avatar","if","track-selected","on","fn","raw","span","html-safe","highlight-search","category-link","discourse-tags","format-date","d-icon"]]',moduleName:"discourse/components/search-result-entry.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{role="listitem";logClick(e,t){!(0,o.wantsNewWindow)(t)&&this.searchLogId&&e&&(0,a.logSearchLinkClick)({searchLogId:this.searchLogId,searchResultId:e,searchResultType:"topic"})}static #e=(()=>dt7948.n(this.prototype,"logClick",[n.action]))()},[(0,r.attributeBindings)("role"),(0,r.classNameBindings)("bulkSelectEnabled"),(0,r.classNames)("fps-result"),(0,r.tagName)("div")]),u=(0,s.setComponentTemplate)(l,c)},64756:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(42064),n=i(25124),r=i.n(n),o=i(39131),a=i(63748),l=i(98802),c=i(843);class u extends o.default{autocomplete="off";placeholder(e){return e?"":(0,c.i18n)("search.full_page_title")}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,a.default)("searchService.searchContextEnabled")]))();becomeFocused(){let e=r()(this.element);(0,l.applySearchAutocomplete)(e,this.siteSettings),this.hasAutofocus&&(r()(window).scrollTop(0),e.focus())}static #i=(()=>dt7948.n(this.prototype,"becomeFocused",[(0,s.on)("didInsertElement")]))()}},70876:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(35533),r=i(63748),o=i(59864),a=i(843);let l=(0,i(85671).createTemplateFactory)({id:"XtYuB5jE",block:'[[[10,0],[14,1,"second-factor"],[12],[1,"\\n "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n\\n"],[41,[30,0,["optionalText"]],[[[1," "],[10,2],[12],[1,[28,[35,4],[[30,0,["optionalText"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,2],[14,0,"second-factor__description"],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n\\n "],[18,1,null],[1,"\\n\\n"],[41,[30,0,["showToggleMethodLink"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,7],["click",[30,0,["toggleSecondFactorMethod"]]],null],[12],[1,[28,[35,8],[[30,0,["linkText"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["&default"],false,["div","h3","if","p","html-safe","yield","a","on","i18n"]]',moduleName:"discourse/components/second-factor-form.hbs",isStrictMode:!1});class c extends s.default{secondFactorTitle(e){switch(e){case o.SECOND_FACTOR_METHODS.TOTP:case o.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,a.i18n)("login.second_factor_title");case o.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,a.i18n)("login.second_factor_backup_title")}}static #e=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,r.default)("secondFactorMethod")]))();secondFactorDescription(e){switch(e){case o.SECOND_FACTOR_METHODS.TOTP:return(0,a.i18n)("login.second_factor_description");case o.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,a.i18n)("login.security_key_description");case o.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,a.i18n)("login.second_factor_backup_description")}}static #i=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,r.default)("secondFactorMethod")]))();linkText(e,t){return t?e===o.SECOND_FACTOR_METHODS.TOTP?"login.second_factor_backup":"login.second_factor":e===o.SECOND_FACTOR_METHODS.TOTP?"user.second_factor_backup.use":"user.second_factor.use"}static #s=(()=>dt7948.n(this.prototype,"linkText",[(0,r.default)("secondFactorMethod","isLogin")]))();showToggleMethodLink(e,t,i){return e&&t&&i!==o.SECOND_FACTOR_METHODS.SECURITY_KEY}static #l=(()=>dt7948.n(this.prototype,"showToggleMethodLink",[(0,r.default)("backupEnabled","totpEnabled","secondFactorMethod")]))();toggleSecondFactorMethod(e){e?.preventDefault();let t=this.secondFactorMethod;this.set("secondFactorToken",""),t===o.SECOND_FACTOR_METHODS.TOTP?this.set("secondFactorMethod",o.SECOND_FACTOR_METHODS.BACKUP_CODE):this.set("secondFactorMethod",o.SECOND_FACTOR_METHODS.TOTP)}static #c=(()=>dt7948.n(this.prototype,"toggleSecondFactorMethod",[n.action]))()}(0,s.setComponentTemplate)(l,c)},58388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(18387),r=i(59864),o=i(53653),a=i(85671);class l extends s.default{_focusInput(e){e.focus()}get isTotp(){return this.args.secondFactorMethod===r.SECOND_FACTOR_METHODS.TOTP}get isBackupCode(){return this.args.secondFactorMethod===r.SECOND_FACTOR_METHODS.BACKUP_CODE}get type(){return this.isTotp?"tel":this.isBackupCode?"text":void 0}get pattern(){return this.isTotp?"[0-9]{6}":this.isBackupCode?"[a-z0-9]{16}":void 0}get maxlength(){return this.isTotp?"6":this.isBackupCode?"32":void 0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"IzpPqvOP",block:'[[[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,"pattern",[30,0,["pattern"]]],[16,"maxlength",[30,0,["maxlength"]]],[24,"autocomplete","one-time-code"],[24,"autocapitalize","off"],[24,"autocorrect","off"],[24,"autofocus","autofocus"],[24,0,"second-factor-token-input"],[17,1],[4,[32,0],[[30,0,["_focusInput"]]],null],[12],[13],[1,"\\n "]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/second-factor-input.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},96035:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")}),e.push({id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}),e}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){switch(e){case"edit":this.editSecurityKey(this.securityKey);break;case"disable":this.disableSingleSecondFactor(this.securityKey)}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("security-key-dropdown")])},640:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(99615),r=i(35533),o=i(18638),a=i(59864),l=i(843),c=i(53653),u=i(85671);class d extends s.default{useAnotherMethod(e){e.preventDefault(),this.args.setShowSecurityKey?.(!1),this.args.setShowSecondFactor?.(!0),this.args.totpEnabled?this.args.setSecondFactorMethod?.(a.SECOND_FACTOR_METHODS.TOTP):this.args.backupEnabled&&this.args.setSecondFactorMethod?.(a.SECOND_FACTOR_METHODS.BACKUP_CODE)}static #e=(()=>dt7948.n(this.prototype,"useAnotherMethod",[r.action]))();static #i=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"YeYNXmBM",block:'[[[1,"\\n "],[10,0],[14,1,"security-key"],[12],[1,"\\n "],[8,[32,0],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,1],"key","login.security_key_authenticate"]],null],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2],[[[1," "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[32,1],["click",[30,0,["useAnotherMethod"]]],null],[12],[1,[28,[32,2],["login.security_key_alternative"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@action","@otherMethodAllowed"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/security-key-form.js",scope:()=>[o.default,n.on,l.i18n],isStrictMode:!0}),this))()}},70283:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"JQF/mCQj",block:'[[[10,2],[12],[1,"\\n "],[8,[39,1],null,[["@key","@count"],["topic.multi_select.description",[30,0,["selectedPostsCount"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSelectAll"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,0,"select-all"],[24,6,""],[4,[38,4],["click",[30,0,["selectAll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.select_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeselectAll"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,4],["click",[30,0,["deselectAll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.deselect_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteSelected"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteSelected"]],"trash-can","topic.multi_select.delete"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergeTopic"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary move-to-topic"]],[["@action","@icon","@label"],[[28,[37,7],["moveToTopic"],null],"right-from-bracket","topic.move_to.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeOwner"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,7],["changeOwner"],null],"user","topic.change_owner.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergePosts"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["mergePosts"]],"up-down","topic.merge_posts.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[14,0,"cancel"],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,4],["click",[30,0,["toggleMultiSelect"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.cancel"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["p","count-i18n","if","a","on","i18n","d-button","route-action"]]',moduleName:"discourse/components/selected-posts.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},34088:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(30574),o=i(75983),a=i(63748),l=i(53306),c=i(47960),u=i(42236),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"oSdlXMpo",block:'[[[10,0],[14,0,"header"],[12],[1,"\\n "],[10,"h3"],[14,0,"title"],[12],[1,[28,[35,2],[[30,0,["shareTitle"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"body"],[12],[1,"\\n "],[8,[39,3],[[24,0,"topic-share-url"]],[["@value","@aria-label"],[[30,0,["shareUrl"]],[28,[37,4],["share.url"],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["sources"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@source","@action"],[[30,1],[30,0,["share"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"],[13]],["source"],false,["div","h3","html-safe","d-textarea","i18n","each","-track-array","share-source"]]',moduleName:"discourse/components/share-panel.hbs",isStrictMode:!1});class h extends s.default{tagName=null;static #e=(()=>dt7948.g(this.prototype,"type",[(0,r.alias)("panel.model.type")]))();#rH=(()=>void dt7948.i(this,"type"))();static #i=(()=>dt7948.g(this.prototype,"topic",[(0,r.alias)("panel.model.topic")]))();#U=(()=>void dt7948.i(this,"topic"))();static #s=(()=>dt7948.g(this.prototype,"privateCategory",[(0,r.alias)("panel.model.topic.category.read_restricted")]))();#rz=(()=>void dt7948.i(this,"privateCategory"))();sources(e){let t=this.siteSettings.login_required||e&&e.isPrivateMessage||e&&e.invisible||this.privateCategory;return c.default.activeSources(this.siteSettings.share_links,t)}static #l=(()=>dt7948.n(this.prototype,"sources",[(0,a.default)("topic.{isPrivateMessage,invisible,category}")]))();shareTitle(e,t){return t=(0,u.escapeExpression)(t),(0,d.i18n)("share.topic_html",{topicTitle:t})}static #c=(()=>dt7948.n(this.prototype,"shareTitle",[(0,a.default)("type","topic.title")]))();shareUrl(e,t){if(t=e||t,!(0,o.isEmpty)(t)){if(t.startsWith("/")){let e=window.location;t=`${e.protocol}//${e.host}${t}`}return encodeURI(t)}}static #u=(()=>dt7948.n(this.prototype,"shareUrl",[(0,a.default)("panel.model.shareUrl","topic.shareUrl")]))();didInsertElement(){super.didInsertElement(...arguments),(0,l.default)(()=>{if(this.element){let e=this.element.querySelector(".topic-share-url");e.style.height=e.scrollHeight+"px",e.focus(),e.setSelectionRange(0,this.shareUrl.length)}},200)}share(e){c.default.shareSource(e,{url:this.shareUrl,title:this.topic.get("title")})}static #d=(()=>dt7948.n(this.prototype,"share",[n.action]))()}(0,s.setComponentTemplate)(p,h)},13342:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(75446),n=i(81329),r=i(18638),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"sNmo5jn3",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[29,["btn-default share-",[30,1,["id"]]]]],[17,2]],[["@action","@translatedTitle","@icon"],[[28,[32,1],[[30,3],[30,1]],null],[30,1,["title"]],[28,[32,2],[[30,1,["icon"]],[30,1,["htmlIcon"]]],null]]],null],[1,"\\n"]],["@source","&attrs","@action"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/share-source.js",scope:()=>[r.default,s.fn,n.or],isStrictMode:!0}),(0,l.default)(void 0,"share-source:ShareSource"))},23817:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(83133),o=i(53397),a=i(63748),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"+AjCK17v",block:'[[[10,0],[14,0,"shared-draft-controls"],[12],[1,"\\n"],[41,[30,0,["publishing"]],[[[1," "],[1,[28,[35,2],["shared_drafts.publishing"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["shared_drafts.notice"],null]],[1,"\\n\\n "],[10,0],[14,0,"publish-field"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["shared_drafts.destination_category"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@value","@onChange"],[[30,0,["topic","destination_category_id"]],[28,[37,5],[[30,0],"updateDestinationCategory"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"publish-field"],[12],[1,"\\n"],[41,[30,0,["validCategory"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary publish-shared-draft"]],[["@action","@label","@icon"],[[28,[37,5],[[30,0],"publish"],null],"shared_drafts.publish","far-clipboard"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","i18n","label","category-chooser","action","d-button"]]',moduleName:"discourse/components/shared-draft-controls.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();publishing=!1;validCategory(e){return e&&e!==this.site.shared_drafts_category_id}static #i=(()=>dt7948.n(this.prototype,"validCategory",[(0,a.default)("topic.destination_category_id")]))();updateDestinationCategory(e){return this.topic.updateDestinationCategory(e)}static #s=(()=>dt7948.n(this.prototype,"updateDestinationCategory",[n.action]))();publish(){this.dialog.yesNoConfirm({message:(0,l.i18n)("shared_drafts.confirm_publish"),didConfirm:()=>{this.set("publishing",!0);let e=this.topic.destination_category_id;return this.topic.publish().then(()=>{this.topic.setProperties({category_id:e,destination_category_id:void 0,is_shared_draft:!1})}).finally(()=>{this.set("publishing",!1)})}})}static #l=(()=>dt7948.n(this.prototype,"publish",[n.action]))()},[(0,o.tagName)("")]),d=(0,s.setComponentTemplate)(c,u)},81898:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"zwbGssr+",block:'[[[1,[28,[35,0],["has-sidebar-page"],null]],[1,"\\n\\n"],[10,"section"],[14,1,"d-sidebar"],[14,0,"sidebar-container"],[12],[1,"\\n"],[41,[30,0,["showSwitchPanelButtonsOnTop"]],[[[1," "],[8,[39,3],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],null,[["@name"],["before-sidebar-sections"]],null],[1,"\\n\\n"],[41,[30,0,["sidebarState","showMainPanel"]],[[[1," "],[8,[39,5],null,[["@currentUser","@collapsableSections","@panel"],[[30,0,["currentUser"]],true,[30,0,["sidebarState","currentPanel"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,6],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],true]],null],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,4],null,[["@name"],["after-sidebar-sections"]],null],[1,"\\n\\n"],[41,[51,[30,0,["showSwitchPanelButtonsOnTop"]]],[[[1," "],[8,[39,3],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,8],null,null,null],[1,"\\n"],[13]],[],false,["body-class","section","if","sidebar/switch-panel-buttons","plugin-outlet","sidebar/sections","sidebar/api-panels","unless","sidebar/footer"]]',moduleName:"discourse/components/sidebar.hbs",isStrictMode:!1});var a=i(53653);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"sidebarState",[n.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();constructor(){super(...arguments),this.site.mobileView&&document.addEventListener("click",this.collapseSidebar)}willDestroy(){super.willDestroy(...arguments),this.site.mobileView&&document.removeEventListener("click",this.collapseSidebar)}get showSwitchPanelButtonsOnTop(){return"top"===this.siteSettings.default_sidebar_switch_panel_position}get switchPanelButtons(){return this.sidebarState.displaySwitchPanelButtons&&1!==this.sidebarState.panels.length&&this.currentUser?this.sidebarState.panels.filter(e=>e!==this.sidebarState.currentPanel&&!e.hidden):[]}collapseSidebar(e){let t=!1,i=e.composedPath().some(e=>e?.className!=="sidebar-section-header-caret"&&["A","BUTTON"].includes(e.nodeName)?(t=!0,!0):e.className&&"sidebar-wrapper"===e.className);(t||!i)&&this.args.toggleSidebar()}static #u=(()=>dt7948.n(this.prototype,"collapseSidebar",[r.bind]))()}(0,a.setComponentTemplate)(o,l)},99668:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(1559),n=i(843),r=i(12661),o=i(24202),a=i(27197),l=i(4818),c=i(53653),u=i(85671);class d extends o.default{shouldSortCategoriesByDefault=(()=>!!this.siteSettings.default_navigation_menu_categories)();get categories(){return this.siteSettings.default_navigation_menu_categories?s.default.findByIds(this.siteSettings.default_navigation_menu_categories.split("|").map(e=>parseInt(e,10))):this.topSiteCategories}static #e=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"KOlCCP5R",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@collapsable"],["categories",[28,[32,1],["sidebar.sections.categories.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,2],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@title","@content","@currentWhen","@model","@prefixType","@prefixValue","@prefixColor"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,3],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/categories-section.js",scope:()=>[a.default,n.i18n,l.default,r.default],isStrictMode:!0}),this))()}},56554:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(32432);class n extends s.default{anonymous=!0}},23982:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(99668),o=i(56554),a=i(8221),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"MWT3mgET",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-sections sidebar-sections-anonymous"],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable","@toggleNavigationMenu"],[[30,1],[30,2]]],null],[1,"\\n "],[8,[32,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[8,[32,2],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@collapsableSections","@toggleNavigationMenu"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/sections.js",scope:()=>[o.default,r.default,a.default],isStrictMode:!0}),this))()}},8221:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989);i(8554);var n=i(83133),r=i(96498),o=i(843),a=i(99598),l=i(27197),c=i(4818),u=i(53653),d=i(85671);let p=(0,i(38168).A)(i(8554)).cached;class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();static #s=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();get displaySection(){return this.site.anonymous_default_navigation_menu_tags?.length>0||this.site.navigation_menu_site_top_tags?.length>0}get sectionLinks(){return(this.site.anonymous_default_navigation_menu_tags||this.site.navigation_menu_site_top_tags).map(e=>new r.default({tag:e,topicTrackingState:this.topicTrackingState}))}static #l=(()=>dt7948.n(this.prototype,"sectionLinks",[p]))();static #c=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"O+dMf9tZ",block:'[[[1,"\\n"],[41,[30,0,["displaySection"]],[[[1," "],[8,[32,0],null,[["@sectionName","@headerLinkText","@collapsable"],["tags",[28,[32,1],["sidebar.sections.tags.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,2],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@content","@title","@currentWhen","@prefixType","@prefixValue","@prefixColor","@models"],[[30,2,["route"]],[30,2,["text"]],[30,2,["title"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["models"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,3],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@collapsable","sectionLink"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/tags-section.js",scope:()=>[l.default,o.i18n,c.default,a.default],isStrictMode:!0}),this))()}},29524:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(31243),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[n.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get panelCssClass(){return`${this.sidebarState.currentPanel.key}-panel`}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"gOOLDH59",block:'[[[1,"\\n "],[10,0],[15,0,[29,["sidebar-sections ",[30,0,["panelCssClass"]]]]],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable","@expandActiveSection","@scrollActiveLinkIntoView"],[[30,1],[30,0,["sidebarState","currentPanel","expandActiveSection"]],[30,0,["sidebarState","currentPanel","scrollActiveLinkIntoView"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@collapsableSections"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-panels.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},4164:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(81329),n=i(27197),r=i(4818),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"sw6z55S9",block:'[[[1,"\\n"],[41,[30,1,["filtered"]],[[[1," "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerLinkTitle","@headerActionsIcon","@headerActions","@willDestroy","@collapsable","@displaySection","@hideSectionHeader","@collapsedByDefault","@activeLink","@expandWhenActive","@scrollActiveLinkIntoView"],[[30,1,["name"]],[30,1,["text"]],[30,1,["title"]],[30,1,["actionsIcon"]],[30,1,["actions"]],[30,1,["willDestroy"]],[30,2],[30,1,["displaySection"]],[30,1,["hideSectionHeader"]],[30,1,["collapsedByDefault"]],[30,1,["activeLink"]],[30,3],[30,4]]],[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["filteredLinks"]]],null]],null],"name",[[[1," "],[8,[32,1],null,[["@linkName","@linkClass","@route","@model","@query","@models","@currentWhen","@href","@title","@contentCSSClass","@prefixColor","@prefixBadge","@prefixType","@prefixValue","@prefixCSSClass","@suffixType","@suffixValue","@suffixCSSClass","@hoverType","@hoverValue","@hoverAction","@hoverTitle","@didInsert","@willDestroy","@content","@contentComponent","@scrollIntoView"],[[30,5,["name"]],[30,5,["classNames"]],[30,5,["route"]],[30,5,["model"]],[30,5,["query"]],[30,5,["models"]],[30,5,["currentWhen"]],[30,5,["href"]],[30,5,["title"]],[30,5,["contentCSSClass"]],[30,5,["prefixColor"]],[30,5,["prefixBadge"]],[30,5,["prefixType"]],[30,5,["prefixValue"]],[30,5,["prefixCSSClass"]],[30,5,["suffixType"]],[30,5,["suffixValue"]],[30,5,["suffixCSSClass"]],[30,5,["hoverType"]],[30,5,["hoverValue"]],[30,5,["hoverAction"]],[30,5,["hoverTitle"]],[30,5,["didInsert"]],[30,5,["willDestroy"]],[30,5,["text"]],[50,[30,5,["contentComponent"]],0,null,[["status"],[[30,5,["contentComponentArgs"]]]]],[28,[32,2],[[30,4],[28,[32,3],[[30,5,["name"]],[30,1,["activeLink","name"]]],null]],null]]],null],[1,"\\n"]],[5]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null]],["@section","@collapsable","@expandWhenActive","@scrollActiveLinkIntoView","link"],false,["if","each","-track-array","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-section.js",scope:()=>[n.default,r.default,s.and,s.eq],isStrictMode:!0}),(0,l.default)(void 0,"api-section:SidebarApiSection"))},31243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989);i(8554);var n=i(31049),r=i(83133),o=i(4164),a=i(74460),l=i(53653),c=i(85671);let u=(0,i(38168).A)(i(8554)).cached;class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get sections(){return(this.sidebarState.combinedMode?this.sidebarState.panels.filter(e=>!e.hidden).flatMap(e=>e.sections):this.sidebarState.currentPanel.sections).map(e=>{let t=new(function(e,t){return class extends e{constructor(e){let{filterable:t,sidebarState:i}=e;super(),this.filterable=t,this.sidebarState=i}get filteredLinks(){return!this.filterable||!this.sidebarState.filter||this.text?.toLowerCase()?.match(this.sidebarState.sanitizedFilter)?this.links:this.links.filter(e=>e.text.toString().toLowerCase().match(this.sidebarState.sanitizedFilter)||e.keywords.navigation.some(e=>e.match(this.sidebarState.sanitizedFilter)))}static #e=(()=>dt7948.n(this.prototype,"filteredLinks",[u]))();get activeLink(){return this.filteredLinks.find(e=>{try{let i;let s=e.currentWhen;if("boolean"==typeof s)return s;let n=e.query||{};if(i=e.model?[e.model]:e.models?e.models:[],"string"==typeof s)return s.split(" ").some(e=>t.isActive(e,...i,{queryParams:n}));return t.isActive(e.route,...i,{queryParams:n})}catch{return!1}})}get filtered(){return!this.filterable||this.filteredLinks?.length>0}}}(e,this.router))({filterable:!this.sidebarState.combinedMode&&this.sidebarState.currentPanel.filterable,sidebarState:this.sidebarState});return(0,n.setOwner)(t,(0,n.getOwner)(this)),t})}get filteredSections(){return this.sections.filter(e=>e.filtered)}static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"iChWNeI/",block:'[[[1,"\\n "],[8,[32,0],null,[["@sections"],[[30,0,["filteredSections"]]]],null],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["filteredSections"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@section","@collapsable","@expandWhenActive","@scrollActiveLinkIntoView"],[[30,1],[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[1]],null],[1," "]],["section","@collapsable","@expandActiveSection","@scrollActiveLinkIntoView"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-sections.js",scope:()=>[a.default,o.default],isStrictMode:!0}),this))()}},80385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(72738),n=i(94636),r=i(843),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"BbX5RHmp",block:'[[[1,"\\n "],[10,3],[15,6,[28,[32,0],["/"],null]],[14,0,"sidebar-sections__back-to-forum"],[12],[1,"\\n "],[1,[28,[32,1],["arrow-left"],null]],[1,"\\n\\n "],[10,1],[12],[1,[28,[32,2],["sidebar.back_to_forum"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/back-to-forum.js",scope:()=>[n.default,s.default,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,"back-to-forum:BackToForum"))},12661:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(843),n=i(4818),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"YWEH8fqk",block:'[[[1,"\\n "],[8,[32,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-categories",[28,[32,1],["sidebar.all_categories"],null],"discovery.categories","icon","sidebar.all_categories"]],null],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/all-categories-section-link.js",scope:()=>[n.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"all-categories-section-link:SidebarCommonAllCategoriesSectionLink"))},99598:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(843),n=i(4818),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ifEa62Ex",block:'[[[1,"\\n "],[8,[32,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-tags",[28,[32,1],["sidebar.all_tags"],null],"tags","icon","list"]],null],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/all-tags-section-link.js",scope:()=>[n.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"all-tags-section-link:SidebarCommonAllTagsSectionLink"))},24202:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TOP_SITE_CATEGORIES_TO_SHOW:()=>c,default:()=>u});var s=i(80989);i(8554);var n=i(83133),r=i(54634),o=i(97351),a=i(1559);let l=(0,i(38168).A)(i(8554)).cached,c=5;class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();shouldSortCategoriesByDefault=!0;get categories(){}get topSiteCategories(){return this.site.categoriesList.filter(e=>!e.parent_category_id&&(0,r.canDisplayCategory)(e.id,this.siteSettings)).slice(0,c)}get sortedCategories(){if(!this.shouldSortCategoriesByDefault)return this.categories;let e=[...this.site.categories];this.siteSettings.fixed_category_positions||e.sort((e,t)=>e.name.localeCompare(t.name));let t=this.categories.map(e=>e.id);return a.default.sortCategories(e).reduce((e,i)=>(t.includes(i.id)&&(0,r.canDisplayCategory)(i.id,this.siteSettings)&&e.push(i),e),[])}get sectionLinks(){return this.sortedCategories.map(e=>new o.default({category:e,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}))}static #l=(()=>dt7948.n(this.prototype,"sectionLinks",[l]))()}},2725:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(8554),r=i(31049),o=i(83133),a=i(81329),l=i(46153),c=i(80158),u=i(61316),d=i(47150),p=i(96860),h=i(35507),m=i(27197),g=i(4818),f=i(68767),_=i(53653),y=i(85671);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"navigationMenu",[o.service]))();#rW=(()=>void dt7948.i(this,"navigationMenu"))();static #s=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"section",[n.tracked],function(){return this.initialSection}))();#rK=(()=>void dt7948.i(this,"section"))();willDestroy(){super.willDestroy(),this.section.teardown?.()}get initialSection(){let e={section:this.args.sectionData,owner:(0,r.getOwner)(this)};return"community"!==this.args.sectionData.section_type?new u.default(e):this.currentUser?.admin?new d.default(e):new c.default(e)}static #u=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"YHv9LBR6",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,0,["section","dragCss"]]]],[["@sectionName","@headerLinkText","@indicatePublic","@collapsable","@headerActions","@headerActionsIcon","@hideSectionHeader"],[[30,0,["section","slug"]],[30,0,["section","decoratedTitle"]],[30,0,["section","indicatePublic"]],[30,1],[30,0,["section","headerActions"]],[30,0,["section","headerActionIcon"]],[30,0,["section","hideSectionHeader"]]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["section","links"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@badgeText","@content","@currentWhen","@href","@linkClass","@linkName","@model","@models","@prefixType","@prefixValue","@query","@route","@shouldDisplay","@suffixCSSClass","@suffixType","@suffixValue","@title"],[[30,2,["badgeText"]],[28,[32,2],[[30,2,["text"]]],null],[30,2,["currentWhen"]],[28,[32,3],[[30,2,["value"]],[30,2,["href"]]],null],[30,2,["linkDragCss"]],[30,2,["name"]],[30,2,["model"]],[30,2,["models"]],"icon",[30,2,["prefixValue"]],[30,2,["query"]],[30,2,["route"]],[30,2,["shouldDisplay"]],[30,2,["suffixCSSClass"]],[30,2,["suffixType"]],[30,2,["suffixValue"]],[30,2,["title"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["section","moreLinks"]],[[[41,[30,0,["navigationMenu","isDesktopDropdownMode"]],[[[42,[28,[31,1],[[28,[31,1],[[30,0,["section","moreLinks"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@sectionLink"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["section","moreSectionButtonAction"]],[[[1," "],[8,[32,5],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[32,6],null,[["@sectionLinks","@moreButtonAction","@moreButtonText","@moreButtonIcon","@toggleNavigationMenu"],[[30,0,["section","moreLinks"]],[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonText"]],[30,0,["section","moreSectionButtonIcon"]],[30,4]]],null],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["section","moreSectionButtonAction"]],[[[1," "],[8,[32,5],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","link","sectionLink","@toggleNavigationMenu"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/custom-section.js",scope:()=>[m.default,g.default,l.default,a.or,p.default,f.default,h.default],isStrictMode:!0}),this))()}},32432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(2725),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();static #u=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();anonymous=!1;get sections(){return this.anonymous?this.site.anonymous_sidebar_sections:this.currentUser.sidebarSections}static #p=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"OV58iLbc",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-custom-sections"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sections"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@sectionData","@collapsable","@toggleNavigationMenu"],[[30,1],[30,2],[30,3]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["section","@collapsable","@toggleNavigationMenu"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/custom-sections.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},88034:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>D});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18387),c=i(83133),u=i(57222),d=i(81329),p=i(18638),h=i(53297),m=i(27988),g=i(26438),f=i(10650),_=i(43006),y=i(88355),b=i(46301),w=i(77093),k=i(1559),T=i(843),S=i(53653),C=i(85671);class x{constructor(e){this.perform=e,this.processing=!1,this.queued=!1}async trigger(){if(this.queued=!0,!this.processing){for(this.processing=!0;this.queued;)this.queued=!1,await this.perform();this.processing=!1}}}function A(e,t,i){let s=i.value;return i.value=function(){this[`_${t}_serializer`]||=new x(()=>s.apply(this)),this[`_${t}_serializer`].trigger()},i}function E(e){let t=new Map(e.map(e=>[e.id,e])),i=new Map,s=new Map,n=new Map;for(let t of e.slice().reverse()){let e=i.get(t.parent_category_id)||0;i.set(t.parent_category_id,e+1);let n=s.get(t.parent_category_id)||0;s.set(t.parent_category_id,n+(s.get(t.id)||0)+1)}for(let[e,r]of i)5===r&&t.has(e)&&n.set(e,{level:t.get(e).level+1,offset:s.get(e)});return n}class D extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"initialLoad",[n.tracked],function(){return!0}))();#sU=(()=>void dt7948.i(this,"initialLoad"))();static #c=(()=>dt7948.g(this.prototype,"fetchedCategoriesGroupings",[n.tracked],function(){return[]}))();#rY=(()=>void dt7948.i(this,"fetchedCategoriesGroupings"))();static #u=(()=>dt7948.g(this.prototype,"selectedCategoryIds",[n.tracked],function(){return new u.TrackedSet([...this.currentUser.sidebar_category_ids])}))();#rQ=(()=>void dt7948.i(this,"selectedCategoryIds"))();selectedFilter="";selectedMode="everything";loadedFilter;loadedMode;loadedPage;saving=!1;loadAnotherPage=!1;unseenCategoryIdsChanged=!1;observer=(()=>new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(this.observer.disconnect(),this.loadMore())},{threshold:1}))();constructor(){super(...arguments),this.subcategoryLoadList=[],this.performSearch()}recomputeGroupings(){let e=this.fetchedCategories.flatMap((e,t)=>{let i=[{type:"category",category:e}],s=e.id,n=e.parent_category_id,r=this.fetchedCategories[t+1]?.parent_category_id;if(r!==n&&r!==s&&this.partialCategoryInfos.has(n)){let{level:e,offset:t}=this.partialCategoryInfos.get(n);i.push({type:"show-more",id:n,level:e,offset:t})}return i},[]);this.fetchedCategoriesGroupings=function(e,t){return e.reduce((e,i,s)=>((0===s||t(i))&&e.push([]),e[e.length-1].push(i),e),[])}(e,e=>"category"===e.type&&void 0===e.category.parent_category_id)}setFetchedCategories(e){this.fetchedCategories=e,this.partialCategoryInfos=E(e),this.recomputeGroupings()}concatFetchedCategories(e){if(this.fetchedCategories=this.fetchedCategories.concat(e),void 0!==e[0].parent_category_id){let t=this.fetchedCategories.findLastIndex(e=>void 0===e.parent_category_id);e=[...this.fetchedCategories.slice(t),...e]}this.partialCategoryInfos=new Map([...this.partialCategoryInfos,...E(e)]),this.recomputeGroupings()}substituteInFetchedCategories(e,t,i){if(this.partialCategoryInfos.delete(e),this.recomputeGroupings(),0!==t.length){let s=this.fetchedCategories.findLastIndex(t=>t.parent_category_id===e)+1;this.fetchedCategories=[...this.fetchedCategories.slice(0,s),...t,...this.fetchedCategories.slice(s)],this.partialCategoryInfos=new Map([...this.partialCategoryInfos,...E(t)]),this.partialCategoryInfos.set(e,{offset:i+t.length}),this.recomputeGroupings()}}didInsert(e){this.observer.disconnect(),this.observer.observe(e)}static #d=(()=>dt7948.n(this.prototype,"didInsert",[a.action]))();searchOpts(){let e=this.selectedMode,t=[...this.selectedCategoryIds],i={includeUncategorized:!1};return"only-selected"===e?i.only=t:"only-unselected"===e&&(i.except=t),i}async performSearch(){let e=this.selectedFilter,t=this.selectedMode,i=this.unseenCategoryIdsChanged&&"everything"!==t;if(e!==this.loadedFilter||t!==this.loadedMode||i){let i=[...this.selectedCategoryIds];this.unseenCategoryIdsChanged=!1,this.setFetchedCategories(await k.default.asyncHierarchicalSearch(e,this.searchOpts())),this.loadedFilter=e,this.loadedMode=t,this.loadedCategoryIds=i,this.loadedPage=1,this.lastPage=!1,this.initialLoad=!1,this.loadAnotherPage=!1}else if(this.loadAnotherPage&&!this.lastPage){let t=this.loadedPage+1,i={page:t,...this.searchOpts()},s=await k.default.asyncHierarchicalSearch(e,i);0===s.length?this.lastPage=!0:this.concatFetchedCategories(s),this.loadAnotherPage=!1,this.loadedPage=t}else if(0!==this.subcategoryLoadList.length){let{id:t,offset:i}=this.subcategoryLoadList.shift(),s={parentCategoryId:t,offset:i,...this.searchOpts()},n=await k.default.asyncHierarchicalSearch(e,s);this.substituteInFetchedCategories(t,n,i)}}static #p=(()=>dt7948.n(this.prototype,"performSearch",[A]))();async loadMore(){this.loadAnotherPage=!0,this.debouncedSendRequest()}async loadSubcategories(e,t){this.subcategoryLoadList.push({id:e,offset:t}),this.debouncedSendRequest()}static #h=(()=>dt7948.n(this.prototype,"loadSubcategories",[a.action]))();debouncedSendRequest(){(0,b.default)(this,this.performSearch,w.INPUT_DELAY)}resetFilter(){this.selectedMode="everything",this.debouncedSendRequest()}static #m=(()=>dt7948.n(this.prototype,"resetFilter",[a.action]))();filterSelected(){this.selectedMode="only-selected",this.debouncedSendRequest()}static #g=(()=>dt7948.n(this.prototype,"filterSelected",[a.action]))();filterUnselected(){this.selectedMode="only-unselected",this.debouncedSendRequest()}static #A=(()=>dt7948.n(this.prototype,"filterUnselected",[a.action]))();onFilterInput(e){this.selectedFilter=e.toLowerCase().trim(),this.debouncedSendRequest()}static #E=(()=>dt7948.n(this.prototype,"onFilterInput",[a.action]))();deselectAll(){this.selectedCategoryIds.clear(),this.unseenCategoryIdsChanged=!0,this.debouncedSendRequest()}static #D=(()=>dt7948.n(this.prototype,"deselectAll",[a.action]))();toggleCategory(e){this.selectedCategoryIds.has(e)?this.selectedCategoryIds.delete(e):this.selectedCategoryIds.add(e)}static #P=(()=>dt7948.n(this.prototype,"toggleCategory",[a.action]))();resetToDefaults(){this.selectedCategoryIds=new u.TrackedSet(this.siteSettings.default_navigation_menu_categories.split("|").map(e=>parseInt(e,10))),this.unseenCategoryIdsChanged=!0,this.debouncedSendRequest()}static #Q=(()=>dt7948.n(this.prototype,"resetToDefaults",[a.action]))();async save(){this.saving=!0;let e=this.currentUser.sidebar_category_ids;this.currentUser.set("sidebar_category_ids",[...this.selectedCategoryIds]);try{await this.currentUser.save(["sidebar_category_ids"]),this.args.closeModal()}catch(t){this.currentUser.set("sidebar_category_ids",e),(0,y.popupAjaxError)(t)}finally{this.saving=!1}}static #J=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #X=(()=>(0,S.setComponentTemplate)((0,C.createTemplateFactory)({id:"4fKLTp+Q",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__categories-modal"]],[["@title","@disableSaveButton","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal"],["sidebar.categories_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[32,1],[[30,0,["siteSettings","default_navigation_menu_categories","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[32,2],["sidebar.categories_form_modal.subtitle.text"],null],[28,[32,2],["sidebar.categories_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1]]],[["default"],[[[[1,"\\n "],[10,"form"],[14,0,"sidebar-categories-form"],[12],[1,"\\n"],[41,[30,0,["initialLoad"]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__loading"],[12],[1,"\\n "],[1,[28,[32,3],null,[["size"],["small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["fetchedCategoriesGroupings"]]],null]],null],null,[[[1," "],[10,0],[15,5,[28,[32,4],[[28,[32,5],[[30,2],"0.category.color"],null],"left"],null]],[14,0,"sidebar-categories-form__row"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[41,[28,[32,6],[[30,3,["type"]],"category"],null],[[[1," "],[11,0],[16,"data-category-id",[30,3,["category","id"]]],[16,"data-category-level",[30,3,["category","level"]]],[24,0,"sidebar-categories-form__category-row"],[4,[32,7],[[30,0,["didInsert"]]],null],[12],[1,"\\n "],[10,"label"],[15,"for",[28,[32,8],["sidebar-categories-form__input--",[30,3,["category","id"]]],null]],[14,0,"sidebar-categories-form__category-label"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n "],[1,[28,[32,9],[[30,3,["category"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,3,["category","parentCategory"]]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__category-description"],[12],[1,"\\n "],[1,[28,[32,10],[[30,3,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[11,"input"],[16,"checked",[28,[32,11],[[30,0,["selectedCategoryIds"]],[30,3,["category","id"]]],null]],[16,1,[28,[32,8],["sidebar-categories-form__input--",[30,3,["category","id"]]],null]],[24,0,"sidebar-categories-form__input"],[24,4,"checkbox"],[4,[32,12],["click",[28,[32,13],[[30,0,["toggleCategory"]],[30,3,["category","id"]]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,0],[16,"data-category-level",[30,3,["level"]]],[24,0,"sidebar-categories-form__category-row"],[4,[32,7],[[30,0,["didInsert"]]],null],[12],[1,"\\n "],[10,"label"],[14,0,"sidebar-categories-form__category-label"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n "],[8,[32,14],[[24,0,"btn-flat"]],[["@label","@action"],["sidebar.categories_form_modal.show_more",[28,[32,13],[[30,0,["loadSubcategories"]],[30,3,["id"]],[30,3,["offset"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[3]],null],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__no-categories"],[12],[1,"\\n "],[1,[28,[32,2],["sidebar.categories_form_modal.no_categories"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","categories","c"],false,["if","each","-track-array","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/categories-modal.js",scope:()=>[h.default,d.gt,T.i18n,_.default,m.default,r.get,d.eq,l.default,r.concat,g.default,f.default,d.has,o.on,r.fn,p.default],isStrictMode:!0}),this))()}},53297:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18638),c=i(1453),u=i(72738),d=i(48137),p=i(843),h=i(68636),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"filter",[n.tracked],function(){return""}))();#rJ=(()=>void dt7948.i(this,"filter"))();static #i=(()=>dt7948.g(this.prototype,"filterDropdownValue",[n.tracked],function(){return"all"}))();#rX=(()=>void dt7948.i(this,"filterDropdownValue"))();filterDropdownContent=(()=>[{id:"all",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.all")},{id:"selected",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.selected")},{id:"unselected",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.unselected")}])();onFilterDropdownChange(e){switch(this.filterDropdownValue=e,e){case"all":this.args.resetFilter();break;case"selected":this.args.filterSelected();break;case"unselected":this.args.filterUnselected()}}static #s=(()=>dt7948.n(this.prototype,"onFilterDropdownChange",[a.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"E2VbeuP9",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__modal -large"],[17,1]],[["@title","@closeModal"],[[28,[32,1],[[30,2]],null],[30,3]]],[["belowModalTitle","belowHeader","body","footer"],[[[[1,"\\n "],[10,2],[14,0,"sidebar__edit-navigation-menu__deselect-wrapper"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-flat sidebar__edit-navigation-menu__deselect-button"]],[["@label","@ariaLabel","@action"],["sidebar.edit_navigation_modal_form.deselect_button_text","sidebar.edit_navigation_modal_form.deselect_button_text",[30,4]]],null],[1,"\\n\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter"],[12],[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-input"],[12],[1,"\\n "],[1,[28,[32,3],["magnifying-glass"],[["class"],["sidebar__edit-navigation-menu__filter-input-icon"]]]],[1,"\\n\\n "],[11,"input"],[16,2,[30,0,["filter"]]],[16,"placeholder",[30,6]],[24,"autofocus","true"],[24,0,"sidebar__edit-navigation-menu__filter-input-field"],[24,4,"text"],[4,[32,4],["input",[28,[32,5],[[28,[32,6],[[28,[31,0],[[30,0,["filter"]]],null]],null]],null]],null],[4,[32,4],["input",[28,[32,5],[[30,7]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-dropdown-wrapper"],[12],[1,"\\n "],[8,[32,7],[[24,0,"sidebar__edit-navigation-menu__filter-dropdown"]],[["@value","@content","@onChange","@options"],[[30,0,["filterDropdownValue"]],[30,0,["filterDropdownContent"]],[30,0,["onFilterDropdownChange"]],[28,[32,8],null,[["showCaret","disabled"],[true,[30,8]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[18,13,null],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__footer"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-primary sidebar__edit-navigation-menu__save-button"]],[["@action","@label","@disabled"],[[30,9],"save",[30,10]]],null],[1,"\\n\\n"],[41,[30,11],[[[1," "],[8,[32,2],[[24,0,"btn-flat btn-text sidebar__edit-navigation-menu__reset-defaults-button"]],[["@action","@label","@icon","@disabled"],[[30,12],"sidebar.edit_navigation_modal_form.reset_to_defaults","arrow-rotate-left",[30,10]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@title","@closeModal","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@loading","@save","@saving","@showResetDefaultsButton","@resetToDefaults","&default"],false,["mut","yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/modal.js",scope:()=>[c.default,p.i18n,l.default,u.default,o.on,d.default,r.fn,h.default,r.hash],isStrictMode:!0}),this))()}},69687:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18387),c=i(83133),u=i(57222),d=i(81329),p=i(96320),h=i(43006),m=i(88355),g=i(46301),f=i(77093),_=i(843),y=i(53297),b=i(53653),w=i(85671);class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"store",[c.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"disableFiltering",[n.tracked],function(){return!1}))();#rZ=(()=>void dt7948.i(this,"disableFiltering"))();static #c=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #u=(()=>dt7948.g(this.prototype,"selectedTags",[n.tracked],function(){return new u.TrackedSet([...this.currentUser.sidebarTagNames])}))();#r1=(()=>void dt7948.i(this,"selectedTags"))();static #d=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#F=(()=>void dt7948.i(this,"tags"))();static #p=(()=>dt7948.g(this.prototype,"tagsLoading",[n.tracked],function(){return!1}))();#r0=(()=>void dt7948.i(this,"tagsLoading"))();observer;onlySelected=!1;onlyUnselected=!1;constructor(){super(...arguments),this.#r3()}async #r3(){this.tagsLoading=!0;let e={};this.filter&&(e.filter=this.filter),this.onlySelected?e.only_tags=[...this.selectedTags].join(","):this.onlyUnselected&&(e.exclude_tags=[...this.selectedTags].join(","));try{let t=await this.store.findAll("listTag",e);this.tags=t}catch(e){(0,m.popupAjaxError)(e)}finally{this.tagsLoading=!1,this.disableFiltering=!1}}didInsertTag(e){if(e.dataset.tagName===this.tags.content[this.tags.content.length-1].name){if(this.observer)this.observer.disconnect();else{let e=document.querySelector(".d-modal__body"),t=window.getComputedStyle(e),i=parseFloat(t.marginTop),s=parseFloat(t.paddingTop);this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&this.tags.loadMore()})},{root:document.querySelector(".d-modal__body"),rootMargin:`0px 0px ${i+s}px 0px`,threshold:1})}this.observer.observe(e)}}static #h=(()=>dt7948.n(this.prototype,"didInsertTag",[a.action]))();resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1,this.#r3()}static #m=(()=>dt7948.n(this.prototype,"resetFilter",[a.action]))();filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1,this.#r3()}static #g=(()=>dt7948.n(this.prototype,"filterSelected",[a.action]))();filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0,this.#r3()}static #A=(()=>dt7948.n(this.prototype,"filterUnselected",[a.action]))();onFilterInput(e){this.disableFiltering=!0,(0,g.default)(this,this.#r8,e,f.INPUT_DELAY)}static #E=(()=>dt7948.n(this.prototype,"onFilterInput",[a.action]))();#r8(e){this.filter=e.toLowerCase(),this.#r3()}deselectAll(){this.selectedTags.clear()}static #D=(()=>dt7948.n(this.prototype,"deselectAll",[a.action]))();resetToDefaults(){this.selectedTags=new u.TrackedSet(this.siteSettings.default_navigation_menu_tags.split("|"))}static #P=(()=>dt7948.n(this.prototype,"resetToDefaults",[a.action]))();toggleTag(e){this.selectedTags.has(e)?this.selectedTags.delete(e):this.selectedTags.add(e)}static #Q=(()=>dt7948.n(this.prototype,"toggleTag",[a.action]))();async save(){this.saving=!0;let e=this.currentUser.sidebar_tags;this.currentUser.set("sidebar_tag_names",[...this.selectedTags]);try{let e=await this.currentUser.save(["sidebar_tag_names"]);this.currentUser.set("sidebar_tags",e.user.sidebar_tags),this.args.closeModal()}catch(t){this.currentUser.set("sidebar_tags",e),(0,m.popupAjaxError)(t)}finally{this.saving=!1}}static #J=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #X=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"Xjff1B9E",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__tags-modal"]],[["@title","@saving","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal","@loading"],["sidebar.tags_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[32,1],[[30,0,["siteSettings","default_navigation_menu_tags","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[32,2],["sidebar.tags_form_modal.subtitle.text"],null],[28,[32,2],["sidebar.tags_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1],[28,[32,3],[[30,0,["tagsLoading"]],[30,0,["disableFiltering"]]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["tagsLoading"]],[[[1," "],[1,[28,[32,4],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1," "],[10,"form"],[14,0,"sidebar-tags-form"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["tags"]]],null]],null],null,[[[1," "],[11,0],[16,"data-tag-name",[30,2,["name"]]],[24,0,"sidebar-tags-form__tag"],[4,[32,5],[[30,0,["didInsertTag"]]],null],[12],[1,"\\n "],[11,"input"],[16,"checked",[28,[32,6],[[30,0,["selectedTags"]],[30,2,["name"]]],null]],[16,1,[28,[32,7],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[24,0,"sidebar-tags-form__input"],[24,4,"checkbox"],[4,[32,8],["click",[28,[32,9],[[30,0,["toggleTag"]],[30,2,["name"]]],null]],null],[12],[13],[1,"\\n\\n "],[10,"label"],[15,"for",[28,[32,7],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[14,0,"sidebar-tags-form__tag-label"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,1],[14,0,"sidebar-tags-form__tag-label-name"],[12],[1,"\\n "],[1,[30,2,["name"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"sidebar-tags-form__tag-label-count"],[12],[1,"\\n ("],[1,[30,2,["topic_count"]]],[1,")\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],[[[1," "],[10,0],[14,0,"sidebar-tags-form__no-tags"],[12],[1,"\\n "],[1,[28,[32,2],["sidebar.tags_form_modal.no_tags"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[32,10],null,[["@condition"],[[30,0,["tags","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","tag"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/tags-modal.js",scope:()=>[y.default,d.gt,_.i18n,d.or,h.default,l.default,d.has,r.concat,o.on,r.fn,p.default],isStrictMode:!0}),this))()}},10535:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(843),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[n.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get shouldDisplay(){return this.sidebarState.currentPanel.filterable&&this.args.sections?.length===0}get noResultsDescription(){return this.sidebarState.currentPanel.filterNoResultsDescription(this.sidebarState.filter)}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"wEbq1P9d",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-no-results"],[12],[1,"\\n "],[10,"h4"],[14,0,"sidebar-no-results__title"],[12],[1,[28,[32,0],["sidebar.no_results.title"],null]],[13],[1,"\\n"],[41,[30,0,["noResultsDescription"]],[[[1," "],[10,2],[14,0,"sidebar-no-results__description"],[12],[1,"\\n "],[1,[30,0,["noResultsDescription"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/filter-no-results.js",scope:()=>[r.i18n],isStrictMode:!0}),this))()}},95626:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(18638),l=i(42236),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();willDestroy(){super.willDestroy(...arguments),this.sidebarState.clearFilter()}get shouldDisplay(){return this.sidebarState.currentPanel.filterable}get displayClearFilter(){return this.sidebarState.filter.length>0}setFilter(e){this.sidebarState.filter=e.target.value}static #i=(()=>dt7948.n(this.prototype,"setFilter",[r.action]))();handleEscape(e){"Escape"===e.key&&(e.stopPropagation(),this.sidebarState.filter.length>0?this.sidebarState.filter="":e.target.blur())}static #s=(()=>dt7948.n(this.prototype,"handleEscape",[r.action]))();clearFilter(){this.sidebarState.clearFilter(),document.querySelector(".sidebar-filter__input").focus()}static #l=(()=>dt7948.n(this.prototype,"clearFilter",[r.action]))();get showShortcutCombo(){return!this.displayClearFilter}get sidebarShortcutCombo(){return`${(0,l.translateModKey)("Meta")}+/`}static #c=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"x1Z6FrV9",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-filter"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-filter__input-container"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["sidebarState","filter"]]],[16,"placeholder",[28,[32,0],["sidebar.filter"],null]],[24,"enterkeyhint","done"],[24,0,"sidebar-filter__input"],[24,4,"text"],[4,[32,1],["input",[30,0,["setFilter"]]],null],[4,[32,1],["keydown",[30,0,["handleEscape"]]],null],[12],[13],[1,"\\n"],[41,[30,0,["showShortcutCombo"]],[[[1," "],[10,1],[14,0,"sidebar-filter__shortcut-hint"],[12],[1,[30,0,["sidebarShortcutCombo"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayClearFilter"]],[[[1," "],[8,[32,2],[[24,0,"sidebar-filter__clear"]],[["@action","@icon"],[[30,0,["clearFilter"]],"xmark"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/filter.js",scope:()=>[c.i18n,n.on,a.default],isStrictMode:!0}),this))()}},9571:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(25150),l=i(53527),c=i(98740),u=i(5068),d=i(73780),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get showManageSectionsButton(){return this.currentUser&&this.sidebarState.isCurrentPanel(d.MAIN_PANEL)}get showToggleMobileButton(){return this.site.mobileView||this.siteSettings.enable_mobile_theme&&this.capabilities.touch}manageSections(){this.modal.show(l.default)}static #d=(()=>dt7948.n(this.prototype,"manageSections",[n.action]))();showKeyboardShortcuts(){this.modal.show(a.default)}static #p=(()=>dt7948.n(this.prototype,"showKeyboardShortcuts",[n.action]))();toggleMobileView(){u.default.toggleMobileView()}static #h=(()=>dt7948.n(this.prototype,"toggleMobileView",[n.action]))();static #m=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"IrRrya+f",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-footer-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-footer-container"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-footer-actions"],[12],[1,"\\n "],[8,[32,0],null,[["@name"],["sidebar-footer-actions"]],null],[1,"\\n\\n"],[41,[30,0,["showManageSectionsButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button add-section"]],[["@icon","@action","@title","@ariaLabel"],["plus",[30,0,["manageSections"]],"sidebar.sections.custom.add","sidebar.sections.custom.add"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showToggleMobileButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button sidebar-footer-actions-toggle-mobile-view"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["toggleMobileView"]],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop","mobile-screen-button"]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["showKeyboardShortcuts"]],"keyboard_shortcuts_help.title","keyboard_shortcuts_help.title","keyboard"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/footer.js",scope:()=>[c.default,o.default],isStrictMode:!0}),this))()}},5787:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(35533),r=i(18387),o=i(62053),a=i(83133),l=i(81329),c=i(63671),u=i(98740),d=i(29524),p=i(9571),h=i(80568),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();triggerRenderedAppEvent(){this.appEvents.trigger("sidebar-hamburger-dropdown:rendered")}static #u=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[n.action]))();focusFirstLink(){(0,o.schedule)("afterRender",()=>{let e=document.querySelector(".sidebar-hamburger-dropdown a");e&&e.focus()})}static #d=(()=>dt7948.n(this.prototype,"focusFirstLink",[n.action]))();get collapsableSections(){if("header dropdown"===this.siteSettings.navigation_menu&&!this.args.collapsableSections)return this.site.mobileView||this.site.narrowDesktopView;this.args.collapsableSections}static #p=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"KMT2sYD5",block:'[[[1,"\\n "],[10,0],[14,0,"hamburger-panel"],[12],[1,"\\n "],[11,0],[24,"data-max-width","320"],[24,0,"revamped menu-panel drop-down"],[4,[32,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[8,[32,1],null,null,[["default"],[[[[1,"\\n "],[11,0],[24,0,"sidebar-hamburger-dropdown"],[4,[32,0],[[30,0,["focusFirstLink"]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@name"],["before-sidebar-sections"]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["sidebarState","showMainPanel"]],[30,1]],null],[[[1," "],[8,[32,4],null,[["@currentUser","@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]],[30,0,["sidebarState","currentPanel"]],[30,1],[30,2]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,5],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]]]],null],[1,"\\n"]],[]]],[1," "],[8,[32,2],null,[["@name"],["after-sidebar-sections"]],null],[1,"\\n "],[8,[32,6],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@forceMainSidebarPanel","@toggleNavigationMenu"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/hamburger-dropdown.js",scope:()=>[r.default,c.default,u.default,l.or,h.default,d.default,p.default],isStrictMode:!0}),this))()}},96860:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(81329),n=i(46153),r=i(4818),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"+cj76H/p",block:'[[[1,"\\n "],[8,[32,0],[[17,1]],[["@badgeText","@content","@currentWhen","@href","@linkName","@model","@models","@prefixType","@prefixValue","@query","@route","@shouldDisplay","@suffixCSSClass","@suffixType","@suffixValue","@title","@toggleNavigationMenu"],[[30,2,["badgeText"]],[28,[32,1],[[30,2,["text"]]],null],[30,2,["currentWhen"]],[28,[32,2],[[30,2,["href"]],[30,2,["value"]]],null],[30,2,["name"]],[30,2,["model"]],[30,2,["models"]],"icon",[30,2,["prefixValue"]],[30,2,["query"]],[30,2,["route"]],[30,2,["shouldDisplay"]],[30,2,["suffixCSSClass"]],[30,2,["suffixType"]],[30,2,["suffixValue"]],[30,2,["title"]],[30,3]]],null],[1,"\\n"]],["&attrs","@sectionLink","@toggleNavigationMenu"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/more-section-link.js",scope:()=>[r.default,n.default,s.or],isStrictMode:!0}),(0,l.default)(void 0,"more-section-link:SidebarMoreSectionLink"))},35507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(83133),c=i(75983),u=i(82698),d=i(72738),p=i(843),h=i(12610),m=i(96860),g=i(68767),f=i(53653),_=i(85671);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"activeSectionLink",[n.tracked]))();#r2=(()=>void dt7948.i(this,"activeSectionLink"))();constructor(){super(...arguments),this.#r4(),this.router.on("routeDidChange",this,this.#r4)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this,this.#r4)}get sectionLinks(){return this.activeSectionLink?this.#r7(this.args.sectionLinks):this.args.sectionLinks}get secondarySectionLinks(){return this.activeSectionLink?this.#r7(this.args.secondarySectionLinks):this.args.secondarySectionLinks}#r7(e){return e.filter(e=>e.name!==this.activeSectionLink.name)}#r4(){this.activeSectionLink=this.args.sectionLinks.find(e=>{let t=[e.route];return e.model?t.push(e.model):e.models&&t.push(...e.models),(0,c.isEmpty)(e.query)||t.push({queryParams:e.query}),this.router.isActive(...t)&&e})}closeMenu(e){e.close(),this.args.toggleNavigationMenu&&this.args.toggleNavigationMenu()}static #s=(()=>dt7948.n(this.prototype,"closeMenu",[a.action]))();static #l=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"rWz6ax2t",block:'[[[1,"\\n"],[41,[30,0,["activeSectionLink"]],[[[1," "],[8,[32,0],null,[["@sectionLink"],[[30,0,["activeSectionLink"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n "],[8,[32,1],null,[["@triggerClass","@modalForMobile","@autofocus","@placement","@inline","@identifier"],["btn-transparent sidebar-section-link sidebar-more-section-links-details-summary sidebar-row --link-button",true,true,"bottom",true,"sidebar-more-section"]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n "],[1,[28,[32,2],["ellipsis-vertical"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[28,[32,3],["sidebar.more"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,4],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,0],[[24,0,"dropdown-menu__item"],[4,[32,5],["click",[28,[32,6],[[30,0,["closeMenu"]],[30,1]],null]],null]],[["@sectionLink"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[30,2,["divider"]],null,null,null],[1,"\\n\\n "],[8,[30,2,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,7],null,[["@action","@icon","@text","@name","@toggleNavigationMenu"],[[30,4],[30,5],[30,6],"customize",[30,7]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[2]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "],[13],[1,"\\n "]],["menu","dropdown","sectionLink","@moreButtonAction","@moreButtonIcon","@moreButtonText","@toggleNavigationMenu"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/more-section-links.js",scope:()=>[m.default,h.default,d.default,p.i18n,u.default,o.on,r.fn,g.default],isStrictMode:!0}),this))()}},74460:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(83133),r=i(80385),o=i(95626),a=i(10535),l=i(10639),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[n.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();get shouldDisplay(){return this.sidebarState.currentPanel.displayHeader}static #i=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"BV4zNxVS",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-panel-header"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-panel-header__row"],[12],[1,"\\n "],[8,[32,0],null,null,null],[1,"\\n "],[8,[32,1],null,[["@sections"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"sidebar-panel-header__row"],[12],[1,"\\n "],[8,[32,2],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],null,[["@sections"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "]],["@sections"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/panel-header.js",scope:()=>[r.default,l.default,o.default,a.default],isStrictMode:!0}),this))()}},25961:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989),n=i(8554),r=i(53653),o=i(75446),a=i(99615),l=i(35533),c=i(83133),u=i(18638),d=i(81133),p=i(72738),h=i(48137),m=i(53306),g=i(843),f=i(59154),_=i(85671);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"dragCssClass",[n.tracked]))();#r9=(()=>void dt7948.i(this,"dragCssClass"))();dragCount=0;isAboveElement(e){e.preventDefault();let t=e.currentTarget.getBoundingClientRect();return e.offsetYdt7948.n(this.prototype,"dragHasStarted",[l.action]))();dragOver(e){e.preventDefault(),"dragging"!==this.dragCssClass&&(this.isAboveElement(e)?this.dragCssClass="drag-above":this.dragCssClass="drag-below")}static #l=(()=>dt7948.n(this.prototype,"dragOver",[l.action]))();dragEnter(){this.dragCount++}static #c=(()=>dt7948.n(this.prototype,"dragEnter",[l.action]))();dragLeave(){this.dragCount--,0===this.dragCount&&("drag-above"===this.dragCssClass||"drag-below"===this.dragCssClass)&&(0,m.default)(()=>{this.dragCssClass=null},10)}static #u=(()=>dt7948.n(this.prototype,"dragLeave",[l.action]))();dropItem(e){e.stopPropagation(),this.dragCount=0,this.args.reorderCallback(this.args.link,this.isAboveElement(e)),this.dragCssClass=null}static #d=(()=>dt7948.n(this.prototype,"dropItem",[l.action]))();dragEnd(){this.dragCount=0,this.dragCssClass=null}static #p=(()=>dt7948.n(this.prototype,"dragEnd",[l.action]))();static #h=(()=>(0,r.setComponentTemplate)((0,_.createTemplateFactory)({id:"EPf5ENyJ",block:'[[[1,"\\n "],[11,0],[24,"role","row"],[16,"data-row-id",[30,1,["objectId"]]],[24,"draggable","true"],[16,0,[28,[32,0],["sidebar-section-form-link","row-wrapper",[30,0,["dragCssClass"]]],null]],[4,[32,1],["dragstart",[30,0,["dragHasStarted"]]],null],[4,[32,1],["dragover",[30,0,["dragOver"]]],null],[4,[32,1],["dragenter",[30,0,["dragEnter"]]],null],[4,[32,1],["dragleave",[30,0,["dragLeave"]]],null],[4,[32,1],["dragend",[30,0,["dragEnd"]]],null],[4,[32,1],["drop",[30,0,["dropItem"]]],null],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"draggable"],[15,"data-link-name",[30,1,["name"]]],[12],[1,"\\n "],[1,[28,[32,2],["grip-lines"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,3],[[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.icon.label"],null]],[16,0,[30,1,["iconCssClass"]]]],[["@name","@value","@options","@onlyAvailable","@onChange"],["icon",[30,1,["icon"]],[28,[32,5],null,[["maximum","caretDownIcon","caretUpIcon","icons"],[1,"caret-down","caret-up",[30,1,["icon"]]]]],true,[28,[32,6],[[28,[31,1],[[30,1,["icon"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,1,["invalidIconMessage"]],[[[1," "],[10,0],[14,0,"icon warning"],[14,"role","alert"],[14,"aria-live","assertive"],[12],[1,"\\n "],[1,[30,1,["invalidIconMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,7],[[24,3,"link-name"],[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.name.label"],null]],[16,0,[30,1,["nameCssClass"]]],[24,"data-1p-ignore",""],[4,[32,1],["input",[28,[32,8],[[28,[32,6],[[28,[31,1],[[30,1,["name"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,1,["name"]]]],null],[1,"\\n\\n"],[41,[30,1,["invalidNameMessage"]],[[[1," "],[10,0],[14,"role","alert"],[14,"aria-live","assertive"],[14,0,"name warning"],[12],[1,"\\n "],[1,[30,1,["invalidNameMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,7],[[24,3,"link-url"],[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.value.label"],null]],[16,0,[30,1,["valueCssClass"]]],[4,[32,1],["input",[28,[32,8],[[28,[32,6],[[28,[31,1],[[30,1,["value"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,1,["value"]]]],null],[1,"\\n\\n"],[41,[30,1,["invalidValueMessage"]],[[[1," "],[10,0],[14,"role","alert"],[14,"aria-live","assertive"],[14,0,"value warning"],[12],[1,"\\n "],[1,[30,1,["invalidValueMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,9],[[24,"role","cell"],[24,0,"btn-flat delete-link"]],[["@icon","@action","@title"],["trash-can",[28,[32,6],[[30,2],[30,1]],null],"sidebar.sections.custom.links.delete"]],null],[1,"\\n "],[13],[1,"\\n "]],["@link","@deleteLink"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-form-link.js",scope:()=>[d.default,a.on,p.default,f.default,g.i18n,o.hash,o.fn,r.Input,h.default,u.default],isStrictMode:!0}),this))()}},36551:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"5B4Slzpp",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[16,"aria-controls",[30,2]],[16,"aria-expanded",[52,[30,3],"true","false"]],[24,0,"sidebar-section-header sidebar-section-header-collapsable btn-transparent"]],[["@title","@action","@forwardEvent"],["sidebar.toggle_section",[30,4],true]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"sidebar-section-header"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],[]]]],["@collapsable","@sidebarSectionContentId","@isExpanded","@toggleSectionDisplay","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-header.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"section-header:SidebarSectionHeader"))},68767:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(72738),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"menu",[o.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #i=(()=>dt7948.g(this.prototype,"header",[o.service]))();#tA=(()=>void dt7948.i(this,"header"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();handleClick(){let e=this.menu.getByIdentifier("sidebar-more-section");this.args.action(),this.menu.close(e),this.args.toggleNavigationMenu&&this.args.toggleNavigationMenu(),"header dropdown"===this.siteSettings.navigation_menu&&(this.header.hamburgerVisible=!1)}static #l=(()=>dt7948.n(this.prototype,"handleClick",[r.action]))();static #c=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"ttgboHXy",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n "],[11,"button"],[24,0,"sidebar-section-link sidebar-row --link-button"],[16,"data-list-item-name",[30,1]],[24,4,"button"],[4,[32,0],["click",[30,0,["handleClick"]]],null],[12],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n "],[1,[28,[32,1],[[30,2]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[30,1]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@text","@icon"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link-button.js",scope:()=>[n.on,a.default],isStrictMode:!0}),this))()}},94119:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(75446),r=i(42256),o=i(81329),a=i(4818),l=i(81133),c=i(72738),u=i(53653),d=i(85671);class p extends s.default{get prefixValue(){if(this.args.prefixType||this.args.prefixValue){if("span"===this.args.prefixType){let e=this.args.prefixValue;return 1===(e=e.reduce((e,t)=>{let i=(0,a.isHex)(t);return i&&e.push(`#${i} 50%`),e},[])).length&&e.push(e[0]),e.join(", ")}return this.args.prefixValue}}static #e=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"MFj2/bac",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[15,5,[52,[30,2],[28,[32,0],[[28,[32,1],["color: ",[30,2]],null]],null]]],[15,0,[28,[32,2],["sidebar-section-link-prefix",[30,1],[30,3]],null]],[12],[1,"\\n"],[41,[28,[32,3],[[30,1],"image"],null],[[[1," "],[10,"img"],[15,"src",[30,0,["prefixValue"]]],[14,0,"prefix-image"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"text"],null],[[[1," "],[10,1],[14,0,"prefix-text"],[12],[1,"\\n "],[1,[30,0,["prefixValue"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"icon"],null],[[[1," "],[1,[28,[32,4],[[30,0,["prefixValue"]]],[["class"],["prefix-icon"]]]],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"span"],null],[[[1," "],[10,1],[15,5,[28,[32,0],[[28,[32,1],["background: linear-gradient(90deg, ",[30,0,["prefixValue"]],")"],null]],null]],[14,0,"prefix-span"],[12],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,4],[[30,4]],[["class"],["prefix-badge"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@prefixType","@prefixColor","@prefixCSSClass","@prefixBadge"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link-prefix.js",scope:()=>[r.htmlSafe,n.concat,l.default,o.eq,c.default],isStrictMode:!0}),this))()}},4818:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w,isHex:()=>b});var s=i(80989),n=i(75446),r=i(99615),o=i(18387),a=i(31351),l=i(43696),c=i(62053),u=i(83133),d=i(81329),p=i(81133),h=i(72738),m=i(63748),g=i(16547),f=i(94119),_=i(53653),y=i(85671);function b(e){let t=e?.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/);return t?t[1]:void 0}class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){super(...arguments),this.args.didInsert?.()}willDestroy(){super.willDestroy(...arguments),this.args.willDestroy?.()}get shouldDisplay(){return void 0===this.args.shouldDisplay||this.args.shouldDisplay}get linkClass(){let e=["sidebar-section-link","sidebar-row"];return this.args.linkClass&&e.push(this.args.linkClass),this.args.class&&((0,g.default)("SectionLink's @class arg has been renamed to @linkClass",{id:"discourse.section-link-class-arg",since:"3.2.0.beta4",dropFrom:"3.3.0.beta1"}),e.push(this.args.class)),this.args.href&&"boolean"==typeof this.args.currentWhen&&this.args.currentWhen&&e.push("active"),e.join(" ")}get target(){return this.currentUser?.user_option?.external_links_in_new_tab&&this.isExternal?"_blank":"_self"}get isExternal(){return this.args.href&&new URL(this.args.href,window.location.href).origin!==window.location.origin}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}get prefixColor(){let e=b(this.args.prefixColor);return e?`#${e}`:void 0}maybeScrollIntoView(e){this.args.scrollIntoView&&(0,c.schedule)("afterRender",()=>{let t=e.getBoundingClientRect();t.top<=window.innerHeight&&t.bottom>=0||e.scrollIntoView({block:"center"})})}static #i=(()=>dt7948.n(this.prototype,"maybeScrollIntoView",[m.bind]))();static #s=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"QDmyEiJi",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[11,"li"],[16,"data-list-item-name",[30,1]],[24,0,"sidebar-section-link-wrapper"],[17,2],[4,[32,0],[[30,0,["maybeScrollIntoView"]]],null],[4,[32,1],[[30,0,["maybeScrollIntoView"]],[30,3]],null],[12],[1,"\\n"],[41,[30,4],[[[1," "],[10,3],[15,6,[30,4]],[14,"rel","noopener noreferrer"],[15,"target",[30,0,["target"]]],[15,"title",[30,5]],[15,"data-link-name",[30,1]],[15,0,[30,0,["linkClass"]]],[12],[1,"\\n "],[8,[32,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,6],[30,7],[30,8],[30,0,["prefixColor"]],[30,9]]],null],[1,"\\n\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[30,10]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,3],[[16,"title",[30,5]],[16,"data-link-name",[30,1]],[16,0,[30,0,["linkClass"]]]],[["@route","@query","@models","@current-when"],[[30,11],[28,[32,4],[[30,12],[28,[32,5],null,null]],null],[30,0,["models"]],[30,13]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,6],[30,7],[30,8],[30,0,["prefixColor"]],[30,9]]],null],[1,"\\n\\n "],[10,1],[15,0,[28,[32,6],["sidebar-section-link-content-text",[30,14]],null]],[12],[1,"\\n "],[1,[30,10]],[1,"\\n "],[8,[30,15],null,null,null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,16],[[[1," "],[10,1],[14,0,"sidebar-section-link-content-badge"],[12],[1,"\\n "],[1,[30,16]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,17],[[[1," "],[10,1],[15,0,[28,[32,6],["sidebar-section-link-suffix",[30,18],[30,19]],null]],[12],[1,"\\n"],[41,[28,[32,7],[[30,18],"icon"],null],[[[1," "],[1,[28,[32,8],[[30,17]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,20],[[[1," "],[10,1],[14,0,"sidebar-section-link-hover"],[12],[1,"\\n "],[11,"button"],[16,"title",[30,21]],[24,0,"sidebar-section-hover-button"],[24,4,"button"],[4,[32,9],["click",[30,22]],null],[12],[1,"\\n"],[41,[28,[32,7],[[30,23],"icon"],null],[[[1," "],[1,[28,[32,8],[[30,20]],[["class"],["hover-icon"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@linkName","&attrs","@scrollIntoView","@href","@title","@prefixType","@prefixValue","@prefixCSSClass","@prefixBadge","@content","@route","@query","@currentWhen","@contentCSSClass","@contentComponent","@badgeText","@suffixValue","@suffixType","@suffixCSSClass","@hoverValue","@hoverTitle","@hoverAction","@hoverType"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link.js",scope:()=>[o.default,a.default,f.default,l.LinkTo,d.or,n.hash,p.default,d.eq,h.default,r.on],isStrictMode:!0}),this))()}},3267:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"AUqDwDAl",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-section-message-wrapper sidebar-row"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-section-message"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-message.js",isStrictMode:!0}),(0,r.default)(void 0,"section-message:SidebarSectionMessage"))},27197:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(18387),l=i(83133),c=i(75983),u=i(81133),d=i(72738),p=i(63748),h=i(54634),m=i(843),g=i(68636),f=i(31886),_=i(36551),y=i(53653),b=i(85671);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[l.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #i=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"sidebarState",[l.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();sidebarSectionContentId=(()=>(0,h.getSidebarSectionContentId)(this.args.sectionName))();collapsedSidebarSectionKey=(()=>(0,h.getCollapsedSidebarSectionKey)(this.args.sectionName))();constructor(){super(...arguments),this.router.on("routeDidChange",this,this.expandIfActive)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this,this.expandIfActive),this.args.willDestroy?.()}get isCollapsed(){return!!this.args.collapsable&&(void 0===this.keyValueStore.getItem(this.collapsedSidebarSectionKey)?this.args.collapsedByDefault:"true"===this.keyValueStore.getItem(this.collapsedSidebarSectionKey))}get isActive(){return!!this.args.activeLink}get activeExpanded(){return this.sidebarState.activeExpandedSections.has(this.args.sectionName)}set activeExpanded(e){e?this.sidebarState.activeExpandedSections.add(this.args.sectionName):this.sidebarState.activeExpandedSections.delete(this.args.sectionName)}setExpandedState(){(0,c.isEmpty)(this.sidebarState.filter)&&(this.isCollapsed?this.sidebarState.collapseSection(this.args.sectionName):this.sidebarState.expandSection(this.args.sectionName),this.expandIfActive())}static #l=(()=>dt7948.n(this.prototype,"setExpandedState",[p.bind]))();expandIfActive(e){e?.isAborted||(this.activeExpanded=this.args.expandWhenActive&&this.isActive)}static #c=(()=>dt7948.n(this.prototype,"expandIfActive",[p.bind]))();get displaySectionContent(){return!!this.args.hideSectionHeader||!(0,c.isEmpty)(this.sidebarState.filter)||!!this.activeExpanded||!this.sidebarState.collapsedSections.has(this.collapsedSidebarSectionKey)}toggleSectionDisplay(e,t){this.activeExpanded=!1,this.displaySectionContent?this.sidebarState.collapseSection(this.args.sectionName):this.sidebarState.expandSection(this.args.sectionName),t.key||document.activeElement.blur()}static #u=(()=>dt7948.n(this.prototype,"toggleSectionDisplay",[o.action]))();handleMultipleHeaderActions(e){this.args.headerActions.find(t=>t.id===e).action()}static #d=(()=>dt7948.n(this.prototype,"handleMultipleHeaderActions",[o.action]))();get headerCaretIcon(){return this.displaySectionContent?"angle-down":"angle-right"}get isSingleHeaderAction(){return this.args.headerActions?.length===1}get isMultipleHeaderActions(){return this.args.headerActions?.length>1}get displaySection(){return void 0===this.args.displaySection||this.args.displaySection}static #p=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"yZ0JbP8K",block:'[[[1,"\\n"],[41,[30,0,["displaySection"]],[[[1," "],[11,0],[16,"data-section-name",[30,1]],[16,0,[28,[32,0],["sidebar-section","sidebar-section-wrapper",[52,[30,0,["displaySectionContent"]],"sidebar-section--expanded","sidebar-section--collapsed"]],null]],[17,2],[4,[32,1],[[30,0,["setExpandedState"]]],null],[12],[1,"\\n"],[41,[51,[30,3]],[[[1," "],[10,0],[14,0,"sidebar-section-header-wrapper sidebar-row"],[12],[1,"\\n "],[8,[32,2],null,[["@collapsable","@sidebarSectionContentId","@toggleSectionDisplay","@isExpanded","@isActive"],[[30,4],[30,0,["sidebarSectionContentId"]],[30,0,["toggleSectionDisplay"]],[30,0,["displaySectionContent"]],[30,0,["isActive"]]]],[["default"],[[[[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"sidebar-section-header-caret"],[12],[1,"\\n "],[1,[28,[32,3],[[30,0,["headerCaretIcon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"sidebar-section-header-text"],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[8,[32,4],[[24,0,"sidebar-section-header-global-indicator"]],[["@icon"],["globe"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"sidebar-section-header-global-indicator__content"],[12],[1,"\\n "],[1,[28,[32,3],["shield-halved"],null]],[1,"\\n "],[1,[28,[32,5],["sidebar.sections.global_section"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isSingleHeaderAction"]],[[[42,[28,[31,3],[[28,[31,3],[[30,7]],null]],null],null,[[[1," "],[11,"button"],[16,"title",[30,8,["title"]]],[24,0,"sidebar-section-header-button"],[24,4,"button"],[4,[32,6],["click",[30,8,["action"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n"]],[8]],null]],[]],null],[1,"\\n"],[41,[30,0,["isMultipleHeaderActions"]],[[[1," "],[8,[32,7],[[24,0,"sidebar-section-header-dropdown"]],[["@options","@content","@onChange"],[[28,[32,8],null,[["icon","placementStrategy"],[[30,9],"absolute"]]],[30,7],[30,0,["handleMultipleHeaderActions"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySectionContent"]],[[[1," "],[10,"ul"],[15,1,[30,0,["sidebarSectionContentId"]]],[14,0,"sidebar-section-content"],[12],[1,"\\n "],[18,10,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@sectionName","&attrs","@hideSectionHeader","@collapsable","@headerLinkText","@indicatePublic","@headerActions","headerAction","@headerActionsIcon","&default"],false,["if","unless","each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section.js",scope:()=>[u.default,a.default,_.default,d.default,f.default,m.i18n,r.on,g.default,n.hash],isStrictMode:!0}),this))()}},80568:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(23982),n=i(93810),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"/JOTl2gZ",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],[[30,2],[30,3],[30,4],[30,5]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,1],null,[["@collapsableSections","@toggleNavigationMenu"],[[30,2],[30,5]]],null],[1,"\\n"]],[]]]],["@currentUser","@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/sections.js",scope:()=>[n.default,s.default],isStrictMode:!0}),(0,a.default)(void 0,"sections:SidebarSections"))},14903:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(18638),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();static #s=(()=>dt7948.g(this.prototype,"isSwitching",[n.tracked],function(){return!1}))();#r5=(()=>void dt7948.i(this,"isSwitching"))();async switchPanel(e){this.isSwitching=!0,this.sidebarState.currentPanel.lastKnownURL=this.router.currentURL;let t=e?.switchButtonDefaultUrl;if(t)try{await this.router.transitionTo(t).followRedirects(),this.sidebarState.setPanel(e.key)}catch(e){if("TransitionAborted"!==e.name)throw e}finally{this.isSwitching=!1}}static #l=(()=>dt7948.n(this.prototype,"switchPanel",[o.action]))();static #c=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"pA0yonLl",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[32,0],[[16,"data-key",[30,2,["key"]]],[24,0,"btn-default sidebar__panel-switch-button"]],[["@action","@icon","@disabled","@translatedLabel"],[[28,[32,1],[[30,0,["switchPanel"]],[30,2]],null],[30,2,["switchButtonIcon"]],[30,0,["isSwitching"]],[30,2,["switchButtonLabel"]]]],null],[1,"\\n"]],[2]],null],[1," "]],["@buttons","button"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/switch-panel-buttons.js",scope:()=>[l.default,r.fn],isStrictMode:!0}),this))()}},10639:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(54634),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();static #i=(()=>dt7948.g(this.prototype,"keyValueStore",[r.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();get collapsableSections(){return this.args.sections.filter(e=>e.displaySection&&!e.hideSectionHeader)}get allSectionsExpanded(){return this.collapsableSections.every(e=>!this.sidebarState.collapsedSections.has((0,a.getCollapsedSidebarSectionKey)(e.name)))}get title(){return this.allSectionsExpanded?"sidebar.collapse_all_sections":"sidebar.expand_all_sections"}get icon(){return this.allSectionsExpanded?"angles-up":"angles-down"}toggleAllSections(){let e=this.allSectionsExpanded;this.collapsableSections.forEach(t=>{e?this.sidebarState.collapseSection(t.name):this.sidebarState.expandSection(t.name)})}static #s=(()=>dt7948.n(this.prototype,"toggleAllSections",[n.action]))();static #l=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"PgR1VP+Z",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-transparent sidebar-toggle-all-sections"]],[["@action","@icon","@title"],[[30,0,["toggleAllSections"]],[30,0,["icon"]],[30,0,["title"]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/toggle-all-sections.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},92936:(e,t,i)=>{"use strict";i.r(t),i.d(t,{REFRESH_COUNTS_APP_EVENT_NAME:()=>y,default:()=>b}),i(8554);var s=i(75446),n=i(35533),r=i(83133),o=i(63748),a=i(54634),l=i(1559),c=i(843),u=i(12661),d=i(24202),p=i(88034),h=i(27197),m=i(4818),g=i(53653),f=i(85671);let _=(0,i(38168).A)(i(8554)).cached,y="sidebar:refresh-categories-section-counts";class b extends d.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(){super(...arguments),this.callbackId=this.topicTrackingState.onStateChange(()=>{this._refreshCounts()}),this.appEvents.on(y,this,this._refreshCounts)}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId),this.appEvents.off(y,this,this._refreshCounts)}_refreshCounts(){this.sectionLinks.forEach(e=>e.refreshCounts())}static #c=(()=>dt7948.n(this.prototype,"_refreshCounts",[(0,o.debounce)(300)]))();get categories(){return this.currentUser.sidebarCategoryIds?.length>0?l.default.findByIds(this.currentUser.sidebarCategoryIds):this.topSiteCategories}static #u=(()=>dt7948.n(this.prototype,"categories",[_]))();get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarCategories}get hasDefaultSidebarCategories(){return(0,a.hasDefaultSidebarCategories)(this.siteSettings)}showModal(){this.modal.show(p.default)}static #d=(()=>dt7948.n(this.prototype,"showModal",[n.action]))();static #p=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"Y6JeO6Pg",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["categories",[28,[32,1],["sidebar.sections.categories.header_link_text"],null],[28,[32,2],[[28,[32,3],null,[["action","title"],[[30,0,["showModal"]],[28,[32,1],["sidebar.sections.categories.header_action_title"],null]]]]],null],"pencil",[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,4],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@query","@title","@content","@currentWhen","@model","@badgeText","@prefixBadge","@prefixType","@prefixValue","@prefixColor","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["query"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["badgeText"]],[30,2,["prefixBadge"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,5],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1," "],[8,[32,4],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-categories",[28,[32,1],["sidebar.sections.categories.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[32,3],null,[["filter"],["default_navigation_menu_categories"]]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/categories-section.js",scope:()=>[h.default,c.i18n,s.array,s.hash,m.default,u.default],isStrictMode:!0}),this))()}},14446:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(6864),n=i(63748),r=i(32432);class o extends r.default{constructor(){super(...arguments),this.messageBus.subscribe("/refresh-sidebar-sections",this._refresh)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe("/refresh-sidebar-sections")}async _refresh(){let e=await (0,s.ajax)("/sidebar_sections.json",{});this.currentUser.set("sidebar_sections",e.sidebar_sections)}static #e=(()=>dt7948.n(this.prototype,"_refresh",[n.bind]))()}},89344:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GROUP_MESSAGES_INBOX_FILTERS:()=>T,INBOX:()=>_,NEW:()=>b,PERSONAL_MESSAGES_INBOX_FILTERS:()=>k,UNREAD:()=>y,default:()=>S});var s=i(80989);i(8554);var n=i(75446),r=i(31049),o=i(83133),a=i(95422),l=i(63748),c=i(37098),u=i(6689),d=i(843),p=i(27197),h=i(4818),m=i(53653),g=i(85671);let f=(0,i(38168).A)(i(8554)).cached,_="inbox",y="unread",b="new",w="archive",k=[_,b,y,"sent",w],T=[_,b,y,w];class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#nZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();_pmTopicTrackingStateKey="messages-section";constructor(){super(...arguments),this.appEvents.on("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.onStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.offStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinkCounts(){for(let e of this.allSectionLinks)e.refreshCount()}static #c=(()=>dt7948.n(this.prototype,"_refreshSectionLinkCounts",[l.bind]))();_refreshSectionLinksDisplayState(){let e=this.router.currentRoute.name,t=this.router.currentRoute.parent.name,i=this.router.currentRoute.parent.params;if(t.includes("userPrivateMessages")||"topic"===t){let s={currentRouteName:e,currentRouteParentParams:i};if("topic"===t){let e=(0,r.getOwner)(this).lookup("controller:topic");e.model.isPrivateMessage&&(s.privateMessageTopic=e.model)}for(let e of this.allSectionLinks)e.pageChanged(s)}else for(let e of this.allSectionLinks)e.collapse()}get personalMessagesSectionLinks(){let e=[];return k.forEach(t=>{e.push(new u.default({currentUser:this.currentUser,type:t,pmTopicTrackingState:this.pmTopicTrackingState}))}),e}static #u=(()=>dt7948.n(this.prototype,"personalMessagesSectionLinks",[f]))();get groupMessagesSectionLinks(){let e=[];return this.currentUser.groupsWithMessages.sort((e,t)=>e.name.localeCompare(t.name)).forEach(t=>{T.forEach(i=>{e.push(new c.default({group:t,type:i,currentUser:this.currentUser,pmTopicTrackingState:this.pmTopicTrackingState}))})}),e}static #d=(()=>dt7948.n(this.prototype,"groupMessagesSectionLinks",[f]))();get allSectionLinks(){return[...this.groupMessagesSectionLinks,...this.personalMessagesSectionLinks]}static #p=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"VXgdSHDn",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerActionIcon","@headerActions","@headerActionsIcon","@headerLinkText","@collapsable"],["messages","plus",[28,[32,1],[[28,[32,2],null,[["action","title"],[[28,[32,3],[[28,[32,4],["composePrivateMessage"],null],null,null],null],[28,[32,5],["sidebar.sections.messages.header_action_title"],null]]]]],null],"plus",[28,[32,5],["sidebar.sections.messages.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["personalMessagesSectionLinks"]]],null]],null],null,[[[41,[30,2,["shouldDisplay"]],[[[1," "],[8,[32,6],null,[["@linkName","@linkClass","@route","@model","@prefixType","@prefixValue","@currentWhen","@content"],[[30,2,["name"]],[30,2,["class"]],[30,2,["route"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["currentWhen"]],[30,2,["text"]]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["groupMessagesSectionLinks"]]],null]],null],null,[[[41,[30,3,["shouldDisplay"]],[[[1," "],[8,[32,6],null,[["@linkName","@linkClass","@route","@prefixType","@prefixValue","@models","@currentWhen","@content"],[[30,3,["name"]],[30,3,["class"]],[30,3,["route"]],[30,3,["prefixType"]],[30,3,["prefixValue"]],[30,3,["models"]],[30,3,["currentWhen"]],[30,3,["text"]]]],null],[1,"\\n"]],[]],null]],[3]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","personalMessageSectionLink","groupMessageSectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/messages-section.js",scope:()=>[p.default,n.array,n.hash,n.fn,a.default,d.i18n,h.default],isStrictMode:!0}),this))()}},93810:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(83133),r=i(31243),o=i(92936),a=i(14446),l=i(89344),c=i(41513),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"7r6UOHDc",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-sections"],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable","@toggleNavigationMenu"],[[30,1],[30,2]]],null],[1,"\\n\\n "],[8,[32,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","display_sidebar_tags"]],[[[1," "],[8,[32,2],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","can_send_private_messages"]],[[[1," "],[8,[32,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,3]],[[[1," "],[8,[32,4],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@collapsableSections","@toggleNavigationMenu","@hideApiSections"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/sections.js",scope:()=>[a.default,o.default,c.default,l.default,r.default],isStrictMode:!0}),this))()}},41513:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(80989);i(8554);var n=i(75446),r=i(35533),o=i(83133),a=i(69687),l=i(54634),c=i(45224),u=i(96498),d=i(843),p=i(99598),h=i(27197),m=i(4818),g=i(53653),f=i(85671);let _=(0,i(38168).A)(i(8554)).cached;class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#nZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #c=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #d=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();constructor(){super(...arguments),this.callbackId=this.topicTrackingState.onStateChange(()=>{this.sectionLinks.forEach(e=>{e.refreshCounts&&e.refreshCounts()})})}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId)}get sectionLinks(){let e=[];for(let t of this.currentUser.sidebarTags.length>0?this.currentUser.sidebarTags:this.site.navigation_menu_site_top_tags||[])t.pm_only?e.push(new c.default({tag:t,currentUser:this.currentUser})):e.push(new u.default({tag:t,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}));return e}static #p=(()=>dt7948.n(this.prototype,"sectionLinks",[_]))();get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarTags}get hasDefaultSidebarTags(){return(0,l.hasDefaultSidebarTags)(this.siteSettings)}showModal(){this.modal.show(a.default)}static #h=(()=>dt7948.n(this.prototype,"showModal",[r.action]))();static #m=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"cxAgl6p5",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["tags",[28,[32,1],["sidebar.sections.tags.header_link_text"],null],[28,[32,2],[[28,[32,3],null,[["action","title"],[[30,0,["showModal"]],[28,[32,1],["sidebar.sections.tags.header_action_title"],null]]]]],null],"pencil",[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,4],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@title","@content","@currentWhen","@prefixType","@prefixValue","@prefixColor","@badgeText","@models","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["badgeText"]],[30,2,["models"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,5],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1," "],[8,[32,4],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-tags",[28,[32,1],["sidebar.sections.tags.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[32,3],null,[["filter"],["default_navigation_menu_tags"]]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/tags-section.js",scope:()=>[h.default,d.i18n,n.array,n.hash,m.default,p.default],isStrictMode:!0}),this))()}},83069:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(35533),r=i(42064),o=i(53306);let a=(0,i(85671).createTemplateFactory)({id:"cs9V/Rxe",block:'[[[10,0],[14,0,"signup-cta alert alert-info"],[12],[1,"\\n"],[41,[30,0,["session","hideSignupCta"]],[[[1," "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,3],["signup_cta.hidden_for_session"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"h3"],[12],[1,[28,[35,4],[[28,[37,3],["signup_cta.intro"],null]],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["signup_cta.value_prop"],null]],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[37,7],["showCreateAccount"],null],"signup_cta.sign_up","user"]],null],[1,"\\n "],[8,[39,6],[[24,0,"no-icon"]],[["@action","@label"],[[28,[37,8],[[30,0],"hideForSession"],null],"signup_cta.hide_session"]],null],[1,"\\n "],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["neverShow"]]],null],[12],[1,[28,[35,3],["signup_cta.hide_forever"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","h3","i18n","replace-emoji","p","d-button","route-action","action","a","on"]]',moduleName:"discourse/components/signup-cta.hbs",isStrictMode:!1});class l extends s.default{action="showCreateAccount";neverShow(e){e?.preventDefault(),this.keyValueStore.setItem("anon-cta-never","t"),this.session.set("showSignupCta",!1)}static #e=(()=>dt7948.n(this.prototype,"neverShow",[n.action]))();hideForSession(){this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",Date.now()),(0,o.default)(()=>this.session.set("showSignupCta",!1),2e4)}static #i=(()=>dt7948.n(this.prototype,"hideForSession",[n.action]))();_turnOffIfHidden(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}static #s=(()=>dt7948.n(this.prototype,"_turnOffIfHidden",[(0,r.on)("willDestroyElement")]))()}(0,s.setComponentTemplate)(a,l)},91010:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(42256),n=i(18638),r=i(98740),o=i(95422),a=i(843),l=i(53653),c=i(85671),u=i(73306);let d=(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"SiBUvLWr",block:'[[[1,"\\n "],[10,0],[14,0,"signup-page-cta"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"signup-page-cta__disclaimer"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"signup-page-cta__buttons"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-large btn-primary signup-page-cta__signup"]],[["@action","@disabled","@isLoading","@label"],[[30,2],[30,3],[30,4],"create_account.title"]],null],[1,"\\n"],[41,[51,[30,5]],[[[1," "],[10,1],[14,0,"signup-page-cta__existing-account"],[12],[1,"\\n "],[1,[28,[32,2],["create_account.already_have_account"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-large btn-flat signup-page-cta__login"]],[["@action","@disabled","@label"],[[28,[32,3],["showLogin"],null],[30,4],"log_in"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n"]],["@disclaimerHtml","@createAccount","@submitDisabled","@formSubmitted","@hasAuthOptions"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/signup-page-cta.js",scope:()=>[s.htmlSafe,n.default,a.i18n,o.default,r.default],isStrictMode:!0}),(0,u.default)(void 0,"signup-page-cta:SignupPageCta"))},66613:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(81133),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"steps",[n.tracked],function(){return[]}))();#r6=(()=>void dt7948.i(this,"steps"))();constructor(){super(...arguments),this.siteSettings.must_approve_users?this.steps=["signup","activate","approve","login"]:this.steps=["signup","activate","login"]}get currentStepIndex(){return this.steps.findIndex(e=>e===this.args.step)}get lastStepIndex(){return this.steps.length-1}getStepState(e){return e===this.currentStepIndex?"active":ethis.currentStepIndex?"incomplete":void 0}static #l=(()=>dt7948.n(this.prototype,"getStepState",[o.action]))();static #c=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"EsGAZRYA",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"signup-progress-bar"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["steps"]]],null]],null],null,[[[1," "],[10,0],[15,0,[28,[32,0],["signup-progress-bar__segment",[28,[32,1],["--",[28,[30,0,["getStepState"]],[[30,3]],null]],null]],null]],[12],[1,"\\n "],[10,0],[14,0,"signup-progress-bar__step"],[12],[1,"\\n "],[10,0],[14,0,"signup-progress-bar__circle"],[12],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@step","step","index"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/signup-progress-bar.js",scope:()=>[l.default,r.concat],isStrictMode:!0}),this))()}},68115:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(35533),r=i(93941),o=i(88355),a=i(63748),l=i(19268);let c=(0,i(85671).createTemplateFactory)({id:"aMC1tUQf",block:'[[[41,[30,0,["showSlowModeNotice"]],[[[1," "],[10,0],[14,0,"topic-status-info"],[12],[1,"\\n "],[10,"h3"],[14,0,"slow-mode-heading"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,4],["hourglass-start"],null]],[1,"\\n "],[1,[28,[35,5],["topic.slow_mode_notice.duration"],[["duration"],[[30,0,["durationText"]]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["user","canManageTopic"]],[[[1," "],[8,[39,6],[[24,0,"slow-mode-remove"]],[["@action","@icon"],[[30,0,["disableSlowMode"]],"trash-can"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","h3","span","d-icon","i18n","d-button"]]',moduleName:"discourse/components/slow-mode-info.hbs",isStrictMode:!1});class u extends s.default{durationText(e){return(0,r.durationTextFromSeconds)(e)}static #e=(()=>dt7948.n(this.prototype,"durationText",[(0,a.default)("topic.slow_mode_seconds")]))();showSlowModeNotice(e,t){return e>0&&!t}static #i=(()=>dt7948.n(this.prototype,"showSlowModeNotice",[(0,a.default)("topic.slow_mode_seconds","topic.closed")]))();disableSlowMode(){l.default.setSlowMode(this.topic.id,0).catch(o.popupAjaxError).then(()=>this.set("topic.slow_mode_seconds",0))}static #s=(()=>dt7948.n(this.prototype,"disableSlowMode",[n.action]))()}(0,s.setComponentTemplate)(c,u)},10329:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m,smallUserAttrs:()=>h});var s=i(80989),n=i(83133),r=i(98740),o=i(16717),a=i(94636),l=i(1799),c=i(87353),u=i(843),d=i(53653),p=i(85671);function h(e){let t={template:e.avatar_template,username:e.username,post_url:e.post_url,url:(0,c.userPath)(e.username_lower),unknown:e.unknown};return(0,l.applyValueTransformer)("small-user-attrs",t,{user:e})}class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get users(){let e=this.args.users;return this.args.addSelf&&!e.some(e=>e.username===this.currentUser.username)&&(e=e.concat(h(this.currentUser))),e}get postUrl(){let e=this.users.find(e=>e.post_url);if(e)return(0,a.default)(e)}static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"487/8Kpv",block:'[[[1,"\\n"],[41,[30,0,["users"]],[[[1," "],[8,[32,0],null,[["@name","@outletArgs"],["small-user-list-internal",[30,0,["args"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"clearfix small-user-list"],[17,1],[12],[1,"\\n "],[10,1],[14,0,"small-user-list-content"],[15,"aria-label",[30,2]],[14,"role","list"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["users"]]],null]],null],"username",[[[41,[30,3,["unknown"]],[[[1," "],[10,0],[15,"title",[28,[32,1],["post.unknown_user"],null]],[14,0,"unknown"],[14,"role","listitem"],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,3,["username"]]],[15,"title",[30,3,["username"]]],[14,"aria-hidden","false"],[14,"role","listitem"],[12],[1,"\\n "],[1,[28,[32,2],[[30,3,["template"]],"tiny"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[3]],null],[1,"\\n"],[41,[30,4],[[[41,[30,0,["postUrl"]],[[[1," "],[10,3],[15,6,[30,0,["postUrl"]]],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[14,0,"list-description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,4]],[["count"],[[30,5]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,"aria-hidden","true"],[14,0,"list-description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,4]],[["count"],[[30,5]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["&attrs","@ariaLabel","user","@description","@count"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/small-user-list.js",scope:()=>[r.default,u.i18n,o.default],isStrictMode:!0}),this))()}},92139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(35533),o=i(62053),a=i(83133),l=i(18638),c=i(81133),u=i(63748),d=i(77093),p=i(53306),h=i(843),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"messageBus",[a.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"session",[a.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #s=(()=>dt7948.g(this.prototype,"showPrompt",[n.tracked],function(){return!1}))();#oe=(()=>void dt7948.i(this,"showPrompt"))();static #l=(()=>dt7948.g(this.prototype,"animatePrompt",[n.tracked],function(){return!1}))();#ot=(()=>void dt7948.i(this,"animatePrompt"))();timeoutHandler;constructor(){super(...arguments),this.messageBus.subscribe("/refresh_client",this.onRefresh),this.messageBus.subscribe("/global/asset-version",this.onAsset)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe("/refresh_client",this.onRefresh),this.messageBus.unsubscribe("/global/asset-version",this.onAsset),(0,o.cancel)(this.timeoutHandler)}onRefresh(){this.session.requiresRefresh=!0}static #c=(()=>dt7948.n(this.prototype,"onRefresh",[u.bind]))();onAsset(e){this.session.assetVersion!==e&&(this.session.requiresRefresh=!0),!this.timeoutHandler&&this.session.requiresRefresh&&((0,d.isTesting)()?this.updatePromptState(!0):this.timeoutHandler=(0,p.default)(()=>this.updatePromptState(!0),864e5))}static #u=(()=>dt7948.n(this.prototype,"onAsset",[u.bind]))();updatePromptState(e){let t=e?"animatePrompt":"showPrompt";this[e?"showPrompt":"animatePrompt"]=e,(0,d.isTesting)()?this[t]=e:(0,p.default)(()=>this[t]=e,500)}refreshPage(){document.location.reload()}static #d=(()=>dt7948.n(this.prototype,"refreshPage",[r.action]))();dismiss(){this.updatePromptState(!1)}static #p=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #h=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"QfgYflau",block:'[[[1,"\\n"],[41,[30,0,["showPrompt"]],[[[1," "],[10,0],[15,0,[28,[32,0],["software-update-prompt",[52,[30,0,["animatePrompt"]],"require-software-refresh"]],null]],[12],[1,"\\n "],[10,0],[14,0,"wrap"],[12],[1,"\\n "],[10,0],[14,"aria-live","polite"],[14,0,"update-prompt-main-content"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-transparent update-prompt-message"]],[["@action","@icon","@label"],[[30,0,["refreshPage"]],"arrow-rotate-right","software_update_prompt.message"]],null],[1,"\\n\\n "],[10,1],[14,0,"update-prompt-dismiss"],[12],[1,"\\n "],[8,[32,1],[[16,"aria-label",[28,[32,2],["software_update_prompt.dismiss"],null]],[24,0,"btn-transparent"]],[["@action","@icon"],[[30,0,["dismiss"]],"xmark"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/software-update-prompt.js",scope:()=>[c.default,l.default,h.i18n],isStrictMode:!0}),this))()}},76061:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(72508);let n=(0,i(85671).createTemplateFactory)({id:"X41nyY3k",block:'[[[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[1,[28,[35,2],[[30,0,["category"]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"subcategory"],[12],[1,"\\n "],[8,[39,4],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[1,[28,[35,2],[[30,0,["category"]]],[["hideParent"],["true"]]]],[1,"\\n"],[41,[51,[30,0,["hideUnread"]]],[[[1," "],[8,[39,5],null,[["@category","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null]],[],false,["unless","if","category-link","span","category-title-before","category-unread"]]',moduleName:"discourse/components/sub-category-item.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},18555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(72508);let n=(0,i(85671).createTemplateFactory)({id:"+rAKeIvn",block:'[[[41,[51,[30,0,["isHidden"]]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[15,0,[29,["subcategory-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,5],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n "],[10,0],[14,0,"subcategories-list"],[12],[1,"\\n"],[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[12],[1,"\\n "],[8,[39,5],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,0],[14,0,"category-description subcategory-description"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@hideUnread","@listType"],[[30,2],"true",[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null]],["subcategory","subsubcategory"],false,["unless","if","tr","border-color","td","category-title-link","div","each","-track-array","sub-category-item","dir-span"]]',moduleName:"discourse/components/sub-category-row.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},22388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"KJCMvvCs",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["mobile-subcategories-with-featured-topics-list",[28,[37,4],null,[["category"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n "],[10,0],[14,0,"parent-category"],[12],[1,"\\n "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,8],[[30,1,["stat"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["serializedSubcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1," "],[8,[39,9],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["subcategories-with-featured-topics-list",[28,[37,4],null,[["category"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"parent-category"],[12],[1,"\\n "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,8],[[30,1,["stat"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,14],["categories.topics"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,14],["categories.latest"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["serializedSubcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@showTopics"],[[30,3],true]],null],[1,"\\n"]],[3]],[[[1," "],[8,[39,9],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[1]],null]],["category","subCategory","subCategory"],false,["each","-track-array","if","plugin-outlet","hash","div","category-title-link","span","html-safe","parent-category-row","table","thead","tr","th","i18n","tbody"]]',moduleName:"discourse/components/subcategories-with-featured-topics.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},49179:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(52333),o=i(17282),a=i(843),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get suggestedTitle(){return this.currentUser?.pmPath(this.args.topic)&&this.args.topic.isPrivateMessage?(0,a.i18n)("suggested_topics.pm_title"):(0,a.i18n)("suggested_topics.title")}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"RwoLwqVF",block:'[[[1,"\\n "],[10,0],[14,"role","complementary"],[14,"aria-labelledby","suggested-topics-title"],[14,1,"suggested-topics"],[14,0,"more-topics__list"],[12],[1,"\\n "],[8,[32,0],null,[["@id","@titleText","@contentText","@placement","@priority"],["suggested_topics",[28,[32,1],["user_tips.suggested_topics.title"],null],[28,[32,1],["user_tips.suggested_topics.content"],null],"top-start",700]],null],[1,"\\n\\n "],[10,"h3"],[14,1,"suggested-topics-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n "],[1,[30,0,["suggestedTitle"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topics"],[12],[1,"\\n"],[41,[30,1,["isPrivateMessage"]],[[[1," "],[8,[32,2],null,[["@topics","@hideCategory","@showPosters"],[[30,1,["suggestedTopics"]],true,true]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@topics"],[[30,1,["suggestedTopics"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/suggested-topics.js",scope:()=>[o.default,a.i18n,r.default],isStrictMode:!0}),this))()}},51752:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(99615),r=i(35533),o=i(62053),a=i(72738),l=i(843),c=i(53653),u=i(85671);class d extends s.default{get id(){return`table-header-toggle-${this.args.field.replace(/\s/g,"")}`}get labelKey(){return this.args.automatic||this.args.translated?this.args.labelKey:this.args.field}get ariaSort(){return this.args.order===this.args.field?this.args.asc?"ascending":"descending":"none"}get chevronIcon(){if(this.args.order===this.args.field)return this.args.asc?"chevron-up":"chevron-down"}get pressedState(){return this.args.order===this.args.field?this.args.asc?"mixed":"true":"false"}get ariaLabel(){let e="";if("heart"===this.args.icon&&(e+=`${(0,l.i18n)("likes_lowercase",{count:2})} `),this.args.translated)e+=this.args.field;else{let t=this.labelKey||`directory.${this.args.field}`;e+=(0,l.i18n)(`${t}_long`,{defaultValue:(0,l.i18n)(t)})}return(0,l.i18n)("directory.sort.label",{criteria:e})}get iconName(){return this.args.icon||null}get label(){let e=this.labelKey||`directory.${this.args.field}`;return this.args.translated?this.args.field:(0,l.i18n)(e+"_long",{defaultValue:(0,l.i18n)(e)})}toggleProperties(){let e=this.args.order===this.args.field&&!this.args.asc||null;this.args.onToggle?.(this.args.field,e),(0,o.schedule)("afterRender",()=>{document.getElementById(this.id)?.focus()})}static #e=(()=>dt7948.n(this.prototype,"toggleProperties",[r.action]))();click(){this.toggleProperties()}static #i=(()=>dt7948.n(this.prototype,"click",[r.action]))();keyPress(e){"Enter"===e.key&&this.toggleProperties()}static #s=(()=>dt7948.n(this.prototype,"keyPress",[r.action]))();static #l=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"xV7JbxEN",block:'[[[1,"\\n "],[11,0],[17,1],[24,0,"directory-table__column-header sortable"],[16,"aria-sort",[30,0,["ariaSort"]]],[24,"role","columnheader"],[4,[32,0],["click",[30,0,["click"]]],null],[4,[32,0],["keypress",[30,0,["keyPress"]]],null],[12],[1,"\\n "],[10,0],[14,0,"header-contents"],[15,1,[30,0,["id"]]],[14,"role","button"],[14,"tabindex","0"],[15,"aria-label",[30,0,["ariaLabel"]]],[15,"aria-pressed",[30,0,["pressedState"]]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,"\\n"],[41,[30,0,["iconName"]],[[[1," "],[1,[28,[32,1],[[30,0,["iconName"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,0,["label"]]],[1,"\\n"],[41,[30,0,["chevronIcon"]],[[[1," "],[1,[28,[32,1],[[30,0,["chevronIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/table-header-toggle.js",scope:()=>[n.on,a.default],isStrictMode:!0}),this))()}},81059:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(53653),n=i(35533),r=i(83133),o=i(75983),a=i(53397),l=i(63748),c=i(42496),u=i(54761),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"siSFKLkd",block:'[[[10,"section"],[14,0,"group-name"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.name_placeholder"],null]],[13],[1,"\\n "],[10,0],[12],[8,[39,4],null,[["@value"],[[30,0,["buffered","name"]]]],null],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-tags-list"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.tags_label"],null]],[13],[10,"br"],[12],[13],[1,"\\n "],[8,[39,6],null,[["@tags","@everyTag","@unlimitedTagCount","@excludeSynonyms","@options"],[[30,0,["buffered","tag_names"]],true,true,true,[28,[37,7],null,[["allowAny","filterPlaceholder"],[true,"tagging.groups.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"parent-tag-section"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.parent_tag_label"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,6],null,[["@tags","@everyTag","@excludeSynonyms","@options"],[[30,0,["buffered","parent_tag_name"]],true,true,[28,[37,7],null,[["allowAny","filterPlaceholder","maximum"],[true,"tagging.groups.parent_tag_placeholder",1]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[35,2],["tagging.groups.parent_tag_description"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-one-per-topic"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,8],[[24,3,"onepertopic"]],[["@type","@checked"],["checkbox",[30,0,["buffered","one_per_topic"]]]],null],[1,"\\n "],[1,[28,[35,2],["tagging.groups.one_per_topic_label"],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-visibility"],[12],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection"],["tag-permissions-choice","public","public-permission",[30,0,["buffered","permissionName"]]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","public-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.everyone_can_use"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection"],["tag-permissions-choice","visible","visible-permission",[30,0,["buffered","permissionName"]]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","visible-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.usable_only_by_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[8,[39,10],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,11],[[30,0],"setPermissionsGroups"],null],[28,[37,7],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection"],["tag-permissions-choice","private","private-permission",[30,0,["buffered","permissionName"]]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","private-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.visible_only_to_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[8,[39,10],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,11],[[30,0],"setPermissionsGroups"],null],[28,[37,7],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-group-controls"],[12],[1,"\\n "],[8,[39,12],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[28,[37,11],[[30,0],"save"],null],[30,0,["buffered","isSaving"]],"tagging.groups.save"]],null],[1,"\\n\\n "],[8,[39,12],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,0,["destroyTagGroup"]],[30,0,["buffered","isNew"]],"trash-can","tagging.groups.delete"]],null],[1,"\\n"],[13]],[],false,["section","label","i18n","div","text-field","br","tag-chooser","hash","input","radio-button","group-chooser","action","d-button"]]',moduleName:"discourse/components/tag-groups-form.hbs",isStrictMode:!1}),h=dt7948.c(class extends s.default.extend((0,c.bufferedProperty)("model")){static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();allGroups=this.site.groups.filter(e=>{let{id:t}=e;return 0!==t});selectedGroupIds(e){if(!e)return[];let t=[];for(let[i,s]of Object.entries(e)){let e=parseInt(i,10);0!==e&&s===u.default.FULL&&t.push(e)}return t}static #l=(()=>dt7948.n(this.prototype,"selectedGroupIds",[(0,l.default)("buffered.permissions")]))();setPermissionsGroups(e){let t={};e.forEach(e=>t[e]=u.default.FULL),this.buffered.set("permissions",t)}static #c=(()=>dt7948.n(this.prototype,"setPermissionsGroups",[n.action]))();save(){let e=this.buffered.getProperties("name","tag_names","parent_tag_name","one_per_topic","permissions");if((0,o.isEmpty)(e.name))return this.dialog.alert("tagging.groups.cannot_save.empty_name"),!1;if((0,o.isEmpty)(e.tag_names))return this.dialog.alert("tagging.groups.cannot_save.no_tags"),!1;e.permissions??={};let t=this.buffered.get("permissionName");if("public"===t)e.permissions={0:u.default.FULL};else if("visible"===t)e.permissions[0]=u.default.READONLY;else{if("private"!==t)return this.dialog.alert("tagging.groups.cannot_save.no_groups"),!1;delete e.permissions[0]}this.model.save(e).then(()=>this.onSave?.())}static #u=(()=>dt7948.n(this.prototype,"save",[n.action]))();destroyTagGroup(){return this.dialog.yesNoConfirm({message:(0,d.i18n)("tagging.groups.confirm_delete"),didConfirm:()=>this.model.destroyRecord().then(()=>this.onDestroy?.())})}static #d=(()=>dt7948.n(this.prototype,"destroyTagGroup",[n.action]))()},[(0,a.tagName)("")]),m=(0,s.setComponentTemplate)(p,h)},20259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(53653),n=i(35533),r=i(30574),o=i(83133),a=i(42256),l=i(75983),c=i(53397),u=i(6864),d=i(88355),p=i(63748),h=i(843);let m=(0,i(85671).createTemplateFactory)({id:"6bJ0pl6F",block:'[[[10,"section"],[14,0,"tag-info"],[12],[1,"\\n"],[41,[30,0,["tagInfo"]],[[[1," "],[10,0],[14,0,"tag-name"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,0],[14,0,"edit-tag-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@id","@value","@maxlength","@input","@autofocus"],["edit-name",[28,[37,4],[[30,0,["tagInfo","name"]]],null],[30,0,["siteSettings","max_tag_length"]],[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,["newTagName"]]],null]],null]],null],"true"]],null],[1,"\\n\\n "],[8,[39,8],[[24,1,"edit-description"],[16,"placeholder",[28,[37,9],["tagging.description"],null]],[16,"maxlength",1000],[24,"autofocus","true"],[4,[38,10],["input",[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,["newTagDescription"]]],null]],null]],null]],null]],[["@value"],[[28,[37,4],[[30,0,["tagInfo","descriptionWithNewLines"]]],null]]],null],[1,"\\n "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n"],[41,[51,[30,0,["updateDisabled"]]],[[[1," "],[8,[39,12],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"finishedEditing"],null],"check","tagging.save"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,12],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"cancelEditing"],null],"xmark","cancel"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"tag-name-wrapper"],[12],[1,"\\n "],[1,[28,[35,14],[[30,0,["tagInfo","name"]]],[["tagName"],["div"]]]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[11,3],[24,6,""],[24,0,"edit-tag"],[16,"title",[28,[37,9],["tagging.edit_tag"],null]],[4,[38,10],["click",[30,0,["edit"]]],null],[12],[1,[28,[35,16],["pencil"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["tagInfo","description"]],[[[1," "],[10,0],[14,0,"tag-description-wrapper"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,18],[[30,0,["tagInfo","description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"tag-associations"],[12],[41,[30,0,["tagInfo","tag_group_names"]],[[[1," "],[1,[30,0,["tagGroupsInfo"]]],[1,"\\n"]],[]],null],[41,[30,0,["tagInfo","categories"]],[[[1," "],[1,[30,0,["categoriesInfo"]]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"],[42,[28,[37,21],[[28,[37,21],[[30,0,["tagInfo","categories"]]],null]],null],null,[[[1," "],[1,[28,[35,22],[[30,1]],null]],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["nothingToShow"]],[[[41,[30,0,["tagInfo","category_restricted"]],[[[1," "],[1,[28,[35,9],["tagging.category_restricted"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,18],[[28,[37,9],["tagging.default_info"],null]],null]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[1,[28,[35,18],[[28,[37,9],["tagging.staff_info"],[["basePath"],[[28,[37,23],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]]],[]],null],[13],[1,"\\n"],[41,[30,0,["tagInfo","synonyms"]],[[[1," "],[10,0],[14,0,"synonyms-list"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,9],["tagging.synonyms"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,18],[[28,[37,9],["tagging.synonyms_description"],[["base_tag_name"],[[30,0,["tagInfo","name"]]]]]],null]],[13],[1,"\\n "],[10,0],[14,0,"tag-list"],[12],[1,"\\n"],[42,[28,[37,21],[[28,[37,21],[[30,0,["tagInfo","synonyms"]]],null]],null],null,[[[1," "],[10,0],[14,0,"tag-box"],[12],[1,"\\n "],[1,[28,[35,14],[[30,2,["id"]]],[["pmOnly","tagName"],[[30,2,["pmOnly"]],"div"]]]],[1,"\\n"],[41,[30,0,["editSynonymsMode"]],[[[1," "],[11,3],[24,6,""],[24,0,"unlink-synonym"],[4,[38,10],["click",[28,[37,6],[[30,0,["unlinkSynonym"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,16],["link-slash"],[["title"],["tagging.remove_synonym"]]]],[1,"\\n "],[13],[1,"\\n "],[11,3],[24,6,""],[24,0,"delete-synonym"],[4,[38,10],["click",[28,[37,6],[[30,0,["deleteSynonym"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,16],["trash-can"],[["title"],["tagging.delete_tag"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["editSynonymsMode"]],[[[1," "],[10,"section"],[14,0,"add-synonyms field"],[12],[1,"\\n "],[10,"label"],[14,"for","add-synonyms"],[12],[1,[28,[35,9],["tagging.add_synonyms_label"],null]],[13],[1,"\\n "],[10,0],[14,0,"add-synonyms__controls"],[12],[1,"\\n "],[8,[39,26],null,[["@id","@tags","@blockedTags","@everyTag","@excludeSynonyms","@excludeHasSynonyms","@unlimitedTagCount","@allowCreate"],["add-synonyms",[30,0,["newSynonyms"]],[28,[37,27],[[30,0,["tagInfo","name"]]],null],true,true,true,true,true]],null],[1,"\\n"],[41,[30,0,["newSynonyms"]],[[[1," "],[8,[39,12],[[24,0,"ok"]],[["@action","@disabled","@icon"],[[28,[37,13],[[30,0],"addSynonyms"],null],[30,0,["addSynonymsDisabled"]],"check"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canAdminTag"]],[[[1," "],[8,[39,28],null,[["@name","@outletArgs","@connectorTagName"],["tag-custom-settings",[28,[37,29],null,[["tag"],[[30,0,["tagInfo"]]]]],"section"]],null],[1,"\\n\\n "],[10,0],[14,0,"tag-actions"],[12],[1,"\\n "],[8,[39,12],[[24,1,"edit-synonyms"],[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,13],[[30,0],"toggleEditControls"],null],"gear","tagging.edit_synonyms"]],null],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[8,[39,12],[[24,1,"delete-tag"],[24,0,"btn-danger delete-tag"]],[["@action","@icon","@label"],[[28,[37,13],[[30,0],"deleteTag"],null],"trash-can","tagging.delete_tag"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["loading"]],[[[1," "],[10,0],[12],[1,[28,[35,9],["loading"],null]],[13],[1,"\\n"]],[]],null],[13]],["category","tag"],false,["section","if","div","text-field","readonly","with-event-value","fn","mut","textarea","i18n","on","unless","d-button","action","discourse-tag","a","d-icon","span","html-safe","br","each","-track-array","category-link","base-path","h3","label","tag-chooser","array","plugin-outlet","hash"]]',moduleName:"discourse/components/tag-info.hbs",isStrictMode:!1}),g=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();loading=!1;tagInfo=null;newSynonyms=null;showEditControls=!1;editing=!1;newTagName=null;newTagDescription=null;static #s=(()=>dt7948.g(this.prototype,"canAdminTag",[(0,r.reads)("currentUser.staff")]))();#oi=(()=>void dt7948.i(this,"canAdminTag"))();static #l=(()=>dt7948.g(this.prototype,"editSynonymsMode",[(0,r.and)("canAdminTag","showEditControls")]))();#os=(()=>void dt7948.i(this,"editSynonymsMode"))();tagGroupsInfo(e){return(0,h.i18n)("tagging.tag_groups_info",{count:e.length,tag_groups:e.join(", ")})}static #c=(()=>dt7948.n(this.prototype,"tagGroupsInfo",[(0,p.default)("tagInfo.tag_group_names")]))();categoriesInfo(e){return(0,h.i18n)("tagging.category_restrictions",{count:e.length})}static #u=(()=>dt7948.n(this.prototype,"categoriesInfo",[(0,p.default)("tagInfo.categories")]))();nothingToShow(e,t,i){return(0,l.isEmpty)(e)&&(0,l.isEmpty)(t)&&(0,l.isEmpty)(i)}static #d=(()=>dt7948.n(this.prototype,"nothingToShow",[(0,p.default)("tagInfo.tag_group_names","tagInfo.categories","tagInfo.synonyms")]))();updateDisabled(e){let t=RegExp(this.site.tags_filter_regexp,"g");return 0===(e=e?e.replace(t,"").trim():"").length}static #p=(()=>dt7948.n(this.prototype,"updateDisabled",[(0,p.default)("newTagName")]))();didInsertElement(){super.didInsertElement(...arguments),this.loadTagInfo()}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this.set("tagInfo",null),this.loadTagInfo()}loadTagInfo(){if(!this.loading)return this.set("loading",!0),this.store.find("tag-info",this.tag.id).then(e=>{this.set("tagInfo",e),this.set("tagInfo.synonyms",e.synonyms.map(e=>this.store.createRecord("tag",e)))}).finally(()=>this.set("loading",!1)).catch(d.popupAjaxError)}edit(e){e?.preventDefault(),this.tagInfo.set("descriptionWithNewLines",this.tagInfo.description?.replaceAll("
","\n")),this.setProperties({editing:!0,newTagName:this.tag.id,newTagDescription:this.tagInfo.description})}static #h=(()=>dt7948.n(this.prototype,"edit",[n.action]))();unlinkSynonym(e,t){t?.preventDefault(),(0,u.ajax)(`/tag/${this.tagInfo.name}/synonyms/${e.id}`,{type:"DELETE"}).then(()=>this.tagInfo.synonyms.removeObject(e)).catch(d.popupAjaxError)}static #m=(()=>dt7948.n(this.prototype,"unlinkSynonym",[n.action]))();deleteSynonym(e,t){t?.preventDefault(),this.dialog.yesNoConfirm({message:(0,h.i18n)("tagging.delete_synonym_confirm",{tag_name:e.text}),didConfirm:()=>e.destroyRecord().then(()=>this.tagInfo.synonyms.removeObject(e)).catch(d.popupAjaxError)})}static #g=(()=>dt7948.n(this.prototype,"deleteSynonym",[n.action]))();toggleEditControls(){this.toggleProperty("showEditControls")}static #A=(()=>dt7948.n(this.prototype,"toggleEditControls",[n.action]))();cancelEditing(){this.set("editing",!1)}static #E=(()=>dt7948.n(this.prototype,"cancelEditing",[n.action]))();finishedEditing(){let e=this.tag.id;this.newTagDescription=this.newTagDescription?.replaceAll("\n","
"),this.tag.update({id:this.newTagName,description:this.newTagDescription}).then(t=>{this.set("editing",!1),this.tagInfo.set("description",this.newTagDescription),t.responseJson.tag&&e!==t.responseJson.tag.id&&this.router.transitionTo("tag.show",t.responseJson.tag.id)}).catch(d.popupAjaxError)}static #D=(()=>dt7948.n(this.prototype,"finishedEditing",[n.action]))();deleteTag(){let e=this.get("list.topic_list.tags.firstObject.topic_count")||0,t=0===e?(0,h.i18n)("tagging.delete_confirm_no_topics"):(0,h.i18n)("tagging.delete_confirm",{count:e});this.tagInfo.synonyms.length>0&&(t+=" "+(0,h.i18n)("tagging.delete_confirm_synonyms",{count:this.tagInfo.synonyms.length})),this.dialog.deleteConfirm({message:t,didConfirm:async()=>{try{await this.tag.destroyRecord(),this.router.transitionTo("tags.index")}catch{this.dialog.alert((0,h.i18n)("generic_error"))}}})}static #P=(()=>dt7948.n(this.prototype,"deleteTag",[n.action]))();addSynonyms(){this.dialog.confirm({message:(0,a.htmlSafe)((0,h.i18n)("tagging.add_synonyms_explanation",{count:this.newSynonyms.length,tag_name:this.tagInfo.name})),didConfirm:()=>(0,u.ajax)(`/tag/${this.tagInfo.name}/synonyms`,{type:"POST",data:{synonyms:this.newSynonyms}}).then(e=>{e.success?(this.set("newSynonyms",null),this.loadTagInfo()):e.failed_tags?this.dialog.alert((0,h.i18n)("tagging.add_synonyms_failed",{tag_names:Object.keys(e.failed_tags).join(", ")})):this.dialog.alert((0,h.i18n)("generic_error"))}).catch(d.popupAjaxError)})}static #Q=(()=>dt7948.n(this.prototype,"addSynonyms",[n.action]))()},[(0,c.tagName)("")]),f=(0,s.setComponentTemplate)(m,g)},17347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(30574),r=i(53397),o=i(63748),a=i(1559),l=i(843);let c=(0,i(85671).createTemplateFactory)({id:"vey2MO5r",block:'[[[41,[30,0,["title"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["category"]],[[[1," "],[8,[39,2],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["tagGroupName"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["tagGroupName"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,4],[[28,[37,4],[[30,0,["sortedTags"]]],null]],null],null,[[[1," "],[10,0],[14,0,"tag-box"],[12],[1,"\\n "],[1,[28,[35,6],[[30,1,["id"]]],[["description","isPrivateMessage","pmOnly","tagsForUser"],[[30,1,["description"]],[30,0,["isPrivateMessage"]],[30,1,["pmOnly"]],[30,0,["tagsForUser"]]]]]],[1,"\\n"],[41,[30,1,["pmOnly"]],[[[1," "],[1,[28,[35,7],["envelope"],null]],[1,"\\n"]],[]],null],[41,[30,1,["totalCount"]],[[[1," "],[10,1],[14,0,"tag-count"],[12],[1,"\\n x\\n "],[1,[30,1,["totalCount"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13]],["tag"],false,["if","h3","category-title-link","each","-track-array","div","discourse-tag","d-icon","span"]]',moduleName:"discourse/components/tag-list.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{isPrivateMessage=!1;static #e=(()=>dt7948.g(this.prototype,"sortedTags",[(0,n.sort)("tags","sortProperties")]))();#on=(()=>void dt7948.i(this,"sortedTags"))();title(e){return e&&(0,l.i18n)(e)}static #i=(()=>dt7948.n(this.prototype,"title",[(0,o.default)("titleKey")]))();category(e){return e&&a.default.findById(e)}static #s=(()=>dt7948.n(this.prototype,"category",[(0,o.default)("categoryId")]))();categoryClass(e){return e&&`tag-list-${e}`}static #l=(()=>dt7948.n(this.prototype,"categoryClass",[(0,o.default)("category.fullSlug")]))();tagGroupNameClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`tag-group-${e}`}static #c=(()=>dt7948.n(this.prototype,"tagGroupNameClass",[(0,o.default)("tagGroupName")]))()},[(0,r.classNameBindings)(":tags-list",":tag-list","categoryClass","tagGroupNameClass")]),d=(0,s.setComponentTemplate)(c,u)},56684:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75099),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"gJ+QbK0n",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"tag-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix"],[[30,1],[30,2],false,false,"tagging.notifications"]],null],[1,"\\n"]],["@onChange","@levelId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/tag-notifications-tracking.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"tag-notifications-tracking:TagNotificationsTracking"))},17798:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{actionsMapping=null;get content(){return[{id:"manageGroups",name:(0,r.i18n)("tagging.manage_groups"),description:(0,r.i18n)("tagging.manage_groups_description"),icon:"tags"},{id:"uploadTags",name:(0,r.i18n)("tagging.upload"),description:(0,r.i18n)("tagging.upload_description"),icon:"upload"},{id:"deleteUnusedTags",name:(0,r.i18n)("tagging.delete_unused"),description:(0,r.i18n)("tagging.delete_unused_description"),icon:"trash-can"}]}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){this.actionsMapping[e]?.()}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.pluginApiIdentifiers)("tags-admin-dropdown"),(0,a.selectKitOptions)({icons:["wrench","caret-down"],showFullTitle:!1}),(0,n.classNames)("tags-admin-dropdown")])},78569:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"Jm6vymle",block:'[[[18,1,[[28,[37,1],null,[["activeTile"],[[30,0,["activeTile"]]]]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/tap-tile-grid.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{activeTile=null},[(0,n.classNames)("tap-tile-grid")]),a=(0,s.setComponentTemplate)(r,o)},43503:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(30574),r=i(53397),o=i(82805);let a=(0,i(85671).createTemplateFactory)({id:"YzzhQB97",block:'[[[41,[30,0,["icon"]],[[[1," "],[1,[28,[35,1],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[18,1,null]],["&default"],false,["if","d-icon","yield"]]',moduleName:"discourse/components/tap-tile.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{role="button";tabIndex=0;static #e=(()=>dt7948.g(this.prototype,"ariaPressed",[(0,n.reads)("active")]))();#or=(()=>void dt7948.i(this,"ariaPressed"))();static #i=(()=>dt7948.g(this.prototype,"active",[(0,o.propertyEqual)("activeTile","tileId")]))();#e7=(()=>void dt7948.i(this,"active"))();init(){super.init(...arguments),this.set("elementId",`tap_tile_${this.tileId}`)}click(){this.onChange(this.tileId)}keyDown(e){"Enter"===e.key&&(e.stopPropagation(),this.onChange(this.tileId))}},[(0,r.attributeBindings)("role","ariaPressed","tabIndex"),(0,r.classNameBindings)("active"),(0,r.classNames)("tap-tile")]),c=(0,s.setComponentTemplate)(a,l)},39131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(69302),n=i(35533),r=i(62053),o=i(53397),a=i(46301),l=i(843);let c=dt7948.c(class extends s.TextField{_prevValue=null;_timer=null;didReceiveAttrs(){super.didReceiveAttrs(...arguments),this._prevValue=this.value}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._prevValue!==this.value&&(this.onChangeImmediate&&(0,r.next)(()=>this.onChangeImmediate(this.value)),this.onChange&&((0,r.cancel)(this._timer),this._timer=(0,a.default)(this,this._debouncedChange,500)))}_debouncedChange(){(0,r.next)(()=>this.onChange(this.value))}get dir(){if(this.siteSettings.support_mixed_text_direction)return"auto"}willDestroyElement(){super.willDestroyElement(...arguments),(0,r.cancel)(this._timer)}get placeholder(){return this._placeholder?this._placeholder:this.placeholderKey?(0,l.i18n)(this.placeholderKey):""}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,n.computed)("placeholderKey","_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}},[(0,o.attributeBindings)("autocorrect","autocapitalize","autofocus","maxLength","dir","aria-label","aria-controls")])},6557:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(843),r=i(53653),o=i(85671);class a extends s.default{get description(){let e=this.args.daysSince;if(e<30)return(0,n.i18n)("dates.later.x_days",{count:e});if(e<365){let t=Math.round(e/30);return(0,n.i18n)("dates.later.x_months",{count:t})}{let t=Math.round(e/365);return(0,n.i18n)("dates.later.x_years",{count:t})}}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"BCAhebOI",block:'[[[1,"\\n "],[10,0],[14,0,"topic-avatar"],[12],[13],[1,"\\n "],[10,0],[14,0,"small-action-desc timegap"],[12],[1,"\\n "],[1,[30,0,["description"]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/time-gap.js",isStrictMode:!0}),this))()}},55060:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(42256),o=i(75983),a=i(53397);let l=(0,i(85671).createTemplateFactory)({id:"DcLZyXCT",block:'[[[8,[39,0],null,[["@value","@content","@onChange","@options"],[[30,0,["time"]],[30,0,["timeOptions"]],[28,[37,1],[[30,0],"onChangeTime"],null],[28,[37,2],null,[["translatedNone","allowAny","filterable","autoInsertNoneItem","translatedFilterPlaceholder"],["--:--",true,false,false,"--:--"]]]]],null]],[],false,["combo-box","action","hash"]]',moduleName:"discourse/components/time-input.hbs",isStrictMode:!1});function c(e){return{hours:Math.floor(e/60),minutes:e%60}}let u=dt7948.c(class extends s.default{hours=null;minutes=null;relativeDate=null;didReceiveAttrs(){super.didReceiveAttrs(...arguments),(0,o.isPresent)(this.date)&&this.setProperties({hours:this.date.hours(),minutes:this.date.minutes()}),(0,o.isPresent)(this.date)||(0,o.isPresent)(this.hours)||(0,o.isPresent)(this.minutes)||this.setProperties({hours:null,minutes:null})}get minimumTime(){if(this.relativeDate)return this.date?this.date.isSame(this.relativeDate,"day")?60*this.relativeDate.hours()+this.relativeDate.minutes():0:60*this.relativeDate.hours()+this.relativeDate.minutes()}static #e=(()=>dt7948.n(this.prototype,"minimumTime",[(0,n.computed)("relativeDate","date")]))();get timeOptions(){let e=[],t=this.minimumTime?this.minimumTime>this.time?this.time:this.minimumTime:0,i=0,s=t;for(e.push(s);i<95&&!((s+=this.minimumTime?i<=3?15:30:15)>1440);)e.push(s),i++;return this.time&&!e.includes(this.time)&&(e=[this.time].concat(e)),(e=e.sort((e,t)=>e-t)).map(e=>{let t,i=function(e){let t=c(e);return`${t.hours.toString().padStart(2,"0")}:${t.minutes.toString().padStart(2,"0")}`}(e);if(this.date&&this.relativeDate){let s=this.date.clone().startOf("day").add(e,"minutes").diff(this.relativeDate,"minutes");s<1440&&(t=(0,r.htmlSafe)(`${i} (${function(e){let t=c(e),i="";return t.hours?(i=`${t.hours}h`,t.minutes>0&&(i=`${i} ${t.minutes} min`)):i=`${t.minutes} min`,i}(s)})`))}return{id:e,name:i,label:t,title:i}})}static #i=(()=>dt7948.n(this.prototype,"timeOptions",[(0,n.computed)("minimumTime","hours","minutes")]))();get time(){if((0,o.isPresent)(this.hours)&&(0,o.isPresent)(this.minutes))return 60*parseInt(this.hours,10)+parseInt(this.minutes,10)}static #s=(()=>dt7948.n(this.prototype,"time",[(0,n.computed)("minimumTime","hours","minutes")]))();onFocusIn(e,t){e&&t.target&&t.target.select()}static #l=(()=>dt7948.n(this.prototype,"onFocusIn",[n.action]))();onChangeTime(e){if((0,o.isPresent)(e)&&this.onChange){if("string"==typeof e&&e.length){let[t,i]=e.split(":");t&&i&&(t<0&&(t=0),t>23&&(t=23),i<0&&(i=0),i>59&&(i=59),this.onChange({hours:parseInt(t,10),minutes:parseInt(i,10)}))}else this.onChange({hours:c(e).hours,minutes:c(e).minutes})}}static #c=(()=>dt7948.n(this.prototype,"onChangeTime",[n.action]))()},[(0,a.classNames)("d-time-input")]),d=(0,s.setComponentTemplate)(l,u)},6078:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(53653),n=i(35533),r=i(30574),o=i(53397),a=i(42064),l=i(63748),c=i(66914),u=i(3211),d=i(843);let p=(0,i(85671).createTemplateFactory)({id:"BkOHBLFk",block:'[[[8,[39,0],null,[["@activeTile"],[[30,0,["selectedShortcut"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["options"]]],null]],null],"id",[[[41,[51,[30,2,["hidden"]]],[[[1," "],[8,[39,4],null,[["@tileId","@activeTile","@onChange"],[[30,2,["id"]],[30,1,["activeTile"]],[28,[37,5],[[30,0],"selectShortcut"],null]]],[["default"],[[[[1,"\\n\\n "],[10,0],[14,0,"tap-tile-title"],[12],[1,[28,[35,7],[[30,2,["label"]]],null]],[13],[1,"\\n "],[10,0],[14,0,"tap-tile-date"],[12],[1,[30,2,["timeFormatted"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["isCustomTimeShortcut"]],[[[41,[30,0,["customDatetimeSelected"]],[[[1," "],[10,0],[14,0,"control-group custom-date-time-wrap custom-input-wrap"],[12],[1,"\\n "],[10,0],[14,0,"tap-tile-date-input"],[12],[1,"\\n "],[1,[28,[35,9],["calendar-days"],null]],[1,"\\n "],[8,[39,10],null,[["@value","@defaultDate","@onSelect","@id"],[[30,0,["customDate"]],[30,0,["defaultCustomDate"]],[28,[37,11],[[28,[37,12],[[30,0,["customDate"]]],null]],null],"custom-date"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"tap-tile-time-input"],[12],[1,"\\n "],[1,[28,[35,9],["far-clock"],null]],[1,"\\n "],[8,[39,13],[[24,"placeholder","--:--"],[24,1,"custom-time"],[24,0,"time-input"]],[["@type","@value"],["time",[30,0,["customTime"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"control-group custom-date-time-wrap custom-relative-wrap"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark-relative-time-picker"],[12],[1,"\\n "],[1,[28,[35,7],["relative_time_picker.relative"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,15],[[24,1,"bookmark-relative-time-picker"]],[["@durationMinutes","@onChange"],[[30,0,["selectedDurationMins"]],[30,0,["relativeTimeChanged"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[2]],null]],[1]]]]]],["grid","option"],false,["tap-tile-grid","each","-track-array","unless","tap-tile","action","div","i18n","if","d-icon","date-picker-future","fn","mut","input","label","relative-time-picker"]]',moduleName:"discourse/components/time-shortcut-picker.hbs",isStrictMode:!1}),h={"l t":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.LATER_TODAY]},"l w":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]},"n d":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.TOMORROW]},"n b w":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.START_OF_NEXT_BUSINESS_WEEK]},"n m":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.NEXT_MONTH]},"c r":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.CUSTOM]},"n r":{handler:"selectShortcut",args:[c.TIME_SHORTCUT_TYPES.NONE]}},m=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"customDatetimeSelected",[(0,r.equal)("selectedShortcut",c.TIME_SHORTCUT_TYPES.CUSTOM)]))();#oo=(()=>void dt7948.i(this,"customDatetimeSelected"))();static #i=(()=>dt7948.g(this.prototype,"relativeTimeSelected",[(0,r.equal)("selectedShortcut",c.TIME_SHORTCUT_TYPES.RELATIVE)]))();#oa=(()=>void dt7948.i(this,"relativeTimeSelected"))();static #s=(()=>dt7948.g(this.prototype,"customDatetimeFilled",[(0,r.and)("customDate","customTime")]))();#ol=(()=>void dt7948.i(this,"customDatetimeFilled"))();userTimezone=null;onTimeSelected=null;selectedShortcut=null;selectedTime=null;selectedDate=null;selectedDatetime=null;prefilledDatetime=null;selectedDurationMins=null;hiddenOptions=null;customOptions=null;lastCustomDate=null;lastCustomTime=null;parsedLastCustomDatetime=null;customDate=null;customTime=null;_itsatrap=null;_setupPicker(){this.setProperties({userTimezone:this.currentUser.user_option.timezone,hiddenOptions:this.hiddenOptions||[],customOptions:this.customOptions||[],customLabels:this.customLabels||{}}),this.prefilledDatetime&&this.parsePrefilledDatetime(),this._bindKeyboardShortcuts()}static #l=(()=>dt7948.n(this.prototype,"_setupPicker",[(0,a.on)("init")]))();prefilledDatetimeChanged(){this.prefilledDatetime?this.parsePrefilledDatetime():this.setProperties({customDate:null,customTime:null,selectedShortcut:null})}static #c=(()=>dt7948.n(this.prototype,"prefilledDatetimeChanged",[(0,a.observes)("prefilledDatetime")]))();willDestroyElement(){super.willDestroyElement(...arguments),this._itsatrap.unbind(Object.keys(h))}parsePrefilledDatetime(){let e=(0,u.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone);if(e.isSame((0,u.laterToday)()))return this.set("selectedShortcut",c.TIME_SHORTCUT_TYPES.LATER_TODAY);this.setProperties({customDate:e.format("YYYY-MM-DD"),customTime:e.format("HH:mm"),selectedShortcut:c.TIME_SHORTCUT_TYPES.CUSTOM})}_loadLastUsedCustomDatetime(){let e=this.keyValueStore.lastCustomTime,t=this.keyValueStore.lastCustomDate;if(e&&t){let i=(0,u.parseCustomDatetime)(t,e,this.userTimezone);if(!i.isValid()||i<(0,u.now)(this.userTimezone))return;this.setProperties({lastCustomDate:t,lastCustomTime:e,parsedLastCustomDatetime:i})}}_bindKeyboardShortcuts(){Object.keys(h).forEach(e=>{this._itsatrap.bind(e,()=>{let t=h[e];return this.send(t.handler,...t.args),!1})})}customDatetimeChanged(){this.customDatetimeFilled&&this.selectShortcut(c.TIME_SHORTCUT_TYPES.CUSTOM)}static #u=(()=>dt7948.n(this.prototype,"customDatetimeChanged",[(0,a.observes)("customDate","customTime")]))();options(e,t,i,s){let n;this._loadLastUsedCustomDatetime(),n=e&&e.length?e:(0,c.defaultTimeShortcuts)(s),n=(0,c.hideDynamicTimeShortcuts)(n,s,this.siteSettings);let r=(0,c.specialShortcutOptions)();if(this.lastCustomDate&&this.lastCustomTime){let e=r.findBy("id",c.TIME_SHORTCUT_TYPES.LAST_CUSTOM);e.time=this.parsedLastCustomDatetime,e.timeFormatKey="dates.long_no_year",e.hidden=!1}return n=n.concat(r),t.length>0&&n.forEach(e=>{t.includes(e.id)&&(e.hidden=!0)}),this._applyCustomLabels(n,i),n.forEach(e=>e.timeFormatted=(0,c.formatTime)(e)),n}static #d=(()=>dt7948.n(this.prototype,"options",[(0,l.default)("timeShortcuts","hiddenOptions","customLabels","userTimezone")]))();relativeTimeChanged(e){let t=(0,u.now)(this.userTimezone).add(e,"minutes");this.setProperties({selectedDurationMins:e,selectedDatetime:t}),this.onTimeSelected?.(c.TIME_SHORTCUT_TYPES.RELATIVE,t)}static #p=(()=>dt7948.n(this.prototype,"relativeTimeChanged",[n.action]))();selectShortcut(e){if(this.options.filterBy("hidden").mapBy("id").includes(e))return;let t=null;if(e===c.TIME_SHORTCUT_TYPES.CUSTOM){let e=this._defaultCustomDateTime();this.set("customDate",this.customDate||e.format("YYYY-MM-DD")),this.set("customTime",this.customTime||e.format("HH:mm"));let i=(0,u.parseCustomDatetime)(this.customDate,this.customTime,this.userTimezone);i.isValid()&&this.customDate&&(t=i,this.keyValueStore.lastCustomTime=this.customTime,this.keyValueStore.lastCustomDate=this.customDate)}else t=this.options.findBy("id",e).time;this.setProperties({selectedShortcut:e,selectedDatetime:t}),this.onTimeSelected&&this.onTimeSelected(e,t)}static #h=(()=>dt7948.n(this.prototype,"selectShortcut",[n.action]))();_applyCustomLabels(e,t){e.forEach(e=>{t[e.id]&&(e.label=t[e.id])})}_formatTime(e){e.forEach(e=>{e.time&&e.timeFormatKey&&(e.timeFormatted=e.time.format((0,d.i18n)(e.timeFormatKey)))})}_defaultCustomDateTime(){return moment.tz(this.userTimezone).add(1,"hour")}},[(0,o.tagName)("")]),g=(0,s.setComponentTemplate)(p,m)},76994:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"xOCit7W1",block:'[[[8,[39,0],[[24,0,"btn-transparent toggle-password-mask"]],[["@action","@icon","@title"],[[30,1],[52,[30,2],"far-eye","far-eye-slash"],[52,[30,2],"login.show_password_title","login.hide_password_title"]]],null]],["@togglePasswordMask","@maskPassword"],false,["d-button","if"]]',moduleName:"discourse/components/toggle-password-mask.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"toggle-password-mask"))},20967:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){return[{id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")},{id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}]}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){switch(e){case"edit":this.editSecondFactor(this.totp);break;case"disable":this.disableSingleSecondFactor(this.totp)}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("token-based-auth-dropdown")])},88273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(35533),r=i(53397),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"k1TABCMA",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["periods"]]],null]],null],null,[[[1," "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["changePeriod"]],[30,1]],null],[28,[37,4],[[30,1]],null]]],null],[1,"\\n"]],[1]],null]],["p"],false,["each","-track-array","d-button","fn","period-title"]]',moduleName:"discourse/components/top-period-buttons.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{periods(e){return this.site.get("periods").filter(t=>t!==e)}static #e=(()=>dt7948.n(this.prototype,"periods",[(0,o.default)("period")]))();changePeriod(e){this.action(e)}static #i=(()=>dt7948.n(this.prototype,"changePeriod",[n.action]))()},[(0,r.classNames)("top-title-buttons")]),c=(0,s.setComponentTemplate)(a,l)},68830:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(35533),o=i(83133),a=i(81329),l=i(18638),c=i(82698),u=i(81133),d=i(72738),p=i(94636),h=i(12610),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"adminTopicMenuButtons",[o.service]))();#oc=(()=>void dt7948.i(this,"adminTopicMenuButtons"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();onRegisterApi(e){this.dMenu=e}static #s=(()=>dt7948.n(this.prototype,"onRegisterApi",[r.action]))();async onButtonAction(e){await this.dMenu.close(),this.args[e]?.()}static #l=(()=>dt7948.n(this.prototype,"onButtonAction",[r.action]))();async onExtraButtonAction(e){await this.dMenu.close(),e?.()}static #c=(()=>dt7948.n(this.prototype,"onExtraButtonAction",[r.action]))();get extraButtons(){return this.adminTopicMenuButtons.callbacks.map(e=>e(this.args.topic)).filter(Boolean)}get details(){return this.args.topic.get("details")}get isPrivateMessage(){return this.args.topic.get("isPrivateMessage")}get featured(){return!!this.args.topic.get("pinned_at")||this.args.topic.get("isBanner")}get visible(){return this.args.topic.get("visible")}get canDelete(){return this.details.get("can_delete")}get canRecover(){return this.details.get("can_recover")}get archived(){return this.args.topic.get("archived")}get topicModerationHistoryUrl(){return(0,p.default)(`/review?topic_id=${this.args.topic.id}&status=all`)}get showAdminButton(){return this.currentUser?.canManageTopic||this.details?.can_archive_topic||this.details?.can_close_topic||this.details?.can_split_merge_topic}static #u=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"usevtWUl",block:'[[[1,"\\n"],[41,[30,0,["showAdminButton"]],[[[1," "],[8,[32,0],null,[["@identifier","@onRegisterApi","@modalForMobile","@autofocus","@triggerClass"],["topic-admin-menu",[30,0,["onRegisterApi"]],true,true,"btn-default btn-icon toggle-admin-menu"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,1],["wrench"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","canManageTopic"]],[30,0,["details","can_split_merge_topic"]]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-multi-select"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.multi_select",[28,[32,5],[[30,0,["onButtonAction"]],"toggleMultiSelect"],null],"list-check"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","canManageTopic"]],[30,0,["details","can_moderate_category"]]],null],[[[41,[30,0,["canDelete"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-delete"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],[[24,0,"popup-menu-btn-danger btn-danger"]],[["@label","@action","@icon"],["topic.actions.delete",[28,[32,5],[[30,0,["onButtonAction"]],"deleteTopic"],null],"trash-can"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["canRecover"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-recover"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.recover",[28,[32,5],[[30,0,["onButtonAction"]],"recoverTopic"],null],"arrow-rotate-left"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["details","can_close_topic"]],[[[1," "],[8,[30,1,["item"]],[[16,0,[52,[30,2,["closed"]],"topic-admin-open","topic-admin-close"]]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,2,["closed"]],"topic.actions.open","topic.actions.close"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleClosed"],null],[52,[30,2,["closed"]],"unlock","lock"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_pin_unpin_topic"]],[28,[32,7],[[30,0,["isPrivateMessage"]]],null],[28,[32,3],[[30,0,["visible"]],[30,0,["featured"]]],null]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-pin"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["featured"]],"topic.actions.unpin","topic.actions.pin"],[28,[32,5],[[30,0,["onButtonAction"]],"showFeatureTopic"],null],"thumbtack"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_archive_topic"]],[28,[32,7],[[30,0,["isPrivateMessage"]]],null]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-archive"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["archived"]],"topic.actions.unarchive","topic.actions.archive"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleArchived"],null],"folder"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["details","can_toggle_topic_visibility"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-visible"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["visible"]],"topic.actions.invisible","topic.actions.visible"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleVisibility"],null],[52,[30,0,["visible"]],"far-eye-slash","far-eye"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_convert_topic"]]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-convert"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["isPrivateMessage"]],"topic.actions.make_public","topic.actions.make_private"],[28,[32,5],[[30,0,["onButtonAction"]],[52,[30,0,["isPrivateMessage"]],"convertToPublicTopic","convertToPrivateMessage"]],null],[52,[30,0,["isPrivateMessage"]],"comment","envelope"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","canManageTopic"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"admin-topic-timer-update"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.timed_update",[28,[32,5],[[30,0,["onButtonAction"]],"showTopicTimerModal"],null],"far-clock"]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-change-timestamp"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.change_timestamp.title",[28,[32,5],[[30,0,["onButtonAction"]],"showChangeTimestamp"],null],"calendar-days"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["item"]],[[24,0,"topic-admin-reset-bump-date"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.reset_bump_date",[28,[32,5],[[30,0,["onButtonAction"]],"resetBumpDate"],null],"anchor"]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,1,["item"]],[[24,0,"topic-admin-slow-mode"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.slow_mode",[28,[32,5],[[30,0,["onButtonAction"]],"showTopicSlowModeUpdate"],null],"hourglass-start"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","staff"]],[30,0,["extraButtons","length"]]],null],[[[1," "],[8,[30,1,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-moderation-history"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@href","@icon"],["review.moderation_history",[30,0,["topicModerationHistoryUrl"]],"list"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraButtons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,8],["btn-transparent",[30,3,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,3,["label"]],[30,3,["translatedLabel"]],[30,3,["icon"]],[28,[32,5],[[30,0,["onExtraButtonAction"]],[30,3,["action"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null]],[]],null],[1," "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["dropdown","@topic","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-admin-menu.js",scope:()=>[h.default,d.default,c.default,a.or,l.default,n.fn,a.and,a.not,u.default],isStrictMode:!0}),this))()}},83788:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"AtLtWbj9",block:'[[[41,[51,[30,0,["topic","isPrivateMessage"]]],[[[1," "],[1,[28,[35,1],[[30,0,["topic","category"]]],[["ancestors","hideParent"],[[30,0,["topic","category","predecessors"]],true]]]],[1,"\\n"]],[]],null],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["topic"]]],[["mode","tags"],["list",[30,0,["topic","tags"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[1,[28,[35,5],[[30,0,["topic"]]],null]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["topic-category","div",[28,[37,8],null,[["topic","category"],[[30,0,["topic"]],[30,0,["topic","category"]]]]]]],null],[1,"\\n"],[13]],[],false,["unless","bound-category-link","div","if","discourse-tags","topic-featured-link","span","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-category.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},44547:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(35533),r=i(83133),o=i(18638),a=i(35092),l=i(843),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();get showBasedOnPosition(){return"top"===this.args.position||this.args.model.topics.length>5}get dismissLabel(){return 0===this.args.selectedTopics.length?(0,l.i18n)("topics.bulk.dismiss_button"):(0,l.i18n)("topics.bulk.dismiss_button_with_selected",{count:this.args.selectedTopics.length})}get dismissNewLabel(){return this.currentUser?.new_new_view_enabled?(0,l.i18n)("topics.bulk.dismiss_button"):0===this.args.selectedTopics.length?(0,l.i18n)("topics.bulk.dismiss_new"):(0,l.i18n)("topics.bulk.dismiss_new_with_selected",{count:this.args.selectedTopics.length})}dismissReadPosts(){this.modal.show(a.default,{model:{title:this.args.selectedTopics.length?"topics.bulk.dismiss_read_with_selected":"topics.bulk.dismiss_read",count:this.args.selectedTopics.length,dismissRead:this.args.dismissRead}})}static #s=(()=>dt7948.n(this.prototype,"dismissReadPosts",[n.action]))();static #l=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"Vh0Unk3g",block:'[[[41,[30,0,["showBasedOnPosition"]],[[[10,0],[15,0,[29,["row dismiss-container-",[30,1]]]],[12],[41,[30,2],[[[8,[32,0],[[16,1,[29,["dismiss-topics-",[30,1]]]],[24,0,"btn-default dismiss-read"]],[["@action","@translatedLabel","@title"],[[30,0,["dismissReadPosts"]],[30,0,["dismissLabel"]],"topics.bulk.dismiss_tooltip"]],null]],[]],null],[41,[30,3],[[[8,[32,0],[[16,1,[29,["dismiss-new-",[30,1]]]],[24,0,"btn-default dismiss-read"]],[["@action","@translatedLabel","@icon"],[[30,4],[30,0,["dismissNewLabel"]],"check"]],null]],[]],null],[13]],[]],null]],["@position","@showDismissRead","@showResetNew","@resetNew"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-dismiss-buttons.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},53589:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(81329),c=i(18638),u=i(82698),d=i(87353),p=i(843),h=i(12610),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #s=(()=>dt7948.g(this.prototype,"drafts",[n.tracked],function(){return[]}))();#ou=(()=>void dt7948.i(this,"drafts"))();static #l=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();get draftCount(){return this.currentUser.draft_count}get otherDraftsCount(){return this.draftCount>4?this.draftCount-4:0}get otherDraftsText(){return this.otherDraftsCount>0?(0,p.i18n)("drafts.dropdown.other_drafts",{count:this.otherDraftsCount}):""}onRegisterApi(e){this.dMenu=e}static #c=(()=>dt7948.n(this.prototype,"onRegisterApi",[o.action]))();async onShowMenu(){this.loading=!0;try{let e=this.currentUser.userDraftsStream;e.reset(),await e.findItems(this.site),this.drafts=e.content.slice(0,4)}catch(e){console.error("Failed to fetch drafts with error:",e)}finally{this.loading=!1}}static #u=(()=>dt7948.n(this.prototype,"onShowMenu",[o.action]))();async resumeDraft(e){await this.dMenu.close(),e.postUrl?d.default.routeTo(e.postUrl):this.composer.open({draft:e,draftKey:e.draft_key,draftSequence:e.sequence,...e.data})}static #d=(()=>dt7948.n(this.prototype,"resumeDraft",[o.action]))();static #p=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"ZSVtu8NL",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-small btn-default"]],[["@identifier","@title","@icon","@onShow","@onRegisterApi","@modalForMobile","@disabled"],["topic-drafts-menu",[28,[32,1],["drafts.dropdown.title"],null],"chevron-down",[30,0,["onShowMenu"]],[30,0,["onRegisterApi"]],true,[30,0,["loading"]]]],[["content"],[[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["drafts"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-drafts-item"]],null,[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"btn-secondary"]],[["@action","@icon","@translatedLabel"],[[28,[32,4],[[30,0,["resumeDraft"]],[30,2]],null],[52,[30,2,["topic_id"]],"reply","layer-group"],[28,[32,5],[[30,2,["title"]],[28,[32,1],["drafts.dropdown.untitled"],null]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[30,1,["divider"]],null,null,null],[1,"\\n\\n "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"btn-link view-all-drafts"]],[["@href","@model"],["/my/activity/drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[10,1],[15,"data-other-drafts",[30,0,["otherDraftsCount"]]],[12],[1,[30,0,["otherDraftsText"]]],[13],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["drafts.dropdown.view_all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["dropdown","draft"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-drafts-dropdown.js",scope:()=>[h.default,p.i18n,u.default,c.default,r.fn,l.or],isStrictMode:!0}),this))()}},93926:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(53653),n=i(35533),r=i(62053),o=i(83133),a=i(53397),l=i(42064),c=i(25124),u=i.n(c),d=i(63748),p=i(87353),h=i(843);let m=(0,i(85671).createTemplateFactory)({id:"6Uf1+cxU",block:'[[[8,[39,0],[[16,"title",[28,[37,1],["topic_entrance.jump_top_button_title"],null]],[24,0,"btn-default full jump-top"]],[["@action","@translatedAriaLabel"],[[28,[37,2],[[30,0],"enterTop"],null],[28,[37,1],["topic_entrance.sr_jump_top_button"],[["date"],[[30,0,["topDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["backward-step"],null]],[1,"\\n "],[1,[28,[35,4],[[30,0,["topDate"]]],null]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],[[16,"title",[28,[37,1],["topic_entrance.jump_bottom_button_title"],null]],[24,0,"btn-default full jump-bottom"]],[["@action","@translatedAriaLabel"],[[28,[37,2],[[30,0],"enterBottom"],null],[28,[37,1],["topic_entrance.sr_jump_bottom_button"],[["date"],[[30,0,["bottomDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],[[30,0,["bottomDate"]]],null]],[1,"\\n "],[1,[28,[35,3],["forward-step"],null]],[1,"\\n"]],[]]]]]],[],false,["d-button","i18n","action","d-icon","html-safe"]]',moduleName:"discourse/components/topic-entrance.hbs",isStrictMode:!1});function g(e,t){let i=new Date;return e.toDateString()===i.toDateString()?moment(e).format((0,h.i18n)("dates.time")):e.getYear()===i.getYear()?moment(e).format(t?(0,h.i18n)("dates.long_date_without_year_with_linebreak"):(0,h.i18n)("dates.long_no_year_no_time")):moment(e).format(t?(0,h.i18n)("dates.long_date_with_year_with_linebreak"):(0,h.i18n)("dates.long_date_with_year_without_time"))}let f=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #s=(()=>dt7948.g(this.prototype,"historyStore",[o.service]))();#t_=(()=>void dt7948.i(this,"historyStore"))();elementId="topic-entrance";topic=null;visible=null;_position=null;_originalActiveElement=null;_activeButton=null;createdDate(e){return new Date(e)}static #l=(()=>dt7948.n(this.prototype,"createdDate",[(0,d.default)("topic.created_at")]))();bumpedDate(e){return new Date(e)}static #c=(()=>dt7948.n(this.prototype,"bumpedDate",[(0,d.default)("topic.bumped_at")]))();showTime(e,t){return t.getTime()-e.getTime()<1728e5}static #u=(()=>dt7948.n(this.prototype,"showTime",[(0,d.default)("createdDate","bumpedDate")]))();topDate(e,t){return g(e,t)}static #d=(()=>dt7948.n(this.prototype,"topDate",[(0,d.default)("createdDate","showTime")]))();bottomDate(e,t){return g(e,t)}static #p=(()=>dt7948.n(this.prototype,"bottomDate",[(0,d.default)("bumpedDate","showTime")]))();_inserted(){this.appEvents.on("topic-entrance:show",this,"_show"),this.appEvents.on("dom:clean",this,this.cleanUp)}static #h=(()=>dt7948.n(this.prototype,"_inserted",[(0,l.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this.cleanUp)}static #m=(()=>dt7948.n(this.prototype,"_destroyed",[(0,l.on)("didDestroyElement")]))();_setCSS(){let e=this._position,t=u()(this.element),i=t.width(),s=t.height();e.left=parseInt(e.left,10)-i/2,e.top=parseInt(e.top,10)-s/2;let n=u()(window).width();e.left+i>n&&(e.left=n-i-15),t.css(e)}_escListener(e){"Escape"===e.key?this.cleanUp():"Tab"===e.key&&("top"===this._activeButton?(this._jumpBottomButton().focus(),this._activeButton="bottom",e.preventDefault()):"bottom"===this._activeButton&&(this._jumpTopButton().focus(),this._activeButton="top",e.preventDefault()))}static #g=(()=>dt7948.n(this.prototype,"_escListener",[d.bind]))();_jumpTopButton(){return this.element.querySelector(".jump-top")}_jumpBottomButton(){return this.element.querySelector(".jump-bottom")}_setupEscListener(){document.body.addEventListener("keydown",this._escListener)}_removeEscListener(){document.body.removeEventListener("keydown",this._escListener)}_trapFocus(){this._originalActiveElement=document.activeElement,this._jumpTopButton().focus(),this._activeButton="top"}_releaseFocus(){this._originalActiveElement&&(this._originalActiveElement.focus(),this._originalActiveElement=null)}_applyDomChanges(){this._setCSS(),this._setupEscListener(),this._trapFocus()}_show(e){this._position=e.position,this.setProperties({topic:e.topic,visible:!0}),(0,r.scheduleOnce)("afterRender",this,this._applyDomChanges),u()("html").off("mousedown.topic-entrance").on("mousedown.topic-entrance",e=>{let t=u()(e.target);"topic-entrance"!==t.prop("id")&&0===u()(this.element).has(t).length&&this.cleanUp()})}cleanUp(){this.setProperties({topic:null,visible:!1}),u()("html").off("mousedown.topic-entrance"),this._removeEscListener(),this._releaseFocus()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("topic-entrance:show",this,"_show")}_jumpTo(e){this.historyStore.set("lastTopicIdViewed",this.topic.id),this.cleanUp(),p.default.routeTo(e)}enterTop(){this._jumpTo(this.get("topic.url"))}static #A=(()=>dt7948.n(this.prototype,"enterTop",[n.action]))();enterBottom(){this._jumpTo(this.get("topic.lastPostUrl"))}static #E=(()=>dt7948.n(this.prototype,"enterBottom",[n.action]))()},[(0,a.classNameBindings)("visible::hidden")]),_=(0,s.setComponentTemplate)(m,f)},98912:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(53653),n=i(35533),r=i(30574),o=i(31049),a=i(53397),l=i(63748),c=i(23777),u=i(64418),d=i(92487),p=i(61486);let h=(0,i(85671).createTemplateFactory)({id:"cXp+4oJy",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n "],[10,0],[14,0,"topic-footer-main-buttons__actions"],[12],[1,"\\n "],[8,[39,1],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleFeaturedOnProfile","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["topic"]],[30,0,["toggleMultiSelect"]],[30,0,["showTopicSlowModeUpdate"]],[30,0,["deleteTopic"]],[30,0,["recoverTopic"]],[30,0,["toggleFeaturedOnProfile"]],[30,0,["toggleClosed"]],[30,0,["toggleArchived"]],[30,0,["toggleVisibility"]],[30,0,["showTopicTimerModal"]],[30,0,["showFeatureTopic"]],[30,0,["showChangeTimestamp"]],[30,0,["resetBumpDate"]],[30,0,["convertToPublicTopic"]],[30,0,["convertToPrivateMessage"]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["inlineActionables"]]],null]],null],null,[[[41,[28,[37,5],[[30,1,["type"]],"inline-button"],null],[[[41,[28,[37,5],[[30,1,["id"]],"bookmark"],null],[[[1," "],[8,[39,6],null,[["@showLabel","@bookmarkManager","@buttonClasses"],[[30,0,["showBookmarkLabel"]],[30,0,["topicBookmarkManager"]],"btn-default"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[39,10],[[16,0,[28,[37,9],["topic-footer-dropdown",[30,1,["classNames"]]],null]]],[["@id","@value","@content","@onChange","@options"],[[28,[37,8],["topic-footer-dropdown-",[30,1,["id"]]],null],[30,1,["value"]],[30,1,["content"]],[28,[37,11],[[30,0],[30,1,["action"]]],null],[28,[37,12],null,[["icon","none","disabled"],[[30,1,["icon"]],[30,1,["noneItem"]],[30,1,["disabled"]]]]]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["loneDropdownButton"]],[[[1," "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,0,["loneDropdownButton","id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,0,["loneDropdownButton","classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,0,["loneDropdownButton","action"]],[30,0,["loneDropdownButton","icon"]],[30,0,["loneDropdownButton","label"]],[30,0,["loneDropdownButton","title"]],[30,0,["loneDropdownButton","ariaLabel"]],[30,0,["loneDropdownButton","disabled"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,13],[[30,0,["dropdownButtons","length"]],1],null],[[[1," "],[8,[39,14],null,[["@modalForMobile","@identifier"],[true,"topic-footer-mobile-dropdown"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[35,16],["ellipsis-vertical"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,18],null,null,[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["dropdownButtons"]]],null]],null],null,[[[1," "],[8,[30,2,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,3,["id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,3,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,3,["action"]],[30,3,["icon"]],[30,3,["label"]],[30,3,["title"]],[30,3,["ariaLabel"]],[30,3,["disabled"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[8,[39,19],null,[["@pinned","@topic","@appendReason"],[[30,0,["topic","pinned"]],[30,0,["topic"]],false]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[1," "],[8,[39,20],null,[["@topic","@appendReason"],[[30,0,["topic"]],false]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["topic-footer-main-buttons-before-create",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n\\n"],[41,[30,0,["topic","details","can_create_post"]],[[[1," "],[8,[39,7],[[24,0,"btn-primary create"]],[["@icon","@action","@label","@title"],["reply",[30,0,["replyToPost"]],"topic.reply.title","topic.reply.help"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-main-buttons",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,19],null,[["@pinned","@topic","@appendReason"],[[30,0,["topic","pinned"]],[30,0,["topic"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[1," "],[8,[39,20],[[24,0,"notifications-button-footer"]],[["@topic","@expanded"],[[30,0,["topic"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationUserTip"]],[[[1," "],[8,[39,22],null,[["@id","@triggerSelector","@titleText","@contentText","@priority"],["topic_notification_levels",".notifications-button-footer details",[28,[37,23],["user_tips.topic_notification_levels.title"],null],[28,[37,23],["user_tips.topic_notification_levels.content"],null],800]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-buttons",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null]],["actionable","dropdown","button"],false,["div","topic-admin-menu","each","-track-array","if","eq","bookmark-menu","d-button","concat","concat-class","dropdown-select-box","action","hash","gt","d-menu",":trigger","d-icon",":content","dropdown-menu","pinned-button","topic-notifications-button","plugin-outlet","user-tip","i18n"]]',moduleName:"discourse/components/topic-footer-buttons.hbs",isStrictMode:!1}),m=dt7948.c(class extends s.default{elementId="topic-footer-buttons";role="region";static #e=(()=>dt7948.g(this.prototype,"inlineButtons",[(0,u.getTopicFooterButtons)()]))();#od=(()=>void dt7948.i(this,"inlineButtons"))();static #i=(()=>dt7948.g(this.prototype,"inlineDropdowns",[(0,d.getTopicFooterDropdowns)()]))();#op=(()=>void dt7948.i(this,"inlineDropdowns"))();static #s=(()=>dt7948.g(this.prototype,"canSendPms",[(0,r.alias)("currentUser.can_send_private_messages")]))();#oh=(()=>void dt7948.i(this,"canSendPms"))();static #l=(()=>dt7948.g(this.prototype,"canInviteTo",[(0,r.alias)("topic.details.can_invite_to")]))();#om=(()=>void dt7948.i(this,"canInviteTo"))();static #c=(()=>dt7948.g(this.prototype,"canDefer",[(0,r.alias)("currentUser.user_option.enable_defer")]))();#og=(()=>void dt7948.i(this,"canDefer"))();static #u=(()=>dt7948.g(this.prototype,"inviteDisabled",[(0,r.or)("topic.archived","topic.closed","topic.deleted")]))();#of=(()=>void dt7948.i(this,"inviteDisabled"))();canArchive(e,t){return e&&t}static #d=(()=>dt7948.n(this.prototype,"canArchive",[(0,l.default)("canSendPms","topic.isPrivateMessage")]))();get inlineActionables(){return this.inlineButtons.filterBy("dropdown",!1).filterBy("anonymousOnly",!1).concat(this.inlineDropdowns).sortBy("priority").reverse()}static #p=(()=>dt7948.n(this.prototype,"inlineActionables",[(0,n.computed)("inlineButtons.[]","inlineDropdowns.[]")]))();get topicBookmarkManager(){return new p.default((0,o.getOwner)(this),this.topic)}static #h=(()=>dt7948.n(this.prototype,"topicBookmarkManager",[(0,n.computed)("topic")]))();dropdownButtons(e){return e.filter(e=>e.dropdown)}static #m=(()=>dt7948.n(this.prototype,"dropdownButtons",[(0,l.default)("inlineButtons.[]","topic.assigned_to_user")]))();loneDropdownButton(e){return 1===e.length?e[0]:null}static #g=(()=>dt7948.n(this.prototype,"loneDropdownButton",[(0,l.default)("dropdownButtons.[]")]))();showNotificationsButton(e){return!e||this.canSendPms}static #A=(()=>dt7948.n(this.prototype,"showNotificationsButton",[(0,l.default)("topic.isPrivateMessage")]))();showNotificationUserTip(e){return e>=c.NotificationLevels.TRACKING}static #E=(()=>dt7948.n(this.prototype,"showNotificationUserTip",[(0,l.default)("topic.details.notification_level")]))();archiveIcon(e){return e?"envelope":"folder"}static #D=(()=>dt7948.n(this.prototype,"archiveIcon",[(0,l.default)("topic.message_archived")]))();archiveTitle(e){return e?"topic.move_to_inbox.help":"topic.archive_message.help"}static #P=(()=>dt7948.n(this.prototype,"archiveTitle",[(0,l.default)("topic.message_archived")]))();archiveLabel(e){return e?"topic.move_to_inbox.title":"topic.archive_message.title"}static #Q=(()=>dt7948.n(this.prototype,"archiveLabel",[(0,l.default)("topic.message_archived")]))();showBookmarkLabel(e){return!e}static #J=(()=>dt7948.n(this.prototype,"showBookmarkLabel",[(0,l.default)("topic.isPrivateMessage")]))()},[(0,a.attributeBindings)("role")]),g=(0,s.setComponentTemplate)(h,m)},55869:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(75446),r=i(35533),o=i(81329),a=i(18638),l=i(18385),c=i(72738),u=i(23245),d=i(53653),p=i(85671),h=i(73306);let m=(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"fnVZ2AA/",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,1]]],[["@action"],[[30,2]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"topic-title"],[12],[1,"\\n "],[10,0],[14,0,"topic-title__top-line"],[12],[1,"\\n "],[10,1],[14,0,"topic-statuses"],[12],[1,"\\n"],[41,[28,[32,1],[[30,3,["archetype"]],"private_message"],null],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["envelope"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["bookmarked"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["bookmark"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["closed"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["lock"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["pinned"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["thumbtack"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"fancy-title"],[12],[1,"\\n "],[1,[30,3,["title"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-title__bottom-line"],[12],[1,"\\n "],[1,[28,[32,3],[[30,3,["category"]],[28,[32,4],null,[["link"],[false]]]],null]],[1,"\\n "],[1,[28,[32,5],[[30,3]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],["@class","@action","@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-label-content.js",scope:()=>[a.default,o.eq,c.default,l.categoryLinkHTML,n.hash,u.default],isStrictMode:!0}),(0,h.default)(void 0,"topic-label-content:TopicLabelButton"));class g extends s.default{replyOnOriginal(){this.args.model.replyOnOriginal()}static #e=(()=>dt7948.n(this.prototype,"replyOnOriginal",[r.action]))();replyOnCurrent(){this.args.model.replyOnCurrent()}static #i=(()=>dt7948.n(this.prototype,"replyOnCurrent",[r.action]))();static #s=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"35xTpI3S",block:'[[[1,"\\n "],[8,[32,0],null,[["@class","@action","@topic"],["btn-primary btn-reply-where btn-reply-on-original",[30,0,["replyOnOriginal"]],[30,1,["originalTopic"]]]],null],[1,"\\n\\n "],[8,[32,0],null,[["@class","@action","@topic"],["btn-reply-where btn-reply-here",[30,0,["replyOnCurrent"]],[30,1,["currentTopic"]]]],null],[1,"\\n "]],["@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-label-content.js",scope:()=>[m],isStrictMode:!0}),this))()}},52350:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A,navigateToTopic:()=>C,showEntrance:()=>S});var s=i(53653),n=i(30574),r=i(31049),o=i(62053),a=i(83133),l=i(42256),c=i(53397),u=i(42064),d=i(25124),p=i.n(d),h=i(63748),m=i(16547),g=i(97015),f=i(96340),_=i(83471),y=i(47716),b=i(1799),w=i(87353),k=i(843);let T=(0,i(85671).createTemplateFactory)({id:"r8eDUZIW",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["above-topic-list-item",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[1,[30,0,["topicListItemContents"]]]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/topic-list-item.hbs",isStrictMode:!1});function S(e){let t=p()(e.target);if(t.hasClass("posts-map")||t.parents(".posts-map").length>0)return"A"!==t.prop("tagName")&&0===(t=t.find("a")).length&&(t=t.end()),this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:t.offset()}),!1}function C(e,t){return(0,r.getOwner)(this).lookup("service:history-store").set("lastTopicIdViewed",e.id),w.default.routeTo(t||e.get("url")),!1}let x=dt7948.c(class extends s.default{static reopen(){return(0,m.default)("Modifying topic-list-item with `reopen` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",f.RAW_TOPIC_LIST_DEPRECATION_OPTIONS),super.reopen(...arguments)}static reopenClass(){return(0,m.default)("Modifying topic-list-item with `reopenClass` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",f.RAW_TOPIC_LIST_DEPRECATION_OPTIONS),super.reopenClass(...arguments)}static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"historyStore",[a.service]))();#t_=(()=>void dt7948.i(this,"historyStore"))();static #s=(()=>dt7948.g(this.prototype,"dataTopicId",[(0,n.alias)("topic.id")]))();#o_=(()=>void dt7948.i(this,"dataTopicId"))();didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.renderTopicListItem()}topicHighlightChanged(){this.topic.highlight&&this._highlightIfNeeded()}static #l=(()=>dt7948.n(this.prototype,"topicHighlightChanged",[(0,u.observes)("topic.highlight")]))();renderTopicListItem(){let e=(0,y.findRawTemplate)("list/topic-list-item");e&&(this.set("topicListItemContents",(0,l.htmlSafe)(e(this,_.RUNTIME_OPTIONS))),(0,o.schedule)("afterRender",()=>{if(!this.isDestroyed&&!this.isDestroying&&(this.selected&&this.selected.includes(this.topic)&&(this.element.querySelector("input.bulk-select").checked=!0),this._shouldFocusLastVisited())){let e=this._titleElement();e&&(e.addEventListener("focus",this._onTitleFocus),e.addEventListener("blur",this._onTitleBlur))}}))}static #c=(()=>dt7948.n(this.prototype,"renderTopicListItem",[(0,u.observes)("topic.pinned","expandGloballyPinned","expandAllPinned")]))();didInsertElement(){super.didInsertElement(...arguments),this.includeUnreadIndicator&&this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage)}willDestroyElement(){if(super.willDestroyElement(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage),this._shouldFocusLastVisited()){let e=this._titleElement();e&&(e.removeEventListener("focus",this._onTitleFocus),e.removeEventListener("blur",this._onTitleBlur))}}onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)}static #u=(()=>dt7948.n(this.prototype,"onMessage",[h.bind]))();participantGroups(e){return e?e.map(e=>({name:e,url:(0,w.groupPath)(e)})):[]}static #d=(()=>dt7948.n(this.prototype,"participantGroups",[(0,h.default)("topic.participant_groups")]))();unreadIndicatorChannel(e){return`/private-messages/unread-indicator/${e}`}static #p=(()=>dt7948.n(this.prototype,"unreadIndicatorChannel",[(0,h.default)("topic.id")]))();unreadClass(e){return e?"":"read"}static #h=(()=>dt7948.n(this.prototype,"unreadClass",[(0,h.default)("topic.unread_by_group_member")]))();includeUnreadIndicator(e){return void 0!==e}static #m=(()=>dt7948.n(this.prototype,"includeUnreadIndicator",[(0,h.default)("topic.unread_by_group_member")]))();newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":(0,k.i18n)("filters.new.lower_title")}static #g=(()=>dt7948.n(this.prototype,"newDotText",[h.default]))();unboundClassNames(e,t){let i=[];return e.get("category")&&i.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach(e=>i.push("tag-"+e)),e.get("hasExcerpt")&&i.push("has-excerpt"),e.get("unseen")&&i.push("unseen-topic"),e.unread_posts&&i.push("unread-posts"),["liked","archived","bookmarked","pinned","closed"].forEach(t=>{e.get(t)&&i.push(t)}),e===t&&i.push("last-visit"),i.join(" ")}static #A=(()=>dt7948.n(this.prototype,"unboundClassNames",[(0,h.default)("topic","lastVisitedTopic")]))();hasLikes(){return this.get("topic.like_count")>0}hasOpLikes(){return this.get("topic.op_like_count")>0}expandPinned(){return(0,b.applyValueTransformer)("topic-list-item-expand-pinned",this._expandPinned,{topic:this.topic,mobileView:this.site.mobileView})}static #E=(()=>dt7948.n(this.prototype,"expandPinned",[h.default]))();get _expandPinned(){if(!this.get("topic.pinned"))return!1;if(this.site.mobileView){if(!this.siteSettings.show_pinned_excerpt_mobile)return!1}else if(!this.siteSettings.show_pinned_excerpt_desktop)return!1;return!!(this.expandGloballyPinned&&this.get("topic.pinned_globally"))||!!this.expandAllPinned}showEntrance(){return S.call(this,...arguments)}click(e){let t=this.showEntrance(e);if(!1===t)return t;let i=this.topic,s=e.target,n=s.classList;if(n.contains("bulk-select")){let t=this.selected;if(s.checked){if(t.addObject(i),this.lastChecked&&e.shiftKey){let e=Array.from(document.querySelectorAll("input.bulk-select")),t=e.indexOf(s),i=e.findIndex(e=>e.id===this.lastChecked.id),n=Math.min(t,i),r=Math.max(t,i);e.slice(n,r).filter(e=>!0!==e.checked).forEach(e=>{e.click()})}this.set("lastChecked",s)}else t.removeObject(i),this.set("lastChecked",null)}return n.contains("raw-topic-link")||n.contains("post-activity")?!!(0,g.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(i,s.getAttribute("href"))):this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")?!!(0,g.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(i,i.lastUnreadUrl)):this.unhandledRowClick(e,i)}unhandledRowClick(){}keyDown(e){if("Enter"===e.key&&e.target.classList.contains("post-activity"))return e.preventDefault(),this.navigateToTopic(this.topic,e.target.getAttribute("href"))}navigateToTopic(){return C.call(this,...arguments)}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLastViewedTopic:!1};(0,o.schedule)("afterRender",()=>{this.element&&!this.isDestroying&&!this.isDestroyed&&(this.element.classList.add("highlighted"),this.element.setAttribute("data-is-last-viewed-topic",e.isLastViewedTopic),this.element.addEventListener("animationend",()=>{this.element.classList.remove("highlighted")}),e.isLastViewedTopic&&this._shouldFocusLastVisited()&&this._titleElement()?.focus())})}_highlightIfNeeded(){this.historyStore.get("lastTopicIdViewed")===this.topic.id?(this.historyStore.delete("lastTopicIdViewed"),this.highlight({isLastViewedTopic:!0})):this.get("topic.highlight")&&(this.set("topic.highlight",!1),this.highlight())}static #D=(()=>dt7948.n(this.prototype,"_highlightIfNeeded",[(0,u.on)("didInsertElement")]))();_onTitleFocus(){!this.element||this.isDestroying||this.isDestroyed||this.element.classList.add("selected")}static #P=(()=>dt7948.n(this.prototype,"_onTitleFocus",[h.bind]))();_onTitleBlur(){!this.element||this.isDestroying||this.isDestroyed||this.element.classList.remove("selected")}static #Q=(()=>dt7948.n(this.prototype,"_onTitleBlur",[h.bind]))();_shouldFocusLastVisited(){return this.site.desktopView&&this.focusLastVisitedTopic}_titleElement(){return this.element.querySelector(".main-link .title")}},[(0,c.attributeBindings)("dataTopicId:data-topic-id","role","ariaLevel:aria-level"),(0,c.classNameBindings)(":topic-list-item","unboundClassNames","topic.visited"),(0,c.tagName)("tr")]),A=(0,s.setComponentTemplate)(T,x)},86854:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(53653),n=i(4959),r=i(30574),o=i(83133),a=i(53397),l=i(42064),c=i(63748),u=i(16547),d=i(96340),p=i(56793);let h=(0,i(85671).createTemplateFactory)({id:"kdtDjeii",block:'[[[10,"caption"],[14,0,"sr-only"],[12],[1,[28,[35,1],["sr_topic_list_caption"],null]],[13],[1,"\\n\\n"],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n "],[1,[28,[35,3],["topic-list-header"],[["canBulkSelect","toggleInTitle","hideCategory","showPosters","showLikes","showOpLikes","order","ascending","sortable","listTitle","bulkSelectEnabled","bulkSelectHelper","canDoBulkActions","showTopicsAndRepliesToggle","newListSubset","newRepliesCount","newTopicsCount"],[[30,0,["canBulkSelect"]],[30,0,["toggleInTitle"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["sortable"]],[30,0,["listTitle"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectHelper"]],[30,0,["canDoBulkActions"]],[30,0,["showTopicsAndRepliesToggle"]],[30,0,["newListSubset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[37,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null],[1,"\\n\\n"],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["filteredTopics"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@topic","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@showPosters","@showLikes","@showOpLikes","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@lastChecked","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,0,["lastChecked"]],[30,0,["tagsForUser"]],[30,0,["focusLastVisitedTopic"]],[30,2]]],null],[1,"\\n "],[1,[28,[35,3],["list/visited-line"],[["lastVisitedTopic","topic"],[[30,0,["lastVisitedTopic"]],[30,1]]]]],[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[37,5],null,[["topic","index"],[[30,1],[30,2]]]],"tr"]],null],[1,"\\n"]],[1,2]],null],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[37,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null]],["topic","index"],false,["caption","i18n","thead","raw","plugin-outlet","hash","tbody","each","-track-array","topic-list-item"]]',moduleName:"discourse/components/topic-list.hbs",isStrictMode:!1}),m=dt7948.c(class extends s.default.extend(p.default){static reopen(){return(0,u.default)("Modifying topic-list with `reopen` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",d.RAW_TOPIC_LIST_DEPRECATION_OPTIONS),super.reopen(...arguments)}static reopenClass(){return(0,u.default)("Modifying topic-list with `reopenClass` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",d.RAW_TOPIC_LIST_DEPRECATION_OPTIONS),super.reopenClass(...arguments)}static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();showTopicPostBadges=!0;listTitle="topic.title";lastCheckedElementId=null;static #l=(()=>dt7948.g(this.prototype,"filteredTopics",[(0,r.alias)("topics")]))();#oy=(()=>void dt7948.i(this,"filteredTopics"))();get canDoBulkActions(){return this.currentUser?.canManageTopic&&this.bulkSelectHelper?.selected.length}_init(){this.addObserver("hideCategory",this.rerender),this.addObserver("order",this.rerender),this.addObserver("ascending",this.rerender),this.refreshLastVisited()}static #c=(()=>dt7948.n(this.prototype,"_init",[(0,l.on)("init")]))();get selected(){return this.bulkSelectHelper?.selected}get bulkSelectEnabled(){return this.get("canBulkSelect")&&this.bulkSelectHelper?.bulkSelectEnabled}static #u=(()=>dt7948.n(this.prototype,"bulkSelectEnabled",[n.dependentKeyCompat]))();get toggleInTitle(){return!this.bulkSelectHelper?.bulkSelectEnabled&&this.get("canBulkSelect")}sortable(){return!!this.changeSort}static #d=(()=>dt7948.n(this.prototype,"sortable",[c.default]))();showLikes(e){return"likes"===e}static #p=(()=>dt7948.n(this.prototype,"showLikes",[(0,c.default)("order")]))();showOpLikes(e){return"op_likes"===e}static #h=(()=>dt7948.n(this.prototype,"showOpLikes",[(0,c.default)("order")]))();topicsAdded(){this.lastVisitedTopic||this.refreshLastVisited()}static #m=(()=>dt7948.n(this.prototype,"topicsAdded",[(0,l.observes)("topics.[]")]))();lastVisitedTopicChanged(){this.refreshLastVisited()}static #g=(()=>dt7948.n(this.prototype,"lastVisitedTopicChanged",[(0,l.observes)("topics","order","ascending","category","top","hot")]))();scrolled(){super.scrolled(...arguments);let e=this.onScroll;e&&e.call(this)}_updateLastVisitedTopic(e,t,i,s,n){let r,o,a;if(this.set("lastVisitedTopic",null),!this.highlightLastVisited||t&&"activity"!==t||s||n||!e||1===e.length||i)return;let l=this.currentUser;if(!l||!l.previous_visit_at)return;let c=l.get("previousVisitAt"),u=0;for(;e[u]&&e[u].get("pinned");)u++;for(a=e.length-1;a>=u;a--){if(e[a].get("bumpedAt")>c){r=e[a];break}o=e[a]}!r||!o||o.get("bumpedAt")>c||this.set("lastVisitedTopic",r)}refreshLastVisited(){this._updateLastVisitedTopic(this.topics,this.order,this.ascending,this.top,this.hot)}click(e){let t=(t,i)=>{let s=e.target.closest(t);s&&i(s)};t("button.bulk-select",()=>{this.bulkSelectHelper.toggleBulkSelect(),this.rerender()}),t("button.bulk-select-all",()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}),t("button.bulk-clear-all",()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}),t("th.sortable",e=>{this.changeSort(e.dataset.sortOrder),this.rerender()}),t("button.topics-replies-toggle",e=>{e.classList.contains("--all")?this.changeNewListSubset(null):e.classList.contains("--topics")?this.changeNewListSubset("topics"):e.classList.contains("--replies")&&this.changeNewListSubset("replies"),this.rerender()})}keyDown(e){("Enter"===e.key||" "===e.key)&&((t,i)=>{let s=e.target.closest(t);s&&i.call(this,s)})("th.sortable",t=>{e.preventDefault(),this.changeSort(t.dataset.sortOrder),this.rerender()})}},[(0,a.classNameBindings)("bulkSelectEnabled:sticky-header"),(0,a.classNames)("topic-list"),(0,a.tagName)("table")]),g=(0,s.setComponentTemplate)(h,m)},75881:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(72738),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"b0etsQRf",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[24,0,"post-actions"],[17,2],[12],[1,"\\n "],[1,[28,[32,0],[[30,3]],null]],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1," "],[10,3],[15,6,[29,[[30,5,["url"]],"/",[30,4]]]],[12],[1,"#"],[1,[30,4]],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null]],["@postNumbers","&attrs","@icon","postNumber","@topic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/action-list.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"action-list:ActionList"))},1034:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(99615),n=i(42256),r=i(34574),o=i(40121),a=i(7597),l=i(97015),c=i(53653),u=i(85671),d=i(73306);let p=function(e){(0,l.wantsNewWindow)(e)?e.stopPropagation():e.preventDefault()},h=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"Hin+EWAY",block:'[[[1,"\\n "],[10,0],[15,"data-topic-id",[30,1,["id"]]],[14,0,"featured-topic --glimmer"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@context"],[[30,1],"topic-list"]],null],[1,"\\n\\n "],[10,3],[15,6,[30,1,["lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[32,1],[[30,1,["fancyTitle"]]],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@unreadPosts","@unseen","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,1,["lastUnreadUrl"]]]],null],[1,"\\n\\n "],[11,3],[16,6,[30,1,["lastPostUrl"]]],[24,0,"last-posted-at"],[4,[32,3],["click",[32,4]],null],[12],[1,[28,[32,5],[[30,1,["last_posted_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/featured-topic.js",scope:()=>[o.default,n.htmlSafe,r.default,s.on,p,a.default],isStrictMode:!0}),(0,d.default)(void 0,"featured-topic:FeaturedTopic"))},17235:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(1799),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"e0ShBmTH",block:'[[[1,"\\n "],[10,"tr"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[30,2,["value","header"]],null,[["@sortable","@activeOrder","@changeSort","@ascending","@category","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],[[28,[32,0],["topic-list-header-sortable-column",[30,3],[28,[32,1],null,[["category","name"],[[30,4],[30,5]]]]],null],[30,6],[30,7],[30,8],[30,4],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],["@columns","entry","@sortable","@category","@name","@order","@changeSort","@ascending","@listTitle","@bulkSelectEnabled","@toggleInTitle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header.js",scope:()=>[n.applyValueTransformer,s.hash],isStrictMode:!0}),(0,a.default)(void 0,"header:Header"))},44456:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"9QgYS1Y0",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","activity",[30,2],[30,3],[30,4],"activity"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/activity-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"activity-cell:ActivityCell"))},50196:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(99615),n=i(72738),r=i(843),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"OPHKh4QR",block:'[[[1,"\\n "],[10,"th"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[11,"button"],[16,"title",[28,[32,0],["topics.bulk.toggle"],null]],[24,0,"btn-flat bulk-select"],[4,[32,1],["click",[30,2,["toggleBulkSelect"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["list-check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@canBulkSelect","@bulkSelectHelper"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/bulk-select-cell.js",scope:()=>[r.i18n,s.on,n.default],isStrictMode:!0}),(0,l.default)(void 0,"bulk-select-cell:BulkSelectCell"))},31861:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"kRIR9Sry",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","likes",[30,2],[30,3],[30,4],"likes"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/likes-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"likes-cell:LikesCell"))},68885:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"ZMY80UXK",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","op_likes",[30,2],[30,3],[30,4],"likes"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/op-likes-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"op-likes-cell:OpLikesCell"))},9759:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(843),n=i(29997),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"xp7eYsLe",block:'[[[1,"\\n "],[8,[32,0],[[16,"aria-label",[28,[32,1],["category.sort_options.posters"],null]]],[["@order","@activeOrder","@changeSort","@ascending","@name","@screenreaderOnly"],["posters",[30,1],[30,2],[30,3],"posters",true]],null],[1,"\\n"]],["@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/posters-cell.js",scope:()=>[n.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"posters-cell:PostersCell"))},1877:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"1okflZmY",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","posts",[30,2],[30,3],[30,4],"replies"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/replies-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"replies-cell:RepliesCell"))},29997:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(98740),c=i(79360),u=i(20139),d=i(81133),p=i(72738),h=i(843),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();get localizedName(){return this.args.forceName?this.args.forceName:this.args.name?(0,h.i18n)(this.args.name):""}get isSorting(){return this.args.sortable&&this.args.order===this.args.activeOrder}get ariaSort(){if(this.isSorting)return this.args.ascending?"ascending":"descending"}bulkSelectAll(){this.args.bulkSelectHelper.autoAddTopicsToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}static #i=(()=>dt7948.n(this.prototype,"bulkSelectAll",[o.action]))();bulkClearAll(){this.args.bulkSelectHelper.autoAddTopicsToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}static #s=(()=>dt7948.n(this.prototype,"bulkClearAll",[o.action]))();onClick(e){e.preventDefault(),this.args.changeSort(this.args.order)}static #l=(()=>dt7948.n(this.prototype,"onClick",[o.action]))();onKeyDown(e){("Enter"===e.key||" "===e.key)&&(this.args.changeSort(this.args.order),e.preventDefault())}static #c=(()=>dt7948.n(this.prototype,"onKeyDown",[o.action]))();afterBulkActionComplete(){return this.router.refresh()}static #u=(()=>dt7948.n(this.prototype,"afterBulkActionComplete",[o.action]))();static #d=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pC2ZK1Bw",block:'[[[1,"\\n "],[11,"th"],[16,"data-sort-order",[30,1]],[24,"scope","col"],[16,"aria-sort",[30,0,["ariaSort"]]],[16,0,[28,[32,0],["topic-list-data",[30,1],[52,[30,2],"sortable"],[52,[30,0,["isSorting"]],"sorting"],[52,[30,3],"num"]],null]],[17,4],[4,[52,[30,2],[50,[32,1],2,["click",[30,0,["onClick"]]],null]],null,null],[4,[52,[30,2],[50,[32,1],2,["keydown",[30,0,["onKeyDown"]]],null]],null,null],[12],[1,"\\n"],[41,[30,5],[[[41,[30,6],[[[1," "],[11,"button"],[16,"title",[28,[32,2],["topics.bulk.toggle"],null]],[24,0,"btn-flat bulk-select"],[4,[32,1],["click",[30,7,["toggleBulkSelect"]]],null],[12],[1,"\\n "],[1,[28,[32,3],["list-check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[14,0,"bulk-select-topics"],[12],[1,"\\n"],[41,[30,9],[[[1," "],[8,[32,4],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,7],[30,0,["afterBulkActionComplete"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[11,"button"],[24,0,"btn btn-default bulk-select-all"],[4,[32,1],["click",[30,0,["bulkSelectAll"]]],null],[12],[1,[28,[32,2],["topics.bulk.select_all"],null]],[13],[1,"\\n "],[11,"button"],[24,0,"btn btn-default bulk-clear-all"],[4,[32,1],["click",[30,0,["bulkClearAll"]]],null],[12],[1,[28,[32,2],["topics.bulk.clear_all"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[51,[30,8]],[[[41,[30,10],[[[1," "],[8,[32,5],null,[["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,11],[30,12],[30,13],[30,14]]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[10,"button"],[15,"aria-pressed",[30,0,["isSorting"]]],[12],[1,"\\n "],[1,[30,0,["localizedName"]]],[1,"\\n"],[41,[30,0,["isSorting"]],[[[1," "],[1,[28,[32,3],[[52,[30,15],"chevron-up","chevron-down"]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,0,[52,[30,16],"sr-only"]],[12],[1,"\\n "],[1,[30,0,["localizedName"]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]],null],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["topic-list-heading-bottom",[28,[32,7],null,[["name","bulkSelectEnabled"],[[30,17],[30,8]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@order","@sortable","@number","&attrs","@canBulkSelect","@showBulkToggle","@bulkSelectHelper","@bulkSelectEnabled","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset","@ascending","@screenreaderOnly","@name"],false,["if","modifier","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/sortable-column.js",scope:()=>[d.default,r.on,h.i18n,p.default,u.default,c.default,l.default,n.hash],isStrictMode:!0}),this))()}},27360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"LHZomcgH",block:'[[[1,"\\n "],[8,[32,0],null,[["@order","@category","@activeOrder","@changeSort","@ascending","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],["default",[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n"]],["@category","@activeOrder","@changeSort","@ascending","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/topic-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"topic-cell:TopicCell"))},41811:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(29997),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"Bcyvi4Fx",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","views",[30,2],[30,3],[30,4],"views"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/views-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"views-cell:ViewsCell"))},40709:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>P});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(62053),l=i(83133),c=i(42256),u=i(68587),d=i(81329),p=i(98740),h=i(72107),m=i(2635),g=i(1840),f=i(40121),_=i(70349),y=i(18385),b=i(81133),w=i(23245),k=i(54412),T=i(41265),S=i(97015),C=i(1799),x=i(87353),A=i(843),E=i(53653),D=i(85671);class P extends s.default{static #e=(()=>dt7948.g(this.prototype,"historyStore",[l.service]))();#t_=(()=>void dt7948.i(this,"historyStore"))();static #i=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();highlightIfNeeded=(()=>(0,u.modifier)(e=>{this.args.topic.id===this.historyStore.get("lastTopicIdViewed")?(e.dataset.isLastViewedTopic=!0,this.highlightRow(e),(0,a.next)(()=>this.historyStore.delete("lastTopicIdViewed")),this.shouldFocusLastVisited&&(0,a.next)(()=>e.querySelector(".main-link .title")?.focus())):this.args.topic.get("highlight")&&(this.highlightRow(e),(0,a.next)(()=>this.args.topic.set("highlight",!1)))}))();get isSelected(){return this.args.selected?.includes(this.args.topic)}get tagClassNames(){return this.args.topic.tags?.map(e=>`tag-${e}`)}get expandPinned(){let e;return e=!!this.args.topic.pinned&&(!this.useMobileLayout||!!this.siteSettings.show_pinned_excerpt_mobile)&&(!this.site.desktopView||!!this.siteSettings.show_pinned_excerpt_desktop)&&(this.args.expandGloballyPinned&&this.args.topic.pinned_globally||this.args.expandAllPinned),(0,C.applyValueTransformer)("topic-list-item-expand-pinned",e,{topic:this.args.topic,mobileView:this.useMobileLayout})}get shouldFocusLastVisited(){return this.site.desktopView&&this.args.focusLastVisitedTopic}navigateToTopic(e,t){this.historyStore.set("lastTopicIdViewed",e.id),x.default.routeTo(t||e.url)}static #l=(()=>dt7948.n(this.prototype,"navigateToTopic",[o.action]))();highlightRow(e){e.addEventListener("animationend",()=>e.classList.remove("highlighted"),{once:!0}),e.classList.add("highlighted")}onTitleFocus(e){e.target.closest(".topic-list-item").classList.add("selected")}static #c=(()=>dt7948.n(this.prototype,"onTitleFocus",[o.action]))();onTitleBlur(e){e.target.closest(".topic-list-item").classList.remove("selected")}static #u=(()=>dt7948.n(this.prototype,"onTitleBlur",[o.action]))();onBulkSelectToggle(e){if(e.target.checked){if(this.args.selected.addObject(this.args.topic),this.args.bulkSelectHelper.lastCheckedElementId&&e.shiftKey){let t=[...document.querySelectorAll("input.bulk-select")],i=t.indexOf(e.target),s=t.findIndex(e=>e.id===this.args.bulkSelectHelper.lastCheckedElementId);t.slice(Math.min(i,s),Math.max(i,s)).filter(e=>!e.checked).forEach(e=>e.click())}this.args.bulkSelectHelper.lastCheckedElementId=e.target.id}else this.args.selected.removeObject(this.args.topic),this.args.bulkSelectHelper.lastCheckedElementId=null}static #d=(()=>dt7948.n(this.prototype,"onBulkSelectToggle",[o.action]))();click(e){if(e.target.classList.contains("raw-topic-link")||e.target.classList.contains("post-activity")||e.target.classList.contains("badge-posts")){if((0,S.wantsNewWindow)(e))return;e.preventDefault(),this.navigateToTopic(this.args.topic,e.target.href);return}if(this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")){if((0,S.wantsNewWindow)(e))return;e.preventDefault(),this.navigateToTopic(this.args.topic,this.args.topic.lastUnreadUrl);return}}static #p=(()=>dt7948.n(this.prototype,"click",[o.action]))();keyDown(e){"Enter"===e.key&&(e.target.classList.contains("post-activity")||e.target.classList.contains("badge-posts"))&&(e.preventDefault(),this.navigateToTopic(this.args.topic,e.target.href))}static #h=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();get useMobileLayout(){return(0,C.applyValueTransformer)("topic-list-item-mobile-layout",this.site.mobileView,{topic:this.args.topic})}get additionalClasses(){return(0,C.applyValueTransformer)("topic-list-item-class",[],{topic:this.args.topic,index:this.args.index})}get style(){let e=(0,C.applyValueTransformer)("topic-list-item-style",[],{topic:this.args.topic,index:this.args.index}).filter(Boolean).filter(e=>{if((0,c.isHTMLSafe)(e))return!0;console.error("topic-list-item-style must be formed of htmlSafe strings. Skipped unsafe value:",e)});if(e.length)return(0,c.htmlSafe)(e.join("\n"))}static #m=(()=>(0,E.setComponentTemplate)((0,D.createTemplateFactory)({id:"mwtxTwuc",block:'[[[1,"\\n "],[11,"tr"],[16,"data-topic-id",[30,1,["id"]]],[16,"role",[30,0,["role"]]],[16,"aria-level",[30,0,["ariaLevel"]]],[16,0,[28,[32,0],["topic-list-item",[52,[30,1,["category"]],[28,[32,1],["category-",[30,1,["category","fullSlug"]]],null]],[52,[28,[32,2],[[30,1],[30,2]],null],"last-visit"],[52,[30,1,["visited"]],"visited"],[52,[30,1,["hasExcerpt"]],"has-excerpt"],[52,[30,1,["unseen"]],"unseen-topic"],[52,[30,1,["unread_posts"]],"unread-posts"],[52,[30,1,["liked"]],"liked"],[52,[30,1,["archived"]],"archived"],[52,[30,1,["bookmarked"]],"bookmarked"],[52,[30,1,["pinned"]],"pinned"],[52,[30,1,["closed"]],"closed"],[30,0,["tagClassNames"]],[30,0,["additionalClasses"]]],null]],[16,5,[30,0,["style"]]],[4,[30,0,["highlightIfNeeded"]],null,null],[4,[32,3],["keydown",[30,0,["keyDown"]]],null],[4,[32,3],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,4],null,[["@name","@outletArgs"],["above-topic-list-item",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n"],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-item",[28,[32,5],null,[["topic","bulkSelectEnabled","onBulkSelectToggle","isSelected","hideCategory","tagsForUser","showTopicPostBadges","navigateToTopic"],[[30,1],[30,3],[30,0,["onBulkSelectToggle"]],[30,0,["isSelected"]],[30,4],[30,5],[30,6],[30,0,["navigateToTopic"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["useMobileLayout"]],[[[1," "],[10,"td"],[15,0,[28,[32,0],["topic-list-data",[52,[30,3],"bulk-select-enabled"]],null]],[12],[1,"\\n "],[10,0],[14,0,"pull-left"],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[11,"input"],[16,"checked",[30,0,["isSelected"]]],[16,1,[29,["bulk-select-",[30,1,["id"]]]]],[24,0,"bulk-select"],[24,4,"checkbox"],[4,[32,3],["click",[30,0,["onBulkSelectToggle"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-item-mobile-avatar",[28,[32,5],null,[["topic"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[15,"aria-label",[28,[32,6],["latest_poster_link"],[["username"],[[30,1,["lastPosterUser","username"]]]]]],[15,"data-user-card",[30,1,["lastPosterUser","username"]]],[12],[1,[28,[32,7],[[30,1,["lastPosterUser"]]],[["imageSize"],["large"]]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-item-metadata right"],[12],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-before-link",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"main-link"],[12],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-before-status",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[8,[32,8],null,[["@topic","@context"],[[30,1],"topic-list"]],null],[8,[32,9],[[24,0,"raw-link raw-topic-link"],[4,[32,3],["focus",[30,0,["onTitleFocus"]]],null],[4,[32,3],["blur",[30,0,["onTitleBlur"]]],null]],[["@topic"],[[30,1]]],null],[41,[30,1,["featured_link"]],[[[1," "],[1,[28,[32,10],[[30,1]],null]]],[]],null],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-after-title",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[41,[30,1,["unseen"]],[[[10,1],[14,0,"topic-post-badges"],[12],[1," "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[13]],[]],null],[41,[30,0,["expandPinned"]],[[[8,[32,11],null,[["@topic"],[[30,1]]],null]],[]],null],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-main-link-bottom",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-after-main-link",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"pull-right"],[12],[1,"\\n "],[8,[32,12],null,[["@topic","@postBadgesEnabled"],[[30,1],[30,6]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-item-stats clearfix"],[12],[1,"\\n "],[10,1],[14,0,"topic-item-stats__category-tags"],[12],[1,"\\n"],[41,[51,[30,4]],[[[1," "],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-before-category",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,13],[[30,1,["category"]]],null]],[1,"\\n "],[8,[32,4],null,[["@name","@outletArgs"],["topic-list-after-category",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,14],[[30,1]],[["mode"],["list"]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"num activity last"],[12],[1,"\\n "],[10,1],[15,"title",[30,1,["bumpedAtTitle"]]],[14,0,"age activity"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[12],[1,[28,[32,15],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,3],[[28,[31,3],[[30,7]],null]],null],null,[[[1," "],[8,[30,8,["value","item"]],null,[["@topic","@bulkSelectEnabled","@onBulkSelectToggle","@isSelected","@showTopicPostBadges","@hideCategory","@tagsForUser","@expandPinned"],[[30,1],[30,3],[30,0,["onBulkSelectToggle"]],[30,0,["isSelected"]],[30,6],[30,4],[30,5],[30,0,["expandPinned"]]]],null],[1,"\\n"]],[8]],null]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@topic","@lastVisitedTopic","@bulkSelectEnabled","@hideCategory","@tagsForUser","@showTopicPostBadges","@columns","entry"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item.js",scope:()=>[b.default,n.concat,d.eq,r.on,p.default,n.hash,A.i18n,_.default,f.default,g.default,T.default,m.default,h.default,y.default,w.default,k.default],isStrictMode:!0}),this))()}},482:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(75446),n=i(42256),r=i(98740),o=i(18509),a=i(81133),l=i(54412),c=i(53653),u=i(85671),d=i(73306);let p=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"+pdwS3Gg",block:'[[[1,"\\n "],[10,"td"],[15,"title",[28,[32,0],[[30,1,["bumpedAtTitle"]]],null]],[15,0,[28,[32,1],["activity num topic-list-data",[28,[32,2],[[30,1,["createdAt"]]],[["startDate","class"],[[30,1,["bumpedAt"]],""]]]],null]],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[14,0,"post-activity"],[12],[8,[32,3],null,[["@name","@outletArgs"],["topic-list-before-relative-date",[28,[32,4],null,[["topic"],[[30,1]]]]]],null],[1,[28,[32,5],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/activity-cell.js",scope:()=>[n.htmlSafe,a.default,o.default,r.default,s.hash,l.default],isStrictMode:!0}),(0,d.default)(void 0,"activity-cell:ActivityCell"))},4346:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(99615),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"nY6zB+Ly",block:'[[[1,"\\n "],[10,"td"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[11,"input"],[16,"checked",[30,2]],[16,1,[29,["bulk-select-",[30,1,["id"]]]]],[24,0,"bulk-select"],[24,4,"checkbox"],[4,[32,0],["click",[30,3]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic","@isSelected","@onBulkSelectToggle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/bulk-select-cell.js",scope:()=>[s.on],isStrictMode:!0}),(0,o.default)(void 0,"bulk-select-cell:BulkSelectCell"))},58619:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(81329),n=i(72738),r=i(72613),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"7U35UaQA",block:'[[[1,"\\n "],[10,"td"],[14,0,"num likes topic-list-data"],[12],[1,"\\n"],[41,[28,[32,0],[[30,1,["like_count"]],0],null],[[[1," "],[10,3],[15,6,[30,1,["summaryUrl"]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["like_count"]]],null]],[1,"\\n "],[1,[28,[32,2],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/likes-cell.js",scope:()=>[s.gt,r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,"likes-cell:LikesCell"))},87195:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(81329),n=i(72738),r=i(72613),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"F00R7qZB",block:'[[[1,"\\n "],[10,"td"],[14,0,"num likes"],[12],[1,"\\n"],[41,[28,[32,0],[[30,1,["op_like_count"]],0],null],[[[1," "],[10,3],[15,6,[30,1,["summaryUrl"]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["op_like_count"]]],null]],[1,"\\n "],[1,[28,[32,2],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/op-likes-cell.js",scope:()=>[s.gt,r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,"op-likes-cell:OpLikesCell"))},75765:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(70349),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"oXMc+Q4Q",block:'[[[1,"\\n "],[10,"td"],[14,0,"posters topic-list-data"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["featuredUsers"]]],null]],null],null,[[[41,[30,2,["moreCount"]],[[[1," "],[10,3],[14,0,"posters-more-count"],[12],[1,[30,2,["moreCount"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,2,["user","path"]]],[15,"data-user-card",[30,2,["user","username"]]],[15,0,[30,2,["extraClasses"]]],[12],[1,[28,[32,0],[[30,2]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["user.avatar_template","user.username","user.name","small"]]]],[13],[1,"\\n"]],[]]]],[2]],null],[1," "],[13],[1,"\\n"]],["@topic","poster"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/posters-cell.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"posters-cell:PostersCell"))},13243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(75446),r=i(83133),o=i(98740),a=i(45782),l=i(72613),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();get ratio(){let e=parseFloat(this.args.topic.like_count),t=parseFloat(this.args.topic.posts_count);return t<10?0:(e||0)/t}get title(){return c.default.messageFormat("posts_likes_MF",{count:this.args.topic.replyCount,ratio:this.ratioText}).trim()}get ratioText(){return this.ratio>this.siteSettings.topic_post_like_heat_high?"high":this.ratio>this.siteSettings.topic_post_like_heat_medium?"med":this.ratio>this.siteSettings.topic_post_like_heat_low?"low":""}get likesHeat(){if(this.ratioText?.length)return`heatmap-${this.ratioText}`}get wrapperElement(){return(0,a.default)(this.args.tagName??"td")}static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"RO6joLyd",block:'[[[1,"\\n "],[8,[30,0,["wrapperElement"]],[[16,0,[29,["num posts-map posts ",[30,0,["likesHeat"]]," topic-list-data"]]]],null,[["default"],[[[[1,"\\n "],[10,3],[15,6,[30,1,["firstPostUrl"]]],[14,0,"badge-posts"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-reply-count",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,2],[[30,1,["replyCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/replies-cell.js",scope:()=>[o.default,n.hash,l.default],isStrictMode:!0}),this))()}},37110:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(98740),c=i(75881),u=i(4918),d=i(2635),p=i(1840),h=i(5029),m=i(34574),g=i(40121),f=i(18385),_=i(23245),y=i(41265),b=i(87353),w=i(843),k=i(53653),T=i(85671);class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[a.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();get newDotText(){return this.currentUser?.trust_level>0?"":(0,w.i18n)("filters.new.lower_title")}get participantGroups(){return this.args.topic.get("participant_groups")?this.args.topic.get("participant_groups").map(e=>({name:e,url:(0,b.groupPath)(e)})):[]}onTitleFocus(e){e.target.closest(".topic-list-item").classList.add("selected")}static #s=(()=>dt7948.n(this.prototype,"onTitleFocus",[o.action]))();onTitleBlur(e){e.target.closest(".topic-list-item").classList.remove("selected")}static #l=(()=>dt7948.n(this.prototype,"onTitleBlur",[o.action]))();static #c=(()=>(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:"l+ZoSKDW",block:'[[[1,"\\n "],[10,"td"],[14,0,"main-link clearfix topic-list-data"],[14,"colspan","1"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-link",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,1],[14,0,"link-top-line"],[14,"role","heading"],[14,"aria-level","2"],[12],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-status",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-topic-cell-link-top-line",[28,[32,1],null,[["topic","tagsForUser"],[[30,1],[30,2]]]]]],[["default"],[[[[8,[32,2],null,[["@topic","@context"],[[30,1],"topic-list"]],null],[8,[32,3],[[24,0,"raw-link raw-topic-link"],[4,[32,4],["focus",[30,0,["onTitleFocus"]]],null],[4,[32,4],["blur",[30,0,["onTitleBlur"]]],null]],[["@topic"],[[30,1]]],null],[41,[30,1,["featured_link"]],[[[1," "],[1,[28,[32,5],[[30,1]],null]]],[]],null],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-after-title",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[8,[32,6],null,[["@topic"],[[30,1]]],null],[41,[30,3],[[[8,[32,7],null,[["@unreadPosts","@unseen","@newDotText","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,0,["newDotText"]],[30,1,["lastUnreadUrl"]]]],null]],[]],null]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-topic-cell-link-bottom-line",[28,[32,1],null,[["topic","tagsForUser"],[[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n"],[41,[51,[30,4]],[[[41,[51,[30,1,["isPinnedUncategorized"]]],[[[1," "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-category",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,8],[[30,1,["category"]]],null]],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-after-category",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[1,[28,[32,9],[[30,1]],[["mode","tagsForUser"],["list",[30,2]]]]],[1,"\\n\\n"],[41,[30,0,["participantGroups"]],[[[1," "],[8,[32,10],null,[["@groups"],[[30,0,["participantGroups"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,11],[[24,0,"likes"]],[["@topic","@postNumbers","@icon"],[[30,1],[30,1,["liked_post_numbers"]],"heart"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,5],[[[1," "],[8,[32,12],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-main-link-bottom",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topic","@tagsForUser","@showTopicPostBadges","@hideCategory","@expandPinned"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/topic-cell.js",scope:()=>[l.default,n.hash,g.default,p.default,r.on,y.default,h.default,m.default,f.default,_.default,u.default,c.default,d.default],isStrictMode:!0}),this))()}},11749:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75446),n=i(98740),r=i(81133),o=i(72613),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2+2Q2rJD",block:'[[[1,"\\n "],[10,"td"],[15,0,[28,[32,0],["num views topic-list-data",[30,1,["viewsHeat"]]],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["topic-list-before-view-count",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,3],[[30,1,["views"]]],[["numberKey"],["views_long"]]]],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/views-cell.js",scope:()=>[r.default,n.default,s.hash,o.default],isStrictMode:!0}),(0,c.default)(void 0,"views-cell:ViewsCell"))},61602:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(80989),n=i(75446),r=i(98740),o=i(13243),a=i(34574),l=i(40121),c=i(94366),u=i(1779),d=i(70349),p=i(18385),h=i(81133),m=i(23245),g=i(54412),f=i(41265),_=i(52406),y=i(1799),b=i(53653),w=i(85671);class k extends s.default{get tagClassNames(){return this.args.topic.tags?.map(e=>`tag-${e}`)}get additionalClasses(){return(0,y.applyValueTransformer)("latest-topic-list-item-class",[],{topic:this.args.topic})}static #e=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"GINnRvuQ",block:'[[[1,"\\n "],[10,0],[15,"data-topic-id",[30,1,["id"]]],[15,0,[28,[32,0],["latest-topic-list-item",[30,0,["tagClassNames"]],[52,[30,1,["category"]],[28,[32,1],["category-",[30,1,["category","fullSlug"]]],null]],[52,[30,1,["liked"]],"liked"],[52,[30,1,["archived"]],"archived"],[52,[30,1,["bookmarked"]],"bookmarked"],[52,[30,1,["pinned"]],"pinned"],[52,[30,1,["closed"]],"closed"],[52,[30,1,["visited"]],"visited"],[30,0,["additionalClasses"]]],null]],[12],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item","div",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[8,[32,2],null,[["@name","@outletArgs"],["latest-topic-list-item-topic-poster",[28,[32,3],null,[["topic"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"topic-poster"],[12],[1,"\\n "],[8,[32,4],null,[["@user"],[[30,1,["lastPosterUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,5],[[30,1,["lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,6],null,[["@user"],[[30,1,["lastPosterUser"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,0],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"top-row"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@outletArgs"],["latest-topic-list-item-main-link-top-row",[28,[32,3],null,[["topic"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[32,7],null,[["@topic","@context"],[[30,1],"topic-list"]],null],[1,"\\n\\n "],[1,[28,[32,8],[[30,1]],null]],[41,[30,1,["featured_link"]],[[[1,"  "],[1,[28,[32,9],[[30,1]],null]],[1,"\\n"]],[]],null],[8,[32,10],null,[["@unreadPosts","@unseen","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,1,["lastUnreadUrl"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@outletArgs"],["latest-topic-list-item-main-link-bottom-row",[28,[32,3],null,[["topic"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,11],[[30,1,["category"]]],null]],[1,[28,[32,12],[[30,1]],[["mode"],["list"]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["below-latest-topic-list-item-bottom-row","span",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-stats"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[8,[32,2],null,[["@name","@outletArgs"],["latest-topic-list-item-topic-stats",[28,[32,3],null,[["topic"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[32,13],null,[["@topic","@tagName"],[[30,1],"div"]],null],[1,"\\n "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[15,"title",[30,1,["bumpedAtTitle"]]],[12],[1,[28,[32,14],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/latest-topic-list-item.js",scope:()=>[h.default,n.concat,r.default,n.hash,u.default,d.default,c.default,l.default,_.default,f.default,a.default,p.default,m.default,o.default,g.default],isStrictMode:!0}),this))()}},46030:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>N});var s=i(80989);i(8554);var n=i(75446),r=i(83133),o=i(81329),a=i(98740),l=i(17235),c=i(40709),u=i(81133),d=i(72024),p=i(1799),h=i(843),m=i(44456),g=i(50196),f=i(31861),_=i(68885),y=i(9759),b=i(1877),w=i(27360),k=i(41811),T=i(482),S=i(4346),C=i(58619),x=i(87195),A=i(75765),E=i(13243),D=i(37110),P=i(11749),M=i(53653),F=i(85671);let I=(0,i(38168).A)(i(8554)).cached;class N extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"topicTrackingState",[r.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();get columns(){let e=new d.default({onReplaceItem(e,t,i){t.header??=i.header,t.item??=i.item}});this.bulkSelectEnabled&&e.add("bulk-select",{header:g.default,item:S.default}),e.add("topic",{header:w.default,item:D.default}),this.args.showPosters&&e.add("posters",{header:y.default,item:A.default}),e.add("replies",{header:b.default,item:E.default}),"likes"===this.args.order?e.add("likes",{header:f.default,item:C.default}):"op_likes"===this.args.order&&e.add("op-likes",{header:_.default,item:x.default}),e.add("views",{header:k.default,item:P.default}),e.add("activity",{header:m.default,item:T.default});let t=this;return(0,p.applyMutableValueTransformer)("topic-list-columns",e,{get category(){return t.topicTrackingState.get("filterCategory")},get filter(){return t.topicTrackingState.get("filter")}}).resolve()}static #s=(()=>dt7948.n(this.prototype,"columns",[I]))();get selected(){return this.args.bulkSelectHelper?.selected}get bulkSelectEnabled(){return this.args.bulkSelectHelper?.bulkSelectEnabled&&this.args.canBulkSelect}get canDoBulkActions(){return this.currentUser?.canManageTopic&&this.selected?.length}get toggleInTitle(){return!this.bulkSelectEnabled&&this.args.canBulkSelect}get showTopicPostBadges(){return this.args.showTopicPostBadges??!0}get lastVisitedTopic(){let e,t;let{topics:i,order:s,ascending:n,top:r,hot:o}=this.args;if(!this.args.highlightLastVisited||r||o||n||!i||1===i.length||s&&"activity"!==s||!this.currentUser?.get("previous_visit_at"))return;let a=Math.max(i.findIndex(e=>!e.get("pinned")),0);for(let s=i.length-1;s>=a;s--){if(i[s].get("bumpedAt")>this.currentUser.get("previousVisitAt")){e=i[s];break}t=i[s]}if(!(!e||!t||t.get("bumpedAt")>this.currentUser.get("previousVisitAt")))return e}get additionalClasses(){return(0,p.applyValueTransformer)("topic-list-class",[],{topics:this.args.topics})}static #l=(()=>(0,M.setComponentTemplate)((0,F.createTemplateFactory)({id:"4INH2Rk5",block:'[[[1,"\\n"],[1," "],[10,"table"],[15,0,[28,[32,0],["topic-list",[52,[30,0,["bulkSelectEnabled"]],"sticky-header"],[30,0,["additionalClasses"]]],null]],[12],[1,"\\n "],[10,"caption"],[14,0,"sr-only"],[12],[1,[28,[32,1],["sr_topic_list_caption"],null]],[13],[1,"\\n "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n "],[8,[32,2],null,[["@columns","@canBulkSelect","@toggleInTitle","@category","@hideCategory","@order","@changeSort","@ascending","@sortable","@listTitle","@bulkSelectHelper","@bulkSelectEnabled","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,0,["columns"]],[30,1],[30,0,["toggleInTitle"]],[30,2],[30,3],[30,4],[30,5],[30,6],[30,5],[28,[32,3],[[30,7],"topic.title"],null],[30,8],[30,0,["bulkSelectEnabled"]],[30,0,["canDoBulkActions"]],[30,9],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[32,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,14],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,15],[30,3]]]]]],null],[1,"\\n\\n "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,14]],null]],null],null,[[[1," "],[8,[32,6],null,[["@columns","@topic","@bulkSelectHelper","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,0,["columns"]],[30,16],[30,8],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,3],[30,18],[30,19],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,20],[30,21],[30,17]]],null],[1,"\\n\\n"],[41,[28,[32,7],[[30,16],[30,0,["lastVisitedTopic"]]],null],[[[1," "],[10,"tr"],[14,0,"topic-list-item-separator"],[12],[1,"\\n "],[10,"td"],[14,0,"topic-list-data"],[14,"colspan","6"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["topics.new_messages_marker"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,4],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[32,5],null,[["topic","index"],[[30,16],[30,17]]]],"tr"]],null],[1,"\\n"]],[16,17]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[32,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,14],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,15],[30,3]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@canBulkSelect","@category","@hideCategory","@order","@changeSort","@ascending","@listTitle","@bulkSelectHelper","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset","@topics","@discoveryList","topic","index","@expandGloballyPinned","@expandAllPinned","@tagsForUser","@focusLastVisitedTopic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/list.js",scope:()=>[u.default,h.i18n,l.default,o.or,a.default,n.hash,c.default,o.eq],isStrictMode:!0}),this))()}},79360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(75446),r=i(99615),o=i(81133),a=i(843),l=i(53653),c=i(85671);class u extends s.default{get topicsActive(){return"topics"===this.args.current}get repliesActive(){return"replies"===this.args.current}get allActive(){return!this.topicsActive&&!this.repliesActive}get repliesButtonLabel(){return this.args.newRepliesCount>0?(0,a.i18n)("filters.new.replies_with_count",{count:this.args.newRepliesCount}):(0,a.i18n)("filters.new.replies")}get topicsButtonLabel(){return this.args.newTopicsCount>0?(0,a.i18n)("filters.new.topics_with_count",{count:this.args.newTopicsCount}):(0,a.i18n)("filters.new.topics")}get staticLabel(){return this.args.noStaticLabel||this.args.newTopicsCount>0&&this.args.newRepliesCount>0?void 0:this.args.newTopicsCount>0?this.topicsButtonLabel:this.repliesButtonLabel}static #e=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"ZkiV61Jr",block:'[[[1,"\\n"],[41,[30,0,["staticLabel"]],[[[1," "],[10,1],[14,0,"static-label"],[12],[1,[30,0,["staticLabel"]]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --all",[52,[30,0,["allActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],null],null]],null],[12],[1,"\\n "],[1,[28,[32,3],["filters.new.all"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --topics",[52,[30,0,["topicsActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],"topics"],null]],null],[12],[1,"\\n "],[1,[30,0,["topicsButtonLabel"]]],[1,"\\n "],[13],[1,"\\n\\n "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --replies",[52,[30,0,["repliesActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],"replies"],null]],null],[12],[1,"\\n "],[1,[30,0,["repliesButtonLabel"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@changeNewListSubset"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/new-list-header-controls.js",scope:()=>[o.default,r.on,n.fn,a.i18n],isStrictMode:!0}),this))()}},4918:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(72738),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"A/QzGagl",block:'[[[1,"\\n "],[10,0],[14,"role","list"],[15,"aria-label",[28,[32,0],["topic.participant_groups"],null]],[14,0,"participant-group-wrapper"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[10,0],[14,0,"participant-group"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["url"]]],[15,"data-group-card",[30,2,["name"]]],[14,0,"user-group trigger-group-card"],[12],[1,"\\n "],[1,[28,[32,1],["users"],null]],[1,"\\n "],[1,[30,2,["name"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],["@groups","group"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/participant-groups.js",scope:()=>[n.i18n,s.default],isStrictMode:!0}),(0,a.default)(void 0,"participant-groups:ParticipantGroups"))},72107:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(81329),n=i(13243),r=i(34574),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"/EQB/oEZ",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[30,2,["unread_posts"]]],null],[[[1," "],[8,[32,1],null,[["@unreadPosts","@unseen","@url"],[[30,2,["unread_posts"]],[30,2,["unseen"]],[30,2,["lastUnreadUrl"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@topic","@tagName"],[[30,2],"div"]],null],[1,"\\n"]],[]]]],["@postBadgesEnabled","@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/post-count-or-badges.js",scope:()=>[s.and,r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,"post-count-or-badges:PostCountOrBadges"))},20139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(20797),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"K0reyWoS",block:'[[[1,"\\n "],[10,0],[14,0,"bulk-select-topics-dropdown"],[12],[1,"\\n "],[10,1],[14,0,"bulk-select-topic-dropdown__count"],[12],[1,"\\n "],[1,[28,[32,0],["topics.bulk.selected_count"],[["count"],[[30,1,["selected","length"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,1],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],["@bulkSelectHelper","@afterBulkActionComplete"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-bulk-select-dropdown.js",scope:()=>[n.i18n,s.default],isStrictMode:!0}),(0,a.default)(void 0,"topic-bulk-select-dropdown:TopicBulkSelectDropdown"))},2635:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(10650),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"LOJTbWPr",block:'[[[1,"\\n"],[41,[30,1,["hasExcerpt"]],[[[1," "],[10,3],[15,6,[30,1,["url"]]],[14,0,"topic-excerpt"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["escapedExcerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n\\n"],[41,[30,1,["excerptTruncated"]],[[[1," "],[10,1],[14,0,"topic-excerpt-more"],[12],[1,[28,[32,1],["read_more"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-excerpt.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,a.default)(void 0,"topic-excerpt:TopicExcerpt"))},1840:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75446),r=i(42256),o=i(98740),a=i(53653),l=i(85671);class c extends s.default{get url(){return this.args.topic.linked_post_number?this.args.topic.urlForPostNumber(this.args.topic.linked_post_number):this.args.topic.lastUnreadUrl}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"HAN7JBt2",block:'[[[8,[32,0],null,[["@name","@outletArgs"],["topic-link",[28,[32,1],null,[["topic"],[[30,1]]]]]],[["default"],[[[[11,3],[16,6,[30,0,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[24,0,"title"],[17,2],[12],[1,[28,[32,2],[[30,1,["fancyTitle"]]],null]],[13]],[]]]]]],["@topic","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-link.js",scope:()=>[o.default,n.hash,r.htmlSafe],isStrictMode:!0}),this))()}},5029:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(72738),o=i(63748),a=i(843),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();constructor(){super(...arguments),this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage)}onMessage(e){this.args.topic.set("unread_by_group_member",e.show_indicator)}static #i=(()=>dt7948.n(this.prototype,"onMessage",[o.bind]))();get unreadIndicatorChannel(){return`/private-messages/unread-indicator/${this.args.topic.id}`}static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"0Ndbfukh",block:'[[[41,[30,1,["unread_by_group_member"]],[[[1," "],[10,1],[15,"title",[28,[32,0],["topic.unread_indicator"],null]],[14,0,"badge badge-notification unread-indicator"],[12],[1,[28,[32,1],["asterisk"],null]],[13]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/unread-indicator.js",scope:()=>[a.i18n,r.default],isStrictMode:!0}),this))()}},1310:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75446),n=i(98740),r=i(73808),o=i(80107),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"OCmHKk8D",block:'[[[1,"\\n"],[41,[51,[30,1,["postStream","loadingFilter"]]],[[[1," "],[10,"section"],[14,0,"topic-map__contents"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@topicDetails","@postStream"],[[30,1],[30,2],[30,3]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"topic-map__additional-contents toggle-summary"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@defaultGlimmer","@outletArgs"],["topic-map-expanded-after",true,[28,[32,2],null,[["topic","postStream"],[[30,1],[30,3]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,4],[[[1," "],[10,"section"],[14,0,"topic-map__private-message-map"],[12],[1,"\\n "],[8,[32,3],null,[["@topicDetails","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,2],[30,5],[30,6],[30,7]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],["@model","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/index.js",scope:()=>[o.default,n.default,s.hash,r.default],isStrictMode:!0}),(0,c.default)(void 0,"topic-map:TopicMap"))},73808:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(83133),l=i(81329),c=i(18638),u=i(16717),d=i(72738),p=i(87353),h=i(843),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"isEditing",[n.tracked],function(){return!1}))();#ob=(()=>void dt7948.i(this,"isEditing"))();get participantsClasses(){return!this.isEditing&&this.site.mobileView&&this.args.topicDetails.allowed_groups.length>4?"participants hide-names":"participants"}get canInvite(){return this.args.topicDetails.can_invite_to}get canRemove(){return this.args.topicDetails.can_remove_allowed_users||this.args.topicDetails.can_remove_self_id}get canShowControls(){return this.canInvite||this.canRemove}get actionAllowed(){return this.canRemove?this.toggleEditing:this.args.showInvite}get actionAllowedLabel(){return this.canInvite&&this.canRemove?"private_message_info.edit":!this.canInvite&&this.canRemove?"private_message_info.remove":"private_message_info.add"}toggleEditing(){this.isEditing=!this.isEditing}static #s=(()=>dt7948.n(this.prototype,"toggleEditing",[o.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"SYFKBNrO",block:'[[[1,"\\n "],[10,0],[15,0,[30,0,["participantsClasses"]]],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["allowed_groups"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@model","@isEditing","@canRemoveAllowedUsers","@removeAllowedGroup"],[[30,2],[30,0,["isEditing"]],[30,1,["can_remove_allowed_users"]],[30,3]]],null],[1,"\\n"]],[2]],null],[42,[28,[31,1],[[28,[31,1],[[30,1,["allowed_users"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@model","@isEditing","@canRemoveAllowedUsers","@canRemoveSelfId","@removeAllowedUser"],[[30,4],[30,0,["isEditing"]],[30,1,["can_remove_allowed_users"]],[30,1,["can_remove_self_id"]],[30,5]]],null],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canShowControls"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-default add-remove-participant-btn"]],[["@action","@label"],[[30,0,["actionAllowed"]],[30,0,["actionAllowedLabel"]]]],null],[1,"\\n\\n"],[41,[28,[32,3],[[30,0,["canInvite"]],[30,0,["isEditing"]]],null],[[[1," "],[8,[32,2],[[24,0,"btn-default add-participant-btn"]],[["@action","@icon"],[[30,6],"plus"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@topicDetails","group","@removeAllowedGroup","user","@removeAllowedUser","@showInvite"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[_,b,c.default,l.and],isStrictMode:!0}),this))()}class _ extends s.default{get canRemoveLink(){return this.args.isEditing&&this.args.canRemoveAllowedUsers}get groupUrl(){return(0,p.groupPath)(this.args.model.name)}static #e=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"isLeg0lP",block:'[[[1,"\\n "],[10,0],[14,0,"user group"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["groupUrl"]]],[14,0,"group-link"],[12],[1,"\\n "],[1,[28,[32,0],["users"],null]],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canRemoveLink"]],[[[1," "],[8,[32,1],null,[["@model","@removeAllowedGroup"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","@removeAllowedGroup"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[d.default,y],isStrictMode:!0}),this))()}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();showConfirmDialog(){this.dialog.deleteConfirm({message:(0,h.i18n)("private_message_info.remove_allowed_group",{name:this.args.model.name}),confirmButtonLabel:"private_message_info.remove_group",didConfirm:()=>this.args.removeAllowedGroup(this.args.model)})}static #i=(()=>dt7948.n(this.prototype,"showConfirmDialog",[o.action]))();static #s=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pYHtg6/s",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"remove-invited"]],[["@action","@icon"],[[30,0,["showConfirmDialog"]],"xmark"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[c.default],isStrictMode:!0}),this))()}class b extends s.default{get avatarTitle(){return this.args.model.name||this.args.model.username}get isCurrentUser(){return this.args.canRemoveSelfId===this.args.model.id}get canRemoveLink(){return this.args.isEditing&&(this.args.canRemoveAllowedUsers||this.isCurrentUser)}static #e=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"oXyjIykc",block:'[[[1,"\\n "],[10,0],[14,0,"user"],[12],[1,"\\n "],[10,3],[14,0,"user-link"],[15,6,[30,1,["path"]]],[12],[1,"\\n "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,1,["username"]]],[15,"title",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["avatar_template"]],"tiny",[28,[32,1],null,[["title"],[[30,0,["avatarTitle"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canRemoveLink"]],[[[1," "],[8,[32,2],null,[["@model","@isCurrentUser","@removeAllowedUser"],[[30,1],[30,0,["isCurrentUser"]],[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","@removeAllowedUser"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[u.default,r.hash,w],isStrictMode:!0}),this))()}class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();showConfirmDialog(){let e=this.args.isCurrentUser?"private_message_info.leave_message":"private_message_info.remove_allowed_user";this.dialog.deleteConfirm({message:(0,h.i18n)(e,{name:this.args.model.username}),confirmButtonLabel:this.args.isCurrentUser?"private_message_info.leave":"private_message_info.remove_user",didConfirm:()=>this.args.removeAllowedUser(this.args.model)})}static #i=(()=>dt7948.n(this.prototype,"showConfirmDialog",[o.action]))();static #s=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pYHtg6/s",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"remove-invited"]],[["@action","@icon"],[[30,0,["showConfirmDialog"]],"xmark"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[c.default],isStrictMode:!0}),this))()}},38275:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(46153),r=i(843),o=i(36833),a=i(53653),l=i(85671);class c extends s.default{get linkClasses(){return this.args.attachment?"topic-link track-link attachment":"topic-link track-link"}get truncatedContent(){let e=this.args.title||this.args.url;return e.length>85?`${e.slice(0,85).trim()}...`:e}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2vA5cxfG",block:'[[[1,"\\n "],[10,3],[15,0,[30,0,["linkClasses"]]],[15,6,[30,1]],[15,"title",[30,1]],[15,"data-user-id",[30,2]],[14,"data-ignore-post-id","true"],[14,"target","_blank"],[14,"rel","nofollow ugc noopener noreferrer"],[15,"data-clicks",[30,3]],[15,"aria-label",[28,[32,0],["topic_map.clicks"],[["count"],[[30,3]]]]],[12],[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,1],[[30,0,["truncatedContent"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["truncatedContent"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[28,[32,2],[[30,4],[30,5]],null],[[[1," "],[10,1],[14,0,"domain"],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@url","@userId","@clickCount","@title","@rootDomain"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-map-link.js",scope:()=>[r.i18n,n.default,o.default],isStrictMode:!0}),this))()}},80107:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MIN_POSTS_COUNT:()=>E,default:()=>D});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(18387),l=i(83133),c=i(42256),u=i(96320),d=i(18638),p=i(98740),h=i(38275),m=i(28420),g=i(64338),f=i(93131),_=i(16717),y=i(81133),b=i(72738),w=i(72613),k=i(6864),T=i(50409),S=i(843),C=i(12610),x=i(53653),A=i(85671);let E=3;class D extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[l.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"mapCache",[l.service]))();#ov=(()=>void dt7948.i(this,"mapCache"))();static #l=(()=>dt7948.g(this.prototype,"dialog",[l.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #c=(()=>dt7948.g(this.prototype,"allLinksShown",[n.tracked],function(){return!1}))();#ow=(()=>void dt7948.i(this,"allLinksShown"))();static #u=(()=>dt7948.g(this.prototype,"top3LikedPosts",[n.tracked],function(){return[]}))();#ok=(()=>void dt7948.i(this,"top3LikedPosts"))();static #d=(()=>dt7948.g(this.prototype,"views",[n.tracked],function(){return[]}))();#oT=(()=>void dt7948.i(this,"views"))();static #p=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#T=(()=>void dt7948.i(this,"loading"))();get shouldShowParticipants(){return this.args.topic.posts_count>=E&&this.args.topicDetails.participants?.length>=2&&!this.site.mobileView}get first5Participants(){return this.args.topicDetails.participants.slice(0,5)}get readTimeMinutes(){let e=Math.ceil(Math.max(this.args.topic.word_count/this.siteSettings.read_time_word_count,4*this.args.topic.posts_count/60));return e>3?e:null}get topRepliesSummaryEnabled(){return this.args.postStream.summary}get topRepliesTitle(){if(!this.topRepliesSummaryEnabled)return(0,S.i18n)("summary.short_title")}get topRepliesIcon(){return this.topRepliesSummaryEnabled?"up-down":"layer-group"}get topRepliesLabel(){return this.topRepliesSummaryEnabled?(0,S.i18n)("summary.show_all_label"):(0,S.i18n)("summary.short_label")}get loneStat(){return!this.args.topic.has_summary&&[this.hasLikes,this.hasUsers,this.hasLinks].every(e=>!e)}get manyStats(){return[this.hasLikes,this.hasUsers,this.hasLinks].every(Boolean)}get minViewsCount(){return Math.max(this.args.topic.views,1)}get shouldShowViewsChart(){return this.views.stats.length>2}get linksCount(){return this.args.topicDetails.links?.length??0}get topicLinks(){return this.args.topicDetails.links}get linksToShow(){return this.allLinksShown?this.topicLinks:this.topicLinks?.slice(0,5)}get hasMoreLinks(){return!this.allLinksShown&&this.linksCount>5}get hasLikes(){return this.args.topic.like_count>5&&this.args.topic.posts_count>E}get hasUsers(){return this.args.topic.participant_count>5}get hasLinks(){return this.linksCount>0}showAllLinks(){this.allLinksShown=!0}static #h=(()=>dt7948.n(this.prototype,"showAllLinks",[o.action]))();showTopReplies(){this.args.postStream.showTopReplies()}static #m=(()=>dt7948.n(this.prototype,"showTopReplies",[o.action]))();cancelFilter(){this.args.postStream.cancelFilter(),this.args.postStream.refresh()}static #g=(()=>dt7948.n(this.prototype,"cancelFilter",[o.action]))();postUrl(e){return this.args.topic.urlForPostNumber(e.post_number)}static #A=(()=>dt7948.n(this.prototype,"postUrl",[o.action]))();fetchMostLiked(){let e=`top3LikedPosts_${this.args.topic.id}`,t=this.mapCache.get(e);if(this.loading=!0,t){this.top3LikedPosts=t,this.loading=!1;return}let i=`/search.json?q=" " topic%3A${this.args.topic.id} order%3Alikes`;(0,k.ajax)(i).then(t=>{let i=t.posts.filter(e=>e.post_number>1&&e.like_count>0).sort((e,t)=>t.like_count-e.like_count).slice(0,3);this.mapCache.set(e,i),this.top3LikedPosts=i}).catch(e=>{this.dialog.alert((0,S.i18n)("generic_error_with_reason",{error:`http: ${e.status} - ${e.body}`}))}).finally(()=>{this.loading=!1})}static #E=(()=>dt7948.n(this.prototype,"fetchMostLiked",[o.action]))();fetchViews(){let e=`topicViews_${this.args.topic.id}`,t=this.mapCache.get(e);if(this.loading=!0,t){this.views=t,this.loading=!1;return}(0,k.ajax)(`/t/${this.args.topic.id}/view-stats.json`).then(t=>{t.stats.length||t.stats.push({viewed_at:new Date().toISOString().split("T")[0],views:this.args.topic.views}),this.views=t,this.mapCache.set(e,t)}).catch(e=>{this.dialog.alert((0,S.i18n)("generic_error_with_reason",{error:`http: ${e.status} - ${e.body}`}))}).finally(()=>{this.loading=!1})}static #D=(()=>dt7948.n(this.prototype,"fetchViews",[o.action]))();static #P=(()=>(0,x.setComponentTemplate)((0,A.createTemplateFactory)({id:"6OXWRXPE",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["topic-map__stats",[52,[30,0,["loneStat"]],"--single-stat"],[52,[30,0,["manyStats"]],"--many-stats"]],null]],[12],[1,"\\n "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@placement","@groupIdentifier","@inline","@onShow"],[true,"topic-map__views",true,"click",true,"right","topic-map",true,[30,0,["fetchViews"]]]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,0,["minViewsCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["views_lowercase"],[["count"],[[30,0,["minViewsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,"h3"],[12],[1,[28,[32,3],["topic_map.menu_titles.views"],null]],[13],[1,"\\n "],[8,[32,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["shouldShowViewsChart"]],[[[1," "],[8,[32,5],null,[["@views","@created"],[[30,0,["views"]],[30,1,["created_at"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,6],null,[["@views"],[[30,0,["views"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["hasLikes"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@placement","@groupIdentifier","@inline"],[true,"topic-map__likes",true,"click",true,"right","topic-map",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1,["like_count"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["likes_lowercase"],[["count"],[[30,1,["like_count"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[11,"h3"],[4,[32,7],[[30,0,["fetchMostLiked"]]],null],[12],[1,[28,[32,3],["topic_map.menu_titles.replies"],null]],[13],[1,"\\n "],[8,[32,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["most-liked-replies",[28,[32,9],null,[["posts"],[[30,0,["top3LikedPosts"]]]]]]],[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["top3LikedPosts"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[10,3],[15,6,[28,[30,0,["postUrl"]],[[30,2]],null]],[12],[1,"\\n "],[10,1],[14,0,"like-section__user"],[12],[1,"\\n "],[1,[28,[32,10],[[30,2,["avatar_template"]],"tiny",[28,[32,9],null,[["title"],[[30,2,["username"]]]]]],null]],[1,"\\n "],[1,[30,2,["username"]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"like-section__likes"],[12],[1,"\\n "],[1,[30,2,["like_count"]]],[1,"\\n "],[1,[28,[32,11],["heart"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,12],[[28,[32,13],[[30,2,["blurb"]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["linksCount"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@groupIdentifier","@placement","@inline"],[true,"topic-map__links",true,"click",true,"topic-map","right",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,0,["linksCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["links_lowercase"],[["count"],[[30,0,["linksCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,"h3"],[12],[1,[28,[32,3],["topic_map.links_title"],null]],[13],[1,"\\n "],[10,"ul"],[14,0,"topic-links"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["linksToShow"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,14],null,[["@attachment","@title","@rootDomain","@url","@userId","@clickCount"],[[30,3,["attachment"]],[30,3,["title"]],[30,3,["root_domain"]],[30,3,["url"]],[30,3,["user_id"]],[30,3,["clicks"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["hasMoreLinks"]],[[[1," "],[8,[32,15],[[24,0,"link-summary btn-flat"]],[["@action","@title","@icon"],[[30,0,["showAllLinks"]],"topic_map.links_shown","chevron-down"]],null],[1,"\\n\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasUsers"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@placement","@modalForMobile","@groupIdentifier","@inline"],[true,"topic-map__users",true,"click","right",true,"topic-map",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1,["participant_count"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["users_lowercase"],[["count"],[[30,1,["participant_count"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,16],null,[["@title","@userFilters","@participants"],[[28,[32,3],["topic_map.participants_title"],null],[30,4,["userFilters"]],[30,5,["participants"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldShowParticipants"]],[[[1," "],[8,[32,16],null,[["@participants","@userFilters"],[[30,0,["first5Participants"]],[30,4,["userFilters"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"topic-map__buttons"],[12],[1,"\\n"],[41,[30,0,["readTimeMinutes"]],[[[1," "],[10,0],[14,0,"estimated-read-time"],[12],[1,"\\n "],[10,1],[12],[1," "],[1,[28,[32,3],["topic_map.read"],null]],[1," "],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[30,0,["readTimeMinutes"]]],[1,"\\n "],[1,[28,[32,3],["topic_map.minutes"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["has_summary"]],[[[1," "],[10,0],[14,0,"summarization-button"],[12],[1,"\\n "],[8,[32,15],[[24,0,"btn-default top-replies"]],[["@action","@translatedTitle","@translatedLabel","@icon"],[[52,[30,4,["summary"]],[30,0,["cancelFilter"]],[30,0,["showTopReplies"]]],[30,0,["topRepliesTitle"]],[30,0,["topRepliesLabel"]],[30,0,["topRepliesIcon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic","post","link","@postStream","@topicDetails"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-map-summary.js",scope:()=>[y.default,C.default,w.default,S.i18n,u.default,f.default,g.default,a.default,p.default,r.hash,_.default,b.default,c.htmlSafe,T.emojiUnescape,h.default,d.default,m.default],isStrictMode:!0}),this))()}},41553:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addTopicParticipantClassesCallback:()=>m,default:()=>g});var s=i(80989),n=i(75446),r=i(42256),o=i(81329),a=i(98740),l=i(94366),c=i(17587),u=i(87353),d=i(53653),p=i(85671);let h=[];function m(e){h.push(e)}class g extends s.default{get avatarImage(){return(0,r.htmlSafe)((0,c.avatarImg)({avatarTemplate:this.args.participant.avatar_template,size:"medium",title:this.args.participant.name||this.args.participant.username}))}get participantClasses(){let{primary_group_name:e}=this.args.participant;return[e?`group-${e}`:null,h.map(e=>e(this.args.participant))].filter(Boolean).flat(3).join(" ")}get linkClasses(){return["poster","trigger-user-card",this.args.toggledUsers?.has(this.args.participant.username)?"toggled":null].filter(Boolean).join(" ")}get userUrl(){return(0,u.userPath)(this.args.participant.username)}static #e=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"cpZXiaHH",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-participant",[28,[32,1],null,[["participant"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[30,0,["participantClasses"]]],[12],[1,"\\n "],[10,3],[15,0,[30,0,["linkClasses"]]],[15,"data-user-card",[30,1,["username"]]],[15,"title",[30,1,["username"]]],[15,6,[30,0,["userUrl"]]],[12],[1,"\\n "],[1,[30,0,["avatarImage"]]],[1,"\\n"],[41,[28,[32,2],[[30,1,["post_count"]],1],null],[[[1," "],[10,1],[14,0,"post-count"],[12],[1,[30,1,["post_count"]]],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@user"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@participant"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participant.js",scope:()=>[a.default,n.hash,o.gt,l.default],isStrictMode:!0}),this))()}},28420:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(41553),r=i(53653),o=i(85671);class a extends s.default{toggledUsers=(()=>new Set(this.args.userFilters))();static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"doMtkXus",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,"h3"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["topic-map__users-list ",[52,[51,[30,1]],"--users-summary"]]]],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,2]],null]],null],null,[[[1," "],[8,[32,0],null,[["@participant","@toggledUsers"],[[30,3],[30,0,["toggledUsers"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "]],["@title","@participants","participant"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participants.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},93131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(35533),r=i(18387),o=i(53404),a=i(843),l=i(53653),c=i(85671);let u=new Date,d=Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate());class p extends s.default{chart=null;noData=!1;async renderChart(e){if(await (0,o.default)("/javascripts/Chart.min.js"),!this.args.views?.stats||this.args.views?.stats?.length===0){this.noData=!0;return}let t=this.args.views.stats.map(e=>({x:new Date(`${e.viewed_at}T00:00:00Z`).getTime(),y:e.views})),i=(t=function(e){let t=[],i=e[0].x;for(let s=0;s1&&void 0!==arguments[1]?arguments[1]:3,i=Array.from({length:t},(e,t)=>t+1),s=i.reduce((e,t)=>e+t,0),n=[];for(let r=0;r=i?s+(s-i)*(1-n):s+i*(1-n),s))}(t),n={x:i.x,y:s};(t=t.slice(0,t.length-1)).push(n);let r=e.getContext("2d"),l=t[0].x,c=i.x,p=document.querySelector(".topic-map"),h=getComputedStyle(p).getPropertyValue("--chart-line-color"),m=getComputedStyle(p).getPropertyValue("--chart-point-color"),g=getComputedStyle(p).getPropertyValue("--chart-prediction-color");this.chart&&this.chart.destroy(),this.chart=new window.Chart(r,{type:"line",data:{datasets:[{label:"Views",data:t.slice(0,-1),showLine:!0,borderColor:m,backgroundColor:h,pointBackgroundColor:m},{label:"Predicted Views",data:[t[t.length-2],t[t.length-1]],showLine:!0,borderDash:[5,5],borderColor:g,backgroundColor:g,pointBackgroundColor:g}]},options:{scales:{x:{type:"linear",position:"bottom",min:l,max:c,ticks:{autoSkip:!1,stepSize:864e5,maxTicksLimit:15,callback:function(e){return new Date(e+864e5).toLocaleDateString(a.default.currentBcp47Locale,{month:"2-digit",day:"2-digit"})}}},y:{beginAtZero:!0,ticks:{callback:function(e){return e}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(e){let t=new Date(e[0]?.parsed?.x+864e5);return 0===e.length&&(t=new Date().getUTCDate()),t.toLocaleDateString(a.default.currentBcp47Locale,{month:"2-digit",day:"2-digit",year:"numeric"})},label:function(e){let t=e?.parsed?.x===d?(0,a.i18n)("topic_map.predicted_views"):(0,a.i18n)("topic_map.views");return`${t}: ${e?.parsed?.y}`}},filter:function(e){return e?.parsed?.x!==d-864e5||e?.datasetIndex!==1}}}}})}static #e=(()=>dt7948.n(this.prototype,"renderChart",[n.action]))();static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"eakT4/Ve",block:'[[[1,"\\n"],[41,[30,0,["noData"]],[[[1," "],[1,[28,[32,0],["topic_map.chart_error"],null]],[1,"\\n"]],[]],[[[1," "],[11,"canvas"],[4,[32,1],[[30,0,["renderChart"]]],null],[12],[13],[1,"\\n "],[10,0],[14,0,"view-explainer"],[12],[1,[28,[32,0],["topic_map.view_explainer"],null]],[13],[1,"\\n"]],[]]],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-views-chart.js",scope:()=>[a.i18n,r.default],isStrictMode:!0}),this))()}},64338:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(843),r=i(53653),o=i(85671);class a extends s.default{adjustAggregatedData(e){let t=[];return e.forEach(e=>{let i=new Date(`${e.viewed_at}T00:00:00Z`),s=i.toLocaleDateString(n.default.currentBcp47Locale,{year:"numeric",month:"2-digit",day:"2-digit"}),r=t.find(e=>e.dateStr===s);r?r.views+=e.views:t.push({dateStr:s,views:e.views,localDate:i})}),t.map(e=>({viewed_at:e.localDate.toISOString().split("T")[0],views:e.views}))}formatDate(e){return e.toLocaleDateString(n.default.currentBcp47Locale,{month:"2-digit",day:"2-digit"})}get updatedStats(){let e=this.adjustAggregatedData(this.args.views.stats).map(e=>{let t=new Date(new Date(`${e.viewed_at}T00:00:00`).getTime());return{...e,statDate:t,label:this.formatDate(t)}}),t=e[e.length-1];return t.views=Math.max(t.views,1),e}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"bsuWRop4",block:'[[[1,"\\n "],[10,0],[14,0,"topic-views__wrapper"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["updatedStats"]]],null]],null],null,[[[1," "],[10,0],[14,0,"topic-views"],[12],[1,"\\n "],[10,0],[14,0,"topic-views__count"],[12],[1,"\\n "],[1,[30,1,["views"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-views__date"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["stat"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-views.js",isStrictMode:!0}),this))()}},12218:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(8554),r=i(35533),o=i(83133),a=i(18638),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[o.service]))();#eq=(()=>void dt7948.i(this,"keyValueStore"))();static #i=(()=>dt7948.g(this.prototype,"hidden",[n.tracked],function(){return!1}))();#eg=(()=>void dt7948.i(this,"hidden"))();constructor(){if(super(...arguments),this.popupKey){let e=this.keyValueStore.getItem(this.popupKey);!0===e||e>+new Date?this.hidden=!0:this.keyValueStore.removeItem(this.popupKey)}}get popupKey(){if(this.args.popupId)return`dismiss_topic_nav_popup_${this.args.popupId}`}close(){if(this.hidden=!0,this.popupKey){if(this.args.dismissDuration){let e=+new Date+this.args.dismissDuration;this.keyValueStore.setItem(this.popupKey,e)}else this.keyValueStore.setItem(this.popupKey,!0)}}static #s=(()=>dt7948.n(this.prototype,"close",[r.action]))();static #l=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"4FFptR8s",block:'[[[1,"\\n"],[41,[51,[30,0,["hidden"]]],[[[1," "],[10,0],[14,0,"topic-navigation-popup"],[12],[1,"\\n "],[8,[32,0],[[24,0,"close btn-flat"]],[["@action","@icon"],[[30,0,["close"]],"xmark"]],null],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["unless","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-navigation-popup.js",scope:()=>[a.default],isStrictMode:!0}),this))()}},49757:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(53653),n=i(35533),r=i(62053),o=i(83133),a=i(53397),l=i(42064),c=i(25124),u=i.n(c),d=i(46301),p=i(63748),h=i(53306),m=i(77270),g=i(38254),f=i(63568);let _=(0,i(85671).createTemplateFactory)({id:"Je3pbzQj",block:'[[[41,[30,0,["canRender"]],[[[1," "],[18,1,[[30,0,["info"]]]],[1,"\\n"]],[]],null]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/topic-navigation.hbs",isStrictMode:!1}),y=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();composerOpen=null;info=(()=>n.default.create())();canRender=!0;_lastTopicId=null;_swipeEvents=null;didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._lastTopicId!==this.topic.id&&(this._lastTopicId=this.topic.id,this.set("canRender",!1),(0,r.next)(()=>{this.set("canRender",!0),this._performCheckSize()}))}_performCheckSize(){if(this.element&&!this.isDestroying&&!this.isDestroyed){if(this.info.topicProgressExpanded)this.info.set("renderTimeline",!0);else if(this.site.mobileView)this.info.set("renderTimeline",!1);else{let e=document.querySelector("#reply-control")?.offsetHeight||0,t=window.innerHeight-e-(0,m.headerOffset)();this.info.set("renderTimeline",this.mediaQuery.matches&&t>325)}this.info.set("withTopicProgress",!this.info.renderTimeline&&this.topic.posts_count>1)}}_checkSize(){(0,d.default)(this,this._performCheckSize,200,!0)}static #i=(()=>dt7948.n(this.prototype,"_checkSize",[p.bind]))();_topicScrolled(e){this.set("info.prevEvent",e)}_expanded(){this.get("info.topicProgressExpanded")?u()(window).on("click.hide-fullscreen",e=>{let t=u()(e.target),i=t.parents();!(!t.is(".widget-button")&&!i.is(".widget-button")&&!i.is("#discourse-modal")&&!t.is("#discourse-modal")&&(t.is(".topic-timeline")||!i.is("#topic-progress-wrapper")))||i.is(".timeline-open-jump-to-post-prompt-btn")||t.is(".timeline-open-jump-to-post-prompt-btn")||this._collapseFullscreen()}):u()(window).off("click.hide-fullscreen"),this._checkSize()}static #s=(()=>dt7948.n(this.prototype,"_expanded",[(0,l.observes)("info.topicProgressExpanded")]))();composerOpened(){this.set("composerOpen",!0),this._checkSize()}composerClosed(){this.set("composerOpen",!1),this._checkSize()}_collapseFullscreen(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;this.get("info.topicProgressExpanded")&&(u()(".timeline-fullscreen").removeClass("show"),(0,h.default)(()=>{!this.element||this.isDestroying||this.isDestroyed||(this.set("info.topicProgressExpanded",!1),this._checkSize())},t))}keyboardTrigger(e){"jump"===e.type&&this.modal.show(f.default,{model:{topic:this.topic,jumpToIndex:this.jumpToIndex,jumpToDate:this.jumpToDate}})}onSwipeStart(e){let t=e.detail,i=t.originalEvent.target;if(i.classList.contains("docked")||!i.closest(".timeline-container")){e.preventDefault();return}t.originalEvent.preventDefault(),document.elementFromPoint(t.center.x,t.center.y).closest(".timeline-scrollarea-wrapper")?e.preventDefault():("up"===t.direction||"down"===t.direction)&&(this.movingElement=document.querySelector(".timeline-container"))}static #l=(()=>dt7948.n(this.prototype,"onSwipeStart",[p.bind]))();onSwipeCancel(){let e=this._swipeEvents.getMaxAnimationTimeMs();document.querySelector(".timeline-container").animate([{transform:"translate3d(0, 0, 0)"}],{duration:e,fill:"forwards",easing:"ease-out"})}static #c=(()=>dt7948.n(this.prototype,"onSwipeCancel",[p.bind]))();onSwipeEnd(e){let t=e.detail,i=document.querySelector(".timeline-container"),s=i.offsetHeight,n=this._swipeEvents.getMaxAnimationTimeMs();if(this._swipeEvents.shouldCloseMenu(t,"bottom")){let e=s-this.pxClosed;n=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),i.animate([{transform:`translate3d(0, ${s}px, 0)`}],{duration:n,fill:"forwards"}).finished.then(()=>this._collapseFullscreen(null,0))}else{let e=this.pxClosed;n=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),i.animate([{transform:"translate3d(0, 0, 0)"}],{duration:n,fill:"forwards",easing:"ease-out"})}}static #u=(()=>dt7948.n(this.prototype,"onSwipeEnd",[p.bind]))();onSwipe(e){let t=e.detail;t.originalEvent.preventDefault(),this.pxClosed=Math.max(0,t.deltaY),this.movingElement.animate([{transform:`translate3d(0, ${this.pxClosed}px, 0)`}],{fill:"forwards"})}static #d=(()=>dt7948.n(this.prototype,"onSwipe",[p.bind]))();didInsertElement(){super.didInsertElement(...arguments),this._lastTopicId=this.topic.id,this.appEvents.on("topic:current-post-scrolled",this,this._topicScrolled).on("topic:jump-to-post",this,this._collapseFullscreen).on("topic:keyboard-trigger",this,this.keyboardTrigger),this.site.desktopView&&(this.mediaQuery=matchMedia("(min-width: 925px)"),this.mediaQuery.addEventListener("change",this._checkSize),this.appEvents.on("composer:opened",this,this.composerOpened),this.appEvents.on("composer:resize-ended",this,this.composerOpened),this.appEvents.on("composer:closed",this,this.composerClosed),u()("#reply-control").on("div-resized",this._checkSize)),this._checkSize(),this._swipeEvents=new g.default(this.element),this.site.mobileView&&(this._swipeEvents.addTouchListeners(),this.element.addEventListener("swipestart",this.onSwipeStart),this.element.addEventListener("swipeend",this.onSwipeEnd),this.element.addEventListener("swipecancel",this.onSwipeCancel),this.element.addEventListener("swipe",this.onSwipe))}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("topic:current-post-scrolled",this,this._topicScrolled).off("topic:jump-to-post",this,this._collapseFullscreen).off("topic:keyboard-trigger",this,this.keyboardTrigger),u()(window).off("click.hide-fullscreen"),this.site.desktopView&&(this.mediaQuery.removeEventListener("change",this._checkSize),this.appEvents.off("composer:opened",this,this.composerOpened),this.appEvents.off("composer:resize-ended",this,this.composerOpened),this.appEvents.off("composer:closed",this,this.composerClosed),u()("#reply-control").off("div-resized",this._checkSize)),this.site.mobileView&&(this.element.removeEventListener("swipestart",this.onSwipeStart),this.element.removeEventListener("swipeend",this.onSwipeEnd),this.element.removeEventListener("swipecancel",this.onSwipeCancel),this.element.removeEventListener("swipe",this.onSwipe),this._swipeEvents.removeTouchListeners())}},[(0,a.classNameBindings)("info.topicProgressExpanded:topic-progress-expanded","info.renderTimeline:with-timeline","info.withTopicProgress:with-topic-progress")]),b=(0,s.setComponentTemplate)(_,y)},28261:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75099),r=i(23777),o=i(843),a=i(53653),l=i(85671);class c extends s.default{get suffix(){return this.args.topic?.archetype==="private_message"?"_pm":""}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"xDbmczrp",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"topic-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix","@title","@levels","@suffix"],[[30,1],[30,2],[30,3],[30,4],"topic.notifications",[28,[32,1],["topic.notifications.title"],null],[32,2],[30,0,["suffix"]]]],null],[1,"\\n "]],["@onChange","@levelId","@showCaret","@showFullTitle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-notifications-tracking.js",scope:()=>[n.default,o.i18n,r.topicLevels],isStrictMode:!0}),this))()}},34574:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(83133),r=i(843),o=i(53653),a=i(85671);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get displayUnreadPosts(){return this.args.newPosts||this.args.unreadPosts}get newDotText(){return this.currentUser?.trust_level>0?" ":(0,r.i18n)("filters.new.lower_title")}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"vRrgRhYz",block:'[[[10,1],[14,0,"topic-post-badges"],[12],[41,[30,0,["displayUnreadPosts"]],[[[1," "],[10,3],[15,6,[30,1]],[15,"title",[28,[32,0],["topic.unread_posts"],[["count"],[[30,0,["displayUnreadPosts"]]]]]],[14,0,"badge badge-notification unread-posts"],[12],[1,[30,0,["displayUnreadPosts"]]],[13]],[]],null],[41,[30,2],[[[1," "],[10,3],[15,6,[30,1]],[15,"title",[28,[32,0],["topic.new"],null]],[14,0,"badge badge-notification new-topic"],[12],[1,[30,0,["newDotText"]]],[13]],[]],null],[13]],["@url","@unseen"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-post-badges.js",scope:()=>[r.i18n],isStrictMode:!0}),this))()}},39454:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(35533),r=i(30574),o=i(62053),a=i(53397),l=i(63748);let c=(0,i(85671).createTemplateFactory)({id:"vubCutSy",block:'[[[41,[51,[30,0,["hideProgress"]]],[[[1," "],[18,1,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showBackButton"]],[[[1," "],[10,0],[14,0,"progress-back-container"],[12],[1,"\\n "],[8,[39,4],[[24,0,"btn-primary btn-small progress-back"]],[["@label","@action","@icon"],["topic.timeline.back",[30,0,["goBack"]],"arrow-down"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"nav"],[15,"title",[28,[37,6],["topic.progress.title"],null]],[15,"aria-label",[28,[37,6],["topic.progress.title"],null]],[15,0,[52,[30,0,["hideProgress"]],"hidden"]],[14,1,"topic-progress"],[15,5,[28,[37,7],[[30,0,["progressStyle"]]],null]],[12],[1,"\\n "],[10,0],[14,0,"nums"],[12],[1,"\\n "],[10,1],[12],[1,[30,0,["progressPosition"]]],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,"/"],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,[30,0,["postStream","filteredPostsCount"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"bg"],[12],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@name","@connectorTagName"],["after-topic-progress","div"]],null]],["&default"],false,["unless","yield","if","div","d-button","nav","i18n","html-safe","span","plugin-outlet"]]',moduleName:"discourse/components/topic-progress.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{elementId="topic-progress-wrapper";docked=!1;progressPosition=null;static #e=(()=>dt7948.g(this.prototype,"postStream",[(0,r.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();_streamPercentage=null;hideProgress(e,t,i){let s=this.site.desktopView&&i<2;return!e||!t||s}static #i=(()=>dt7948.n(this.prototype,"hideProgress",[(0,l.default)("postStream.loaded","topic.currentPost","postStream.filteredPostsCount")]))();hugeNumberOfPosts(e){return e>=this.siteSettings.short_progress_text_threshold}static #s=(()=>dt7948.n(this.prototype,"hugeNumberOfPosts",[(0,l.default)("postStream.filteredPostsCount")]))();showBackButton(e,t){if(!t)return;let i=this.get("postStream.stream"),s=i.indexOf(t)||0;return se}static #l=(()=>dt7948.n(this.prototype,"showBackButton",[(0,l.default)("progressPosition","topic.last_read_post_id")]))();_topicScrolled(e){this.docked?this.setProperties({progressPosition:this.get("postStream.filteredPostsCount"),_streamPercentage:100}):this.setProperties({progressPosition:e.postIndex,_streamPercentage:(100*e.percent).toFixed(2)})}progressStyle(e){return`--progress-bg-width: ${e||0}%`}static #c=(()=>dt7948.n(this.prototype,"progressStyle",[(0,l.default)("_streamPercentage")]))();didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("topic:current-post-scrolled",this,this._topicScrolled),this.prevEvent&&(0,o.scheduleOnce)("afterRender",this,this._topicScrolled,this.prevEvent)}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("topic:current-post-scrolled",this,this._topicScrolled)}click(e){e.target.closest("#topic-progress")&&this.toggleProperty("expanded")}goBack(){this.jumpToPost(this.get("topic.last_read_post_number"))}static #u=(()=>dt7948.n(this.prototype,"goBack",[n.action]))()},[(0,a.classNameBindings)("docked")]),d=(0,s.setComponentTemplate)(c,u)},40121:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(83133),l=i(81329),c=i(98740),u=i(72738),d=i(45782),p=i(57699),h=i(843),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();get wrapperElement(){return(0,d.default)(this.args.tagName??"span")}get canAct(){return this.currentUser&&!this.args.disableActions}togglePinned(e){e.preventDefault(),this.args.topic.togglePinnedForUser()}static #s=(()=>dt7948.n(this.prototype,"togglePinned",[o.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"H+yqac4g",block:'[[[8,[30,0,["wrapperElement"]],[[24,0,"topic-statuses"]],null,[["default"],[[[[41,[30,1,["bookmarked"]],[[[10,3],[15,6,[30,1,["url"]]],[15,"title",[28,[32,0],["topic_statuses.bookmarked.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["bookmark"],null]],[13]],[]],null],[41,[28,[32,2],[[30,1,["closed"]],[30,1,["archived"]]],null],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.locked_and_archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],[[[41,[30,1,["closed"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.locked.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],[[[41,[30,1,["archived"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],null]],[]]]],[]]],[41,[30,1,["is_warning"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.warning.help"],null]],[14,0,"topic-status topic-status-warning"],[12],[1,[28,[32,1],["envelope"],null]],[13]],[]],[[[41,[28,[32,2],[[30,2],[30,1,["isPrivateMessage"]]],null],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.personal_message.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["envelope"],null]],[13]],[]],null]],[]]],[41,[30,1,["pinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,0],["topic_statuses.pinned.help"],null]],[24,0,"topic-status pinned pin-toggle-button"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,1],["thumbtack"],null]],[13]],[]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.pinned.help"],null]],[14,0,"topic-status pinned"],[12],[1,[28,[32,1],["thumbtack"],null]],[13]],[]]]],[]],[[[41,[30,1,["unpinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,0],["topic_statuses.unpinned.help"],null]],[24,0,"topic-status unpinned pin-toggle-button"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,1],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.unpinned.help"],null]],[14,0,"topic-status unpinned"],[12],[1,[28,[32,1],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]]]],[]],null]],[]]],[41,[30,1,["invisible"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.unlisted.help"],[["unlistedReason"],[[30,1,["visibilityReasonTranslated"]]]]]],[14,0,"topic-status"],[12],[1,[28,[32,1],["far-eye-slash"],null]],[13]],[]],null],[41,[30,0,["site","useGlimmerTopicList"]],[[[8,[32,4],null,[["@name","@outletArgs"],["after-topic-status",[28,[32,5],null,[["topic","context"],[[30,1],[30,3]]]]]],null]],[]],[[[42,[28,[31,2],[[28,[31,2],[[32,6,["entries"]]],null]],null],null,[[[41,[28,[32,7],[[30,1],[30,4,["attribute"]]],null],[[[10,1],[15,"title",[28,[32,0],[[28,[32,8],["topic_statuses.",[30,4,["titleKey"]],".help"],null]],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],[[30,4,["iconName"]]],null]],[13]],[]],null]],[4]],null]],[]]]],[]]]]]],["@topic","@showPrivateMessageIcon","@context","entry"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-status.js",scope:()=>[h.i18n,u.default,l.and,r.on,c.default,n.hash,p.default,n.get,n.concat],isStrictMode:!0}),this))()}},5084:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(68587),a=i(96820),l=i(81133),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"docked",[n.tracked],function(){return!1}))();#oS=(()=>void dt7948.i(this,"docked"))();static #i=(()=>dt7948.g(this.prototype,"dockedBottom",[n.tracked],function(){return!1}))();#oC=(()=>void dt7948.i(this,"dockedBottom"))();enteredIndex=(()=>this.args.prevEvent?this.args.prevEvent.postIndex-1:this.args.enteredIndex)();addShowClass=(()=>(0,o.modifier)(e=>{this.args.fullscreen&&e.classList.add("show")}))();setDocked(e){this.docked!==e&&(this.docked=e)}static #s=(()=>dt7948.n(this.prototype,"setDocked",[r.action]))();setDockedBottom(e){this.dockedBottom!==e&&(this.dockedBottom=e)}static #l=(()=>dt7948.n(this.prototype,"setDockedBottom",[r.action]))();static #c=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"0CnzALOn",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["timeline-container",[52,[30,1],"timeline-fullscreen"],[52,[30,0,["docked"]],"timeline-docked"],[52,[30,0,["dockedBottom"]],"timeline-docked-bottom"]],null]],[4,[30,0,["addShowClass"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"topic-timeline"],[12],[1,"\\n "],[8,[32,1],null,[["@model","@enteredIndex","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost","@setDocked","@setDockedBottom"],[[30,2],[30,0,["enteredIndex"]],[30,3],[30,4],[30,5],[30,6],[30,7],[30,1],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,0,["setDocked"]],[30,0,["setDockedBottom"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@fullscreen","@model","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline.js",scope:()=>[l.default,a.default],isStrictMode:!0}),this))()}},63589:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(18638),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"RacGJQty",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary btn-small back-button"]],[["@action","@label","@title"],[[30,1],"topic.timeline.back","topic.timeline.back_description"]],null],[1,"\\n"]],["@onGoBack"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/back-button.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"back-button:BackButton"))},96820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SCROLLER_HEIGHT:()=>F,default:()=>R,setDesktopScrollAreaHeight:()=>O,timelineDate:()=>L});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(18387),c=i(83133),u=i(42256),d=i(81329),p=i(18638),h=i(98740),m=i(68830),g=i(17282),f=i(2500),_=i(18385),y=i(72738),b=i(23245),w=i(41265),k=i(63748),T=i(48276),S=i(77270),C=i(58339),x=i(843),A=i(85495),E=i(63589),D=i(14365),P=i(53653),M=i(85671);let F=50,I=170,N=300;function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{min:170,max:300};I=e.min,N=e.max}function L(e){let t=e.getFullYear()===new Date().getFullYear()?"long_no_year_no_time":"timeline_date";return moment(e).format((0,x.i18n)(`dates.${t}`))}class R extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"showButton",[n.tracked],function(){return!1}))();#ox=(()=>void dt7948.i(this,"showButton"))();static #u=(()=>dt7948.g(this.prototype,"current",[n.tracked]))();#oA=(()=>void dt7948.i(this,"current"))();static #d=(()=>dt7948.g(this.prototype,"percentage",[n.tracked],function(){return this._percentFor(this.args.model,this.args.enteredIndex)}))();#oE=(()=>void dt7948.i(this,"percentage"))();static #p=(()=>dt7948.g(this.prototype,"total",[n.tracked]))();#oD=(()=>void dt7948.i(this,"total"))();static #h=(()=>dt7948.g(this.prototype,"date",[n.tracked]))();#iL=(()=>void dt7948.i(this,"date"))();static #m=(()=>dt7948.g(this.prototype,"lastReadPercentage",[n.tracked],function(){return null}))();#oP=(()=>void dt7948.i(this,"lastReadPercentage"))();static #g=(()=>dt7948.g(this.prototype,"lastRead",[n.tracked]))();#oM=(()=>void dt7948.i(this,"lastRead"))();static #A=(()=>dt7948.g(this.prototype,"lastReadTop",[n.tracked]))();#oF=(()=>void dt7948.i(this,"lastReadTop"))();static #E=(()=>dt7948.g(this.prototype,"before",[n.tracked]))();#oI=(()=>void dt7948.i(this,"before"))();static #D=(()=>dt7948.g(this.prototype,"after",[n.tracked]))();#oN=(()=>void dt7948.i(this,"after"))();static #P=(()=>dt7948.g(this.prototype,"timelineScrollareaStyle",[n.tracked]))();#oO=(()=>void dt7948.i(this,"timelineScrollareaStyle"))();static #Q=(()=>dt7948.g(this.prototype,"dragging",[n.tracked],function(){return!1}))();#oL=(()=>void dt7948.i(this,"dragging"))();static #J=(()=>dt7948.g(this.prototype,"excerpt",[n.tracked],function(){return""}))();#oR=(()=>void dt7948.i(this,"excerpt"))();intersectionObserver=null;scrollareaElement=null;scrollerElement=null;dragOffset=null;constructor(){super(...arguments),this.site.desktopView&&(this.appEvents.on("topic:current-post-scrolled",this.postScrolled),this.appEvents.on("composer:opened",this.calculatePosition),this.appEvents.on("composer:resized",this.calculatePosition),this.appEvents.on("composer:closed",this.calculatePosition),this.appEvents.on("post-stream:posted",this.calculatePosition)),this.intersectionObserver=new IntersectionObserver(e=>{for(let t of e){let e=t.boundingClientRect;"topic-bottom"===t.target.id?this.topicBottom=e.y+window.scrollY:this.topicTop=e.y+window.scrollY}});let e=[document.querySelector(".container.posts"),document.querySelector("#topic-bottom")];for(let t=0;t0}get style(){return(0,u.htmlSafe)(`height: ${this.scrollareaHeight}px`)}get beforePadding(){return(0,u.htmlSafe)(`height: ${this.before}px`)}get afterPadding(){return(0,u.htmlSafe)(`height: ${this.after}px`)}get showDockedButton(){return this.site.desktopView&&this.hasBackPosition&&!this.showButton}get hasBackPosition(){return this.lastRead&&this.lastRead>3&&this.lastRead>this.current&&Math.abs(this.lastRead-this.current)>3&&Math.abs(this.lastRead-this.total)>1&&this.lastRead!==this.total}get lastReadStyle(){return(0,u.htmlSafe)(`height: 20px; top: ${this.topPosition}px`)}get topPosition(){let e=this.scrollareaHeight-10;return this.lastReadTop>e?e:this.lastReadTop}get scrollareaHeight(){let e=document.getElementById("reply-control").offsetHeight||0,t=document.querySelector(".d-header")?.offsetHeight||0,i=(window.innerHeight-e-t)/2;return Math.max(this.site.mobileView?170:I,Math.min(i,this.site.mobileView?300:N))}get startDate(){return L(this.args.model.createdAt)}get nowDateOptions(){return{customTitle:(0,x.i18n)("topic_entrance.jump_bottom_button_title"),addAgo:!0,defaultFormat:L}}get nowDate(){return this.args.model.get("last_posted_at")||this.args.model.get("created_at")}get lastReadHeight(){return Math.round(this.lastReadPercentage*this.scrollareaHeight)}calculatePosition(){let e;this.timelineScrollareaStyle=(0,u.htmlSafe)(`height: ${this.scrollareaHeight}px`);let t=this.args.model,i=t.postStream;this.total=i.filteredPostsCount,this.scrollPosition=this.clamp(Math.floor(this.total*this.percentage),0,this.total)+1,this.current=this.clamp(this.scrollPosition,1,this.total);let s=i.closestDaysAgoFor(this.current);if(void 0===s){let t=i.posts.findBy("id",i.stream[this.current]);t&&(e=new Date(t.created_at))}else null!==s?(e=new Date).setDate(e.getDate()-s||0):e=null;this.date=e;let n=t.last_read_post_number,r=t.last_read_post_id;if(r&&n){let e=i.stream.indexOf(r)+1;this.lastRead=e,this.lastReadPercentage=this._percentFor(t,e)}this.position!==this.scrollPosition&&(this.position=this.scrollPosition,this.updateScrollPosition(this.current)),this.before=this.scrollareaRemaining()*this.percentage,this.after=this.scrollareaHeight-this.before-F,null!==this.percentage&&this.hasBackPosition&&(this.lastReadTop=Math.round(this.lastReadPercentage*this.scrollareaHeight),this.showButton=this.before+F-5this.lastReadTop+25)}static #X=(()=>dt7948.n(this.prototype,"calculatePosition",[k.bind]))();updateScrollPosition(e){if(!this.args.fullscreen)return;let t=this.args.model.postStream;!this.position!==e&&t.excerpt(e-1).then(t=>{if(t&&this.position===e){let e="";t.username&&(e=""+t.username+": "),t.excerpt?this.excerpt=e+t.excerpt:t.action_code&&(this.excerpt=`${e} ${(0,C.actionDescriptionHtml)(t.action_code,t.created_at,t.username)}`)}})}static #Z=(()=>dt7948.n(this.prototype,"updateScrollPosition",[(0,k.debounce)(50)]))();updatePercentage(e){e.preventDefault();let t=(e.pageY||e.touches[0].pageY)-this.dragOffset,i=T.default.offset(this.scrollareaElement).top,s=this.scrollareaElement.offsetHeight,n=this.scrollerElement.offsetHeight;this.percentage=this.clamp(parseFloat(t-(i+n/2))/(s-n)),this.commit()}static #ee=(()=>dt7948.n(this.prototype,"updatePercentage",[a.action]))();didStartDrag(e){let t=e.pageY||e.touches[0].pageY,i=T.default.offset(this.scrollerElement).top+this.scrollerElement.offsetHeight/2;this.dragOffset=t-i,this.dragging=!0}static #et=(()=>dt7948.n(this.prototype,"didStartDrag",[k.bind]))();dragMove(e){e.stopPropagation(),e.preventDefault(),this.updatePercentage(e)}static #ei=(()=>dt7948.n(this.prototype,"dragMove",[k.bind]))();didEndDrag(){this.dragging=!1,this.dragOffset=null,this.commit()}static #es=(()=>dt7948.n(this.prototype,"didEndDrag",[k.bind]))();postScrolled(e){this.current=e.postIndex,this.percentage=e.percent,this.calculatePosition(),this.dockCheck()}static #en=(()=>dt7948.n(this.prototype,"postScrolled",[k.bind]))();goBack(){this.args.jumpToIndex(this.lastRead)}static #er=(()=>dt7948.n(this.prototype,"goBack",[a.action]))();dockCheck(){let e=document.querySelector(".timeline-container"),t=e&&e.offsetHeight||400,i=this.dockAt,s=(0,S.headerOffset)()+window.pageYOffset;this.dockBottom=!1,sthis.topicBottom?(this.dockAt=parseInt(this.topicBottom-t,10),this.dockBottom=!0,this.dockAt<0&&(this.dockAt=0)):this.dockAt=null,this.dockAt!==i&&(this.dockAt?(this.args.setDocked(!0),this.dockBottom&&this.args.setDockedBottom(!0)):(this.args.setDocked(!1),this.args.setDockedBottom(!1)))}commit(){this.calculatePosition(),this.dragging||(this.current===this.scrollPosition?this.args.jumpToIndex(this.current):this.args.jumpEnd())}clamp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(Math.min(e,i),t)}scrollareaRemaining(){return this.scrollareaHeight-F}_percentFor(e,t){let i=e.postStream.filteredPostsCount;switch(t){case 0:return 0;case i-1:return 1;default:return this.clamp(parseFloat(t)/i)}}registerScrollarea(e){this.scrollareaElement=e}static #eo=(()=>dt7948.n(this.prototype,"registerScrollarea",[a.action]))();registerScroller(e){this.scrollerElement=e}static #ea=(()=>dt7948.n(this.prototype,"registerScroller",[a.action]))();static #el=(()=>(0,P.setComponentTemplate)((0,M.createTemplateFactory)({id:"+qWPqGik",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"title"],[12],[1,"\\n "],[10,"h2"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["firstPostUrl"]]],[24,0,"fancy-title"],[4,[32,0],["click",[30,3]],null],[12],[1,[30,0,["topicTitle"]]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[32,1],[[30,0,["siteSettings","topic_featured_link_enabled"]],[30,0,["showTags"]]],null],[[[1," "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["showTags"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[1,[28,[32,2],[[30,2]],[["mode","tags"],["list",[30,2,["tags"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[1,[28,[32,3],[[30,2]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[28,[32,5],[[30,2,["isPrivateMessage"]]],null],[30,2,["category"]]],null],[[[1," "],[10,0],[14,0,"topic-category"],[12],[1,"\\n"],[41,[30,2,["category","parentCategory"]],[[[1," "],[1,[28,[32,6],[[30,2,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,6],[[30,2,["category"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["excerpt"]],[[[1," "],[10,0],[14,0,"post-excerpt"],[12],[1,[28,[32,7],[[30,0,["excerpt"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[28,[32,5],[[30,1]],null],[30,0,["currentUser"]]],null],[[[1," "],[10,0],[14,0,"timeline-controls"],[12],[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["timeline-controls-before",[28,[32,9],null,[["model"],[[30,2]]]]]],null],[1,"\\n "],[8,[32,10],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,2],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTimeLineScrollArea"]],[[[1," "],[8,[32,11],null,[["@id","@titleText","@contentText","@placement","@triggerSelector","@priority"],["topic_timeline",[28,[32,12],["user_tips.topic_timeline.title"],null],[28,[32,12],["user_tips.topic_timeline.content"],null],"left",".timeline-scrollarea-wrapper",900]],null],[1,"\\n\\n "],[10,0],[14,0,"timeline-scrollarea-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["firstPostUrl"]]],[16,"title",[28,[32,12],["topic_entrance.jump_top_button_title"],null]],[24,0,"start-date"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[30,0,["startDate"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,0],[24,0,"timeline-scrollarea"],[16,5,[30,0,["timelineScrollareaStyle"]]],[4,[32,13],[[30,0,["registerScrollarea"]]],null],[12],[1,"\\n "],[11,0],[16,5,[30,0,["beforePadding"]]],[24,0,"timeline-padding"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[13],[1,"\\n\\n "],[8,[32,14],[[4,[32,13],[[30,0,["registerScroller"]]],null]],[["@current","@total","@onGoBack","@fullscreen","@showDockedButton","@date","@didStartDrag","@dragMove","@didEndDrag"],[[30,0,["current"]],[30,0,["total"]],[30,0,["onGoBack"]],[30,1],[30,0,["showDockedButton"]],[30,0,["date"]],[30,0,["didStartDrag"]],[30,0,["dragMove"]],[30,0,["didEndDrag"]]]],null],[1,"\\n\\n "],[11,0],[16,5,[30,0,["afterPadding"]]],[24,0,"timeline-padding"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[13],[1,"\\n\\n"],[41,[28,[32,4],[[30,0,["hasBackPosition"]],[30,0,["showButton"]]],null],[[[1," "],[10,0],[14,0,"timeline-last-read"],[15,5,[30,0,["lastReadStyle"]]],[12],[1,"\\n "],[1,[28,[32,15],["minus"],[["class"],["progress"]]]],[1,"\\n "],[8,[32,16],null,[["@onGoBack"],[[30,0,["goBack"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["lastPostUrl"]]],[24,0,"now-date"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,17],[[30,0,["nowDate"]],[30,0,["nowDateOptions"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"timeline-footer-controls"],[12],[1,"\\n"],[41,[30,0,["displaySummary"]],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["summary.short_title"],null]],[24,0,"show-summary btn-small"]],[["@action","@icon","@label"],[[30,17],"layer-group","summary.short_label"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[30,0,["currentUser"]],[28,[32,5],[[30,1]],null]],null],[[[41,[30,0,["canCreatePost"]],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["topic.reply.help"],null]],[24,0,"btn-default create reply-to-post"]],[["@action","@icon"],[[28,[32,19],[[30,18],null],null],"reply"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["topic.progress.jump_prompt_long"],null]],[24,0,"timeline-open-jump-to-post-prompt-btn jump-to-post"]],[["@action","@label"],[[30,19],"topic.progress.jump_prompt"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[30,0,["currentUser"]],[30,0,["site","desktopView"]]],null],[[[1," "],[8,[32,20],null,[["@topic","@expanded"],[[30,2],false]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["timeline-footer-controls-after",[28,[32,9],null,[["model","fullscreen"],[[30,2],[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@fullscreen","@model","@jumpTop","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@showTopReplies","@replyToPost","@jumpToPostPrompt"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/container.js",scope:()=>[o.on,d.or,b.default,w.default,d.and,d.not,_.default,u.htmlSafe,h.default,r.hash,m.default,g.default,x.i18n,l.default,D.default,y.default,E.default,f.default,p.default,r.fn,A.default],isStrictMode:!0}),this))()}},14365:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(42256),r=i(81329),o=i(96820),a=i(56742),l=i(843),c=i(63589),u=i(53653),d=i(85671);class p extends s.default{style=(()=>(0,n.htmlSafe)(`height: ${o.SCROLLER_HEIGHT}px`))();get repliesShort(){return(0,l.i18n)("topic.timeline.replies_short",{current:this.args.current,total:this.args.total})}get timelineAgo(){return(0,o.timelineDate)(this.args.date)}static #e=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"/B3sS+Np",block:'[[[1,"\\n "],[11,0],[16,5,[30,0,["style"]]],[24,0,"timeline-scroller"],[17,1],[4,[32,0],null,[["didStartDrag","didEndDrag","dragMove"],[[30,2],[30,3],[30,4]]]],[12],[1,"\\n"],[41,[30,5],[[[1," "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n "],[1,[30,0,["repliesShort"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n "],[1,[30,0,["timelineAgo"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,1],[[30,7],[28,[32,2],[[30,8]],null]],null],[[[1," "],[8,[32,3],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n "],[1,[30,0,["repliesShort"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n "],[1,[30,0,["timelineAgo"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,1],[[30,7],[28,[32,2],[[30,8]],null]],null],[[[1," "],[8,[32,3],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["&attrs","@didStartDrag","@didEndDrag","@dragMove","@fullscreen","@date","@showDockedButton","@dragging","@onGoBack"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/scroller.js",scope:()=>[a.default,r.and,r.not,c.default],isStrictMode:!0}),this))()}},66380:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(53653),n=i(62053),r=i(42256),o=i(53397),a=i(42064),l=i(97088),c=i(63748),u=i(77093),d=i(51429),p=i(53306),h=i(1559),m=i(843);let g=(0,i(85671).createTemplateFactory)({id:"bf8cHgkG",block:'[[[41,[30,0,["showTopicTimer"]],[[[1," "],[10,"h3"],[14,0,"topic-timer-heading"],[12],[1,"\\n "],[10,1],[15,"title",[30,0,["title"]]],[12],[1,"\\n "],[1,[30,0,["clockIcon"]]],[1,"\\n "],[1,[30,0,["notice"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-timer-modify"],[12],[1,"\\n"],[41,[30,0,["showEdit"]],[[[1," "],[8,[39,4],[[24,0,"topic-timer-edit no-text"]],[["@title","@icon","@action"],["post.controls.edit_timer","pencil",[30,0,["showTopicTimerModal"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showTrashCan"]],[[[1," "],[8,[39,4],[[24,0,"topic-timer-remove no-text"]],[["@title","@icon","@action"],["post.controls.remove_timer","trash-can",[30,0,["removeTopicTimer"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","h3","span","div","d-button"]]',moduleName:"discourse/components/topic-timer-info.hbs",isStrictMode:!1}),f=dt7948.c(class extends s.default{clockIcon=(()=>(0,r.htmlSafe)(`${(0,d.iconHTML)("far-clock")}`))();trashLabel=(()=>(0,m.i18n)("post.controls.remove_timer"))();title=null;notice=null;showTopicTimer=null;showTopicTimerModal=null;removeTopicTimer=null;_delayedRerender=null;setupRenderer(){this.renderTopicTimer()}static #e=(()=>dt7948.n(this.prototype,"setupRenderer",[(0,a.on)("didReceiveAttrs")]))();cancelDelayedRenderer(){this._delayedRerender&&(0,n.cancel)(this._delayedRerender)}static #i=(()=>dt7948.n(this.prototype,"cancelDelayedRenderer",[(0,a.on)("willDestroyElement")]))();canModifyTimer(){return this.currentUser&&this.currentUser.get("canManageTopic")}static #s=(()=>dt7948.n(this.prototype,"canModifyTimer",[c.default]))();showTrashCan(e,t){return e&&t}static #l=(()=>dt7948.n(this.prototype,"showTrashCan",[(0,c.default)("canModifyTimer","removeTopicTimer")]))();showEdit(e,t){return e&&t}static #c=(()=>dt7948.n(this.prototype,"showEdit",[(0,c.default)("canModifyTimer","showTopicTimerModal")]))();additionalOpts(){return{}}renderTopicTimer(){let e=this.statusType===l.DELETE_REPLIES_TYPE;if(!e&&!this.basedOnLastPost&&(!this.executeAt||this.executeAtthis.set("executeAt",null));return}let o=moment(this.executeAt),a=moment.duration(o-moment()),c=a.asMinutes();if(c>0||e||this.basedOnLastPost){if(!this.executeAt)return;let e=parseInt(this.durationMinutes,10)||0,t={timeLeft:a.humanize(!0),duration:moment.duration(e,"minutes").humanize({s:60,m:60,h:24})},i=this.categoryId;if(i){let e=h.default.findById(i);t=Object.assign({categoryName:e.get("slug"),categoryUrl:e.get("url")},t)}t=Object.assign(t,this.additionalOpts()),this.setProperties({title:(0,r.htmlSafe)(`${moment(this.executeAt).format("LLLL")}`),notice:(0,r.htmlSafe)(`${(0,m.i18n)(this._noticeKey(),t)}`),showTopicTimer:!0}),(0,u.isTesting)()||(this._delayedRerender=(0,p.default)(()=>{this.renderTopicTimer()},this.rerenderDelay(c)))}else this.set("showTopicTimer",null)}rerenderDelay(e){return e>2160?432e5:e>1410?36e5:e>90?18e5:e>2?6e4:1e3}_noticeKey(){let e=this.statusType;return"silent_close"===e&&(e="close"),this.basedOnLastPost&&"close"===e&&(e="close_after_last_post"),`topic.status_update_notice.auto_${e}`}},[(0,o.classNames)("topic-timer-info")]),_=(0,s.setComponentTemplate)(g,f)},42693:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(75446),r=i(99615),o=i(35533),a=i(99269),l=i(83133),c=i(98740),u=i(42236),d=i(51591),p=i(53653),h=i(85671);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"header",[l.service]))();#tA=(()=>void dt7948.i(this,"header"))();keyDown(e){"Escape"===e.key?(e.preventDefault(),this.args.cancelled()):"Enter"===e.key&&(e.ctrlKey||e.metaKey||(0,u.isiPad)()&&e.altKey)&&(e.preventDefault(),this.args.save(void 0,e))}static #i=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();handleIntersectionChange(e){this.header.mainTopicTitleVisible=e.isIntersecting||e.boundingClientRect.top>0}static #s=(()=>dt7948.n(this.prototype,"handleIntersectionChange",[o.action]))();handleTitleDestroy(){this.header.mainTopicTitleVisible=!1}static #l=(()=>dt7948.n(this.prototype,"handleTitleDestroy",[o.action]))();static #c=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"0/v2pNxy",block:'[[[1,"\\n"],[1," "],[11,0],[24,1,"topic-title"],[24,0,"container"],[4,[32,0],["keydown",[30,0,["keyDown"]]],null],[4,[32,1],[[30,0,["handleIntersectionChange"]]],null],[4,[32,2],[[30,0,["handleTitleDestroy"]]],null],[12],[1,"\\n "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["topic-title","div",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@model","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-title.js",scope:()=>[r.on,d.default,a.default,c.default,n.hash],isStrictMode:!0}),this))()}},77114:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(99615),r=i(35533),o=i(53653),a=i(85671);class l extends s.default{onToggle(e){e.target.checked?this.args.selectedList.addObject(this.args.selectedId):this.args.selectedList.removeObject(this.args.selectedId)}static #e=(()=>dt7948.n(this.prototype,"onToggle",[r.action]))();static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"dXV51MTU",block:'[[[1,"\\n "],[11,1],[16,0,[30,1]],[17,2],[12],[1,"\\n "],[11,"input"],[24,4,"checkbox"],[4,[32,0],["input",[30,0,["onToggle"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "]],["@class","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/track-selected.js",scope:()=>[n.on],isStrictMode:!0}),this))()}},61746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")}),this.secondFactorBackupEnabled&&e.push({id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}),e}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){switch(e){case"edit":this.editSecondFactorBackup();break;case"disable":this.disableSecondFactorBackup()}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("two-factor-backup-dropdown")])},76572:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(53653),n=i(35533),r=i(30574),o=i(30503),a=i(31049),l=i(62053),c=i(42256),u=i(75983),d=i(53397),p=i(42064),h=i(25124),m=i.n(h),g=i(63748),f=i(94636),_=i(47991),y=i(65742),b=i(6535),w=i(843);let k=(0,i(85671).createTemplateFactory)({id:"32irALne",block:'[[[10,0],[14,0,"uploaded-image-preview input-xxlarge"],[15,5,[30,0,["backgroundStyle"]]],[12],[1,"\\n"],[41,[30,0,["showingPlaceholder"]],[[[1," "],[10,0],[14,0,"placeholder-overlay"],[15,5,[30,0,["placeholderStyle"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"image-upload-controls"],[12],[1,"\\n "],[11,"label"],[16,0,[29,["btn btn-default pad-left no-text ",[52,[30,0,["disabled"]],"disabled"]]]],[16,"title",[30,0,["disabledReason"]]],[16,"for",[30,0,["computedId"]]],[24,"tabindex","0"],[4,[38,3],["keydown",[30,0,["handleKeyboardActivation"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["far-image"],null]],[1,"\\n "],[8,[39,5],null,[["@registerFileInput","@fileInputDisabled","@acceptedFormatsOverride","@fileInputId"],[[30,0,["uppyUpload","setup"]],[30,0,["disabled"]],"image/*",[30,0,["computedId"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger pad-left no-text"]],[["@action","@icon"],[[28,[37,7],[[30,0],"trash"],null],"trash-can"]],null],[1,"\\n "],[8,[39,6],[[24,0,"btn-default image-uploader-lightbox-btn no-text"]],[["@icon","@title","@disabled","@action"],["discourse-expand","expand",[30,0,["loadingLightbox"]],[30,0,["toggleLightbox"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uppyUpload","uploading"]]],"hidden"]]]],[12],[1,[28,[35,10],["upload_selector.uploading"],null]],[1,"\\n "],[1,[30,0,["uppyUpload","uploadProgress"]]],[1,"%"],[13],[1,"\\n "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uppyUpload","processing"]]],"hidden"]]]],[12],[1,[28,[35,10],["upload_selector.processing"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1," "],[10,3],[14,0,"lightbox"],[15,6,[30,0,["imageCDNURL"]]],[15,"title",[30,0,["imageFilename"]]],[14,"rel","nofollow ugc noopener"],[12],[1,"\\n\\n "],[10,0],[14,0,"meta"],[12],[1,"\\n "],[10,1],[14,0,"informations"],[12],[1,"\\n "],[1,[30,0,["imageWidth"]]],[1,"x"],[1,[30,0,["imageHeight"]]],[1,"\\n "],[1,[30,0,["imageFilesize"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","if","label","on","d-icon","pick-files-button","d-button","action","span","unless","i18n","a"]]',moduleName:"discourse/components/uppy-image-uploader.hbs",isStrictMode:!1}),T=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"disabled",[(0,r.or)("notAllowed","uppyUpload.uploading","uppyUpload.processing")]))();#I=(()=>void dt7948.i(this,"disabled"))();uppyUpload=null;setupUppyUpload(){this.uppyUpload=new b.default((0,a.getOwner)(this),{id:this.id,type:this.type,additionalParams:this.additionalParams,validateUploadedFilesOptions:{imagesOnly:!0},uploadDropTargetOptions:()=>({target:document.querySelector(`#${this.id} .uploaded-image-preview`)}),uploadDone:e=>{this.setProperties({imageFilesize:e.human_filesize,imageFilename:e.original_filename,imageWidth:e.width,imageHeight:e.height}),this.onUploadDone?this.onUploadDone(e):this.set("imageUrl",e.url)}})}static #i=(()=>dt7948.n(this.prototype,"setupUppyUpload",[(0,p.on)("init")]))();computedId(e){return e?`${e}__input`:`${(0,o.guidFor)(this)}__input`}static #s=(()=>dt7948.n(this.prototype,"computedId",[(0,g.default)("id")]))();disabledReason(e,t){if(e&&t)return(0,w.i18n)("post.errors.no_uploads_authorized")}static #l=(()=>dt7948.n(this.prototype,"disabledReason",[(0,g.default)("disabled","notAllowed")]))();notAllowed(){return!(0,y.authorizesOneOrMoreExtensions)(this.currentUser?.staff,this.siteSettings)}static #c=(()=>dt7948.n(this.prototype,"notAllowed",[(0,g.default)("currentUser.staff","siteSettings.{authorized_extensions,authorized_extensions_for_staff}")]))();showingPlaceholder(e,t){return!e&&t}static #u=(()=>dt7948.n(this.prototype,"showingPlaceholder",[(0,g.default)("imageUrl","placeholderUrl")]))();placeholderStyle(e){return(0,u.isEmpty)(e)?(0,c.htmlSafe)(""):(0,c.htmlSafe)(`background-image: url(${e})`)}static #d=(()=>dt7948.n(this.prototype,"placeholderStyle",[(0,g.default)("placeholderUrl")]))();imageCDNURL(e){return(0,u.isEmpty)(e)?(0,c.htmlSafe)(""):(0,f.getURLWithCDN)(e)}static #p=(()=>dt7948.n(this.prototype,"imageCDNURL",[(0,g.default)("imageUrl")]))();backgroundStyle(e){return(0,c.htmlSafe)(`background-image: url(${e})`)}static #h=(()=>dt7948.n(this.prototype,"backgroundStyle",[(0,g.default)("imageCDNURL")]))();imageBaseName(e){if(!(0,u.isEmpty)(e))return e.split("/").slice(-1)[0]}static #m=(()=>dt7948.n(this.prototype,"imageBaseName",[(0,g.default)("imageUrl")]))();_applyLightbox(){(0,l.next)(()=>(0,_.default)(this.element,this.siteSettings))}static #g=(()=>dt7948.n(this.prototype,"_applyLightbox",[(0,p.on)("didRender")]))();_closeOnRemoval(){m().magnificPopup?.instance&&m().magnificPopup.instance.close()}static #A=(()=>dt7948.n(this.prototype,"_closeOnRemoval",[(0,p.on)("willDestroyElement")]))();toggleLightbox(){m()(this.element.querySelector("a.lightbox"))?.magnificPopup("open")}static #E=(()=>dt7948.n(this.prototype,"toggleLightbox",[n.action]))();trash(){this.onUploadDeleted?this.onUploadDeleted():this.setProperties({imageUrl:null})}static #D=(()=>dt7948.n(this.prototype,"trash",[n.action]))();handleKeyboardActivation(e){if("Enter"===e.key||" "===e.key){e.preventDefault();let t=document.getElementById(this.computedId);t&&!this.disabled&&t.click()}}static #P=(()=>dt7948.n(this.prototype,"handleKeyboardActivation",[n.action]))()},[(0,d.classNames)("image-uploader")]),S=(0,s.setComponentTemplate)(k,T)},94366:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(53653),n=i(53397),r=i(38384),o=i(63748);let a=(0,i(85671).createTemplateFactory)({id:"/5P0TS+t",block:'[[[41,[30,0,["flair"]],[[[1," "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["flair","flairName"]],[30,0,["flair","flairUrl"]],[30,0,["flair","flairBgColor"]],[30,0,["flair","flairColor"]]]],null],[1,"\\n"]],[]],null]],[],false,["if","avatar-flair"]]',moduleName:"discourse/components/user-avatar-flair.hbs",isStrictMode:!1}),l=dt7948.c(class extends s.default{flair(e){if(!e||!e.flair_group_id)return;if(e.flair_url||e.flair_bg_color)return{flairName:e.flair_name,flairUrl:e.flair_url,flairBgColor:e.flair_bg_color,flairColor:e.flair_color};let t=(0,r.default)(this.site,e);if(t)return{flairName:t.flair_name,flairUrl:t.flair_url,flairBgColor:t.flair_bg_color,flairColor:t.flair_color}}static #e=(()=>dt7948.n(this.prototype,"flair",[(0,o.default)("user")]))()},[(0,n.tagName)("")]),c=(0,s.setComponentTemplate)(a,l)},18836:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(1139),r=i(53653),o=i(85671);class a extends s.default{get showGrantCount(){return this.args.count>1}get badgeUrl(){let e=this.args.user?.username_lower;return e=e?`?username=${e}`:"",this.args.badge.url+e}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"vai7UlNK",block:'[[[1,"\\n "],[10,3],[14,0,"user-card-badge-link"],[15,6,[30,0,["badgeUrl"]]],[12],[1,"\\n "],[8,[32,0],null,[["@badge","@showName"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showGrantCount"]],[[[1," "],[10,1],[14,0,"count"],[12],[1," (×"],[1,[30,3]],[1,")"],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@badge","@showName","@count"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-badge.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},96141:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(35533),n=i(30574),r=i(94480),o=i(75983),a=i(53397),l=i(42064),c=i(13654),u=i(17358),d=i(82805),p=i(63748),h=i(17206),m=i(94636),g=i(97015),f=i(21719),_=i(50409),y=i(42236),b=i(59864),w=i(843);let k=(0,i(85671).createTemplateFactory)({id:"y6vY65DC",block:'[[[41,[30,0,["visible"]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["before-user-card-content",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["user-card-main-info",[28,[37,2],null,[["user","post","contentHidden","handleShowUser"],[[30,0,["user"]],[30,0,["post"]],[30,0,["contentHidden"]],[30,0,["handleShowUser"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-card-avatar"],[14,"aria-hidden","true"],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1," "],[10,1],[14,0,"card-huge-avatar"],[12],[1,[28,[35,5],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"card-huge-avatar"],[24,"tabindex","-1"],[4,[38,7],["click",[30,0,["handleShowUser"]]],null],[12],[1,[28,[35,5],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,8],null,[["@user"],[[30,0,["user"]]]],null],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-avatar-flair","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,0],[15,0,[29,["names__primary\\n ",[30,0,["staff"]],"\\n ",[30,0,["newUser"]],"\\n ",[52,[30,0,["nameFirst"]],"full-name","username"]]]],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1," "],[10,1],[14,0,"name-username-wrapper"],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,9],[[30,0,["user","username"]]],null]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"user-profile-link"],[16,"aria-label",[28,[37,10],["user.profile_link"],[["username"],[[30,0,["user","username"]]]]]],[4,[38,7],["click",[30,0,["handleShowUser"]]],null],[12],[1,"\\n "],[10,1],[14,0,"name-username-wrapper"],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,9],[[30,0,["user","username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,11],[[30,0,["user"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-username","div",[28,[37,2],null,[["user","showUser"],[[30,0,["user"]],[30,0,["handleShowUser"]]]]]]],null],[1,"\\n"],[41,[30,0,["nameFirst"]],[[[1," "],[10,0],[14,0,"names__secondary username"],[12],[1,[30,0,["user","username"]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","name"]],[[[1," "],[10,0],[14,0,"names__secondary full-name"],[12],[1,[30,0,["user","name"]]],[13],[1,"\\n"]],[]],null]],[]]],[41,[30,0,["user","title"]],[[[1," "],[10,0],[14,0,"names__secondary"],[12],[1,[30,0,["user","title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","staged"]],[[[1," "],[10,0],[14,0,"names__secondary staged"],[12],[1,[28,[35,10],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasStatus"]],[[[1," "],[10,0],[14,0,"user-status"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["userStatusEmoji"]]],null]],[1,"\\n "],[10,1],[14,0,"user-status__description"],[12],[1,"\\n "],[1,[30,0,["user","status","description"]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","status","ends_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-post-names","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[10,"ul"],[14,0,"usercard-controls"],[12],[1,"\\n"],[41,[30,0,["user","can_send_private_message_to_user"]],[[[1," "],[10,"li"],[14,0,"compose-pm"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"composePM"],null],[30,0,["user"]],[30,0,["post"]]],null],"envelope","user.private_message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-below-message-button","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showFilter"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-default"]],[["@action","@icon","@translatedLabel"],[[28,[37,17],[[30,0,["handleFilterPosts"]],[30,0,["user"]]],null],"filter",[30,0,["filterPostsLabel"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasUserFilters"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],null,[["@action","@icon","@label"],[[28,[37,18],[[30,0],"cancelFilter"],null],"xmark","topic.filters.cancel"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDelete"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"deleteUser"],null],[30,0,["user"]]],null],"triangle-exclamation","admin.user.delete"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-buttons","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-controls","div",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["user","profile_hidden"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"profile-hidden"],[12],[1,"\\n "],[10,1],[14,"role","alert"],[12],[1,[28,[35,10],["user.profile_hidden"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","inactive"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"inactive-user"],[12],[1,"\\n "],[10,1],[14,"role","alert"],[12],[1,[28,[35,10],["user.inactive_user"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isSuspendedOrHasBio"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n"],[41,[30,0,["user","suspend_reason"]],[[[1," "],[10,0],[14,0,"suspended"],[12],[1,"\\n "],[10,0],[14,0,"suspension-date"],[12],[1,"\\n "],[1,[28,[35,19],["ban"],null]],[1,"\\n"],[41,[30,0,["user","suspendedForever"]],[[[1," "],[1,[28,[35,10],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["user.suspended_notice"],[["date"],[[30,0,["user","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"suspension-reason"],[12],[1,"\\n "],[10,1],[14,0,"suspension-reason-title"],[12],[1,[28,[35,10],["user.suspended_reason"],null]],[13],[1,"\\n "],[10,1],[14,0,"suspension-reason-description"],[12],[1,[30,0,["user","suspend_reason"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","bio_excerpt"]],[[[1," "],[10,0],[14,0,"bio"],[12],[1,"\\n "],[8,[39,20],null,null,[["default"],[[[[1,"\\n "],[1,[28,[35,12],[[30,0,["user","bio_excerpt"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"featured-topic"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["user.featured_topic"],null]],[13],[1,"\\n "],[8,[39,21],null,[["@route","@models"],["topic",[28,[37,22],[[30,0,["user","featured_topic","slug"]],[30,0,["user","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,23],[[28,[37,12],[[30,0,["user","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasLocaleOrWebsite"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"location-and-website"],[12],[1,"\\n"],[41,[30,0,["user","website_name"]],[[[1," "],[10,1],[14,0,"website-name"],[12],[1,"\\n "],[1,[28,[35,19],["globe"],null]],[1,"\\n"],[41,[30,0,["linkWebsite"]],[[[1," "],[10,3],[15,6,[30,0,["user","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,"title",[30,0,["user","website"]]],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","location"]],[[[1," "],[10,1],[14,0,"location"],[12],[1,"\\n "],[1,[28,[35,19],["location-dot"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["user","location"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showUserLocalTime"]],[[[1," "],[10,1],[14,0,"local-time"],[15,"title",[28,[37,10],["local_time"],null]],[12],[1,"\\n "],[1,[28,[35,19],["far-clock"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["formattedUserLocalTime"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-location-and-website","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"card-row metadata-row"],[12],[1,"\\n"],[41,[51,[30,0,["contentHidden"]]],[[[1," "],[10,0],[14,0,"metadata"],[12],[1,"\\n"],[41,[30,0,["user","last_posted_at"]],[[[1," "],[10,0],[14,0,"metadata__last-posted"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["last_post"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","last_posted_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"metadata__user-created"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["joined"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[41,[30,0,["user","time_read"]],[[[1," "],[10,0],[14,0,"metadata__time-read"],[15,"title",[30,0,["timeReadTooltip"]]],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["time_read"],null]],[13],[1,"\\n "],[1,[28,[35,25],[[30,0,["user","time_read"]]],null]],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1," "],[10,1],[12],[1,"\\n ("],[1,[28,[35,10],["time_read_recently"],[["time_read"],[[30,0,["recentTimeRead"]]]]]],[1,")\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCheckEmail"]],[[[1," "],[10,0],[14,0,"metadata__email"],[12],[1,"\\n "],[1,[28,[35,19],["envelope"],[["title"],["user.email.title"]]]],[1,"\\n"],[41,[30,0,["user","email"]],[[[1," "],[1,[30,0,["user","email"]]],[1,"\\n"]],[]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"checkEmail"],null],[30,0,["user"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1," "],[10,0],[15,0,[29,["public-user-field public-user-field__",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[1,":"],[13],[1,"\\n "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,1,["value"]]],null]],null],null,[[[1," "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,"\\n"],[41,[30,1,["field","searchable"]],[[[1," "],[8,[39,21],[[4,[38,7],["click",[28,[37,17],[[30,0,["refreshRoute"]],[30,2]],null]],null]],[["@route","@query"],["users",[28,[37,2],null,[["name"],[[30,2]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-before-badges","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showBadges"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["user-card-badges",[28,[37,2],null,[["user","post"],[[30,0,["user"]],[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["user","featured_user_badges"]],[[[1," "],[10,0],[14,0,"badge-section"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,0,["user","featured_user_badges"]]],null]],null],null,[[[1," "],[8,[39,28],null,[["@badge","@user"],[[30,3,["badge"]],[30,0,["user"]]]],null],[1,"\\n"]],[3]],null],[41,[30,0,["showMoreBadges"]],[[[1," "],[10,1],[14,0,"more-user-badges"],[12],[1,"\\n "],[8,[39,21],null,[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,10],["badges.more_badges"],[["count"],[[30,0,["moreBadgesCount"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],["uf","v","ub"],false,["if","plugin-outlet","hash","div","span","bound-avatar","a","on","user-avatar-flair","format-username","i18n","user-status","html-safe","format-date","ul","li","d-button","fn","action","d-icon","html-with-links","link-to","array","replace-emoji","unless","format-duration","each","-track-array","user-badge"]]',moduleName:"discourse/components/user-card-contents.hbs",isStrictMode:!1});var T=i(53653);let S=dt7948.c(class extends c.default{elementId="user-card";avatarSelector="[data-user-card]";avatarDataAttrKey="userCard";mentionSelector="a.mention";ariaLabel=(()=>(0,w.i18n)("user.card"))();static #e=(()=>dt7948.g(this.prototype,"allowBackgrounds",[(0,d.setting)("allow_profile_backgrounds")]))();#tD=(()=>void dt7948.i(this,"allowBackgrounds"))();static #i=(()=>dt7948.g(this.prototype,"showBadges",[(0,d.setting)("enable_badges")]))();#tP=(()=>void dt7948.i(this,"showBadges"))();static #s=(()=>dt7948.g(this.prototype,"showUserLocalTime",[(0,d.setting)("display_local_time_in_user_card")]))();#oU=(()=>void dt7948.i(this,"showUserLocalTime"))();static #l=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,d.setting)("moderators_view_emails")]))();#oj=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #c=(()=>dt7948.g(this.prototype,"postStream",[(0,n.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #u=(()=>dt7948.g(this.prototype,"enoughPostsForFiltering",[(0,n.gte)("topicPostCount",2)]))();#oB=(()=>void dt7948.i(this,"enoughPostsForFiltering"))();static #d=(()=>dt7948.g(this.prototype,"showFilter",[(0,n.and)("viewingTopic","postStream.hasNoFilters","enoughPostsForFiltering")]))();#o$=(()=>void dt7948.i(this,"showFilter"))();static #p=(()=>dt7948.g(this.prototype,"hasUserFilters",[(0,n.gt)("postStream.userFilters.length",0)]))();#oq=(()=>void dt7948.i(this,"hasUserFilters"))();static #h=(()=>dt7948.g(this.prototype,"showMoreBadges",[(0,n.gt)("moreBadgesCount",0)]))();#oV=(()=>void dt7948.i(this,"showMoreBadges"))();static #m=(()=>dt7948.g(this.prototype,"showDelete",[(0,n.and)("viewingAdmin","showName","user.canBeDeleted")]))();#ip=(()=>void dt7948.i(this,"showDelete"))();static #g=(()=>dt7948.g(this.prototype,"linkWebsite",[(0,n.not)("user.isBasic")]))();#oH=(()=>void dt7948.i(this,"linkWebsite"))();static #A=(()=>dt7948.g(this.prototype,"isSuspendedOrHasBio",[(0,n.or)("user.suspend_reason","user.bio_excerpt")]))();#oz=(()=>void dt7948.i(this,"isSuspendedOrHasBio"))();static #E=(()=>dt7948.g(this.prototype,"showCheckEmail",[(0,n.and)("user.staged","canCheckEmails")]))();#oW=(()=>void dt7948.i(this,"showCheckEmail"))();user=null;topicPostCount=null;static #D=(()=>dt7948.g(this.prototype,"showFeaturedTopic",[(0,n.and)("user.featured_topic","siteSettings.allow_featured_topic_on_user_profiles")]))();#oK=(()=>void dt7948.i(this,"showFeaturedTopic"))();get showName(){return this.user.name!==this.user.username}static #P=(()=>dt7948.n(this.prototype,"showName",[(0,s.computed)("user.name","user.username")]))();get canCheckEmails(){return new u.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #Q=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,s.computed)("model.id","currentUser.id")]))();hasLocaleOrWebsite(e){return e.location||e.website_name||this.userTimezone}static #J=(()=>dt7948.n(this.prototype,"hasLocaleOrWebsite",[(0,p.default)("user")]))();hasStatus(){return this.siteSettings.enable_user_status&&this.user.status}static #X=(()=>dt7948.n(this.prototype,"hasStatus",[(0,p.default)("user.status")]))();userStatusEmoji(e){return(0,_.emojiUnescape)((0,y.escapeExpression)(`:${e}:`))}static #Z=(()=>dt7948.n(this.prototype,"userStatusEmoji",[(0,p.default)("user.status.emoji")]))();staff(e){return e?"staff":""}static #ee=(()=>dt7948.n(this.prototype,"staff",[(0,p.default)("user.staff")]))();newUser(e){return 0===e?"new-user":""}static #et=(()=>dt7948.n(this.prototype,"newUser",[(0,p.default)("user.trust_level")]))();nameFirst(e){return(0,f.prioritizeNameInUx)(e)}static #ei=(()=>dt7948.n(this.prototype,"nameFirst",[(0,p.default)("user.name")]))();userTimezone(e){if(this.showUserLocalTime)return e.get("user_option.timezone")}static #es=(()=>dt7948.n(this.prototype,"userTimezone",[(0,p.default)("user")]))();formattedUserLocalTime(e){return moment.tz(e).format((0,w.i18n)("dates.time"))}static #en=(()=>dt7948.n(this.prototype,"formattedUserLocalTime",[(0,p.default)("userTimezone")]))();usernameClass(e){return e?`user-card-${e}`:""}static #er=(()=>dt7948.n(this.prototype,"usernameClass",[(0,p.default)("username")]))();filterPostsLabel(e,t){return(0,w.i18n)("topic.filter_to",{username:e,count:t})}static #eo=(()=>dt7948.n(this.prototype,"filterPostsLabel",[(0,p.default)("username","topicPostCount")]))();publicUserFields(){let e=this.site.get("user_fields");if(!(0,o.isEmpty)(e)){let t=this.get("user.user_fields");return e.filterBy("show_on_user_card",!0).sortBy("position").map(e=>{(0,s.set)(e,"dasherized_name",(0,r.dasherize)(e.get("name")));let i=t?t[e.get("id")]:null;return(0,o.isEmpty)(i)?null:s.default.create({value:i,field:e})}).compact()}}static #ea=(()=>dt7948.n(this.prototype,"publicUserFields",[(0,p.default)("user.user_fields.@each.value")]))();removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow}static #el=(()=>dt7948.n(this.prototype,"removeNoFollow",[(0,p.default)("user.trust_level")]))();moreBadgesCount(e,t){return e-t}static #ec=(()=>dt7948.n(this.prototype,"moreBadgesCount",[(0,p.default)("user.badge_count","user.featured_user_badges.length")]))();showRecentTimeRead(e,t){return e!==t&&0!==t}static #eu=(()=>dt7948.n(this.prototype,"showRecentTimeRead",[(0,p.default)("user.time_read","user.recent_time_read")]))();recentTimeRead(e){return(0,h.durationTiny)(e)}static #ed=(()=>dt7948.n(this.prototype,"recentTimeRead",[(0,p.default)("user.recent_time_read")]))();timeReadTooltip(e,t,i){return e?(0,w.i18n)("time_read_recently_tooltip",{time_read:(0,h.durationTiny)(t),recent_time_read:i}):(0,w.i18n)("time_read_tooltip",{time_read:(0,h.durationTiny)(t)})}static #ep=(()=>dt7948.n(this.prototype,"timeReadTooltip",[(0,p.default)("showRecentTimeRead","user.time_read","recentTimeRead")]))();addBackground(){if(!this.allowBackgrounds||!this.element)return;let e=this.get("user.card_background_upload_url"),t=(0,o.isEmpty)(e)?"":`url(${(0,m.getURLWithCDN)(e)})`;this.element.style.backgroundImage=t}static #eh=(()=>dt7948.n(this.prototype,"addBackground",[(0,l.observes)("user.card_background_upload_url")]))();primaryGroup(e){return`group-${e}`}static #iK=(()=>dt7948.n(this.prototype,"primaryGroup",[(0,p.default)("user.primary_group_name")]))();contentHidden(e,t){return e||t}static #iG=(()=>dt7948.n(this.prototype,"contentHidden",[(0,p.default)("user.profile_hidden","user.inactive")]))();_inserted(){this.appEvents.on("dom:clean",this,this.cleanUp)}static #iY=(()=>dt7948.n(this.prototype,"_inserted",[(0,l.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this.cleanUp)}static #iQ=(()=>dt7948.n(this.prototype,"_destroyed",[(0,l.on)("didDestroyElement")]))();async _showCallback(e){this.setProperties({visible:!0,loading:!0});let t={forCard:!0,include_post_count_for:this.get("topic.id")};try{let i=await b.default.findByUsername(e,t);return i.topic_post_count&&this.set("topicPostCount",i.topic_post_count[t.include_post_count_for]),this.setProperties({user:i}),this.user.statusManager.trackStatus(),i}catch{this._close()}finally{this.set("loading",null)}}_close(){this.user?.statusManager.stopTrackingStatus(),this.setProperties({user:null,topicPostCount:null}),super._close(...arguments)}cleanUp(){this._close()}refreshRoute(e){this.router.transitionTo({queryParams:{name:e}})}static #iJ=(()=>dt7948.n(this.prototype,"refreshRoute",[s.action]))();handleShowUser(e){(0,g.wantsNewWindow)(e)||(e.preventDefault(),this.showUser(this.user),this._close())}static #iX=(()=>dt7948.n(this.prototype,"handleShowUser",[s.action]))();close(){this._close()}static #oG=(()=>dt7948.n(this.prototype,"close",[s.action]))();composePM(e,t){this._close(),this.composePrivateMessage(e,t)}static #oY=(()=>dt7948.n(this.prototype,"composePM",[s.action]))();cancelFilter(){this.postStream.cancelFilter(),this.postStream.refresh(),this._close()}static #oQ=(()=>dt7948.n(this.prototype,"cancelFilter",[s.action]))();handleFilterPosts(){this.filterPosts(this.user),this._close()}static #oJ=(()=>dt7948.n(this.prototype,"handleFilterPosts",[s.action]))();deleteUser(){this.user.delete(),this._close()}static #oX=(()=>dt7948.n(this.prototype,"deleteUser",[s.action]))();checkEmail(e){e.checkEmail()}static #oZ=(()=>dt7948.n(this.prototype,"checkEmail",[s.action]))()},[(0,a.attributeBindings)("ariaLabel:aria-label"),(0,a.classNameBindings)("visible:show","showBadges","user.card_background_upload_url::no-bg","isFixed:fixed","usernameClass","primaryGroup"),(0,a.classNames)("user-card")]),C=(0,T.setComponentTemplate)(k,S)},96183:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(75446),n=i(64759),r=i(16672),o=i(82459),a=i(47727),l=i(53653),c=i(85671),u=i(73306);let d={confirm:n.default,dropdown:r.default,multiselect:o.default,text:a.default},p=(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"pLhYAedh",block:'[[[1,"\\n"],[44,[[28,[32,0],[[32,1],[30,1,["field_type"]]],null]],[[[1," "],[8,[30,2],[[17,3]],[["@field","@value","@validation"],[[30,1],[30,4],[30,5]]],null],[1,"\\n"]],[2]]]],["@field","Component","&attrs","@value","@validation"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-field.js",scope:()=>[s.get,d],isStrictMode:!0}),(0,u.default)(void 0,"user-field:UserField"))},84487:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(53397),r=i(63748);let o=dt7948.c(class extends s.default{didInsertElement(){super.didInsertElement(...arguments);let e=this.element.querySelector(".user-field.dropdown .select-kit-header");e=e||this.element.querySelector("input"),this.field.element=e}noneLabel(){return"user_fields.none"}static #e=(()=>dt7948.n(this.prototype,"noneLabel",[r.default]))();customFieldClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`user-field-${e}`}static #i=(()=>dt7948.n(this.prototype,"customFieldClass",[(0,r.default)("field.name")]))()},[(0,n.classNameBindings)(":user-field","field.field_type","customFieldClass")])},64759:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(84487);let n=(0,i(85671).createTemplateFactory)({id:"Tt7UOnG/",block:'[[[41,[30,0,["field","name"]],[[[1," "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label checkbox-label"],[12],[1,"\\n "],[8,[39,5],[[16,1,[28,[37,6],["user-",[30,0,["elementId"]]],null]]],[["@checked","@type"],[[30,0,["value"]],"checkbox"]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,8],[[30,0,["field","description"]]],null]],[1,"\\n "],[41,[51,[30,0,["field","name"]]],[[[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null]],[]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,9],[[16,0,[52,[51,[30,1,["reason"]]],"hidden"]]],[["@validation"],[[30,1]]],null],[1,"\\n"],[13]],["@validation"],false,["if","label","unless","i18n","div","input","concat","span","html-safe","input-tip"]]',moduleName:"discourse/components/user-fields/confirm.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},16672:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(84487);let n=(0,i(85671).createTemplateFactory)({id:"4+LLzEKc",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,5],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,1],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,6],[[28,[37,7],[[30,0,["value"]]],null]],null],[28,[37,8],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,9],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["label","concat","unless","i18n","div","combo-box","fn","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/dropdown.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},82459:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(84487);let n=(0,i(85671).createTemplateFactory)({id:"htfXJnFM",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,5],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,1],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,6],[[28,[37,7],[[30,0,["value"]]],null]],null],[28,[37,8],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,9],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["label","concat","unless","i18n","div","multi-select","fn","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/multiselect.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},47727:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(84487);let n=(0,i(85671).createTemplateFactory)({id:"cX7d1GTM",block:'[[[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,1],[[16,1,[28,[37,2],["user-",[30,0,["elementId"]]],null]],[16,"maxlength",[30,0,["site","user_field_max_length"]]]],[["@value"],[[30,0,["value"]]]],null],[1,"\\n "],[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,2],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,5],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n "],[8,[39,6],[[16,0,[52,[51,[30,0,["validation"]]],"hidden"]]],[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n"],[41,[51,[30,0,["validation"]]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],[[30,0,["field","description"]]],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","input","concat","label","unless","i18n","input-tip","html-safe"]]',moduleName:"discourse/components/user-fields/text.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{}(0,r.setComponentTemplate)(n,o)},35010:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989);i(8554);var n=i(81329),r=i(72738),o=i(843),a=i(53653),l=i(85671);let c=(0,i(38168).A)(i(8554)).cached;class u extends s.default{get percentage(){let{agreed:e,disagreed:t,ignored:i}=this.args,s=e+t+i,n={total:s};if(s<=0)return n;let r=Math.round(e/s*100),a=Math.round(t/s*100),l=Math.round(i/s*100),c=Math.max(e,t,i);return c===e?(n.icon="thumbs-up",n.className="agreed",n.label=`${r}%`):c===t?(n.icon="thumbs-down",n.className="disagreed",n.label=`${a}%`):(n.icon="up-right-from-square",n.className="ignored",n.label=`${l}%`),n.title=(0,o.i18n)("review.user_percentage.summary",{agreed:(0,o.i18n)("review.user_percentage.agreed",{count:r}),disagreed:(0,o.i18n)("review.user_percentage.disagreed",{count:a}),ignored:(0,o.i18n)("review.user_percentage.ignored",{count:l}),count:s}),n}static #e=(()=>dt7948.n(this.prototype,"percentage",[c]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"zf/iPhFF",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,0,["percentage","total"]],3],null],[[[1," "],[10,0],[15,"title",[30,0,["percentage","title"]]],[14,0,"user-flag-percentage"],[12],[1,"\\n "],[10,1],[15,0,[29,["percentage-label ",[30,0,["percentage","className"]]]]],[12],[1,[30,0,["percentage","label"]]],[13],[1,"\\n "],[1,[28,[32,1],[[30,0,["percentage","icon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-flag-percentage.js",scope:()=>[n.gte,r.default],isStrictMode:!0}),this))()}},56193:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(53653),n=i(30574),r=i(53397),o=i(63748),a=i(21719),l=i(87353);let c=(0,i(85671).createTemplateFactory)({id:"hMNenjrY",block:'[[[41,[30,0,["includeAvatar"]],[[[1," "],[10,0],[14,0,"user-image"],[12],[1,"\\n "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,[28,[35,3],[[30,1]],[["imageSize"],["large"]]]],[13],[1,"\\n "],[8,[39,4],null,[["@user"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"user-detail"],[12],[1,"\\n "],[10,0],[14,0,"name-line"],[12],[1,"\\n"],[41,[30,0,["includeLink"]],[[[1," "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[14,"role","heading"],[12],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,6],[[30,1,["username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[28,[37,6],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,6],[[30,1,["username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[28,[37,6],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[41,[28,[37,7],[[30,2],[30,1,["status"]]],null],[[[1," "],[8,[39,8],null,[["@status","@showDescription"],[[30,1,["status"]],[30,3]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-user-name","span",[28,[37,10],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n"],[41,[48,[30,4]],[[[1," "],[10,0],[14,0,"details"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-user-info","div",[28,[37,10],null,[["user"],[[30,0,["user"]]]]]]],null]],["@user","@showStatus","@showStatusDescription","&default"],false,["if","div","a","avatar","user-avatar-flair","span","format-username","and","user-status-message","plugin-outlet","hash","has-block","yield"]]',moduleName:"discourse/components/user-info.hbs",isStrictMode:!1}),u=dt7948.c(class extends s.default{size="small";includeLink=!0;includeAvatar=!0;static #e=(()=>dt7948.g(this.prototype,"dataUsername",[(0,n.alias)("user.username")]))();#o1=(()=>void dt7948.i(this,"dataUsername"))();didInsertElement(){super.didInsertElement(...arguments),this.user?.statusManager?.trackStatus()}willDestroyElement(){super.willDestroyElement(...arguments),this.user?.statusManager?.stopTrackingStatus()}userPath(e){return(0,l.userPath)(e)}static #i=(()=>dt7948.n(this.prototype,"userPath",[(0,o.default)("user.username")]))();nameFirst(e){return(0,a.prioritizeNameInUx)(e)}static #s=(()=>dt7948.n(this.prototype,"nameFirst",[(0,o.default)("user.name")]))()},[(0,r.attributeBindings)("dataUsername:data-username"),(0,r.classNameBindings)(":user-info","size")]),d=(0,s.setComponentTemplate)(c,u)},1779:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(30574),r=i(53397);let o=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"href",[(0,n.alias)("user.path")]))();#o0=(()=>void dt7948.i(this,"href"))();static #i=(()=>dt7948.g(this.prototype,"dataUserCard",[(0,n.alias)("user.username")]))();#o3=(()=>void dt7948.i(this,"dataUserCard"))()},[(0,r.attributeBindings)("href","dataUserCard:data-user-card"),(0,r.tagName)("a")])},56453:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"9PxmOCfL",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_bookmarks_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_bookmarks_body"],[["icon"],[[28,[37,5],["bookmark"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon"]]',moduleName:"discourse/components/user-menu/bookmarks-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"bookmarks-list-empty-state"))},30343:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(72148),n=i(6864),r=i(74154),o=i(56527),a=i(27431),l=i(12948),c=i(843);class u extends s.default{get dismissTypes(){return["bookmark_reminder"]}get showAllHref(){return`${this.currentUser.path}/activity/bookmarks`}get showAllTitle(){return(0,c.i18n)("user_menu.view_all_bookmarks")}get showDismiss(){return this.#o8>0}get dismissTitle(){return(0,c.i18n)("user.dismiss_bookmarks_tooltip")}get itemsCacheKey(){return"user-menu-bookmarks-tab"}get emptyStateComponent(){return"user-menu/bookmarks-list-empty-state"}get #o8(){let e=`grouped_unread_notifications.${this.site.notification_types.bookmark_reminder}`;return this.currentUser.get(e)||0}get dismissConfirmationText(){return(0,c.i18n)("notifications.dismiss_confirmation.body.bookmarks",{count:this.#o8})}async fetchItems(){let e=await (0,n.ajax)(`/u/${this.currentUser.username}/user-menu-bookmarks`),t=[],i=e.notifications.map(e=>l.default.create(e));await l.default.applyTransformations(i),i.forEach(e=>{t.push(new o.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))});let s=e.bookmarks.map(e=>a.default.create(e));return await a.default.applyTransformations(s),t.push(...s.map(e=>new r.default({bookmark:e,siteSettings:this.siteSettings,site:this.site}))),t}}},64282:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(81133),n=i(72738),r=i(17587),o=i(53653),a=i(85671),l=i(73306);let c=(0,r.translateSize)("medium"),u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"XPfRti71",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["icon-avatar",[30,1,["classNames"]]],null]],[12],[1,"\\n"],[1," "],[10,"img"],[14,"lazy","lazy"],[15,"src",[28,[32,1],[[30,1,["avatarTemplate"]],"medium"],null]],[15,"width",[32,2]],[15,"height",[32,2]],[14,0,"avatar"],[12],[13],[1,"\\n "],[10,0],[14,0,"icon-avatar__icon-wrapper"],[12],[1,"\\n "],[1,[28,[32,3],[[30,1,["icon"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@data"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/icon-avatar.js",scope:()=>[s.default,r.avatarUrl,c,n.default],isStrictMode:!0}),(0,l.default)(void 0,"icon-avatar:IconAvatar"))},22766:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Fjtjlpdy",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user_menu.generic_no_items"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n"]]',moduleName:"discourse/components/user-menu/items-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"items-list-empty-state"))},99542:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(8554),r=i(35533),o=i(83133);let a=(0,i(85671).createTemplateFactory)({id:"cYAnTdXK",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["before-panel-body",[28,[37,1],null,[["closeUserMenu"],[[30,1]]]]]],null],[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["items","length"]],[[[1," "],[10,"ul"],[15,"aria-labelledby",[30,2]],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["items"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@item","@closeUserMenu"],[[30,3],[30,1]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"panel-body-bottom"],[12],[1,"\\n"],[41,[30,0,["showAllHref"]],[[[1," "],[8,[39,8],[[24,0,"btn-default show-all"]],[["@href","@translatedAriaLabel","@translatedTitle"],[[30,0,["showAllHref"]],[30,0,["showAllTitle"]],[30,0,["showAllTitle"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,9],["chevron-down"],[["aria-label"],[[30,0,["showAllTitle"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["showDismiss"]],[[[1," "],[11,"button"],[24,0,"btn btn-default notifications-dismiss btn-icon-text"],[16,"title",[30,0,["dismissTitle"]]],[24,4,"button"],[4,[38,11],["click",[30,0,["dismissButtonClick"]]],null],[12],[1,"\\n "],[1,[28,[35,9],["check"],null]],[1,"\\n "],[1,[28,[35,12],["user.dismiss"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,0],null,[["@name","@outletArgs"],["panel-body-bottom",[28,[37,1],null,[["itemsCacheKey","closeUserMenu","showDismiss","dismissButtonClick"],[[30,0,["itemsCacheKey"]],[30,1],[30,0,["showDismiss"]],[30,0,["dismissButtonClick"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,0],null,[["@name","@outletArgs"],["user-menu-items-list-empty-state",[28,[37,1],null,[["model"],[[30,0]]]]]],[["default"],[[[[1,"\\n "],[46,[30,0,["emptyStateComponent"]],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]]],[8,[39,0],null,[["@name","@outletArgs"],["after-panel-body",[28,[37,1],null,[["closeUserMenu"],[[30,1]]]]]],null]],["@closeUserMenu","@ariaLabelledby","item"],false,["plugin-outlet","hash","if","div","ul","each","-track-array","user-menu/menu-item","d-button","d-icon","button","on","i18n","component"]]',moduleName:"discourse/components/user-menu/items-list.hbs",isStrictMode:!1});var l=i(53653);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#T=(()=>void dt7948.i(this,"loading"))();static #s=(()=>dt7948.g(this.prototype,"items",[n.tracked],function(){return[]}))();#o2=(()=>void dt7948.i(this,"items"))();constructor(){super(...arguments),this.#o4()}get itemsCacheKey(){}get showAllHref(){}get showAllTitle(){}get showDismiss(){return!1}get dismissTitle(){}get emptyStateComponent(){return"user-menu/items-list-empty-state"}get renderDismissConfirmation(){return!1}async fetchItems(){throw Error(`the fetchItems method must be implemented in ${this.constructor.name}`)}async refreshList(){await this.#o4()}async #o4(){let e=this.#o7();e?.length?this.items=e:this.loading=!0;try{let e=await this.fetchItems();this.#o9(e),this.items=e}catch(e){console.error(`an error occurred when loading items for ${this.constructor.name}`,e)}finally{this.loading=!1}}#o7(){let e=this.itemsCacheKey;if(e)return this.session[`user-menu-items:${e}`]}#o9(e){let t=this.itemsCacheKey;t&&this.session.set(`user-menu-items:${t}`,e)}dismissButtonClick(){throw Error(`dismissButtonClick must be implemented in ${this.constructor.name}.`)}static #l=(()=>dt7948.n(this.prototype,"dismissButtonClick",[r.action]))()}(0,l.setComponentTemplate)(a,c)},68458:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"pcqwxZI/",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_likes_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_likes_body"],[["preferencesUrl"],[[28,[37,5],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","get-url"]]',moduleName:"discourse/components/user-menu/likes-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"likes-list-empty-state"))},77007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(72148);class n extends s.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/likes-list-empty-state"}}},36974:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(42256),o=i(50409),a=i(42236);let l=(0,i(85671).createTemplateFactory)({id:"jDq7qX/i",block:'[[[10,"li"],[15,0,[30,0,["className"]]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["linkHref"]]],[16,"title",[30,0,["linkTitle"]]],[4,[38,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n"],[41,[30,0,["iconComponent"]],[[[1," "],[8,[30,0,["iconComponent"]],null,[["@data"],[[30,0,["iconComponentArgs"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]]],[1," "],[10,0],[12],[1,"\\n"],[41,[30,0,["label"]],[[[1," "],[10,1],[15,0,[28,[37,7],["item-label ",[30,0,["labelClass"]]],null]],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["description"]],[[[1," "],[10,1],[15,0,[28,[37,7],["item-description ",[30,0,["descriptionClass"]]],null]],[15,"data-topic-id",[30,0,["topicId"]]],[12],[1,"\\n "],[1,[30,0,["description"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["endComponent"]],[[[1," "],[8,[30,0,["endComponent"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,8],null,[["@name","@outletArgs"],["menu-item-end",[30,0,["endOutletArgs"]]]],null],[1,"\\n"],[13]],[],false,["li","a","on","if","d-icon","div","span","concat","plugin-outlet"]]',moduleName:"discourse/components/user-menu/menu-item.hbs",isStrictMode:!1});var c=i(53653);class u extends s.default{get className(){return this.#o5.className}get linkHref(){return this.#o5.linkHref}get linkTitle(){return this.#o5.linkTitle}get icon(){return this.#o5.icon}get label(){return this.#o5.label}get labelClass(){return this.#o5.labelClass}get description(){let e=this.#o5.description;if(e)return"string"==typeof e?(0,r.htmlSafe)((0,o.emojiUnescape)((0,a.escapeExpression)(e))):e}get descriptionClass(){return this.#o5.descriptionClass}get topicId(){return this.#o5.topicId}get iconComponent(){return this.#o5.iconComponent}get iconComponentArgs(){return this.#o5.iconComponentArgs}get endComponent(){return this.#o5.endComponent}get endOutletArgs(){return this.#o5.endOutletArgs}get #o5(){return this.args.item}onClick(e){return this.#o5.onClick({event:e,closeUserMenu:this.args.closeUserMenu})}static #e=(()=>dt7948.n(this.prototype,"onClick",[n.action]))()}(0,c.setComponentTemplate)(l,u)},8273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(80989);let n=(0,i(85671).createTemplateFactory)({id:"Yrl+kXIJ",block:'[[[11,3],[24,"role","tab"],[16,0,[30,0,["classNames"]]],[16,1,[30,0,["id"]]],[16,"tabindex",[30,0,["tabIndex"]]],[16,"title",[30,1,["title"]]],[16,"aria-label",[30,1,["title"]]],[16,"aria-selected",[52,[30,0,["isActive"]],"true","false"]],[16,"aria-controls",[30,0,["ariaControls"]]],[16,"data-tab-number",[30,1,["position"]]],[16,6,[30,1,["linkWhenActive"]]],[4,[38,2],["click",[30,2]],null],[4,[38,2],["keydown",[30,2]],null],[12],[1,"\\n "],[1,[28,[35,3],[[30,1,["icon"]]],null]],[1,"\\n"],[41,[30,1,["count"]],[[[1," "],[10,1],[14,"aria-hidden","true"],[14,0,"badge-notification"],[12],[1,[30,1,["count"]]],[13],[1,"\\n"]],[]],null],[1," "],[18,3,null],[1,"\\n"],[13]],["@tab","@onTabClick","&default"],false,["a","if","on","d-icon","span","yield"]]',moduleName:"discourse/components/user-menu/menu-tab.hbs",isStrictMode:!1});var r=i(53653);class o extends s.default{get isActive(){return this.args.tab.id===this.args.currentTabId}get classNames(){let e=["btn","btn-flat","btn-icon","no-text","user-menu-tab"];return this.isActive&&e.push("active"),e.join(" ")}get id(){return`user-menu-button-${this.args.tab.id}`}get tabIndex(){return this.isActive?"0":"-1"}get ariaControls(){return`quick-access-${this.args.tab.id}`}}(0,r.setComponentTemplate)(n,o)},30601:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var s=i(80989),n=i(8554),r=i(35533),o=i(31049),a=i(83133),l=i(63748),c=i(16547),u=i(94636),d=i(97015),p=i(24833),h=i(27431),m=i(30343),g=i(77007),f=i(63708),_=i(72148),y=i(45289),b=i(45054),w=i(62319),k=i(66499);let T=(0,i(85671).createTemplateFactory)({id:"ChHCNWuM",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[16,"data-tab-id",[30,0,["currentTabId"]]],[24,"data-max-width","320"],[4,[38,1],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[10,0],[14,0,"menu-tabs-container"],[14,"role","tablist"],[14,"aria-orientation","vertical"],[15,"aria-label",[28,[37,2],["user_menu.sr_menu_tabs"],null]],[12],[1,"\\n "],[11,0],[24,0,"top-tabs tabs-list"],[4,[38,1],[[30,0,["focusFirstTab"]]],null],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["topTabs"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@tab","@currentTabId","@onTabClick"],[[30,1],[30,0,["currentTabId"]],[28,[37,6],[[30,0,["handleTabClick"]],[30,1]],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"bottom-tabs tabs-list"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["bottomTabs"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@tab","@currentTabId","@onTabClick"],[[30,2],[30,0,["currentTabId"]],[28,[37,6],[[30,0,["handleTabClick"]],[30,2]],null]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,7],null,[["@name","@outletArgs"],["user-menu-tabs-list__after",[28,[37,8],null,[["user"],[[30,0,["currentUser"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,1,[28,[37,9],["quick-access-",[30,0,["currentTabId"]]],null]],[14,0,"quick-access-panel"],[12],[1,"\\n "],[8,[30,0,["currentPanelComponent"]],null,[["@closeUserMenu","@filterByTypes","@ariaLabelledby"],[[30,3],[30,0,["currentNotificationTypes"]],[28,[37,9],["user-menu-button-",[30,0,["currentTabId"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["tab","tab","@closeUserMenu"],false,["div","did-insert","i18n","each","-track-array","user-menu/menu-tab","fn","plugin-outlet","hash","concat"]]',moduleName:"discourse/components/user-menu/menu.hbs",isStrictMode:!1});var S=i(38168),C=i(53653);let x=(0,S.A)(i(8554)).cached,A="all-notifications",E=_.default,D="review-queue",P=[class extends p.default{id=(()=>A)();icon="bell";panelComponent=(()=>E)();get linkWhenActive(){return`${this.currentUser.path}/notifications`}},class extends p.default{id="replies";icon="user_menu.replies";panelComponent=(()=>w.default)();notificationTypes=["mentioned","group_mentioned","posted","quoted","replied"];get count(){return this.getUnreadCountForType("mentioned")+this.getUnreadCountForType("group_mentioned")+this.getUnreadCountForType("posted")+this.getUnreadCountForType("quoted")+this.getUnreadCountForType("replied")}get linkWhenActive(){return`${this.currentUser.path}/notifications/responses`}},class extends p.default{id="likes";icon="heart";panelComponent=(()=>g.default)();get shouldDisplay(){return!this.currentUser.user_option.likes_notifications_disabled}get count(){return this.getUnreadCountForType("liked")+this.getUnreadCountForType("liked_consolidated")+this.getUnreadCountForType("reaction")}get notificationTypes(){return["liked","liked_consolidated","reaction"]}get linkWhenActive(){return`${this.currentUser.path}/notifications/likes-received`}},class extends p.default{id="messages";icon="notification.private_message";panelComponent=(()=>f.default)();notificationTypes=["private_message","group_message_summary"];get count(){return this.getUnreadCountForType("private_message")}get shouldDisplay(){return this.currentUser?.can_send_private_messages}get linkWhenActive(){return`${this.currentUser.path}/messages`}},class extends p.default{id="bookmarks";icon=(()=>h.NO_REMINDER_ICON)();panelComponent=(()=>m.default)();notificationTypes=["bookmark_reminder"];get count(){return this.getUnreadCountForType("bookmark_reminder")}get linkWhenActive(){return`${this.currentUser.path}/activity/bookmarks`}},class extends p.default{id=(()=>D)();icon="flag";panelComponent=(()=>k.default)();linkWhenActive=(()=>(0,u.default)("/review"))();get shouldDisplay(){return this.currentUser.can_review&&this.currentUser.get("reviewable_count")}get count(){return this.currentUser.get("reviewable_count")}}],M=[class extends p.default{id="profile";icon="user";panelComponent=(()=>b.default)();get linkWhenActive(){return`${this.currentUser.path}/summary`}}],F=class extends p.default{id="other-notifications";icon="discourse-other-tab";panelComponent=(()=>y.default)();constructor(e,t,i,s){super(...arguments),this.otherNotificationTypes=s}get count(){return this.otherNotificationTypes.reduce((e,t)=>e+this.getUnreadCountForType(t),0)}get notificationTypes(){return this.otherNotificationTypes}};class I extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"currentTabId",[n.tracked],function(){return A}))();#o6=(()=>void dt7948.i(this,"currentTabId"))();static #d=(()=>dt7948.g(this.prototype,"currentPanelComponent",[n.tracked],function(){return E}))();#ae=(()=>void dt7948.i(this,"currentPanelComponent"))();static #p=(()=>dt7948.g(this.prototype,"currentNotificationTypes",[n.tracked]))();#at=(()=>void dt7948.i(this,"currentNotificationTypes"))();constructor(){super(...arguments),this.router.on("routeDidChange",this.onRouteChange)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this.onRouteChange)}onRouteChange(){this.args.closeUserMenu()}static #h=(()=>dt7948.n(this.prototype,"onRouteChange",[l.bind]))();get classNames(){let e=["user-menu","revamped","menu-panel","drop-down"];return this.siteSettings.show_user_menu_avatars&&e.push("show-avatars"),e.join(" ")}get topTabs(){let e=[];P.forEach(t=>{let i=new t(this.currentUser,this.siteSettings,this.site);i.shouldDisplay&&e.push(i)});let t=e.findIndex(e=>e.id===D);return p.CUSTOM_TABS_CLASSES.forEach(i=>{let s=new i(this.currentUser,this.siteSettings,this.site);s.shouldDisplay&&(-1===t?e.push(s):(e.insertAt(t,s),t++))}),e.push(new F(this.currentUser,this.siteSettings,this.site,this.#ai(e))),e.map((e,t)=>(e.position=t,e))}static #m=(()=>dt7948.n(this.prototype,"topTabs",[x]))();get bottomTabs(){let e=[];M.forEach(t=>{let i=new t(this.currentUser,this.siteSettings,this.site);i.shouldDisplay&&e.push(i)});let t=this.topTabs.length;return e.map((e,i)=>(e.position=i+t,e))}static #g=(()=>dt7948.n(this.prototype,"bottomTabs",[x]))();#ai(e){let t=e.filter(e=>e.notificationTypes).map(e=>e.notificationTypes).flat();return Object.keys(this.site.notification_types).filter(e=>!t.includes(e))}handleTabClick(e,t){(0,d.wantsNewWindow)(t)||this.currentTabId===e.id||"keydown"===t.type&&13!==t.keyCode||(t.preventDefault(),this.currentTabId=e.id,this.currentPanelComponent=function(e,t){if("string"==typeof t){let i=JSON.stringify(t);return(0,c.default)(`user-menu tab panelComponent must be passed as a component class (passed ${i})`,{id:"discourse.user-menu.panel-component-class"}),e.resolveRegistration(`component:${t}`)}return t}((0,o.getOwner)(this),e.panelComponent),this.appEvents.trigger("user-menu:tab-click",e.id),this.currentNotificationTypes=e.notificationTypes)}static #A=(()=>dt7948.n(this.prototype,"handleTabClick",[r.action]))();triggerRenderedAppEvent(){this.appEvents.trigger("user-menu:rendered")}static #E=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[r.action]))();focusFirstTab(e){e.querySelector(".btn.active")?.focus()}static #D=(()=>dt7948.n(this.prototype,"focusFirstTab",[r.action]))()}(0,C.setComponentTemplate)(T,I)},49448:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"28tKF4zz",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_messages_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_messages_body"],[["icon","aboutUrl"],[[28,[37,5],["envelope"],null],[28,[37,6],["/about"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/messages-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"messages-list-empty-state"))},63708:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(83133),n=i(72148),r=i(6864),o=i(77573),a=i(56527),l=i(42236),c=i(12948),u=i(19268),d=i(843);class p extends n.default{static #e=(()=>dt7948.g(this.prototype,"store",[s.service]))();#f=(()=>void dt7948.i(this,"store"))();get dismissTypes(){return this.filterByTypes}get showAllHref(){return`${this.currentUser.path}/messages`}get showAllTitle(){return(0,d.i18n)("user_menu.view_all_messages")}get showDismiss(){return this.#as>0}get dismissTitle(){return(0,d.i18n)("user.dismiss_messages_tooltip")}get itemsCacheKey(){return"user-menu-messages-tab"}get emptyStateComponent(){return"user-menu/messages-list-empty-state"}get #as(){let e=`grouped_unread_notifications.${this.site.notification_types.private_message}`;return this.currentUser.get(e)||0}get dismissConfirmationText(){return(0,d.i18n)("notifications.dismiss_confirmation.body.messages",{count:this.#as})}async fetchItems(){let e=await (0,r.ajax)(`/u/${this.currentUser.username}/user-menu-private-messages`),t=[];(await c.default.initializeNotifications(e.unread_notifications)).forEach(e=>{t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))});let i=e.topics.map(e=>this.store.createRecord("topic",e));if(await u.default.applyTransformations(i),this.siteSettings.show_user_menu_avatars||this.siteSettings.prioritize_full_name_in_ux){let t=new Map(e.users.map(e=>[e.id,e]));i.forEach(e=>{let i=t.get(e.lastPoster.user_id);e.last_poster_avatar_template=i?.avatar_template,e.last_poster_name=i?.name})}let s=await c.default.initializeNotifications(e.read_notifications);return(0,l.mergeSortedLists)(s,i,(e,t)=>{let i=new Date(e.created_at);return new Date(t.bumped_at)>i}).forEach(e=>{e instanceof c.default?t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site})):t.push(new o.default({message:e,siteSettings:this.siteSettings,site:this.site}))}),t}}},66533:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"g+XWYjxM",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_notifications_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_notifications_body"],[["icon","preferencesUrl"],[[28,[37,5],["bell"],null],[28,[37,6],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/notifications-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"notifications-list-empty-state"))},72148:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y,setNotificationsLimit:()=>_});var s=i(35533),n=i(83133),r=i(6868),o=i(99542),a=i(6864),l=i(17773),c=i(56527),u=i(67890),d=i(42236),p=i(12948),h=i(67715),m=i(843);let g=l.MAX_NOTIFICATIONS_LIMIT_PARAMS,f=30;function _(e){if(e<=0||e>g){console.error(`Error: Invalid limit of ${e} passed to setNotificationsLimit. Must be greater than 0 and less than ${g}`);return}f=e}class y extends o.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"store",[n.service]))();#f=(()=>void dt7948.i(this,"store"))();static #u=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#S=(()=>void dt7948.i(this,"modal"))();get filterByTypes(){return this.args.filterByTypes}get dismissTypes(){return null}get showAllHref(){return`${this.currentUser.path}/notifications`}get showAllTitle(){return(0,m.i18n)("user_menu.view_all_notifications")}get showDismiss(){return Object.keys(this.currentUser.get("grouped_unread_notifications")||{}).any(e=>this.currentUser.get(`grouped_unread_notifications.${e}`)>0)}get dismissTitle(){return(0,m.i18n)("user.dismiss_notifications_tooltip")}get itemsCacheKey(){let e="recent-notifications",t=this.filterByTypes;return t?.length>0&&(e+=`-type-${t.join(",")}`),e}get emptyStateComponent(){return this.constructor===y?"user-menu/notifications-list-empty-state":super.emptyStateComponent}get renderDismissConfirmation(){return!0}get dismissConfirmationText(){return(0,m.i18n)("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications})}get alwaysRenderDismissConfirmation(){return!1}async fetchItems(){let e={limit:f,recent:!0,bump_last_seen_reviewable:!0};this.currentUser.enforcedSecondFactor&&(e.silent=!0);let t=this.filterByTypes;t?.length>0&&(e.filter_by_types=t.join(","),e.silent=!0);let i=[],s=await (0,a.ajax)("/notifications",{data:e}),n=await p.default.initializeNotifications(s.notifications),r=s.pending_reviewables?.map(e=>h.default.create(e));if(r?.length){let e=n.findIndex(e=>e.read),t=n.splice(0,e);(0,d.mergeSortedLists)(t,r,(e,t)=>{let i=new Date(e.created_at);return new Date(t.created_at)>i}).forEach(e=>{let t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site};e instanceof p.default?(t.notification=e,i.push(new c.default(t))):(t.reviewable=e,i.push(new u.default(t)))})}return n.forEach(e=>{i.push(new c.default({notification:e,appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}),i}async performDismiss(){let e={type:"PUT"},t=this.dismissTypes;if(t?.length>0&&(e.data={dismiss_types:t.join(",")}),await (0,a.ajax)("/notifications/mark-read",e),t){let e={...this.currentUser.grouped_unread_notifications};t.forEach(t=>{let i=this.site.notification_types[t];i&&delete e[i]}),this.currentUser.set("grouped_unread_notifications",e)}else this.currentUser.set("all_unread_notifications_count",0),this.currentUser.set("unread_high_priority_notifications",0),this.currentUser.set("grouped_unread_notifications",{});this.refreshList(),(0,d.postRNWebviewMessage)("markRead","1")}dismissWarningModal(){this.modal.show(r.default,{model:{confirmationMessage:this.dismissConfirmationText,dismissNotifications:()=>this.performDismiss()}})}dismissButtonClick(){(this.renderDismissConfirmation||this.alwaysRenderDismissConfirmation)&&(this.currentUser.unread_high_priority_notifications>0||this.alwaysRenderDismissConfirmation)?this.dismissWarningModal():this.performDismiss()}static #d=(()=>dt7948.n(this.prototype,"dismissButtonClick",[s.action]))()}},83866:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"X8KiRdnB",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_other_notifications_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_other_notifications_body"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe"]]',moduleName:"discourse/components/user-menu/other-notifications-list-empty-state.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"other-notifications-list-empty-state"))},45289:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(72148);class n extends s.default{get dismissTypes(){return this.filterByTypes}get emptyStateComponent(){return"user-menu/other-notifications-list-empty-state"}get renderDismissConfirmation(){return!1}}},45054:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addUserMenuProfileTabItem:()=>m,default:()=>f,resetUserMenuProfileTabItems:()=>g});var s=i(80989),n=i(35533),r=i(83133),o=i(96588),a=i(47235),l=i(6864),c=i(8249),u=i(87353);let d=(0,i(85671).createTemplateFactory)({id:"ov0fBVFn",block:'[[[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[41,[30,0,["siteSettings","enable_user_status"]],[[[1," "],[10,"li"],[14,0,"set-user-status"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["setUserStatusClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1," "],[1,[28,[35,4],[[30,0,["currentUser","status","emoji"]]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[30,0,["currentUser","status","description"]]],[1,"\\n"],[41,[30,0,["currentUser","status","ends_at"]],[[[1," "],[1,[28,[35,6],[[30,0,["currentUser","status","ends_at"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["circle-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user_status.set_custom_status"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[15,0,[28,[37,9],["presence-toggle",[52,[51,[30,0,["isPresenceHidden"]]],"enabled"]],null]],[15,"title",[28,[37,8],["presence_toggle.title"],null]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["togglePresence"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["isPresenceHidden"]],"toggle-off","toggle-on"]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isPresenceHidden"]],[[[1," "],[1,[28,[35,8],["presence_toggle.offline"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],["presence_toggle.online"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[15,0,[28,[37,9],["do-not-disturb",[52,[30,0,["isInDoNotDisturb"]],"enabled"]],null]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["doNotDisturbClick"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["isInDoNotDisturb"]],"toggle-on","toggle-off"]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1," "],[10,1],[12],[1,[28,[35,8],["pause_notifications.label"],null]],[13],[1,"\\n"],[41,[30,0,["showDoNotDisturbEndDate"]],[[[1," "],[1,[28,[35,6],[[30,0,["doNotDisturbDateTime"]]],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,8],["pause_notifications.label"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,"li"],[14,0,"summary"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["user.summary",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.summary.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"activity"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userActivity",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["bars-staggered"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.activity_stream"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[10,"li"],[14,0,"invites"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userInvited",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.invited.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[14,0,"drafts"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userActivity.drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user_menu.drafts"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["currentUser","draft_count"]],[[[1," "],[1,[28,[35,8],["drafts.label_with_count"],[["count"],[[30,0,["currentUser","draft_count"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],["drafts.label"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"preferences"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["preferences",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["gear"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.preferences.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showToggleAnonymousButton"]],[[[1," "],[10,"li"],[15,0,[52,[30,0,["currentUser","is_anonymous"]],"disable-anonymous","enable-anonymous"]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["toggleAnonymous"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","is_anonymous"]],[[[1," "],[1,[28,[35,7],["ban"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["switch_from_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["user-secret"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["switch_to_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["extraItems"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,2,["className"]]],[12],[1,"\\n "],[10,3],[15,6,[30,2,["href"]]],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1," "],[1,[28,[35,7],[[30,2,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[30,2,["content"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1,"\\n "],[10,"li"],[14,0,"logout"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[28,[37,16],["logout"],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["right-from-bracket"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.log_out"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@ariaLabelledby","item"],false,["ul","if","li","d-button","emoji","span","format-age","d-icon","i18n","concat-class","unless","hr","link-to","each","-track-array","a","route-action"]]',moduleName:"discourse/components/user-menu/profile-tab-content.hbs",isStrictMode:!1});var p=i(53653);let h=[];function m(e){h.push(e)}function g(){h.clear()}class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"userStatus",[r.service]))();#an=(()=>void dt7948.i(this,"userStatus"))();static #l=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#S=(()=>void dt7948.i(this,"modal"))();saving=!1;get showToggleAnonymousButton(){return this.currentUser.can_post_anonymously||this.currentUser.is_anonymous}get isInDoNotDisturb(){return!!this.#ar}get doNotDisturbDateTime(){return this.#ar.getTime()}get showDoNotDisturbEndDate(){return!c.default.isEternal(this.currentUser.get("do_not_disturb_until"))}get extraItems(){return h}get #ar(){if(!this.currentUser.get("do_not_disturb_until"))return;let e=new Date(this.currentUser.get("do_not_disturb_until"));if(!(e{this.saving=!1});this.saving=!1,this.args.closeUserMenu(),this.modal.show(o.default)}}static #c=(()=>dt7948.n(this.prototype,"doNotDisturbClick",[n.action]))();togglePresence(){this.currentUser.set("user_option.hide_presence",!this.isPresenceHidden),this.currentUser.save(["hide_presence"])}static #u=(()=>dt7948.n(this.prototype,"togglePresence",[n.action]))();setUserStatusClick(){this.args.closeUserMenu(),this.modal.show(a.default,{model:{status:this.currentUser.status,pauseNotifications:this.currentUser.isInDoNotDisturb(),saveAction:(e,t)=>this.userStatus.set(e,t),deleteAction:()=>this.userStatus.clear()}})}static #d=(()=>dt7948.n(this.prototype,"setUserStatusClick",[n.action]))();async toggleAnonymous(){await (0,l.ajax)((0,u.userPath)("toggle-anon"),{type:"POST"}),window.location.reload()}static #p=(()=>dt7948.n(this.prototype,"toggleAnonymous",[n.action]))()}(0,p.setComponentTemplate)(d,f)},62319:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(72148);class n extends s.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/notifications-list-empty-state"}}},66499:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(83133),n=i(99542),r=i(6864),o=i(94636),a=i(67890),l=i(67715),c=i(843);class u extends n.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"site",[s.service]))();#w=(()=>void dt7948.i(this,"site"))();get showAllHref(){return(0,o.default)("/review")}get showAllTitle(){return(0,c.i18n)("user_menu.reviewable.view_all")}get itemsCacheKey(){return"pending-reviewables"}fetchItems(){return(0,r.ajax)("/review/user-menu-list").then(e=>(this.currentUser.updateReviewableCount(e.reviewable_count),e.reviewables.map(e=>new a.default({reviewable:l.default.create(e),currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))))}}},76449:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"GCeIm9DC",block:'[[[10,"section"],[14,0,"user-navigation user-navigation-primary"],[12],[1,"\\n "],[8,[39,1],[[24,0,"main-nav nav user-nav"]],[["@ariaLabel"],["User primary"]],[["default"],[[[[1,"\\n"],[41,[51,[30,1,["profile_hidden"]]],[[[1," "],[8,[39,3],[[24,0,"user-nav__summary"]],[["@route"],["user.summary"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.summary.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[39,3],[[24,0,"user-nav__activity"]],[["@route","@ariaCurrentContext"],["userActivity","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.activity_stream"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,3],[[[1," "],[8,[39,3],[[24,0,"user-nav__notifications"]],[["@route","@ariaCurrentContext"],["userNotifications","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bell"],[["class"],["glyph"]]]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.notifications"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,3],[[24,0,"user-nav__personal-messages"]],[["@route","@ariaCurrentContext"],["userPrivateMessages","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.private_messages"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[39,3],[[24,0,"user-nav__invites"]],[["@route","@ariaCurrentContext"],["userInvited","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user-plus"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.invited.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,6],[[[1," "],[8,[39,3],[[24,0,"user-nav__badges"]],[["@route"],["user.badges"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["certificate"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["badges.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-main-nav","li",[28,[37,9],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["can_edit"]],[[[1," "],[8,[39,3],[[24,0,"user-nav__preferences"]],[["@route","@ariaCurrentContext"],["preferences","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["gear"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,10],[[30,7],[30,8]],null],[[[1," "],[10,"li"],[14,0,"user-nav__admin"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["adminPath"]]],[12],[1,"\\n "],[1,[28,[35,4],["wrench"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["admin.user.manage_user"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[13]],["@user","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@isMobileView","@isStaff"],false,["section","horizontal-overflow-nav","unless","d-navigation-item","d-icon","span","i18n","if","plugin-outlet","hash","and","li","a"]]',moduleName:"discourse/components/user-nav.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"user-nav"))},68827:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53397),n=i(18162),r=i(16303);let o=dt7948.c(class extends n.default{},[(0,r.pluginApiIdentifiers)("user-nav-messages-dropdown"),(0,r.selectKitOptions)({caretDownIcon:"caret-right",caretUpIcon:"caret-down"}),(0,s.classNames)("user-nav-messages-dropdown")])},16590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(80989),n=i(53653),r=i(85671);class o extends s.default{get messagesNav(){return document.getElementById("user-navigation-secondary__horizontal-nav")}static #e=(()=>(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"e9ozi6Gf",block:'[[[1,"\\n"],[40,[[[1," "],[18,1,null],[1,"\\n"]],[]],"%cursor:0%",[28,[31,1],[[30,0,["messagesNav"]]],null]],[1," "]],["&default"],false,["in-element","-in-el-null","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-nav/messages-secondary-nav.js",isStrictMode:!0}),this))()}},63765:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(82805);let o=(0,i(85671).createTemplateFactory)({id:"d7o3ru8a",block:'[[[10,"tr"],[15,0,[29,["day ",[30,0,["dayLabel"]]]]],[12],[1,"\\n "],[10,"td"],[14,0,"day-label"],[12],[1,[30,0,["dayLabel"]]],[13],[1,"\\n "],[10,"td"],[14,0,"starts-at"],[12],[1,"\\n "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["startTimeOptions"]],[30,0,["startTimeValue"]],[30,0,["onChangeStartTime"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["endTimeOptions"]],[[[1," "],[10,"td"],[14,0,"to"],[12],[1,[28,[35,4],["user.notification_schedule.to"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"ends-at"],[12],[1,"\\n "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["endTimeOptions"]],[30,0,["endTimeValue"]],[30,0,["onChangeEndTime"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["tr","td","combo-box","if","i18n"]]',moduleName:"discourse/components/user-notification-schedule-day.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dayLabel",[(0,r.i18n)("day","user.notification_schedule.%@")]))();#ao=(()=>void dt7948.i(this,"dayLabel"))()},[(0,n.tagName)("")]),l=(0,s.setComponentTemplate)(o,a)},59533:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(53653),n=i(35533),r=i(63748),o=i(843);let a=(0,i(85671).createTemplateFactory)({id:"WhrMHxjj",block:'[[[10,0],[14,0,"control-group notification-schedule"],[14,"data-setting-name","user-notification-schedule"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.notification_schedule.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@labelKey","@checked"],["user.notification_schedule.label",[30,0,["model","user_notification_schedule","enabled"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","user_notification_schedule","enabled"]],[[[1," "],[10,0],[14,0,"instruction"],[12],[1,[28,[35,2],["user.notification_schedule.tip"],null]],[13],[1,"\\n\\n "],[10,"table"],[14,0,"notification-schedule-table"],[12],[1,"\\n "],[10,"tbody"],[14,0,"notification-schedule-tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["days"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@day","@startTimeOptions","@startTimeValue","@onChangeStartTime","@endTimeOptions","@endTimeValue","@onChangeEndTime"],[[30,1,["day"]],[30,1,["startTimeOptions"]],[30,1,["startTimeValue"]],[30,1,["onChangeStartTime"]],[30,1,["endTimeOptions"]],[30,1,["endTimeValue"]],[30,1,["onChangeEndTime"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["day"],false,["div","label","i18n","preference-checkbox","if","table","tbody","each","-track-array","user-notification-schedule-day"]]',moduleName:"discourse/components/user-notification-schedule.hbs",isStrictMode:!1}),l=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];class c extends n.default{id=null;startTimeOptions=null;model=null;onChangeStartTime(e){this.startingTimeChangedForDay(e)}static #e=(()=>dt7948.n(this.prototype,"onChangeStartTime",[n.action]))();onChangeEndTime(e){this.set(`model.user_notification_schedule.day_${this.id}_end_time`,e)}static #i=(()=>dt7948.n(this.prototype,"onChangeEndTime",[n.action]))();startTimeValue(e){return e[`day_${this.id}_start_time`]}static #s=(()=>dt7948.n(this.prototype,"startTimeValue",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time")]))();endTimeOptions(e){return this.buildEndTimeOptionsFor(e[`day_${this.id}_start_time`])}static #l=(()=>dt7948.n(this.prototype,"endTimeOptions",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time")]))();endTimeValue(e){return e[`day_${this.id}_end_time`]}static #c=(()=>dt7948.n(this.prototype,"endTimeValue",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_end_time")]))();startingTimeChangedForDay(e){e=parseInt(e,10),this.model.set(`user_notification_schedule.day_${this.id}_start_time`,e),"-1"!==e&&this.model.user_notification_schedule[`day_${this.id}_end_time`]<=e&&this.model.set(`user_notification_schedule.day_${this.id}_end_time`,e+30)}buildEndTimeOptionsFor(e){return -1===(e=parseInt(e,10))?null:this.buildTimeOptions(e+30,{includeNone:!1,showMidnight:!0})}}class u extends s.default{days=null;didInsertElement(){super.didInsertElement(...arguments),this.set("startTimeOptions",this.buildTimeOptions(0,{includeNone:!0,showMidnight:!1})),this.set("days",[]),l.forEach((e,t)=>{this.days.pushObject(c.create({id:t,day:e,model:this.model,buildTimeOptions:this.buildTimeOptions,startTimeOptions:this.startTimeOptions}))})}buildTimeOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeNone:!1,showMidnight:!0},i=[];t.includeNone&&i.push({name:(0,o.i18n)("user.notification_schedule.none"),value:-1});for(let s=e;s<=1440;s+=30){let e=Math.floor(s/60),n=s%60;if(0===n&&(n="00"),24===e){t.showMidnight&&i.push({name:(0,o.i18n)("user.notification_schedule.midnight"),value:1440});break}i.push({name:moment().set("hour",e).set("minute",n).format("LT"),value:s})}return i}}(0,s.setComponentTemplate)(a,u)},79728:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"Xqcdc1vm",block:'[[[10,0],[14,0,"control-group category-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.categories_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-watching"],null]],[1," "],[1,[28,[35,2],["user.watched_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["watchingTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["watchedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.watched_categories_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-tracking"],null]],[1," "],[1,[28,[35,2],["user.tracked_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["trackingTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["trackedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["trackedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.tracked_categories_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,2],["user.watched_first_post_categories"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedFirstPostCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["watchedFirstPostCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.watched_first_post_categories_instructions"],null]],[13],[1,"\\n\\n"],[41,[30,4,["mute_all_categories_by_default"]],[[[1," "],[10,0],[14,0,"controls tracking-controls tracking-controls__regular-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-regular"],null]],[1," "],[1,[28,[35,2],["user.regular_categories"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["regularCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["regularCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.regular_categories_instructions"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-muted"],null]],[1," "],[1,[28,[35,2],["user.muted_categories"],null]],[13],[1,"\\n\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["mutedTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["mutedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["mutedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],[[52,[30,5],"user.muted_categories_instructions","user.muted_categories_instructions_dont_hide"]],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-categories","div",[28,[37,11],null,[["model","save"],[[30,2],[30,6]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,11],null,[["model"],[[30,2]]]]]],null],[1,"\\n"],[13]],["@canSee","@model","@selectedCategories","@siteSettings","@hideMutedTags","@save"],false,["div","label","i18n","d-icon","if","a","category-selector","fn","mut","span","plugin-outlet","hash","br"]]',moduleName:"discourse/components/user-preferences/categories.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"categories"))},79187:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(35533),n=i(53397),r=i(843),o=i(68636),a=i(16303);let l=dt7948.c(class extends o.default{get content(){return[{id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")},{id:"delete",icon:"trash-can",name:(0,r.i18n)("user.second_factor.delete")}]}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){switch(e){case"edit":this.renamePasskey();break;case"delete":this.deletePasskey()}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("passkey-options-dropdown")])},33995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(80989),n=i(8554),r=i(53653),o=i(35533),a=i(83133),l=i(18638),c=i(6864),u=i(88355),d=i(843),p=i(85671);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"passkeyName",[n.tracked]))();#aa=(()=>void dt7948.i(this,"passkeyName"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#eU=(()=>void dt7948.i(this,"errorMessage"))();instructions=(()=>(0,d.i18n)("user.passkeys.rename_passkey_instructions"))();constructor(){super(...arguments),this.passkeyName=this.args.model.name}async saveRename(){try{await (0,c.ajax)(`/u/rename_passkey/${this.args.model.id}`,{type:"PUT",data:{name:this.passkeyName}}),this.errorMessage=null,this.router.refresh(),this.dialog.didConfirmWrapped()}catch(e){this.errorMessage=(0,u.extractError)(e)}}static #c=(()=>dt7948.n(this.prototype,"saveRename",[o.action]))();static #u=(()=>(0,r.setComponentTemplate)((0,p.createTemplateFactory)({id:"RNNTbKZI",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"rename-passkey__form"],[12],[1,"\\n "],[10,0],[14,0,"rename-passkey__message"],[12],[1,"\\n "],[10,2],[12],[1,[30,0,["instructions"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"rename-passkey__form inline-form"],[12],[1,"\\n "],[8,[32,0],[[16,"autofocus",true]],[["@value","@type"],[[30,0,["passkeyName"]],"text"]],null],[1,"\\n "],[8,[32,1],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["saveRename"]],"user.passkeys.save"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/rename-passkey.js",scope:()=>[r.Input,l.default],isStrictMode:!0}),this))()}},21123:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"9pvFq76B",block:'[[[41,[30,1,["tagging_enabled"]],[[[1," "],[10,0],[14,0,"control-group tag-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.tag_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching"],[["class"],["icon watching"]]]],[1,"\\n "],[1,[28,[35,3],["user.watched_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watched_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.watched_tags_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-tracking"],[["class"],["icon tracking"]]]],[1,"\\n "],[1,[28,[35,3],["user.tracked_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["tracked_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.tracked_tags_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-post-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching-first"],[["class"],["icon watching-first-post"]]]],[1,"\\n "],[1,[28,[35,3],["user.watched_first_post_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watching_first_post_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.watched_first_post_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-muted"],[["class"],["icon muted"]]]],[1,"\\n "],[1,[28,[35,3],["user.muted_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["muted_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.muted_tags_instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-tags","div",[28,[37,6],null,[["model","save"],[[30,2],[30,4]]]]]],null],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,6],null,[["model"],[[30,2]]]]]],null],[1,"\\n"]],[]],null]],["@siteSettings","@model","@selectedTags","@save"],false,["if","div","label","i18n","d-icon","tag-chooser","hash","plugin-outlet"]]',moduleName:"discourse/components/user-preferences/tags.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"tags"))},11022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(73306);let n=(0,i(85671).createTemplateFactory)({id:"qxmsLSMp",block:'[[[41,[30,1,["userApiKeys"]],[[[1," "],[10,0],[14,0,"control-group pref-user-api-keys"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label pref-user-api-keys__label"],[12],[1,[28,[35,3],["user.apps"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1,["userApiKeys"]]],null]],null],null,[[[1," "],[10,0],[12],[1,"\\n "],[10,1],[14,0,"pref-user-api-keys__application-name"],[12],[1,[30,2,["application_name"]]],[13],[1,"\\n\\n"],[41,[30,2,["revoked"]],[[[1," "],[8,[39,7],null,[["@action","@label"],[[28,[37,8],[[28,[37,9],["undoRevokeApiKey"],null],[30,2]],null],"user.undo_revoke_access"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@action","@label"],[[28,[37,8],[[28,[37,9],["revokeApiKey"],null],[30,2]],null],"user.revoke_access"]],null],[1,"\\n"]],[]]],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"ul"],[14,0,"pref-user-api-keys__scopes-list"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,2,["scopes"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"pref-user-api-keys__scopes-list-item"],[12],[1,[30,3]],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"pref-user-api-keys__created-at"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.api_approved"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,2,["created_at"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"pref-user-api-keys__last-used-at"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.api_last_used_at"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,2,["last_used_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@model","key","scope"],false,["if","div","label","i18n","each","-track-array","span","d-button","fn","route-action","p","ul","li","bound-date"]]',moduleName:"discourse/components/user-preferences/user-api-keys.hbs",isStrictMode:!1}),r=(0,i(53653).setComponentTemplate)(n,(0,s.default)(void 0,"user-api-keys"))},16769:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(80989),n=i(75446),r=i(35533),o=i(62053),a=i(83133),l=i(42256),c=i(18638),u=i(80500),d=i(79187),p=i(33995),h=i(54412),m=i(88355),g=i(98988),f=i(843),_=i(53653),y=i(85671);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();get showActions(){return this.currentUser.id===this.args.model.id&&!this.capabilities.isAppWebview}async createPasskey(){try{let e=await this.args.model.createPasskey(),t={challenge:Uint8Array.from(e.challenge,e=>e.charCodeAt(0)),rp:{name:e.rp_name,id:e.rp_id},user:{id:Uint8Array.from(e.user_secure_id,e=>e.charCodeAt(0)),name:this.currentUser.username,displayName:this.currentUser.username},pubKeyCredParams:e.supported_algorithms.map(e=>({type:"public-key",alg:e})),excludeCredentials:e.existing_passkey_credential_ids.map(e=>({type:"public-key",id:(0,g.stringToBuffer)(atob(e))})),authenticatorSelection:{userVerification:"required",requireResidentKey:!0}},i=await navigator.credentials.create({publicKey:t,signal:g.WebauthnAbortHandler.signal()}),s={id:i.id,rawId:(0,g.bufferToBase64)(i.rawId),type:i.type,attestation:(0,g.bufferToBase64)(i.response.attestationObject),clientData:(0,g.bufferToBase64)(i.response.clientDataJSON),name:(0,f.i18n)("user.passkeys.name.default")},n=await this.args.model.registerPasskey(s);if(n.error){this.dialog.alert(n.error);return}this.router.refresh(),this.dialog.dialog({title:(0,f.i18n)("user.passkeys.passkey_successfully_created"),type:"notice",bodyComponent:p.default,bodyComponentModel:n})}catch(e){console.error(e),this.errorMessage="InvalidStateError"===e.name?(0,f.i18n)("user.passkeys.already_added_error"):(0,f.i18n)("user.passkeys.not_allowed_error"),this.dialog.alert(this.errorMessage)}}confirmDelete(e){(0,o.schedule)("afterRender",()=>{this.dialog.deleteConfirm({title:(0,f.i18n)("user.passkeys.confirm_delete_passkey"),didConfirm:()=>{this.args.model.deletePasskey(e).then(()=>{this.router.refresh()})}})})}async addPasskey(){try{(await this.args.model.trustedSession()).success?await this.createPasskey():this.dialog.dialog({title:(0,f.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:u.default,didConfirm:()=>this.createPasskey()})}catch(e){(0,m.popupAjaxError)(e)}}static #c=(()=>dt7948.n(this.prototype,"addPasskey",[r.action]))();async deletePasskey(e){try{(await this.args.model.trustedSession()).success?this.confirmDelete(e):this.dialog.dialog({title:(0,f.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:u.default,didConfirm:()=>this.confirmDelete(e)})}catch(e){(0,m.popupAjaxError)(e)}}static #u=(()=>dt7948.n(this.prototype,"deletePasskey",[r.action]))();renamePasskey(e,t){this.dialog.dialog({title:(0,f.i18n)("user.passkeys.rename_passkey"),type:"notice",bodyComponent:p.default,bodyComponentModel:{id:e,name:t}})}static #d=(()=>dt7948.n(this.prototype,"renamePasskey",[r.action]))();static #p=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"WtAUhyvw",block:'[[[1,"\\n "],[10,0],[14,0,"control-group pref-passkeys"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[32,0],["user.passkeys.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.passkeys.short_description"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"pref-passkeys__rows"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["user_passkeys"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"passkey-left"],[12],[1,"\\n "],[10,0],[14,0,"row-passkey__name"],[12],[1,[30,2,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"row-passkey__created-date"],[12],[1,"\\n "],[1,[28,[32,1],[[28,[32,0],["user.passkeys.added_date"],[["date"],[[28,[32,2],[[30,2,["created_at"]]],[["format","leaveAgo"],["medium","true"]]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"row-passkey__used-date"],[12],[1,"\\n"],[41,[30,2,["last_used"]],[[[1," "],[1,[28,[32,1],[[28,[32,0],["user.passkeys.last_used_date"],[["date"],[[28,[32,2],[[30,2,["last_used"]]],[["format","leaveAgo"],["medium","true"]]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["user.passkeys.never_used"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showActions"]],[[[1," "],[10,0],[14,0,"passkey-right"],[12],[1,"\\n "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[32,3],null,[["@deletePasskey","@renamePasskey"],[[28,[32,4],[[30,0,["deletePasskey"]],[30,2,["id"]]],null],[28,[32,4],[[30,0,["renamePasskey"]],[30,2,["id"]],[30,2,["name"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showActions"]],[[[1," "],[10,0],[14,0,"controls pref-passkeys__add"],[12],[1,"\\n "],[8,[32,5],null,[["@action","@icon","@label"],[[30,0,["addPasskey"]],"plus","user.passkeys.add_passkey"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","passkey"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/user-passkeys.js",scope:()=>[f.i18n,l.htmlSafe,h.default,d.default,n.fn,c.default],isStrictMode:!0}),this))()}},42755:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"P0/QGfUU",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-wrapper",[28,[37,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-profile-avatar"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-img-wrapper",[28,[37,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,1],"huge"],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,4],null,[["@user"],[[30,1]]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-flair",[28,[37,1],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@user"],false,["plugin-outlet","hash","div","bound-avatar","user-avatar-flair"]]',moduleName:"discourse/components/user-profile-avatar.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},26345:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(42256),r=i(72738),o=i(85644),a=i(72613),l=i(843),c=i(53653),u=i(85671);class d extends s.default{get type(){return this.args.type??"number"}get isNumber(){return"number"===this.type}get isDuration(){return"duration"===this.type}static #e=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"Emlxa88I",block:'[[[1,"\\n "],[10,0],[14,0,"user-stat"],[12],[1,"\\n "],[10,1],[14,0,"value"],[15,"title",[30,1]],[12],[1,"\\n"],[41,[30,0,["isNumber"]],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDuration"]],[[[1," "],[1,[28,[32,1],[[30,2]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"label"],[12],[1,"\\n "],[41,[30,3],[[[1,[28,[32,2],[[30,3]],null]]],[]],null],[1,"\\n "],[1,[28,[32,3],[[28,[32,4],[[30,4]],[["count"],[[30,2]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@rawTitle","@value","@icon","@label"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-stat.js",scope:()=>[a.default,o.default,r.default,n.htmlSafe,l.i18n],isStrictMode:!0}),this))()}},64407:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(83133),r=i(54356),o=i(17206),a=i(31886),l=i(53653),c=i(85671);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get until(){if(!this.args.status.ends_at)return;let e=this.currentUser?this.currentUser.user_option?.timezone:moment.tz.guess();return(0,o.until)(this.args.status.ends_at,e,this.currentUser?.locale)}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"r8exp+7r",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[24,0,"user-status-message"],[17,2]],[["@identifier"],["user-status-message-tooltip"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,1],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"user-status-message-description"],[12],[1,"\\n "],[1,[30,1,["description"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[1,[28,[32,1],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n "],[10,0],[14,0,"user-status-tooltip-wrapper"],[12],[1,"\\n "],[10,1],[14,0,"user-status-tooltip-description"],[12],[1,"\\n "],[1,[30,1,["description"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["until"]],[[[1," "],[10,1],[14,0,"user-status-tooltip-until"],[12],[1,"\\n "],[1,[30,0,["until"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@status","&attrs","@showDescription"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-status-message.js",scope:()=>[a.default,r.default],isStrictMode:!0}),this))()}},66168:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(63829),l=i(81133),c=i(50409),u=i(42236),d=i(3539),p=i(843),h=i(53653),m=i(85671);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"isFocused",[n.tracked],function(){return!1}))();#tp=(()=>void dt7948.i(this,"isFocused"))();get emojiHtml(){return(0,c.emojiUnescape)((0,u.escapeExpression)(`:${this.args.status.emoji}:`))}blur(){this.isFocused=!1}static #i=(()=>dt7948.n(this.prototype,"blur",[o.action]))();emojiSelected(e){this.args.status.emoji=e}static #s=(()=>dt7948.n(this.prototype,"emojiSelected",[o.action]))();focus(){this.isFocused=!0}static #l=(()=>dt7948.n(this.prototype,"focus",[o.action]))();updateDescription(e){this.args.status.description=e.target.value,this.args.status.emoji||="speech_balloon"}static #c=(()=>dt7948.n(this.prototype,"updateDescription",[o.action]))();static #u=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"oIDWN1l7",block:'[[[1,"\\n "],[10,0],[14,0,"user-status-picker-wrap"],[12],[1,"\\n "],[10,0],[15,0,[28,[32,0],["emoji-picker-anchor user-status-picker",[52,[30,0,["isFocused"]],"focused"]],null]],[12],[1,"\\n "],[8,[32,1],null,[["@emoji","@didSelectEmoji","@btnClass","@modalForMobile","@context"],[[30,1,["emoji"]],[30,0,["emojiSelected"]],"btn-emoji",false,"user-status"]],null],[1,"\\n\\n "],[11,"input"],[16,2,[30,1,["description"]]],[16,"placeholder",[28,[32,2],["user_status.what_are_you_doing"],null]],[24,"maxlength","100"],[24,0,"user-status-description"],[24,4,"text"],[4,[32,3],["input",[30,0,["updateDescription"]]],null],[4,[32,3],["focus",[30,0,["focus"]]],null],[4,[32,3],["blur",[30,0,["blur"]]],null],[4,[32,4],null,null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@status"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-status-picker.js",scope:()=>[l.default,a.default,p.i18n,r.on,d.default],isStrictMode:!0}),this))()}},219:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(53653),n=i(35533),r=i(53397),o=i(82805),a=i(63748),l=i(16547),c=i(87353),u=i(58339);let d=(0,i(85671).createTemplateFactory)({id:"rdWXVmtu",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["user-stream-item-above",[28,[37,1],null,[["item"],[[30,1]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[28,[37,4],[[30,1,["draft_username"]],[30,1,["username"]]],null]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n "],[8,[39,6],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,"\\n"],[41,[30,1,["postUrl"]],[[[1," "],[10,3],[15,6,[30,1,["postUrl"]]],[12],[1,[28,[35,9],[[30,1,["title"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[30,1,["title"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["draftType"]],[[[1," "],[10,1],[14,0,"draft-type"],[12],[1,[28,[35,11],[[30,1,["draftType"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"user-stream-item__metadata"],[12],[1,"\\n "],[10,1],[14,0,"time"],[12],[1,[28,[35,13],[[30,1,["created_at"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["deleted_by"]],[[[1," "],[10,1],[14,0,"delete-info"],[12],[1,"\\n "],[1,[28,[35,14],["trash-can"],null]],[1,"\\n "],[1,[28,[35,5],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n "],[1,[28,[35,13],[[30,1,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[37,1],null,[["item"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["actionDescription"]],[[[1," "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["actionDescription"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[15,"data-topic-id",[30,1,["topic_id"]]],[15,"data-post-id",[30,1,["post_id"]]],[15,"data-user-id",[30,1,["user_id"]]],[14,0,"excerpt"],[12],[41,[30,1,["expandedExcerpt"]],[[[1,[28,[35,11],[[30,1,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[35,11],[[30,1,["excerpt"]]],null]]],[]]],[13],[1,"\\n\\n"],[42,[28,[37,17],[[28,[37,17],[[30,1,["children"]]],null]],null],null,[[[1," "],[10,0],[14,0,"user-stream-item-actions child-actions"],[12],[1,"\\n "],[1,[28,[35,14],[[30,2,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,2,["items"]]],null]],null],null,[[[1," "],[10,3],[15,6,[30,3,["userUrl"]]],[15,"data-user-card",[30,3,["username"]]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[35,5],[[30,3]],[["imageSize","extraClasses","ignoreTitle","avatarTemplatePath"],["tiny","actor","true","acting_avatar_template"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,3,["edit_reason"]],[[[1," —\\n "],[10,1],[14,0,"edit-reason"],[12],[1,[30,3,["edit_reason"]]],[13]],[]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,1,["editableDraft"]],[[[1," "],[10,0],[14,0,"user-stream-item-draft-actions"],[12],[1,"\\n "],[8,[39,18],[[24,0,"btn-default resume-draft"]],[["@action","@icon","@label"],[[28,[37,19],[[30,4],[30,1]],null],"pencil","drafts.resume"]],null],[1,"\\n "],[8,[39,18],[[24,0,"btn-danger remove-draft"]],[["@action","@icon","@title"],[[28,[37,19],[[30,5],[30,1]],null],"trash-can","drafts.remove"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,6,null]],["@item","child","grandChild","@resumeDraft","@removeDraft","&bottom"],false,["plugin-outlet","hash","div","a","or","avatar","topic-status","span","if","replace-emoji","category-link","html-safe","expand-post","format-date","d-icon","p","each","-track-array","d-button","fn","yield"]]',moduleName:"discourse/components/user-stream-item.hbs",isStrictMode:!1}),p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"moderatorAction",[(0,o.propertyEqual)("item.post_type","site.post_types.moderator_action")]))();#al=(()=>void dt7948.i(this,"moderatorAction"))();static #i=(()=>dt7948.g(this.prototype,"actionDescription",[(0,u.actionDescription)("item.action_code","item.created_at","item.action_code_who","item.action_code_path")]))();#ac=(()=>void dt7948.i(this,"actionDescription"))();constructor(){super(...arguments),(0,l.default)(" component is deprecated. Use or component to render a post list instead.",{since:"3.4.0.beta4",dropFrom:"3.5.0.beta1",id:"discourse.user-stream-item"})}get hidden(){return this.get("item.hidden")&&!(this.currentUser&&this.currentUser.staff)}static #s=(()=>dt7948.n(this.prototype,"hidden",[(0,n.computed)("item.hidden")]))();userUrl(e,t){return(0,c.userPath)((e||t).toLowerCase())}static #l=(()=>dt7948.n(this.prototype,"userUrl",[(0,a.default)("item.draft_username","item.username")]))()},[(0,r.classNameBindings)(":user-stream-item",":item","hidden","item.deleted:deleted","moderatorAction"),(0,r.tagName)("li")]),h=(0,s.setComponentTemplate)(d,p)},74195:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>E});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(31049),l=i(62053),c=i(83133),u=i(68587),d=i(25124),p=i.n(d),h=i(98740),m=i(42637),g=i(19419),f=i(70349),_=i(81133),y=i(72738),b=i(88355),w=i(7294),k=i(87353),T=i(69320),S=i(89277),C=i(843),x=i(53653),A=i(85671);class E extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[c.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"composer",[c.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #s=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"router",[c.service]))();#N=(()=>void dt7948.i(this,"router"))();static #u=(()=>dt7948.g(this.prototype,"lastDecoratedElement",[n.tracked]))();#au=(()=>void dt7948.i(this,"lastDecoratedElement"))();eventListeners=(()=>(0,u.modifier)(e=>(p()(e).on("click.details-disabled","details.disabled",()=>!1),p()(e).on("click.discourse-redirect",".excerpt a",e=>w.default.trackClick(e,(0,a.getOwner)(this))),(0,l.later)(()=>{this.updateLastDecoratedElement(),this.appEvents.trigger("decorate-non-stream-cooked-element",e)}),()=>{p()(e).off("click.details-disabled","details.disabled"),p()(e).off("click.discourse-redirect",".excerpt a")})))();constructor(){super(...arguments)}get filterClassName(){let e=this.args.stream?.filter;if(e)return`filter-${e.toString().replace(",","-")}`}get usernamePath(){return"userActivity.drafts"===this.router.currentRouteName?"draft_username":"username"}updateLastDecoratedElement(){let e=document.querySelectorAll(".user-stream-item");if(!e||0===e.length)return;let t=e[e.length-1];t!==this.lastDecoratedElement&&(this.lastDecoratedElement=t)}static #d=(()=>dt7948.n(this.prototype,"updateLastDecoratedElement",[o.action]))();async removeBookmark(e){try{await S.default.updateBookmark(e.get("post_id"),!1),this.args.stream.remove(e)}catch(e){(0,b.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"removeBookmark",[o.action]))();async resumeDraft(e){if(this.composer.get("model.viewOpen")&&this.composer.close(),e.get("postUrl"))k.default.routeTo(e.get("postUrl"));else try{let t=await T.default.get(e.draft_key),i=t.draft||e.data;if(!i)return;this.composer.open({draft:i,draftKey:e.draft_key,draftSequence:t.draft_sequence})}catch(e){(0,b.popupAjaxError)(e)}}static #h=(()=>dt7948.n(this.prototype,"resumeDraft",[o.action]))();removeDraft(e){this.dialog.yesNoConfirm({message:(0,C.i18n)("drafts.remove_confirmation"),didConfirm:async()=>{try{await T.default.clear(e.draft_key,e.sequence),this.args.stream.remove(e)}catch(e){(0,b.popupAjaxError)(e)}}})}static #m=(()=>dt7948.n(this.prototype,"removeDraft",[o.action]))();async loadMore(){return(await this.args.stream.findItems(),!1===this.args.stream.canLoadMore)?[]:((0,l.later)(()=>{let e=this.lastDecoratedElement?.nextElementSibling;for(;e;)this.appEvents.trigger("user-stream:new-item-inserted",e),this.appEvents.trigger("decorate-non-stream-cooked-element",e),e=e.nextElementSibling;this.updateLastDecoratedElement()}),this.args.stream.content)}static #g=(()=>dt7948.n(this.prototype,"loadMore",[o.action]))();static #A=(()=>(0,x.setComponentTemplate)((0,A.createTemplateFactory)({id:"s4R8qQbI",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["user-stream",[30,0,["filterClassName"]]],null]],[4,[30,0,["eventListeners"]],[[30,1]],null]],[["@posts","@idPath","@urlPath","@usernamePath","@fetchMorePosts","@titlePath","@additionalItemClasses","@showUserInfo","@resumeDraft","@removeDraft"],[[30,1,["content"]],"post_id","postUrl",[30,0,["usernamePath"]],[30,0,["loadMore"]],"titleHtml","user-stream-item",false,[30,0,["resumeDraft"]],[30,0,["removeDraft"]]]],[["abovePostItemHeader","belowPostItemMetaData","abovePostItemExcerpt","belowPostItem"],[[[[1,"\\n "],[8,[32,2],null,[["@name","@outletArgs"],["user-stream-item-above",[28,[32,3],null,[["item"],[[30,2]]]]]],null],[1,"\\n "]],[2]],[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[32,3],null,[["item"],[[30,3]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[3]],[[[1,"\\n "],[8,[32,4],null,[["@actionCode","@createdAt","@username","@path"],[[30,4,["action_code"]],[30,4,["created_at"]],[30,4,["action_code_who"]],[30,4,["action_code_path"]]]],null],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,4,["children"]]],null]],null],null,[[[1," "],[10,0],[14,0,"user-stream-item-actions"],[12],[1,"\\n "],[1,[28,[32,5],[[30,5,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,5,["items"]]],null]],null],null,[[[1," "],[10,3],[15,6,[30,6,["userUrl"]]],[15,"data-user-card",[30,6,["username"]]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[32,6],[[30,6]],[["imageSize","extraClasses","ignoreTitle","avatarTemplatePath"],["tiny","actor","true","acting_avatar_template"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,6,["edit_reason"]],[[[1," —\\n "],[10,1],[14,0,"edit-reason"],[12],[1,[30,6,["edit_reason"]]],[13],[1,"\\n"]],[]],null]],[6]],null],[1," "],[13],[1,"\\n"]],[5]],null],[1," "]],[4]],[[[1,"\\n "],[18,8,[[30,7]]],[1,"\\n "]],[7]]]]],[1,"\\n "]],["@stream","post","post","post","child","grandChild","post","&bottom"],false,["each","-track-array","if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-stream.js",scope:()=>[g.default,_.default,h.default,r.hash,m.default,y.default,f.default],isStrictMode:!0}),this))()}},99930:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"flfRzyWe",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@route","@query"],["full-page-search",[28,[37,2],null,[["q"],[[30,0,["searchParams"]]]]]]],[["default"],[[[[1,"\\n "],[1,[30,1]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," –\\n"]],[]]]],["@count"],false,["if","link-to","hash"]]',moduleName:"discourse/components/user-summary-category-search.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{searchParams(){let e=`@${this.get("user.username")} #${this.get("category.slug")}`;return this.searchOnlyFirstPosts&&(e+=" in:first"),e}static #e=(()=>dt7948.n(this.prototype,"searchParams",[(0,r.default)("user","category")]))()},[(0,n.tagName)("")]),l=(0,s.setComponentTemplate)(o,a)},93793:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(843),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"jqFJC3+O",block:'[[[1,"\\n "],[11,0],[24,0,"top-sub-section"],[17,1],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[32,0],[[28,[32,1],["user.summary.",[30,2]],null]],null]],[13],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@title","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-summary-section.js",scope:()=>[n.i18n,s.concat],isStrictMode:!0}),(0,a.default)(void 0,"user-summary-section:UserSummarySection"))},54740:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"C8ZkVjS9",block:'[[[10,1],[14,0,"topic-info"],[12],[1,"\\n "],[1,[28,[35,1],[[30,1]],[["format","noTitle"],["tiny","true"]]]],[1,"\\n"],[41,[30,2],[[[1," ·\\n "],[1,[28,[35,3],["heart"],null]],[1," "],[10,1],[14,0,"like-count"],[12],[1,[28,[35,4],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,"br"],[12],[13],[1,"\\n"],[10,3],[15,6,[30,3]],[12],[1,[28,[35,7],[[30,4,["fancyTitle"]]],null]],[13]],["@createdAt","@likes","@url","@topic"],false,["span","format-date","if","d-icon","number","br","a","html-safe"]]',moduleName:"discourse/components/user-summary-topic.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.tagName)("li")]),a=(0,s.setComponentTemplate)(r,o)},86650:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(53397),r=i(63748);let o=(0,i(85671).createTemplateFactory)({id:"mmhVXHVH",block:'[[[41,[30,1],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1," "],[18,5,[[30,2]]],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["hasMore"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],[[24,0,"more"]],[["@route","@model"],[[28,[37,7],["userActivity.",[30,3]],null],[30,4]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,7],["user.summary.more_",[30,3]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,2],[12],[1,[28,[35,8],[[28,[37,7],["user.summary.no_",[30,3]],null]],null]],[13],[1,"\\n"]],[]]]],["@items","item","@type","@user","&default"],false,["if","ul","each","-track-array","yield","p","link-to","concat","i18n"]]',moduleName:"discourse/components/user-summary-topics-list.hbs",isStrictMode:!1}),a=dt7948.c(class extends s.default{hasMore(e){return e>=6}static #e=(()=>dt7948.n(this.prototype,"hasMore",[(0,r.default)("items.length")]))()},[(0,n.tagName)("")]),l=(0,s.setComponentTemplate)(o,a)},67083:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(53653),n=i(53397);let r=(0,i(85671).createTemplateFactory)({id:"cKcl9xqX",block:'[[[8,[39,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n "],[10,1],[15,0,[30,3]],[12],[1,[28,[35,3],[[30,1,["count"]]],null]],[13],[1,"\\n"]],[]]]]]],["@user","@icon","@countClass"],false,["user-info","d-icon","span","number"]]',moduleName:"discourse/components/user-summary-user.hbs",isStrictMode:!1}),o=dt7948.c(class extends s.default{},[(0,n.tagName)("li")]),a=(0,s.setComponentTemplate)(r,o)},92453:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53653);let n=(0,i(85671).createTemplateFactory)({id:"DbNSM1lZ",block:'[[[41,[30,0,["users"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["users"]]],null]],null],null,[[[1," "],[18,2,[[30,1]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],[[28,[37,7],["user.summary.",[30,0,["none"]]],null]],null]],[13],[1,"\\n"]],[]]]],["user","&default"],false,["if","ul","each","-track-array","yield","p","i18n","concat"]]',moduleName:"discourse/components/user-summary-users-list.hbs",isStrictMode:!1});class r extends s.default{}(0,s.setComponentTemplate)(n,r)},36072:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(99615),r=i(35533),o=i(83133),a=i(42256),l=i(18638),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"userTips",[o.service]))();#ad=(()=>void dt7948.i(this,"userTips"))();get safeHtmlContent(){return(0,a.htmlSafe)(this.args.data.contentHtml)}get showSkipButton(){return this.args.data.showSkipButton}handleDismiss(e,t){t.preventDefault(),this.args.close(),this.userTips.hideUserTipForever(this.args.data.id)}static #i=(()=>dt7948.n(this.prototype,"handleDismiss",[r.action]))();handleSkip(e,t){t.preventDefault(),this.args.close(),this.userTips.skipTips()}static #s=(()=>dt7948.n(this.prototype,"handleSkip",[r.action]))();onClick(e){"A"===e.target.nodeName&&this.args.close()}static #l=(()=>dt7948.n(this.prototype,"onClick",[r.action]))();static #c=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"L+Hs1ZMu",block:'[[[1,"\\n "],[10,0],[14,0,"user-tip__container"],[12],[1,"\\n "],[10,0],[14,0,"user-tip__title"],[12],[1,[30,1,["titleText"]]],[13],[1,"\\n"],[1," "],[11,0],[24,0,"user-tip__content"],[4,[32,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n"],[41,[30,1,["contentHtml"]],[[[1," "],[1,[30,0,["safeHtmlContent"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["contentText"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"user-tip__buttons"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-primary"]],[["@translatedLabel","@action","@forwardEvent"],[[30,1,["buttonText"]],[30,0,["handleDismiss"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showSkipButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat btn-text"]],[["@translatedLabel","@action","@forwardEvent"],[[30,1,["buttonSkipText"]],[30,0,["handleSkip"]],true]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@data"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip-container.js",scope:()=>[n.on,l.default],isStrictMode:!0}),this))()}},17282:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(31049),r=i(62053),o=i(83133),a=i(68587),l=i(36072),c=i(96941),u=i(84457),d=i(51429),p=i(843),h=i(47477),m=i(53653),g=i(85671);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"userTips",[o.service]))();#ad=(()=>void dt7948.i(this,"userTips"))();static #s=(()=>dt7948.g(this.prototype,"tooltip",[o.service]))();#ap=(()=>void dt7948.i(this,"tooltip"))();registerTip=(()=>(0,c.default)((e,t)=>{let i={id:this.args.id,priority:this.args.priority??0};this.userTips.addAvailableTip(i),t.cleanup(()=>{this.userTips.removeAvailableTip(i)})}))();tip=(()=>(0,a.modifier)(e=>{let t;return(0,r.schedule)("afterRender",()=>{let i=this.args.triggerSelector&&document.querySelector(this.args.triggerSelector),s=(0,u.default)((0,p.i18n)(this.args.buttonLabel||"user_tips.button"));this.args.buttonIcon&&(s=`${(0,d.iconHTML)(this.args.buttonIcon)} ${s}`),(t=new h.default((0,n.getOwner)(this),{identifier:"user-tip",interactive:!0,closeOnScroll:!1,closeOnClickOutside:!0,placement:this.args.placement,component:l.default,data:{id:this.args.id,titleText:(0,u.default)(this.args.titleText),contentHtml:this.args.contentHtml||null,contentText:this.args.contentText?(0,u.default)(this.args.contentText):null,buttonText:s,buttonSkipText:(0,p.i18n)("user_tips.skip"),showSkipButton:this.args.showSkipButton}})).trigger=i||e,t.detachedTrigger=!0,this.tooltip.show(t),this.shouldRenderTip&&this.userTips.markAsSeen(this.args.id)}),()=>{t?.destroy()}}))();get shouldRenderTip(){return this.userTips.shouldRender(this.args.id)}static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"/kvuteim",block:'[[[1,"\\n "],[1,[30,0,["registerTip"]]],[1,"\\n"],[41,[30,0,["shouldRenderTip"]],[[[1," "],[11,1],[4,[30,0,["tip"]],null,null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip.js",isStrictMode:!0}),this))()}},24291:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(80989),n=i(8554),r=i(53653),o=i(99615),a=i(35533),l=i(30574),c=i(83133),u=i(42256),d=i(75983),p=i(18638),h=i(38108),m=i(88355),g=i(82805),f=i(87353),_=i(59864),y=i(843),b=i(85671);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[c.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"editing",[n.tracked],function(){return!1}))();#ah=(()=>void dt7948.i(this,"editing"))();static #l=(()=>dt7948.g(this.prototype,"newUsername",[n.tracked],function(){return this.args.user.username}))();#am=(()=>void dt7948.i(this,"newUsername"))();static #c=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked],function(){return null}))();#eU=(()=>void dt7948.i(this,"errorMessage"))();static #u=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"saving"))();static #d=(()=>dt7948.g(this.prototype,"taken",[n.tracked],function(){return!1}))();#ag=(()=>void dt7948.i(this,"taken"))();static #p=(()=>dt7948.g(this.prototype,"maxLength",[(0,g.setting)("max_username_length")]))();#af=(()=>void dt7948.i(this,"maxLength"))();static #h=(()=>dt7948.g(this.prototype,"minLength",[(0,g.setting)("min_username_length")]))();#a_=(()=>void dt7948.i(this,"minLength"))();static #m=(()=>dt7948.g(this.prototype,"newUsernameEmpty",[(0,l.empty)("newUsername")]))();#ay=(()=>void dt7948.i(this,"newUsernameEmpty"))();static #g=(()=>dt7948.g(this.prototype,"saveDisabled",[(0,l.or)("saving","newUsernameEmpty","taken","unchanged","errorMessage")]))();#sr=(()=>void dt7948.i(this,"saveDisabled"))();get unchanged(){return this.newUsername===this.args.user.username}get saveButtonText(){return this.saving?(0,y.i18n)("saving"):(0,y.i18n)("user.change")}toggleEditing(){this.editing=!this.editing,this.newUsername=this.args.user.username,this.errorMessage=null,this.saving=!1,this.taken=!1}static #A=(()=>dt7948.n(this.prototype,"toggleEditing",[a.action]))();async onInput(e){if(this.newUsername=e.target.value,this.taken=!1,this.errorMessage=null,(0,d.isEmpty)(this.newUsername)||this.newUsername===this.args.user.username)return;if(this.newUsername.lengthdt7948.n(this.prototype,"onInput",[a.action]))();changeUsername(){return this.dialog.yesNoConfirm({title:(0,y.i18n)("user.change_username.confirm"),didConfirm:async()=>{this.saving=!0;try{await this.args.user.changeUsername(this.newUsername),f.default.redirectTo((0,f.userPath)(this.newUsername.toLowerCase()+"/preferences"))}catch(e){(0,m.popupAjaxError)(e)}finally{this.saving=!1}}})}static #D=(()=>dt7948.n(this.prototype,"changeUsername",[a.action]))();static #P=(()=>(0,r.setComponentTemplate)((0,b.createTemplateFactory)({id:"9zbTTCcI",block:'[[[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,0],[[16,"maxlength",[30,0,["maxLength"]]],[24,0,"input-xxlarge username-preference__input"],[4,[32,1],["input",[30,0,["onInput"]]],null]],[["@value"],[[30,0,["newUsername"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1," "],[1,[28,[32,2],["user.change_username.taken"],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-primary username-preference__submit"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[30,0,["changeUsername"]],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n\\n "],[8,[32,4],null,[["@close"],[[30,0,["toggleEditing"]]]],null],[1,"\\n\\n "],[41,[30,0,["saved"]],[[[1,[28,[32,2],["saved"],null]]],[]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,1],[14,0,"static username-preference__current-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n\\n"],[41,[30,1,["can_edit_username"]],[[[1," "],[8,[32,3],[[24,0,"btn-default btn-small username-preference__edit-username"]],[["@action","@icon","@title"],[[30,0,["toggleEditing"]],"pencil","user.username.edit"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,5],[[28,[32,2],["user.username.short_instructions"],[["username"],[[30,1,["username"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/username-preference.js",scope:()=>[r.Input,o.on,y.i18n,p.default,h.default,u.htmlSafe],isStrictMode:!0}),this))()}},12299:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(83133),r=i(6864),o=i(63748),a=i(79266),l=i(87353);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){if(super(...arguments),!this.currentUser||this.currentUser.read_faq)return;this._checkIfRead(),window.addEventListener("resize",this._checkIfRead,!1),window.addEventListener("scroll",this._checkIfRead,!1)}willDestroy(){super.willDestroy(...arguments),window.removeEventListener("resize",this._checkIfRead),window.removeEventListener("scroll",this._checkIfRead)}async _checkIfRead(){let e=document.querySelector("[itemprop='mainContentOfPage'] > *:last-child");(0,a.default)(e)&&(await (0,r.ajax)((0,l.userPath)("read-faq"),{type:"POST"}),this.currentUser.set("read_faq",!0))}static #i=(()=>dt7948.n(this.prototype,"_checkIfRead",[o.bind]))()}},3079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"815VqEfi",block:'[[[1,"\\n "],[11,0],[24,0,"login-welcome-header"],[17,1],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,2]],[13],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@header","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/welcome-header.js",isStrictMode:!0}),(0,r.default)(void 0,"welcome-header:WelcomeHeader"))},51998:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=function(){try{var e="discourse/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),i={default:JSON.parse(decodeURIComponent(t))};return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(t){throw Error('Could not read config from meta tag with name "'+e+'".')}}().default},82275:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(30574);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"faqOverridden",[(0,n.gt)("siteSettings.faq_url.length",0)]))();#ab=(()=>void dt7948.i(this,"faqOverridden"))();static #i=(()=>dt7948.g(this.prototype,"renameFaqToGuidelines",[(0,n.alias)("siteSettings.experimental_rename_faq_to_guidelines")]))();#av=(()=>void dt7948.i(this,"renameFaqToGuidelines"))()}},35768:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(83133),o=i(88355),a=i(63748),l=i(56294);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();accountCreated;newEmail;submitDisabled(e,t){return e===t}static #i=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,a.default)("newEmail","accountCreated.email")]))();updateNewEmail(e){this.set("newEmail",e)}static #s=(()=>dt7948.n(this.prototype,"updateNewEmail",[n.action]))();async changeEmail(){try{await (0,l.changeEmail)({email:this.newEmail}),this.set("accountCreated.email",this.newEmail),this.router.transitionTo("account-created.resent")}catch(e){(0,o.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"changeEmail",[n.action]))();cancel(){this.router.transitionTo("account-created.index")}static #c=(()=>dt7948.n(this.prototype,"cancel",[n.action]))()}},49793:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(83133),o=i(63748),a=i(56294),l=i(843);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();welcomeTitle(){return(0,l.i18n)("invites.welcome_to",{site_name:this.siteSettings.title})}static #i=(()=>dt7948.n(this.prototype,"welcomeTitle",[o.default]))();sendActivationEmail(){(0,a.resendActivationEmail)(this.get("accountCreated.username")).then(()=>{this.router.transitionTo("account-created.resent")})}static #s=(()=>dt7948.n(this.prototype,"sendActivationEmail",[n.action]))();editActivationEmail(){this.router.transitionTo("account-created.edit-email")}static #l=(()=>dt7948.n(this.prototype,"editActivationEmail",[n.action]))()}},47452:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(28418),n=i(35533),r=i(83133),o=i(14335),a=i(46301),l=i(63748),c=i(16547),u=i(77093);let d="sidebar-hidden";class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"footer",[r.service]))();#aw=(()=>void dt7948.i(this,"footer"))();static #s=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tA=(()=>void dt7948.i(this,"header"))();static #l=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();queryParams=[{navigationMenuQueryParamOverride:"navigation_menu"}];showTop=!0;showSidebar=this.calculateShowSidebar();sidebarDisabledRouteOverride=!1;navigationMenuQueryParamOverride=null;showSiteHeader=!0;showSkipToContent=!0;get showFooter(){return this.footer.showFooter}set showFooter(e){(0,c.default)("showFooter state is now stored in the `footer` service, and should be controlled by adding the {{hide-application-footer}} helper to an Ember template.",{id:"discourse.application-show-footer"}),this.footer.showFooter=e}get showPoweredBy(){return this.showFooter&&this.siteSettings.enable_powered_by_discourse}canSignUp(){return!this.siteSettings.invite_only&&this.siteSettings.allow_new_registrations&&!this.siteSettings.enable_discourse_connect}static #c=(()=>dt7948.n(this.prototype,"canSignUp",[l.default]))();canDisplaySidebar(){return this.currentUser||!this.siteSettings.login_required}static #u=(()=>dt7948.n(this.prototype,"canDisplaySidebar",[l.default]))();loginRequired(){return this.siteSettings.login_required&&!this.currentUser}static #d=(()=>dt7948.n(this.prototype,"loginRequired",[l.default]))();showFooterNav(){return this.capabilities.isAppWebview||this.capabilities.isiOSPWA}static #p=(()=>dt7948.n(this.prototype,"showFooterNav",[l.default]))();_mainOutletAnimate(){document.body.classList.remove("sidebar-animate")}get sidebarEnabled(){return!!this.canDisplaySidebar&&!this.sidebarState.sidebarHidden&&!this.sidebarDisabledRouteOverride&&("sidebar"===this.navigationMenuQueryParamOverride||"header_dropdown"!==this.navigationMenuQueryParamOverride&&!this.site.mobileView&&(!!this.sidebarState.isForcingAdminSidebar&&!!this.sidebarState.currentUserUsingAdminSidebar||"sidebar"===this.siteSettings.navigation_menu))}calculateShowSidebar(){return this.canDisplaySidebar&&!this.keyValueStore.getItem(d)&&!this.site.narrowDesktopView}toggleSidebar(){document.body.classList.add("sidebar-animate"),(0,a.default)(this,this._mainOutletAnimate,250),this.toggleProperty("showSidebar"),this.site.desktopView&&(this.showSidebar?this.keyValueStore.removeItem(d):this.keyValueStore.setItem(d,"true"))}static #h=(()=>dt7948.n(this.prototype,"toggleSidebar",[n.action]))();trackDiscoursePainted(){(0,u.isTesting)()||(0,o.default)(()=>{performance.mark("discourse-paint");try{performance.measure("discourse-init-to-paint","discourse-init","discourse-paint")}catch(e){console.warn("Failed to measure init-to-paint",e)}})}static #m=(()=>dt7948.n(this.prototype,"trackDiscoursePainted",[n.action]))()}},40131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(63748);function r(e){let t=e.get("badge_grouping.position"),i=e.get("badge_type_id"),s=e.get("name");return("000"+t).slice(-4)+(10-i)+s}class o extends s.default{badgeGroups(e){let t,i=e.sort((e,t)=>r(e).localeCompare(r(t))),s=[],n=[];return i.forEach(function(e){t!==e.badge_grouping_id&&(n&&n.length>0&&s.push({badges:n,badgeGrouping:n[0].badge_grouping}),n=[],t=e.badge_grouping_id),n.push(e)}),n&&n.length>0&&s.push({badges:n,badgeGrouping:n[0].badge_grouping}),s}static #e=(()=>dt7948.n(this.prototype,"badgeGroups",[(0,n.default)("model")]))()}},31890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(63748),o=i(12336),a=i(65258),l=i(843);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();queryParams=["username"];noMoreBadges=!1;userBadges=null;hiddenSetTitle=!0;filteredList(e){return e.filterBy("badge.allow_title",!0)}static #i=(()=>dt7948.n(this.prototype,"filteredList",[(0,r.default)("userBadgesAll")]))();selectableUserBadges(e){return[n.default.create({id:0,badge:o.default.create({name:(0,l.i18n)("badges.none")})}),...e.uniqBy("badge.name")]}static #s=(()=>dt7948.n(this.prototype,"selectableUserBadges",[(0,r.default)("filteredList")]))();user(e){if(e)return this.userBadges[0].get("user")}static #l=(()=>dt7948.n(this.prototype,"user",[(0,r.default)("username")]))();grantCount(e,t,i){return e?i:t}static #c=(()=>dt7948.n(this.prototype,"grantCount",[(0,r.default)("username","model.grant_count","userBadges.grant_count")]))();othersCount(e,t){return e-t}static #u=(()=>dt7948.n(this.prototype,"othersCount",[(0,r.default)("model.grant_count","userBadges.grant_count")]))();canSelectTitle(e,t){return this.siteSettings.enable_badges&&e&&t}static #d=(()=>dt7948.n(this.prototype,"canSelectTitle",[(0,r.default)("model.allow_title","model.has_badge","model")]))();canLoadMore(e,t,i){return!e&&t>(i||0)}static #p=(()=>dt7948.n(this.prototype,"canLoadMore",[(0,r.default)("noMoreBadges","grantCount","userBadges.length")]))();canShowOthers(e,t){return!!e&&t>1}static #h=(()=>dt7948.n(this.prototype,"canShowOthers",[(0,r.default)("user","model.grant_count")]))();loadMore(){if(!this.canLoadMore||this.loadingMore)return;this.set("loadingMore",!0);let e=this.userBadges;a.default.findByBadgeId(this.get("model.id"),{offset:e.length,username:this.username}).then(t=>{e.pushObjects(t),0===e.length&&this.set("noMoreBadges",!0)}).finally(()=>{this.set("loadingMore",!1)})}static #m=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();toggleSetUserTitle(){return this.toggleProperty("hiddenSetTitle")}static #g=(()=>dt7948.n(this.prototype,"toggleSetUserTitle",[n.action]))()}},8434:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addComposerSaveErrorCallback:()=>r.addComposerSaveErrorCallback,addPopupMenuOption:()=>s.addPopupMenuOption,clearComposerSaveErrorCallback:()=>r.clearComposerSaveErrorCallback,clearPopupMenuOptions:()=>s.clearPopupMenuOptions,clearPopupMenuOptionsCallback:()=>a,default:()=>o,toggleCheckDraftPopup:()=>r.toggleCheckDraftPopup});var s=i(91672),n=i(16547),r=i(24519);let o=r.default;function a(){(0,n.default)("`clearPopupMenuOptionsCallback` is deprecated without replacement as the cleanup is handled automatically.",{id:"discourse.composer-controller.clear-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),(0,s.clearPopupMenuOptions)()}},35100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(6864),l=i(88355),c=i(843);class u extends n.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"loading",[s.tracked]))();#T=(()=>void dt7948.i(this,"loading"))();async confirm(){this.loading=!0;try{await (0,a.ajax)(`/u/confirm-new-email/${this.model.token}.json`,{type:"PUT"})}catch(t){let e=t.jqXHR?.responseJSON?.second_factor_challenge_nonce;e?this.router.transitionTo("second-factor-auth",{queryParams:{nonce:e}}):(0,l.popupAjaxError)(t);return}finally{this.loading=!1}await new Promise(e=>this.dialog.dialog({message:(0,c.i18n)("user.change_email.confirm_success"),type:"alert",didConfirm:e})),this.router.transitionTo("/my/preferences/account")}static #l=(()=>dt7948.n(this.prototype,"confirm",[r.action]))()}},25243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(6864),l=i(88355),c=i(843);class u extends n.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"loading",[s.tracked]))();#T=(()=>void dt7948.i(this,"loading"))();async confirm(){this.loading=!0;try{await (0,a.ajax)(`/u/confirm-old-email/${this.model.token}.json`,{type:"PUT"})}catch(e){(0,l.popupAjaxError)(e);return}finally{this.loading=!1}await new Promise(e=>this.dialog.dialog({message:(0,c.i18n)("user.change_email.authorizing_old.confirm_success"),type:"alert",didConfirm:e})),this.router.transitionTo("/my/preferences/account")}static #l=(()=>dt7948.n(this.prototype,"confirm",[r.action]))()}},40515:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(63748);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #s=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.reads)("currentUser.staff")]))();#tj=(()=>void dt7948.i(this,"canEdit"))();isCategoriesRoute(){return"discovery.categories"===this.router.currentRouteName}static #l=(()=>dt7948.n(this.prototype,"isCategoriesRoute",[a.default]))();showInserted(e){e?.preventDefault();let t=this.topicTrackingState;this.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()}static #c=(()=>dt7948.n(this.prototype,"showInserted",[n.action]))();createTopic(){this.composer.openNewTopic()}static #u=(()=>dt7948.n(this.prototype,"createTopic",[n.action]))();refresh(){this.send("triggerRefresh")}static #d=(()=>dt7948.n(this.prototype,"refresh",[n.action]))()}},72637:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(8554),n=i(28418),r=i(35533),o=i(58112);let a=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"q",[s.tracked],function(){return""}))();#aT=(()=>void dt7948.i(this,"q"))();queryParams=["q"];bulkSelectHelper=(()=>new o.default(this))();get canBulkSelect(){return this.currentUser?.canManageTopic}updateTopicsListQueryParams(e){this.q=e}static #i=(()=>dt7948.n(this.prototype,"updateTopicsListQueryParams",[r.action]))()}},54527:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addDiscoveryQueryParam:()=>g,default:()=>f,queryParams:()=>h,resetParams:()=>m});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(71128),l=i(58112),c=i(58302),u=i(73868),d=i(20144),p=i(19268);let h={order:{replace:!0,refreshModel:!0},ascending:{replace:!0,refreshModel:!0,default:!1},status:{replace:!0,refreshModel:!0},state:{replace:!0,refreshModel:!0},search:{replace:!0,refreshModel:!0},max_posts:{replace:!0,refreshModel:!0},min_posts:{replace:!0,refreshModel:!0},q:{replace:!0,refreshModel:!0},before:{replace:!0,refreshModel:!0},bumped_before:{replace:!0,refreshModel:!0},f:{replace:!0,refreshModel:!0},subset:{replace:!0,refreshModel:!0},period:{replace:!0,refreshModel:!0},topic_ids:{replace:!0,refreshModel:!0},group_name:{replace:!0,refreshModel:!0},tags:{replace:!0,refreshModel:!0},match_all_tags:{replace:!0,refreshModel:!0},no_subcategories:{replace:!0,refreshModel:!0},no_tags:{replace:!0,refreshModel:!0},exclude_tag:{replace:!0,refreshModel:!0}};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let[t,i]of Object.entries(h))e.includes(t)||this.controller.set(t,i.default)}function g(e,t){h[e]=t}let f=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #u=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();static #d=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #p=(()=>dt7948.g(this.prototype,"model",[s.tracked]))();#aS=(()=>void dt7948.i(this,"model"))();queryParams=(()=>Object.keys(h))();bulkSelectHelper=(()=>new l.default(this))();constructor(){for(let[e,t]of(super(...arguments),Object.entries(h)))(0,d.defineTrackedProperty)(this,e,t.default)}get canBulkSelect(){return this.currentUser?.canManageTopic||this.showDismissRead||this.showResetNew}get showDismissRead(){return"unread"===(0,c.filterTypeForMode)(this.model.list?.filter)&&this.model.list.get("topics.length")>0}get showResetNew(){return"new"===(0,c.filterTypeForMode)(this.model.list?.filter)&&this.model.list?.get("topics.length")>0}get createTopicTargetCategory(){let{category:e}=this.model;return e?.canCreateTopic?e:this.siteSettings.default_subcategory_on_read_only_category?e?.subcategoryWithCreateTopicPermission:void 0}get createTopicDisabled(){return this.model.category&&!this.createTopicTargetCategory}get resolvedAscending(){return(this.ascending??this.model.list.get("params.ascending"))==="true"}get resolvedOrder(){return this.order??this.model.list.get("params.order")??"activity"}async callResetNew(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter),n=this.bulkSelectHelper.selected.map(e=>e.id),r=await p.default.resetNew(this.model.category,!this.model.noSubcategories,{tracked:s,tag:this.model.tag,topicIds:n,dismissPosts:e,dismissTopics:t,untrack:i});r.topic_ids&&this.topicTrackingState.removeTopics(r.topic_ids),this.router.refresh()}resetNew(){if(!this.currentUser.new_new_view_enabled)return this.callResetNew();this.modal.show(a.default,{model:{selectedTopics:this.bulkSelectHelper.selected,subset:this.model.listParams?.subset,dismissCallback:e=>{let{dismissPosts:t,dismissTopics:i,untrack:s}=e;this.callResetNew(t,i,s)}}})}static #h=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();createTopic(){this.composer.openNewTopic({category:this.createTopicTargetCategory,tags:[this.model.tag?.id,...this.model.additionalTags??[]].filter(Boolean).reject(e=>["none","all"].includes(e)).join(",")})}static #m=(()=>dt7948.n(this.prototype,"createTopic",[r.action]))();changePeriod(e){this.period=e}static #g=(()=>dt7948.n(this.prototype,"changePeriod",[r.action]))();changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}static #A=(()=>dt7948.n(this.prototype,"changeSort",[r.action]))();changeNewListSubset(e){this.subset=e,this.model.list.updateNewListSubsetParam(e)}static #E=(()=>dt7948.n(this.prototype,"changeNewListSubset",[r.action]))();toggleTagInfo(){this.toggleProperty("showTagInfo")}static #D=(()=>dt7948.n(this.prototype,"toggleTagInfo",[r.action]))();dismissRead(e){this.bulkSelectHelper.dismissRead(e?"topics":"posts",{categoryId:this.model.category?.id,tagName:this.model.tag?.id,includeSubcategories:!this.model.noSubcategories})}static #P=(()=>dt7948.n(this.prototype,"dismissRead",[r.action]))()},[u.disableImplicitInjections])},37558:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(94480),l=i(88355),c=i(63748),u=i(23777),d=i(87353),p=i(1559),h=i(54761),m=i(843);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #s=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();selectedTab="general";saving=!1;deleting=!1;panels=[];showTooltip=!1;createdCategory=!1;expandedMenu=!1;parentParams=null;validators=[];static #l=(()=>dt7948.g(this.prototype,"showDeleteReason",[(0,r.and)("showTooltip","model.cannot_delete_reason")]))();#aC=(()=>void dt7948.i(this,"showDeleteReason"))();disabled(e,t,i,s){return!!e||!!s||!t||!i}static #c=(()=>dt7948.n(this.prototype,"disabled",[(0,c.default)("saving","model.name","model.color","deleting")]))();deleteDisabled(e,t){return t||e||!1}static #u=(()=>dt7948.n(this.prototype,"deleteDisabled",[(0,c.default)("saving","deleting")]))();categoryName(e){return(e=e||"").trim().length>0?e:(0,m.i18n)("preview")}static #d=(()=>dt7948.n(this.prototype,"categoryName",[(0,c.default)("name")]))();saveLabel(e,t){return e?"saving":t?"category.save":"category.create"}static #p=(()=>dt7948.n(this.prototype,"saveLabel",[(0,c.default)("saving","model.id")]))();title(e,t){return e?(0,m.i18n)("category.edit_dialog_title",{categoryName:t}):(0,m.i18n)("category.create")}static #h=(()=>dt7948.n(this.prototype,"title",[(0,c.default)("model.id","model.name")]))();selectedTabTitle(e){return(0,m.i18n)(`category.${(0,a.underscore)(e)}`)}static #m=(()=>dt7948.n(this.prototype,"selectedTabTitle",[(0,c.default)("selectedTab")]))();registerValidator(e){this.validators.push(e)}static #g=(()=>dt7948.n(this.prototype,"registerValidator",[n.action]))();saveCategory(){this.validators.some(e=>e())||(this.set("saving",!0),this.model.save().then(e=>{this.model.id||(this.model.setProperties({slug:e.category.slug,id:e.category.id,can_edit:e.category.can_edit,permission:h.default.FULL,notification_level:u.NotificationLevels.REGULAR}),this.site.updateCategory(this.model),this.router.transitionTo("editCategory",p.default.slugFor(this.model)))}).catch(e=>{(0,l.popupAjaxError)(e),this.model.set("parent_category_id",void 0)}).finally(()=>{this.set("saving",!1)}))}static #A=(()=>dt7948.n(this.prototype,"saveCategory",[n.action]))();deleteCategory(){this.set("deleting",!0),this.dialog.yesNoConfirm({message:(0,m.i18n)("category.delete_confirm"),didConfirm:()=>{this.model.destroy().then(()=>{this.router.transitionTo("discovery.categories")}).catch(()=>{this.displayErrors([(0,m.i18n)("category.delete_error")])}).finally(()=>{this.set("deleting",!1)})},didCancel:()=>this.set("deleting",!1)})}static #E=(()=>dt7948.n(this.prototype,"deleteCategory",[n.action]))();toggleDeleteTooltip(){this.toggleProperty("showTooltip")}static #D=(()=>dt7948.n(this.prototype,"toggleDeleteTooltip",[n.action]))();goBack(){d.default.routeTo(this.model.url)}static #P=(()=>dt7948.n(this.prototype,"goBack",[n.action]))()}},19270:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(28418),n=i(35533),r=i(83133),o=i(6864),a=i(88355),l=i(63748),c=i(94636),u=i(87353),d=i(98988);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();secondFactorMethod;secondFactorToken;lockImageUrl=(()=>(0,c.default)("/images/lock.svg"))();secondFactorRequired(e){return e.security_key_required||e.second_factor_required}static #i=(()=>dt7948.n(this.prototype,"secondFactorRequired",[(0,l.default)("model")]))();async finishLogin(){let e={second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()};this.securityKeyCredential?e.second_factor_token=this.securityKeyCredential:e.second_factor_token=this.secondFactorToken;try{let t=await (0,o.ajax)({url:`/session/email-login/${this.model.token}`,type:"POST",data:e});if(!t.success){this.set("model.error",t.error);return}let i="/",s=new URL(this.router.currentURL,window.location.origin).searchParams.get("safe_mode");if(s){let e=new URLSearchParams;e.set("safe_mode",s),i+=`?${e.toString()}`}u.default.redirectTo(i)}catch(e){(0,a.popupAjaxError)(e)}}static #s=(()=>dt7948.n(this.prototype,"finishLogin",[n.action]))();authenticateSecurityKey(){(0,d.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.set("securityKeyCredential",e),this.send("finishLogin")},e=>{this.set("model.error",e)})}static #l=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[n.action]))()}},46967:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RouteException:()=>d,default:()=>p}),i(8554);var s=i(28418),n=i(35533),r=i(30574),o=i(62053),a=i(63748),l=i(87353),c=i(843);let u=(0,i(38168).A)(i(8554)).cached;class d{status;reason;constructor(e){let{status:t,reason:i,desc:s}=e;this.status=t,this.reason=i,this.desc=s}}class p extends s.default{thrown;lastTransition;static #e=(()=>dt7948.g(this.prototype,"isNotFound",[(0,r.equal)("thrown.status",404)]))();#ax=(()=>void dt7948.i(this,"isNotFound"))();static #i=(()=>dt7948.g(this.prototype,"isForbidden",[(0,r.equal)("thrown.status",403)]))();#aA=(()=>void dt7948.i(this,"isForbidden"))();static #s=(()=>dt7948.g(this.prototype,"isServer",[(0,r.gte)("thrown.status",500)]))();#aE=(()=>void dt7948.i(this,"isServer"))();static #l=(()=>dt7948.g(this.prototype,"isUnknown",[(0,r.none)("isNetwork","isServer")]))();#aD=(()=>void dt7948.i(this,"isUnknown"))();static #c=(()=>dt7948.g(this.prototype,"errorHtml",[(0,r.alias)("thrown.responseJSON.extras.html")]))();#aP=(()=>void dt7948.i(this,"errorHtml"))();networkFixed=!1;loading=!1;static #u=(()=>dt7948.g(this.prototype,"requestUrl",[(0,r.alias)("thrown.requestedUrl")]))();#aM=(()=>void dt7948.i(this,"requestUrl"))();isNetwork(e){return!!e&&0===e.readyState||!!e&&"timeout"===e.jqTextStatus}static #d=(()=>dt7948.n(this.prototype,"isNetwork",[(0,a.default)("thrown")]))();reason(e,t,i){return i.reason?i.reason:e?(0,c.i18n)("errors.reasons.network"):t>=500?(0,c.i18n)("errors.reasons.server"):404===t?(0,c.i18n)("errors.reasons.not_found"):403===t?(0,c.i18n)("errors.reasons.forbidden"):null===i?(0,c.i18n)("errors.reasons.unknown"):(0,c.i18n)("errors.reasons.unknown")}static #p=(()=>dt7948.n(this.prototype,"reason",[(0,a.default)("isNetwork","thrown.status","thrown")]))();desc(e,t,i,s,n){if(n.desc)return n.desc;if(e)return(0,c.i18n)("errors.desc.network_fixed");if(t)return(0,c.i18n)("errors.desc.network");if(404===i)return(0,c.i18n)("errors.desc.not_found");if(403===i)return(0,c.i18n)("errors.desc.forbidden");if(i>=500)return(0,c.i18n)("errors.desc.server",{status:i+" "+s});if(null===n)return(0,c.i18n)("errors.desc.unknown");else return(0,c.i18n)("errors.desc.unknown")}static #h=(()=>dt7948.n(this.prototype,"desc",[(0,a.default)("networkFixed","isNetwork","thrown.status","thrown.statusText","thrown")]))();get buttons(){return{ButtonBackBright:{classes:"btn-primary",action:this.back,key:"errors.buttons.back"},ButtonBackDim:{classes:"",action:this.back,key:"errors.buttons.back"},ButtonTryAgain:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.again",icon:"arrows-rotate"},ButtonLoadPage:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.fixed"}}}static #m=(()=>dt7948.n(this.prototype,"buttons",[u]))();enabledButtons(e,t,i){return e?[this.buttons.ButtonLoadPage]:t?[this.buttons.ButtonBackDim,this.buttons.ButtonTryAgain]:i?[this.buttons.ButtonBackBright,this.buttons.ButtonTryAgain]:[this.buttons.ButtonBackBright]}static #g=(()=>dt7948.n(this.prototype,"enabledButtons",[(0,a.default)("networkFixed","isNetwork","lastTransition")]))();back(){let e=l.default.router.location.getURL();this.lastTransition?.method==="replace"?(this.setProperties({lastTransition:null,thrown:null}),l.default.handleURL(e)):window.history.back()}static #A=(()=>dt7948.n(this.prototype,"back",[n.action]))();tryLoading(){this.set("loading",!0),(0,o.schedule)("afterRender",()=>{let e=this.lastTransition;this.setProperties({lastTransition:null,thrown:null}),e.retry(),this.set("loading",!1)})}static #E=(()=>dt7948.n(this.prototype,"tryLoading",[n.action]))()}},23686:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SEARCH_TYPE_CATS_TAGS:()=>C,SEARCH_TYPE_DEFAULT:()=>S,SEARCH_TYPE_USERS:()=>x,default:()=>D,registerFullPageSearchType:()=>E});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(75983),l=i(42064),c=i(24571),u=i(6864),d=i(58112),p=i(90184),h=i(63748),m=i(77404),g=i(98802),f=i(1799),_=i(98074),y=i(42236),b=i(20924),w=i(1559),k=i(39965),T=i(843);let S="topics_posts",C="categories_tags",x="users",A=[];function E(e,t,i){A.push({translationKey:e,searchTypeId:t,searchFunc:i})}class D extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"searchPreferencesManager",[o.service]))();#aF=(()=>void dt7948.i(this,"searchPreferencesManager"))();static #u=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #d=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();bulkSelectEnabled=null;loading=!1;queryParams=["q","expanded","context_id","context","skip_context","search_type"];q;context_id=null;search_type=(()=>S)();context=null;searching=!1;sortOrder=0;sortOrders=null;invalidSearch=!1;page=1;resultCount=null;searchTypes=null;additionalSearchResults=[];error=null;static #p=(()=>dt7948.g(this.prototype,"hasSelection",[(0,r.gt)("bulkSelectHelper.selected.length",0)]))();#aI=(()=>void dt7948.i(this,"hasSelection"))();static #h=(()=>dt7948.g(this.prototype,"searchButtonDisabled",[(0,r.or)("searching","loading")]))();#aN=(()=>void dt7948.i(this,"searchButtonDisabled"))();_searchOnSortChange=!0;init(){super.init(...arguments),this.set("sortOrder",this.searchPreferencesManager.sortOrder||this.siteSettings.search_default_sort_order);let e=[{name:(0,T.i18n)("search.type.default"),id:S},{name:this.siteSettings.tagging_enabled?(0,T.i18n)("search.type.categories_and_tags"):(0,T.i18n)("search.type.categories"),id:C},{name:(0,T.i18n)("search.type.users"),id:x}];A.forEach(t=>{e.push({name:(0,T.i18n)(t.translationKey),id:t.searchTypeId})}),this.set("searchTypes",e),this.sortOrders=[{name:(0,T.i18n)("search.relevance"),id:0},{name:(0,T.i18n)("search.latest_post"),id:1,term:"order:latest"},{name:(0,T.i18n)("search.most_liked"),id:2,term:"order:likes"},{name:(0,T.i18n)("search.most_viewed"),id:3,term:"order:views"},{name:(0,T.i18n)("search.latest_topic"),id:4,term:"order:latest_topic"}],this.bulkSelectHelper=new d.default(this)}hasResults(e){return(e||0)>0}static #m=(()=>dt7948.n(this.prototype,"hasResults",[(0,h.default)("resultCount")]))();expandFilters(e){return"true"===e}static #g=(()=>dt7948.n(this.prototype,"expandFilters",[(0,h.default)("expanded")]))();hasAutofocus(e){return(0,a.isEmpty)(e)}static #A=(()=>dt7948.n(this.prototype,"hasAutofocus",[(0,h.default)("q")]))();highlightQuery(e){if(e)return e.split(/\s+/).filter(e=>"l"!==e).join(" ")}static #E=(()=>dt7948.n(this.prototype,"highlightQuery",[(0,h.default)("q")]))();get searchContextEnabled(){return!this.skip_context&&this.context||"false"===this.skip_context}static #D=(()=>dt7948.n(this.prototype,"searchContextEnabled",[(0,n.computed)("skip_context","context")]))();set searchContextEnabled(e){this.set("skip_context",!e)}searchContextDescription(e,t){let i=t;if("category"===e){let e=w.default.findById(t);if(!e)return;i=e.get("name")}return(0,g.searchContextDescription)(e,i)}static #P=(()=>dt7948.n(this.prototype,"searchContextDescription",[(0,h.default)("context","context_id")]))();searchActive(e){return(0,g.isValidSearchTerm)(e,this.siteSettings)}static #Q=(()=>dt7948.n(this.prototype,"searchActive",[(0,h.default)("q")]))();noSortQ(e){return e=this.cleanTerm(e),(0,y.escapeExpression)(e)}static #J=(()=>dt7948.n(this.prototype,"noSortQ",[(0,h.default)("q")]))();showSuggestion(e,t){return e||!t}static #X=(()=>dt7948.n(this.prototype,"showSuggestion",[(0,h.default)("canCreateTopic","siteSettings.login_required")]))();setSearchTerm(e){this._searchOnSortChange=!1,e=this.cleanTerm(e),this._searchOnSortChange=!0,this.set("searchTerm",e)}cleanTerm(e){return e&&this.sortOrders.forEach(t=>{t.term&&e.match(RegExp(`${t.term}\\b`))&&(this.set("sortOrder",t.id),e=(e=e.replace(RegExp(`${t.term}\\b`,"g"),"")).trim())}),e}triggerSearch(){this._searchOnSortChange&&(this.set("page",1),this._search())}static #Z=(()=>dt7948.n(this.prototype,"triggerSearch",[(0,l.observes)("sortOrder")]))();triggerSearchOnTypeChange(){this.searchActive&&(this.set("page",1),this._search())}static #ee=(()=>dt7948.n(this.prototype,"triggerSearchOnTypeChange",[(0,l.observes)("search_type")]))();modelChanged(){this.searchTerm!==this.q&&this.setSearchTerm(this.q)}static #et=(()=>dt7948.n(this.prototype,"modelChanged",[(0,l.observes)("model")]))();showLikeCount(e){return e?.includes("order:likes")}static #ei=(()=>dt7948.n(this.prototype,"showLikeCount",[(0,h.default)("q")]))();qChanged(){this.model&&this.get("model.q")!==this.q&&(this.setSearchTerm(this.q),this.send("search"))}static #es=(()=>dt7948.n(this.prototype,"qChanged",[(0,l.observes)("q")]))();isPrivateMessage(e){return e&&this.currentUser&&(e.includes("in:messages")||e.includes("in:personal")||e.includes(`personal_messages:${this.currentUser.get("username_lower")}`))}static #en=(()=>dt7948.n(this.prototype,"isPrivateMessage",[(0,h.default)("q")]))();resultCountLabel(e,t){return(0,T.i18n)("search.result_count",{count:e,plus:e%50==0?"+":"",term:t})}static #er=(()=>dt7948.n(this.prototype,"resultCountLabel",[(0,h.default)("resultCount","noSortQ")]))();resultCountChanged(){if(!this.model.posts)return 0;this.set("resultCount",this.searchResultPosts.length+this.model.categories.length+this.model.tags.length+this.model.users.length)}static #eo=(()=>dt7948.n(this.prototype,"resultCountChanged",[(0,l.observes)("model.{posts,categories,tags,users}.length","searchResultPosts")]))();canBulkSelect(e){return this.currentUser&&this.currentUser.staff&&e}static #ea=(()=>dt7948.n(this.prototype,"canBulkSelect",[(0,h.default)("hasResults")]))();hasUnselectedResults(e,t){return edt7948.n(this.prototype,"hasUnselectedResults",[(0,h.default)("bulkSelectHelper.selected.length","searchResultPosts.length")]))();canCreateTopic(e){return this.currentUser&&e}static #ec=(()=>dt7948.n(this.prototype,"canCreateTopic",[(0,h.default)("model.grouped_search_result.can_create_topic")]))();isLastPage(e){return 10===e}static #eu=(()=>dt7948.n(this.prototype,"isLastPage",[(0,h.default)("page")]))();usingDefaultSearchType(e){return e===S}static #ed=(()=>dt7948.n(this.prototype,"usingDefaultSearchType",[(0,h.default)("search_type")]))();customSearchType(e){return A.find(t=>e===t.searchTypeId)}static #ep=(()=>dt7948.n(this.prototype,"customSearchType",[(0,h.default)("search_type")]))();searchInfoClassNames(e){return e?"search-info bulk-select-visible":"search-info"}static #eh=(()=>dt7948.n(this.prototype,"searchInfoClassNames",[(0,h.default)("bulkSelectEnabled")]))();searchResultPosts(e,t){return t?.list?.length>0?(0,g.reciprocallyRankedList)([e,t.list],["topic_id",t.identifier]):e}static #iK=(()=>dt7948.n(this.prototype,"searchResultPosts",[(0,h.default)("model.posts","additionalSearchResults")]))();_search(){if(this.searching)return;this.set("invalidSearch",!1);let e=this.searchTerm;if(!(0,g.isValidSearchTerm)(e,this.siteSettings)){this.set("invalidSearch",!0);return}let t={q:e,page:this.page};1===t.page?(this.set("bulkSelectEnabled",!1),this.bulkSelectHelper.selected.clear(),this.set("searching",!0),(0,b.scrollTop)()):this.set("loading",!0);let i=this.sortOrder;i&&this.sortOrders[i].term&&(t.q+=" "+this.sortOrders[i].term),this.set("q",t.q);let s=this.skip_context;(!s&&this.context||"false"===s)&&(t.search_context={type:this.context,id:this.context_id});let n=(0,g.getSearchKey)(t);if(this.customSearchType){(0,this.customSearchType.searchFunc)(this,t,n);return}switch(this.search_type){case C:let r=(0,p.search)(e,this.siteSettings);c.Promise.resolve(r).then(async e=>{let t=e.filter(e=>!!e.model),i=e.filter(e=>!e.model),s=await (0,g.translateResults)({categories:t,tags:i})||{};this.set("model",s)}).finally(()=>{this.setProperties({searching:!1,loading:!1})});break;case x:(0,_.default)({term:e,limit:20}).then(async e=>{let t=await (0,g.translateResults)({users:e})||{};this.set("model",t)}).finally(()=>{this.setProperties({searching:!1,loading:!1})});break;default:this.currentUser&&(0,g.updateRecentSearches)(this.currentUser,e),(0,u.ajax)("/search",{data:t}).then(async e=>{let i=await (0,g.translateResults)(e)||{};e.grouped_search_result&&this.set("q",e.grouped_search_result.term),t.page>1?i&&(this.model.set("posts",this.model.posts.concat(i.posts)),this.model.set("topics",this.model.topics.concat(i.topics)),this.model.set("grouped_search_result",e.grouped_search_result)):((0,m.setTransient)("lastSearch",{searchKey:n,model:i},5),i.grouped_search_result=e.grouped_search_result,this.set("model",i)),this.set("error",null)}).catch(e=>{this.set("error",e.jqXHR.responseJSON?.message)}).finally(()=>{this.setProperties({searching:!1,loading:!1})})}}static #iG=(()=>dt7948.n(this.prototype,"_search",[h.bind]))();_afterTransition(){0===Object.keys(this.model).length&&this.reset()}reset(){this.setProperties({searching:!1,page:1,resultCount:null}),this.bulkSelectHelper.clear()}afterBulkActionComplete(){return c.Promise.resolve(this._search())}static #iY=(()=>dt7948.n(this.prototype,"afterBulkActionComplete",[n.action]))();createTopic(e,t){let i;if(t?.preventDefault(),e.includes("category:")){let t=e.match(/category:(\S*)/);t&&t[1]&&(i=t[1])}this.composer.open({action:k.default.CREATE_TOPIC,draftKey:k.default.NEW_TOPIC_KEY,topicCategory:i})}static #iQ=(()=>dt7948.n(this.prototype,"createTopic",[n.action]))();addSearchResults(e,t){this.set("additionalSearchResults",{list:e,identifier:t})}static #iJ=(()=>dt7948.n(this.prototype,"addSearchResults",[n.action]))();setSortOrder(e){this.set("sortOrder",e),this.searchPreferencesManager.sortOrder=e}static #iX=(()=>dt7948.n(this.prototype,"setSortOrder",[n.action]))();selectAll(){this.bulkSelectHelper.selected.addObjects(this.get("searchResultPosts").mapBy("topic")),document.querySelectorAll(".fps-result input[type=checkbox]").forEach(e=>{e.checked=!0})}static #oG=(()=>dt7948.n(this.prototype,"selectAll",[n.action]))();clearAll(){this.bulkSelectHelper.selected.clear(),document.querySelectorAll(".fps-result input[type=checkbox]").forEach(e=>{e.checked=!1})}static #oY=(()=>dt7948.n(this.prototype,"clearAll",[n.action]))();toggleBulkSelect(){this.toggleProperty("bulkSelectEnabled"),this.bulkSelectHelper.selected.clear()}static #oQ=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[n.action]))();search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.searching||(e.collapseFilters&&document.querySelector("details.advanced-filters")?.removeAttribute("open"),this.set("page",1),this.appEvents.trigger("full-page-search:trigger-search"),this._search())}static #oJ=(()=>dt7948.n(this.prototype,"search",[n.action]))();get canLoadMore(){return this.get("model.grouped_search_result.more_full_page_results")&&!this.loading&&this.page<10}loadMore(){this.canLoadMore&&(0,f.applyBehaviorTransformer)("full-page-search-load-more",()=>{this.incrementProperty("page"),this._search()})}static #oX=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();logClick(e){this.get("model.grouped_search_result.search_log_id")&&e&&(0,g.logSearchLinkClick)({searchLogId:this.get("model.grouped_search_result.search_log_id"),searchResultId:e,searchResultType:"topic"})}static #oZ=(()=>dt7948.n(this.prototype,"logClick",[n.action]))()}},74201:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(35533);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"group",[s.inject]))();#aO=(()=>void dt7948.i(this,"group"))();static #i=(()=>dt7948.g(this.prototype,"groupActivity",[s.inject]))();#aL=(()=>void dt7948.i(this,"groupActivity"))();static #s=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();async fetchMorePosts(){let e=this.model,t=e[e.length-1].created_at,i=this.group.model,s=this.groupActivity.category_id,n={before:t,type:this.type,categoryId:s};return await i.findPosts(n)}static #l=(()=>dt7948.n(this.prototype,"fetchMorePosts",[n.action]))()}},95592:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(35533);class r extends s.default{loadMore(){this.model.loadMore()}static #e=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))()}},54999:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(83133);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();queryParams=["category_id"]}},10196:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(30574),o=i(42064),a=i(6864),l=i(88355),c=i(63748);class u extends s.default{queryParams=["order","asc","filter"];order=null;asc=!0;filter=null;filterInput=null;loading=!1;isBulk=!1;showActions=!1;bulkSelection=null;static #e=(()=>dt7948.g(this.prototype,"hasMembers",[(0,r.gt)("model.members.length",0)]))();#aR=(()=>void dt7948.i(this,"hasMembers"))();get canLoadMore(){return this.get("model.members")?.lengthdt7948.n(this.prototype,"filterInputChanged",[(0,o.observes)("filterInput")]))();_setFilter(){this.set("filter",this.filterInput)}static #s=(()=>dt7948.n(this.prototype,"_setFilter",[(0,c.debounce)(500)]))();_filtersChanged(){this.reloadMembers(!0)}static #l=(()=>dt7948.n(this.prototype,"_filtersChanged",[(0,o.observes)("order","asc","filter")]))();reloadMembers(e){!this.loading&&this.model&&(e||this.canLoadMore)&&(this.set("loading",!0),this.model.reloadMembers(this.memberParams,e).finally(()=>{this.set("loading",!1),this.refresh&&this.set("bulkSelection",[])}))}memberParams(e,t,i){return{order:e,asc:t,filter:i}}static #c=(()=>dt7948.n(this.prototype,"memberParams",[(0,c.default)("order","asc","filter")]))();canManageGroup(e){return this.currentUser?.canManageGroup(e)&&!this.model.automatic}static #u=(()=>dt7948.n(this.prototype,"canManageGroup",[(0,c.default)("model")]))();filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"}static #d=(()=>dt7948.n(this.prototype,"filterPlaceholder",[c.default]))();emptyMessageKey(e,t,i){return i?e?"groups.members.no_filter_matches":"groups.empty.members":"groups.members.forbidden"}static #p=(()=>dt7948.n(this.prototype,"emptyMessageKey",[(0,c.default)("filter","members","model.can_see_members")]))();loadMore(){this.reloadMembers()}static #h=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();toggleActions(){this.toggleProperty("showActions")}static #m=(()=>dt7948.n(this.prototype,"toggleActions",[n.action]))();actOnGroup(e,t){switch(t){case"removeMember":this.removeMember(e);break;case"makeOwner":this.makeOwner(e.username);break;case"removeOwner":this.removeOwner(e);break;case"makePrimary":e.setPrimaryGroup(this.model.id).then(()=>e.set("primary",!0));break;case"removePrimary":e.setPrimaryGroup(null).then(()=>e.set("primary",!1))}}static #g=(()=>dt7948.n(this.prototype,"actOnGroup",[n.action]))();actOnSelection(e,t){if(e&&0!==e.length)switch(t){case"removeMembers":return(0,a.ajax)(`/groups/${this.model.id}/members.json`,{type:"DELETE",data:{user_ids:e.mapBy("id").join(",")}}).then(()=>{this.model.reloadMembers(this.memberParams,!0),this.set("isBulk",!1)});case"makeOwners":return(0,a.ajax)(`/groups/${this.model.id}/owners.json`,{type:"PUT",data:{usernames:e.mapBy("username").join(",")}}).then(()=>{e.forEach(e=>e.set("owner",!0)),this.set("isBulk",!1)});case"removeOwners":return(0,a.ajax)(`/admin/groups/${this.model.id}/owners.json`,{type:"DELETE",data:{group:{usernames:e.map(e=>e.username).join(",")}}}).then(()=>{e.forEach(e=>e.set("owner",!1)),this.set("isBulk",!1)});case"setPrimary":case"unsetPrimary":let i="setPrimary"===t;return(0,a.ajax)(`/admin/groups/${this.model.id}/primary.json`,{type:"PUT",data:{group:{usernames:e.map(e=>e.username).join(",")},primary:i}}).then(()=>{e.forEach(e=>e.set("primary",i)),this.set("isBulk",!1)})}}static #A=(()=>dt7948.n(this.prototype,"actOnSelection",[n.action]))();removeMember(e){this.model.removeMember(e,this.memberParams)}static #E=(()=>dt7948.n(this.prototype,"removeMember",[n.action]))();makeOwner(e){this.model.addOwners(e)}static #D=(()=>dt7948.n(this.prototype,"makeOwner",[n.action]))();removeOwner(e){this.model.removeOwner(e)}static #P=(()=>dt7948.n(this.prototype,"removeOwner",[n.action]))();addMembers(){this.usernames&&this.usernames.length>0&&this.model.addMembers(this.usernames).then(()=>this.set("usernames",[])).catch(l.popupAjaxError)}static #Q=(()=>dt7948.n(this.prototype,"addMembers",[n.action]))();toggleBulkSelect(){this.setProperties({isBulk:!this.isBulk,bulkSelection:[]})}static #J=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[n.action]))();bulkSelectAll(){document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>{e.checked||e.click()})}static #X=(()=>dt7948.n(this.prototype,"bulkSelectAll",[n.action]))();bulkClearAll(){document.querySelectorAll("input.bulk-select:checked").forEach(e=>{e.checked&&e.click()})}static #Z=(()=>dt7948.n(this.prototype,"bulkClearAll",[n.action]))();selectMember(e,t){this.set("bulkSelection",this.bulkSelection||[]),t.target.checked?this.bulkSelection.pushObject(e):this.bulkSelection.removeObject(e)}static #ee=(()=>dt7948.n(this.prototype,"selectMember",[n.action]))();updateOrder(e,t){this.setProperties({order:e,asc:t})}static #et=(()=>dt7948.n(this.prototype,"updateOrder",[n.action]))()}},11326:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(63748);class r extends s.default{selectedCategories(e,t,i,s,n){return[].concat(e,t,i,s,n).filter(Boolean)}static #e=(()=>dt7948.n(this.prototype,"selectedCategories",[(0,n.default)("model.watchingCategories.[]","model.watchingFirstPostCategories.[]","model.trackingCategories.[]","model.regularCategories.[]","model.mutedCategories.[]")]))()}},60705:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(35533),r=i(42064),o=i(63748);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"group",[s.inject]))();#aO=(()=>void dt7948.i(this,"group"))();static #i=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();loading=!1;offset=0;filters=(()=>n.default.create())();filterParams(e,t,i,s){return{action:e,acting_user:t,target_user:i,subject:s}}static #s=(()=>dt7948.n(this.prototype,"filterParams",[(0,o.default)("filters.action","filters.acting_user","filters.target_user","filters.subject")]))();_refreshModel(){this.get("group.model").findLogs(0,this.filterParams).then(e=>{this.set("offset",0),this.model.setProperties({logs:e.logs,all_loaded:e.all_loaded})})}static #l=(()=>dt7948.n(this.prototype,"_refreshModel",[(0,r.observes)("filters.action","filters.acting_user","filters.target_user","filters.subject")]))();reset(){this.setProperties({offset:0,filters:n.default.create()})}loadMore(){this.get("model.all_loaded")||(this.set("loading",!0),this.get("group.model").findLogs(this.offset+1,this.filterParams).then(e=>{e.logs.forEach(e=>this.get("model.logs").addObject(e)),this.incrementProperty("offset"),this.set("model.all_loaded",e.all_loaded)}).finally(()=>this.set("loading",!1)))}static #c=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();clearFilter(e){this.set(`filters.${e}`,"")}static #u=(()=>dt7948.n(this.prototype,"clearFilter",[n.action]))()}},18793:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(28418);class n extends s.default{saving=null}},89671:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(63748);class r extends s.default{selectedTags(e,t,i,s,n){return[].concat(e,t,i,s,n).filter(e=>e)}static #e=(()=>dt7948.n(this.prototype,"selectedTags",[(0,n.default)("model.watching_tags.[]","model.watching_first_post_tags.[]","model.tracking_tags.[]","model.regular_tags.[]","model.muted_tags.[]")]))()}},46837:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(28418),n=i(63748);class r extends s.default{tabs(e){let t=[{route:"group.manage.profile",title:"groups.manage.profile.title"},{route:"group.manage.interaction",title:"groups.manage.interaction.title"},{route:"group.manage.categories",title:"groups.manage.categories.title"}];return this.siteSettings.tagging_enabled&&t.push({route:"group.manage.tags",title:"groups.manage.tags.title"}),t.push({route:"group.manage.logs",title:"groups.manage.logs.title"}),e||(this.siteSettings.enable_smtp&&t.splice(2,0,{route:"group.manage.email",title:"groups.manage.email.title"}),t.splice(1,0,{route:"group.manage.membership",title:"groups.manage.membership.title"})),t}static #e=(()=>dt7948.n(this.prototype,"tabs",[(0,n.default)("model.automatic")]))()}},2362:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(28418);class n extends s.default{}},69484:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(28418);class n extends s.default{}},75196:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(42064),o=i(6864),a=i(88355),l=i(63748);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();queryParams=["order","asc","filter"];order="";asc=null;filter=null;filterInput=null;loading=!1;get canLoadMore(){return this.get("model.requesters")?.lengthdt7948.n(this.prototype,"filterInputChanged",[(0,r.observes)("filterInput")]))();_setFilter(){this.set("filter",this.filterInput)}static #s=(()=>dt7948.n(this.prototype,"_setFilter",[(0,l.debounce)(500)]))();_filtersChanged(){this.findRequesters(!0)}static #l=(()=>dt7948.n(this.prototype,"_filtersChanged",[(0,r.observes)("order","asc","filter")]))();findRequesters(e){if(this.loading)return;let t=this.model;t&&(e||this.canLoadMore)&&(this.set("loading",!0),t.findRequesters(this.memberParams,e).finally(()=>{this.set("loading",!1)}))}memberParams(e,t,i){return{order:e,asc:t,filter:i}}static #c=(()=>dt7948.n(this.prototype,"memberParams",[(0,l.default)("order","asc","filter")]))();hasRequesters(e){return e&&e.length>0}static #u=(()=>dt7948.n(this.prototype,"hasRequesters",[(0,l.default)("model.requesters.[]")]))();filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"}static #d=(()=>dt7948.n(this.prototype,"filterPlaceholder",[l.default]))();handleRequest(e){(0,o.ajax)(`/groups/${this.get("model.id")}/handle_membership_request.json`,{data:e,type:"PUT"}).catch(a.popupAjaxError)}loadMore(){this.findRequesters()}static #p=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();acceptRequest(e){this.handleRequest({user_id:e.get("id"),accept:!0}),e.setProperties({request_accepted:!0,request_denied:!1})}static #h=(()=>dt7948.n(this.prototype,"acceptRequest",[n.action]))();undoAcceptRequest(e){(0,o.ajax)("/groups/"+this.get("model.id")+"/members.json",{type:"DELETE",data:{user_id:e.get("id")}}).then(()=>{e.set("request_undone",!0)})}static #m=(()=>dt7948.n(this.prototype,"undoAcceptRequest",[n.action]))();denyRequest(e){this.handleRequest({user_id:e.get("id")}),e.setProperties({request_accepted:!1,request_denied:!0})}static #g=(()=>dt7948.n(this.prototype,"denyRequest",[n.action]))();updateOrder(e,t){this.setProperties({order:e,asc:t})}static #A=(()=>dt7948.n(this.prototype,"updateOrder",[n.action]))()}},78574:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(83133),o=i(93755),a=i(63748),l=i(843);class c extends n.default{init(){super.init(...arguments),this.setProperties({route:this.route||`group.${this.name}`,message:(0,l.i18n)(`groups.${this.i18nKey||this.name}`)})}}class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #s=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #c=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();counts=null;showing="members";destroying=null;showTooltip=!1;tabs(e,t,i,s,n){let r=[c.create({name:"members",route:"group.index",icon:"users",i18nKey:"members.title",count:t}),c.create({name:"activity"})];return s&&n&&r.push(c.create({name:"requests",i18nKey:"requests.title",icon:"user-plus",count:i})),e&&r.push(c.create({name:"messages",i18nKey:"messages"})),s&&r.push(c.create({name:"manage",i18nKey:"manage.title",icon:"wrench"})),r.push(c.create({name:"permissions",i18nKey:"permissions.title"})),r}static #u=(()=>dt7948.n(this.prototype,"tabs",[(0,a.default)("showMessages","model.user_count","model.request_count","canManageGroup","model.allow_membership_requests")]))();showMessages(e,t){return!!this.currentUser?.can_send_private_messages&&!!e&&(t||this.currentUser&&this.currentUser.admin)}static #d=(()=>dt7948.n(this.prototype,"showMessages",[(0,a.default)("model.has_messages","model.is_group_user","currentUser.can_send_private_messages")]))();displayGroupMessageButton(e){return this.currentUser&&e}static #p=(()=>dt7948.n(this.prototype,"displayGroupMessageButton",[(0,a.default)("model.messageable")]))();canManageGroup(e){return this.currentUser?.canManageGroup(e)}static #h=(()=>dt7948.n(this.prototype,"canManageGroup",[(0,a.default)("model","model.automatic")]))();messageGroup(){this.composer.openNewMessage({recipients:this.get("model.name"),hasGroups:!0})}static #m=(()=>dt7948.n(this.prototype,"messageGroup",[n.action]))();destroyGroup(){this.set("destroying",!0);let e=this.model;this.dialog.deleteConfirm({title:(0,l.i18n)("admin.groups.delete_confirm",{group:e.name}),bodyComponent:o.default,bodyComponentModel:e,didConfirm:()=>{e.destroy().catch(e=>{console.error(e),this.dialog.alert((0,l.i18n)("admin.groups.delete_failed"))}).then(()=>{this.router.transitionTo("groups.index")}).finally(()=>{this.set("destroying",!1)})},didCancel:()=>this.set("destroying",!1)})}static #g=(()=>dt7948.n(this.prototype,"destroyGroup",[n.action]))();toggleDeleteTooltip(){this.toggleProperty("showTooltip")}static #A=(()=>dt7948.n(this.prototype,"toggleDeleteTooltip",[n.action]))()}},7013:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(83133),o=i(46301),a=i(63748),l=i(77093),c=i(843);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();queryParams=["order","asc","filter","type"];order=null;asc=null;filter="";type=null;groups=null;isLoading=!1;types(e){let t=[];return e&&e.forEach(e=>t.push({id:e,name:(0,c.i18n)(`groups.index.${e}_groups`)})),t}static #i=(()=>dt7948.n(this.prototype,"types",[(0,a.default)("groups.extras.type_filters")]))();onFilterChanged(e){(0,o.default)(this,this._debouncedFilter,e,l.INPUT_DELAY)}static #s=(()=>dt7948.n(this.prototype,"onFilterChanged",[n.action]))();loadMore(){this.groups&&this.groups.loadMore()}static #l=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();new(){this.router.transitionTo("groups.new")}static #c=(()=>dt7948.n(this.prototype,"new",[n.action]))();_debouncedFilter(e){this.set("filter",e)}}},9687:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d,popupAutomaticMembershipAlert:()=>u});var s=i(28418),n=i(35533),r=i(83133),o=i(6864),a=i(88355),l=i(63748),c=i(843);function u(e,t){if(!t)return;let i={};i.automatic_membership_email_domains=t,e&&(i.id=e),(0,o.ajax)("/admin/groups/automatic_membership_count.json",{type:"PUT",data:i}).then(e=>{let t=e.user_count;t>0&&this.dialog.alert((0,c.i18n)("admin.groups.manage.membership.automatic_membership_user_count",{count:t}))})}class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();saving=null;splitOwnerUsernames(e){return e&&e.length?e.split(","):[]}static #s=(()=>dt7948.n(this.prototype,"splitOwnerUsernames",[(0,l.default)("model.ownerUsernames")]))();splitUsernames(e){return e&&e.length?e.split(","):[]}static #l=(()=>dt7948.n(this.prototype,"splitUsernames",[(0,l.default)("model.usernames")]))();save(){this.set("saving",!0);let e=this.model;u(e.id,e.automatic_membership_email_domains),e.create().then(()=>{this.router.transitionTo("group.members",e.name)}).catch(a.popupAjaxError).finally(()=>this.set("saving",!1))}static #c=(()=>dt7948.n(this.prototype,"save",[n.action]))();updateOwnerUsernames(e){this.set("model.ownerUsernames",e.join(","))}static #u=(()=>dt7948.n(this.prototype,"updateOwnerUsernames",[n.action]))();updateUsernames(e){this.set("model.usernames",e.join(","))}static #d=(()=>dt7948.n(this.prototype,"updateUsernames",[n.action]))()}},90508:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(8554),n=i(28418),r=i(35533),o=i(4959),a=i(30574),l=i(75983),c=i(6864),u=i(88355),d=i(63748),p=i(94636),h=i(80706),m=i(87353),g=i(42236),f=i(91004),_=i(4054),y=i(13231),b=i(81386),w=i(843);class k extends n.default.extend(f.default,y.default,_.default){static #e=(()=>dt7948.g(this.prototype,"accountUsername",[s.tracked]))();#iB=(()=>void dt7948.i(this,"accountUsername"))();static #i=(()=>dt7948.g(this.prototype,"isDeveloper",[s.tracked]))();#ij=(()=>void dt7948.i(this,"isDeveloper"))();queryParams=["t"];nameValidationHelper=(()=>new h.default(this))();successMessage=null;static #s=(()=>dt7948.g(this.prototype,"isInviteLink",[(0,a.readOnly)("model.is_invite_link")]))();#aU=(()=>void dt7948.i(this,"isInviteLink"))();static #l=(()=>dt7948.g(this.prototype,"invitedBy",[(0,a.readOnly)("model.invited_by")]))();#aj=(()=>void dt7948.i(this,"invitedBy"))();static #c=(()=>dt7948.g(this.prototype,"email",[(0,a.alias)("model.email")]))();#t9=(()=>void dt7948.i(this,"email"))();static #u=(()=>dt7948.g(this.prototype,"accountEmail",[(0,a.alias)("email")]))();#iW=(()=>void dt7948.i(this,"accountEmail"))();static #d=(()=>dt7948.g(this.prototype,"existingUserId",[(0,a.readOnly)("model.existing_user_id")]))();#aB=(()=>void dt7948.i(this,"existingUserId"))();static #p=(()=>dt7948.g(this.prototype,"existingUserCanRedeem",[(0,a.readOnly)("model.existing_user_can_redeem")]))();#a$=(()=>void dt7948.i(this,"existingUserCanRedeem"))();static #h=(()=>dt7948.g(this.prototype,"existingUserCanRedeemError",[(0,a.readOnly)("model.existing_user_can_redeem_error")]))();#aq=(()=>void dt7948.i(this,"existingUserCanRedeemError"))();static #m=(()=>dt7948.g(this.prototype,"existingUserRedeeming",[(0,a.bool)("existingUserId")]))();#aV=(()=>void dt7948.i(this,"existingUserRedeeming"))();static #g=(()=>dt7948.g(this.prototype,"hiddenEmail",[(0,a.alias)("model.hidden_email")]))();#aH=(()=>void dt7948.i(this,"hiddenEmail"))();static #A=(()=>dt7948.g(this.prototype,"emailVerifiedByLink",[(0,a.alias)("model.email_verified_by_link")]))();#az=(()=>void dt7948.i(this,"emailVerifiedByLink"))();static #E=(()=>dt7948.g(this.prototype,"differentExternalEmail",[(0,a.alias)("model.different_external_email")]))();#aW=(()=>void dt7948.i(this,"differentExternalEmail"))();static #D=(()=>dt7948.g(this.prototype,"passwordRequired",[(0,a.not)("externalAuthsOnly")]))();#aK=(()=>void dt7948.i(this,"passwordRequired"))();errorMessage=null;userFields=null;authOptions=null;rejectedEmails=[];maskPassword=!0;setAccountUsername(e){this.accountUsername=e.target.value}static #P=(()=>dt7948.n(this.prototype,"setAccountUsername",[r.action]))();get nameTitle(){return this.nameValidationHelper.nameTitle}get nameValidation(){return this.nameValidationHelper.nameValidation}static #Q=(()=>dt7948.n(this.prototype,"nameValidation",[o.dependentKeyCompat]))();authenticationComplete(e){let t={accountUsername:e.username,accountName:e.name,authOptions:r.default.create(e)};this.isInviteLink&&(t.email=e.email),this.setProperties(t)}discourseConnectEnabled(){return this.siteSettings.enable_discourse_connect}static #J=(()=>dt7948.n(this.prototype,"discourseConnectEnabled",[d.default]))();welcomeTitle(){return(0,w.i18n)("invites.welcome_to",{site_name:this.siteSettings.title})}static #X=(()=>dt7948.n(this.prototype,"welcomeTitle",[d.default]))();yourEmailMessage(e){return(0,w.i18n)("invites.your_email",{email:e})}static #Z=(()=>dt7948.n(this.prototype,"yourEmailMessage",[(0,d.default)("email")]))();externalAuthsEnabled(){return(0,b.findAll)().length>0}static #ee=(()=>dt7948.n(this.prototype,"externalAuthsEnabled",[d.default]))();externalAuthsOnly(){return!this.siteSettings.enable_local_logins&&this.externalAuthsEnabled&&!this.siteSettings.enable_discourse_connect}static #et=(()=>dt7948.n(this.prototype,"externalAuthsOnly",[d.default]))();submitDisabled(e,t,i,s,n,r,o){return r?!o:e||t||i||s||n}static #ei=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,d.default)("emailValidation.failed","usernameValidation.failed","passwordValidation.failed","nameValidation.failed","userFieldsValidation.failed","existingUserRedeeming","existingUserCanRedeem")]))();showSocialLoginAvailable(e,t,i){return e&&!t&&!i}static #es=(()=>dt7948.n(this.prototype,"showSocialLoginAvailable",[(0,d.default)("externalAuthsEnabled","externalAuthsOnly","discourseConnectEnabled")]))();shouldDisplayForm(e,t,i,s){return(this.siteSettings.enable_local_logins||e&&t&&!i)&&!this.siteSettings.enable_discourse_connect&&!s}static #en=(()=>dt7948.n(this.prototype,"shouldDisplayForm",[(0,d.default)("externalAuthsOnly","authOptions","emailValidation.failed","existingUserRedeeming")]))();showFullname(){return this.site.full_name_visible_in_signup}static #er=(()=>dt7948.n(this.prototype,"showFullname",[d.default]))();fullnameRequired(){return this.site.full_name_required_for_signup}static #eo=(()=>dt7948.n(this.prototype,"fullnameRequired",[d.default]))();emailValidation(e,t,i,s,n,o,a){if(n&&!a)return r.default.create({ok:!0,reason:(0,w.i18n)("user.email.ok")});if((0,l.isEmpty)(e))return r.default.create({failed:!0});if(t.includes(e))return r.default.create({failed:!0,reason:(0,w.i18n)("user.email.invalid")});if(i&&s){let t=this.authProviderDisplayName(this.get("authOptions.auth_provider"));return i===e?r.default.create({ok:!0,reason:(0,w.i18n)("user.email.authenticated",{provider:t})}):r.default.create({failed:!0,reason:(0,w.i18n)("user.email.invite_auth_email_invalid",{provider:t})})}return o?r.default.create({ok:!0,reason:(0,w.i18n)("user.email.authenticated_by_invite")}):(0,g.emailValid)(e)?r.default.create({ok:!0,reason:(0,w.i18n)("user.email.ok")}):r.default.create({failed:!0,reason:(0,w.i18n)("user.email.invalid")})}static #ea=(()=>dt7948.n(this.prototype,"emailValidation",[(0,d.default)("email","rejectedEmails.[]","authOptions.email","authOptions.email_valid","hiddenEmail","emailVerifiedByLink","differentExternalEmail")]))();authProviderDisplayName(e){let t=(0,b.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}ssoPath(){return(0,p.default)("/session/sso")}static #el=(()=>dt7948.n(this.prototype,"ssoPath",[d.default]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,w.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #ec=(()=>dt7948.n(this.prototype,"disclaimerHtml",[d.default]))();associateHtml(e,t){if(e)return(0,w.i18n)("create_account.associate",{associate_link:e,provider:(0,w.i18n)(`login.${t}.name`)})}static #eu=(()=>dt7948.n(this.prototype,"associateHtml",[(0,d.default)("authOptions.associate_url","authOptions.auth_provider")]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #ed=(()=>dt7948.n(this.prototype,"togglePasswordMask",[r.action]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #ep=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[r.action]))();submit(){let e=this.userFields,t={};(0,l.isEmpty)(e)||e.forEach(function(e){t[e.get("field.id")]=e.get("value")});let i={username:this.accountUsername,name:this.accountName,password:this.accountPassword,user_custom_fields:t,timezone:moment.tz.guess()};this.isInviteLink?i.email=this.email:i.email_token=this.t,(0,c.ajax)({url:`/invites/show/${this.get("model.token")}.json`,type:"PUT",data:i}).then(e=>{e.success?(this.set("successMessage",e.message||(0,w.i18n)("invites.success")),e.redirect_to&&m.default.redirectTo(e.redirect_to)):(e.errors&&e.errors.email&&e.errors.email.length>0&&e.values&&this.rejectedEmails.pushObject(e.values.email),e.errors?.["user_password.password"]?.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors["user_password.password"][0])),e.message&&this.set("errorMessage",e.message))}).catch(e=>{this.set("errorMessage",(0,u.extractError)(e))})}static #eh=(()=>dt7948.n(this.prototype,"submit",[r.action]))();externalLogin(e){e.doLogin({signup:!0,params:{origin:window.location.href}})}static #iK=(()=>dt7948.n(this.prototype,"externalLogin",[r.action]))()}},72915:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(42256),l=i(75983),c=i(66726),u=i(4374),d=i(6864),p=i(88355),h=i(61004),m=i(84457),g=i(94636),f=i(97015),_=i(42236),y=i(98988),b=i(81386),w=i(59864),k=i(843);class T extends n.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #c=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"login",[o.service]))();#t2=(()=>void dt7948.i(this,"login"))();static #d=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #p=(()=>dt7948.g(this.prototype,"application",[n.inject]))();#ak=(()=>void dt7948.i(this,"application"))();static #h=(()=>dt7948.g(this.prototype,"loggingIn",[s.tracked],function(){return!1}))();#sY=(()=>void dt7948.i(this,"loggingIn"))();static #m=(()=>dt7948.g(this.prototype,"loggedIn",[s.tracked],function(){return!1}))();#sQ=(()=>void dt7948.i(this,"loggedIn"))();static #g=(()=>dt7948.g(this.prototype,"showLoginButtons",[s.tracked],function(){return!0}))();#sJ=(()=>void dt7948.i(this,"showLoginButtons"))();static #A=(()=>dt7948.g(this.prototype,"showLogin",[s.tracked],function(){return!0}))();#aG=(()=>void dt7948.i(this,"showLogin"))();static #E=(()=>dt7948.g(this.prototype,"showSecondFactor",[s.tracked],function(){return!1}))();#sX=(()=>void dt7948.i(this,"showSecondFactor"))();static #D=(()=>dt7948.g(this.prototype,"loginPassword",[s.tracked],function(){return""}))();#sZ=(()=>void dt7948.i(this,"loginPassword"))();static #P=(()=>dt7948.g(this.prototype,"loginName",[s.tracked],function(){return""}))();#s1=(()=>void dt7948.i(this,"loginName"))();static #Q=(()=>dt7948.g(this.prototype,"canLoginLocal",[s.tracked],function(){return this.siteSettings.enable_local_logins}))();#s0=(()=>void dt7948.i(this,"canLoginLocal"))();static #J=(()=>dt7948.g(this.prototype,"canLoginLocalWithEmail",[s.tracked],function(){return this.siteSettings.enable_local_logins_via_email}))();#s3=(()=>void dt7948.i(this,"canLoginLocalWithEmail"))();static #X=(()=>dt7948.g(this.prototype,"secondFactorMethod",[s.tracked],function(){return w.SECOND_FACTOR_METHODS.TOTP}))();#s8=(()=>void dt7948.i(this,"secondFactorMethod"))();static #Z=(()=>dt7948.g(this.prototype,"securityKeyCredential",[s.tracked]))();#s2=(()=>void dt7948.i(this,"securityKeyCredential"))();static #ee=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[s.tracked]))();#s4=(()=>void dt7948.i(this,"otherMethodAllowed"))();static #et=(()=>dt7948.g(this.prototype,"secondFactorRequired",[s.tracked]))();#s7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #ei=(()=>dt7948.g(this.prototype,"backupEnabled",[s.tracked]))();#s9=(()=>void dt7948.i(this,"backupEnabled"))();static #es=(()=>dt7948.g(this.prototype,"totpEnabled",[s.tracked]))();#s5=(()=>void dt7948.i(this,"totpEnabled"))();static #en=(()=>dt7948.g(this.prototype,"showSecurityKey",[s.tracked]))();#s6=(()=>void dt7948.i(this,"showSecurityKey"))();static #er=(()=>dt7948.g(this.prototype,"securityKeyChallenge",[s.tracked]))();#ne=(()=>void dt7948.i(this,"securityKeyChallenge"))();static #eo=(()=>dt7948.g(this.prototype,"securityKeyAllowedCredentialIds",[s.tracked]))();#nt=(()=>void dt7948.i(this,"securityKeyAllowedCredentialIds"))();static #ea=(()=>dt7948.g(this.prototype,"secondFactorToken",[s.tracked]))();#ni=(()=>void dt7948.i(this,"secondFactorToken"))();static #el=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#t7=(()=>void dt7948.i(this,"flash"))();static #ec=(()=>dt7948.g(this.prototype,"flashType",[s.tracked]))();#sA=(()=>void dt7948.i(this,"flashType"))();get isAwaitingApproval(){return this.awaitingApproval&&!this.canLoginLocal&&!this.canLoginLocalWithEmail}get loginDisabled(){return this.loggingIn||this.loggedIn}get bodyClasses(){let e=["login-body"];return this.isAwaitingApproval&&e.push("awaiting-approval"),!this.hasAtLeastOneLoginButton||this.showSecondFactor||this.showSecurityKey||e.push("has-alt-auth"),this.canLoginLocal||e.push("no-local-login"),(this.showSecondFactor||this.showSecurityKey)&&e.push("second-factor"),e.join(" ")}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,y.isWebauthnSupported)()}get hasAtLeastOneLoginButton(){return(0,b.findAll)().length>0||this.canUsePasskeys}get hasNoLoginOptions(){return!this.hasAtLeastOneLoginButton&&!this.canLoginLocal}get loginButtonLabel(){return this.loggingIn?"login.logging_in":"login.title"}get showSignupLink(){return this.canSignUp&&!this.showSecondFactor}get adminLoginPath(){return(0,g.default)("/u/admin-login")}get shouldTriggerRouteAction(){return!this.siteSettings.full_page_login||this.siteSettings.enable_discourse_connect}showFullPageLogin(){this.showLogin=!0}static #eu=(()=>dt7948.n(this.prototype,"showFullPageLogin",[r.action]))();async passkeyLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"optional";try{let t=await (0,y.getPasskeyCredential)(e=>this.dialog.alert(e),e,this.capabilities.isFirefox);if(t){let e;try{e=await (0,d.ajax)("/session/passkey/auth.json",{type:"POST",data:{publicKeyCredential:t}})}catch(e){(0,p.popupAjaxError)(e);return}if(e&&!e.error){let e=(0,h.default)("destination_url"),t=(0,h.default)("sso_destination_url");t?((0,h.removeCookie)("sso_destination_url"),window.location.assign(t)):e?((0,h.removeCookie)("destination_url"),window.location.assign(e)):window.location.reload()}else this.dialog.alert(e.error)}}catch(e){(0,p.popupAjaxError)(e)}}static #ed=(()=>dt7948.n(this.prototype,"passkeyLogin",[r.action]))();preloadLogin(){let e=document.querySelector("#hidden-login-form input[name=username]")?.value;e?(this.loginName=e,this.loginPassword=document.querySelector("#hidden-login-form input[name=password]").value):(0,h.default)("email")&&(this.loginName=(0,h.default)("email"))}static #ep=(()=>dt7948.n(this.prototype,"preloadLogin",[r.action]))();securityKeyCredentialChanged(e){this.securityKeyCredential=e}static #eh=(()=>dt7948.n(this.prototype,"securityKeyCredentialChanged",[r.action]))();flashChanged(e){this.flash=e}static #iK=(()=>dt7948.n(this.prototype,"flashChanged",[r.action]))();flashTypeChanged(e){this.flashType=e}static #iG=(()=>dt7948.n(this.prototype,"flashTypeChanged",[r.action]))();loginNameChanged(e){this.loginName=e.target.value}static #iY=(()=>dt7948.n(this.prototype,"loginNameChanged",[r.action]))();showCreateAccount(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.site.isReadOnly?this.dialog.alert((0,k.i18n)("read_only_mode.login_disabled")):this.handleShowCreateAccount(e)}static #iQ=(()=>dt7948.n(this.prototype,"showCreateAccount",[r.action]))();handleShowCreateAccount(e){if(this.siteSettings.enable_discourse_connect){let e=encodeURIComponent(window.location.pathname);window.location=(0,g.default)("/session/sso?return_path="+e)}else this.isOnlyOneExternalLoginMethod?this.login.externalLogin(this.externalLoginMethods[0],{signup:!0}):this.router.transitionTo("signup").then(t=>{Object.keys(e||{}).forEach(i=>{t.controller.set(i,e[i])})})}showNotActivated(e){this.modal.show(u.default,{model:e})}static #iJ=(()=>dt7948.n(this.prototype,"showNotActivated",[r.action]))();async triggerLogin(){if(!this.loginDisabled){if((0,l.isEmpty)(this.loginName)||(0,l.isEmpty)(this.loginPassword)){this.flash=(0,k.i18n)("login.blank_username_or_password"),this.flashType="error";return}try{this.loggingIn=!0;let e=await (0,d.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}});if(e&&e.error){if(this.loggingIn=!1,this.flash=null,(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired){this.otherMethodAllowed=e.multiple_second_factor_methods,this.secondFactorRequired=!0,this.showLoginButtons=!1,this.backupEnabled=e.backup_enabled,this.totpEnabled=e.totp_enabled,this.showSecondFactor=e.totp_enabled,this.showSecurityKey=e.security_key_enabled,this.secondFactorMethod=e.security_key_enabled?w.SECOND_FACTOR_METHODS.SECURITY_KEY:w.SECOND_FACTOR_METHODS.TOTP,this.securityKeyChallenge=e.challenge,this.securityKeyAllowedCredentialIds=e.allowed_credential_ids;return}"not_activated"===e.reason?this.showNotActivated({username:this.loginName,sentTo:(0,m.default)(e.sent_to_email),currentEmail:(0,m.default)(e.current_email)}):"suspended"===e.reason?this.dialog.alert(e.error):("expired"===e.reason?this.flash=(0,a.htmlSafe)((0,k.i18n)("login.password_expired",{reset_url:(0,g.default)("/password-reset")})):this.flash=e.error,this.flashType="error")}else{this.loggedIn=!0;let e=document.getElementById("hidden-login-form"),t=(t,i)=>{e&&(e.querySelector(`input[name=${i}]`).value=t)},i=(0,h.default)("destination_url"),s=(0,h.default)("sso_destination_url");if(t(this.loginName,"username"),t(this.loginPassword,"password"),s){(0,h.removeCookie)("sso_destination_url"),window.location.assign(s);return}i?((0,h.removeCookie)("destination_url"),t(i,"redirect")):t(window.location.href,"redirect"),e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit());return}}catch(e){e.jqXHR&&429===e.jqXHR.status?this.flash=(0,k.i18n)("login.rate_limit"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?this.flash=(0,k.i18n)("read_only_mode.login_disabled"):(0,_.areCookiesEnabled)()?this.flash=(0,k.i18n)("login.error"):this.flash=(0,k.i18n)("login.cookies_error"),this.flashType="error",this.loggingIn=!1}}}static #iX=(()=>dt7948.n(this.prototype,"triggerLogin",[r.action]))();externalLoginAction(e){this.loginDisabled||this.login.externalLogin(e,{signup:!1,setLoggingIn:e=>this.loggingIn=e})}static #oG=(()=>dt7948.n(this.prototype,"externalLoginAction",[r.action]))();createAccount(){let e={};this.loginName&&this.loginName.indexOf("@")>0?(e.accountEmail=this.loginName,e.accountUsername=null):(e.accountUsername=this.loginName,e.accountEmail=null),this.showCreateAccount(e)}static #oY=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))();interceptResetLink(e){!(0,f.wantsNewWindow)(e)&&e.target.href&&new URL(e.target.href).pathname===(0,g.default)("/password-reset")&&(e.preventDefault(),e.stopPropagation(),this.modal.show(c.default,{model:{emailOrUsername:this.loginName}}))}static #oQ=(()=>dt7948.n(this.prototype,"interceptResetLink",[r.action]))()}},29163:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(28418),n=i(35533),r=i(30574),o=i(6864),a=i(63748),l=i(94636),c=i(97015),u=i(87353),d=i(98988),p=i(91004),h=i(59864),m=i(843);class g extends s.default.extend(p.default){static #e=(()=>dt7948.g(this.prototype,"isDeveloper",[(0,r.alias)("model.is_developer")]))();#ij=(()=>void dt7948.i(this,"isDeveloper"))();static #i=(()=>dt7948.g(this.prototype,"admin",[(0,r.alias)("model.admin")]))();#aY=(()=>void dt7948.i(this,"admin"))();static #s=(()=>dt7948.g(this.prototype,"secondFactorRequired",[(0,r.alias)("model.second_factor_required")]))();#s7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #l=(()=>dt7948.g(this.prototype,"securityKeyRequired",[(0,r.alias)("model.security_key_required")]))();#aQ=(()=>void dt7948.i(this,"securityKeyRequired"))();static #c=(()=>dt7948.g(this.prototype,"backupEnabled",[(0,r.alias)("model.backup_enabled")]))();#s9=(()=>void dt7948.i(this,"backupEnabled"))();static #u=(()=>dt7948.g(this.prototype,"securityKeyOrSecondFactorRequired",[(0,r.or)("model.second_factor_required","model.security_key_required")]))();#aJ=(()=>void dt7948.i(this,"securityKeyOrSecondFactorRequired"))();static #d=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[(0,r.readOnly)("model.multiple_second_factor_methods")]))();#s4=(()=>void dt7948.i(this,"otherMethodAllowed"))();passwordRequired=!0;errorMessage=null;successMessage=null;requiresApproval=!1;redirected=!1;maskPassword=!0;passwordValidationVisible=!1;lockImageUrl=(()=>(0,l.default)("/images/lock.svg"))();displaySecurityKeyForm(e,t){return e&&t===h.SECOND_FACTOR_METHODS.SECURITY_KEY}static #p=(()=>dt7948.n(this.prototype,"displaySecurityKeyForm",[(0,a.default)("securityKeyRequired","selectedSecondFactorMethod")]))();initSelectedSecondFactorMethod(){this.model.security_key_required?this.set("selectedSecondFactorMethod",h.SECOND_FACTOR_METHODS.SECURITY_KEY):this.model.second_factor_required?this.set("selectedSecondFactorMethod",h.SECOND_FACTOR_METHODS.TOTP):this.model.backup_enabled&&this.set("selectedSecondFactorMethod",h.SECOND_FACTOR_METHODS.BACKUP_CODE)}continueButtonText(){return(0,m.i18n)("password_reset.continue",{site_name:this.siteSettings.title})}static #h=(()=>dt7948.n(this.prototype,"continueButtonText",[(0,a.default)()]))();redirectHref(e){return(0,l.default)(e||"/")}static #m=(()=>dt7948.n(this.prototype,"redirectHref",[(0,a.default)("redirectTo")]))();showPasswordValidation(e,t,i){return e||t&&i}static #g=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,a.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();togglePasswordValidation(){this.set("passwordValidationVisible",!!this.passwordValidation.reason)}static #A=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[n.action]))();done(e){(0,c.wantsNewWindow)(e)||(e.preventDefault(),this.set("redirected",!0),u.default.redirectTo(this.redirectTo||"/"))}static #E=(()=>dt7948.n(this.prototype,"done",[n.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #D=(()=>dt7948.n(this.prototype,"togglePasswordMask",[n.action]))();async submit(){try{let e=await (0,o.ajax)({url:(0,u.userPath)(`password-reset/${this.get("model.token")}.json`),type:"PUT",data:{password:this.accountPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.selectedSecondFactorMethod,timezone:moment.tz.guess()}});e.success?(this.set("successMessage",e.message),this.set("redirectTo",e.redirect_to),e.requires_approval?this.set("requiresApproval",!0):(this.set("redirected",!0),u.default.redirectTo(e.redirect_to||"/"))):(e.errors.security_keys||e.errors.user_second_factors?this.setProperties({secondFactorRequired:this.secondFactorRequired,securityKeyRequired:this.securityKeyRequired,password:null,errorMessage:e.message}):this.secondFactorRequired||this.securityKeyRequired?this.setProperties({secondFactorRequired:!1,securityKeyRequired:!1,errorMessage:null}):e.errors?.["user_password.password"]?.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,(e.friendly_messages||[]).join("\n"))),e.message&&this.set("errorMessage",e.message))}catch(e){if(e.jqXHR?.status===429)this.set("errorMessage",(0,m.i18n)("user.second_factor.rate_limit"));else throw Error(e)}}static #P=(()=>dt7948.n(this.prototype,"submit",[n.action]))();authenticateSecurityKey(){this.set("selectedSecondFactorMethod",h.SECOND_FACTOR_METHODS.SECURITY_KEY),(0,d.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.set("securityKeyCredential",e),this.send("submit")},e=>{this.setProperties({securityKeyRequired:!0,password:null,errorMessage:e})})}static #Q=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[n.action]))()}},25488:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(28418);class n extends s.default{}},85936:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(28418),n=i(35533),r=i(30574),o=i(62053),a=i(83133),l=i(47235),c=i(88355),u=i(17358),d=i(82805),p=i(63748),h=i(27213),m=i(94636),g=i(87353),f=i(81386),_=i(843);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#aX=(()=>void dt7948.i(this,"user"))();static #l=(()=>dt7948.g(this.prototype,"canEditName",[(0,d.setting)("enable_names")]))();#aZ=(()=>void dt7948.i(this,"canEditName"))();static #c=(()=>dt7948.g(this.prototype,"canSelectUserStatus",[(0,d.setting)("enable_user_status")]))();#a1=(()=>void dt7948.i(this,"canSelectUserStatus"))();static #u=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,d.setting)("moderators_view_emails")]))();#oj=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #d=(()=>dt7948.g(this.prototype,"canDownloadPosts",[(0,r.alias)("user.viewingSelf")]))();#a0=(()=>void dt7948.i(this,"canDownloadPosts"))();static #p=(()=>dt7948.g(this.prototype,"cannotDeleteAccount",[(0,r.not)("currentUser.can_delete_account")]))();#a3=(()=>void dt7948.i(this,"cannotDeleteAccount"))();static #h=(()=>dt7948.g(this.prototype,"deleteDisabled",[(0,r.or)("model.isSaving","deleting","cannotDeleteAccount")]))();#a8=(()=>void dt7948.i(this,"deleteDisabled"))();static #m=(()=>dt7948.g(this.prototype,"canSelectTitle",[(0,r.gt)("model.availableTitles.length",0)]))();#a2=(()=>void dt7948.i(this,"canSelectTitle"))();static #g=(()=>dt7948.g(this.prototype,"canSelectFlair",[(0,r.gt)("model.availableFlairs.length",0)]))();#a4=(()=>void dt7948.i(this,"canSelectFlair"))();static #A=(()=>dt7948.g(this.prototype,"disableConnectButtons",[(0,d.propertyNotEqual)("model.id","currentUser.id")]))();#a7=(()=>void dt7948.i(this,"disableConnectButtons"))();canSaveUser=!0;newNameInput=null;newTitleInput=null;newPrimaryGroupInput=null;newStatus=null;revoking=null;init(){super.init(...arguments),this.saveAttrNames=["name","title","primary_group_id","flair_group_id","status"],this.set("revoking",{})}reset(){this.set("passwordProgress",null)}get canCheckEmails(){return new u.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #E=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,n.computed)("model.id","currentUser.id")]))();nameInstructions(){return(0,_.i18n)(this.site.full_name_required_for_signup?"user.name.instructions_required":"user.name.instructions")}static #D=(()=>dt7948.n(this.prototype,"nameInstructions",[(0,p.default)()]))();canSelectPrimaryGroup(e){return e.length>0&&this.siteSettings.user_selected_primary_groups}static #P=(()=>dt7948.n(this.prototype,"canSelectPrimaryGroup",[(0,p.default)("model.filteredGroups")]))();associatedAccountsLoaded(e){return void 0!==e}static #Q=(()=>dt7948.n(this.prototype,"associatedAccountsLoaded",[(0,p.default)("model.associated_accounts")]))();authProviders(e){return(0,f.findAll)().map(t=>({method:t,account:e.find(e=>e.name===t.name)})).filter(e=>e.account||e.method.can_connect)}static #J=(()=>dt7948.n(this.prototype,"authProviders",[(0,p.default)("model.associated_accounts.[]")]))();emails(e,t,i){let s=[];return e&&s.push(n.default.create({email:e,primary:!0,confirmed:!0})),t&&t.forEach(e=>{s.push(n.default.create({email:e,confirmed:!0}))}),i&&i.forEach(e=>{s.push(n.default.create({email:e}))}),s.sort((e,t)=>e.email.localeCompare(t.email))}static #X=(()=>dt7948.n(this.prototype,"emails",[(0,p.default)("model.email","model.secondary_emails.[]","model.unconfirmed_emails.[]")]))();canUpdateAssociatedAccounts(e,t,i){return!e&&!!t&&!i&&(0,f.findAll)().length>0}static #Z=(()=>dt7948.n(this.prototype,"canUpdateAssociatedAccounts",[(0,p.default)("model.second_factor_enabled","canCheckEmails","model.is_anonymous")]))();canAddEmail(e,t){return e>0&&t}static #ee=(()=>dt7948.n(this.prototype,"canAddEmail",[(0,p.default)("siteSettings.max_allowed_secondary_emails","model.can_edit_email")]))();resendConfirmationEmail(e,t){t?.preventDefault(),e.set("resending",!0),this.model.addEmail(e.email).then(()=>{e.set("resent",!0)}).finally(()=>{e.set("resending",!1)})}static #et=(()=>dt7948.n(this.prototype,"resendConfirmationEmail",[n.action]))();showUserStatusModal(e){this.modal.show(l.default,{model:{status:e,hidePauseNotifications:!0,saveAction:e=>this.set("newStatus",e),deleteAction:()=>this.set("newStatus",null)}})}static #ei=(()=>dt7948.n(this.prototype,"showUserStatusModal",[n.action]))();save(){return this.set("saved",!1),this.model.setProperties({name:this.newNameInput,title:this.newTitleInput,primary_group_id:this.newPrimaryGroupInput,flair_group_id:this.newFlairGroupId,status:this.newStatus}),this.model.save(this.saveAttrNames).then(()=>this.set("saved",!0)).catch(c.popupAjaxError)}static #es=(()=>dt7948.n(this.prototype,"save",[n.action]))();setPrimaryEmail(e){this.model.setPrimaryEmail(e).catch(c.popupAjaxError)}static #en=(()=>dt7948.n(this.prototype,"setPrimaryEmail",[n.action]))();destroyEmail(e){this.model.destroyEmail(e)}static #er=(()=>dt7948.n(this.prototype,"destroyEmail",[n.action]))();delete(){this.dialog.alert({message:(0,_.i18n)("user.delete_account_confirm"),buttons:[{icon:"triangle-exclamation",label:(0,_.i18n)("user.delete_account"),class:"btn-danger",action:()=>this.model.delete().then(()=>{(0,o.next)(()=>{this.dialog.alert({message:(0,_.i18n)("user.deleted_yourself"),didConfirm:()=>g.default.redirectAbsolute((0,m.default)("/")),didCancel:()=>g.default.redirectAbsolute((0,m.default)("/"))})})},()=>{(0,o.next)(()=>this.dialog.alert((0,_.i18n)("user.delete_yourself_not_allowed"))),this.set("deleting",!1)})},{label:(0,_.i18n)("composer.cancel")}]})}static #eo=(()=>dt7948.n(this.prototype,"delete",[n.action]))();revokeAccount(e){this.set(`revoking.${e.name}`,!0),this.model.revokeAssociatedAccount(e.name).then(t=>{t.success?this.model.associated_accounts.removeObject(e):this.dialog.alert(t.message)}).catch(c.popupAjaxError).finally(()=>this.set(`revoking.${e.name}`,!1))}static #ea=(()=>dt7948.n(this.prototype,"revokeAccount",[n.action]))();connectAccount(e){e.doLogin({reconnect:!0})}static #el=(()=>dt7948.n(this.prototype,"connectAccount",[n.action]))();exportUserArchive(){this.dialog.yesNoConfirm({message:(0,_.i18n)("user.download_archive.confirm"),didConfirm:()=>(0,h.exportUserArchive)()})}static #ec=(()=>dt7948.n(this.prototype,"exportUserArchive",[n.action]))()}},71451:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(30574),o=i(82805),a=i(63748),l=i(42236),c=i(843);class u extends s.default{queryParams=["new"];taken=!1;saving=!1;error=!1;success=!1;oldEmail=null;newEmail=null;successMessage=null;static #e=(()=>dt7948.g(this.prototype,"newEmailEmpty",[(0,r.empty)("newEmail")]))();#a9=(()=>void dt7948.i(this,"newEmailEmpty"))();static #i=(()=>dt7948.g(this.prototype,"saveDisabled",[(0,r.or)("saving","newEmailEmpty","taken","unchanged","invalidEmail")]))();#sr=(()=>void dt7948.i(this,"saveDisabled"))();static #s=(()=>dt7948.g(this.prototype,"unchanged",[(0,o.propertyEqual)("newEmailLower","oldEmail")]))();#a5=(()=>void dt7948.i(this,"unchanged"))();newEmailLower(e){return e.toLowerCase().trim()}static #l=(()=>dt7948.n(this.prototype,"newEmailLower",[(0,a.default)("newEmail")]))();saveButtonText(e,t){return e?(0,c.i18n)("saving"):t?(0,c.i18n)("user.add_email.add"):(0,c.i18n)("user.change")}static #c=(()=>dt7948.n(this.prototype,"saveButtonText",[(0,a.default)("saving","new")]))();invalidEmail(e){return!(0,l.emailValid)(e)}static #u=(()=>dt7948.n(this.prototype,"invalidEmail",[(0,a.default)("newEmail")]))();emailValidation(e,t,i){if(e&&(t||i))return n.default.create({failed:!0,reason:(0,c.i18n)("user.email.invalid")})}static #d=(()=>dt7948.n(this.prototype,"emailValidation",[(0,a.default)("invalidEmail","oldEmail","newEmail")]))();reset(){this.setProperties({taken:!1,saving:!1,error:!1,success:!1,newEmail:null})}saveEmail(){return this.set("saving",!0),(this.new?this.model.addEmail(this.newEmail):this.model.changeEmail(this.newEmail)).then(()=>{this.set("success",!0),this.model.staff?this.set("successMessage",(0,c.i18n)("user.change_email.success_staff")):this.currentUser.admin?this.set("successMessage",(0,c.i18n)("user.change_email.success_via_admin")):this.set("successMessage",(0,c.i18n)("user.change_email.success"))},e=>{this.setProperties({error:!0,saving:!1}),e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors&&e.jqXHR.responseJSON.errors[0]?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",(0,c.i18n)("user.change_email.error"))})}static #p=(()=>dt7948.n(this.prototype,"saveEmail",[n.action]))()}},93006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(30574),o=i(88355),a=i(63748),l=i(843);let c={ALWAYS:0,ONLY_WHEN_AWAY:1,NEVER:2};class u extends s.default{subpageTitle=(()=>(0,l.i18n)("user.preferences_nav.emails"))();static #e=(()=>dt7948.g(this.prototype,"emailMessagesLevelAway",[(0,r.equal)("model.user_option.email_messages_level",c.ONLY_WHEN_AWAY)]))();#a6=(()=>void dt7948.i(this,"emailMessagesLevelAway"))();static #i=(()=>dt7948.g(this.prototype,"emailLevelAway",[(0,r.equal)("model.user_option.email_level",c.ONLY_WHEN_AWAY)]))();#le=(()=>void dt7948.i(this,"emailLevelAway"))();saveAttrNames=["email_level","email_messages_level","mailing_list_mode","mailing_list_mode_frequency","email_digests","email_in_reply_to","email_previous_replies","digest_after_minutes","include_tl0_in_digests"];previousRepliesOptions=(()=>[{name:(0,l.i18n)("user.email_previous_replies.always"),value:0},{name:(0,l.i18n)("user.email_previous_replies.unless_emailed"),value:1},{name:(0,l.i18n)("user.email_previous_replies.never"),value:2}])();emailLevelOptions=(()=>[{name:(0,l.i18n)("user.email_level.always"),value:c.ALWAYS},{name:(0,l.i18n)("user.email_level.only_when_away"),value:c.ONLY_WHEN_AWAY},{name:(0,l.i18n)("user.email_level.never"),value:c.NEVER}])();digestFrequencies=(()=>[{name:(0,l.i18n)("user.email_digests.every_30_minutes"),value:30},{name:(0,l.i18n)("user.email_digests.every_hour"),value:60},{name:(0,l.i18n)("user.email_digests.daily"),value:1440},{name:(0,l.i18n)("user.email_digests.weekly"),value:10080},{name:(0,l.i18n)("user.email_digests.every_month"),value:43200},{name:(0,l.i18n)("user.email_digests.every_six_months"),value:259200}])();frequencyEstimate(){let e=this.get("model.mailing_list_posts_per_day");return!e||e<2?(0,l.i18n)("user.mailing_list_mode.few_per_day"):(0,l.i18n)("user.mailing_list_mode.many_per_day",{dailyEmailEstimate:e})}static #s=(()=>dt7948.n(this.prototype,"frequencyEstimate",[(0,a.default)()]))();mailingListModeOptions(){return[{name:this.frequencyEstimate,value:1},{name:(0,l.i18n)("user.mailing_list_mode.individual_no_echo"),value:2}]}static #l=(()=>dt7948.n(this.prototype,"mailingListModeOptions",[(0,a.default)()]))();emailFrequencyInstructions(){return this.siteSettings.email_time_window_mins?(0,l.i18n)("user.email.frequency",{count:this.siteSettings.email_time_window_mins}):null}static #c=(()=>dt7948.n(this.prototype,"emailFrequencyInstructions",[(0,a.default)()]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(o.popupAjaxError)}static #u=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},26028:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(4194),l=i(88355),c=i(61586),u=i(82805),d=i(63748),p=i(23091),h=i(42236),m=i(27431),g=i(843);let f={1:"latest",2:"categories",3:"unread",4:"new",5:"top",6:"bookmarks",7:"unseen",8:"hot"},_=["smallest","smaller","normal","larger","largest"],y=["notifications","contextual"];class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"preferencesController",[(0,s.inject)("preferences")]))();#lt=(()=>void dt7948.i(this,"preferencesController"))();currentThemeId=(()=>-1)();previewingColorScheme=!1;selectedDarkColorSchemeId=null;makeColorSchemeDefault=!0;static #s=(()=>dt7948.g(this.prototype,"canPreviewColorScheme",[(0,u.propertyEqual)("model.id","currentUser.id")]))();#li=(()=>void dt7948.i(this,"canPreviewColorScheme"))();subpageTitle=(()=>(0,g.i18n)("user.preferences_nav.interface"))();static #l=(()=>dt7948.g(this.prototype,"showColorSchemeSelector",[(0,r.reads)("userSelectableColorSchemes.length")]))();#ls=(()=>void dt7948.i(this,"showColorSchemeSelector"))();static #c=(()=>dt7948.g(this.prototype,"showColorSchemeNoneItem",[(0,r.not)("currentSchemeCanBeSelected")]))();#ln=(()=>void dt7948.i(this,"showColorSchemeNoneItem"))();selectedColorSchemeNoneLabel=(()=>(0,g.i18n)("user.color_schemes.default_description"))();init(){super.init(...arguments),this.set("selectedDarkColorSchemeId",this.session.userDarkSchemeId),this.set("enableDarkMode",-1!==this.get("model.user_option.dark_scheme_id")),this.set("selectedColorSchemeId",this.getSelectedColorSchemeId())}saveAttrNames(e){let t=["locale","external_links_in_new_tab","dynamic_favicon","enable_quoting","enable_smart_lists","enable_defer","automatically_unpin_topics","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_presence","text_size","title_count_mode","skip_new_user_tips","seen_popups","color_scheme_id","dark_scheme_id","bookmark_auto_delete_preference"];return e&&t.push("theme_ids"),t}static #u=(()=>dt7948.n(this.prototype,"saveAttrNames",[(0,d.default)("makeThemeDefault")]))();availableLocales(){return JSON.parse(this.siteSettings.available_locales)}static #d=(()=>dt7948.n(this.prototype,"availableLocales",[(0,d.default)()]))();defaultDarkSchemeId(){return this.siteSettings.default_dark_mode_color_scheme_id}static #p=(()=>dt7948.n(this.prototype,"defaultDarkSchemeId",[d.default]))();textSizes(){return _.map(e=>({name:(0,g.i18n)(`user.text_size.${e}`),value:e}))}static #h=(()=>dt7948.n(this.prototype,"textSizes",[d.default]))();get homepageId(){return this.model.user_option.homepage_id||this.userSelectableHome.firstObject.value}static #m=(()=>dt7948.n(this.prototype,"homepageId",[(0,n.computed)("model.user_option.homepage_id","userSelectableHome.[]")]))();titleCountModes(){return y.map(e=>({name:(0,g.i18n)(`user.title_count_mode.${e}`),value:e}))}static #g=(()=>dt7948.n(this.prototype,"titleCountModes",[d.default]))();bookmarkAfterNotificationModes(){return Object.keys(m.AUTO_DELETE_PREFERENCES).map(e=>({value:m.AUTO_DELETE_PREFERENCES[e],name:(0,g.i18n)(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))}static #A=(()=>dt7948.n(this.prototype,"bookmarkAfterNotificationModes",[d.default]))();userSelectableThemes(){return(0,p.listThemes)(this.site)}static #E=(()=>dt7948.n(this.prototype,"userSelectableThemes",[d.default]))();showThemeSelector(e){return e&&e.length>1}static #D=(()=>dt7948.n(this.prototype,"showThemeSelector",[(0,d.default)("userSelectableThemes")]))();themeIdChanged(e){return -1===this.currentThemeId?(this.set("currentThemeId",e),!1):this.currentThemeId!==e}static #P=(()=>dt7948.n(this.prototype,"themeIdChanged",[(0,d.default)("themeId")]))();userSelectableColorSchemes(){return(0,c.listColorSchemes)(this.site)}static #Q=(()=>dt7948.n(this.prototype,"userSelectableColorSchemes",[d.default]))();currentSchemeCanBeSelected(e,t,i){if(!e||!i)return!1;let s=e.findBy("id",i);return!!s&&t.findBy("id",s.color_scheme_id)}static #J=(()=>dt7948.n(this.prototype,"currentSchemeCanBeSelected",[(0,d.default)("userSelectableThemes","userSelectableColorSchemes","themeId")]))();showThemeSetDefault(e,t){return!e||e[0]!==t}static #X=(()=>dt7948.n(this.prototype,"showThemeSetDefault",[(0,d.default)("model.user_option.theme_ids","themeId")]))();showTextSetDefault(e,t){return e!==t}static #Z=(()=>dt7948.n(this.prototype,"showTextSetDefault",[(0,d.default)("model.user_option.text_size","textSize")]))();homeChanged(){let e=this.siteSettings.top_menu.split("|")[0].split(",")[0];this.model.canPickThemeWithCustomHomepage&&(f[-1]="custom");let t=f[this.get("model.user_option.homepage_id")];(0,h.setDefaultHomepage)(t||e)}userSelectableHome(){let e={};Object.keys(f).forEach(t=>{e[f[t]]=t});let t=[];this.model.canPickThemeWithCustomHomepage&&t.push({name:(0,g.i18n)("user.homepage.default"),value:-1});let i=this.siteSettings.top_menu.split("|"),s=f[this.get("model.user_option.homepage_id")];return s&&!i.includes(s)&&i.push(f[this.homepageId]),i.forEach(i=>{let s=e[i];s&&t.push({name:(0,g.i18n)(`filters.${i}.title`),value:Number(s)})}),t}static #ee=(()=>dt7948.n(this.prototype,"userSelectableHome",[(0,d.default)()]))();showDarkModeToggle(){return this.defaultDarkSchemeId>0&&!this.showDarkColorSchemeSelector}static #et=(()=>dt7948.n(this.prototype,"showDarkModeToggle",[d.default]))();userSelectableDarkColorSchemes(){return(0,c.listColorSchemes)(this.site,{darkOnly:!0})}static #ei=(()=>dt7948.n(this.prototype,"userSelectableDarkColorSchemes",[d.default]))();showDarkColorSchemeSelector(e){let t=this.defaultDarkSchemeId>0?2:1;return e&&e.length>t}static #es=(()=>dt7948.n(this.prototype,"showDarkColorSchemeSelector",[(0,d.default)("userSelectableDarkColorSchemes")]))();getSelectedColorSchemeId(){if(!this.session.userColorSchemeId)return;let e=this.userSelectableThemes?.findBy("id",this.themeId);if(e?.color_scheme_id!==this.session.userColorSchemeId||this.userSelectableColorSchemes.findBy("id",this.session.userColorSchemeId))return this.session.userColorSchemeId}save(){this.set("saved",!1);let e=this.makeThemeDefault;e&&this.set("model.user_option.theme_ids",[this.themeId]);let t=this.makeTextSizeDefault;return t&&this.set("model.user_option.text_size",this.textSize),this.showColorSchemeSelector?this.makeColorSchemeDefault&&this.set("model.user_option.color_scheme_id",this.selectedColorSchemeId):this.set("model.user_option.color_scheme_id",null),this.showDarkModeToggle?this.set("model.user_option.dark_scheme_id",this.enableDarkMode?null:-1):this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?this.set("model.user_option.dark_scheme_id",null):this.set("model.user_option.dark_scheme_id",this.selectedDarkColorSchemeId),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0),e?(0,p.setLocalTheme)([]):(0,p.setLocalTheme)([this.themeId],this.get("model.user_option.theme_key_seq")),t?this.model.updateTextSizeCookie(null):this.model.updateTextSizeCookie(this.textSize),this.makeColorSchemeDefault?((0,c.updateColorSchemeCookie)(null),(0,c.updateColorSchemeCookie)(null,{dark:!0})):((0,c.updateColorSchemeCookie)(this.selectedColorSchemeId),this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?(0,c.updateColorSchemeCookie)(null,{dark:!0}):(0,c.updateColorSchemeCookie)(this.selectedDarkColorSchemeId,{dark:!0})),this.homeChanged(),this.themeId&&this.themeId!==this.currentThemeId&&(0,a.reload)()}).catch(l.popupAjaxError)}static #en=(()=>dt7948.n(this.prototype,"save",[n.action]))();selectTextSize(e){let t=document.documentElement.classList;_.forEach(i=>{let s=`text-size-${i}`;e===i?t.add(s):t.remove(s)}),this.session.requiresRefresh=!0,this.set("textSize",e)}static #er=(()=>dt7948.n(this.prototype,"selectTextSize",[n.action]))();loadColorScheme(e){if(this.setProperties({selectedColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme){if(e<0){let t=this.userSelectableThemes.findBy("id",this.themeId);t&&t.color_scheme_id&&(e=t.color_scheme_id)}(0,c.loadColorSchemeStylesheet)(e,this.themeId),-1===this.selectedDarkColorSchemeId&&(0,c.loadColorSchemeStylesheet)(e,this.themeId,!0)}}static #eo=(()=>dt7948.n(this.prototype,"loadColorScheme",[n.action]))();loadDarkColorScheme(e){this.setProperties({selectedDarkColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme&&(-1===e?((0,c.loadColorSchemeStylesheet)(this.selectedColorSchemeId,this.themeId,!0),this.session.set("darkModeAvailable",!1)):((0,c.loadColorSchemeStylesheet)(e,this.themeId,!0),this.session.set("darkModeAvailable",!0)))}static #ea=(()=>dt7948.n(this.prototype,"loadDarkColorScheme",[n.action]))();undoColorSchemePreview(){this.setProperties({selectedColorSchemeId:this.session.userColorSchemeId,selectedDarkColorSchemeId:this.session.userDarkSchemeId,previewingColorScheme:!1});let e=document.querySelector("link#cs-preview-dark"),t=document.querySelector("link#cs-preview-light");e&&e.remove(),t&&t.remove()}static #el=(()=>dt7948.n(this.prototype,"undoColorSchemePreview",[n.action]))();resetSeenUserTips(){return this.model.set("user_option.skip_new_user_tips",!1),this.model.set("user_option.seen_popups",null),this.model.save(["skip_new_user_tips","seen_popups"])}static #ec=(()=>dt7948.n(this.prototype,"resetSeenUserTips",[n.action]))()}},43849:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(8554),n=i(28418),r=i(35533),o=i(88355),a=i(843);let l=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"saved",[s.tracked],function(){return!1}))();#lr=(()=>void dt7948.i(this,"saved"))();subpageTitle=(()=>(0,a.i18n)("user.preferences_nav.navigation_menu"))();saveAttrNames=["sidebar_link_to_filtered_list","sidebar_show_count_of_new_items"];save(){let e=this.model.sidebarLinkToFilteredList,t=this.model.sidebarShowCountOfNewItems;this.model.set("user_option.sidebar_link_to_filtered_list",this.newSidebarLinkToFilteredList),this.model.set("user_option.sidebar_show_count_of_new_items",this.newSidebarShowCountOfNewItems),this.model.save(this.saveAttrNames).then(()=>{this.saved=!0}).catch(i=>{this.model.set("user_option.sidebar_link_to_filtered_list",e),this.model.set("user_option.sidebar_show_count_of_new_items",t),(0,o.popupAjaxError)(i)})}static #i=(()=>dt7948.n(this.prototype,"save",[r.action]))()}},79855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(35533),r=i(88355),o=i(843);class a extends s.default{subpageTitle=(()=>(0,o.i18n)("user.preferences_nav.notifications"))();init(){super.init(...arguments),this.saveAttrNames=["muted_usernames","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","allow_private_messages","enable_allowed_pm_users","user_notification_schedule"],this.likeNotificationFrequencies=[{name:(0,o.i18n)("user.like_notification_frequency.always"),value:0},{name:(0,o.i18n)("user.like_notification_frequency.first_time_and_daily"),value:1},{name:(0,o.i18n)("user.like_notification_frequency.first_time"),value:2},{name:(0,o.i18n)("user.like_notification_frequency.never"),value:3}]}save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(r.popupAjaxError)}static #e=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},49322:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(75983),l=i(99626),c=i(6864),u=i(88355),d=i(63748),p=i(843);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();subpageTitle=(()=>(0,p.i18n)("user.preferences_nav.profile"))();static #s=(()=>dt7948.g(this.prototype,"canChangeBio",[(0,r.readOnly)("model.can_change_bio")]))();#lo=(()=>void dt7948.i(this,"canChangeBio"))();static #l=(()=>dt7948.g(this.prototype,"canChangeLocation",[(0,r.readOnly)("model.can_change_location")]))();#la=(()=>void dt7948.i(this,"canChangeLocation"))();static #c=(()=>dt7948.g(this.prototype,"canChangeWebsite",[(0,r.readOnly)("model.can_change_website")]))();#ll=(()=>void dt7948.i(this,"canChangeWebsite"))();static #u=(()=>dt7948.g(this.prototype,"canUploadProfileHeader",[(0,r.readOnly)("model.can_upload_profile_header")]))();#lc=(()=>void dt7948.i(this,"canUploadProfileHeader"))();static #d=(()=>dt7948.g(this.prototype,"canUploadUserCardBackground",[(0,r.readOnly)("model.can_upload_user_card_background")]))();#lu=(()=>void dt7948.i(this,"canUploadUserCardBackground"))();saveAttrNames=["bio_raw","website","location","custom_fields","user_fields","profile_background_upload_url","card_background_upload_url","date_of_birth","timezone","default_calendar","hide_profile"];calendarOptions=(()=>[{name:(0,p.i18n)("download_calendar.google"),value:"google"},{name:(0,p.i18n)("download_calendar.ics"),value:"ics"}])();userFields(){let e=this.site.user_fields;return(0,a.isEmpty)(e)?void 0:this.showEnforcedRequiredFieldsNotice?this._missingRequiredFields(this.site.user_fields,this.model.user_fields):(this.currentUser.staff||(e=e.filterBy("editable",!0)),e.sortBy("position").map(e=>{let t=this.model.user_fields?.[e.id.toString()];return n.default.create({field:e,value:t})}))}static #p=(()=>dt7948.n(this.prototype,"userFields",[(0,d.default)("model.user_fields.@each.value")]))();showEnforcedRequiredFieldsNotice(e){return e}static #h=(()=>dt7948.n(this.prototype,"showEnforcedRequiredFieldsNotice",[(0,d.default)("currentUser.needs_required_fields_check")]))();canChangeDefaultCalendar(e){return"none_selected"!==e}static #m=(()=>dt7948.n(this.prototype,"canChangeDefaultCalendar",[(0,d.default)("model.user_option.default_calendar")]))();async showFeaturedTopicModal(){await this.modal.show(l.default,{model:{user:this.model,setFeaturedTopic:e=>this.set("model.featured_topic",e)}}),document.querySelector(".feature-topic-on-profile-btn")?.focus()}static #g=(()=>dt7948.n(this.prototype,"showFeaturedTopicModal",[n.action]))();_missingRequiredFields(e,t){return e.filter(e=>"for_all_users"===e.requirement&&(0,a.isEmpty)(t[e.id])).map(e=>n.default.create({field:e,value:""}))}clearFeaturedTopicFromProfile(){this.dialog.yesNoConfirm({message:(0,p.i18n)("user.feature_topic_on_profile.clear.warning"),didConfirm:()=>(0,c.ajax)(`/u/${this.model.username}/clear-featured-topic`,{type:"PUT"}).then(()=>{this.model.set("featured_topic",null)}).catch(u.popupAjaxError)})}static #A=(()=>dt7948.n(this.prototype,"clearFeaturedTopicFromProfile",[n.action]))();useCurrentTimezone(){this.model.set("user_option.timezone",moment.tz.guess(!0))}static #E=(()=>dt7948.n(this.prototype,"useCurrentTimezone",[n.action]))();_updateUserFields(){let e=this.model,t=this.userFields;if(!(0,a.isEmpty)(t)){let i=e.get("user_fields");(0,a.isEmpty)(i)||t.forEach(function(e){let t=e.get("value");i[e.get("field.id").toString()]=(0,a.isEmpty)(t)?null:t})}}static #D=(()=>dt7948.n(this.prototype,"_updateUserFields",[n.action]))();save(){return this.set("saved",!1),this.send("_updateUserFields"),this.model.save(this.saveAttrNames).then(e=>{let{user:t}=e;return this.model.set("bio_cooked",t.bio_cooked)}).catch(u.popupAjaxError).finally(()=>{this.currentUser.set("needs_required_fields_check",!1),this.set("saved",!0)})}static #P=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},65959:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(80500),l=i(69763),c=i(90245),u=i(31555),d=i(26212),p=i(47844),h=i(34560),m=i(88355),g=i(63748),f=i(87353),_=i(81386),y=i(59864),b=i(843);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();loading=!1;dirty=!1;errorMessage=null;newUsername=null;static #l=(()=>dt7948.g(this.prototype,"backupEnabled",[(0,r.alias)("model.second_factor_backup_enabled")]))();#s9=(()=>void dt7948.i(this,"backupEnabled"))();secondFactorMethod=(()=>y.SECOND_FACTOR_METHODS.TOTP)();totps=[];security_keys=[];get isCurrentUser(){return this.currentUser?.id===this.model.id}hasOAuth(){return(0,_.findAll)().length>0}static #c=(()=>dt7948.n(this.prototype,"hasOAuth",[g.default]))();displayOAuthWarning(){return this.hasOAuth&&this.siteSettings.enforce_second_factor_on_external_auth}static #u=(()=>dt7948.n(this.prototype,"displayOAuthWarning",[g.default]))();showEnforcedWithOAuthNotice(e){return e&&e.enforcedSecondFactor&&this.hasOAuth&&!this.siteSettings.enforce_second_factor_on_external_auth}static #d=(()=>dt7948.n(this.prototype,"showEnforcedWithOAuthNotice",[(0,g.default)("currentUser")]))();showEnforcedNotice(e){return e&&e.enforcedSecondFactor&&this.siteSettings.enforce_second_factor_on_external_auth}static #p=(()=>dt7948.n(this.prototype,"showEnforcedNotice",[(0,g.default)("currentUser")]))();hasSecondFactors(e,t){return e.length>0||t.length>0}static #h=(()=>dt7948.n(this.prototype,"hasSecondFactors",[(0,g.default)("totps","security_keys")]))();async createToTpModal(){try{await this.modal.show(u.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}catch(e){(0,m.popupAjaxError)(e)}}async createSecurityKeyModal(){try{await this.modal.show(c.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:this.markDirty,onError:this.handleError}}),this.loadSecondFactors()}catch(e){(0,m.popupAjaxError)(e)}}handleError(e){if(e.jqXHR&&(e=e.jqXHR),"invalid_access"===e.responseJSON.error_type){let e=this.model.username.toLowerCase();f.default.redirectTo((0,f.userPath)(`${e}/preferences/second-factor`))}else(0,m.popupAjaxError)(e)}static #m=(()=>dt7948.n(this.prototype,"handleError",[n.action]))();setBackupEnabled(e){this.set("backupEnabled",e)}static #g=(()=>dt7948.n(this.prototype,"setBackupEnabled",[n.action]))();setCodesRemaining(e){this.model.set("second_factor_remaining_backup_codes",e)}static #A=(()=>dt7948.n(this.prototype,"setCodesRemaining",[n.action]))();loadSecondFactors(){!1!==this.dirty&&(this.set("loading",!0),this.model.loadSecondFactorCodes().then(e=>{if(e.error){this.set("errorMessage",e.error);return}this.setProperties({errorMessage:null,totps:e.totps,security_keys:e.security_keys,dirty:!1})}).catch(e=>this.handleError(e)).finally(()=>this.set("loading",!1)))}static #E=(()=>dt7948.n(this.prototype,"loadSecondFactors",[n.action]))();markDirty(){this.set("dirty",!0)}static #D=(()=>dt7948.n(this.prototype,"markDirty",[n.action]))();async createTotp(){try{(await this.model.trustedSession()).success?await this.createToTpModal():this.dialog.dialog({title:(0,b.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.createToTpModal()})}catch(e){(0,m.popupAjaxError)(e)}}static #P=(()=>dt7948.n(this.prototype,"createTotp",[n.action]))();async createSecurityKey(){try{(await this.model.trustedSession()).success?await this.createSecurityKeyModal():this.dialog.dialog({title:(0,b.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.createSecurityKeyModal()})}catch(e){(0,m.popupAjaxError)(e)}}static #Q=(()=>dt7948.n(this.prototype,"createSecurityKey",[n.action]))();disableAllSecondFactors(){this.loading||this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.disable_confirm"),bodyComponent:l.default,bodyComponentModel:{totps:this.totps,security_keys:this.security_keys},confirmButtonLabel:"user.second_factor.disable",confirmButtonDisabled:!0,confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.model.disableAllSecondFactors().then(()=>{let e=this.model.username.toLowerCase();f.default.redirectTo((0,f.userPath)(`${e}/preferences`))}).catch(e=>this.handleError(e)).finally(()=>this.set("loading",!1))}})}static #J=(()=>dt7948.n(this.prototype,"disableAllSecondFactors",[n.action]))();disableSingleSecondFactor(e){if(1===this.totps.concat(this.security_keys).length){this.send("disableAllSecondFactors");return}this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.delete_single_confirm_title"),message:(0,b.i18n)("user.second_factor.delete_single_confirm_message",{name:e.name}),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.totps.includes(e)&&this.currentUser.updateSecondFactor(e.id,e.name,!0,e.method).then(t=>{t.error||(this.markDirty(),this.set("totps",this.totps.filter(t=>t.id!==e.id||t.method!==e.method)))}).catch(e=>this.handleError(e)).finally(()=>{this.set("loading",!1)}),this.security_keys.includes(e)&&this.currentUser.updateSecurityKey(e.id,e.name,!0).then(t=>{t.error||(this.markDirty(),this.set("security_keys",this.security_keys.filter(t=>t.id!==e.id)))}).catch(e=>this.handleError(e)).finally(()=>{this.set("loading",!1)})}})}static #X=(()=>dt7948.n(this.prototype,"disableSingleSecondFactor",[n.action]))();disableSecondFactorBackup(){this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.delete_backup_codes_confirm_title"),message:(0,b.i18n)("user.second_factor.delete_backup_codes_confirm_message"),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.set("backupCodes",[]),this.set("loading",!0),this.model.updateSecondFactor(0,"",!0,y.SECOND_FACTOR_METHODS.BACKUP_CODE).then(e=>{if(e.error){this.set("errorMessage",e.error);return}this.set("errorMessage",null),this.model.set("second_factor_backup_enabled",!1),this.markDirty(),this.send("closeModal")}).catch(e=>{this.send("closeModal"),this.onError(e)}).finally(()=>this.set("loading",!1))}})}static #Z=(()=>dt7948.n(this.prototype,"disableSecondFactorBackup",[n.action]))();async editSecurityKey(e){await this.modal.show(h.default,{model:{securityKey:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}static #ee=(()=>dt7948.n(this.prototype,"editSecurityKey",[n.action]))();async editSecondFactor(e){await this.modal.show(p.default,{model:{secondFactor:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}static #et=(()=>dt7948.n(this.prototype,"editSecondFactor",[n.action]))();async editSecondFactorBackup(){await this.modal.show(d.default,{model:{secondFactor:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e),setBackupEnabled:e=>this.setBackupEnabled(e),setCodesRemaining:e=>this.setCodesRemaining(e)}})}static #ei=(()=>dt7948.n(this.prototype,"editSecondFactorBackup",[n.action]))()}},22437:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(80500),l=i(81031),c=i(6864),u=i(88355),d=i(17358),p=i(82805),h=i(63748),m=i(63464),g=i(87353),f=i(98988),_=i(843);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #c=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,p.setting)("moderators_view_emails")]))();#oj=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();passwordProgress=null;subpageTitle=(()=>(0,_.i18n)("user.preferences_nav.security"))();showAllAuthTokens=!1;static #u=(()=>dt7948.g(this.prototype,"canShowAllAuthTokens",[(0,r.gt)("model.user_auth_tokens.length",2)]))();#ld=(()=>void dt7948.i(this,"canShowAllAuthTokens"))();get canCheckEmails(){return new d.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #d=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,n.computed)("model.id","currentUser.id")]))();get isCurrentUser(){return this.currentUser?.id===this.model.id}get canUsePasskeys(){return!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,f.isWebauthnSupported)()}canChangePassword(e){return!e&&!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins}static #p=(()=>dt7948.n(this.prototype,"canChangePassword",[(0,h.default)("model.is_anonymous")]))();authTokens(e,t){return t.sort((e,t)=>e.is_active?-1:t.is_active?1:t.seen_at.localeCompare(e.seen_at)),e?t:t.slice(0,2)}static #h=(()=>dt7948.n(this.prototype,"authTokens",[(0,h.default)("showAllAuthTokens","model.user_auth_tokens")]))();changePassword(e){if(e?.preventDefault(),!this.passwordProgress)return this.set("passwordProgress",(0,_.i18n)("user.change_password.in_progress")),this.model.changePassword().then(()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:(0,_.i18n)("user.change_password.success")})}).catch(()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:(0,_.i18n)("user.change_password.error")})})}static #m=(()=>dt7948.n(this.prototype,"changePassword",[n.action]))();toggleShowAllAuthTokens(e){e?.preventDefault(),this.toggleProperty("showAllAuthTokens")}static #g=(()=>dt7948.n(this.prototype,"toggleShowAllAuthTokens",[n.action]))();revokeAuthToken(e,t){t?.preventDefault(),(0,c.ajax)((0,g.userPath)(`${this.get("model.username_lower")}/preferences/revoke-auth-token`),{type:"POST",data:e?{token_id:e.id}:{}}).then(()=>{e||(0,m.default)()}).catch(u.popupAjaxError)}static #A=(()=>dt7948.n(this.prototype,"revokeAuthToken",[n.action]))();async manage2FA(){try{(await this.model.trustedSession()).success?await this.router.transitionTo("preferences.second-factor"):this.dialog.dialog({title:(0,_.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.router.transitionTo("preferences.second-factor")})}catch(e){(0,u.popupAjaxError)(e)}}static #E=(()=>dt7948.n(this.prototype,"manage2FA",[n.action]))();save(){return this.set("saved",!1),this.model.then(()=>this.set("saved",!0)).catch(u.popupAjaxError)}static #D=(()=>dt7948.n(this.prototype,"save",[n.action]))();showToken(e){this.modal.show(l.default,{model:e})}static #P=(()=>dt7948.n(this.prototype,"showToken",[n.action]))()}},81926:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(35533),r=i(88355),o=i(63748);class a extends s.default{saveAttrNames=["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"];selectedTags(e,t,i,s){return[].concat(e,t,i,s).filter(e=>e)}static #e=(()=>dt7948.n(this.prototype,"selectedTags",[(0,o.default)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]")]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(r.popupAjaxError)}static #i=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},10814:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(88355),l=i(23777),c=i(843);let u=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"saved",[s.tracked],function(){return!1}))();#lr=(()=>void dt7948.i(this,"saved"))();static #l=(()=>dt7948.g(this.prototype,"customAttrNames",[s.tracked],function(){return[]}))();#lp=(()=>void dt7948.i(this,"customAttrNames"))();likeNotificationFrequencies=(()=>[{name:(0,c.i18n)("user.like_notification_frequency.always"),value:0},{name:(0,c.i18n)("user.like_notification_frequency.first_time_and_daily"),value:1},{name:(0,c.i18n)("user.like_notification_frequency.first_time"),value:2},{name:(0,c.i18n)("user.like_notification_frequency.never"),value:3}])();autoTrackDurations=(()=>[{name:(0,c.i18n)("user.auto_track_options.never"),value:-1},{name:(0,c.i18n)("user.auto_track_options.immediately"),value:0},{name:(0,c.i18n)("user.auto_track_options.after_30_seconds"),value:3e4},{name:(0,c.i18n)("user.auto_track_options.after_1_minute"),value:6e4},{name:(0,c.i18n)("user.auto_track_options.after_2_minutes"),value:12e4},{name:(0,c.i18n)("user.auto_track_options.after_3_minutes"),value:18e4},{name:(0,c.i18n)("user.auto_track_options.after_4_minutes"),value:24e4},{name:(0,c.i18n)("user.auto_track_options.after_5_minutes"),value:3e5},{name:(0,c.i18n)("user.auto_track_options.after_10_minutes"),value:6e5}])();notificationLevelsForReplying=(()=>[{name:(0,c.i18n)("user.notification_level_when_replying.watch_topic"),value:l.NotificationLevels.WATCHING},{name:(0,c.i18n)("user.notification_level_when_replying.track_topic"),value:l.NotificationLevels.TRACKING},{name:(0,c.i18n)("user.notification_level_when_replying.do_nothing"),value:l.NotificationLevels.REGULAR}])();considerNewTopicOptions=(()=>[{name:(0,c.i18n)("user.new_topic_duration.not_viewed"),value:-1},{name:(0,c.i18n)("user.new_topic_duration.after_1_day"),value:1440},{name:(0,c.i18n)("user.new_topic_duration.after_2_days"),value:2880},{name:(0,c.i18n)("user.new_topic_duration.after_1_week"),value:10080},{name:(0,c.i18n)("user.new_topic_duration.after_2_weeks"),value:20160},{name:(0,c.i18n)("user.new_topic_duration.last_here"),value:-2}])();get canSee(){return this.currentUser.id===this.model.id}get selectedTags(){return[].concat(this.model.watched_tags,this.model.watching_first_post_tags,this.model.tracked_tags,this.model.muted_tags).filter(e=>e)}static #c=(()=>dt7948.n(this.prototype,"selectedTags",[(0,r.computed)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]")]))();get showMutePrecedenceSetting(){let e=this.model.watchedCategories?.length>0&&this.model.muted_tags?.length>0||this.model.watched_tags?.length>0&&this.model.mutedCategories?.length>0;return e&&null===this.model.user_option.watched_precedence_over_muted&&(this.model.user_option.watched_precedence_over_muted=this.siteSettings.watched_precedence_over_muted),e}static #u=(()=>dt7948.n(this.prototype,"showMutePrecedenceSetting",[(0,r.computed)("model.watchedCategories","model.mutedCategories","model.watched_tags.[]","model.muted_tags.[]")]))();get selectedCategories(){return[].concat(this.model.watchedCategories,this.model.watchedFirstPostCategories,this.model.trackedCategories,this.siteSettings.mute_all_categories_by_default?this.model.regularCategories:this.model.mutedCategories).filter(Boolean)}static #d=(()=>dt7948.n(this.prototype,"selectedCategories",[(0,r.computed)("model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories","siteSettings.mute_all_categories_by_default")]))();get hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest}static #p=(()=>dt7948.n(this.prototype,"hideMutedTags",[(0,r.computed)("siteSettings.remove_muted_tags_from_latest")]))();get canSave(){return this.canSee||this.currentUser.admin}get saveAttrNames(){let e=["new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying",this.siteSettings.mute_all_categories_by_default?"regular_category_ids":"muted_category_ids","watched_category_ids","tracked_category_ids","watched_first_post_category_ids","watched_precedence_over_muted","topics_unread_when_closed"];return this.siteSettings.tagging_enabled&&e.push("muted_tags","tracked_tags","watched_tags","watching_first_post_tags"),this.customAttrNames?.length>0&&e.push(...this.customAttrNames),e}static #h=(()=>dt7948.n(this.prototype,"saveAttrNames",[(0,r.computed)("siteSettings.tagging_enabled","siteSettings.mute_all_categories_by_default","customAttrNames")]))();save(){return this.saved=!1,this.model.save(this.saveAttrNames).then(()=>this.saved=!0).catch(a.popupAjaxError)}static #m=(()=>dt7948.n(this.prototype,"save",[r.action]))()}},37747:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(30574),o=i(88355),a=i(63748),l=i(65573);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"allowPmUsersEnabled",[(0,r.and)("model.user_option.enable_allowed_pm_users","model.user_option.allow_private_messages")]))();#lh=(()=>void dt7948.i(this,"allowPmUsersEnabled"))();init(){super.init(...arguments),this.saveAttrNames=["allow_private_messages","muted_usernames","allowed_pm_usernames","enable_allowed_pm_users"]}get mutedUsernames(){let e=this.model.muted_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,l.makeArray)(e).uniq()}static #i=(()=>dt7948.n(this.prototype,"mutedUsernames",[(0,n.computed)("model.muted_usernames")]))();get allowedPmUsernames(){let e=this.model.allowed_pm_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,l.makeArray)(e).uniq()}static #s=(()=>dt7948.n(this.prototype,"allowedPmUsernames",[(0,n.computed)("model.allowed_pm_usernames")]))();onChangeMutedUsernames(e){this.model.set("muted_usernames",e.uniq().join(","))}static #l=(()=>dt7948.n(this.prototype,"onChangeMutedUsernames",[n.action]))();onChangeAllowedPmUsernames(e){this.model.set("allowed_pm_usernames",e.uniq().join(","))}static #c=(()=>dt7948.n(this.prototype,"onChangeAllowedPmUsernames",[n.action]))();disableAllowPmUsersSetting(e){return!e}static #u=(()=>dt7948.n(this.prototype,"disableAllowPmUsersSetting",[(0,a.default)("model.user_option.allow_private_messages")]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>this.set("saved",!0)).catch(o.popupAjaxError)}static #d=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},43989:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(28418),n=i(35533),r=i(62053),o=i(94480),a=i(75983),l=i(63748),c=i(843);class u extends s.default{queryParams=["priority","type","status","category_id","topic_id","username","reviewed_by","from_date","to_date","sort_order","additional_filters","flagged_by","score_type"];type=null;status="pending";priority=this.siteSettings.reviewable_default_visibility;category_id=null;reviewables=null;topic_id=null;filtersExpanded=this.site.desktopView;username="";reviewed_by="";flagged_by="";from_date=null;to_date=null;sort_order=null;additional_filters=null;filterScoreType=null;allTypes(){return(this.reviewableTypes||[]).map(e=>{let t=(0,o.underscore)(e).replace(/[^\w]+/g,"_");return{id:e,name:(0,c.i18n)(`review.types.${t}.title`)}})}static #e=(()=>dt7948.n(this.prototype,"allTypes",[(0,l.default)("reviewableTypes")]))();allScoreTypes(){return this.scoreTypes||[]}static #i=(()=>dt7948.n(this.prototype,"allScoreTypes",[(0,l.default)("scoreTypes")]))();priorities(){return["any","low","medium","high"].map(e=>({id:e,name:(0,c.i18n)(`review.filters.priority.${e}`)}))}static #s=(()=>dt7948.n(this.prototype,"priorities",[l.default]))();sortOrders(){return["score","score_asc","created_at","created_at_asc"].map(e=>({id:e,name:(0,c.i18n)(`review.filters.orders.${e}`)}))}static #l=(()=>dt7948.n(this.prototype,"sortOrders",[l.default]))();statuses(){return["pending","approved","rejected","deleted","ignored","reviewed","all"].map(e=>({id:e,name:(0,c.i18n)(`review.statuses.${e}.title`)}))}static #c=(()=>dt7948.n(this.prototype,"statuses",[l.default]))();toggleFiltersIcon(e){return e?"chevron-up":"chevron-down"}static #u=(()=>dt7948.n(this.prototype,"toggleFiltersIcon",[(0,l.default)("filtersExpanded")]))();setRange(e){this.setProperties(e)}refreshModel(){(0,r.next)(()=>this.send("refreshRoute"))}remove(e){if(!e)return;let t=this.reviewables.reject(t=>e.includes(t.id));0===t.length?this.refreshModel():this.reviewables.setObjects(t)}static #d=(()=>dt7948.n(this.prototype,"remove",[n.action]))();resetTopic(){this.set("topic_id",null),this.refreshModel()}static #p=(()=>dt7948.n(this.prototype,"resetTopic",[n.action]))();refresh(){let e=this.status,t=this.filterStatus,i=this.sort_order,s=this.filterSortOrder,n=["reviewed","all"],r=["approved","rejected","deleted","ignored","pending"];n.includes(e)&&"created_at"===i&&r.includes(t)&&"created_at"===s&&(s="score"),r.includes(e)&&"score"===i&&n.includes(t)&&"score"===s&&(s="created_at"),this.setProperties({type:this.filterType,priority:this.filterPriority,status:this.filterStatus,category_id:this.filterCategoryId,username:this.filterUsername,reviewed_by:this.filterReviewedBy,flagged_by:this.filterFlaggedBy,score_type:this.filterScoreType,from_date:(0,a.isPresent)(this.filterFromDate)?this.filterFromDate.toISOString(!0).split("T")[0]:null,to_date:(0,a.isPresent)(this.filterToDate)?this.filterToDate.toISOString(!0).split("T")[0]:null,sort_order:s,additional_filters:JSON.stringify(this.additionalFilters)}),this.refreshModel()}static #h=(()=>dt7948.n(this.prototype,"refresh",[n.action]))();loadMore(){return this.reviewables.loadMore()}static #m=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();toggleFilters(){this.toggleProperty("filtersExpanded")}static #g=(()=>dt7948.n(this.prototype,"toggleFilters",[n.action]))();updateFilterReviewedBy(e){this.set("filterReviewedBy",e.firstObject)}static #A=(()=>dt7948.n(this.prototype,"updateFilterReviewedBy",[n.action]))();updateFilterFlaggedBy(e){this.set("filterFlaggedBy",e.firstObject)}static #E=(()=>dt7948.n(this.prototype,"updateFilterFlaggedBy",[n.action]))();updateFilterUsername(e){this.set("filterUsername",e.firstObject)}static #D=(()=>dt7948.n(this.prototype,"updateFilterUsername",[n.action]))()}},78744:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(28418),n=i(35533),r=i(6864),o=i(88355),a=i(63748),l=i(843);class c extends s.default{saving=!1;saved=!1;save(){let e={};this.scoreTypes.forEach(t=>{e[t.id]=parseFloat(t.reviewable_priority)}),this.set("saving",!0),(0,r.ajax)("/review/settings",{type:"PUT",data:{reviewable_priorities:e}}).then(()=>{this.set("saved",!0)}).catch(o.popupAjaxError).finally(()=>this.set("saving",!1))}static #e=(()=>dt7948.n(this.prototype,"save",[n.action]))();scoreTypes(e){let t=(0,l.i18n)("review.example_username");return e.map(e=>({...e,title:e.title.replace("%{username}",t)}))}static #i=(()=>dt7948.n(this.prototype,"scoreTypes",[(0,a.default)("settings.reviewable_score_types")]))()}},55957:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(28418),n=i(35533),r=i(30574),o=i(6864),a=i(88355),l=i(63748),c=i(87353),u=i(98988),d=i(59864),p=i(843);let{TOTP:h,BACKUP_CODE:m,SECURITY_KEY:g}=d.SECOND_FACTOR_METHODS;class f extends s.default{TOTP=(()=>h)();BACKUP_CODE=(()=>m)();SECURITY_KEY=(()=>g)();queryParams=["nonce"];message=null;loadError=!1;messageIsError=!1;secondFactorToken=null;userSelectedMethod=null;static #e=(()=>dt7948.g(this.prototype,"totpEnabled",[(0,r.readOnly)("model.totp_enabled")]))();#s5=(()=>void dt7948.i(this,"totpEnabled"))();static #i=(()=>dt7948.g(this.prototype,"backupCodesEnabled",[(0,r.readOnly)("model.backup_enabled")]))();#lm=(()=>void dt7948.i(this,"backupCodesEnabled"))();static #s=(()=>dt7948.g(this.prototype,"securityKeysEnabled",[(0,r.readOnly)("model.security_keys_enabled")]))();#lg=(()=>void dt7948.i(this,"securityKeysEnabled"))();static #l=(()=>dt7948.g(this.prototype,"allowedMethods",[(0,r.readOnly)("model.allowed_methods")]))();#lf=(()=>void dt7948.i(this,"allowedMethods"))();static #c=(()=>dt7948.g(this.prototype,"customDescription",[(0,r.readOnly)("model.description")]))();#l_=(()=>void dt7948.i(this,"customDescription"))();static #u=(()=>dt7948.g(this.prototype,"showTotpForm",[(0,r.equal)("shownSecondFactorMethod",h)]))();#ly=(()=>void dt7948.i(this,"showTotpForm"))();static #d=(()=>dt7948.g(this.prototype,"showSecurityKeyForm",[(0,r.equal)("shownSecondFactorMethod",g)]))();#lb=(()=>void dt7948.i(this,"showSecurityKeyForm"))();static #p=(()=>dt7948.g(this.prototype,"showBackupCodesForm",[(0,r.equal)("shownSecondFactorMethod",m)]))();#lv=(()=>void dt7948.i(this,"showBackupCodesForm"))();totpAvailable(){return this.totpEnabled&&this.allowedMethods.includes(h)}static #h=(()=>dt7948.n(this.prototype,"totpAvailable",[(0,l.default)("allowedMethods.[]","totpEnabled")]))();backupCodesAvailable(){return this.backupCodesEnabled&&this.allowedMethods.includes(m)}static #m=(()=>dt7948.n(this.prototype,"backupCodesAvailable",[(0,l.default)("allowedMethods.[]","backupCodesEnabled")]))();securityKeysAvailable(){return this.securityKeysEnabled&&this.allowedMethods.includes(g)}static #g=(()=>dt7948.n(this.prototype,"securityKeysAvailable",[(0,l.default)("allowedMethods.[]","securityKeysEnabled")]))();shownSecondFactorMethod(e,t,i,s){if(null!==e)return e;if(t)return g;if(i)return h;if(s)return m;throw Error("unexpected state of user 2fa settings!")}static #A=(()=>dt7948.n(this.prototype,"shownSecondFactorMethod",[(0,l.default)("userSelectedMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable")]))();alternativeMethods(e,t,i,s){let n=[];return t&&e!==g&&n.push({id:g,translationKey:"login.second_factor_toggle.security_key",class:"security-key"}),i&&e!==h&&n.push({id:h,translationKey:"login.second_factor_toggle.totp",class:"totp"}),s&&e!==m&&n.push({id:m,translationKey:"login.second_factor_toggle.backup_code",class:"backup-code"}),n}static #E=(()=>dt7948.n(this.prototype,"alternativeMethods",[(0,l.default)("shownSecondFactorMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable")]))();secondFactorTitle(e){switch(e){case h:case g:return(0,p.i18n)("login.second_factor_title");case m:return(0,p.i18n)("login.second_factor_backup_title")}}static #D=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,l.default)("shownSecondFactorMethod")]))();secondFactorDescription(e){switch(e){case h:return(0,p.i18n)("login.second_factor_description");case g:return(0,p.i18n)("login.security_key_description");case m:return(0,p.i18n)("login.second_factor_backup_description")}}static #P=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,l.default)("shownSecondFactorMethod")]))();alertClass(e){return e?"alert-error":"alert-success"}static #Q=(()=>dt7948.n(this.prototype,"alertClass",[(0,l.default)("messageIsError")]))();inputFormClass(e,t){return e?"totp-token":t?"backup-code-token":void 0}static #J=(()=>dt7948.n(this.prototype,"inputFormClass",[(0,l.default)("showTotpForm","showBackupCodesForm")]))();resetState(){this.set("message",null),this.set("messageIsError",!1),this.set("secondFactorToken",null),this.set("userSelectedMethod",null),this.set("loadError",!1)}displayError(e){this.set("message",e),this.set("messageIsError",!0)}displaySuccess(e){this.set("message",e),this.set("messageIsError",!1)}verifySecondFactor(e){return(0,o.ajax)("/session/2fa",{type:"POST",data:{...e,second_factor_method:this.shownSecondFactorMethod,nonce:this.nonce}}).then(e=>{this.displaySuccess((0,p.i18n)("second_factor_auth.redirect_after_success")),(0,o.ajax)(e.callback_path,{type:e.callback_method,data:{second_factor_nonce:this.nonce,...e.callback_params}}).then(t=>{let i=t.redirect_url||e.redirect_url;c.default.routeTo(i)}).catch(e=>this.displayError((0,a.extractError)(e)))}).catch(e=>{this.displayError((0,a.extractError)(e))})}useAnotherMethod(e,t){t?.preventDefault(),this.set("userSelectedMethod",e)}static #X=(()=>dt7948.n(this.prototype,"useAnotherMethod",[n.action]))();authenticateSecurityKey(){(0,u.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.verifySecondFactor({second_factor_token:e})},e=>{this.displayError(e)})}static #Z=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[n.action]))();authenticateToken(){this.verifySecondFactor({second_factor_token:this.secondFactorToken})}static #ee=(()=>dt7948.n(this.prototype,"authenticateToken",[n.action]))()}},62556:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>E});var s=i(8554),n=i(62459),r=i(28418),o=i(35533),a=i(4959),l=i(30574),c=i(83133),u=i(75983),d=i(42064),p=i(24571),h=i(6864),m=i(82805),g=i(61004),f=i(46301),_=i(63748),y=i(80706),b=i(87353),w=i(78061),k=i(42236),T=i(91004),S=i(4054),C=i(81386),x=i(59864),A=i(843);class E extends r.default.extend(T.default,S.default){static #e=(()=>dt7948.g(this.prototype,"site",[c.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[c.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"login",[c.service]))();#t2=(()=>void dt7948.i(this,"login"))();static #l=(()=>dt7948.g(this.prototype,"accountUsername",[s.tracked]))();#iB=(()=>void dt7948.i(this,"accountUsername"))();static #c=(()=>dt7948.g(this.prototype,"isDeveloper",[s.tracked],function(){return!1}))();#ij=(()=>void dt7948.i(this,"isDeveloper"))();accountChallenge=0;accountHoneypot=0;formSubmitted=!1;rejectedEmails=(()=>(0,n.A)())();prefilledUsername=null;userFields=null;maskPassword=!0;passwordValidationVisible=!1;emailValidationVisible=!1;nameValidationHelper=(()=>new y.default(this))();usernameValidationHelper=(()=>new w.default(this))();static #u=(()=>dt7948.g(this.prototype,"hasAuthOptions",[(0,l.notEmpty)("authOptions")]))();#i$=(()=>void dt7948.i(this,"hasAuthOptions"))();static #d=(()=>dt7948.g(this.prototype,"canCreateLocal",[(0,m.setting)("enable_local_logins")]))();#iq=(()=>void dt7948.i(this,"canCreateLocal"))();static #p=(()=>dt7948.g(this.prototype,"requireInviteCode",[(0,m.setting)("require_invite_code")]))();#iV=(()=>void dt7948.i(this,"requireInviteCode"))();init(){super.init(...arguments),(0,g.default)("email")&&this.set("accountEmail",(0,g.default)("email")),this.fetchConfirmationValue()}get usernameValidation(){return this.usernameValidationHelper.usernameValidation}static #h=(()=>dt7948.n(this.prototype,"usernameValidation",[a.dependentKeyCompat]))();get nameTitle(){return this.nameValidationHelper.nameTitle}get nameValidation(){return this.nameValidationHelper.nameValidation}get forceValidationReason(){return this.nameValidationHelper.forceValidationReason}static #m=(()=>dt7948.n(this.prototype,"forceValidationReason",[a.dependentKeyCompat]))();actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}static #g=(()=>dt7948.n(this.prototype,"actionOnEnter",[_.bind]))();selectKitFocus(e){let t=document.getElementById(e.target.getAttribute("for"));t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())}static #A=(()=>dt7948.n(this.prototype,"selectKitFocus",[_.bind]))();showCreateForm(e,t,i){return(e||t)&&!i}static #E=(()=>dt7948.n(this.prototype,"showCreateForm",[(0,_.default)("hasAuthOptions","canCreateLocal","skipConfirmation")]))();showExternalLoginButtons(e,t){return e&&!t}static #D=(()=>dt7948.n(this.prototype,"showExternalLoginButtons",[(0,_.default)("site.desktopView","hasAuthOptions")]))();submitDisabled(){return this.formSubmitted}static #P=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,_.default)("formSubmitted")]))();bodyClasses(e,t,i){let s=[];return e&&s.push("has-user-fields"),t&&!i&&s.push("has-alt-auth"),this.canCreateLocal||s.push("no-local-logins"),s.join(" ")}static #Q=(()=>dt7948.n(this.prototype,"bodyClasses",[(0,_.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions")]))();usernameDisabled(e,t){return e&&!t}static #J=(()=>dt7948.n(this.prototype,"usernameDisabled",[(0,_.default)("authOptions","authOptions.can_edit_username")]))();nameDisabled(e,t){return e&&!t}static #X=(()=>dt7948.n(this.prototype,"nameDisabled",[(0,_.default)("authOptions","authOptions.can_edit_name")]))();showFullname(){return this.site.full_name_visible_in_signup}static #Z=(()=>dt7948.n(this.prototype,"showFullname",[_.default]))();fullnameRequired(){return this.site.full_name_required_for_signup}static #ee=(()=>dt7948.n(this.prototype,"fullnameRequired",[_.default]))();showEmailValidation(e,t,i){return e||t&&i}static #et=(()=>dt7948.n(this.prototype,"showEmailValidation",[(0,_.default)("emailValidation.ok","emailValidation.reason","emailValidationVisible")]))();showPasswordValidation(e,t,i){return e||t&&i}static #ei=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,_.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();showUsernameInstructions(e){return this.siteSettings.show_signup_form_username_instructions&&!e}static #es=(()=>dt7948.n(this.prototype,"showUsernameInstructions",[(0,_.default)("usernameValidation.reason")]))();passwordRequired(e){return(0,u.isEmpty)(e)}static #en=(()=>dt7948.n(this.prototype,"passwordRequired",[(0,_.default)("authOptions.auth_provider")]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,A.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #er=(()=>dt7948.n(this.prototype,"disclaimerHtml",[_.default]))();emailValidation(e,t,i,s,n){let r={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===i&&t?t:(0,u.isEmpty)(i)?o.default.create(Object.assign(r,{message:(0,A.i18n)("user.email.required"),reason:n?(0,A.i18n)("user.email.required"):null})):s.includes(i)||!(0,k.emailValid)(i)?o.default.create(Object.assign(r,{reason:(0,A.i18n)("user.email.invalid")})):this.get("authOptions.email")===i&&this.get("authOptions.email_valid")?o.default.create({ok:!0,reason:(0,A.i18n)("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("authOptions.auth_provider"))})}):o.default.create({ok:!0,reason:(0,A.i18n)("user.email.ok")})}static #eo=(()=>dt7948.n(this.prototype,"emailValidation",[(0,_.default)("serverAccountEmail","serverEmailValidation","accountEmail","rejectedEmails.[]","forceValidationReason")]))();setAccountUsername(e){this.accountUsername=e.target.value}static #ea=(()=>dt7948.n(this.prototype,"setAccountUsername",[o.action]))();togglePasswordValidation(){this.passwordValidation.reason?this.set("passwordValidationVisible",!0):this.set("passwordValidationVisible",!1)}static #el=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[o.action]))();checkEmailAvailability(){if(this.emailValidation.reason?this.set("emailValidationVisible",!0):this.set("emailValidationVisible",!1),this.emailValidation.ok&&this.serverAccountEmail!==this.accountEmail)return x.default.checkEmail(this.accountEmail).then(e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:o.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:o.default.create({ok:!0,reason:(0,A.i18n)("user.email.ok")})}))}).catch(()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})})}static #ec=(()=>dt7948.n(this.prototype,"checkEmailAvailability",[o.action]))();emailDisabled(){return this.get("authOptions.email")===this.accountEmail&&this.get("authOptions.email_valid")}static #eu=(()=>dt7948.n(this.prototype,"emailDisabled",[(0,_.default)("accountEmail","authOptions.email","authOptions.email_valid")]))();authProviderDisplayName(e){let t=(0,C.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.accountUsername===this.prefilledUsername&&(this.accountUsername=""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,u.isEmpty)(this.accountUsername)||this.get("authOptions.email"))&&(0,f.default)(this,this.usernameValidationHelper.fetchExistingUsername,500)}static #ed=(()=>dt7948.n(this.prototype,"prefillUsername",[(0,d.observes)("emailValidation","accountEmail")]))();hasAtLeastOneLoginButton(){return(0,C.findAll)().length>0}static #ep=(()=>dt7948.n(this.prototype,"hasAtLeastOneLoginButton",[_.default]))();fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,h.ajax)("/session/hp.json").then(e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))}).finally(()=>this._hpPromise=void 0)),this._hpPromise}handleSkipConfirmation(){this.skipConfirmation&&this.performAccountCreation().finally(()=>this.set("skipConfirmation",!1))}performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then(()=>this.performAccountCreation());let e={accountName:this.accountName,accountEmail:this.accountEmail,accountPassword:this.accountPassword,accountUsername:this.accountUsername,accountChallenge:this.accountChallenge,inviteCode:this.inviteCode,accountPasswordConfirm:this.accountHoneypot},t=this.get("authOptions.destination_url");return(0,u.isEmpty)(t)||(0,g.default)("destination_url",t,{path:"/"}),(0,u.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach(t=>e.userFields[t.get("field.id")]=t.get("value"))),this.set("formSubmitted",!0),x.default.createAccount(e).then(t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.isDeveloper=!1,t.success){this._challengeExpiry=1;let t=document.querySelector("#hidden-login-form");return t&&(t.querySelector("input[name=username]").value=e.accountUsername,t.querySelector("input[name=password]").value=e.accountPassword,t.querySelector("input[name=redirect]").value=(0,b.userPath)("account-created"),t.submit()),new p.Promise(()=>{})}this.set("flash",t.message||(0,A.i18n)("create_account.failed")),t.is_developer&&(this.isDeveloper=!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors?.["user_password.password"]?.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url")}},()=>(this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url"),this.set("flash",(0,A.i18n)("create_account.failed"))))}associateHtml(e,t){if(e)return(0,A.i18n)("create_account.associate",{associate_link:e,provider:(0,A.i18n)(`login.${t}.name`)})}static #eh=(()=>dt7948.n(this.prototype,"associateHtml",[(0,_.default)("authOptions.associate_url","authOptions.auth_provider")]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #iK=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[o.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #iG=(()=>dt7948.n(this.prototype,"togglePasswordMask",[o.action]))();externalLogin(e){this.login.externalLogin(e,{signup:!0})}static #iY=(()=>dt7948.n(this.prototype,"externalLogin",[o.action]))();createAccount(){this.set("flash",""),this.nameValidationHelper.forceValidationReason=!0,this.set("emailValidationVisible",!0),this.set("passwordValidationVisible",!0);let e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find(e=>e.failed);if(e){let t=e.element;t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus());return}this.nameValidationHelper.forceValidationReason=!1,this.performAccountCreation()}static #iQ=(()=>dt7948.n(this.prototype,"createAccount",[o.action]))()}},35456:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(35533),r=i(83133);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"tagGroups",[s.inject]))();#lw=(()=>void dt7948.i(this,"tagGroups"))();onDestroy(){this.tagGroups.model.removeObject(this.model),this.router.transitionTo("tagGroups.index")}static #s=(()=>dt7948.n(this.prototype,"onDestroy",[n.action]))()}},9660:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(35533),r=i(83133);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"tagGroups",[s.inject]))();#lw=(()=>void dt7948.i(this,"tagGroups"))();onSave(){this.tagGroups.model.pushObject(this.model),this.router.transitionTo("tagGroups.index")}static #s=(()=>dt7948.n(this.prototype,"onSave",[n.action]))()}},25879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(35533),r=i(83133);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();newTagGroup(){this.router.transitionTo("tagGroups.new")}static #i=(()=>dt7948.n(this.prototype,"newTagGroup",[n.action]))()}},99032:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(33388),l=i(6864),c=i(88355),u=i(63748),d=i(843);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();sortedByCount=!0;sortedByName=!1;static #s=(()=>dt7948.g(this.prototype,"sortAlphabetically",[(0,r.alias)("siteSettings.tags_sort_alphabetically")]))();#lk=(()=>void dt7948.i(this,"sortAlphabetically"))();static #l=(()=>dt7948.g(this.prototype,"canAdminTags",[(0,r.alias)("currentUser.staff")]))();#lT=(()=>void dt7948.i(this,"canAdminTags"))();static #c=(()=>dt7948.g(this.prototype,"groupedByCategory",[(0,r.notEmpty)("model.extras.categories")]))();#lS=(()=>void dt7948.i(this,"groupedByCategory"))();static #u=(()=>dt7948.g(this.prototype,"groupedByTagGroup",[(0,r.notEmpty)("model.extras.tag_groups")]))();#lC=(()=>void dt7948.i(this,"groupedByTagGroup"))();init(){super.init(...arguments);let e=this.sortAlphabetically;this.setProperties({sortedByCount:!e,sortedByName:!!e,sortProperties:e?["id"]:["totalCount:desc","id"]})}otherTagsTitleKey(e,t){return e||t?"tagging.other_tags":"tagging.all_tags"}static #d=(()=>dt7948.n(this.prototype,"otherTagsTitleKey",[(0,u.default)("groupedByCategory","groupedByTagGroup")]))();actionsMapping(){return{manageGroups:()=>this.send("showTagGroups"),uploadTags:()=>this.send("showUploader"),deleteUnusedTags:()=>this.send("deleteUnused")}}static #p=(()=>dt7948.n(this.prototype,"actionsMapping",[u.default]))();sortByCount(e){e?.preventDefault(),this.setProperties({sortProperties:["totalCount:desc","id"],sortedByCount:!0,sortedByName:!1})}static #h=(()=>dt7948.n(this.prototype,"sortByCount",[n.action]))();sortById(e){e?.preventDefault(),this.setProperties({sortProperties:["id"],sortedByCount:!1,sortedByName:!0})}static #m=(()=>dt7948.n(this.prototype,"sortById",[n.action]))();showUploader(){this.modal.show(a.default)}static #g=(()=>dt7948.n(this.prototype,"showUploader",[n.action]))();deleteUnused(){(0,l.ajax)("/tags/unused",{type:"GET"}).then(e=>{let t=e.tags;if(0===t.length){this.dialog.alert((0,d.i18n)("tagging.delete_no_unused_tags"));return}let i=t.slice(0,20).join((0,d.i18n)("tagging.tag_list_joiner")),s=Math.max(0,t.length-20),n=0===s?i:(0,d.i18n)("tagging.delete_unused_confirmation_more_tags",{count:s,tags:i}),r=(0,d.i18n)("tagging.delete_unused_confirmation",{count:t.length,tags:n});this.dialog.deleteConfirm({message:r,confirmButtonLabel:"tagging.delete_unused",didConfirm:()=>(0,l.ajax)("/tags/unused",{type:"DELETE"}).then(()=>this.send("triggerRefresh")).catch(c.popupAjaxError)})}).catch(c.popupAjaxError)}static #A=(()=>dt7948.n(this.prototype,"deleteUnused",[n.action]))()}},7703:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(54527);class n extends s.default{queryParams=(()=>[...Object.keys(s.queryParams),{categoryParam:"category"}])()}},75805:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>z,registerCustomPostMessageCallback:()=>H,resetCustomPostMessageCallbacks:()=>V});var s=i(28418),n=i(35533),r=i(30574),o=i(62053),a=i(83133),l=i(75983),c=i(42064),u=i(24571),d=i(1453),p=i(46079),h=i(97207),m=i(42400),g=i(19192),f=i(63568),_=i(80107),y=i(43006),b=i(6864),w=i(88355),k=i(61390),T=i(64487),S=i(63748),C=i(77093),x=i(97015),A=i(53306),E=i(93805),D=i(85156),P=i(28904),M=i(10028),F=i(87353),I=i(42236),N=i(42496),O=i(27431),L=i(1559),R=i(39965),U=i(89277),j=i(19268),B=i(66492),$=i(843);let q={};function V(){q={}}function H(e,t){if(q[e])throw Error(`Error ${e} is an already registered post message!`);q[e]=t}class z extends s.default.extend((0,N.bufferedProperty)("model")){static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#Y=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"documentTitle",[a.service]))();#eC=(()=>void dt7948.i(this,"documentTitle"))();static #l=(()=>dt7948.g(this.prototype,"screenTrack",[a.service]))();#rN=(()=>void dt7948.i(this,"screenTrack"))();static #c=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #u=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #d=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #p=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #h=(()=>dt7948.g(this.prototype,"site",[a.service]))();#w=(()=>void dt7948.i(this,"site"))();static #m=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();queryParams=["filter","username_filters","replies_to_post_number"];static #g=(()=>dt7948.g(this.prototype,"canRemoveTopicFeaturedLink",[(0,r.and)("canEditTopicFeaturedLink","buffered.featured_link")]))();#lx=(()=>void dt7948.i(this,"canRemoveTopicFeaturedLink"))();static #A=(()=>dt7948.g(this.prototype,"showCategoryChooser",[(0,r.not)("model.isPrivateMessage")]))();#lA=(()=>void dt7948.i(this,"showCategoryChooser"))();static #E=(()=>dt7948.g(this.prototype,"hasError",[(0,r.or)("model.errorHtml","model.errorMessage")]))();#lE=(()=>void dt7948.i(this,"hasError"))();static #D=(()=>dt7948.g(this.prototype,"noErrorYet",[(0,r.not)("hasError")]))();#lD=(()=>void dt7948.i(this,"noErrorYet"))();static #P=(()=>dt7948.g(this.prototype,"categories",[(0,r.alias)("site.categoriesList")]))();#lP=(()=>void dt7948.i(this,"categories"))();static #Q=(()=>dt7948.g(this.prototype,"selectedPostsCount",[(0,r.alias)("selectedPostIds.length")]))();#lM=(()=>void dt7948.i(this,"selectedPostsCount"))();static #J=(()=>dt7948.g(this.prototype,"canDeselectAll",[(0,r.alias)("selectedAllPosts")]))();#lF=(()=>void dt7948.i(this,"canDeselectAll"))();static #X=(()=>dt7948.g(this.prototype,"loadedAllPosts",[(0,r.or)("model.postStream.loadedAllPosts","model.postStream.loadingLastPost")]))();#lI=(()=>void dt7948.i(this,"loadedAllPosts"))();multiSelect=!1;selectedPostIds=[];editingTopic=!1;enteredAt=null;enteredIndex=null;retrying=!1;userTriggeredProgress=null;hasScrolled=null;username_filters=null;replies_to_post_number=null;filter=null;quoteState=(()=>new P.default)();currentPostId=null;userLastReadPostNumber=null;highestPostNumber=null;_progressIndex=null;_retryInProgress=!1;_retryRateLimited=!1;_newPostsInStream=[];init(){super.init(...arguments),this.appEvents.on("post:show-revision",this,"_showRevision"),this.appEvents.on("post:created",this,()=>{this._removeDeleteOnOwnerReplyBookmarks(),this.appEvents.trigger("post-stream:refresh",{force:!0})})}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("post:show-revision",this,"_showRevision")}updateQueryParams(){let e=this.get("model.postStream.streamFilters");Object.keys(e).length>0?this.setProperties(e):this.setProperties({username_filters:null,filter:null,replies_to_post_number:null})}_titleChanged(){let e=this.get("model.title");(0,l.isEmpty)(e)||this.send("refreshTitle")}static #Z=(()=>dt7948.n(this.prototype,"_titleChanged",[(0,c.observes)("model.title","category")]))();showSharedDraftControls(e,t){return e&&t}static #ee=(()=>dt7948.n(this.prototype,"showSharedDraftControls",[(0,S.default)("model.postStream.loaded","model.is_shared_draft")]))();showSelectedPostsAtBottom(e,t){return e&&t>3}static #et=(()=>dt7948.n(this.prototype,"showSelectedPostsAtBottom",[(0,S.default)("site.mobileView","model.posts_count")]))();postsToRender(e,t){return this.capabilities.isAndroid?e:t}static #ei=(()=>dt7948.n(this.prototype,"postsToRender",[(0,S.default)("model.postStream.posts","model.postStream.postsWithPlaceholders")]))();androidLoading(e){return this.capabilities.isAndroid&&e}static #es=(()=>dt7948.n(this.prototype,"androidLoading",[(0,S.default)("model.postStream.loadingFilter")]))();pmPath(e){return this.currentUser&&this.currentUser.pmPath(e)}static #en=(()=>dt7948.n(this.prototype,"pmPath",[(0,S.default)("model")]))();_showRevision(e,t){let i=this.model.get("postStream").postForPostNumber(e);i&&i.version>1&&i.can_view_edit_history&&(0,o.schedule)("afterRender",()=>this.send("showHistory",i,t))}gotoInbox(e){let t=(0,F.userPath)(`${this.get("currentUser.username_lower")}/messages`);e&&(t=`${t}/group/${e}`),F.default.routeTo(t)}selectedQuery(){return e=>this.postSelected(e)}static #er=(()=>dt7948.n(this.prototype,"selectedQuery",[S.default]))();canEditTopicFeaturedLink(e,t){if(this.currentUser&&0===this.currentUser.trust_level||!this.siteSettings.topic_featured_link_enabled||e)return!1;let i=this.site.get("topic_featured_link_allowed_category_ids");return void 0===i||!i.length||i.includes(t)}static #eo=(()=>dt7948.n(this.prototype,"canEditTopicFeaturedLink",[(0,S.default)("model.isPrivateMessage","model.category.id")]))();featuredLinkDomain(e){return(0,M.extractLinkMeta)(e).domain}static #ea=(()=>dt7948.n(this.prototype,"featuredLinkDomain",[(0,S.default)("model")]))();canEditTags(e){return this.site.get("can_tag_topics")&&(!e||this.site.get("can_tag_pms"))}static #el=(()=>dt7948.n(this.prototype,"canEditTags",[(0,S.default)("model.isPrivateMessage")]))();canSendPms(){return this.currentUser?.can_send_private_messages}static #ec=(()=>dt7948.n(this.prototype,"canSendPms",[(0,S.default)("currentUser.can_send_private_messages")]))();minimumRequiredTags(e){return L.default.findById(e)?.minimumRequiredTags||0}static #eu=(()=>dt7948.n(this.prototype,"minimumRequiredTags",[(0,S.default)("buffered.category_id")]))();showBottomTopicMap(e,t,i){let s=e?.filter(e=>3!==e.post_type).length||0,n=!!C.isTesting||t>200;return this.siteSettings.show_bottom_topic_map&&!i&&s>_.MIN_POSTS_COUNT&&n}static #ed=(()=>dt7948.n(this.prototype,"showBottomTopicMap",[(0,S.default)("model.postStream.posts","model.word_count","model.postStream.loadingFilter")]))();_removeDeleteOnOwnerReplyBookmarks(){if(!this.model)return;let e=this.get("model.postStream.posts");e&&e.filter(e=>e.bookmarked&&e.bookmark_auto_delete_preference===O.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY).forEach(e=>{e.clearBookmark(),this.model.removeBookmark(e.bookmark_id)});let t=this.model.bookmarks.findBy("bookmarkable_type","Topic");t?.auto_delete_preference===O.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY&&this.model.removeBookmark(t.id)}_forceRefreshPostStream(){this.appEvents.trigger("post-stream:refresh",{force:!0})}_updateSelectedPostIds(e){let t=this._smallActionPostIds();this.selectedPostIds.pushObjects(e.filter(e=>!t.has(e))),this.set("selectedPostIds",[...new Set(this.selectedPostIds)]),this._forceRefreshPostStream()}_smallActionPostIds(){let e=new Set,t=this.get("model.postStream.posts");if(t&&this.site){let i=this.site.get("post_types.small_action"),s=this.site.get("post_types.whisper");t.forEach(t=>{t.post_type!==i&&(t.cooked||t.post_type!==s)||e.add(t.id)})}return e}_loadPostIds(e){if(this.loadingPostIds)return;let t=this.get("model.postStream"),i=`/t/${this.get("model.id")}/post_ids.json`;return this.set("loadingPostIds",!0),(0,b.ajax)(i,{data:(0,E.deepMerge)({post_number:e.get("post_number")},t.get("streamFilters"))}).then(t=>{t.post_ids.pushObject(e.get("id")),this._updateSelectedPostIds(t.post_ids)}).finally(()=>{this.set("loadingPostIds",!1)})}editTopic(e){e?.preventDefault(),this.get("model.details.can_edit")&&this.set("editingTopic",!0)}static #ep=(()=>dt7948.n(this.prototype,"editTopic",[n.action]))();jumpTop(e){e&&(0,x.wantsNewWindow)(e)||(e?.preventDefault(),F.default.routeTo(this.get("model.firstPostUrl"),{skipIfOnScreen:!1,keepFilter:!0}))}static #eh=(()=>dt7948.n(this.prototype,"jumpTop",[n.action]))();removeFeaturedLink(e){e?.preventDefault(),this.set("buffered.featured_link",null)}static #iK=(()=>dt7948.n(this.prototype,"removeFeaturedLink",[n.action]))();selectAll(e){e?.preventDefault();let t=this._smallActionPostIds();this.set("selectedPostIds",[...this.get("model.postStream.stream").filter(e=>!t.has(e))]),this._forceRefreshPostStream()}static #iG=(()=>dt7948.n(this.prototype,"selectAll",[n.action]))();deselectAll(e){e?.preventDefault(),this.set("selectedPostIds",[]),this._forceRefreshPostStream()}static #iY=(()=>dt7948.n(this.prototype,"deselectAll",[n.action]))();toggleMultiSelect(e){e?.preventDefault(),this.toggleProperty("multiSelect"),this._forceRefreshPostStream()}static #iQ=(()=>dt7948.n(this.prototype,"toggleMultiSelect",[n.action]))();topicCategoryChanged(e){this.set("buffered.category_id",e)}static #iJ=(()=>dt7948.n(this.prototype,"topicCategoryChanged",[n.action]))();topicTagsChanged(e){this.set("buffered.tags",e)}static #iX=(()=>dt7948.n(this.prototype,"topicTagsChanged",[n.action]))();deletePending(e){return(0,b.ajax)(`/review/${e.id}`,{type:"DELETE"}).then(()=>{this.get("model.pending_posts").removeObject(e)}).catch(w.popupAjaxError)}static #oG=(()=>dt7948.n(this.prototype,"deletePending",[n.action]))();showPostFlags(e){return this.send("showFlags",e)}static #oY=(()=>dt7948.n(this.prototype,"showPostFlags",[n.action]))();openFeatureTopic(){this.send("showFeatureTopic")}static #oQ=(()=>dt7948.n(this.prototype,"openFeatureTopic",[n.action]))();selectText(){let{postId:e,buffer:t,opts:i}=this.quoteState,s=this.get("model.postStream").findLoadedPost(e);return(s?u.Promise.resolve(s):this.get("model.postStream").loadPost(e)).then(e=>{let s=this.composer;if(!s.get("model.viewOpen")&&!this.get("model.details.can_create_post")){this.send("replyAsNewTopic",e);return}let n={action:R.default.REPLY,draftSequence:e.get("topic.draft_sequence"),draftKey:e.get("topic.draft_key")};1===e.get("post_number")?n.topic=e.get("topic"):n.post=e;let r=s.get("model.post");r&&r.get("id")!==this.get("post.id")&&(n.post=r);let o=(0,D.buildQuote)(e,t,i);if(n.quote=o,s.get("model.viewOpen"))this.appEvents.trigger("composer:insert-block",o);else if(s.get("model.viewDraft")){let e=s.get("model");e.set("reply",e.get("reply")+"\n"+o),s.openIfDraft()}else s.open(n)})}static #oJ=(()=>dt7948.n(this.prototype,"selectText",[n.action]))();fillGapBefore(e){return this.get("model.postStream").fillGapBefore(e.post,e.gap)}static #oX=(()=>dt7948.n(this.prototype,"fillGapBefore",[n.action]))();fillGapAfter(e){return this.get("model.postStream").fillGapAfter(e.post,e.gap)}static #oZ=(()=>dt7948.n(this.prototype,"fillGapAfter",[n.action]))();currentPostChanged(e){let{post:t}=e;if(!t)return;this.set("currentPostId",t.id);let i=t.get("post_number"),s=this.model;s.set("currentPost",i),i>(s.get("last_read_post_number")||0)&&(s.set("last_read_post_id",t.get("id")),s.set("last_read_post_number",i)),this.send("postChangedRoute",i),this._progressIndex=s.get("postStream").progressIndexOfPost(t),this.appEvents.trigger("topic:current-post-changed",{post:t})}static #lN=(()=>dt7948.n(this.prototype,"currentPostChanged",[n.action]))();currentPostScrolled(e){let t=this.get("model.postStream.filteredPostsCount"),i=parseFloat(this._progressIndex+e.percent-1)/t;this.appEvents.trigger("topic:current-post-scrolled",{postIndex:this._progressIndex,percent:Math.max(Math.min(i,1),0)})}static #lO=(()=>dt7948.n(this.prototype,"currentPostScrolled",[n.action]))();topVisibleChanged(e){let{post:t,refresh:i}=e;if(!t)return;let s=this.get("model.postStream"),n=s.get("posts.firstObject");(!t.get||1!==t.get("post_number"))&&n&&n===t&&s.prependMore().then(()=>i())}static #lL=(()=>dt7948.n(this.prototype,"topVisibleChanged",[n.action]))();bottomVisibleChanged(e){let{post:t,refresh:i}=e,s=this.get("model.postStream"),n=s.get("posts.lastObject");n&&n===t&&s.get("canAppendMore")&&(s.appendMore().then(()=>i()),i())}static #lR=(()=>dt7948.n(this.prototype,"bottomVisibleChanged",[n.action]))();showTopReplies(){return this.get("model.postStream").showTopReplies().then(()=>{this.updateQueryParams()})}static #lU=(()=>dt7948.n(this.prototype,"showTopReplies",[n.action]))();cancelFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.get("model.postStream");if(!e){let i=t.findLoadedPost(this.currentPostId);i?e=i.post_number:t.findPostsByIds([this.currentPostId]).then(t=>{e=t[0].post_number})}t.cancelFilter(),t.refresh({nearPost:e,forceLoad:!0}).then(()=>{F.default.routeTo(this.model.urlForPostNumber(e)),this.updateQueryParams()})}static #lj=(()=>dt7948.n(this.prototype,"cancelFilter",[n.action]))();removeAllowedUser(e){return this.get("model.details").removeAllowedUser(e).then(()=>{this.currentUser.id===e.id&&this.router.transitionTo("userPrivateMessages",e)})}static #lB=(()=>dt7948.n(this.prototype,"removeAllowedUser",[n.action]))();removeAllowedGroup(e){return this.get("model.details").removeAllowedGroup(e)}static #l$=(()=>dt7948.n(this.prototype,"removeAllowedGroup",[n.action]))();toggleArchiveMessage(){let e=this.model;if(!e||e.get("archiving")||!e.isPrivateMessage)return;let t=()=>{(0,T.resetCachedTopicList)(this.session),this.gotoInbox(e.get("inboxGroupName"))};e.get("message_archived")?e.moveToInbox().then(t):e.archiveMessage().then(t)}static #lq=(()=>dt7948.n(this.prototype,"toggleArchiveMessage",[n.action]))();deferTopic(){let{screenTrack:e,currentUser:t}=this,i=this.model;e.reset(),e.stop();let s=i.get("isPrivateMessage")?t.pmPath(i):"/";(0,b.ajax)("/t/"+i.get("id")+"/timings.json?last=1",{type:"DELETE"}).then(()=>{this.session.get("highestSeenByTopic")[i.get("id")]=null,F.default.routeTo(s)}).catch(w.popupAjaxError)}static #lV=(()=>dt7948.n(this.prototype,"deferTopic",[n.action]))();editFirstPost(){this.model.firstPost().then(e=>this.send("editPost",e))}static #lH=(()=>dt7948.n(this.prototype,"editFirstPost",[n.action]))();replyToPost(e){let t=this.composer,i=e?e.get("topic"):this.model,s=this.quoteState,n=this.get("model.postStream");if(this.appEvents.trigger("page:compose-reply",i),!n||!i||!i.get("details.can_create_post"))return;let r=n.findLoadedPost(s.postId),o=(0,D.buildQuote)(r,s.buffer,s.opts);if(s.clear(),t.get("model.topic.id")===i.get("id")&&t.get("model.action")===R.default.REPLY&&e?.get("post_number")!==1)t.set("model.post",e),t.set("model.composeState",R.default.OPEN),this.appEvents.trigger("composer:insert-block",o.trim());else{let s={action:R.default.REPLY,draftKey:i.get("draft_key"),draftSequence:i.get("draft_sequence")};o&&(s.quote=o),e&&1!==e.get("post_number")?s.post=e:s.topic=i,t.open(s)}return!1}static #lz=(()=>dt7948.n(this.prototype,"replyToPost",[n.action]))();recoverPost(e){1===e.get("post_number")?this.recoverTopic():e.recover()}static #lW=(()=>dt7948.n(this.prototype,"recoverPost",[n.action]))();deletePost(e,t){if(1===e.get("post_number"))return this.deleteTopic(t);if(!t?.force_destroy&&!e.can_delete||t?.force_destroy&&!e.can_permanently_delete)return!1;let i=this.currentUser,s=()=>this.appEvents.trigger("post-stream:refresh"),n=e.get("reply_count")>0,r=this.get("model.postStream.posts");if(!i.get("staff")||!n)return e.destroy(i,t).then(s).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()});(0,b.ajax)(`/posts/${e.id}/reply-ids.json`).then(n=>{if(0===n.length)return e.destroy(i,t).then(s).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()});let o=[],a=n.filter(e=>1===e.level).map(e=>e.id);o.push({label:(0,$.i18n)("post.controls.delete_replies.direct_replies",{count:a.length}),class:"btn-primary",action:()=>{r.forEach(t=>(t===e||a.includes(t.id))&&t.setDeletedState(i)),U.default.deleteMany([e.id,...a]).then(s).catch(w.popupAjaxError)}}),n.some(e=>e.level>1)&&o.push({label:(0,$.i18n)("post.controls.delete_replies.all_replies",{count:n.length}),action:()=>{r.forEach(t=>(t===e||n.some(e=>e.id===t.id))&&t.setDeletedState(i)),U.default.deleteMany([e.id,...n.map(e=>e.id)]).then(s).catch(w.popupAjaxError)}}),o.push({label:(0,$.i18n)("post.controls.delete_replies.just_the_post"),action:()=>{e.destroy(i,t).then(s).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()})}}),o.push({label:(0,$.i18n)("cancel"),class:"btn-flat"}),this.dialog.alert({title:(0,$.i18n)("post.controls.delete_replies.confirm"),buttons:o})})}static #lK=(()=>dt7948.n(this.prototype,"deletePost",[n.action]))();deletePostWithConfirmation(e,t){this.dialog.yesNoConfirm({message:(0,$.i18n)("post.confirm_delete"),didConfirm:()=>this.send("deletePost",e,t)})}static #lG=(()=>dt7948.n(this.prototype,"deletePostWithConfirmation",[n.action]))();permanentlyDeletePost(e){return this.dialog.yesNoConfirm({message:(0,$.i18n)("post.controls.permanently_delete_confirmation"),didConfirm:()=>{this.send("deletePost",e,{force_destroy:!0})}})}static #lY=(()=>dt7948.n(this.prototype,"permanentlyDeletePost",[n.action]))();editPost(e){if(!this.currentUser)return this.dialog.alert((0,$.i18n)("post.controls.edit_anonymous"));if(!e.can_edit)return!1;let t=this.model,i=!1,s=this.get("site.shared_drafts_category_id");s&&s===t.get("category.id")&&(i=e.get("firstPost"));let n={post:e,action:i?R.default.EDIT_SHARED_DRAFT:R.default.EDIT,draftKey:e.get("topic.draft_key"),draftSequence:e.get("topic.draft_sequence")};i&&(n.destinationCategoryId=t.get("destination_category_id"));let{composer:r}=this,o=r.get("model");return n.post.id===o?.post?.id&&n.action===o?.action&&n.draftKey===o?.draftKey?r.unshrink():r.open(n)}static #lQ=(()=>dt7948.n(this.prototype,"editPost",[n.action]))();toggleBookmark(e){if(!this.currentUser)return this.dialog.alert((0,$.i18n)("bookmarks.not_bookmarked"));if(!e)return this._toggleTopicLevelBookmark().then(e=>{e&&e.forEach(e=>this.appEvents.trigger("post-stream:refresh",{id:e}))});{let t=this.model.bookmarks.find(t=>t.bookmarkable_id===e.id&&"Post"===t.bookmarkable_type);return this._modifyPostBookmark(t||O.default.createFor(this.currentUser,"Post",e.id),e)}}static #lJ=(()=>dt7948.n(this.prototype,"toggleBookmark",[n.action]))();jumpToIndex(e){this._jumpToIndex(e)}static #lX=(()=>dt7948.n(this.prototype,"jumpToIndex",[n.action]))();jumpToDate(e){this._jumpToDate(e)}static #lZ=(()=>dt7948.n(this.prototype,"jumpToDate",[n.action]))();jumpToPostPrompt(){this.modal.show(f.default,{model:{topic:this.model,jumpToIndex:e=>this.send("jumpToIndex",e),jumpToDate:e=>this.send("jumpToDate",e)}})}static #l1=(()=>dt7948.n(this.prototype,"jumpToPostPrompt",[n.action]))();jumpToPost(e){this._jumpToPostNumber(e)}static #l0=(()=>dt7948.n(this.prototype,"jumpToPost",[n.action]))();jumpBottom(){let e=this.model.highest_post_number;document.getElementById(`post_${e}`)||F.default.routeTo(this.get("model.lastPostUrl"),{skipIfOnScreen:!1,jumpEnd:!1,keepFilter:!0})}static #l3=(()=>dt7948.n(this.prototype,"jumpBottom",[n.action]))();jumpEnd(){this.appEvents.trigger("topic:jump-to-post",this.get("model.highest_post_number")),F.default.routeTo(this.get("model.lastPostUrl"),{jumpEnd:!0,keepFilter:!0})}static #l8=(()=>dt7948.n(this.prototype,"jumpEnd",[n.action]))();jumpUnread(){this._jumpToPostId(this.get("model.last_read_post_id"))}static #l2=(()=>dt7948.n(this.prototype,"jumpUnread",[n.action]))();jumpToPostId(e){this._jumpToPostId(e)}static #l4=(()=>dt7948.n(this.prototype,"jumpToPostId",[n.action]))();togglePostSelection(e){let t=this.selectedPostIds;t.includes(e.id)?t.removeObject(e.id):t.addObject(e.id)}static #l7=(()=>dt7948.n(this.prototype,"togglePostSelection",[n.action]))();selectReplies(e){(0,b.ajax)(`/posts/${e.id}/reply-ids.json`).then(t=>{let i=t.map(e=>e.id),s=[...this.selectedPostIds,e.id,...i];this.set("selectedPostIds",[...new Set(s)]),this._forceRefreshPostStream()})}static #l9=(()=>dt7948.n(this.prototype,"selectReplies",[n.action]))();selectBelow(e){if(this.get("model.postStream.isMegaTopic"))this._loadPostIds(e);else{let t=[...this.get("model.postStream.stream")],i=t.slice(t.indexOf(e.id));this._updateSelectedPostIds(i)}}static #l5=(()=>dt7948.n(this.prototype,"selectBelow",[n.action]))();deleteSelected(){let e=this.currentUser;this.dialog.yesNoConfirm({message:(0,$.i18n)("post.delete.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{if(this.selectedAllPosts)return this.deleteTopic();U.default.deleteMany(this.selectedPostIds),this.get("model.postStream.posts").forEach(t=>this.postSelected(t)&&t.setDeletedState(e)),this.send("toggleMultiSelect")}})}static #l6=(()=>dt7948.n(this.prototype,"deleteSelected",[n.action]))();mergePosts(){this.dialog.yesNoConfirm({message:(0,$.i18n)("post.merge.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{U.default.mergePosts(this.selectedPostIds),this.send("toggleMultiSelect")}})}static #ce=(()=>dt7948.n(this.prototype,"mergePosts",[n.action]))();changePostOwner(e){this.set("selectedPostIds",[e.id]),this.send("changeOwner")}static #ct=(()=>dt7948.n(this.prototype,"changePostOwner",[n.action]))();lockPost(e){return e.updatePostField("locked",!0)}static #ci=(()=>dt7948.n(this.prototype,"lockPost",[n.action]))();unlockPost(e){return e.updatePostField("locked",!1)}static #cs=(()=>dt7948.n(this.prototype,"unlockPost",[n.action]))();grantBadge(e){this.set("selectedPostIds",[e.id]),this.send("showGrantBadgeModal")}static #cn=(()=>dt7948.n(this.prototype,"grantBadge",[n.action]))();async changeNotice(e){await this.modal.show(h.default,{model:{post:e}})}static #cr=(()=>dt7948.n(this.prototype,"changeNotice",[n.action]))();filterParticipant(e){this.get("model.postStream").filterParticipant(e.username).then(()=>this.updateQueryParams)}static #co=(()=>dt7948.n(this.prototype,"filterParticipant",[n.action]))();cancelEditingTopic(){this.set("editingTopic",!1),this.rollbackBuffer()}static #ca=(()=>dt7948.n(this.prototype,"cancelEditingTopic",[n.action]))();finishedEditingTopic(){if(!this.editingTopic)return;let e=this.get("buffered.buffer");j.default.update(this.model,e,{fastEdit:!0}).then(()=>{this.rollbackBuffer(),this.set("editingTopic",!1)}).catch(w.popupAjaxError)}static #cl=(()=>dt7948.n(this.prototype,"finishedEditingTopic",[n.action]))();expandHidden(e){return e.expandHidden()}static #cc=(()=>dt7948.n(this.prototype,"expandHidden",[n.action]))();toggleVisibility(){this.model.toggleStatus("visible")}static #cu=(()=>dt7948.n(this.prototype,"toggleVisibility",[n.action]))();toggleClosed(){let e=this.model;this.model.toggleStatus("closed").then(t=>{e.set("topic_status_update",t.topic_status_update)})}static #cd=(()=>dt7948.n(this.prototype,"toggleClosed",[n.action]))();makeBanner(){this.model.makeBanner()}static #cp=(()=>dt7948.n(this.prototype,"makeBanner",[n.action]))();removeBanner(){this.model.removeBanner()}static #ch=(()=>dt7948.n(this.prototype,"removeBanner",[n.action]))();togglePinned(){let e=!this.get("model.pinned_at"),t=this.model,i=this.get("model.pinnedInCategoryUntil");return t.setProperties({pinned_at:e?moment():null,pinned_globally:!1,pinned_until:e?i:null}),t.saveStatus("pinned",e,i)}static #cm=(()=>dt7948.n(this.prototype,"togglePinned",[n.action]))();pinGlobally(){let e=this.model,t=this.get("model.pinnedGloballyUntil");return e.setProperties({pinned_at:moment(),pinned_globally:!0,pinned_until:t}),e.saveStatus("pinned_globally",!0,t)}static #cg=(()=>dt7948.n(this.prototype,"pinGlobally",[n.action]))();toggleArchived(){this.model.toggleStatus("archived")}static #cf=(()=>dt7948.n(this.prototype,"toggleArchived",[n.action]))();clearPin(){this.model.clearPin()}static #c_=(()=>dt7948.n(this.prototype,"clearPin",[n.action]))();togglePinnedForUser(){if(this.get("model.pinned_at")){let e=this.model;e.get("pinned")?e.clearPin():e.rePin()}}static #cy=(()=>dt7948.n(this.prototype,"togglePinnedForUser",[n.action]))();replyAsNewTopic(e){let t;let i=this.composer,{quoteState:s}=this,n=(0,D.buildQuote)(e,s.buffer,s.opts);if(s.clear(),this.get("model.isPrivateMessage")){let i=this.get("model.details.allowed_users"),s=this.get("model.details.allowed_groups"),n=[];i.forEach(e=>n.push(e.username)),s.forEach(e=>n.push(e.name)),n=n.join(),t={action:R.default.PRIVATE_MESSAGE,archetypeId:"private_message",draftKey:e.topic.draft_key,recipients:n}}else t={action:R.default.CREATE_TOPIC,draftKey:e.topic.draft_key,topicCategoryId:this.get("model.category.permission")&&this.get("model.category.id"),prioritizedCategoryId:this.get("model.category.id")};i.open(t).then(()=>{let t=(0,I.escapeExpression)(this.model.title),s=`${location.protocol}//${location.host}${e.url}`,r=`[${t}](${s})`,o=`${(0,$.i18n)("post.continue_discussion",{postLink:r})} ${n}`;i.model.prependText(o,{new_line:!0})})}static #cb=(()=>dt7948.n(this.prototype,"replyAsNewTopic",[n.action]))();retryLoading(){this.set("retrying",!0);let e=()=>this.set("retrying",!1);this.get("model.postStream").refresh().then(e,e)}static #cv=(()=>dt7948.n(this.prototype,"retryLoading",[n.action]))();toggleWiki(e){return e.updatePostField("wiki",!e.get("wiki"))}static #cw=(()=>dt7948.n(this.prototype,"toggleWiki",[n.action]))();togglePostType(e){let t=this.site.get("post_types.regular"),i=this.site.get("post_types.moderator_action");return e.updatePostField("post_type",e.get("post_type")===i?t:i)}static #ck=(()=>dt7948.n(this.prototype,"togglePostType",[n.action]))();rebakePost(e){return e.rebake()}static #cT=(()=>dt7948.n(this.prototype,"rebakePost",[n.action]))();unhidePost(e){return e.unhide()}static #cS=(()=>dt7948.n(this.prototype,"unhidePost",[n.action]))();convertToPublicTopic(){this.modal.show(m.default,{model:{topic:this.model}})}static #cC=(()=>dt7948.n(this.prototype,"convertToPublicTopic",[n.action]))();convertToPrivateMessage(){this.model.convertTopic("private").then(()=>window.location.reload()).catch(w.popupAjaxError)}static #cx=(()=>dt7948.n(this.prototype,"convertToPrivateMessage",[n.action]))();resetBumpDate(){this.model.resetBumpDate()}static #cA=(()=>dt7948.n(this.prototype,"resetBumpDate",[n.action]))();removeTopicTimer(e,t){B.default.update(this.get("model.id"),null,null,e,null).then(()=>this.set(`model.${t}`,n.default.create({}))).catch(e=>(0,w.popupAjaxError)(e))}static #cE=(()=>dt7948.n(this.prototype,"removeTopicTimer",[n.action]))();_jumpToIndex(e){let t=this.get("model.postStream");if(t.get("isMegaTopic"))this._jumpToPostNumber(e);else{let i=t.get("stream"),s=Math.max(1,Math.min(i.length,e));this._jumpToPostId(i[s-1])}}_jumpToDate(e){let t=this.get("model.postStream");t.loadNearestPostToDate(e).then(e=>{F.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))}).catch(()=>{this._jumpToIndex(t.get("topic.highest_post_number"))})}_jumpToPostNumber(e){let t=this.get("model.postStream"),i=t.get("posts").findBy("post_number",e);i?F.default.routeTo(this.model.urlForPostNumber(i.get("post_number"))):t.loadPostByPostNumber(e).then(e=>{F.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))})}_jumpToPostId(e){if(!e){console.warn("jump-post code broken - requested an index outside the stream array");return}this.appEvents.trigger("topic:jump-to-post",e);let t=this.model,i=t.get("postStream"),s=i.findLoadedPost(e);s?F.default.routeTo(t.urlForPostNumber(s.get("post_number")),{keepFilter:!0}):i.findPostsByIds([e]).then(e=>{F.default.routeTo(t.urlForPostNumber(e[0].get("post_number")),{keepFilter:!0})})}_modifyTopicBookmark(e){this.modal.show(p.default,{model:{bookmark:new k.BookmarkFormData(e),afterSave:t=>{this._syncBookmarks(t.saveData),this.model.set("bookmarking",!1),this.model.set("bookmarked",!0),this.model.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",t.saveData,e.attachedTo())},afterDelete:(e,t)=>{this.model.removeBookmark(t)}}})}_modifyPostBookmark(e,t){this.modal.show(p.default,{model:{bookmark:new k.BookmarkFormData(e),afterSave:e=>(this._syncBookmarks(e),this.model.set("bookmarking",!1),t.createBookmark(e),this.model.afterPostBookmarked(t,e),[t.id]),afterDelete:(e,i)=>{this.model.removeBookmark(i),t.deleteBookmark(e)}}}).then(i=>{i&&(i.closeWithoutSaving||i.initiatedBy===d.CLOSE_INITIATED_BY_ESC||i.initiatedBy===d.CLOSE_INITIATED_BY_BUTTON)&&t.appEvents.trigger("post-stream:refresh",{id:e.bookmarkable_id})})}_syncBookmarks(e){this.model.bookmarks||this.model.set("bookmarks",[]);let t=this.model.bookmarks.findBy("id",e.id);t?(t.reminder_at=e.reminder_at,t.name=e.name,t.auto_delete_preference=e.auto_delete_preference):this.model.bookmarks.pushObject(O.default.create(e))}async _toggleTopicLevelBookmark(){if(this.model.bookmarking)return u.Promise.resolve();if(this.model.bookmarkCount>1)return this._maybeClearAllBookmarks();if(1===this.model.bookmarkCount){let e=this.model.bookmarks.findBy("bookmarkable_type","Topic");if(e)return this._modifyTopicBookmark(e);{let e=this.model.bookmarks[0],t=await this.model.postById(e.bookmarkable_id);return this._modifyPostBookmark(e,t)}}if(0===this.model.bookmarkCount)return this._modifyTopicBookmark(O.default.createFor(this.currentUser,"Topic",this.model.id))}_maybeClearAllBookmarks(){return new u.Promise(e=>{this.dialog.yesNoConfirm({message:(0,$.i18n)("bookmarks.confirm_clear"),didConfirm:()=>this.model.deleteBookmarks().then(()=>e(this.model.clearBookmarks())).catch(w.popupAjaxError).finally(()=>{this.model.set("bookmarking",!1)}),didCancel:()=>{this.model.set("bookmarking",!1),e()}})})}togglePinnedState(){this.send("togglePinnedForUser")}print(){this.siteSettings.max_prints_per_hour_per_user>0&&window.open(this.get("model.printUrl"),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=600,height=315")}selectedPosts(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(e=>void 0!==e)}static #cD=(()=>dt7948.n(this.prototype,"selectedPosts",[(0,S.default)("selectedPostIds","model.postStream.posts","selectedPostIds.[]","model.postStream.posts.[]")]))();selectedPostsUsername(e,t){if(t.length<1||e>t.length)return;let i=t[0].username;return t.every(e=>e.username===i)?i:void 0}static #cP=(()=>dt7948.n(this.prototype,"selectedPostsUsername",[(0,S.default)("selectedPostsCount","selectedPosts","selectedPosts.[]")]))();selectedAllPosts(e,t,i,s){return t?e>=s:e>=i}static #cM=(()=>dt7948.n(this.prototype,"selectedAllPosts",[(0,S.default)("selectedPostsCount","model.postStream.isMegaTopic","model.postStream.stream.length","model.posts_count")]))();canSelectAll(e,t){return!t&&!e}static #cF=(()=>dt7948.n(this.prototype,"canSelectAll",[(0,S.default)("selectedAllPosts","model.postStream.isMegaTopic")]))();canDeleteSelected(e,t,i,s){return t>0&&(i&&e||s.every(e=>e.can_delete))}static #cI=(()=>dt7948.n(this.prototype,"canDeleteSelected",[(0,S.default)("currentUser.staff","selectedPostsCount","selectedAllPosts","selectedPosts","selectedPosts.[]")]))();canMergeTopic(e,t){return e&&t>0}static #cN=(()=>dt7948.n(this.prototype,"canMergeTopic",[(0,S.default)("model.details.can_move_posts","selectedPostsCount")]))();canChangeOwner(e,t,i,s,n){return(e||i&&t)&&s>0&&void 0!==n}static #cO=(()=>dt7948.n(this.prototype,"canChangeOwner",[(0,S.default)("currentUser.admin","currentUser.staff","siteSettings.moderators_change_post_ownership","selectedPostsCount","selectedPostsUsername")]))();canMergePosts(e,t,i){return e>1&&void 0!==t&&i.every(e=>e.can_delete)}static #cL=(()=>dt7948.n(this.prototype,"canMergePosts",[(0,S.default)("selectedPostsCount","selectedPostsUsername","selectedPosts","selectedPosts.[]")]))();_multiSelectChanged(){this.set("selectedPostIds",[])}static #cR=(()=>dt7948.n(this.prototype,"_multiSelectChanged",[(0,c.observes)("multiSelect")]))();postSelected(e){return this.selectedAllPost||this.selectedPostIds.includes(e.id)}loadingHTML(){return y.spinnerHTML}static #cU=(()=>dt7948.n(this.prototype,"loadingHTML",[S.default]))();recoverTopic(){this.model.recover()}static #cj=(()=>dt7948.n(this.prototype,"recoverTopic",[n.action]))();buildQuoteMarkdown(){let{postId:e,buffer:t,opts:i}=this.quoteState,s=this.get("model.postStream").findLoadedPost(e);return(s?u.Promise.resolve(s):this.get("model.postStream").loadPost(e)).then(e=>(0,D.buildQuote)(e,t,i))}static #cB=(()=>dt7948.n(this.prototype,"buildQuoteMarkdown",[n.action]))();deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.force_destroy)return this.model.destroy(this.currentUser,e);this.model.views>this.siteSettings.min_topic_views_for_delete_confirm?this.deleteTopicModal():this.model.destroy(this.currentUser,e)}static #c$=(()=>dt7948.n(this.prototype,"deleteTopic",[n.action]))();deleteTopicModal(){this.modal.show(g.default,{model:{topic:this.model}})}retryOnRateLimit(e,t,i){let s=this.get("model.id");if((i=i||s)===s&&!this._retryRateLimited&&!(e<=0)){if(this._retryInProgress){(0,A.default)(()=>{this.retryOnRateLimit(e,t,i)},100);return}this._retryInProgress=!0,t().catch(s=>{let n=s.jqXHR;if(n&&429===n.status&&n.responseJSON&&n.responseJSON.extras&&n.responseJSON.extras.wait_seconds){let s=n.responseJSON.extras.wait_seconds;s<5&&(s=5),this._retryRateLimited=!0,(0,A.default)(()=>{this._retryRateLimited=!1,this.retryOnRateLimit(e-1,t,i)},1e3*s)}}).finally(()=>{this._retryInProgress=!1})}}subscribe(){this.unsubscribe(),this.messageBus.subscribe(`/topic/${this.get("model.id")}`,this.onMessage,this.get("model.message_bus_last_id"))}unsubscribe(){this.get("model.id")&&this.messageBus.unsubscribe("/topic/*",this.onMessage)}onMessage(e){let t=this.model,i=e=>this.appEvents.trigger("post-stream:refresh",e);if((0,l.isPresent)(e.notification_level_change)){t.set("details.notification_level",e.notification_level_change),t.set("details.notifications_reason_id",e.notifications_reason_id);return}let s=this.get("model.postStream");if(e.reload_topic){t.reload().then(()=>{this.send("postChangedRoute",t.get("post_number")||1),this.appEvents.trigger("header:update-topic",t),e.refresh_stream&&s.refresh()});return}switch(e.type){case"acted":s.triggerChangedPost(e.id,e.updated_at,{preserveCooked:!0}).then(()=>i({id:e.id,refreshLikes:!0}));break;case"read":s.triggerReadPost(e.id,e.readers_count).then(()=>i({id:e.id,refreshLikes:!0}));break;case"liked":case"unliked":s.triggerLikedPost(e.id,e.likes_count,e.user_id,e.type).then(()=>i({id:e.id,refreshLikes:!0}));break;case"revised":case"rebaked":s.triggerChangedPost(e.id,e.updated_at).then(()=>i({id:e.id}));break;case"deleted":s.triggerDeletedPost(e.id).then(()=>i({id:e.id}));break;case"destroyed":s.triggerDestroyedPost(e.id).then(()=>i({id:e.id}));break;case"recovered":s.triggerRecoveredPost(e.id).then(()=>i({id:e.id}));break;case"created":this._newPostsInStream.push(e.id),this.retryOnRateLimit(4,()=>{let e=this._newPostsInStream;return this._newPostsInStream=[],s.triggerNewPostsInStream(e,{background:!0}).then(()=>i()).catch(t=>{throw this._newPostsInStream=e.concat(this._newPostsInStream),t})}),this.get("currentUser.id")!==e.user_id&&this.documentTitle.incrementBackgroundContextCount();break;case"move_to_inbox":t.set("message_archived",!1);break;case"archived":t.set("message_archived",!0);break;case"stats":{let n=!1;["last_posted_at","like_count","posts_count"].forEach(i=>{let s=e[i];void 0!==s&&(t.set(i,s),n=!0)}),e.last_poster&&(t.details.set("last_poster",e.last_poster),n=!0),n&&s.triggerChangedTopicStats().then(e=>i({id:e}));break}case"remove_allowed_user":this.router.transitionTo("userPrivateMessages",this.currentUser);break;default:{let t=q[e.type];t?t(this,e):console.warn("unknown topic bus message type",e)}}}static #cq=(()=>dt7948.n(this.prototype,"onMessage",[S.bind]))();reply(){this.replyToPost()}readPosts(e,t){let i=this.model,s=i.get("postStream");if(i.get("id")===e&&(s.get("posts").forEach(e=>{!e.read&&t.includes(e.post_number)&&(e.set("read",!0),this.appEvents.trigger("post-stream:refresh",{id:e.get("id")}))}),this.siteSettings.automatically_unpin_topics&&this.currentUser&&this.currentUser.user_option.automatically_unpin_topics)){let e=Math.max(...t);i.get("pinned")&&e>=i.get("highest_post_number")&&(0,o.next)(()=>i.clearPin())}}}},58209:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(42256),l=i(24571),c=i(6864),u=i(58112),d=i(63748),p=i(51429),h=i(27431),m=i(843);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#ak=(()=>void dt7948.i(this,"application"))();static #s=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#aX=(()=>void dt7948.i(this,"user"))();queryParams=["q"];q=null;loading=!1;loadingMore=!1;permissionDenied=!1;bulkSelectHelper=(()=>new u.default(this))();static #l=(()=>dt7948.g(this.prototype,"inSearchMode",[(0,r.notEmpty)("q")]))();#cV=(()=>void dt7948.i(this,"inSearchMode"))();static #c=(()=>dt7948.g(this.prototype,"noContent",[(0,r.equal)("model.bookmarks.length",0)]))();#cH=(()=>void dt7948.i(this,"noContent"))();get searchTerm(){return this._searchTerm||this.q}static #u=(()=>dt7948.n(this.prototype,"searchTerm",[(0,n.computed)("q")]))();set searchTerm(e){this._searchTerm=e}emptyStateBody(){return(0,a.htmlSafe)((0,m.i18n)("user.no_bookmarks_body",{icon:(0,p.iconHTML)("bookmark")}))}static #d=(()=>dt7948.n(this.prototype,"emptyStateBody",[(0,d.default)()]))();userDoesNotHaveBookmarks(e,t){return!e&&t}static #p=(()=>dt7948.n(this.prototype,"userDoesNotHaveBookmarks",[(0,d.default)("inSearchMode","noContent")]))();nothingFound(e,t){return e&&t}static #h=(()=>dt7948.n(this.prototype,"nothingFound",[(0,d.default)("inSearchMode","noContent")]))();search(){this.router.transitionTo({queryParams:{q:this._searchTerm}})}static #m=(()=>dt7948.n(this.prototype,"search",[n.action]))();reload(){this.send("triggerRefresh")}static #g=(()=>dt7948.n(this.prototype,"reload",[n.action]))();loadMore(){return this.loadingMore?l.Promise.resolve():(this.set("loadingMore",!0),this._loadMoreBookmarks(this.q).then(e=>this._processLoadResponse(this.q,e)).catch(()=>this._bookmarksListDenied()).finally(()=>this.set("loadingMore",!1)))}static #A=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();updateAutoAddBookmarksToBulkSelect(e){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=e}static #E=(()=>dt7948.n(this.prototype,"updateAutoAddBookmarksToBulkSelect",[n.action]))();_loadMoreBookmarks(e){if(!this.model.loadMoreUrl)return l.Promise.resolve();let t=this.model.loadMoreUrl;if(e){let i=t.includes("?")?"&":"?",s=encodeURIComponent(e);t+=`${i}q=${s}`}return(0,c.ajax)({url:t})}_bookmarksListDenied(){this.set("permissionDenied",!0)}async _processLoadResponse(e,t){if(!t||!t.user_bookmark_list){this.model.loadMoreUrl=null;return}if(t=t.user_bookmark_list,this.model.searchTerm=e,this.model.loadMoreUrl=t.more_bookmarks_url,t.bookmarks){let e=t.bookmarks.map(this.transform);await h.default.applyTransformations(e),this.model.bookmarks.pushObjects(e),this.session.set("bookmarksModel",this.model)}}transform(e){let t=h.default.create(e);return t.topicStatus=n.default.create({closed:e.closed,archived:e.archived,is_warning:e.is_warning,pinned:!1,unpinned:!1,invisible:e.invisible}),t}}},39205:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(8554),n=i(28418),r=i(83133),o=i(63748),a=i(843);class l extends n.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"user",[n.inject]))();#aX=(()=>void dt7948.i(this,"user"))();static #s=(()=>dt7948.g(this.prototype,"userActionType",[s.tracked],function(){return null}))();#cz=(()=>void dt7948.i(this,"userActionType"))();draftLabel(e){return e>0?(0,a.i18n)("drafts.label_with_count",{count:e}):(0,a.i18n)("drafts.label")}static #l=(()=>dt7948.n(this.prototype,"draftLabel",[(0,o.default)("currentUser.draft_count")]))();pendingLabel(e){return e>0?(0,a.i18n)("pending_posts.label_with_count",{count:e}):(0,a.i18n)("pending_posts.label")}static #c=(()=>dt7948.n(this.prototype,"pendingLabel",[(0,o.default)("model.pending_posts_count")]))()}},73984:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(35533),r=i(30574),o=i(63748);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#aX=(()=>void dt7948.i(this,"user"))();static #i=(()=>dt7948.g(this.prototype,"username",[(0,r.alias)("user.model.username_lower")]))();#cW=(()=>void dt7948.i(this,"username"))();static #s=(()=>dt7948.g(this.prototype,"sortedBadges",[(0,r.sort)("model","badgeSortOrder")]))();#cK=(()=>void dt7948.i(this,"sortedBadges"))();static #l=(()=>dt7948.g(this.prototype,"favoriteBadges",[(0,r.filterBy)("model","is_favorite",!0)]))();#cG=(()=>void dt7948.i(this,"favoriteBadges"))();badgeSortOrder=["badge.badge_type.sort_order:desc","badge.name"];canFavoriteMoreBadges(e){return edt7948.n(this.prototype,"canFavoriteMoreBadges",[(0,o.default)("favoriteBadges.length")]))();favorite(e){return e.favorite()}static #u=(()=>dt7948.n(this.prototype,"favorite",[n.action]))()}},1551:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(42064),l=i(70841),c=i(94482),u=i(88355),d=i(63748),p=i(77093),h=i(25506),m=i(843);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();user=null;model=null;filter=null;invitesCount=null;canLoadMore=!0;invitesLoading=!1;reinvitedAll=!1;removedAll=!1;searchTerm="";static #s=(()=>dt7948.g(this.prototype,"inviteRedeemed",[(0,r.equal)("filter","redeemed")]))();#cY=(()=>void dt7948.i(this,"inviteRedeemed"))();static #l=(()=>dt7948.g(this.prototype,"inviteExpired",[(0,r.equal)("filter","expired")]))();#cQ=(()=>void dt7948.i(this,"inviteExpired"))();static #c=(()=>dt7948.g(this.prototype,"invitePending",[(0,r.equal)("filter","pending")]))();#cJ=(()=>void dt7948.i(this,"invitePending"))();static #u=(()=>dt7948.g(this.prototype,"canInviteToForum",[(0,r.reads)("currentUser.can_invite_to_forum")]))();#cX=(()=>void dt7948.i(this,"canInviteToForum"))();static #d=(()=>dt7948.g(this.prototype,"canBulkInvite",[(0,r.reads)("currentUser.admin")]))();#cZ=(()=>void dt7948.i(this,"canBulkInvite"))();searchTermChanged(){this._searchTermChanged()}static #p=(()=>dt7948.n(this.prototype,"searchTermChanged",[(0,a.observes)("searchTerm")]))();_searchTermChanged(){h.default.findInvitedBy(this.user,this.filter,this.searchTerm).then(e=>this.set("model",e))}static #h=(()=>dt7948.n(this.prototype,"_searchTermChanged",[(0,d.debounce)(p.INPUT_DELAY)]))();hasEmailInvites(e){return e.invites.some(e=>e.email)}static #m=(()=>dt7948.n(this.prototype,"hasEmailInvites",[(0,d.default)("model")]))();showBulkActionButtons(e){return"pending"===e&&this.model.invites.length>0&&this.currentUser.staff}static #g=(()=>dt7948.n(this.prototype,"showBulkActionButtons",[(0,d.default)("filter")]))();showSearch(e,t){return e[t]>5}static #A=(()=>dt7948.n(this.prototype,"showSearch",[(0,d.default)("invitesCount","filter")]))();createInvite(){this.modal.show(l.default,{model:{invites:this.model.invites}})}static #E=(()=>dt7948.n(this.prototype,"createInvite",[n.action]))();createInviteCsv(){this.modal.show(c.default)}static #D=(()=>dt7948.n(this.prototype,"createInviteCsv",[n.action]))();editInvite(e){this.modal.show(l.default,{model:{editing:!0,invite:e}})}static #P=(()=>dt7948.n(this.prototype,"editInvite",[n.action]))();destroyInvite(e){e.destroy(),this.model.invites.removeObject(e)}static #Q=(()=>dt7948.n(this.prototype,"destroyInvite",[n.action]))();destroyAllExpired(){this.dialog.deleteConfirm({message:(0,m.i18n)("user.invited.remove_all_confirm"),didConfirm:()=>h.default.destroyAllExpired().then(()=>{this.set("removedAll",!0),this.send("triggerRefresh")}).catch(u.popupAjaxError)})}static #J=(()=>dt7948.n(this.prototype,"destroyAllExpired",[n.action]))();reinvite(e){return e.reinvite(),!1}static #X=(()=>dt7948.n(this.prototype,"reinvite",[n.action]))();reinviteAll(){this.dialog.yesNoConfirm({message:(0,m.i18n)("user.invited.reinvite_all_confirm"),didConfirm:()=>h.default.reinviteAll().then(()=>this.set("reinvitedAll",!0)).catch(u.popupAjaxError)})}static #Z=(()=>dt7948.n(this.prototype,"reinviteAll",[n.action]))();loadMore(){let e=this.model;this.canLoadMore&&!this.invitesLoading&&(this.set("invitesLoading",!0),h.default.findInvitedBy(this.user,this.filter,this.searchTerm,e.invites.length).then(t=>{this.set("invitesLoading",!1),e.invites.pushObjects(t.invites),(0===t.invites.length||t.invites.lengthdt7948.n(this.prototype,"loadMore",[n.action]))()}},77177:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(63748),r=i(843);class o extends s.default{pendingLabel(e,t){return e>0?(0,r.i18n)("user.invited.pending_tab_with_count",{count:t}):(0,r.i18n)("user.invited.pending_tab")}static #e=(()=>dt7948.n(this.prototype,"pendingLabel",[(0,n.default)("invitesCount.total","invitesCount.pending")]))();expiredLabel(e,t){return e>0?(0,r.i18n)("user.invited.expired_tab_with_count",{count:t}):(0,r.i18n)("user.invited.expired_tab")}static #i=(()=>dt7948.n(this.prototype,"expiredLabel",[(0,n.default)("invitesCount.total","invitesCount.expired")]))();redeemedLabel(e,t){return e>0?(0,r.i18n)("user.invited.redeemed_tab_with_count",{count:t}):(0,r.i18n)("user.invited.redeemed_tab")}static #s=(()=>dt7948.n(this.prototype,"redeemedLabel",[(0,n.default)("invitesCount.total","invitesCount.redeemed")]))()}},97054:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addBeforeLoadMoreCallback:()=>w,default:()=>k});var s=i(8554),n=i(28418),r=i(35533),o=i(83133),a=i(42256),l=i(6868),c=i(17942),u=i(6864),d=i(63748),p=i(94636),h=i(51429),m=i(56527),g=i(843),f=i(53653),_=i(85671),y=i(73306);let b=[];function w(e){b.push(e)}class k extends n.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"site",[o.service]))();#w=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"filter",[s.tracked],function(){return"all"}))();#rJ=(()=>void dt7948.i(this,"filter"))();queryParams=["filter"];get listContainerClassNames(){return`user-notifications-list ${this.siteSettings.show_user_menu_avatars?"show-avatars":""}`}isFiltered(){return this.filter&&"all"!==this.filter}static #d=(()=>dt7948.n(this.prototype,"isFiltered",[(0,d.default)("filter")]))();items(){return this.model.map(e=>{let t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site,notification:e,endComponent:(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"Nwrbyhur",block:'[[[1,"\\n "],[8,[32,0],null,[["@date"],[[32,1,["created_at"]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/controllers/user-notifications.js",scope:()=>[c.default,e],isStrictMode:!0}),(0,y.default)(void 0,void 0))};return new m.default(t)})}static #p=(()=>dt7948.n(this.prototype,"items",[(0,d.default)("model.content.@each")]))();allNotificationsRead(){return!this.get("model.content").some(e=>!e.get("read"))}static #h=(()=>dt7948.n(this.prototype,"allNotificationsRead",[(0,d.default)("model.content.@each.read")]))();doesNotHaveNotifications(e,t,i){return!i&&!e&&0===t}static #m=(()=>dt7948.n(this.prototype,"doesNotHaveNotifications",[(0,d.default)("isFiltered","model.content.length","loading")]))();nothingFound(e,t){return e&&0===t}static #g=(()=>dt7948.n(this.prototype,"nothingFound",[(0,d.default)("isFiltered","model.content.length")]))();emptyStateBody(){return(0,a.htmlSafe)((0,g.i18n)("user.no_notifications_page_body",{preferencesUrl:(0,p.default)("/my/preferences/notifications"),icon:(0,h.iconHTML)("bell")}))}static #A=(()=>dt7948.n(this.prototype,"emptyStateBody",[(0,d.default)()]))();async markRead(){await (0,u.ajax)("/notifications/mark-read",{type:"PUT"}),this.model.forEach(e=>e.set("read",!0))}updateFilter(e){this.loading=!0,this.filter=e}static #E=(()=>dt7948.n(this.prototype,"updateFilter",[r.action]))();async resetNew(){this.currentUser.unread_high_priority_notifications>0?this.modal.show(l.default,{model:{confirmationMessage:(0,g.i18n)("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications}),dismissNotifications:()=>this.markRead()}}):this.markRead()}static #D=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();loadMore(){(!b.length||b.some(e=>e(this)))&&this.model.loadMore()}static #P=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))()}},37037:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(28418);class n extends s.default{}},13100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(35533),r=i(83133),o=i(843);let a=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[r.service]))();#nZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#aX=(()=>void dt7948.i(this,"user"))();get viewingSelf(){return this.user.get("viewingSelf")}get newLinkText(){return this.#s$("new")}get unreadLinkText(){return this.#s$("unread")}get navigationControlsButton(){return document.getElementById("navigation-controls__button")}#s$(e){let t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"group",groupName:this.group.name});return 0===t?(0,o.i18n)(`user.messages.${e}`):(0,o.i18n)(`user.messages.${e}_with_count`,{count:t})}changeGroupNotificationLevel(e){this.group.setNotification(e,this.get("user.model.id"))}static #s=(()=>dt7948.n(this.prototype,"changeGroupNotificationLevel",[n.action]))()}},59179:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(8554),n=i(28418),r=i(35533);let o=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"tagsForUser",[s.tracked],function(){return null}))();#c1=(()=>void dt7948.i(this,"tagsForUser"))();static #i=(()=>dt7948.g(this.prototype,"sortedByCount",[s.tracked],function(){return!0}))();#c0=(()=>void dt7948.i(this,"sortedByCount"))();static #s=(()=>dt7948.g(this.prototype,"sortedByName",[s.tracked],function(){return!1}))();#c3=(()=>void dt7948.i(this,"sortedByName"))();static #l=(()=>dt7948.g(this.prototype,"sortProperties",[s.tracked],function(){return["count:desc","id"]}))();#c8=(()=>void dt7948.i(this,"sortProperties"))();sortByCount(e){e?.preventDefault(),this.sortProperties=["count:desc","id"],this.sortedByCount=!0,this.sortedByName=!1}static #c=(()=>dt7948.n(this.prototype,"sortByCount",[r.action]))();sortById(e){e?.preventDefault(),this.sortProperties=["id"],this.sortedByCount=!1,this.sortedByName=!0}static #u=(()=>dt7948.n(this.prototype,"sortById",[r.action]))()}},69558:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(8554),n=i(28418);let r=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"tagName",[s.tracked],function(){return null}))();#c2=(()=>void dt7948.i(this,"tagName"))()}},6540:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(28418),n=i(83133),r=i(843);let o=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#aX=(()=>void dt7948.i(this,"user"))();get viewingSelf(){return this.user.get("viewingSelf")}get showWarningsWarning(){return"userPrivateMessages.user.warnings"===this.router.currentRoute.name&&!this.viewingSelf&&!this.currentUser.isAdmin}get newLinkText(){return this.#s$("new")}get unreadLinkText(){return this.#s$("unread")}#s$(e){let t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"user"});return 0===t?(0,r.i18n)(`user.messages.${e}`):(0,r.i18n)(`user.messages.${e}_with_count`,{count:t})}}},35490:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m,registerCustomUserNavMessagesDropdownRow:()=>p,resetCustomUserNavMessagesDropdownRows:()=>h});var s=i(8554),n=i(28418),r=i(35533),o=i(30574),a=i(83133),l=i(87353),c=i(843);let u=(0,i(38168).A)(i(8554)).cached,d=[];function p(e,t,i){d.push({routeName:e,name:t,icon:i})}function h(){d.length=0}let m=class extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"user",[n.inject]))();#aX=(()=>void dt7948.i(this,"user"))();static #s=(()=>dt7948.g(this.prototype,"userTopicsList",[n.inject]))();#c4=(()=>void dt7948.i(this,"userTopicsList"))();static #l=(()=>dt7948.g(this.prototype,"group",[s.tracked]))();#aO=(()=>void dt7948.i(this,"group"))();static #c=(()=>dt7948.g(this.prototype,"tagId",[s.tracked]))();#c7=(()=>void dt7948.i(this,"tagId"))();static #u=(()=>dt7948.g(this.prototype,"groupFilter",[(0,o.alias)("group.name")]))();#c9=(()=>void dt7948.i(this,"groupFilter"))();static #d=(()=>dt7948.g(this.prototype,"showNewPM",[(0,o.and)("user.viewingSelf","currentUser.can_send_private_messages")]))();#c5=(()=>void dt7948.i(this,"showNewPM"))();static #p=(()=>dt7948.g(this.prototype,"isGroup",[(0,o.equal)("currentParentRouteName","userPrivateMessages.group")]))();#c6=(()=>void dt7948.i(this,"isGroup"))();static #h=(()=>dt7948.g(this.prototype,"viewingSelf",[(0,o.readOnly)("user.viewingSelf")]))();#ue=(()=>void dt7948.i(this,"viewingSelf"))();static #m=(()=>dt7948.g(this.prototype,"currentParentRouteName",[(0,o.readOnly)("router.currentRoute.parent.name")]))();#ut=(()=>void dt7948.i(this,"currentParentRouteName"))();static #g=(()=>dt7948.g(this.prototype,"pmTaggingEnabled",[(0,o.readOnly)("site.can_tag_pms")]))();#ui=(()=>void dt7948.i(this,"pmTaggingEnabled"))();get bulkSelectHelper(){return this.userTopicsList.bulkSelectHelper}get messagesDropdownValue(){let e;let t=this.router.currentURL.toLowerCase();for(let i=this.messagesDropdownContent.length-1;i>=0;i--){let s=this.messagesDropdownContent[i];if(t.includes(s.id.toLowerCase().replace(this.router.rootURL,"/"))){e=s.id;break}}return e}get messagesDropdownContent(){let e=this.model.username_lower,t=[{id:this.router.urlFor("userPrivateMessages.user",e),name:(0,c.i18n)("user.messages.inbox")}];return this.model.groupsWithMessages.forEach(i=>{t.push({id:this.router.urlFor("userPrivateMessages.group",e,i.name),name:i.name,icon:"inbox"})}),this.pmTaggingEnabled&&t.push({id:this.router.urlFor("userPrivateMessages.tags",e),name:(0,c.i18n)("user.messages.tags"),icon:"tags"}),d.forEach(i=>{t.push({id:this.router.urlFor(i.routeName,e),name:i.name,icon:i.icon})}),t}static #A=(()=>dt7948.n(this.prototype,"messagesDropdownContent",[u]))();onMessagesDropdownChange(e){return l.default.routeTo(e)}static #E=(()=>dt7948.n(this.prototype,"onMessagesDropdownChange",[r.action]))()}},14030:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(28418),n=i(30574),r=i(63748),o=i(17206);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"userController",[(0,s.inject)("user")]))();#us=(()=>void dt7948.i(this,"userController"))();static #i=(()=>dt7948.g(this.prototype,"user",[(0,n.alias)("userController.model")]))();#aX=(()=>void dt7948.i(this,"user"))();moreBadges(e){return e>=6}static #s=(()=>dt7948.n(this.prototype,"moreBadges",[(0,r.default)("model.badges.length")]))();timeRead(e){return(0,o.duration)(e,{format:"tiny"})}static #l=(()=>dt7948.n(this.prototype,"timeRead",[(0,r.default)("model.time_read")]))();timeReadMedium(e){return(0,o.duration)(e,{format:"medium"})}static #c=(()=>dt7948.n(this.prototype,"timeReadMedium",[(0,r.default)("model.time_read")]))();showRecentTimeRead(e,t){return e!==t&&0!==t}static #u=(()=>dt7948.n(this.prototype,"showRecentTimeRead",[(0,r.default)("model.time_read","model.recent_time_read")]))();recentTimeRead(e){return e>0?(0,o.duration)(e,{format:"tiny"}):null}static #d=(()=>dt7948.n(this.prototype,"recentTimeRead",[(0,r.default)("model.recent_time_read")]))();recentTimeReadMedium(e){return e>0?(0,o.duration)(e,{format:"medium"}):null}static #p=(()=>dt7948.n(this.prototype,"recentTimeReadMedium",[(0,r.default)("model.recent_time_read")]))()}},35149:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(8554),n=i(28418),r=i(35533),o=i(4959),a=i(30574),l=i(75983),c=i(88355),u=i(58112),d=i(63748),p=i(20144),h=i(19268),m=i(28482),g=i(70155);class f extends n.default{static #e=(()=>dt7948.g(this.prototype,"model",[s.tracked]))();#aS=(()=>void dt7948.i(this,"model"))();hideCategory=!1;showPosters=!1;channel=null;tagsForUser=null;queryParams=(()=>Object.keys(g.QUERY_PARAMS))();bulkSelectHelper=(()=>new u.default(this))();static #i=(()=>dt7948.g(this.prototype,"canBulkSelect",[(0,a.or)("currentUser.canManageTopic","showDismissRead","showResetNew")]))();#un=(()=>void dt7948.i(this,"canBulkSelect"))();constructor(){for(let[e,t]of(super(...arguments),Object.entries(g.QUERY_PARAMS)))(0,p.defineTrackedProperty)(this,e,t.default)}get incomingCount(){return this.pmTopicTrackingState.newIncoming.length}static #s=(()=>dt7948.n(this.prototype,"incomingCount",[o.dependentKeyCompat]))();get bulkSelectEnabled(){return this.bulkSelectHelper.bulkSelectEnabled}get selected(){return this.bulkSelectHelper.selected}noContent(e,t){return 0===e&&0===t}static #l=(()=>dt7948.n(this.prototype,"noContent",[(0,d.default)("model.topics.length","incomingCount")]))();showResetNew(e,t){return e===m.NEW_FILTER&&t}static #c=(()=>dt7948.n(this.prototype,"showResetNew",[(0,d.default)("filter","model.topics.length")]))();showDismissRead(e,t){return e===m.UNREAD_FILTER&&t}static #u=(()=>dt7948.n(this.prototype,"showDismissRead",[(0,d.default)("filter","model.topics.length")]))();subscribe(){this.pmTopicTrackingState.trackIncoming(this.inbox,this.filter)}unsubscribe(){this.pmTopicTrackingState.stopIncomingTracking()}changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}static #d=(()=>dt7948.n(this.prototype,"changeSort",[r.action]))();get resolvedAscending(){return(0,l.isNone)(this.ascending)?"true"===this.model.get("params.ascending"):"true"===this.ascending.toString()}get resolvedOrder(){return this.order??this.model.get("params.order")??"activity"}resetNew(){let e=this.selected?this.selected.map(e=>e.id):null,t={inbox:this.inbox,topicIds:e};this.group&&(t.groupName=this.group.name),h.default.pmResetNew(t).then(e=>{e&&e.topic_ids.length>0&&(this.pmTopicTrackingState.removeTopics(e.topic_ids),this.send("refresh"))})}static #p=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();loadMore(){this.model.loadMore()}static #h=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))();async showInserted(e){if(e?.preventDefault(),!this.model.loadingBefore)try{let e=[...this.pmTopicTrackingState.newIncoming];await this.model.loadBefore(e),this.pmTopicTrackingState.resetIncomingTracking(e)}catch(e){(0,c.popupAjaxError)(e)}}static #m=(()=>dt7948.n(this.prototype,"showInserted",[r.action]))();refresh(){this.send("triggerRefresh")}static #g=(()=>dt7948.n(this.prototype,"refresh",[r.action]))();toggleBulkSelect(){this.bulkSelectHelper.toggleBulkSelect()}static #A=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[r.action]))();dismissRead(e,t){this.bulkSelectHelper.dismissRead(e,t)}static #E=(()=>dt7948.n(this.prototype,"dismissRead",[r.action]))();updateAutoAddTopicsToBulkSelect(e){this.bulkSelectHelper.autoAddTopicsToBulkSelect=e}static #D=(()=>dt7948.n(this.prototype,"updateAutoAddTopicsToBulkSelect",[r.action]))();addTopicsToBulkSelect(e){this.bulkSelectHelper.addTopics(e)}static #P=(()=>dt7948.n(this.prototype,"addTopicsToBulkSelect",[r.action]))()}},23795:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(94480),l=i(75983),c=i(17358),u=i(82805),d=i(63748),p=i(94636),h=i(90092),m=i(21719),g=i(843);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"adminTools",[h.default]))();#sf=(()=>void dt7948.i(this,"adminTools"))();static #c=(()=>dt7948.g(this.prototype,"userNotifications",[(0,s.inject)("user-notifications")]))();#ur=(()=>void dt7948.i(this,"userNotifications"))();static #u=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,u.setting)("moderators_view_emails")]))();#oj=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #d=(()=>dt7948.g(this.prototype,"isSummaryRoute",[(0,r.equal)("router.currentRouteName","user.summary")]))();#uo=(()=>void dt7948.i(this,"isSummaryRoute"))();static #p=(()=>dt7948.g(this.prototype,"canMuteOrIgnoreUser",[(0,r.or)("model.can_ignore_user","model.can_mute_user")]))();#ua=(()=>void dt7948.i(this,"canMuteOrIgnoreUser"))();static #h=(()=>dt7948.g(this.prototype,"hasGivenFlags",[(0,r.gt)("model.number_of_flags_given",0)]))();#ul=(()=>void dt7948.i(this,"hasGivenFlags"))();static #m=(()=>dt7948.g(this.prototype,"hasFlaggedPosts",[(0,r.gt)("model.number_of_flagged_posts",0)]))();#uc=(()=>void dt7948.i(this,"hasFlaggedPosts"))();static #g=(()=>dt7948.g(this.prototype,"hasDeletedPosts",[(0,r.gt)("model.number_of_deleted_posts",0)]))();#uu=(()=>void dt7948.i(this,"hasDeletedPosts"))();static #A=(()=>dt7948.g(this.prototype,"hasBeenSuspended",[(0,r.gt)("model.number_of_suspensions",0)]))();#ud=(()=>void dt7948.i(this,"hasBeenSuspended"))();static #E=(()=>dt7948.g(this.prototype,"hasReceivedWarnings",[(0,r.gt)("model.warnings_received_count",0)]))();#up=(()=>void dt7948.i(this,"hasReceivedWarnings"))();static #D=(()=>dt7948.g(this.prototype,"hasRejectedPosts",[(0,r.gt)("model.number_of_rejected_posts",0)]))();#uh=(()=>void dt7948.i(this,"hasRejectedPosts"))();static #P=(()=>dt7948.g(this.prototype,"isTrustLevelZero",[(0,r.equal)("model.trust_level",0)]))();#um=(()=>void dt7948.i(this,"isTrustLevelZero"))();static #Q=(()=>dt7948.g(this.prototype,"hasTrustLevel",[(0,r.or)("isTrustLevelZero","model.trust_level")]))();#ug=(()=>void dt7948.i(this,"hasTrustLevel"))();static #J=(()=>dt7948.g(this.prototype,"showStaffCounters",[(0,r.or)("hasGivenFlags","hasFlaggedPosts","hasDeletedPosts","hasBeenSuspended","hasReceivedWarnings","hasRejectedPosts")]))();#uf=(()=>void dt7948.i(this,"showStaffCounters"))();static #X=(()=>dt7948.g(this.prototype,"showFeaturedTopic",[(0,r.and)("model.featured_topic","siteSettings.allow_featured_topic_on_user_profiles")]))();#oK=(()=>void dt7948.i(this,"showFeaturedTopic"))();static #Z=(()=>dt7948.g(this.prototype,"linkWebsite",[(0,r.not)("model.isBasic")]))();#oH=(()=>void dt7948.i(this,"linkWebsite"))();static #ee=(()=>dt7948.g(this.prototype,"canDeleteUser",[(0,r.and)("model.can_be_deleted","model.can_delete_all_posts")]))();#u_=(()=>void dt7948.i(this,"canDeleteUser"))();static #et=(()=>dt7948.g(this.prototype,"currentParentRoute",[(0,r.readOnly)("router.currentRoute.parent.name")]))();#uy=(()=>void dt7948.i(this,"currentParentRoute"))();viewingSelf(e){return this.currentUser&&e===this.currentUser?.get("username")}static #ei=(()=>dt7948.n(this.prototype,"viewingSelf",[(0,d.default)("model.username")]))();canExpandProfile(e,t){return!t&&e}static #es=(()=>dt7948.n(this.prototype,"canExpandProfile",[(0,d.default)("viewingSelf","model.profile_hidden")]))();hasProfileBackgroundUrl(e){return!(0,l.isEmpty)(e.toString())}static #en=(()=>dt7948.n(this.prototype,"hasProfileBackgroundUrl",[(0,d.default)("model.profileBackgroundUrl")]))();collapsedInfo(e,t,i,s){return!!e||(!t||i)&&!s}static #er=(()=>dt7948.n(this.prototype,"collapsedInfo",[(0,d.default)("model.profile_hidden","isSummaryRoute","viewingSelf","forceExpand")]))();get collapsedInfoState(){return{isExpanded:!this.collapsedInfo,icon:this.collapsedInfo?"angles-down":"angles-up",label:this.collapsedInfo?"expand_profile":"collapse_profile",ariaLabel:this.collapsedInfo?"user.sr_expand_profile":"user.sr_collapse_profile",action:"toggleProfile"}}static #eo=(()=>dt7948.n(this.prototype,"collapsedInfoState",[(0,n.computed)("collapsedInfo")]))();isNotSuspendedOrIsStaff(e,t){return!e||t}static #ea=(()=>dt7948.n(this.prototype,"isNotSuspendedOrIsStaff",[(0,d.default)("model.suspended","currentUser.staff")]))();removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow}static #el=(()=>dt7948.n(this.prototype,"removeNoFollow",[(0,d.default)("model.trust_level")]))();showBookmarks(e,t){return e||t}static #ec=(()=>dt7948.n(this.prototype,"showBookmarks",[(0,d.default)("viewingSelf","currentUser.admin")]))();showDrafts(e){return e}static #eu=(()=>dt7948.n(this.prototype,"showDrafts",[(0,d.default)("viewingSelf")]))();showRead(e){return e}static #ed=(()=>dt7948.n(this.prototype,"showRead",[(0,d.default)("viewingSelf")]))();showPrivateMessages(e,t){return this.currentUser?.can_send_private_messages&&(e||t)}static #ep=(()=>dt7948.n(this.prototype,"showPrivateMessages",[(0,d.default)("viewingSelf","currentUser.admin","currentUser.can_send_private_messages")]))();showActivityTab(e,t){return e||t||!this.siteSettings.hide_user_activity_tab}static #eh=(()=>dt7948.n(this.prototype,"showActivityTab",[(0,d.default)("viewingSelf","currentUser.admin")]))();showNotificationsTab(e,t){return e||t}static #iK=(()=>dt7948.n(this.prototype,"showNotificationsTab",[(0,d.default)("viewingSelf","currentUser.admin")]))();nameFirst(e){return(0,m.prioritizeNameInUx)(e)}static #iG=(()=>dt7948.n(this.prototype,"nameFirst",[(0,d.default)("model.name")]))();showBadges(e){return this.siteSettings.enable_badges&&e>0}static #iY=(()=>dt7948.n(this.prototype,"showBadges",[(0,d.default)("model.badge_count")]))();canInviteToForum(){return this.currentUser?.get("can_invite_to_forum")}static #iQ=(()=>dt7948.n(this.prototype,"canInviteToForum",[(0,d.default)()]))();publicUserFields(){let e=this.site.get("user_fields");if(!(0,l.isEmpty)(e)){let t=this.get("model.user_fields");return e.filterBy("show_on_profile",!0).sortBy("position").map(e=>{(0,n.set)(e,"dasherized_name",(0,a.dasherize)(e.get("name")));let i=t?t[e.get("id").toString()]:null;return(0,l.isEmpty)(i)?null:n.default.create({value:i,field:e})}).compact()}}static #iJ=(()=>dt7948.n(this.prototype,"publicUserFields",[(0,d.default)("model.user_fields.@each.value")]))();primaryGroup(e){if(e)return`group-${e}`}static #iX=(()=>dt7948.n(this.prototype,"primaryGroup",[(0,d.default)("model.primary_group_name")]))();get userNotificationLevel(){return this.get("model.ignored")?"changeToIgnored":this.get("model.muted")?"changeToMuted":"changeToNormal"}static #oG=(()=>dt7948.n(this.prototype,"userNotificationLevel",[(0,n.computed)("currentUser.ignored_ids","model.ignored","model.muted")]))();set userNotificationLevel(e){}get canCheckEmails(){return new c.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #oY=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,n.computed)("model.id","currentUser.id")]))();get displayTopLevelAdminButton(){return!!this.currentUser?.staff&&this.site.desktopView}showSuspensions(e){e?.preventDefault(),this.adminTools.showActionLogs(this,{target_user:this.get("model.username"),action_name:"suspend_user"})}static #oQ=(()=>dt7948.n(this.prototype,"showSuspensions",[n.action]))();toggleProfile(){this.toggleProperty("forceExpand")}static #oJ=(()=>dt7948.n(this.prototype,"toggleProfile",[n.action]))();adminDelete(){let e=this.get("model.id"),t=document.location.pathname,i=i=>{this.dialog.notice((0,g.i18n)("admin.user.deleting_user"));let s={context:t};return i&&(s.block_email=!0,s.block_urls=!0,s.block_ip=!0),s.delete_posts=!0,this.adminTools.deleteUser(e,s).then(e=>{e.deleted?document.location=(0,p.default)("/admin/users/list/active"):this.dialog.alert((0,g.i18n)("admin.user.delete_failed"))}).catch(()=>this.dialog.alert((0,g.i18n)("admin.user.delete_failed")))};this.dialog.alert({title:(0,g.i18n)("admin.user.delete_confirm_title"),message:(0,g.i18n)("admin.user.delete_confirm"),class:"delete-user-modal",buttons:[{label:(0,g.i18n)("admin.user.delete_dont_block"),class:"btn-primary",action:()=>i(!1)},{icon:"triangle-exclamation",label:(0,g.i18n)("admin.user.delete_and_block"),class:"btn-danger",action:()=>i(!0)},{label:(0,g.i18n)("composer.cancel")}]})}static #oX=(()=>dt7948.n(this.prototype,"adminDelete",[n.action]))();updateNotificationLevel(e){return this.model.updateNotificationLevel(e)}static #oZ=(()=>dt7948.n(this.prototype,"updateNotificationLevel",[n.action]))()}},58102:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(28418),n=i(35533),r=i(30574),o=i(83133),a=i(61705),l=i(46301),c=i(17206),u=i(6856);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();queryParams=["period","order","asc","name","group","exclude_usernames","exclude_groups"];period="weekly";order="";asc=null;name="";group=null;nameInput=null;exclude_usernames=null;exclude_groups=null;isLoading=!1;columns=null;groupOptions=null;params=null;static #i=(()=>dt7948.g(this.prototype,"showGroupFilter",[(0,r.and)("currentUser","groupOptions")]))();#ub=(()=>void dt7948.i(this,"showGroupFilter"))();static #s=(()=>dt7948.g(this.prototype,"showTimeRead",[(0,r.equal)("period","all")]))();#uv=(()=>void dt7948.i(this,"showTimeRead"))();loadUsers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&this.set("params",e),this.setProperties({isLoading:!0,nameInput:this.params.name,order:this.params.order});let t=this.columns.filter(e=>"user_field"===e.type).map(e=>e.user_field_id).join("|"),i=this.columns.filter(e=>"plugin"===e.type).map(e=>e.id).join("|");return this.store.find("directoryItem",Object.assign(this.params,{user_field_ids:t,plugin_column_ids:i})).then(e=>{let t=e.get("resultSetMeta.last_updated_at");this.setProperties({model:e,lastUpdatedAt:t?(0,c.longDate)(t):null,period:this.params.period})}).finally(()=>{this.set("isLoading",!1)})}loadGroups(){if(this.currentUser)return u.default.findAll({ignore_automatic:!0}).then(e=>{let t=e.filter(e=>e.can_see_members).map(e=>({name:e.full_name||e.name,id:e.name}));this.set("groupOptions",t)})}groupChanged(e,t){this.set("group",t?.id)}static #l=(()=>dt7948.n(this.prototype,"groupChanged",[n.action]))();showEditColumnsModal(){this.modal.show(a.default)}static #c=(()=>dt7948.n(this.prototype,"showEditColumnsModal",[n.action]))();onUsernameFilterChanged(e){(0,l.default)(this,this._setUsernameFilter,e,500)}static #u=(()=>dt7948.n(this.prototype,"onUsernameFilterChanged",[n.action]))();_setUsernameFilter(e){this.setProperties({name:e,"params.name":e}),this.loadUsers()}loadMore(){this.model.loadMore()}static #d=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))()}},58210:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=[{handler:"silence",matchId:"template-action"},{handler:"silence",matchId:"deprecate-array-prototype-extensions"},{handler:"silence",matchId:"discourse.select-kit"},{handler:"silence",matchId:"discourse.decorate-widget.hamburger-widget-links"}]},72248:(e,t,i)=>{"use strict";i.r(t);var s=i(48079),n=i(38168);(0,s.default)("discourse-common/helpers/base-path",()=>(0,n.A)(i(12677))),(0,s.default)("discourse-common/helpers/base-url",()=>(0,n.A)(i(85469))),(0,s.default)("discourse-common/helpers/bound-i18n",()=>(0,n.A)(i(63463))),(0,s.default)("discourse-common/helpers/component-for-collection",()=>(0,n.A)(i(82256))),(0,s.default)("discourse-common/helpers/component-for-row",()=>(0,n.A)(i(93410))),(0,s.default)("discourse-common/helpers/d-icon",()=>(0,n.A)(i(72738))),(0,s.default)("discourse-common/helpers/fa-icon",()=>(0,n.A)(i(53335))),(0,s.default)("discourse-common/helpers/get-url",()=>(0,n.A)(i(72722))),(0,s.default)("discourse-common/helpers/html-safe",()=>(0,n.A)(i(71899))),(0,s.default)("discourse-common/helpers/i18n-yes-no",()=>(0,n.A)(i(21324))),(0,s.default)("discourse-common/helpers/i18n",()=>(0,n.A)(i(84400))),(0,s.default)("discourse-common/lib/attribute-hook",()=>(0,n.A)(i(6466))),(0,s.default)("discourse-common/lib/avatar-utils",()=>(0,n.A)(i(17587))),(0,s.default)("discourse-common/lib/case-converter",()=>(0,n.A)(i(48775))),(0,s.default)("discourse-common/lib/debounce",()=>(0,n.A)(i(46301))),(0,s.default)("discourse-common/lib/deprecated",()=>(0,n.A)(i(16547))),(0,s.default)("discourse-common/lib/discourse-template-map",()=>(0,n.A)(i(99291))),(0,s.default)("discourse-common/lib/dom-from-string",()=>(0,n.A)(i(45067))),(0,s.default)("discourse-common/lib/escape",()=>(0,n.A)(i(84457))),(0,s.default)("discourse-common/lib/get-owner",()=>(0,n.A)(i(99434))),(0,s.default)("discourse-common/lib/get-url",()=>(0,n.A)(i(94636))),(0,s.default)("discourse-common/lib/helpers",()=>(0,n.A)(i(65573))),(0,s.default)("discourse-common/lib/icon-library",()=>(0,n.A)(i(51429))),(0,s.default)("discourse-common/lib/later",()=>(0,n.A)(i(53306))),(0,s.default)("discourse-common/lib/loader-shim",()=>(0,n.A)(i(48079))),(0,s.default)("discourse-common/lib/object",()=>(0,n.A)(i(93805))),(0,s.default)("discourse-common/lib/popular-themes",()=>(0,n.A)(i(55180))),(0,s.default)("discourse-common/lib/raw-handlebars-helpers",()=>(0,n.A)(i(83471))),(0,s.default)("discourse-common/lib/raw-handlebars",()=>(0,n.A)(i(11071))),(0,s.default)("discourse-common/lib/raw-templates",()=>(0,n.A)(i(47716))),(0,s.default)("discourse-common/lib/suffix-trie",()=>(0,n.A)(i(27992))),(0,s.default)("discourse-common/utils/decorator-alias",()=>(0,n.A)(i(56360))),(0,s.default)("discourse-common/utils/decorators",()=>(0,n.A)(i(63748))),(0,s.default)("discourse-common/utils/dom-utils",()=>(0,n.A)(i(48276))),(0,s.default)("discourse-common/utils/escape-regexp",()=>(0,n.A)(i(19587))),(0,s.default)("discourse-common/utils/extract-value",()=>(0,n.A)(i(93985))),(0,s.default)("discourse-common/utils/handle-descriptor",()=>(0,n.A)(i(14580))),(0,s.default)("discourse-common/utils/is-descriptor",()=>(0,n.A)(i(73018))),(0,s.default)("discourse-common/utils/macro-alias",()=>(0,n.A)(i(33297))),(0,s.default)("discourse-common/utils/multi-cache",()=>(0,n.A)(i(98590))),(0,s.default)("discourse-common/deprecation-workflow",()=>(0,n.A)(i(58210))),(0,s.default)("discourse-common/resolver",()=>(0,n.A)(i(97463))),(0,s.default)("discourse-common/config/environment",()=>(0,n.A)(i(77093)))},79741:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(72738),r=i(53653),o=i(85671);class a extends s.default{get type(){return this.args.type||"info"}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"8cxEw1Wf",block:'[[[1,"\\n "],[11,0],[16,0,[29,["form-kit__alert alert alert-",[30,0,["type"]]]]],[17,1],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"form-kit__alert-message"],[12],[18,3,null],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@icon","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/alert.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},90282:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(81329),r=i(81133),o=i(53653),a=i(85671);class l extends s.default{get currentLength(){return this.args.value?.length||0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"4J/bO9r/",block:'[[[1,"\\n "],[11,1],[16,0,[28,[32,0],["form-kit__char-counter",[52,[28,[32,1],[[30,0,["currentLength"]],[30,1]],null],"--exceeded"],[52,[28,[32,2],[[30,0,["currentLength"]],[30,2]],null],"--insufficient"]],null]],[17,3],[12],[1,"\\n "],[1,[30,0,["currentLength"]]],[1,"/"],[1,[30,1]],[1,"\\n "],[13],[1,"\\n "]],["@maxLength","@minLength","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/char-counter.js",scope:()=>[r.default,n.gt,n.lt],isStrictMode:!0}),this))()}},77272:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(75446),n=i(83639),r=i(13887),o=i(53653),a=i(85671),l=i(73306);let c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"wIsai0iZ",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__checkbox-group"]],[["@title","@description"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n "],[18,11,[[28,[32,1],null,[["Field"],[[50,[32,2],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor","showMeta","showTitle"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],false,false]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],["@title","@description","@errors","@addError","@data","@set","@remove","@registerField","@unregisterField","@triggerRevalidationFor","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/checkbox-group.js",scope:()=>[r.default,s.hash,n.default],isStrictMode:!0}),(0,l.default)(void 0,"checkbox-group:FKCheckboxGroup"))},75985:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(81133),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"rez9encz",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__col",[52,[30,1],[28,[32,1],["--col-",[30,1]],null]]],null]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],["@size","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/col.js",scope:()=>[n.default,s.concat],isStrictMode:!0}),(0,a.default)(void 0,"col:FKCol"))},5303:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(75446),r=i(35533),o=i(83639),a=i(58632),l=i(45782),c=i(53653),u=i(85671);class d extends s.default{remove(e){this.args.remove(this.name,e)}static #e=(()=>dt7948.n(this.prototype,"remove",[r.action]))();get collectionData(){return this.args.data.get(this.name)}get name(){return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get tagName(){return this.args.tagName||"div"}static #i=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"2NuTOciD",block:'[[[1,"\\n"],[44,[[28,[32,0],[[30,0,["tagName"]]],null]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["collectionData"]]],null]],null],"index",[[[1," "],[8,[30,1],[[24,0,"form-kit__collection"]],null,[["default"],[[[[1,"\\n "],[18,12,[[28,[32,1],null,[["Field","Object","Collection","remove"],[[50,[32,2],0,null,[["errors","collectionIndex","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,4],[30,3],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null]]]],[50,[32,4],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null]]]],[50,[32,5],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName","remove"],[[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null],[30,11]]]],[30,0,["remove"]]]]],[30,3],[28,[32,6],[[30,0,["collectionData"]],[30,3]],null]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[2,3]],null]],[1]]],[1," "]],["Wrapper","data","index","@errors","@addError","@data","@set","@registerField","@unregisterField","@triggerRevalidationFor","@remove","&default"],false,["let","each","-track-array","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/collection.js",scope:()=>[l.default,n.hash,o.default,n.concat,a.default,d,r.get],isStrictMode:!0}),this))()}},64411:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(30424),n=i(81133),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"1YhtsGZF",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["form-kit__container",[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"form-kit__container-title"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[32,1],[[24,0,"form-kit__container-subtitle"]],null,[["default"],[[[[1,[30,4]]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"form-kit__container-content"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@title","@subtitle","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/container.js",scope:()=>[n.default,s.default],isStrictMode:!0}),(0,a.default)(void 0,"container:FKContainer"))},85132:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(80989),n=i(75446),r=i(18387),o=i(99269),a=i(81329),l=i(12621),c=i(29546),u=i(43927),d=i(30424),p=i(9700),h=i(81133),m=i(53653),g=i(85671);class f extends s.default{get controlType(){return"input"===this.args.component.controlType?this.args.field.type+"-"+(this.args.type||"text"):this.args.field.type}get error(){return(this.args.errors??{})[this.args.field.name]}get titleFormat(){return this.args.field.titleFormat||this.args.field.format}get descriptionFormat(){return this.args.field.descriptionFormat||this.args.field.format}normalizeName(e){return e.replace(/\./g,"-")}static #e=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"HjsyGZgx",block:'[[[1,"\\n "],[11,0],[16,1,[28,[32,0],["control-",[28,[30,0,["normalizeName"]],[[30,1,["name"]]],null]],null]],[16,0,[28,[32,1],["form-kit__container","form-kit__field",[28,[32,0],["form-kit__field-",[30,0,["controlType"]]],null],[52,[30,0,["error"]],"has-error"],[52,[30,1,["disabled"]],"is-disabled"],[52,[28,[32,2],[[30,1,["format"]],"full"],null],"--full"]],null]],[16,"data-disabled",[30,1,["disabled"]]],[16,"data-name",[30,1,["name"]]],[16,"data-control-type",[30,0,["controlType"]]],[4,[32,3],[[28,[32,4],[[30,2],[30,1,["name"]],[30,1]],null]],null],[4,[32,5],[[28,[32,4],[[30,3],[30,1,["name"]]],null]],null],[12],[1,"\\n"],[41,[51,[28,[32,2],[[30,1,["type"]],"checkbox"],null]],[[[41,[30,1,["showTitle"]],[[[1," "],[8,[32,6],[[16,0,[28,[32,1],["form-kit__container-title",[52,[30,0,["titleFormat"]],[28,[32,0],["--",[30,0,["titleFormat"]]],null]]],null]]],[["@fieldId"],[[30,1,["id"]]]],[["default"],[[[[1,"\\n "],[10,1],[12],[1,[30,1,["title"]]],[13],[1,"\\n\\n "],[8,[32,7],null,[["@field"],[[30,1]]],null],[1,"\\n "],[8,[32,8],null,[["@field"],[[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[8,[32,9],[[16,0,[28,[32,1],["form-kit__container-description",[52,[30,0,["descriptionFormat"]],[28,[32,0],["--",[30,0,["descriptionFormat"]]],null]]],null]]],null,[["default"],[[[[1,[30,1,["description"]]]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,0],[15,0,[28,[32,1],["form-kit__container-content",[52,[30,1,["format"]],[28,[32,0],["--",[30,1,["format"]]],null]]],null]],[12],[1,"\\n "],[8,[30,4],[[16,1,[30,1,["id"]]],[16,3,[30,1,["name"]]],[16,"aria-invalid",[52,[30,0,["error"]],"true"]],[16,"aria-describedby",[52,[30,0,["error"]],[30,1,["errorId"]]]],[17,5]],[["@field","@value","@type","@yesLabel","@noLabel","@lang","@before","@after","@height","@preview","@selection","@includeNone"],[[30,1],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],[["default"],[[[[1,"\\n "],[18,18,[[30,17]]],[1,"\\n "]],[17]]]]],[1,"\\n\\n "],[8,[32,10],null,[["@field","@error"],[[30,1],[30,0,["error"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@field","@registerField","@unregisterField","@component","&attrs","@value","@type","@yesLabel","@noLabel","@lang","@before","@after","@height","@preview","@selection","@includeNone","components","&default"],false,["if","unless","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control-wrapper.js",scope:()=>[n.concat,h.default,a.eq,r.default,n.fn,o.default,l.default,u.default,p.default,d.default,c.default],isStrictMode:!0}),this))()}},44452:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(99615),r=i(35533),o=i(81329),a=i(12621),l=i(43927),c=i(9700),u=i(53653),d=i(85671);class p extends s.default{static controlType="checkbox";handleInput(){this.args.field.set(!this.args.field.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"ZFkM0UjX",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-checkbox-label"]],null,[["default"],[[[[1,"\\n "],[11,"input"],[24,4,"checkbox"],[16,"checked",[28,[32,1],[[30,1,["value"]],true],null]],[24,0,"form-kit__control-checkbox"],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,2],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"form-kit__control-checkbox-content"],[12],[1,"\\n "],[10,1],[14,0,"form-kit__control-checkbox-title"],[12],[1,"\\n "],[10,1],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[8,[32,3],null,[["@field"],[[30,1]]],null],[1,"\\n "],[8,[32,4],null,[["@field"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[48,[30,3]],[[[1," "],[10,1],[14,0,"form-kit__control-checkbox-description"],[12],[18,3,null],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","&attrs","&default"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/checkbox.js",scope:()=>[a.default,o.eq,n.on,l.default,c.default],isStrictMode:!0}),this))()}},9548:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(35533),r=i(42256),o=i(5546),a=i(42236),l=i(53653),c=i(85671);class u extends s.default{static controlType="code";initialValue=(()=>this.args.field.value||"")();handleInput(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[n.action]))();get style(){if(this.args.height)return(0,r.htmlSafe)(`height: ${(0,a.escapeExpression)(this.args.height)}px`)}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"/mqoIPm9",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-code"],[16,5,[30,0,["style"]]],[17,1]],[["@content","@onChange","@mode","@disabled"],[[30,0,["initialValue"]],[30,0,["handleInput"]],[30,2],[30,3,["disabled"]]]],null],[1,"\\n "]],["&attrs","@lang","@field"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/code.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},98975:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(35533),r=i(42256),o=i(4855),a=i(81133),l=i(42236),c=i(53653),u=i(85671);class d extends s.default{static controlType="composer";handleInput(e){this.args.field.set(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[n.action]))();get style(){if(this.args.height)return(0,r.htmlSafe)(`height: ${(0,l.escapeExpression)(this.args.height)}px`)}static #i=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"5o4nAI8v",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["form-kit__control-composer",[52,[30,1],"--preview"]],null]],[16,5,[30,0,["style"]]]],[["@value","@change","@disabled","@textAreaId"],[[28,[31,1],[[30,2,["value"]]],null],[30,0,["handleInput"]],[30,2,["disabled"]],[30,2,["id"]]]],null],[1,"\\n "]],["@preview","@field"],false,["if","readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/composer.js",scope:()=>[o.default,a.default],isStrictMode:!0}),this))()}},3989:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(60887),l=i(54807),c=i(53653),u=i(85671),d=i(73306);let p=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"YWz5JxSS",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__inline-radio"],[12],[1,"\\n "],[18,3,[[50,[32,0],0,null,[["activeName","setCondition"],[[30,1],[30,2]]]]]],[1,"\\n "],[13],[1,"\\n"]],["@activeName","@setCondition","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[a.default],isStrictMode:!0}),(0,d.default)(void 0,"conditional-content:Conditions")),h=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"TWiPdggF",block:'[[[1,"\\n "],[18,2,[[50,[32,0],0,null,[["activeName"],[[30,1]]]]]],[1,"\\n"]],["@activeName","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[l.default],isStrictMode:!0}),(0,d.default)(void 0,"conditional-content:Contents"));class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"activeName",[n.tracked],function(){return this.args.activeName}))();#uw=(()=>void dt7948.i(this,"activeName"))();setCondition(e){this.activeName=e}static #i=(()=>dt7948.n(this.prototype,"setCondition",[o.action]))();static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"biThpBVH",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__conditional-display"],[12],[1,"\\n "],[18,1,[[28,[32,0],null,[["Conditions","Contents"],[[50,[32,1],0,null,[["activeName","setCondition"],[[30,0,["activeName"]],[30,0,["setCondition"]]]]],[50,[32,2],0,null,[["activeName"],[[30,0,["activeName"]]]]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[r.hash,p,h],isStrictMode:!0}),this))()}},60887:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(75446),n=i(99615),r=i(81329),o=i(12621),a=i(18933),l=i(53653),c=i(85671),u=i(73306);let d=(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"KjqHsv7p",block:'[[[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,1,[30,1]],[16,2,[30,2]],[16,"checked",[28,[32,2],[[30,2],[30,3]],null]],[24,0,"form-kit__control-radio"],[24,4,"radio"],[4,[32,3],["change",[28,[32,4],[[30,4],[30,2]],null]],null],[12],[13],[1,"\\n\\n "],[10,1],[12],[18,5,null],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]]]],["uuid","@name","@activeName","@setCondition","&default"],false,["let","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content/condition.js",scope:()=>[a.default,o.default,r.eq,n.on,s.fn],isStrictMode:!0}),(0,u.default)(void 0,"condition:FKControlConditionalContentOption"))},54807:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(81329),n=i(81133),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fdQQ0LVi",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__conditional-display-content",[52,[28,[32,1],[[30,1],[30,2]],null],"hidden"]],null]],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["@name","@activeName","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content/content.js",scope:()=>[n.default,s.notEq],isStrictMode:!0}),(0,a.default)(void 0,"content:FKControlConditionalContentItem"))},9178:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(80989),n=i(53653),r=i(85671);class o extends s.default{static controlType="custom";static #e=(()=>(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"dQm5PXT/",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__control-custom"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/custom.js",isStrictMode:!0}),this))()}},77092:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75446),r=i(35533),o=i(59154),a=i(53653),l=i(85671);class c extends s.default{static controlType="icon";handleInput(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"zkQKCYt8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-icon"]],[["@value","@onlyAvailable","@options","@onChange"],[[28,[31,0],[[30,1,["value"]]],null],true,[28,[32,1],null,[["maximum","disabled","caretDownIcon","caretUpIcon","icons"],[1,[30,1,["disabled"]],"angle-down","angle-up",[30,1,["value"]]]]],[30,0,["handleInput"]]]],null],[1,"\\n "]],["@field"],false,["readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/icon.js",scope:()=>[o.default,n.hash],isStrictMode:!0}),this))()}},87100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(75446),r=i(35533),o=i(75983),a=i(76572),l=i(53653),c=i(85671);class u extends s.default{static controlType="image";setImage(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"setImage",[r.action]))();removeImage(){this.setImage(void 0)}static #i=(()=>dt7948.n(this.prototype,"removeImage",[r.action]))();get imageUrl(){return(0,o.isBlank)(this.args.field.value)?null:this.args.field.value}static #s=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"wK75HdmC",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-image no-repeat contain-image"]],[["@id","@imageUrl","@onUploadDone","@onUploadDeleted","@type"],[[28,[32,1],[[30,1,["id"]],"-",[30,1,["name"]]],null],[30,0,["imageUrl"]],[30,0,["setImage"]],[30,0,["removeImage"]],[30,2]]],null],[1,"\\n "]],["@field","@type"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/image.js",scope:()=>[a.default,n.concat],isStrictMode:!0}),this))()}},89062:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(99615),r=i(35533),o=i(81133),a=i(53653),l=i(85671);let c=["color","date","datetime-local","email","hidden","month","number","password","range","search","tel","text","time","url","week"];class u extends s.default{static controlType="input";constructor(e,t){if(super(...arguments),["checkbox","radio"].includes(t.type))throw Error(`input component does not support @type="${t.type}" as there is a dedicated component for this.`);if(t.type&&!c.includes(t.type))throw Error(`input component does not support @type="${t.type}", must be one of ${c.join(", ")}!`)}get type(){return this.args.type??"text"}handleInput(e){let t=""===e.target.value?void 0:"number"===this.type?parseFloat(e.target.value):e.target.value;this.args.field.set(t)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"9gu/ApTy",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__control-input-wrapper"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[14,0,"form-kit__before-input"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,2,[30,2,["value"]]],[16,0,[28,[32,0],["form-kit__control-input",[52,[30,1],"has-prefix"],[52,[30,3],"has-suffix"]],null]],[16,"disabled",[30,2,["disabled"]]],[17,4],[4,[32,1],["input",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"form-kit__after-input"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@before","@field","@after","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/input.js",scope:()=>[o.default,n.on],isStrictMode:!0}),this))()}},29006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(80989),n=i(8554),r=i(75446),o=i(35533),a=i(95988),l=i(82698),c=i(57494),u=i(65280),d=i(49390),p=i(72738),h=i(53653),m=i(85671);class g extends s.default{static controlType="menu";static #e=(()=>dt7948.g(this.prototype,"menuApi",[n.tracked]))();#uk=(()=>void dt7948.i(this,"menuApi"))();registerMenuApi(e){this.menuApi=e}static #i=(()=>dt7948.n(this.prototype,"registerMenuApi",[o.action]))();static #s=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"MxdDx327",block:'[[[1,"\\n "],[8,[32,0],[[16,1,[30,1,["id"]]],[16,"data-value",[30,1,["value"]]]],[["@onRegisterApi","@triggerClass","@contentClass","@disabled","@placement","@offset","@modalForMobile"],[[30,0,["registerMenuApi"]],"form-kit__control-menu-trigger","form-kit__control-menu-content",[30,1,["disabled"]],"bottom-start",5,true]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["angle-down"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n "],[18,4,[[28,[32,3],null,[["Item","Divider","Container"],[[50,[32,4],0,null,[["item","field","menuApi"],[[30,3,["item"]],[30,1],[30,0,["menuApi"]]]]],[50,[32,5],0,null,[["divider"],[[30,3,["divider"]]]]],[32,6]]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","@selection","menu","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu.js",scope:()=>[a.default,p.default,l.default,r.hash,d.default,u.default,c.default],isStrictMode:!0}),this))()}},57494:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"TKNpZ7dB",block:'[[[1,"\\n "],[10,"li"],[14,0,"form-kit__control-menu-container"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/container.js",isStrictMode:!0}),(0,r.default)(void 0,"container:FKControlMenuContainer"))},65280:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"e3bbHlKa",block:'[[[1,"\\n "],[8,[30,1],[[24,0,"form-kit__control-menu-divider"]],null,null],[1,"\\n"]],["@divider"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/divider.js",isStrictMode:!0}),(0,r.default)(void 0,"divider:FKControlMenuDivider"))},49390:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(35533),r=i(18638),o=i(53653),a=i(85671);class l extends s.default{handleInput(){this.args.menuApi.close(),this.args.action?this.args.action(this.args.value,{set:this.args.set}):this.args.field.set(this.args.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[n.action]))();static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ljDoDPGu",block:'[[[1,"\\n "],[8,[30,1],[[24,0,"form-kit__control-menu-item"],[16,"data-value",[30,2]]],null,[["default"],[[[[1,"\\n "],[8,[32,0],[[24,0,"btn-flat"],[17,3]],[["@action","@icon"],[[30,0,["handleInput"]],[30,4]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@item","@value","&attrs","@icon","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/item.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},40364:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(80989),n=i(8554),r=i(99615),o=i(35533),a=i(68587),l=i(81329),c=i(18638),u=i(81133),d=i(53653),p=i(85671);let h={text:"text",password:"password"};class m extends s.default{static controlType="password";static #e=(()=>dt7948.g(this.prototype,"type",[n.tracked],function(){return h.password}))();#rH=(()=>void dt7948.i(this,"type"))();static #i=(()=>dt7948.g(this.prototype,"isFocused",[n.tracked],function(){return!1}))();#tp=(()=>void dt7948.i(this,"isFocused"))();focusState=(()=>(0,a.modifier)(e=>{let t=()=>{this.isFocused=!0},i=()=>{this.isFocused=!1};return e.addEventListener("focusin",t),e.addEventListener("focusout",i),()=>{e.removeEventListener("focusin",t),e.removeEventListener("focusout",i)}}))();get iconForType(){return this.type===h.password?"far-eye":"far-eye-slash"}handleInput(e){let t=""===e.target.value?void 0:e.target.value;this.args.field.set(t)}static #s=(()=>dt7948.n(this.prototype,"handleInput",[o.action]))();toggleVisibility(){this.type=this.type===h.password?h.text:h.password}static #l=(()=>dt7948.n(this.prototype,"toggleVisibility",[o.action]))();static #c=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"A/Hk9VAs",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__control-password-wrapper",[52,[30,0,["isFocused"]],"is-focused"]],null]],[12],[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,2,[30,1,["value"]]],[24,0,"form-kit__control-password"],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,1],["input",[30,0,["handleInput"]]],null],[4,[30,0,["focusState"]],null,null],[12],[13],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-transparent form-kit__control-password-toggle"],[24,"role","switch"],[16,"aria-checked",[28,[32,3],[[30,0,["type"]],[32,4,["text"]]],null]]],[["@action","@icon"],[[30,0,["toggleVisibility"]],[30,0,["iconForType"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@field","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/password.js",scope:()=>[u.default,r.on,c.default,l.eq,h],isStrictMode:!0}),this))()}},13597:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80989),n=i(99615),r=i(35533),o=i(81329),a=i(12621),l=i(18933),c=i(843),u=i(53653),d=i(85671);class p extends s.default{static controlType="question";handleInput(e){this.args.field.set("true"===e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"2JyI9QHP",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__inline-radio"],[12],[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label --yes"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[24,2,"true"],[16,"checked",[28,[32,2],[[30,2,["value"]],true],null]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,3],[16,1,[30,1]],[4,[32,3],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,4],[[[1," "],[1,[30,4]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["yes_value"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[1]]],[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label --no"]],[["@fieldId"],[[30,5]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[24,2,"false"],[16,"checked",[28,[32,2],[[30,2,["value"]],false],null]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,3],[16,1,[30,5]],[4,[32,3],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[1,[30,6]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["no_value"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[5]]],[1," "],[13],[1,"\\n "]],["uuid","@field","&attrs","@yesLabel","uuid","@noLabel"],false,["let","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/question.js",scope:()=>[l.default,a.default,o.eq,n.on,c.i18n],isStrictMode:!0}),this))()}},73332:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75446),r=i(13887),o=i(81432),a=i(53653),l=i(85671);class c extends s.default{static controlType="radio-group";static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Fhjsu3U8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-radio-group"],[17,1]],[["@title","@subtitle"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[18,6,[[28,[32,1],null,[["Radio"],[[50,[32,2],0,null,[["value","field"],[[30,4],[30,5]]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@title","@subtitle","@value","@field","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group.js",scope:()=>[r.default,n.hash,o.default],isStrictMode:!0}),this))()}},81432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(75446),n=i(99615),r=i(81329),o=i(12621),a=i(18933),l=i(48137),c=i(53653),u=i(85671),d=i(73306);let p=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"HRWyCQma",block:'[[[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-title"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",isStrictMode:!0}),(0,d.default)(void 0,"radio:radioTitle")),h=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"4aCKKZli",block:'[[[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-description"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",isStrictMode:!0}),(0,d.default)(void 0,"radio:radioDescription")),m=(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"2EoODoD3",block:'[[[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[10,0],[14,0,"form-kit__field form-kit__field-radio"],[12],[1,"\\n "],[8,[32,1],[[24,0,"form-kit__control-radio-label"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[16,2,[30,3]],[16,"checked",[28,[32,2],[[30,2,["value"]],[30,3]],null]],[16,1,[30,1]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,4],[4,[32,3],["change",[28,[32,4],[[30,2,["set"]]],null]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-content"],[12],[1,"\\n "],[18,5,[[28,[32,5],null,[["Title","Description"],[[32,6],[32,7]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]]]],["uuid","@field","@value","&attrs","&default"],false,["let","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",scope:()=>[a.default,o.default,r.eq,n.on,l.default,s.hash,p,h],isStrictMode:!0}),(0,d.default)(void 0,"radio:FKControlRadioGroupRadio"))},25541:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(75446),r=i(75983),o=i(64994),a=i(53653),l=i(85671),c=i(73306);let u=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"xRTqTd92",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-option"]],[["@value","@selected"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n "],[18,3,null],[1,"\\n "]],[]]]]],[1,"\\n"]],["@value","@selected","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/select.js",scope:()=>[o.DSelectOption],isStrictMode:!0}),(0,c.default)(void 0,"select:SelectOption"));class d extends s.default{static controlType="select";get includeNone(){return!!(0,r.isBlank)(this.args.field.value)||(this.args.includeNone??!this.args.field.validation?.includes("required"))}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"pCZPYI8q",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-select"],[16,"disabled",[30,1,["disabled"]]],[17,2]],[["@value","@onChange","@includeNone"],[[30,1,["value"]],[30,1,["set"]],[30,0,["includeNone"]]]],[["default"],[[[[1,"\\n "],[18,3,[[28,[32,1],null,[["Option"],[[50,[32,2],0,null,[["selected"],[[30,1,["value"]]]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","&attrs","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/select.js",scope:()=>[o.default,n.hash,u],isStrictMode:!0}),this))()}},79639:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(80989),n=i(99615),r=i(35533),o=i(42256),a=i(42236),l=i(53653),c=i(85671);class u extends s.default{static controlType="textarea";handleInput(e){this.args.field.set(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();get style(){if(this.args.height)return(0,o.htmlSafe)(`height: ${(0,a.escapeExpression)(this.args.height)}px`)}static #i=(()=>(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"hQRPm0/K",block:'[[[1,"\\n "],[11,"textarea"],[24,0,"form-kit__control-textarea"],[16,5,[30,0,["style"]]],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,0],["input",[30,0,["handleInput"]]],null],[12],[1,[30,1,["value"]]],[13],[1,"\\n "]],["@field","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/textarea.js",scope:()=>[n.on],isStrictMode:!0}),this))()}},54613:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(99615),r=i(35533),o=i(65903),a=i(53653),l=i(85671);class c extends s.default{static controlType="toggle";handleInput(){this.args.field.set(!this.args.field.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"WA+g4Vh1",block:'[[[1,"\\n "],[8,[32,0],[[16,"disabled",[30,1,["disabled"]]],[24,0,"form-kit__control-toggle"],[4,[32,1],["click",[30,0,["handleInput"]]],null]],[["@state"],[[30,1,["value"]]]],null],[1,"\\n "]],["@field"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/toggle.js",scope:()=>[o.default,n.on],isStrictMode:!0}),this))()}},54473:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75446),r=i(72738),o=i(843),a=i(53653),l=i(85671);class c extends s.default{concatErrors(e){return e.join(", ")}get hasErrors(){return Object.keys(this.args.errors).length>0}normalizeName(e){return e.replace(/\./g,"-")}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"cB6pll1C",block:'[[[1,"\\n"],[41,[30,0,["hasErrors"]],[[[1," "],[11,0],[24,0,"form-kit__errors-summary"],[24,"aria-live","assertive"],[17,1],[12],[1,"\\n "],[10,"h2"],[14,0,"form-kit__errors-summary-title"],[12],[1,"\\n "],[1,[28,[32,0],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[32,1],["form_kit.errors_summary_title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"ul"],[14,0,"form-kit__errors-summary-list"],[12],[1,"\\n"],[42,[28,[31,2],[[30,2]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[10,3],[14,"rel","noopener noreferrer"],[15,6,[28,[32,2],["#control-",[28,[30,0,["normalizeName"]],[[30,4]],null]],null]],[12],[1,[30,3,["title"]]],[13],[1,":\\n "],[1,[28,[30,0,["concatErrors"]],[[30,3,["messages"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&attrs","@errors","error","name"],false,["if","each","-each-in"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/errors-summary.js",scope:()=>[r.default,o.i18n,n.concat],isStrictMode:!0}),this))()}},34608:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(72738),r=i(53653),o=i(85671);class a extends s.default{concatErrors(e){return e.join(", ")}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fQmBKq8+",block:'[[[1,"\\n "],[11,2],[24,0,"form-kit__errors"],[16,1,[30,1]],[24,"aria-live","assertive"],[17,2],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[30,0,["concatErrors"]],[[30,3,["messages"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@id","&attrs","@error"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/errors.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},4404:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(80989),n=i(8554),r=i(35533),o=i(29223),a=i(67872),l=i(18933),c=i(53653),u=i(85671);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"type",[n.tracked]))();#rH=(()=>void dt7948.i(this,"type"))();id=(()=>(0,l.default)())();errorId=(()=>(0,l.default)())();constructor(){if(super(...arguments),!this.args.title?.length)throw Error("@title is required on ``.")}get value(){return this.args.data.get(this.name)}get rules(){return this.args.validation?o.default.parse(this.args.validation):null}async set(e){this.args.onSet?await this.args.onSet(e,{set:this.args.set,index:this.args.collectionIndex}):await this.args.set(this.name,e,{index:this.args.collectionIndex}),this.args.triggerRevalidationFor(this.name)}static #i=(()=>dt7948.n(this.prototype,"set",[r.action]))();get title(){return this.args.title}get format(){return this.args.format}get titleFormat(){return this.args.titleFormat}get descriptionFormat(){return this.args.descriptionFormat}get tooltip(){return this.args.tooltip}get disabled(){return this.args.disabled??!1}get description(){return this.args.description}get showTitle(){return this.args.showTitle??!0}get addError(){return this.args.addError}get name(){if("string"!=typeof this.args.name)throw Error("@name is required and must be a string on ``.");if(this.args.name.includes(".")||this.args.name.includes("-"))throw Error("@name can't include `.` or `-`.");return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get validation(){return this.args.validation}get customValidate(){return this.args.validate}get required(){return this.rules?.required??!1}get maxLength(){return this.rules?.length?.max??null}get minLength(){return this.rules?.length?.min??null}async validate(e,t,i){if(this.disabled)return;await this.customValidate?.(e,t,{data:i,type:this.type,addError:this.addError});let s=new a.default(t,this.rules);(await s.validate(this.type)).forEach(t=>{let i=this.title;void 0!==this.args.collectionIndex&&(i+=` #${this.args.collectionIndex+1}`),this.addError(e,{title:i,message:t})})}static #s=(()=>(0,c.setComponentTemplate)((0,u.createTemplateFactory)({id:"BXcbNW7J",block:'[[[1,"\\n "],[18,1,[[30,0]]],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field-data.js",isStrictMode:!0}),this))()}},83639:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i(80989),n=i(75446),r=i(35533),o=i(31049),a=i(5007),l=i(44452),c=i(9548),u=i(98975),d=i(9178),p=i(77092),h=i(87100),m=i(89062),g=i(29006),f=i(40364),_=i(13597),y=i(73332),b=i(25541),w=i(79639),k=i(54613),T=i(85132),S=i(4404),C=i(8735),x=i(53653),A=i(85671),E=i(73306);let D=(0,x.setComponentTemplate)((0,A.createTemplateFactory)({id:"CsG8ZtZr",block:'[[[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[8,[30,1,["Col"]],null,[["@size"],[[30,2]]],[["default"],[[[[1,"\\n "],[18,3,null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n"]],["row","@size","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",scope:()=>[C.default],isStrictMode:!0}),(0,E.default)(void 0,"field:RowColWrapper")),P=(0,x.setComponentTemplate)((0,A.createTemplateFactory)({id:"n5XyIG/O",block:'[[[1,"\\n"],[1," "],[18,1,null],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",isStrictMode:!0}),(0,E.default)(void 0,"field:EmptyWrapper"));class M extends s.default{get wrapper(){return this.args.size?D:P}componentFor(e,t){let i=this,s={get errors(){return i.args.errors},unregisterField:i.args.unregisterField,registerField:i.args.registerField,component:e,field:t};if(!e.controlType)throw Error(`Static property \`controlType\` is required on component: ${e}`);return t.type=e.controlType,(0,a.A)(T.default,s,(0,o.getOwner)(this))}static #e=(()=>dt7948.n(this.prototype,"componentFor",[r.action]))();static #i=(()=>(0,x.setComponentTemplate)((0,A.createTemplateFactory)({id:"bnik53nJ",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@data","@triggerRevalidationFor","@title","@tooltip","@description","@showTitle","@collectionIndex","@set","@addError","@validate","@validation","@onSet","@registerField","@format","@titleFormat","@descriptionFormat","@disabled","@parentName"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19]]],[["default"],[[[[1,"\\n "],[8,[30,0,["wrapper"]],null,[["@size"],[[30,21]]],[["default"],[[[[1,"\\n "],[18,22,[[28,[32,1],null,[["Custom","Code","Question","Textarea","Checkbox","Image","Password","Composer","Icon","Toggle","Menu","Select","Input","RadioGroup","errorId","id","name","set","value"],[[28,[30,0,["componentFor"]],[[32,2],[30,20]],null],[28,[30,0,["componentFor"]],[[32,3],[30,20]],null],[28,[30,0,["componentFor"]],[[32,4],[30,20]],null],[28,[30,0,["componentFor"]],[[32,5],[30,20]],null],[28,[30,0,["componentFor"]],[[32,6],[30,20]],null],[28,[30,0,["componentFor"]],[[32,7],[30,20]],null],[28,[30,0,["componentFor"]],[[32,8],[30,20]],null],[28,[30,0,["componentFor"]],[[32,9],[30,20]],null],[28,[30,0,["componentFor"]],[[32,10],[30,20]],null],[28,[30,0,["componentFor"]],[[32,11],[30,20]],null],[28,[30,0,["componentFor"]],[[32,12],[30,20]],null],[28,[30,0,["componentFor"]],[[32,13],[30,20]],null],[28,[30,0,["componentFor"]],[[32,14],[30,20]],null],[28,[30,0,["componentFor"]],[[32,15],[30,20]],null],[30,20,["errorId"]],[30,20,["id"]],[30,20,["name"]],[30,20,["set"]],[30,20,["value"]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[20]]]]],[1,"\\n "]],["@name","@data","@triggerRevalidationFor","@title","@tooltip","@description","@showTitle","@collectionIndex","@set","@addError","@validate","@validation","@onSet","@registerField","@format","@titleFormat","@descriptionFormat","@disabled","@parentName","field","@size","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",scope:()=>[S.default,n.hash,d.default,c.default,_.default,w.default,l.default,h.default,f.default,u.default,p.default,k.default,g.default,b.default,m.default,y.default],isStrictMode:!0}),this))()}},13887:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(30424),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"rrv8SmR9",block:'[[[1,"\\n "],[11,"fieldset"],[16,3,[30,1]],[24,0,"form-kit__fieldset"],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"legend"],[14,0,"form-kit__fieldset-title"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[32,0],[[24,0,"form-kit__fieldset-description"]],null,[["default"],[[[[1,"\\n "],[1,[30,4]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],["@name","&attrs","@title","@description","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/fieldset.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"fieldset:FKFieldset"))},86597:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var s=i(80989),n=i(8554),r=i(75446),o=i(99615),a=i(35533),l=i(31049),c=i(83133),u=i(5007),d=i(18638),p=i(79741),h=i(77272),m=i(5303),g=i(64411),f=i(3989),_=i(54473),y=i(83639),b=i(13887),w=i(15849),k=i(58632),T=i(8735),S=i(85320),C=i(30939),x=i(5391),A=i(52713),E=i(843),D=i(53653),P=i(85671),M=i(73306);class F extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[c.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[c.service]))();#N=(()=>void dt7948.i(this,"router"))();static #s=(()=>dt7948.g(this.prototype,"isValidating",[n.tracked],function(){return!1}))();#uT=(()=>void dt7948.i(this,"isValidating"))();static #l=(()=>dt7948.g(this.prototype,"isSubmitting",[n.tracked],function(){return!1}))();#uS=(()=>void dt7948.i(this,"isSubmitting"))();fields=(()=>new Map)();formData=(()=>new A.default(this.args.data??{}))();constructor(){super(...arguments),this.args.onRegisterApi?.({set:this.set,setProperties:this.setProperties,submit:this.onSubmit,reset:this.onReset,addError:this.addError,removeError:this.removeError}),this.router.on("routeWillChange",this.checkIsDirty)}willDestroy(){super.willDestroy(),this.router.off("routeWillChange",this.checkIsDirty)}async checkIsDirty(e){!this.formData.isDirty||e.isAborted||e.queryParamsOnly||(e.abort(),this.dialog.yesNoConfirm({message:(0,E.i18n)("form_kit.dirty_form"),didConfirm:async()=>{await this.onReset(),e.retry()}}))}static #c=(()=>dt7948.n(this.prototype,"checkIsDirty",[a.action]))();get validateOn(){return this.args.validateOn??x.VALIDATION_TYPES.submit}get fieldValidationEvent(){let{validateOn:e}=this;if(e!==x.VALIDATION_TYPES.submit)return e}componentFor(e){let t=this,i={get errors(){return t.formData.errors},get data(){return t.formData},addError:t.addError,set:t.set,registerField:t.registerField,unregisterField:t.unregisterField,triggerRevalidationFor:t.triggerRevalidationFor,remove:t.remove};return(0,u.A)(e,i,(0,l.getOwner)(this))}static #u=(()=>dt7948.n(this.prototype,"componentFor",[a.action]))();addError(e,t){let{title:i,message:s}=t;this.formData.addError(e,{title:i,message:s})}static #d=(()=>dt7948.n(this.prototype,"addError",[a.action]))();removeError(e){this.formData.removeError(e)}static #p=(()=>dt7948.n(this.prototype,"removeError",[a.action]))();async addItemToCollection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.formData.get(e)??[];this.formData.set(e,i.concat(t))}static #h=(()=>dt7948.n(this.prototype,"addItemToCollection",[a.action]))();async remove(e,t){let i=this.formData.get(e)??[];this.formData.set(e,i.filter((e,i)=>i!==t)),Object.keys(this.formData.errors).forEach(i=>{i.startsWith(`${e}.${t}.`)&&this.formData.removeError(i)})}static #m=(()=>dt7948.n(this.prototype,"remove",[a.action]))();async set(e,t){this.formData.set(e,t),this.fieldValidationEvent===x.VALIDATION_TYPES.change&&await this.triggerRevalidationFor(e)}static #g=(()=>dt7948.n(this.prototype,"set",[a.action]))();async setProperties(e){for(let[t,i]of Object.entries(e))await this.set(t,i)}static #A=(()=>dt7948.n(this.prototype,"setProperties",[a.action]))();registerField(e,t){if(!e)throw Error("@name is required on ``.");if(this.fields.has(e))throw Error(`@name="${e}", is already in use. Names of \`\` must be unique!`);return this.fields.set(e,t),t}static #E=(()=>dt7948.n(this.prototype,"registerField",[a.action]))();unregisterField(e){this.fields.delete(e),this.removeError(e)}static #D=(()=>dt7948.n(this.prototype,"unregisterField",[a.action]))();async onSubmit(e){if(e?.preventDefault(),!this.isSubmitting)try{this.isSubmitting=!0,await this.validate(this.fields.values()),this.formData.isValid&&(this.formData.save(),await this.args.onSubmit?.(this.formData.draftData))}finally{this.isSubmitting=!1}}static #P=(()=>dt7948.n(this.prototype,"onSubmit",[a.action]))();async onReset(e){e?.preventDefault(),this.formData.removeErrors(),await this.formData.rollback(),await this.args.onReset?.(this.formData.draftData)}static #Q=(()=>dt7948.n(this.prototype,"onReset",[a.action]))();async triggerRevalidationFor(e){let t=this.fields.get(e);t&&this.formData.errors[e]&&await this.validate([t])}static #J=(()=>dt7948.n(this.prototype,"triggerRevalidationFor",[a.action]))();async validate(e){if(!this.isValidating){this.isValidating=!0;try{for(let t of e)this.formData.removeError(t.name),await t.validate?.(t.name,this.formData.get(t.name),this.formData.draftData);await this.args.validate?.(this.formData.draftData,{addError:this.addError,removeError:this.removeError})}finally{this.isValidating=!1}}}static #X=(()=>(0,D.setComponentTemplate)((0,P.createTemplateFactory)({id:"m97tBm6N",block:'[[[1,"\\n "],[11,"form"],[24,"novalidate",""],[24,0,"form-kit"],[17,1],[4,[32,0],["submit",[30,0,["onSubmit"]]],null],[4,[32,0],["reset",[30,0,["onReset"]]],null],[12],[1,"\\n "],[8,[32,1],null,[["@errors"],[[30,0,["formData","errors"]]]],null],[1,"\\n\\n "],[18,2,[[28,[32,2],null,[["Row","Section","Fieldset","ConditionalContent","Container","Actions","Button","Alert","Submit","Reset","Field","Collection","Object","InputGroup","CheckboxGroup","set","setProperties","addItemToCollection"],[[32,3],[32,4],[32,5],[50,[32,6],0,null,null],[32,7],[50,[32,4],0,null,[["class"],["form-kit__actions"]]],[50,[32,8],0,null,[["class"],["form-kit__button"]]],[32,9],[50,[32,10],0,null,[["action","forwardEvent","class","type","isLoading"],[[30,0,["onSubmit"]],true,"btn-primary form-kit__button","submit",[30,0,["isSubmitting"]]]]],[50,[32,8],0,null,[["action","forwardEvent","class","label"],[[30,0,["onReset"]],true,"form-kit__button","form_kit.reset"]]],[28,[30,0,["componentFor"]],[[32,11]],null],[28,[30,0,["componentFor"]],[[32,12]],null],[28,[30,0,["componentFor"]],[[32,13]],null],[28,[30,0,["componentFor"]],[[32,14]],null],[28,[30,0,["componentFor"]],[[32,15]],null],[30,0,["set"]],[30,0,["setProperties"]],[30,0,["addItemToCollection"]]]]],[30,0,["formData","draftData"]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/form.js",scope:()=>[o.on,_.default,r.hash,T.default,S.default,b.default,f.default,g.default,d.default,p.default,C.default,y.default,m.default,k.default,w.default,h.default],isStrictMode:!0}),this))()}let I=(0,D.setComponentTemplate)((0,P.createTemplateFactory)({id:"5b7SwWEc",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,0],[[30,1]],null]],null]],null],null,[[[1," "],[8,[32,1],[[17,3]],[["@data","@onSubmit","@validate","@validateOn","@onRegisterApi","@onReset"],[[30,2],[30,4],[30,5],[30,6],[30,7],[30,8]]],[["default"],[[[[1,"\\n "],[18,11,[[30,9],[30,10]]],[1,"\\n "]],[9,10]]]]],[1,"\\n"]],[2]],null]],["@data","data","&attrs","@onSubmit","@validate","@validateOn","@onRegisterApi","@onReset","components","draftData","&default"],false,["each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/form.js",scope:()=>[r.array,F],isStrictMode:!0}),(0,M.default)(void 0,"form:Form"))},15849:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(83639),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"YRUquOU1",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__input-group"],[12],[1,"\\n "],[18,9,[[28,[32,0],null,[["Field"],[[50,[32,1],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor","showMeta"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],false]]]]]]]],[1,"\\n "],[13],[1,"\\n"]],["@errors","@addError","@data","@set","@remove","@registerField","@unregisterField","@triggerRevalidationFor","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/input-group.js",scope:()=>[s.hash,n.default],isStrictMode:!0}),(0,a.default)(void 0,"input-group:FKInputGroup"))},12621:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"/t8VX6sR",block:'[[[1,"\\n "],[11,"label"],[16,"for",[30,1]],[17,2],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["@fieldId","&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/label.js",isStrictMode:!0}),(0,r.default)(void 0,"label:FKLabel"))},29546:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(80989),n=i(90282),r=i(34608),o=i(53653),a=i(85671);class l extends s.default{get shouldRenderCharCounter(){return this.args.field.maxLength>0&&!this.args.field.disabled}get shouldRenderMeta(){return this.showMeta&&(this.shouldRenderCharCounter||this.args.error)}get showMeta(){return this.args.showMeta??!0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ln0RNVQn",block:'[[[1,"\\n"],[41,[30,0,["shouldRenderMeta"]],[[[1," "],[10,0],[14,0,"form-kit__meta"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@id","@error"],[[30,2,["errorId"]],[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldRenderCharCounter"]],[[[1," "],[8,[32,1],null,[["@value","@minLength","@maxLength"],[[30,2,["value"]],[30,2,["minLength"]],[30,2,["maxLength"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@error","@field"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/meta.js",scope:()=>[r.default,n.default],isStrictMode:!0}),this))()}},58632:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80989),n=i(75446),r=i(5303),o=i(83639),a=i(53653),l=i(85671);class c extends s.default{get objectData(){return this.args.data.get(this.name)}get name(){return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get keys(){return Object.keys(this.objectData)}entryData(e){return this.objectData[e]}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"kAHbdPCW",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__object"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["keys"]]],null]],null],"index",[[[1," "],[18,10,[[28,[32,0],null,[["Field","Object","Collection"],[[50,[32,1],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]]]]],[50,[32,2],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]]]]],[50,[32,3],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName","remove"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]],[30,9]]]]]]],[30,1],[28,[30,0,["entryData"]],[[30,1]],null]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["name","@errors","@addError","@data","@set","@registerField","@unregisterField","@triggerRevalidationFor","@remove","&default"],false,["each","-track-array","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/object.js",scope:()=>[n.hash,o.default,c,r.default],isStrictMode:!0}),this))()}},43927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(843),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"rSkiGlVN",block:'[[[1,"\\n"],[41,[51,[30,1,["required"]]],[[[1," "],[10,1],[14,0,"form-kit__container-optional"],[12],[1,"("],[1,[28,[32,0],["form_kit.optional"],null]],[1,")"],[13],[1,"\\n"]],[]],null]],["@field"],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/optional.js",scope:()=>[s.i18n],isStrictMode:!0}),(0,o.default)(void 0,"optional:FKOptional"))},8735:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75446),n=i(75985),r=i(53653),o=i(85671),a=i(73306);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ziBXeloV",block:'[[[1,"\\n "],[11,0],[24,0,"form-kit__row"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["Col"],[[32,1]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/row.js",scope:()=>[s.hash,n.default],isStrictMode:!0}),(0,a.default)(void 0,"row:FKRow"))},85320:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(81133),n=i(53653),r=i(85671),o=i(73306);let a=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"wG10/z8Q",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["form-kit__section",[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"h2"],[14,0,"form-kit__section-title"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"form-kit__section-subtitle"],[12],[1,[30,4]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@title","@subtitle","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/section.js",scope:()=>[s.default],isStrictMode:!0}),(0,o.default)(void 0,"section:FKSection"))},30939:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(18638),r=i(53653),o=i(85671);class a extends s.default{get label(){return this.args.label??"submit"}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"GV7MEAfH",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary form-kit__button"],[24,4,"submit"],[17,1]],[["@label","@action","@forwardEvent","@isLoading"],[[30,0,["label"]],[30,2],"true",[30,3]]],null],[1,"\\n "]],["&attrs","@onSubmit","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/submit.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},30424:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"ftVkxDau",block:'[[[1,"\\n "],[11,2],[24,0,"form-kit-text"],[17,1],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/text.js",isStrictMode:!0}),(0,r.default)(void 0,"text:FKText"))},9700:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80989),n=i(31886),r=i(53653),o=i(85671);class a extends s.default{get isComponentTooltip(){return"object"==typeof this.args.field.tooltip}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"gJOGBWq5",block:'[[[1,"\\n"],[41,[30,1,["tooltip"]],[[[41,[30,0,["isComponentTooltip"]],[[[1," "],[8,[30,1,["tooltip"]],null,null,null],[1,"\\n"]],[]],[[[1," "],[8,[32,0],[[24,0,"form-kit__tooltip"]],[["@icon","@content"],["circle-question",[30,1,["tooltip"]]]],null],[1,"\\n"]],[]]]],[]],null],[1," "]],["@field"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/tooltip.js",scope:()=>[n.default],isStrictMode:!0}),this))()}},5391:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NO_VALUE_OPTION:()=>n,VALIDATION_TYPES:()=>s});let s={submit:"submit",change:"change",focusout:"focusout",input:"input"},n="__NONE__"},52713:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Q});var s,n=i(8554),r=i(62053),o=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),l=Symbol.for("immer-state");function c(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var u=Object.getPrototypeOf;function d(e){return!!e&&!!e[l]}function p(e){return!!e&&(m(e)||Array.isArray(e)||!!e[a]||!!e.constructor?.[a]||w(e)||k(e))}var h=Object.prototype.constructor.toString();function m(e){if(!e||"object"!=typeof e)return!1;let t=u(e);if(null===t)return!0;let i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===h}function g(e,t){0===f(e)?Reflect.ownKeys(e).forEach(i=>{t(i,e[i],e)}):e.forEach((i,s)=>t(s,i,e))}function f(e){let t=e[l];return t?t.type_:Array.isArray(e)?1:w(e)?2:3*!!k(e)}function _(e,t){return 2===f(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t){return 2===f(e)?e.get(t):e[t]}function b(e,t,i){let s=f(e);2===s?e.set(t,i):3===s?e.add(i):e[t]=i}function w(e){return e instanceof Map}function k(e){return e instanceof Set}function T(e){return e.copy_||e.base_}function S(e,t){if(w(e))return new Map(e);if(k(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let i=m(e);if(!0!==t&&("class_only"!==t||i)){let t=u(e);return null!==t&&i?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[l];let i=Reflect.ownKeys(t);for(let s=0;s1&&void 0!==arguments[1]&&arguments[1];return A(e)||d(e)||!p(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&Object.entries(e).forEach(e=>{let[t,i]=e;return C(i,!0)})),e}function x(){c(2)}function A(e){return Object.isFrozen(e)}var E={};function D(e){let t=E[e];return t||c(0,e),t}function P(){return s}function M(e,t){t&&(D("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function F(e){I(e),e.drafts_.forEach(O),e.drafts_=null}function I(e){e===s&&(s=e.parent_)}function N(e){return s=function(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}(s,e)}function O(e){let t=e[l];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;let i=t.drafts_[0];return void 0!==e&&e!==i?(i[l].modified_&&(F(t),c(4)),p(e)&&(e=R(t,e),t.parent_||j(t,e)),t.patches_&&D("Patches").generateReplacementPatches_(i[l].base_,e,t.patches_,t.inversePatches_)):e=R(t,i,[]),F(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function R(e,t,i){if(A(t))return t;let s=t[l];if(!s)return g(t,(n,r)=>U(e,s,t,n,r,i)),t;if(s.scope_!==e)return t;if(!s.modified_)return j(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;let t=s.copy_,n=t,r=!1;3===s.type_&&(n=new Set(t),t.clear(),r=!0),g(n,(n,o)=>U(e,s,t,n,o,i,r)),j(e,t,!1),i&&e.patches_&&D("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function U(e,t,i,s,n,r,o){if(d(n)){let o=R(e,n,r&&t&&3!==t.type_&&!_(t.assigned_,s)?r.concat(s):void 0);if(b(i,s,o),!d(o))return;e.canAutoFreeze_=!1}else o&&i.add(n);if(p(n)&&!A(n)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R(e,n),(!t||!t.scope_.parent_)&&"symbol"!=typeof s&&Object.prototype.propertyIsEnumerable.call(i,s)&&j(e,n)}}function j(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&C(t,i)}var B={get(e,t){if(t===l)return e;let i=T(e);if(!_(i,t))return function(e,t,i){let s=V(t,i);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}(e,i,t);let s=i[t];return e.finalized_||!p(s)?s:s===q(e.base_,t)?(z(e),e.copy_[t]=W(s,e)):s},has:(e,t)=>t in T(e),ownKeys:e=>Reflect.ownKeys(T(e)),set(e,t,i){let s=V(T(e),t);if(s?.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){let s=q(T(e),t),n=s?.[l];if(n&&n.base_===i)return e.copy_[t]=i,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(i,s)&&(void 0!==i||_(e.base_,t)))return!0;z(e),H(e)}return!!(e.copy_[t]===i&&(void 0!==i||t in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=i,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==q(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,z(e),H(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let i=T(e),s=Reflect.getOwnPropertyDescriptor(i,t);return s?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:s.enumerable,value:i[t]}:s},defineProperty(){c(11)},getPrototypeOf:e=>u(e.base_),setPrototypeOf(){c(12)}},$={};function q(e,t){let i=e[l];return(i?T(i):e)[t]}function V(e,t){if(!(t in e))return;let i=u(e);for(;i;){let e=Object.getOwnPropertyDescriptor(i,t);if(e)return e;i=u(i)}}function H(e){!e.modified_&&(e.modified_=!0,e.parent_&&H(e.parent_))}function z(e){e.copy_||(e.copy_=S(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function W(e,t){let i=w(e)?D("MapSet").proxyMap_(e,t):k(e)?D("MapSet").proxySet_(e,t):function(e,t){let i=Array.isArray(e),s={type_:+!!i,scope_:t?t.scope_:P(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},n=s,r=B;i&&(n=[s],r=$);let{revoke:o,proxy:a}=Proxy.revocable(n,r);return s.draft_=a,s.revoke_=o,a}(e,t);return(t?t.scope_:P()).drafts_.push(i),i}g(B,(e,t)=>{$[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),$.deleteProperty=function(e,t){return $.set.call(this,e,t,void 0)},$.set=function(e,t,i){return B.set.call(this,e[0],t,i,e[0])};var K=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,i)=>{let s;if("function"==typeof e&&"function"!=typeof t){let i=t;t=e;let s=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;ot.call(this,e,...r))}}if("function"!=typeof t&&c(6),void 0!==i&&"function"!=typeof i&&c(7),p(e)){let n=N(this),r=W(e,void 0),o=!0;try{s=t(r),o=!1}finally{o?F(n):I(n)}return M(n,i),L(s,n)}if(e&&"object"==typeof e)c(1,e);else{if(void 0===(s=t(e))&&(s=e),s===o&&(s=void 0),this.autoFreeze_&&C(s,!0),i){let t=[],n=[];D("Patches").generateReplacementPatches_(e,s,t,n),i(t,n)}return s}},this.produceWithPatches=(e,i)=>{let s,n;return"function"==typeof e?function(i){for(var s=arguments.length,n=Array(s>1?s-1:0),r=1;re(t,...n))}:[this.produce(e,i,(e,t)=>{s=e,n=t}),s,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){p(e)||c(8),d(e)&&(e=function(e){return d(e)||c(10,e),function e(t){let i;if(!p(t)||A(t))return t;let s=t[l];if(s){if(!s.modified_)return s.base_;s.finalized_=!0,i=S(t,s.scope_.immer_.useStrictShallowCopy_)}else i=S(t,!0);return g(i,(t,s)=>{b(i,t,e(s))}),s&&(s.finalized_=!1),i}(e)}(e));let t=N(this),i=W(e,void 0);return i[l].isManual_=!0,I(t),i}finishDraft(e,t){let i=e&&e[l];i&&i.isManual_||c(9);let{scope_:s}=i;return M(s,t),L(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let i;for(i=t.length-1;i>=0;i--){let s=t[i];if(0===s.path.length&&"replace"===s.op){e=s.value;break}}i>-1&&(t=t.slice(i+1));let s=D("Patches").applyPatches_;return d(e)?s(e,t):this.produce(e,e=>s(e,t))}},G=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseStrictShallowCopy.bind(K);var Y=K.applyPatches.bind(K);K.createDraft.bind(K),K.finishDraft.bind(K),function(){let e="replace",t="remove";function i(e){if(!p(e))return e;if(Array.isArray(e))return e.map(i);if(w(e))return new Map(Array.from(e.entries()).map(e=>{let[t,s]=e;return[t,i(s)]}));if(k(e))return new Set(Array.from(e).map(i));let t=Object.create(u(e));for(let s in e)t[s]=i(e[s]);return _(e,a)&&(t[a]=e[a]),t}function s(e){return d(e)?i(e):e}!function(e,t){E[e]||(E[e]=t)}("Patches",{applyPatches_:function(s,n){return n.forEach(n=>{let{path:r,op:o}=n,a=s;for(let e=0;e{let u=y(a,i),d=y(l,i),p=c?_(a,i)?e:"add":t;if(u===d&&p===e)return;let h=n.concat(i);r.push(p===t?{op:p,path:h}:{op:p,path:h,value:d}),o.push("add"===p?{op:t,path:h}:p===t?{op:"add",path:h,value:s(u)}:{op:e,path:h,value:s(u)})})}(i,n,r,o);case 1:return function(i,n,r,o){let{base_:a,assigned_:l}=i,c=i.copy_;c.length{if(!o.has(e)){let r=i.concat([a]);s.push({op:t,path:r,value:e}),n.unshift({op:"add",path:r,value:e})}a++}),a=0,o.forEach(e=>{if(!r.has(e)){let r=i.concat([a]);s.push({op:"add",path:r,value:e}),n.unshift({op:t,path:r,value:e})}a++})}(i,n,r,o)}},generateReplacementPatches_:function(t,i,s,n){s.push({op:e,path:[],value:i===o?void 0:i}),n.push({op:e,path:[],value:t})}})}();class Q{static #e=(()=>dt7948.g(this.prototype,"data",[n.tracked]))();#uC=(()=>void dt7948.i(this,"data"))();static #i=(()=>dt7948.g(this.prototype,"draftData",[n.tracked]))();#ux=(()=>void dt7948.i(this,"draftData"))();static #s=(()=>dt7948.g(this.prototype,"errors",[n.tracked],function(){return{}}))();#iD=(()=>void dt7948.i(this,"errors"))();patches=[];inversePatches=[];constructor(e){try{this.data=G(e,()=>{}),this.draftData=G(e,()=>{})}catch(e){if(e.message.includes("[Immer]"))throw Error("[FormKit]: the @data property expects a POJO.")}}get isValid(){return 0===Object.keys(this.errors).length}get isInvalid(){return!this.isValid}get isPristine(){return this.patches.length+this.inversePatches.length===0}get isDirty(){return!this.isPristine}execute(){this.data=Y(this.data,this.patches)}unexecute(){this.data=Y(this.data,this.inversePatches)}save(){this.execute(),this.resetPatches()}async rollback(){for(;this.inversePatches.length>0;)this.draftData=Y(this.draftData,[this.inversePatches.pop()]);this.resetPatches(),await new Promise(e=>(0,r.next)(e))}addError(e,t){this.errors.hasOwnProperty(e)?(this.errors[e].messages.push(t.message),this.errors={...this.errors}):this.errors={...this.errors,[e]:{title:t.title,messages:[t.message]}}}removeError(e){delete this.errors[e],this.errors={...this.errors}}removeErrors(){this.errors={}}get(e){let t=e.split("."),i=this.draftData[t.shift()];for(;t.length;)i=i[t.shift()];return i}set(e,t){this.draftData=G(this.draftData,i=>{let s=e.split(".");for(;s.length>1;)i=i[s.shift()];i[s[0]]=t},(e,t)=>{this.patches.push(...e),this.inversePatches.push(...t)})}resetPatches(){this.patches=[],this.inversePatches=[]}}},29223:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{static parse(e){return new s().parse(e)}parse(e){let t={};return(e?.split("|")??[]).forEach(e=>{let[i,s]=e.split(":").filter(Boolean);this[i+"Rule"]?t[i]=this[i+"Rule"](s):t[i]={}}),t}requiredRule(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t]=e.split(",");return{trim:"trim"===t}}betweenRule(e){if(!e)throw Error("`between` rule expects min/max, eg: between:1,10");let[t,i]=e.split(",").map(Number);return{min:t,max:i}}lengthRule(e){if(!e)throw Error("`length` rule expects min/max, eg: length:1,10");let[t,i]=e.split(",").map(Number);return{min:t,max:i}}}},67872:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75983),n=i(843);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=e,this.rules=t}async validate(e){let t=[];for(let i in this.rules)if(this[i+"Validator"]){let s=await this[i+"Validator"](this.value,this.rules[i],e);s&&t.push(s)}else throw Error(`Unknown validator: ${i}`);return t}integerValidator(e){if(!Number.isInteger(Number(e)))return(0,n.i18n)("form_kit.errors.not_an_integer")}lengthValidator(e,t){return(0,s.isBlank)(e)?void 0:t.max&&e?.length>t.max?(0,n.i18n)("form_kit.errors.too_long",{count:t.max}):t.min&&e?.lengtht.max?(0,n.i18n)("form_kit.errors.too_high",{count:t.max}):t.min&&e{"use strict";i.r(t);var s=i(25124),n=i.n(s),r=i(83236),o=i.n(r),a=i(25386);window.__widget_helpers=a.default,window.virtualDom=o(),window.$||(window.$=window.jQuery=n())},2500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.htmlSafe)((0,n.autoUpdatingRelativeAge)(new Date(e),{customTitle:t.customTitle,title:!0,addAgo:t.addAgo||!1,...t.defaultFormat&&{defaultFormat:t.defaultFormat}}))}(0,i(65573).registerRawHelper)("age-with-tooltip",r)},70349:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{addExtraUserClasses:()=>p,classesForUser:()=>h,default:()=>g,registerCustomAvatarHelper:()=>d,renderAvatar:()=>m});var n=i(35533),r=i(42256),o=i(17587),a=i(65573),l=i(21719),c=i(42236),u=i(843);function d(e){(s=s||[]).push(e)}function p(e,t){let i=h(e).join(" ");return i&&i.length&&(t.extraClasses=i),t}function h(e){let t=[];if(s)for(let i=0;i0&&(d=(0,u.i18n)("user.avatar.name_and_description",{name:a,description:t}))}return(0,o.avatarImg)({size:t.imageSize,extraClasses:(0,n.get)(e,"extras")||t.extraClasses,title:d||a,avatarTemplate:r})}}function g(e,t){return(0,r.htmlSafe)(m.call(this,e,t))}(0,a.registerRawHelper)("avatar",g)},12677:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(94636);function n(){return(0,s.default)("")}(0,i(65573).registerRawHelper)("base-path",n)},85469:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(16547),n=i(94636);function r(){return(0,s.default)("Use `{{base-path}}` instead of `{{base-url}}`",{id:"discourse.base-url"}),(0,n.default)("")}(0,i(65573).registerRawHelper)("base-url",r)},49941:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(22421),n=i(83133);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[n.service]))();#uA=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.body,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},27988:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256);let n=["top","right","bottom","left"];function r(e,t){let i=t&&n.includes(t)?`border-${t}-color`:"border-color";return(0,s.htmlSafe)(`${i}: #${e} `)}},16717:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(75983),r=i(17587);function o(e,t,i){return(0,n.isEmpty)(e)?(0,s.htmlSafe)("
"):(0,s.htmlSafe)((0,r.avatarImg)({size:t,avatarTemplate:e,...i}))}},66862:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(42256),n=i(75983),r=i(56665),o=i(17587);function a(e,t){return(0,n.isEmpty)(e)?(0,s.htmlSafe)("
"):(0,s.htmlSafe)((0,o.avatarImg)((0,r.addExtraUserClasses)(e,{size:t,avatarTemplate:e.avatar_template})))}},89428:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.categoryLinkHTML});var s=i(18385)},43895:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){return(0,s.htmlSafe)((0,n.autoUpdatingRelativeAge)(new Date(e),{format:"medium",title:!0}))}},63463:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(843);function r(e,t){return(0,s.htmlSafe)((0,n.i18n)(e,t))}},36510:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(16547);function n(e){return(0,s.default)("capitalize-string helper is deprecated",{id:"discourse.capitalize-string",since:"3.1.0.beta6"}),e[0].toUpperCase()+e.slice(1)}},26438:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75983),n=i(18385);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.categoryLinkHTML)(e,{hideParent:t.hideParent,allowUncategorized:t.allowUncategorized,categoryStyle:t.categoryStyle,link:!!(0,s.isPresent)(t.link)&&t.link})}(0,i(65573).registerRawHelper)("category-badge",r)},6123:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(42256);function n(e){return(0,s.htmlSafe)(`--category-badge-color: #${e};`)}},18385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addExtraIconRenderer:()=>f,categoryBadgeHTML:()=>_,categoryLinkHTML:()=>y,default:()=>b,defaultCategoryLinkRenderer:()=>w,replaceCategoryLinkRenderer:()=>m});var s=i(35533),n=i(42256),r=i(84483),o=i(94636),a=i(65573),l=i(51429),c=i(1799),u=i(42236),d=i(1559),p=i(843);let h=w;function m(e){h=e}let g=[];function f(e){g.push(e)}function _(e,t){let{site:i,siteSettings:n}=(0,a.helperContext)();if(t=t||{},!e||!t.allowUncategorized&&(0,s.get)(e,"id")===i.uncategorized_category_id&&n.suppress_uncategorized_badge)return"";let r=(t.depth||1)+1;if(t.ancestors){let{ancestors:i,...s}=t;return[e,...i].reverse().map(e=>_(e,s)).join("")}if(t.recursive&&r<=n.max_category_nesting){let i=d.default.findById(e.parent_category_id),s=!t.depth;t.depth=r;let n=_(i,t);return t.lastSubcategory=s,n+h(e,t)}return h(e,t)}function y(e,t){let i={};return t&&t.hash&&(t=t.hash),t&&(t.allowUncategorized&&(i.allowUncategorized=!0),void 0!==t.link&&(i.link=t.link),t.previewColor&&(i.previewColor=!0),t.extraClasses&&(i.extraClasses=t.extraClasses),t.hideParent&&(i.hideParent=!0),t.recursive&&(i.recursive=!0),t.ancestors&&(i.ancestors=t.ancestors)),(0,n.htmlSafe)(_(e,i))}let b=y;function w(e,t){let i=(0,c.applyValueTransformer)("category-description-text",(0,u.escapeExpression)((0,s.get)(e,"description_text")),{category:e}),n=(0,s.get)(e,"read_restricted"),h=t.url?t.url:(0,o.default)(`/c/${d.default.slugFor(e)}/${(0,s.get)(e,"id")}`),m=!1===t.link?"":h,f=!1===t.link||"false"===t.link?"span":"a",_=t.extraClasses?" "+t.extraClasses:"",y=`${(0,r.default)(e)}`,b="",w=null,k="",T=e?`data-category-id="${(0,s.get)(e,"id")}"`:"";t.hideParent||(w=d.default.findById((0,s.get)(e,"parent_category_id")));let S=(0,a.helperContext)().siteSettings,C="badge-category";n&&(C+=" restricted"),w&&(C+=" --has-parent",T+=` data-parent-category-id="${w.id}"`),b+=``;let x=(0,c.applyValueTransformer)("category-display-name",(0,u.escapeExpression)((0,s.get)(e,"name")),{category:e});return S.support_mixed_text_direction&&(k='dir="auto"'),n&&(b+=(0,l.iconHTML)("lock")),g.forEach(t=>{let i=t(e);i&&(b+=(0,l.iconHTML)(i))}),b+=`${x}`,b+="",t.topicCount&&(b+=function(e){return`× ${e}`}(t.topicCount)),t.subcategoryCount&&(b+=`${(0,p.i18n)("category_row.subcategory_count",{count:t.subcategoryCount})}`),m&&(m=` href="${m}" `),`<${f} class="badge-category__wrapper ${_}" ${y.length>0?`style="${y}"`:""} ${m}>${b}`}(0,a.registerRawHelper)("category-link",y)},84483:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(42256);function n(e){let t="";return e.color&&(t+=`--category-badge-color: #${e.color};`),e.text_color&&(t+=`--category-badge-text-color: #${e.text_color};`),e.parentCategory?.color&&(t+=`--parent-category-badge-color: #${e.parentCategory.color};`),e.parentCategory?.text_color&&(t+=`--parent-category-badge-text-color: #${e.parentCategory.text_color};`),(0,s.htmlSafe)(t)}},18509:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573);function n(e){return e.getTime()/864e5}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.class||"age";if(!e)return i;let r=n(t.startDate||new Date),o=n(new Date(e)),a=(0,s.helperContext)().siteSettings;return r-o>a.cold_age_days_high?i+" coldmap-high":r-o>a.cold_age_days_medium?i+" coldmap-med":r-o>a.cold_age_days_low?i+" coldmap-low":i}(0,s.registerRawHelper)("cold-age-class",r)},82256:(e,t,i)=>{"use strict";function s(e,t){return t.modifyComponentForCollection(e)}i.r(t),i.d(t,{default:()=>s}),(0,i(65573).registerRawHelper)("component-for-collection",s)},93410:(e,t,i)=>{"use strict";function s(e,t,i){return i.modifyComponentForRow(e,t)}i.r(t),i.d(t,{default:()=>s}),(0,i(65573).registerRawHelper)("component-for-row",s)},81133:(e,t,i)=>{"use strict";function s(){for(var e=arguments.length,t=Array(e),i=0;is})},1157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearHTMLCache:()=>a,getCustomHTML:()=>o,setCustomHTML:()=>l});var s=i(42256),n=i(1261);let r={};function o(e){let t=r[e];if(t)return(0,s.htmlSafe)(t);let i=n.default.get("customHTML");if(i&&i[e]&&i[e].length)return(0,s.htmlSafe)(i[e])}function a(){r={}}function l(e,t){r[e]=t}},72738:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(65573),r=i(51429);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.htmlSafe)((0,r.renderIcon)("string",e,t))}(0,n.registerRawHelper)("d-icon",o)},94774:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(75983);function r(e){return(0,n.isEmpty)(e)?(0,s.htmlSafe)("—"):e}},42369:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(94480);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,s.dasherize)(e.replace(".","-"))}},83296:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addUsernameSelectorDecorator:()=>o,decorateUsername:()=>l,default:()=>c,resetUsernameDecorators:()=>a});var s=i(42256),n=i(65573);let r=[];function o(e){r.push(e)}function a(){r=[]}function l(e){let t=[];return r.forEach(i=>{t.push(i(e))}),t.length?(0,s.htmlSafe)(t.join("")):""}function c(e){return l(e)}(0,n.registerRawHelper)("decorate-username-selector",c)},8635:(e,t,i)=>{"use strict";function s(e){return new r(e)}function n(e){return e instanceof r}i.r(t),i.d(t,{default:()=>s,isDeprecatedOutletArgument:()=>n});class r{#sb;#uE;#uD;constructor(e){this.#sb=e.message,this.#uD=()=>e.value,this.#uE=e.silence,this.options={id:e.id||"discourse.plugin-connector.deprecated-arg",since:e.since,dropFrom:e.dropFrom,url:e.url,raiseError:e.raiseError}}get message(){return this.#sb}get silence(){return this.#uE}get value(){return this.#uD()}}},10650:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(65573),r=i(42236);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!1;t.htmlSafe&&(i="true"===t.htmlSafe);let o=i?e:(0,r.escapeExpression)(e);return(0,s.htmlSafe)(function(e){let t=(0,n.helperContext)().siteSettings.support_mixed_text_direction;return`${e||""}`}(o))}(0,n.registerRawHelper)("dir-span",o)},53563:(e,t,i)=>{"use strict";function s(e){return"automatic"===e.column.type}i.r(t),i.d(t,{default:()=>s})},61412:(e,t,i)=>{"use strict";function s(e){return"user_field"===e.column.type}i.r(t),i.d(t,{default:()=>s})},56234:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(843);function r(e){let t=e.item.get(e.column.name),i="automatic"===e.column.type?"directory.":"";return(0,s.htmlSafe)((0,n.i18n)(`${i}${e.column.name}`,{count:t}))}},32825:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){return(0,s.htmlSafe)(`${(0,n.number)(e.item.get(e.column.name))}`)}},4244:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(51429),r=i(843);function o(e){let t="";e.icon&&(t+=(0,n.iconHTML)(e.icon));let i=e.labelKey||`directory.${e.field}`;return t+=e.translated?e.field:(0,r.i18n)(i+"_long",{defaultValue:(0,r.i18n)(i)}),(0,s.htmlSafe)(t)}},6854:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(65573),r=i(94399);function o(e,t){return(0,s.htmlSafe)((0,r.default)(e,t))}(0,n.registerRawHelper)("discourse-tag",o)},23245:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(65573),r=i(14298);function o(e,t){return(0,s.htmlSafe)((0,r.default)(e,t))}(0,n.registerRawHelper)("discourse-tags",o)},62144:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(35533);function n(e,t){"category_id"===t&&(t="category.id");let i=(0,s.get)(e,t);return Array.isArray(i)?i.slice(0):i}},45782:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53653),n=i(85671),r=i(73306);let o=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"DyUIISDx",block:'[[[1,"\\n "],[18,1,null],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,"element:empty")),a={div:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"0CMDnJf1",block:'[[[11,0],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),span:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"sIZx3Mbo",block:'[[[11,1],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),form:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"aHMeDlWT",block:'[[[11,"form"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),a:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"DMPGWHcK",block:'[[[11,3],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),button:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"s28TA0CZ",block:'[[[11,"button"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),td:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"/nlPcyNB",block:'[[[11,"td"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0))};function l(e){if("string"!=typeof e)throw Error(`element helper only accepts string literals, you passed ${e}`);return null==e?null:""===e?o:a[e]?a[e]:(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"xtqLwga7",block:'[[[1,"\\n "],[8,[32,0],[[17,1]],[["@tagName"],[[32,1]]],[["default"],[[[[18,2,null]],[]]]]],[1,"\\n "]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",scope:()=>[s.default,e],isStrictMode:!0}),(0,r.default)(void 0,void 0))}},54356:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(42256),n=i(65573),r=i(50409),o=i(42236);function a(e,t){let i=(0,o.escapeExpression)(`:${e}:`);return(0,s.htmlSafe)((0,r.emojiUnescape)(i,t))}(0,n.registerRawHelper)("emoji",a)},89276:(e,t,i)=>{"use strict";i.r(t),i.d(t,{iconNode:()=>n});var s=i(51429);function n(e,t){return(0,s.renderIcon)("node",e,t)}},53335:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l,iconHTML:()=>a});var s=i(42256),n=i(16547),r=i(65573),o=i(51429);function a(e,t){return(0,o.renderIcon)("string",e,t)}function l(e,t){return(0,n.default)("Use `{{d-icon}}` instead of `{{fa-icon}}",{id:"discourse.fa-icon"}),(0,s.htmlSafe)(a(e,t))}(0,r.registerRawHelper)("fa-icon",l)},81500:(e,t,i)=>{"use strict";function s(e){return parseFloat(e).toFixed(1)}i.r(t),i.d(t,{default:()=>s})},7597:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){return e=new Date(e),(0,s.htmlSafe)((0,n.autoUpdatingRelativeAge)(e))}(0,i(65573).registerRawHelper)("format-age",r)},54412:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i,r="medium",o=!0;if(t.leaveAgo&&(i="true"===t.leaveAgo),t.format&&(r=t.format),t.noTitle&&(o=!1),e){let a=new Date(e);return(0,s.htmlSafe)((0,n.autoUpdatingRelativeAge)(a,{format:r,title:o,leaveAgo:i,prefix:t.prefix}))}}(0,i(65573).registerRawHelper)("format-date",r)},85644:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){return(0,s.htmlSafe)((0,n.durationTiny)(e))}(0,i(65573).registerRawHelper)("format-duration",r)},93792:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573),n=i(42236);let r=n.formatUsername;(0,s.registerRawHelper)("format-username",n.formatUsername)},72722:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(94636);function n(e){return(0,s.default)(e)}(0,i(65573).registerRawHelper)("get-url",n)},96941:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(22421),n=i(39904),r=i(63748);function o(e){return class extends s.default{cleanupFn=null;constructor(){super(...arguments),(0,n.registerDestructor)(this,this.cleanup)}compute(t,i){if(t.length)throw Error("Positional arguments are not permitted for helperFn-defined helpers. Use named arguments instead.");return this.cleanup(),e(i,{cleanup:e=>{if(this.cleanupFn)throw Error("on.cleanup can only be called once");this.cleanupFn=e}})}cleanup(){this.cleanupFn?.(),this.cleanupFn=null}static #e=(()=>dt7948.n(this.prototype,"cleanup",[r.bind]))()}}},25507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(22421),n=i(83133);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"footer",[n.service]))();#aw=(()=>void dt7948.i(this,"footer"))();constructor(){super(...arguments),this.footer.registerHider(this)}compute(){}}},59077:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(22421),n=i(62053),r=i(83133);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tA=(()=>void dt7948.i(this,"header"))();registerHider(e){this.header.registerHider(this,e)}compute(e){let[...t]=e;(0,n.scheduleOnce)("afterRender",this,this.registerHider,t)}}},16986:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(22421),n=i(62053),r=i(83133);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tq=(()=>void dt7948.i(this,"sidebarState"))();constructor(){super(...arguments),(0,n.scheduleOnce)("afterRender",this,this.registerHider)}registerHider(){this.sidebarState.registerHider(this)}compute(){}}},69488:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(22421),n=i(83133);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[n.service]))();#uA=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.documentElement,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},71899:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(42256);function n(e){return(0,s.htmlSafe)(e)}(0,i(65573).registerRawHelper)("html-safe",n)},21324:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573),n=i(843);function r(e,t){return(0,n.i18n)(e?"yes_value":"no_value",t)}(0,s.registerRawHelper)("i18n-yes-no",r)},84400:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573),n=i(843);(0,s.registerRawHelper)("i18n",n.i18n);let r=n.i18n},10463:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(35533),n=i(42256),r=i(75983),o=i(51429);function a(e){let t=(0,s.get)(e,"icon"),i=(0,s.get)(e,"image");return(0,r.isEmpty)(i)?(0,r.isEmpty)(t)?"":(0,n.htmlSafe)((0,o.iconHTML)((0,o.convertIconClass)(t))):(0,n.htmlSafe)(``)}},95642:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(16547),n=i(17206);function r(e){return(0,s.default)("inline-date helper is deprecated",{id:"discourse.inline-date",since:"3.1.0.beta6"}),e.value&&(e=e.value()),(0,n.relativeAge)(new Date(e))}},43006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,renderSpinner:()=>n,spinnerHTML:()=>r});var s=i(42256);function n(e){let t="
"}let r=n();function o(){let{size:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.htmlSafe)(n(e))}},31768:(e,t,i)=>{"use strict";i.r(t),i.d(t,{dateNode:()=>r,numberNode:()=>o});var s=i(83236),n=i(17206);function r(e){if("string"==typeof e&&(e=new Date(e)),e){let t={title:(0,n.longDate)(e),"data-time":e.getTime(),"data-format":"tiny"};return(0,s.h)("span.relative-date",{attributes:t},(0,n.relativeAge)(e))}}function o(e,t){t=t||{},isNaN(e=parseInt(e,10))&&(e=0);let i=e.toString(),r={},o=(0,n.number)(e);return o!==i&&(r.title=i),(0,s.h)("span.number",{className:t.className,attributes:r},o)}},4964:(e,t,i)=>{"use strict";function s(){return()=>{}}i.r(t),i.d(t,{default:()=>s})},72613:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(42256),n=i(17206),r=i(65573),o=i(42236),a=i(843);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isNaN(e=Math.round(parseFloat(e)))&&(e=0);let i=a.default.toNumber(e,{precision:0});t.numberKey&&(i=(0,a.i18n)(t.numberKey,{number:i,count:parseInt(e,10)}));let r="number";t.class&&(r+=" "+t.class);let l="",(0,s.htmlSafe)(l)}(0,r.registerRawHelper)("number",l)},4194:(e,t,i)=>{"use strict";i.r(t),i.d(t,{reload:()=>n});var s=i(77093);function n(){(0,s.isTesting)()||location.reload()}},47794:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(843);let r={all:"all_time",yearly:"this_year",quarterly:"this_quarter",monthly:"this_month",daily:"today"};function o(e){let t,{showDateRange:i,fullDay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,n.i18n)("filters.top."+(r[e]||"this_week"));if(!i)return(0,s.htmlSafe)(a);let l="";switch(t=o?moment().utc().subtract(1,"days"):moment(),e){case"yearly":l=t.clone().subtract(1,"year").format((0,n.i18n)("dates.long_with_year_no_time"))+" – "+t.format((0,n.i18n)("dates.long_with_year_no_time"));break;case"quarterly":l=t.clone().subtract(3,"month").format((0,n.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,n.i18n)("dates.long_no_year_no_time"));break;case"weekly":l=(o?t.clone().subtract(1,"week"):t.clone().subtract(6,"days")).format((0,n.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,n.i18n)("dates.long_no_year_no_time"));break;case"monthly":l=t.clone().subtract(1,"month").format((0,n.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,n.i18n)("dates.long_no_year_no_time"));break;case"daily":l=t.clone().format((0,n.i18n)("dates.full_no_year_no_time"))}return(0,s.htmlSafe)(`${a}${l}`)}},77777:(e,t,i)=>{"use strict";i.r(t);var s=i(42256),n=i(98740),r=i(72906),o=i(11071),a=i(26457),l=i(53653),c=i(85671),u=i(73306);let d=(0,l.setComponentTemplate)((0,c.createTemplateFactory)({id:"dnRM2iyr",block:'[[[8,[32,0],null,[["@name","@outletArgs"],[[30,1,["name"]],[30,1,["outletArgs"]]]],null]],["@data"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/plugin-outlet.js",scope:()=>[n.default],isStrictMode:!0}),(0,u.default)(void 0,"plugin-outlet:GlimmerPluginOutletWrapper"));o.default.registerHelper("plugin-outlet",function(e){let{name:t,tagName:i,outletArgs:n}=e.hash;return(0,r.connectorsExist)(t)?(0,s.htmlSafe)((0,a.default)(this,`${i||"span"}.hbr-ember-outlet`,d,{name:t,outletArgs:n})):(0,s.htmlSafe)("")})},57553:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(42256),n=i(17206);function r(e){return(0,s.htmlSafe)((0,n.longDate)(new Date(e)))}(0,i(65573).registerRawHelper)("raw-date",r)},90921:(e,t,i)=>{"use strict";i.r(t),(0,i(65573).registerRawHelper)("raw-hash",function(e){return e})},66314:(e,t,i)=>{"use strict";i.r(t);var s=i(42256),n=i(72906);i(11071).default.registerHelper("raw-plugin-outlet",function(e){let t=(0,n.rawConnectorsFor)(e.hash.name);if(t.length){let e=t.map(e=>e.template({context:this}));return(0,s.htmlSafe)(e.join(""))}})},10184:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(22421),n=i(39904),r=i(31049),o=i(62053),a=i(83133),l=i(42256),c=i(63748),u=i(65573),d=i(83471),p=i(47716);let h=function(e,t){e=e.replace(".","/");let i=(0,p.findRawTemplate)(e);if(!i){console.warn("Could not find raw template: "+e);return}return function(e,t,i,s){s={...s},s.parent||=e;let n=(0,u.helperContext)();if(!s.view){let e=n.registry.resolve(`raw-view:${i}`);e&&((0,r.setOwner)(s,(0,r.getOwner)(n)),s.view=e.create(s,n)),s.view||(s={...s,...n})}return(0,l.htmlSafe)(t(s,d.RUNTIME_OPTIONS))}(this,i,e,t)};(0,u.registerRawHelper)("raw",h);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"renderGlimmer",[a.service]))();#rC=(()=>void dt7948.i(this,"renderGlimmer"))();compute(e,t){return(0,n.registerDestructor)(this,this.cleanup),h(...e,t)}cleanup(){(0,o.schedule)("afterRender",()=>this.renderGlimmer.cleanup())}static #i=(()=>dt7948.n(this.prototype,"cleanup",[c.bind]))()}},46153:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(42256),n=i(65573),r=i(50409),o=i(42236);function a(e,t){return e=(0,s.isHTMLSafe)(e)?e.toString():(0,o.escapeExpression)(e),(0,s.htmlSafe)((0,r.emojiUnescape)(e,t))}(0,n.registerRawHelper)("replace-emoji",a)},31950:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(42256),n=i(45175),r=i(51429),o=i(91638),a=i(843);function l(e){return e.reviewable_history_type===o.EDITED?(0,s.htmlSafe)((0,r.iconHTML)("pencil")+" "+(0,a.i18n)("review.history.edited")):(0,s.htmlSafe)((0,n.htmlStatus)(e.status))}},45175:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l,htmlStatus:()=>a});var s=i(42256),n=i(51429),r=i(26099),o=i(843);function a(e,t){let i=function(e,t){switch(e){case r.PENDING:return{name:"pending"};case r.APPROVED:switch(t){case"ReviewableQueuedPost":return{icon:"check",name:"approved_post",cssClass:"approved"};case"ReviewableUser":return{icon:"check",name:"approved_user",cssClass:"approved"};default:return{icon:"check",name:"approved_flag",cssClass:"approved"}}case r.REJECTED:switch(t){case"ReviewableQueuedPost":return{icon:"xmark",name:"rejected_post",cssClass:"rejected"};case"ReviewableUser":return{icon:"xmark",name:"rejected_user",cssClass:"rejected"};default:return{icon:"xmark",name:"rejected_flag",cssClass:"rejected"}}case r.IGNORED:return{icon:"up-right-from-square",name:"ignored"};case r.DELETED:return{icon:"trash-can",name:"deleted"}}}(e,t);if(!i)return;let s=i.icon?(0,n.iconHTML)(i.icon):"";return` ${s} ${(0,o.i18n)("review.statuses."+i.name+".title")} `}function l(e,t){return(0,s.htmlSafe)(a(e,t))}},95422:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(62459),n=i(22421),r=i(65809),o=i(35533),a=i(31049),l=i(62053),c=i(77093);function u(e,t){let i;let n=(0,s.A)(function(e){return(0,s.A)(function(e){return(e._routerMicrolib||e.router).currentRouteInfos}(e)).mapBy("_route").reverse()}(e)).find(e=>"function"==typeof(i=(e.actions||e._actions)[t]));return{action:i,handler:n}}class d extends n.default{get router(){return(0,a.getOwner)(this).lookup("router:main")}static #e=(()=>dt7948.n(this.prototype,"router",[o.computed]))();compute(e){let[t,...i]=e;return function(e,t){for(var i=arguments.length,s=Array(i>2?i-2:0),n=2;n{let{handler:i}=u(t,e)}),function(){let{action:i,handler:n}=u(t,e);for(var r=arguments.length,o=Array(r),a=0;a{"use strict";i.r(t),i.d(t,{resolveShareUrl:()=>n});var s=i(65573);function n(e,t){let i=(0,s.helperContext)().siteSettings,n=i.enable_badges,r=i.allow_username_in_share_links;return e+(t&&n&&r?`?u=${t.username_lower}`:"")}},72387:(e,t,i)=>{"use strict";function s(e){let t=e.match(/\//g);return t&&3===t.length&&(e=e.replace(/\/$/,"")),(e=(e=e.replace(/^https?:\/\//,"")).replace(/^www\./,"")).substring(0,80)}i.r(t),i.d(t,{default:()=>s}),(0,i(65573).registerRawHelper)("shorten-url",s)},12536:(e,t,i)=>{"use strict";function s(){for(var e=arguments.length,t=Array(e),i=0;is})},93941:(e,t,i)=>{"use strict";function s(e){let t=e,i=Math.trunc(t/3600);i>=1?t-=3600*i:i=0;let s=Math.trunc(t/60);return s>=1?t-=60*s:s=0,{hours:i,minutes:s,seconds:t}}function n(e,t,i){return i+3600*e+60*t}function r(e){return moment.duration(e,"seconds").humanize()}function o(e,t,i){let s=new Date(i);return s=new Date(s.getTime()+1e3*t),!e.staff&&new Dateo,durationTextFromSeconds:()=>r,fromSeconds:()=>s,toSeconds:()=>n})},97736:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573),n=i(843);function r(e,t,i){if("number"!=typeof e)throw Error(`The theme-i18n helper is not supported in this context. In a theme .gjs file, use '{{i18n (themePrefix "${e}")}}' instead. 'themePrefix' is available automatically, and does not need to be imported. `);return(0,n.i18n)(`theme_translations.${e}.${t}`,i)}(0,s.registerRawHelper)("theme-i18n",r)},99980:(e,t,i)=>{"use strict";function s(e,t){return`theme_translations.${e}.${t}`}i.r(t),i.d(t,{default:()=>s}),(0,i(65573).registerRawHelper)("theme-prefix",s)},23658:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(65573),n=i(99463);function r(e,t){if("number"!=typeof e)throw Error(`The theme-setting helper is not supported in this context. In a theme .gjs file, use '{{settings.${e}}}' instead. 'settings' is available automatically, and does not need to be imported. `);return(0,n.getSetting)(e,t)}(0,s.registerRawHelper)("theme-setting",r)},41265:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(42256),n=i(65573),r=i(10028);function o(e,t){return(0,s.htmlSafe)((0,r.default)(e,t))}(0,n.registerRawHelper)("topic-featured-link",o)},52406:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(42256);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.get("fancyTitle"),n=e.linked_post_number?e.urlForPostNumber(e.linked_post_number):e.get("lastUnreadUrl"),r=["title"];return t.class&&t.class.split(" ").forEach(e=>r.push(e)),(0,s.htmlSafe)(`${i}`)}(0,i(65573).registerRawHelper)("topic-link",n)},57699:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(16547),n=i(96340);let r=new class{entries=[];addObject(e){(0,s.default)("TopicStatusIcons is deprecated. Use 'after-topic-status' plugin outlet instead.",n.RAW_TOPIC_LIST_DEPRECATION_OPTIONS);let[t,i,r]=e;this.entries.push({attribute:t,iconName:i,titleKey:r})}}},18933:(e,t,i)=>{"use strict";function s(){return"30000000-1000-4000-2000-100000000000".replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16))}i.r(t),i.d(t,{default:()=>s})},56665:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addExtraUserClasses:()=>s.addExtraUserClasses,classesForUser:()=>s.classesForUser,registerCustomAvatarHelper:()=>s.registerCustomAvatarHelper,renderAvatar:()=>s.renderAvatar});var s=i(70349)},73794:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(42256),n=i(51429),r=i(42236),o=i(843);function a(e){let{currentUser:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let i=(0,r.escapeExpression)(e.name);return e.admin&&t?.staff?(0,s.htmlSafe)((0,n.iconHTML)("shield-halved",{label:(0,o.i18n)("user.admin",{user:i})})):e.moderator?(0,s.htmlSafe)((0,n.iconHTML)("shield-halved",{label:(0,o.i18n)("user.moderator",{user:i})})):void 0}},82645:(e,t,i)=>{"use strict";function s(e){return e&&e.length>0?"value-entered":""}i.r(t),i.d(t,{default:()=>s}),(0,i(65573).registerRawHelper)("value-entered",s)},48137:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(35533);function n(e){return function(t){return e((0,s.get)(t,"target.value"))}}},18125:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(){let e=new URLSearchParams(window.location.search);if(e.get("safe_mode")?.split(",").includes("deprecation_errors")){window.EmberENV.RAISE_ON_DEPRECATION=!0;return}}}},14509:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(65809),n=i(62267);let r=!1,o={initialize(){r||((0,s.registerDeprecationHandler)((e,t,i)=>{let s=(0,n.consolePrefix)();i(s?`${s} ${e}`:e,t)}),r=!0)}}},80249:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(65809),n=i(62267);let r=!1,o=new Set,a={initialize(){r||((0,s.registerDeprecationHandler)((e,t,i)=>{if("ember-this-fallback.this-property-fallback"!==t.id){i(e,t);return}let s=e.match(/\/plugins\/([\w-]+)\//)?.[1],r=e.match(/\/theme-(\d+)\//)?.[1];if(s||r){let i={type:s?"plugin":"theme",name:s||(0,n.getThemeInfo)(parseInt(r,10)).name,id:r};t.source=i,e=`${(0,n.consolePrefix)(null,i)} ${e}`}o.has(e)||(o.add(e),t.url="https://meta.discourse.org/t/337276",i(e,t))}),r=!0)}}},41785:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n}),i(77093);let s="discourse__dev_tools",n={after:["discourse-bootstrap"],initialize(e){function t(e){!1===e?window.localStorage?.removeItem(s):window.localStorage?.setItem(s,e)}window.enableDevTools=()=>{t(!0),window.location.reload()},window.disableDevTools=()=>{t(!1),window.location.reload()},function(){let e=window.localStorage?.getItem(s);return"true"===e||"false"!==e&&null}()&&(console.log("Loading Discourse dev tools..."),e.deferReadiness(),i.e(189).then(i.bind(i,14189)).then(t=>{t.init(),console.log("Loaded Discourse dev tools. Run `disableDevTools()` in console to disable."),e.advanceReadiness()}))}}},79590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p}),i(62053);var s=i(24571),n=i(77093),r=i(99434),o=i(94636),a=i(51429),l=i(1261),c=i(87353),u=i(56323),d=i(843);let p={initialize(e){let t,i;if((0,c.setURLContainer)(e.__container__),(0,r.setDefaultOwner)(e.__container__),(0,n.isTesting)())return;let p=document.getElementById("data-discourse-setup");p&&(t=p.dataset);let h=document.getElementById("data-preloaded");h&&(i=JSON.parse(h.dataset.preloaded));let m=Object.keys(i);if(0===m.length)throw"No preload data found in #data-preloaded. Unable to boot Discourse.";m.forEach(function(e){l.default.store(e,JSON.parse(i[e])),"true"===t.debugPreloadedAppData&&console.log(e,l.default.get(e))}),(0,o.setupURL)(t.cdn,t.baseUrl,t.baseUri),(0,n.setEnvironment)(t.environment),d.default.defaultLocale=t.defaultLocale,window.Logster=window.Logster||{},window.Logster.enabled="true"===t.enableJsErrorReporting;let g=u.default.current();g.serviceWorkerURL=t.serviceWorkerUrl,g.assetVersion=t.assetVersion,g.disableCustomCSS="true"===t.disableCustomCss,t.mbLastFileChangeId&&(g.mbLastFileChangeId=parseInt(t.mbLastFileChangeId,10)),t.safeMode&&(g.safe_mode=t.safeMode),g.darkModeAvailable=document.querySelectorAll('link[media="(prefers-color-scheme: dark)"]').length>0,g.defaultColorSchemeIsDark="true"===t.colorSchemeIsDark,g.highlightJsPath=t.highlightJsPath,g.svgSpritePath=t.svgSpritePath,g.userColorSchemeId=parseInt(t.userColorSchemeId,10)||null,g.userDarkSchemeId=parseInt(t.userDarkSchemeId,10)||-1;let f=t.svgIconList;(0,n.isDevelopment)()&&f&&(0,a.setIconList)("string"==typeof f?JSON.parse(f):f),t.s3BaseUrl&&(0,o.setupS3CDN)(t.s3BaseUrl,t.s3Cdn),s.default.configure("onerror",function(e){e&&"TransitionAborted"===e.message||((0,n.isProduction)()||(e?e.message||e.stack?(console.log(e.message),console.log(e.stack)):console.log("Uncaught promise: ",e):console.log("A promise failed but was not caught.")),window.onerror(e&&e.message,null,null,null,e))})}}},18398:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(94480),n=i(93536),r=i(96908),o=i(65885),a=i(12465);let l={after:"inject-discourse-objects",initialize(e){e.register("route:discovery.category",(0,r.default)({filter:"default"})),e.register("route:discovery.category-none",(0,r.default)({filter:"default",no_subcategories:!0})),e.register("route:discovery.category-all",(0,r.default)({filter:"default",no_subcategories:!1}));let t=n.default.current();t.get("filters").forEach(t=>{let i=(0,s.dasherize)(t);e.register(`route:discovery.${i}`,(0,o.default)(t)),e.register(`route:discovery.${i}-category`,(0,r.default)({filter:t})),e.register(`route:discovery.${i}-category-none`,(0,r.default)({filter:t,no_subcategories:!0}))}),e.register("route:tags.show-category",(0,a.buildTagRoute)()),e.register("route:tags.show-category-none",(0,a.buildTagRoute)({noSubcategories:!0})),e.register("route:tags.show-category-all",(0,a.buildTagRoute)({noSubcategories:!1})),t.get("filters").forEach(function(t){let i=(0,s.dasherize)(t);e.register(`route:tag.show-${i}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-${i}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-none-${i}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!0})),e.register(`route:tags.show-category-all-${i}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!1}))})}}},24359:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(1799);let n={before:"inject-discourse-objects",after:"discourse-bootstrap",initialize(){(0,s._freezeValidTransformerNames)()}}},79026:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(56323),n=i(93536),r=i(77540),o=i(59864);let a={after:"discourse-bootstrap",initialize(e){let t=e.__container__.lookup("service:site-settings"),i=o.default.current();e.register("service:current-user",i,{instantiate:!1}),this.topicTrackingState=r.default.create({messageBus:e.__container__.lookup("service:message-bus"),siteSettings:t,currentUser:i}),e.register("service:topic-tracking-state",this.topicTrackingState,{instantiate:!1});let a=n.default.current();e.register("service:site",a,{instantiate:!1});let l=s.default.current();e.register("service:session",l,{instantiate:!1}),(0,r.startTracking)(this.topicTrackingState)},teardown(){this.topicTrackingState.willDestroy()}}},40549:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(6270);let n={after:"inject-discourse-objects",initialize(e){this.routerClass=(0,s.mapRoutes)(),e.register("router:main",this.routerClass)},teardown(){this.routerClass.dslCallbacks.length=0}}},11490:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(51429),n=i(96340),r=i(42236);let o={};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.createElement("canvas");i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0,e.width,e.height),i.setAttribute("aria-hidden","true"),i.setAttribute("role","presentation"),t.manualPause&&e.classList.add("manually-paused"),e.parentNode.classList.add("paused-animated-image"),e.parentNode.insertBefore(i,e)}function l(e){e.previousSibling&&"CANVAS"===e.previousSibling.nodeName&&e.previousSibling.remove(),e.parentNode.classList.remove("paused-animated-image")}function c(){return document.querySelectorAll(".topic-post img.animated:not(.manually-paused)")}let u={initialize(){(0,n.withPluginApi)("0.8.7",e=>{function t(e){let t=e.target;t&&!t.previousSibling?a(t,{manualPause:!0}):l(t)}e.decorateCookedElement(function(e,i){i&&e.querySelectorAll("img.animated:not(.onebox-avatar)").forEach(e=>{if(e.parentNode.querySelectorAll("img").length>1)return;o[e.src]&&(o[e.src].removeEventListener("click",t),o[e.src].removeEventListener("load",t),delete o[e.src]),o[e.src]=e,e.addEventListener("click",t,!1),(0,r.prefersReducedMotion)()&&e.addEventListener("load",t,!1);let i=document.createElement("div"),n=document.createElement("div");e.parentNode.insertBefore(i,e),i.classList.add("pausable-animated-image"),i.appendChild(e),n.classList.add("animated-image-overlay"),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),n.innerHTML=`${(0,s.iconHTML)("pause")}${(0,s.iconHTML)("play")}`,i.appendChild(n)})},{onlyStream:!0}),e.cleanupStream(function(){Object.values(o||{}).forEach(e=>{e.removeEventListener("click",t),e.removeEventListener("load",t)}),o={}}),(0,r.prefersReducedMotion)()||(window.addEventListener("blur",this.blurEvent),window.addEventListener("focus",this.focusEvent))})},blurEvent(){c().forEach(e=>{1!==e.parentNode.querySelectorAll("img").length||e.previousSibling||a(e)})},focusEvent(){c().forEach(e=>{1===e.parentNode.querySelectorAll("img").length&&e.previousSibling&&l(e)})},teardown(){window.removeEventListener("blur",this.blurEvent),window.removeEventListener("focus",this.focusEvent)}}},69522:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addBeforeAuthCompleteCallback:()=>h,default:()=>g,resetBeforeAuthCompleteCallbacks:()=>m});var s=i(35533),n=i(62053),r=i(42256),o=i(63823),a=i(62121),l=i(61004),c=i(87353),u=i(843);let d=["requires_invite","awaiting_approval","awaiting_activation","admin_not_allowed_from_ip_address","not_allowed_from_ip_address"],p=[];function h(e){p.push(e)}function m(){p.length=0}let g={after:"inject-objects",initialize(e){let t;if(document.getElementById("data-authentication")&&(t=document.getElementById("data-authentication").dataset.authenticationData),t){let i=e.lookup("service:router");i.one("routeDidChange",()=>{(0,n.next)(()=>{let h=JSON.parse(t);if(p.every(e=>e(h))){if("invites.show"===i.currentRouteName)e.lookup("controller:invites-show").authenticationComplete(h);else{let t=e.lookup("service:modal"),p=e.lookup("service:site-settings"),m=(s,r,o,l)=>{let c=e.lookup("route:application"),u={canSignUp:e.lookup("controller:application").canSignUp,flash:s,flashType:r||"success",awaitingApproval:h.awaiting_approval,...o};p.full_page_login?i.transitionTo("login").then(e=>{Object.keys(u||{}).forEach(t=>{e.controller.set(t,u[t])})}):t.show(a.default,{model:{showNotActivated:e=>c.send("showNotActivated",e),showCreateAccount:e=>c.send("showCreateAccount",e),...u}}),(0,n.next)(()=>l?.())};if(h.omniauth_disallow_totp)return m((0,u.i18n)("login.omniauth_disallow_totp"),"error",{loginName:h.email,showLoginButtons:!1},()=>document.getElementById("login-account-password").focus());for(let e=0;e{let n={accountEmail:h.email,accountUsername:h.username,accountName:h.name,authOptions:s.default.create(h),skipConfirmation:p.auth_skip_create_confirm};p.full_page_login?i.transitionTo("signup").then(t=>{let i=t.controller||e.lookup("controller:signup");Object.keys(n||{}).forEach(e=>{i.set(e,n[e])}),i.handleSkipConfirmation()}):t.show(o.default,{model:n})})}}})})}}}},16558:(e,t,i)=>{"use strict";i.r(t),i.d(t,{autoLoadModules:()=>c,default:()=>u});var s=i(31049),n=i(55067),r=i.n(n),o=i(65573),a=i(11071),l=i(83471);function c(e,t){Object.keys(requirejs.entries).forEach(e=>{(function(e){return e.includes("/helpers/")&&(e.startsWith("discourse/theme-")||e.startsWith("discourse/plugins/"))&&!e.endsWith("-test")})(e)&&requirejs(e,null,null,!0),e.includes("/widgets/")&&!e.endsWith("-test")&&requirejs(e,null,null,!0)});let i={siteSettings:e.lookup("service:site-settings"),keyValueStore:e.lookup("service:key-value-store"),capabilities:e.lookup("service:capabilities"),currentUser:e.lookup("service:current-user"),site:e.lookup("service:site"),session:e.lookup("service:session"),topicTrackingState:e.lookup("service:topic-tracking-state"),registry:t};(0,s.setOwner)(i,e),(0,o.createHelperContext)(i),(0,o.registerHelpers)(t),(0,l.registerRawHelpers)(a.default,r(),e)}let u={after:"inject-objects",initialize:e=>{c(e,e.__container__.registry)}}},78380:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={after:"message-bus",initialize(e){if(!navigator.setAppBadge)return;let t=e.lookup("service:current-user");t&&e.lookup("service:app-events").on("notifications:changed",()=>{let e;e=t.all_unread_notifications_count,t.unseen_reviewable_count&&(e+=t.unseen_reviewable_count),navigator.setAppBadge(e)})}}},61728:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(35533),n=i(31049),r=i(83133),o=i(63748),a=i(1261);class l{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#w=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[r.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();constructor(e){(0,n.setOwner)(this,e);let t=s.default.create(a.default.get("banner")||{});this.site.set("banner",t),this.messageBus.subscribe("/site/banner",this.onMessage)}teardown(){this.messageBus.unsubscribe("/site/banner",this.onMessage)}onMessage(e){e?this.site.set("banner",s.default.create(e)):this.site.set("banner",null)}static #s=(()=>dt7948.n(this.prototype,"onMessage",[o.bind]))()}let c={after:"message-bus",initialize(e){this.instance=new l(e)},teardown(){this.instance.teardown(),this.instance=null}}},70892:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(16547),n=i(96340),r=i(3383);let o={name:"discourse-bookmark-menu",initialize(e){let t=e.lookup("service:current-user");(0,n.withPluginApi)("0.10.1",i=>{t&&(0,s.withSilencedDeprecations)("discourse.post-menu-widget-overrides",()=>{i.replacePostMenuButton("bookmark",{name:"bookmark-menu-shim",shouldRender:()=>!0,buildAttrs:t=>({post:t.findAncestorModel(),bookmarkManager:new r.default(e,t.findAncestorModel())})})})})}}},53803:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(e){e.lookup("service:client-error-handler"),e.lookup("service:deprecation-warning-handler")}}},23225:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(62053),n=i(25124),r=i.n(n);function o(e){window.MiniProfiler&&e.from&&window.MiniProfiler.pageTransition(),document.querySelectorAll("header ul.icons li").forEach(e=>{e.classList.remove("active")}),document.querySelectorAll('[data-toggle="dropdown"]').forEach(e=>{e.parentElement.classList.remove("open")}),r().magnificPopup?.instance&&(r().magnificPopup.instance.close(),document.body.classList.remove("mfp-zoom-out-cur"));let{activeElement:t}=document;t&&!t.classList.contains("no-blur")&&t.blur(),this.lookup("route:application").send("closeModal"),this.lookup("service:app-events").trigger("dom:clean"),this.lookup("service:document-title").updateContextCount(0)}let a={after:"inject-objects",initialize(e){e.lookup("service:router").on("routeDidChange",t=>{t.isAborted||(0,s.scheduleOnce)("afterRender",e,o,t)})}}},50694:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(97015),n=i(87353);let r={initialize(e){this.selector=e.rootElement,document.querySelector(this.selector).addEventListener("click",s.default),window.addEventListener("hashchange",this.hashChanged)},hashChanged(){n.default.routeTo(document.location.hash)},teardown(){document.querySelector(this.selector).removeEventListener("click",s.default),window.removeEventListener("hashchange",this.hashChanged)}}},61466:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(62053),n=i(91566),r=i(96340);let o=[],a={initialize(e){let t=e.lookup("service:site-settings");(0,r.withPluginApi)("0.8.7",e=>{e.decorateCookedElement((e,i)=>{(0,s.schedule)("afterRender",()=>{!function(e,i){if(!i||!t.show_copy_button_on_codeblocks)return;let s=i.getModel(),r=new n.default({showFullscreen:!0,showCopy:!0});r.attachToPost(s,e),o.push(r)}(e,i)})},{onlyStream:!0}),e.cleanupStream(function(){o.forEach(e=>e.cleanup()),o.length=0})})}}},27929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p,overrideThrowGjsError:()=>u});var s=i(50061),n=i(53653),r=i(16547),o=i(99291),a=i(77093),l=i(96340);let c=(0,a.isTesting)();function u(e){c=e}let d=["topic-list","topic-list-item"],p={after:["populate-template-map","mobile"],initialize(e){this.site=e.lookup("service:site"),this.eachThemePluginTemplate((t,i,a)=>{if(!a&&o.default.coreTemplates.has(t))return;let u=t;a&&((0,r.default)(`Mobile-specific hbs templates are deprecated. Use responsive CSS or {{#if this.site.mobileView}} instead. [${t}]`,{id:"discourse.mobile-templates"}),this.site.mobileView&&(u=u.slice(7))),u=u.slice(11);let p=e.resolveRegistration(`component:${u}`);if(!p){e.register(`component:${u}`,n.default);return}let h=s.getComponentTemplate(p),m=h?.()?.parsedLayout?.isStrictMode,g=i[i.length-1];if(m){let e=`[${g}] ${u} was authored using gjs and its template cannot be overridden. Ignoring override. For more information on the future of template overrides, see https://meta.discourse.org/t/247487`;if(c)throw Error(e);console.error(e)}else if(h){d.includes(u)?(0,r.default)(`Overriding '${u}' template is deprecated. Use the value transformer 'topic-list-columns' and other new topic-list plugin APIs instead.`,l.RAW_TOPIC_LIST_DEPRECATION_OPTIONS):(0,r.default)(`[${g}] Overriding component templates is deprecated, and will soon be disabled. Use plugin outlets, CSS, or other customization APIs instead.`,{id:"discourse.component-template-overrides",url:"https://meta.discourse.org/t/247487"});let e=window.require(g).default;s.setComponentTemplate(e,p)}})},eachThemePluginTemplate(e){let{coreTemplates:t,pluginTemplates:i,themeTemplates:s}=o.default;for(let[n,r,o]of[[i,"components/",!1],[s,"components/",!1],[t,"mobile/components/",!0],[i,"mobile/components/",!0],[s,"mobile/components/",!0]])for(let[t,i]of n)t.startsWith(r)&&e(t,i,o)},teardown(){s.clearTemplateOverrides()}}},3516:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(25124),n=i.n(s);let r=!1,o=n().Callbacks(),a={initialize(e){let t=e.lookup("service:session");t.set("csrfToken",document.head.querySelector("meta[name=csrf-token]")?.content),r||(n().ajaxPrefilter(o.fire),r=!0),o.add(function(e,i,s){e.crossDomain||s.setRequestHeader("X-CSRF-Token",t.get("csrfToken"))})},teardown(){o.empty()}}},33792:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(35533),n=i(4959),r=i(83133),o=i(16547);let a=[];function l(e,t){return class extends s.default{static printDeprecation(){(0,o.default)(`${e} no longer exists, and this shim will eventually be removed. To fetch information about the current discovery route, use the discovery service instead.`,{id:t})}static reopen(){return this.printDeprecation(),a.push(e),super.reopen(...arguments)}static #e=(()=>dt7948.g(this.prototype,"discovery",[r.service]))();#uP=(()=>void dt7948.i(this,"discovery"))();constructor(){super(...arguments),this.constructor.printDeprecation()}}}class c extends l("controller:navigation/category","discourse.navigation-category-controller"){get category(){return this.constructor.printDeprecation(),this.discovery.category}static #e=(()=>dt7948.n(this.prototype,"category",[n.dependentKeyCompat]))()}class u extends l("controller:discovery/topics","discourse.discovery-topics-controller"){get model(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.currentTopicList}static #e=(()=>dt7948.n(this.prototype,"model",[n.dependentKeyCompat]))();get category(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.category}static #i=(()=>dt7948.n(this.prototype,"category",[n.dependentKeyCompat]))()}class d extends l("controller:tag-show","discourse.tag-show-controller"){get tag(){return this.constructor.printDeprecation(),this.discovery.tag}static #e=(()=>dt7948.n(this.prototype,"tag",[n.dependentKeyCompat]))()}let p={initialize(e){e.register("controller:navigation/category",c),e.register("controller:discovery/topics",u),e.register("controller:tag-show",d),e.lookup("service:router").on("routeDidChange",t=>{let i=t.to?.name;(i?.startsWith("discovery.")||i?.startsWith("tags.show")||"tag.show"===i)&&a.forEach(t=>e.lookup(t))})}}},50936:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(47716);let n={initialize(){(0,s.eagerLoadRawTemplateModules)()}}},26414:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(80370),n=i(74423),r=i(96340),o=i(1261);let a={initialize(e){e.lookup("service:site-settings").enable_emoji&&((0,r.withPluginApi)("0.1",e=>{e.onToolbarCreate(t=>{t.addButton({id:"emoji",group:"extras",icon:"face-smile",sendAction:()=>{e.container.lookup("service:menu").show(document.querySelector(".insert-composer-emoji"),{identifier:"emoji-picker",groupIdentifier:"emoji-picker",component:n.default,modalForMobile:!0,data:{didSelectEmoji:e=>{t.context.textManipulation.emojiSelected(e)}}})},title:"composer.emoji",className:"emoji insert-composer-emoji"})})}),(o.default.get("customEmoji")||[]).forEach(e=>(0,s.registerEmoji)(e.name,e.url,e.group)))}}},99310:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(62053),n=i(61586),r=i(77093),o=i(23091),a=i(59864);let l=5e3*!(0,r.isTesting)(),c={initialize(){(0,s.later)(()=>{(0,o.extendThemeCookie)(),(0,n.extendColorSchemeCookies)(),(0,a.extendTextSizeCookie)()},l)}}},54194:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(93301);let n={after:"register-hashtag-types",initialize(){let e=document.createElement("style");e.id="hashtag-css-generator",e.innerHTML=Object.values((0,s.getHashtagTypeClasses)()).map(e=>e.generatePreloadedCssClasses()).flat().join("\n"),document.head.appendChild(e)}}},11781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(36712),n=i(96340);let r={after:"hashtag-css-generator",initialize(e){let t=e.lookup("service:site");(0,n.withPluginApi)("0.8.7",e=>{e.decorateCookedElement(e=>(0,s.decorateHashtags)(e,t))})}}},44835:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(16547),n=i(47716);let r={before:"inject-objects",initialize(){(0,s.registerDeprecationHandler)((e,t)=>{t?.id==="discourse.hbr-topic-list-overrides"&&(0,n.needsHbrTopicList)(!0)})}}},93957:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(96340);let n={initialize(){(0,s.withPluginApi)("1.36.0",e=>{e.registerValueTransformer("mentions-class",t=>{let{value:i,context:s}=t,{user:n}=s;return n.id<0?i.push("--bot"):n.id===e.getCurrentUser()?.id?i.push("--current"):("here"===n.username||"all"===n.username)&&i.push("--wide"),i})})}}},66432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(96340);let n={initWithApi(e){let t=CSS.supports("aspect-ratio: 1");e.decorateCookedElement(e=>{e.querySelectorAll("img").forEach(e=>{let i=parseFloat(e.getAttribute("height")),s=parseFloat(e.getAttribute("width"));if(!(isNaN(i)||isNaN(s))&&!e.style.aspectRatio){if(t)e.style.setProperty("aspect-ratio",`${s} / ${i}`);else{let t=e.width/(s/i);e.style.setProperty("--calculated-height",`${t}px`)}}})})},initialize(){(0,s.withPluginApi)("1.2.0",this.initWithApi)}}},84182:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(e){e.lookup("service:route-scroll-manager")}}},422:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(16547),n=i(99434),r=i(93536),o=i(59864);let a={after:"sniff-capabilities",initialize(e){(0,n.setDefaultOwner)(e.__container__),window.Discourse=e,Object.defineProperty(e,"SiteSettings",{get:()=>((0,s.default)("use injected siteSettings instead of Discourse.SiteSettings",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site-settings"}),e.lookup("service:site-settings"))}),Object.defineProperty(e,"User",{get:()=>((0,s.default)("import discourse/models/user instead of using Discourse.User",{since:"2.8",dropFrom:"3.2",id:"discourse.global.user"}),o.default)}),Object.defineProperty(e,"Site",{get:()=>((0,s.default)("import discourse/models/site instead of using Discourse.Site",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site"}),r.default)})},teardown(){delete window.Discourse}}},19521:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(25124),n=i.n(s),r=i(37054),o=i(88723);let a=!1,l={initialize(){a||(n().fn.autocomplete=r.default,n().fn.caret=o.caret,n().fn.caretPosition=o.caretPosition,a=!0)}}},46285:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(51367),n=i.n(s),r=i(19905);let o={initialize(e){r.default.init(n(),e),r.default.bindEvents()},teardown(){r.default.teardown()}}},98512:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(31049),n=i(83133),r=i(63748),o=i(53306);class a{static #e=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"session",[n.service]))();#eO=(()=>void dt7948.i(this,"session"))();constructor(e){(0,s.setOwner)(this,e);let t=new URLSearchParams(window.location.search),i=["preview_theme_id","pp","safe_mode"].map(e=>[e,t.get(e)]).filter(e=>{let[,t]=e;return t});i.length&&["replaceState","pushState"].forEach(e=>{let t=window.history[e];window.history[e]=(e,s,n)=>{let r=new URL(n,window.location);for(let[e,t]of i)r.searchParams.set(e,t);return t.call(window.history,e,s,r.href)}}),this.messageBus.subscribe("/file-change",this.onFileChange,this.session.mbLastFileChangeId)}teardown(){this.messageBus.unsubscribe("/file-change",this.onFileChange)}onFileChange(e){e.forEach(e=>{if("refresh"===e)document.location.reload(!0);else if("development-mode-theme-changed"===e)window.location.pathname.startsWith("/admin/customize/themes")||window.location.pathname.startsWith("/admin/config/look-and-feel")?this.session.requiresRefresh=!0:document.location.reload(!0);else if(e.new_href&&e.target){let t=`link[data-target='${e.target}']`;e.theme_id&&(t+=`[data-theme-id='${e.theme_id}']`);let i=document.querySelectorAll(t);if(i.length>0){let t=i[i.length-1];t.href.split("/").pop()!==e.new_href.split("/").pop()&&this.refreshCSS(t,e.new_href)}}})}static #s=(()=>dt7948.n(this.prototype,"onFileChange",[r.bind]))();refreshCSS(e,t){let i=e.cloneNode(!0);i.href=t,e.insertAdjacentElement("afterend",i),(0,o.default)(()=>e?.parentNode?.removeChild(e),500)}}let l={initialize(e){this.instance=new a(e)},teardown(){this.instance.teardown(),this.instance=null}}},4835:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(843);let n={after:"inject-objects",isVerboseLocalizationEnabled(e){if(e.lookup("service:site-settings").verbose_localization)return!0;try{return sessionStorage&&sessionStorage.getItem("verbose_localization")}catch{return!1}},initialize(e){for(let[t,i]of(this.isVerboseLocalizationEnabled(e)&&s.default.enableVerboseLocalization(),Object.entries(s.default._overrides||{}))){for(let[e,n]of Object.entries(i)){let i=e.replace(/^admin_js\./,"js.").split("."),r=s.default.translations[t]||{};for(let e=0;e{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(31049),n=i(83133),r=i(63748),o=i(63464),a=i(843);let l=!1;class c{static #e=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[n.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #s=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(e){(0,s.setOwner)(this,e),this.currentUser&&this.messageBus.subscribe(`/logout/${this.currentUser.id}`,this.onMessage)}teardown(){this.currentUser&&this.messageBus.unsubscribe(`/logout/${this.currentUser.id}`,this.onMessage)}onMessage(){l||(l=!0,this.dialog.alert({message:(0,a.i18n)("logout"),confirmButtonLabel:"home",didConfirm:o.default,didCancel:o.default,shouldDisplayCancel:!1}))}static #l=(()=>dt7948.n(this.prototype,"onMessage",[r.bind]))()}let u={after:"message-bus",initialize(e){this.instance=new c(e)},teardown(){this.instance.teardown(),this.instance=null}}},91876:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p,sendDeferredPageview:()=>d});var s=i(25124),n=i.n(s),r=i(6864),o=i(77093),a=i(94636),l=i(74603);let c=!1,u=null;function d(){c=!0}let p={after:"inject-objects",initialize(e){if((0,o.isTesting)())return;let t=e.lookup("service:message-bus"),i=e.lookup("service:current-user"),s=e.lookup("service:site-settings"),d=e.lookup("service:router");if(t.alwaysLongPoll=!(0,o.isProduction)(),t.shouldLongPollCallback=()=>(0,l.default)({userUnseenTime:12e5}),t.stop(),(0,l.onPresenceChange)({unseenTime:12e5,callback:e=>{e&&t.onVisibilityChange&&t.onVisibilityChange()}}),s.login_required&&!i)return;let p=setInterval(()=>{"complete"===document.readyState&&(("topic.fromParams"===d.currentRouteName||"topic.fromParamsNear"===d.currentRouteName)&&(u=d.currentRoute.parent.params.id),clearInterval(p),t.start())},500);t.callbackInterval=s.anon_polling_interval,t.backgroundCallbackInterval=s.background_polling_interval,t.baseUrl=s.long_polling_base_url.replace(/\/$/,"")+"/",t.enableChunkedEncoding=s.enable_chunked_encoding,t.ajax=e=>(function(e,t){if(t.headers||={},"/"!==e.baseUrl){let e=document.querySelector("meta[name=shared_session_key]")?.content;t.headers["X-Shared-Session-Key"]=e}(0,l.default)()&&(t.headers["Discourse-Present"]="true"),c&&(t.headers["Discourse-Deferred-Track-View"]="true",u&&(t.headers["Discourse-Deferred-Track-View-Topic-Id"]=u),c=!1,u=null);let i=t.complete;return t.complete=function(e,t){(0,r.handleLogoff)(e),i?.(e,t)},n().ajax(t)})(t,e),t.baseUrl=(0,a.default)("/"),i&&(t.callbackInterval=s.polling_interval)}}},53582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(94636),n=i(87353);let r={initialize(e){let t=document.querySelector("meta[property='og:title']"),i=document.querySelector("meta[property='og:url']"),r=document.querySelector("meta[name='twitter:title']"),o=document.querySelector("meta[name='twitter:url']"),a=document.querySelector("link[rel='canonical']");e.lookup("service:app-events").on("page:changed",e=>{let{title:l,url:c}=e,u=(0,s.getAbsoluteURL)(c);t?.setAttribute("content",l),i?.setAttribute("content",u),r?.setAttribute("content",l),o?.setAttribute("content",u),a&&a.setAttribute("href",(0,n.getCanonicalUrl)(u))})}}},57256:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(5068),n=i(97463);let r={after:"inject-objects",initialize(e){s.default.init();let t=e.lookup("service:site");t.set("mobileView",s.default.mobileView),t.set("desktopView",!s.default.mobileView),t.set("isMobileDevice",s.default.isMobileDevice),(0,n.setResolverOption)("mobileView",s.default.mobileView)}}},41106:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={after:"message-bus",initialize(){moment.tz.link(["Asia/Kolkata|IST","Asia/Seoul|KST","Asia/Tokyo|JST"]),delete moment.tz._links["us_pacific-new"]}}},38613:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(85943),n=i(49179),r=i(96340),o=i(843);let a={initialize(){(0,r.withPluginApi)("1.37.2",e=>{e.registerMoreTopicsTab({id:"related-messages",name:(0,o.i18n)("related_messages.pill"),component:s.default,condition:e=>{let{context:t,topic:i}=e;return"pm"===t&&i.relatedMessages?.length>0}}),e.registerMoreTopicsTab({id:"suggested-topics",name:(0,o.i18n)("suggested_topics.pill"),component:n.default,condition:e=>{let{topic:t}=e;return t.suggestedTopics?.length>0}})})}}},22652:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(88784);let n={initialize(e){s.default.init();let t=e.lookup("service:site");t.set("narrowDesktopView",s.default.narrowDesktopView),this._resizeObserver=new ResizeObserver(i=>{if(!e.isDestroyed)for(let n of i){let i=t.narrowDesktopView,r=s.default.isNarrowDesktopView(n.contentRect.width);if(i!==r){let i=e.lookup("controller:application");t.set("narrowDesktopView",r),i.set("showSidebar",i.calculateShowSidebar()),i.appEvents.trigger("site-header:force-refresh"),e.lookup("service:header").hamburgerVisible=!1}}}),this._resizeObserver.observe(document.body)}}},84494:(e,t,i)=>{"use strict";i.r(t),i.d(t,{decorateGithubOneboxBody:()=>r,default:()=>l});var s=i(96340);let n=[];function r(e){e.querySelectorAll(".onebox.githubcommit .show-more-container, .onebox.githubpullrequest .show-more-container, .onebox.githubissue .show-more-container").length&&(n.push(e),e.addEventListener("click",o,!1))}function o(e){if(!e.target.classList.contains("show-more"))return;e.preventDefault();let t=e.target.parentNode,i=t.parentNode;return t.classList.add("hidden"),i.querySelector(".excerpt.hidden").classList.remove("hidden"),!1}function a(){(n||[]).forEach(e=>{e.removeEventListener("click",o)}),n=[]}let l={initialize(){(0,s.withPluginApi)("0.8.42",e=>{e.decorateCookedElement(e=>{r(e)}),e.cleanupStream(a)})}}},74371:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(6864),n=i(77404),r=i(91876);let o={after:"inject-objects",before:"message-bus",initialize(e){document.querySelector("meta#discourse-error")?.dataset.discourseError!=="true"&&(0,r.sendDeferredPageview)();let t=e.lookup("router:main");t.on("routeWillChange",this.handleRouteWillChange);let i=e.lookup("service:app-events"),s=e.lookup("service:document-title");if((0,n.startPageTracking)(t,i,s),void 0!==window._gaq){i.on("page:changed",e=>{e.replacedOnlyQueryParams||(window._gaq.push(["_set","title",e.title]),window._gaq.push(["_trackPageview",e.url]))});return}void 0!==window.ga&&void 0===window.gtag&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||window.ga("send","pageview",{page:e.url,title:e.title})}),void 0!==window.gtag&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||window.gtag("event","page_view",{page_location:e.url,page_title:e.title})}),void 0!==window.dataLayer&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||(0,n.googleTagManagerPageChanged)(e)})},handleRouteWillChange(e){e.from&&!e.isIntermediate&&((0,s.trackNextAjaxAsPageview)(),("topic.fromParamsNear"===e.to.name||"topic.fromParams"===e.to.name)&&(0,s.trackNextAjaxAsTopicView)(e.to.parent.params.id))},teardown(){(0,n.resetPageTracking)(),(0,s.resetAjax)()}}},93244:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(99291);let n={initialize(){s.default.setModuleNames(Object.keys(requirejs.entries))}}},85398:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(62053),n=i(83236),r=i(65267),o=i(59967),a=i(6864),l=i(88355),c=i(46475),u=i(18178),d=i(51429),p=i(81132),h=i(47991),m=i(96340),g=i(50409),f=i(64873),_=i(42236),y=i(843);let b={initialize(e){(0,m.withPluginApi)("0.1",t=>{let i=e.lookup("service:site-settings"),m=e.lookup("service:session"),b=e.lookup("service:site"),w=e.lookup("service:capabilities"),k=e.lookup("service:modal");t.decorateCookedElement(e=>(0,u.default)(e,i,m)),t.decorateCookedElement(e=>(0,h.default)(e,i)),t.decorateCookedElement(e=>{let t=e.querySelectorAll(".d-image-grid");t.length&&t.forEach(e=>new c.default(e,{columns:b.mobileView?2:3}))}),i.support_mixed_text_direction&&t.decorateCookedElement(f.setTextDirections,{}),(0,p.nativeLazyLoading)(t),t.decorateCookedElement(e=>{e.querySelectorAll("audio").forEach(i=>{i.addEventListener("play",()=>{let i=parseInt(e.closest("article")?.dataset.postId,10);i&&t.preventCloak(i)})})});let T={amazon:"discourse-amazon",githubactions:"fab-github",githubblob:"fab-github",githubcommit:"fab-github",githubpullrequest:"fab-github",githubissue:"fab-github",githubfile:"fab-github",githubgist:"fab-github",twitterstatus:"fab-twitter",wikipedia:"fab-wikipedia-w"};function S(e){let t=document.createElement("button"),i=["open-popup-link","btn-default","btn","btn-icon",...e.label?[]:["no-text"]];if(t.classList.add(...i),e.classes&&t.classList.add(...e.classes),e.title&&(t.title=(0,y.i18n)(e.title)),e.label&&w.touch&&(t.innerHTML=` ${(0,y.i18n)(e.label)}
`),e.icon){let i=(0,n.create)((0,d.iconNode)(e.icon.name,{class:e.icon?.class}));t.prepend(i)}return t}function C(e){let t=e.currentTarget.parentElement.nextElementSibling.cloneNode(!0),s=document.createElement("div");s.classList.add("cooked"),i.display_footnotes_inline&&s.classList.add("inline-footnotes"),s.dataset.refPostId=this.id,s.appendChild(t),k.show(r.default,{model:{tableHtml:s}})}function x(){let e=this.tableIndex;return(0,a.ajax)(`/posts/${this.id}`,{type:"GET"}).then(t=>{(0,g.parseAsync)(t.raw).then(i=>{let s=(0,_.tokenRange)(i,"table_open","table_close")[e];k.show(o.default,{model:{post:t,tableIndex:e,tableTokens:s}})})}).catch(l.popupAjaxError)}t.decorateCookedElement(e=>{e.querySelectorAll(".onebox").forEach(e=>{Object.entries(T).forEach(t=>{let[i,s]=t;e.classList.contains(i)&&e.querySelector(".source").insertAdjacentHTML("afterbegin",(0,d.iconHTML)(s))})})}),t.decorateCookedElement((e,t)=>{(0,s.schedule)("afterRender",()=>{!function(e,t){e.forEach((e,i)=>{let s=document.createElement("div");s.classList.add("fullscreen-table-wrapper__buttons");let n=S({classes:["btn-edit-table"],title:"table_builder.edit.btn_edit",icon:{name:"pencil",class:"edit-table-icon"}});if(e.parentNode.setAttribute("data-table-index",i),e.parentNode.classList.add("fullscreen-table-wrapper"),t.canEdit&&(e.parentNode.classList.add("--editable"),s.append(n),n.addEventListener("click",x.bind({tableIndex:i,...t}),!1)),e.parentNode.insertBefore(s,e),!function(e){let{clientWidth:t,scrollWidth:i}=e;return i>t}(e.parentNode)||b.isMobileDevice)return;e.parentNode.classList.add("--has-overflow");let r=S({classes:["btn-expand-table"],title:"fullscreen_table.expand_btn",icon:{name:"discourse-expand",class:"expand-table-icon"}});s.append(r),r.addEventListener("click",C.bind(t),!1),e.parentNode.insertBefore(s,e)})}(e.querySelectorAll(".md-table table"),t.widget.attrs)})},{onlyStream:!0,id:"table-wrapper"}),t.cleanupStream(function(){let e=document.querySelector(".open-popup-link.btn-edit-table"),t=document.querySelector(".open-popup-link.btn-expand-table");t?.removeEventListener("click",C),e?.removeEventListener("click",x)})})}}},85761:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(31049),n=i(83133),r=i(63748);class o{static #e=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();constructor(e){(0,s.setOwner)(this,e),this.messageBus.subscribe("/site/read-only",this.onMessage)}teardown(){this.messageBus.unsubscribe("/site/read-only",this.onMessage)}onMessage(e){this.site.set("isReadOnly",e)}static #s=(()=>dt7948.n(this.prototype,"onMessage",[r.bind]))()}let a={after:"message-bus",initialize(e){this.instance=new o(e)},teardown(){this.instance.teardown(),this.instance=null}}},94318:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(89783),n=i(45079),r=i(96340);let o={before:"hashtag-css-generator",initialize(e){(0,r.withPluginApi)("0.8.7",t=>{t.registerHashtagType("category",new s.default(e)),t.registerHashtagType("tag",new n.default(e))})}}},10455:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(24571),n=i(69008),r=i(98823);let o={initialize(e){let t=e.lookup("service:site-settings"),i=e.lookup("service:capabilities");if(t.composer_media_optimization_image_enabled){if(i.isIOS&&!t.composer_ios_media_optimisation_image_enabled||"undefined"==typeof OffscreenCanvas||!("createImageBitmap"in self))return;let o=window.navigator.userAgent.match(/Mobile\/([0-9]+)\./),a=o?parseInt(o[1],10):null;if(i.isSafari&&a&&a<18)return;(0,n.addComposerUploadPreProcessor)(r.default,t=>{let{isMobileDevice:i}=t;return{optimizeFn:(t,i)=>e.isDestroyed||e.isDestroying?s.Promise.resolve():e.lookup("service:media-optimization-worker").optimizeImage(t,i),runParallel:!i}})}}}},93275:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(17332);let n={initialize(e){let{serviceWorkerURL:t}=e.lookup("service:session");(0,s.registerServiceWorker)(t)}}},8235:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(17206);let n={initialize(){this._interval=setInterval(function(){(0,s.updateRelativeAge)(document.querySelectorAll(".relative-date"))},6e4)},teardown(){this._interval&&(clearInterval(this._interval),this._interval=null)}}},25572:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(47960),n=i(843);let r={initialize(e){let t=e.lookup("service:site-settings");s.default.addSource({id:"twitter",icon:"fab-x-twitter",generateUrl(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=i?`"${i}" -- `:t;return`http://x.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(s)}`},shouldOpenInPopup:!0,title:(0,n.i18n)("share.twitter"),popupHeight:265}),s.default.addSource({id:"facebook",icon:"fab-facebook",title:(0,n.i18n)("share.facebook"),generateUrl(e,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=t.facebook_app_id?`https://www.facebook.com/dialog/share?app_id=${t.facebook_app_id}"e=${encodeURIComponent(s)}&href=`:"https://www.facebook.com/sharer.php?u=";return`${n}${encodeURIComponent(e)}`},shouldOpenInPopup:!0}),s.default.addSource({id:"email",icon:"envelope",title:(0,n.i18n)("share.email"),generateUrl(e,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=s?`${s} ${e}`:e;return"mailto:?to=&subject="+encodeURIComponent("["+t.title+"] "+i)+"&body="+encodeURIComponent(n)},showInPrivateContext:!0})}}},25037:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(56323);let n={initialize(e){let t=e.lookup("service:screen-track"),i=s.default.current(),n=e.lookup("service:site-settings"),r=e.lookup("service:key-value-store"),o=e.lookup("service:current-user"),a=e.lookup("service:app-events");function l(){if(i.get("showSignupCta")||i.get("hideSignupCta")||r.get("anon-cta-never"))return;let e=Date.now();if(r.getInt("anon-cta-hidden",0)>e-864e5||12e4>r.getInt("anon-topic-time"))return;let t=r.get("anon-topic-ids");t&&!(t.split(",").length<2)&&(i.set("showSignupCta",!0),a.trigger("cta:shown"))}o||r.get("anon-cta-never")||!n.allow_new_registrations||n.invite_only||n.login_required||!n.enable_signup_cta||(t.registerAnonCallback(l),l())}}},46331:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(e){let t=e.lookup("service:capabilities"),i=document.documentElement;t.touch?i.classList.add("touch","discourse-touch"):i.classList.add("no-touch","discourse-no-touch"),t.isIpadOS&&i.classList.add("ipados-device"),t.isIOS&&i.classList.add("ios-device")}}},76914:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(){let e=window.location.search;if(e.includes("user_api_public_key")){let t=e.startsWith("?")?e.slice(1).split("&"):[];e=(t=t.filter(e=>!e.startsWith("user_api_public_key=")&&!e.startsWith("auth_redirect="))).length>0?`?${t.join("&")}`:"",window.history&&window.history.replaceState&&window.history.replaceState(null,null,`${location.pathname}${e}${location.hash}`)}}}},47807:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(31049),n=i(83133),r=i(63748),o=i(89801),a=i(77093),l=i(6059),c=i(12948);class u{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#rG=(()=>void dt7948.i(this,"messageBus"))();static #s=(()=>dt7948.g(this.prototype,"store",[n.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"site",[n.service]))();#w=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"router",[n.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(e){if((0,s.setOwner)(this,e),!this.currentUser)return;this.reviewableCountsChannel=`/reviewable_counts/${this.currentUser.id}`,this.messageBus.subscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.subscribe(`/notification/${this.currentUser.id}`,this.onNotification,this.currentUser.notification_channel_position),this.messageBus.subscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.subscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb,this.currentUser.do_not_disturb_channel_position),this.messageBus.subscribe("/user-status",this.onUserStatus,this.currentUser.status?.message_bus_last_id),this.messageBus.subscribe("/categories",this.onCategories),this.messageBus.subscribe("/client_settings",this.onClientSettings),(0,a.isTesting)()||(this.messageBus.subscribe((0,o.alertChannel)(this.currentUser),this.onAlert),(0,o.init)(this.messageBus),(0,l.isPushNotificationsEnabled)(this.currentUser)?((0,o.disable)(),(0,l.register)(this.currentUser,this.router,this.appEvents)):(0,l.unsubscribe)(this.currentUser))}teardown(){this.currentUser&&(this.messageBus.unsubscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.unsubscribe(`/notification/${this.currentUser.id}`,this.onNotification),this.messageBus.unsubscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.unsubscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.unsubscribe("/user-status",this.onUserStatus),this.messageBus.unsubscribe("/categories",this.onCategories),this.messageBus.unsubscribe("/client_settings",this.onClientSettings),this.messageBus.unsubscribe((0,o.alertChannel)(this.currentUser),this.onAlert))}onReviewableCounts(e){e.reviewable_count>=0&&this.currentUser.updateReviewableCount(e.reviewable_count),this.currentUser.set("unseen_reviewable_count",e.unseen_reviewable_count)}static #p=(()=>dt7948.n(this.prototype,"onReviewableCounts",[r.bind]))();onNotification(e){let t=this.currentUser.unread_notifications,i=this.currentUser.unread_high_priority_notifications,s=this.currentUser.all_unread_notifications_count;this.currentUser.setProperties({unread_notifications:e.unread_notifications,unread_high_priority_notifications:e.unread_high_priority_notifications,read_first_notification:e.read_first_notification,all_unread_notifications_count:e.all_unread_notifications_count,grouped_unread_notifications:e.grouped_unread_notifications,new_personal_messages_notifications_count:e.new_personal_messages_notifications_count}),(t!==e.unread_notifications||i!==e.unread_high_priority_notifications||s!==e.all_unread_notifications_count)&&(this.appEvents.trigger("notifications:changed"),this.site.mobileView&&(e.unread_notifications-t>0||e.unread_high_priority_notifications-i>0||e.all_unread_notifications_count-s>0)&&this.appEvents.trigger("header:update-topic",null,5e3));let n=this.store.findStale("notification",{},{cacheKey:"recent-notifications"}),r=e.last_notification?.notification;if(n?.hasResults&&r){let t=n.results.get("content");if(-1===t.findIndex(e=>e.id===r.id)){let e=0;if(!r.high_priority||r.read){let i=t.findIndex(e=>!e.high_priority||e.read);-1!==i&&(e=i)}t.insertAt(e,c.default.create(r))}let i=Object.fromEntries(e.recent),s=t.map(e=>{if(void 0!==i[e.id])return e.set("read",i[e.id]),e}).filter(Boolean);n.results.set("content",s)}}static #h=(()=>dt7948.n(this.prototype,"onNotification",[r.bind]))();onUserDrafts(e){this.currentUser.updateDraftProperties(e)}static #m=(()=>dt7948.n(this.prototype,"onUserDrafts",[r.bind]))();onDoNotDisturb(e){this.currentUser.updateDoNotDisturbStatus(e.ends_at)}static #g=(()=>dt7948.n(this.prototype,"onDoNotDisturb",[r.bind]))();onUserStatus(e){this.appEvents.trigger("user-status:changed",e)}static #A=(()=>dt7948.n(this.prototype,"onUserStatus",[r.bind]))();onCategories(e){(e.categories||[]).forEach(e=>{let t=this.currentUser.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids);return t&&t.includes(e.parent_category_id)&&!t.includes(e.id)&&this.currentUser.set("indirectly_muted_category_ids",this.currentUser.indirectly_muted_category_ids.concat(e.id)),this.site.updateCategory(e)}),(e.deleted_categories||[]).forEach(e=>this.site.removeCategory(e))}static #E=(()=>dt7948.n(this.prototype,"onCategories",[r.bind]))();onClientSettings(e){this.siteSettings[e.name]=e.value}static #D=(()=>dt7948.n(this.prototype,"onClientSettings",[r.bind]))();onAlert(e){if(this.site.desktopView)return(0,o.onNotification)(e,this.siteSettings,this.currentUser,this.appEvents)}static #P=(()=>dt7948.n(this.prototype,"onAlert",[r.bind]))()}let d={after:"message-bus",initialize(e){this.instance=new u(e)},teardown(){this.instance.teardown(),this.instance=null}}},55151:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(56016);let n={initialize(e){let t=e.lookup("service:session");t.svgSpritePath&&(0,s.loadSprites)(t.svgSpritePath,"fontawesome")}}},69559:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9359),n=i(64418);let r={initialize(e){(0,n.registerTopicFooterButton)({id:"share-and-invite",icon:"d-topic-share",priority:1e3,label(){if(!this.get("topic.isPrivateMessage")||this.site.mobileView)return"footer_nav.share"},title:"topic.share.help",action(){e.lookup("service:modal").show(s.default,{model:{category:this.topic.category,topic:this.topic,allowInvites:this.currentUser.can_invite_to_forum&&this.canInviteTo&&!this.inviteDisabled}})},classNames:["share-and-invite"],dependentKeys:["topic.shareUrl","topic.isPrivateMessage","canInviteTo","inviteDisabled","isPM","invitingToTopic"]}),(0,n.registerTopicFooterButton)({id:"flag",icon:"flag",priority:700,label:"topic.flag_topic.title",title:"topic.flag_topic.help",action:"showFlagTopic",dropdown(){return this.site.mobileView},classNames:["flag-topic"],dependentKeys:["topic.details.can_flag_topic","topic.isPrivateMessage"],displayed(){return this.get("topic.details.can_flag_topic")&&!this.get("topic.isPrivateMessage")}}),(0,n.registerTopicFooterButton)({dependentKeys:["topic.bookmarked","topic.bookmarksWereChanged"],id:"bookmark",priority:900,action:"toggleBookmark",icon:()=>null,translatedTitle:()=>null}),(0,n.registerTopicFooterButton)({id:"archive",priority:800,icon(){return this.archiveIcon},label(){return this.archiveLabel},title(){return this.archiveTitle},action:"toggleArchiveMessage",classNames:["standard","archive-topic"],dependentKeys:["canArchive","archiveIcon","archiveLabel","archiveTitle","toggleArchiveMessage"],dropdown(){return this.site.mobileView},displayed(){return this.canArchive}}),(0,n.registerTopicFooterButton)({id:"defer",icon:"circle",priority:500,label:"topic.defer.title",title:"topic.defer.help",action:"deferTopic",classNames:["defer-topic"],displayed(){return this.canDefer},dropdown(){return this.site.mobileView}})}}},89577:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(87353),n=i(42236);let r={after:"inject-objects",initialize(e){s.default.rewrite(/^\/group\//,"/groups/"),s.default.rewrite(/^\/groups$/,"/g"),s.default.rewrite(/^\/groups\//,"/g/");let t=e.lookup("service:current-user"),i=e.lookup("service:site-settings");t?s.default.rewrite(/^\/my\//,`/u/${t.username_lower}/`):s.default.rewrite(/^\/my\/.*/,"/login-preferences"),(0,n.initializeDefaultHomepage)(i)}}},9203:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(43006),n=i(51429),r=i(53306),o=i(96340),a=i(50409),l=i(843);let c={initialize(e){(0,o.withPluginApi)("0.8.7",t=>{function i(e){try{let t=new URL(e,window.location.origin);if(["http:","https:"].includes(t.protocol)||e.startsWith("/")){let t=(0,a.sanitize)(e);if(t&&""!==t.trim()&&!t.includes(">")&&!t.includes("<"))return t}}catch(t){console.warn("Invalid URL encountered:",e,t.message)}return null}t.decorateCookedElement(function(t,o){o&&t.querySelectorAll(".video-placeholder-container").forEach(t=>{if(t.dataset.thumbnailSrc){let e=new Image;e.onload=function(){t.style.backgroundImage="url('"+e.src+"')"},e.src=t.dataset.thumbnailSrc}let a=document.createElement("div"),c=document.createElement("div");a.classList.add("video-placeholder-wrapper"),t.appendChild(a),c.classList.add("video-placeholder-overlay"),t.style.cursor="pointer",t.addEventListener("click",(function t(o,a){let c=a.target.closest(".video-placeholder-container"),u=c.querySelector(".video-placeholder-wrapper"),d=u.querySelector(".video-placeholder-overlay");c.style.cursor="",d.innerHTML=s.spinnerHTML;let p=i(c.dataset.videoSrc),h=i(c.dataset.origSrc),m=null!==h?`data-orig-src="${h}"`:"";if(null===p){let e=u.querySelector(".notice.error");e&&e.remove();let i=document.createElement("div");i.className="notice error",i.innerHTML=(0,n.iconHTML)("triangle-exclamation")+" "+(0,l.i18n)("invalid_video_url"),u.appendChild(i),d.innerHTML=(0,n.iconHTML)("play"),c.style.cursor="pointer",c.addEventListener("click",e=>t(o,e),{once:!0});return}let g=` `;c.insertAdjacentHTML("beforeend",g),c.classList.add("video-container");let f=c.querySelector("video"),_=e.lookup("service:capabilities");if(_.isSafari||_.isIOS){let e=f.querySelector("source");e&&e.parentElement.load()}f.addEventListener("loadeddata",()=>{(0,r.default)(()=>{if(0===f.videoWidth||0===f.videoHeight){let e=document.createElement("div");e.className="notice",e.innerHTML=(0,n.iconHTML)("triangle-exclamation")+" "+(0,l.i18n)("cannot_render_video"),c.appendChild(e)}},500)}),f.addEventListener("canplay",function(){_.isIOS?(0,r.default)(()=>{f.play()},100):f.play(),u.remove(),f.style.display="",c.classList.remove("video-placeholder-container"),c.style.backgroundImage="none"})}).bind(null,o),{once:!0}),c.innerHTML=`${(0,n.iconHTML)("play")}`,a.appendChild(c)})},{onlyStream:!0})})}}},97256:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});let s=!1,n={initialize(e){if(s)return;s=!0;let t=e.lookup("service:capabilities"),i=document.querySelector("meta[name=viewport]");if(!i)return;let n=i.getAttribute("content");t.isSafari||(n+=", interactive-widget=resizes-content"),t.isIOS&&(t.isiOSPWA||t.isAppWebview?this.lockViewportDuringFocus(i,n):n+=", user-scalable=no"),i.setAttribute("content",n)},lockViewportDuringFocus(e,t){let i;window.addEventListener("focusin",s=>{["INPUT","TEXTAREA"].includes(s.target.tagName)&&(e.setAttribute("content",`${t}, user-scalable=no`),clearTimeout(i),i=setTimeout(()=>e.setAttribute("content",t),100))})}}},20848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53306),n=i(42236);let r={after:"inject-objects",retryCount:0,isAppWebview:void 0,mediaQuery:"(prefers-color-scheme: dark)",initialize(e){if(void 0===this.isAppWebview){let t=e.lookup("service:capabilities");this.isAppWebview=t.isAppWebview}this.isAppWebview&&(window.matchMedia(this.mediaQuery).addEventListener("change",this.updateAppBackground.bind(this)),this.updateAppBackground())},updateAppBackground(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;(0,s.default)(()=>{this.headerBgColor()?(0,n.postRNWebviewMessage)("headerBg",this.headerBgColor()):this.retry()},e)},headerBgColor(){let e=document.querySelector(".d-header-wrap .d-header");if(e)return window.getComputedStyle(e)?.backgroundColor},retry(){this.retryCount<2&&(this.retryCount++,this.updateAppBackground(1e3))},teardown(){this.isAppWebview&&window.matchMedia(this.mediaQuery).removeEventListener("change",this.updateAppBackground.bind(this))}}},10094:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PLUGIN_NAV_MODE_SIDEBAR:()=>s,PLUGIN_NAV_MODE_TOP:()=>n,configNavForPlugin:()=>l,registerAdminPluginConfigNav:()=>o,resetAdminPluginConfigNav:()=>a});let s="sidebar",n="top",r={};function o(e,t){r[e]={links:t}}function a(){r={}}function l(e){return r[e]}},81863:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPluginHeaderActionComponents:()=>r,headerActionComponentForPlugin:()=>o,registerPluginHeaderActionComponent:()=>n});let s=new Map;function n(e,t){s.set(e,t)}function r(){s=new Map}function o(e){return s.get(e)}},91151:(e,t,i)=>{"use strict";i.r(t),i.d(t,{registerReportModeComponent:()=>n,reportModeComponent:()=>o,resetAdditionalReportModes:()=>r});let s=new Map;function n(e,t){s.set(e,t)}function r(){s.clear()}function o(e){return s.get(e)}},17718:(e,t,i)=>{"use strict";function s(e,t){try{return t.use_new_show_route?e.urlFor(t.full_location,t.location):e.urlFor(t.full_location),!0}catch{return!1}}i.r(t),i.d(t,{adminRouteValid:()=>s})},14335:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});let s=(0,i(983).lQ)("after-frame-paint");function n(e){let t=s.beginAsync();requestAnimationFrame(()=>{let i=new MessageChannel;i.port1.onmessage=()=>{s.endAsync(t),e()},i.port2.postMessage(void 0)})}},88355:(e,t,i)=>{"use strict";i.r(t),i.d(t,{extractError:()=>c,flashAjaxError:()=>d,popupAjaxError:()=>p,throwAjaxError:()=>u});var s=i(42256),n=i(25124),r=i.n(n),o=i(99434),a=i(843);function l(e,t){e instanceof Error&&console.error(e.stack),"string"==typeof e&&console.error(e),e.jqXHR&&(e=e.jqXHR);let i=!1,s,n;if(e.responseJSON&&(n=e.responseJSON),!n&&e.responseText)try{n=r().parseJSON(e.responseText)}catch(e){console.error(e.stack)}return n&&(n.html_message&&(i=!0),n.errors?.length>1?s=(0,a.i18n)("multiple_errors",{errors:n.errors.map((e,t)=>`${t+1}) ${e}`).join(" ")}):n.errors?.length>0?s=(0,a.i18n)("generic_error_with_reason",{error:n.errors[0]}):n.error?s=n.error:n.message?s=n.message:n.failed&&(s=n.failed)),!s&&e.status&&e.status>=400&&(s=e.status+" "+e.statusText),{html:i,message:s||t||(0,a.i18n)("generic_error")}}function c(e,t){return l(e,t).message}function u(e,t){return function(i){throw e&&e(i),c(i,t)}}function d(e,t){return i=>{e.flash(c(i,t),"error")}}function p(e){let t=(0,o.getOwnerWithFallback)(this).lookup("service:dialog"),i=l(e);i.html?t.alert({message:(0,s.htmlSafe)(i.message)}):t.alert(i.message)}},6864:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{ajax:()=>C,handleLogoff:()=>T,resetAjax:()=>w,setLogoffCallback:()=>k,setTransientHeader:()=>_,trackNextAjaxAsPageview:()=>b,trackNextAjaxAsTopicView:()=>y,updateCsrfToken:()=>S});var n=i(62053),r=i(25124),o=i.n(r),a=i(24571),l=i(77093),c=i(94636),u=i(74603),d=i(56323),p=i(93536),h=i(59864);let m=!1,g=null,f=null;function _(e,t){f={key:e,value:t}}function y(e){g=e}function b(){m=!0}function w(){m=!1}function k(e){s=e}function T(e){e&&e.getResponseHeader("Discourse-Logged-Out")&&s&&s()}function S(){return C("/session/csrf").then(e=>{d.default.currentProp("csrfToken",e.csrf)})}function C(){let e,t,i,s;1==arguments.length?"string"==typeof arguments[0]?(e=arguments[0],t={}):(t=arguments[0],e=t.url,delete t.url):2==arguments.length&&(e=arguments[0],t=arguments[1]),e=(0,c.default)(e);let r=!0;function _(s,a){t.headers=t.headers||{},h.default.current()&&(t.headers["Discourse-Logged-In"]="true"),f&&(t.headers[f.key]=f.value,f=null),m&&(!t.type||"GET"===t.type)&&(m=!1,t.headers["Discourse-Track-View"]="true",g&&(t.headers["Discourse-Track-View-Topic-Id"]=g),g=null),(0,u.default)()&&(t.headers["Discourse-Present"]="true"),t.success=(e,i,r)=>{(function(e){e&&e.getResponseHeader("Discourse-Xhr-Redirect")&&(window.location=e.responseText)})(r),T(r),(0,n.run)(()=>{p.default.currentProp("isReadOnly",!!(r&&r.getResponseHeader("Discourse-Readonly")))}),t.returnXHR&&(e={result:e,xhr:r}),(0,n.run)(null,s,e)},t.error=(i,s,o)=>{if(r&&0===i.readyState){if("error"===s&&(0,l.isTesting)())throw o;return}if(T(i),403===i.status&&'["BAD CSRF"]'===i.responseText&&d.default.current().set("csrfToken",null),200===i.status)return t.success(i);i.jqTextStatus=s,i.requestedUrl=e,(0,n.run)(null,a,{jqXHR:i,textStatus:s,errorThrown:o})},t.method&&(t.type=t.method,delete t.method),t.type||(t.type="GET"),t.dataType||"GET"!==t.type.toUpperCase()||(t.dataType="json"),"script"===t.dataType&&(t.headers["Discourse-Script"]=!0),i=o().ajax(e,t)}return void 0!==t.ignoreUnsent&&(r=t.ignoreUnsent,delete t.ignoreUnsent),(s=new a.Promise(t.type&&"GET"!==t.type.toUpperCase()&&e!==(0,c.default)("/clicks/track")&&!d.default.currentProp("csrfToken")?(e,t)=>{i=S().then(()=>{_(e,t)})}:_)).abort=()=>{i&&i.abort()},s}},57812:(e,t,i)=>{"use strict";i.r(t),i.d(t,{apiInitializer:()=>r});var s=i(96340);let n=0;function r(e,t,i){return{name:`api-initializer${n++}`,after:"inject-objects",initialize:()=>(0,s.withPluginApi)(e,t,i)}}},6466:(e,t,i)=>{"use strict";function s(e,t){if(!(this instanceof s))return new s(e,t);this.namespace=e,this.value=t}i.r(t),i.d(t,{default:()=>n}),s.prototype.hook=function(e,t,i){i&&"AttributeHook"===i.type&&i.value===this.value&&i.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},s.prototype.unhook=function(e,t,i){if(i&&"AttributeHook"===i.type&&i.namespace===this.namespace)return;let s=t.indexOf(":"),n=s>-1?t.slice(s+1):t;e.removeAttributeNS(this.namespace,n)},s.prototype.type="AttributeHook";let n=s},37054:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{CANCELLED_STATUS:()=>_,SKIP:()=>f,default:()=>w});var r=i(62053),o=i(96958),a=i(25124),l=i.n(a),c=i(46301),u=i(77093),d=i(51429),p=i(53306),h=i(64873),m=i(70958),g=i(93536);let f="skip",_="__CANCELLED",y=/[\s[{(/]/,b={backSpace:8,tab:9,enter:13,shift:16,esc:27,upArrow:38,rightArrow:39,downArrow:40};function w(e){if(0===this.length||("destroy"===e||e.updateData)&&((0,r.cancel)(n),this[0].removeEventListener("keydown",H),this[0].removeEventListener("keyup",$),this[0].removeEventListener("paste",D),this[0].removeEventListener("click",M),window.removeEventListener("click",M),"destroy"===e))return;if(e&&e.cancel&&this.data("closeAutocomplete"))return this.data("closeAutocomplete")(),this;if(1!==this.length)return window.console&&(window.console.log("WARNING: passed multiple elements to $.autocomplete, skipping."),window.Error&&window.console.log(new window.Error().stack)),this;e&&void 0===e.preserveKey&&(e.preserveKey=!0);let t=e&&e.disabled,i=null,a=null,w=null,k=null,T=this,S=null,C=null,x=null;"autoSelectFirstSuggestion"in e||(e.autoSelectFirstSuggestion=!0);let A="INPUT"===T[0].tagName&&!e.treatAsTextarea,E=[];function D(){(0,p.default)(()=>T.trigger("keydown"),50)}function P(){if(!C&&!S)return;let e=C?.length>0?C[0]:S[0],t=O(),i=t.offsetTop,s=i+t.clientHeight;i<=e.scrollTop?e.scrollTo(0,i):s>=e.scrollTop+e.clientHeight&&e.scrollTo(0,e.scrollTop+t.clientHeight)}function M(){s?.destroy(),e.onClose?.(),S?.hide()?.remove(),S=null,C=null,k=null,a=null,x=null,s=null}function F(t,i){let s=t;e.transformComplete&&(s=e.transformComplete(s)),e.single&&(E=[]);let n=(Array.isArray(s)?s:[s||t]).map(e=>{let t=l()(``),i=T.parent().find(".item:last");return 0===i.length?T.parent().prepend(t):i.after(t),E.push(e),t[0]});e.onChangeItems&&i&&e.onChangeItems(E),l()(n).find("a").click(function(){return M(),E.splice(l().inArray(s,E),1),l()(this).parent().parent().remove(),e.single&&T.show(),e.onChangeItems&&e.onChangeItems(E),!1})}e.textHandler??=new m.TextareaAutocompleteHandler(T[0]);let I=async function(t,i){if(t){if(A)T.val(""),e.single&&T.hide(),F(t,!0);else if(e.transformComplete&&(t=await e.transformComplete(t,i)),t){let s=await V({completeTerm:!0}),n=null;void 0!==s.completeStart&&void 0!==s.completeEnd?(k=s.completeStart,n=s.completeEnd):k=n=e.textHandler.getCaretPosition(),e.textHandler.replaceTerm({start:k,end:n,term:(e.preserveKey&&e.key||"")+t}),e&&e.afterComplete&&e.afterComplete(e.textHandler.value,i)}}M()};if(A){let s=Math.max(this.width(),200);e.updateData?((i=this.parent()).find(".item").remove(),T.show()):(i=this.wrap("
").parent(),e.fullWidthWrap||i.width(s)),e.single&&!e.width?this.attr("class",`${this.attr("class")} fullwidth-input`):e.width&&this.css("width",e.width),this.attr("name",e.updateData?this.attr("name"):this.attr("name")+"-renamed"),this.val().split(",").forEach(t=>{""!==t&&(e.reverseTransform&&(t=e.reverseTransform(t)),e.single&&T.hide(),F(t,!1))}),e.items&&e.items.forEach(t=>{e.single&&T.hide(),F(t,!0)}),this.val(""),k=0,i.click(function(){return this.focus(),!0})}function N(){return L().removeClass("selected"),l()(O()).addClass("selected")}function O(){return L()[w]}function L(){return S.find("li a")}function R(t,i){let s=i._gboard_hack_force_lookup;return(s&&delete i._gboard_hack_force_lookup,x!==t||s)?(x=t,0!==t.length&&0===t.trim().length||e.textHandler.value[e.textHandler.getCaretPosition()]?.trim())?(M(),null):i.dataSource(t):f}function U(t){if(null!==k&&t!==f){if(t&&t.then&&"function"==typeof t.then){S&&S.hide().remove(),t.then(U);return}t!==_&&(a=t,t&&0!==t.length?function(){let t;if(S&&S.hide().remove(),0===a.length)return;let i=(S=l()(e.template({options:a}))).find("ul");if(e.autoSelectFirstSuggestion?(w=0,N()):w=-1,i.find("li").click(async function(t){let{originalEvent:s}=t;if(s.preventDefault(),s.stopPropagation(),w=i.find("li").index(this),null==a){let t={...e,_gboard_hack_force_lookup:!0},i=await R(x,t);i&&(U(i),await I(a[w],s),e.single||T.focus())}else await I(a[w],s),e.single||T.focus()}),e.appendSelector?T.parents(e.appendSelector).append(S):T.parent().append(S),e.scrollElementSelector&&(C=S.find(e.scrollElementSelector)),e.onRender&&e.onRender(a),A||e.treatAsTextarea)return s&&s.destroy(),s=(0,o.n4)(T[0],S[0],{placement:`${g.default.currentProp("mobileView")?"top":"bottom"}-start`,modifiers:[{name:"offset",options:{offset:[0,2]}}]});let n=0,r=e.textHandler.getCaretCoords(k);e.treatAsTextarea&&(n=-32),!A&&!e.treatAsTextarea&&(n=S.height(),window.innerHeight-T.outerHeight()-l()("header.d-header").innerHeight()r.top&&(n=-32),g.default.currentProp("mobileView")&&T.height()/2>=r.top&&(n=-32));let c=T.position();if((0,h.isDocumentRTL)())t=c.left+r.left-S.width();else{let e=10;g.default.currentProp("mobileView")&&T.width()/2<=r.left&&(e=-S.width()),t=c.left+r.left+e}t<0&&(t=0);let u=T.offset().top,d=parseInt(T.css("border-top-width"),10)||0;c.top+r.top+d-n+u<30&&(n=-32),S.css({position:"absolute",top:`${c.top+r.top-n+d}px`,left:`${t}px`})}():M())}}let j=T.data("closeAutocomplete");async function B(t){let i={...t,inCodeBlock:()=>e.textHandler.inCodeBlock()};return await e.triggerRule?.(T[0],i)??!0}async function $(t){e.debounced?(0,c.default)(this,q,t,u.INPUT_DELAY):await q(t)}async function q(t){if([b.esc,b.enter].includes(t.which))return!0;let i=e.textHandler.getCaretPosition(),s=e.textHandler.value[i-1];if(e.key&&e.onKeyUp&&s!==e.key){let t=e.onKeyUp(e.textHandler.value,i);t&&await B()&&(k=i-t[0].length,U(R(t[0].substring(1,t[0].length),e)))}if(null===k&&i>0){if(s===e.key){let t=e.textHandler.value.charAt(i-2);(!t||y.test(t))&&await B()&&(k=i-1,U(R("",e)))}}else null!==k&&U(R(e.textHandler.value.substring(k+ +!!e.key,i),e))}async function V(t){let i,s;let n=!0,r=t?.backSpace,o=t?.completeTerm,a=e.textHandler.getCaretPosition();r&&(a-=1);let l=null,c=null,u=a;for(;n&&a>=0;){if(a-=1,(i=e.textHandler.value[a])===e.key&&(i=e.textHandler.value[a-1],await B({backSpace:r})&&(void 0===i||y.test(i)))){l=a,s=e.textHandler.value.substring(a+1,u),c=a+s.length;break}n=!/\s/.test(i),o&&(n||=" "===i)}return{completeStart:l,completeEnd:c,term:s}}async function H(t){let s,o,l,c,u;if(t.ctrlKey||t.altKey||t.metaKey)return!0;if(e.allowAny&&((0,r.cancel)(n),n=(0,p.default)(()=>{0===E.length&&E.push("");let t=e.textHandler.value;"string"==typeof E[0]&&t.length>0&&(E.pop(),E.push(t),e.onChangeItems&&e.onChangeItems(E))},50)),e.key||(k=0),t.which!==b.shift){if(null===k&&t.which===b.backSpace&&e.key){let t=await V({backSpace:!0});if(k=t.completeStart,t.completeEnd)return U(R(t.term,e)),!0}if(t.which===b.esc)return null===S||(M(),t.preventDefault(),t.stopImmediatePropagation(),!1);if(null!==k){if(u=e.textHandler.getCaretPosition(),t.which===b.rightArrow&&" "===e.textHandler.value[u]||u<=k&&e.key)return M(),!0;switch(t.which){case b.tab:case b.enter:if(!a)return M(),!0;if(!(w>=0)||!(c=a[w]))return!0;return await I(c,t),t.stopImmediatePropagation(),t.preventDefault(),!1;case b.upArrow:return(w-=1)<0&&(w=0),N(),P(),t.preventDefault(),!1;case b.downArrow:if(!a)return M(),!0;return l=a.length,(w+=1)>=l&&(w=l-1),w<0&&(w=0),N(),P(),t.preventDefault(),!1;case b.backSpace:if(a=null,--u<0)return M(),A&&(s=i.find("a:last"))&&s.click(),!0;return o=e.textHandler.value.substring(k+ +!!e.key,u),k===u&&o===e.key&&M(),U(R(o,e)),!0;default:return a=null,!0}}}}return T.data("closeAutocomplete",function(){j&&j(),M()}),window.addEventListener("click",M),this[0].addEventListener("click",M),this[0].addEventListener("paste",D),this[0].addEventListener("keyup",$),this[0].addEventListener("keydown",H),this}},38384:(e,t,i)=>{"use strict";let s,n;function r(e,t){if(s||function(e){s={},n=!0,["admins","moderators","staff","trust_level_0","trust_level_1","trust_level_2","trust_level_3","trust_level_4"].forEach(t=>{let i=e.groups?.findBy("name",t);i&&i.flair_url&&(n=!1,s[t]={flair_name:i.name.replace(/_/g," "),flair_url:i.flair_url,flair_bg_color:i.flair_bg_color,flair_color:i.flair_color})})}(e),n)return null;if(t.admin&&s.admins)return s.admins;if(t.moderator&&s.moderators)return s.moderators;if(s.staff&&(t.admin||t.moderator))return s.staff;let i=t.trust_level||t.trustLevel;if(i){for(let e=i;e>=0;e--)if(s[`trust_level_${e}`])return s[`trust_level_${e}`]}}function o(){s=null,n=null}i.r(t),i.d(t,{default:()=>r,resetFlair:()=>o})},17587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{avatarImg:()=>p,avatarUrl:()=>d,getRawAvatarSize:()=>u,getRawSize:()=>c,tinyAvatar:()=>h,translateSize:()=>l});var s=i(84457),n=i(94636),r=i(65573),o=i(93805);let a=null;function l(e){switch(e){case"tiny":case"small":return 24;case"medium":case"large":return 48;case"extra_large":return 96;case"huge":return 144}return e}function c(e){let t=window.devicePixelRatio||1,i=1;return t>1.1&&t<2.1?i=2:t>=2.1&&(i=3),e*i}function u(e){a??=(0,r.helperContext)().siteSettings.avatar_sizes.split("|").map(e=>parseInt(e,10)).sort((e,t)=>e-t),e=c(e);for(let t=0;t=e)return a[t];return a[a.length-1]}function d(e,t){let{customGetURL:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return"";let s=u(l(t)),r=e.replace(/\{size\}/g,s);return(i||n.getURLWithCDN)(r)}function p(e,t){let i=l(e.size),n=d(e.avatarTemplate,i,{customGetURL:t});if(!n)return"";let r="avatar"+(e.extraClasses?" "+e.extraClasses:""),o="";if(e.title){let t=(0,s.default)(e.title||"");o=` title='${t}'`}return``}function h(e,t){return p((0,o.deepMerge)({avatarTemplate:e,size:"tiny"},t))}},17112:(e,t,i)=>{"use strict";let s,n;if(i.r(t),i.d(t,{clearAllBodyScrollLocks:()=>h,disableBodyScroll:()=>p,enableBodyScroll:()=>m,locks:()=>o}),"undefined"!=typeof window){let e={get passive(){return}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}let r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),o=[],a=new Map,l=e=>{if(void 0===n){let t=!!e&&!0===e.reserveScrollBarGap,i=window.innerWidth-document.documentElement.getBoundingClientRect().width;if(t&&i>0){let e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);n=document.body.style.paddingRight,document.body.style.paddingRight=`${e+i}px`}}},c=()=>{void 0!==n&&(document.body.style.paddingRight=n,n=void 0)},u=()=>window.requestAnimationFrame(()=>{let e=document.body;void 0===s&&(s={...e.style},e.style.touchAction="none")}),d=()=>{void 0!==s&&(document.body.style.touchAction=s.touchAction||"",s=void 0)},p=(e,t)=>{if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}a.set(e,(null==a?void 0:a.get(e))?(null==a?void 0:a.get(e))+1:1),o.some(t=>t.targetElement===e)||(o=[...o,{targetElement:e,options:t||{}}],r?u():l(t))},h=()=>{r?d():c(),o=[],a.clear()},m=e=>{if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}a.set(e,(null==a?void 0:a.get(e))?(null==a?void 0:a.get(e))-1:0),(null==a?void 0:a.get(e))===0&&(o=o.filter(t=>t.targetElement!==e),null==a||a.delete(e)),0===o.length&&(r?d():c())}},61390:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BookmarkFormData:()=>a});var s=i(8554),n=i(1602),r=i(66914),o=i(27431);class a{static #e=(()=>dt7948.g(this.prototype,"selectedDatetime",[s.tracked]))();#uM=(()=>void dt7948.i(this,"selectedDatetime"))();static #i=(()=>dt7948.g(this.prototype,"selectedReminderType",[s.tracked],function(){return r.TIME_SHORTCUT_TYPES.NONE}))();#uF=(()=>void dt7948.i(this,"selectedReminderType"))();static #s=(()=>dt7948.g(this.prototype,"id",[s.tracked]))();#uI=(()=>void dt7948.i(this,"id"))();static #l=(()=>dt7948.g(this.prototype,"reminderAt",[s.tracked]))();#uN=(()=>void dt7948.i(this,"reminderAt"))();static #c=(()=>dt7948.g(this.prototype,"autoDeletePreference",[s.tracked]))();#uO=(()=>void dt7948.i(this,"autoDeletePreference"))();static #u=(()=>dt7948.g(this.prototype,"name",[s.tracked]))();#nR=(()=>void dt7948.i(this,"name"))();static #d=(()=>dt7948.g(this.prototype,"bookmarkableId",[s.tracked]))();#uL=(()=>void dt7948.i(this,"bookmarkableId"))();static #p=(()=>dt7948.g(this.prototype,"bookmarkableType",[s.tracked]))();#uR=(()=>void dt7948.i(this,"bookmarkableType"))();constructor(e){this.id=e.id,this.reminderAt=e.reminder_at,this.name=e.name,this.bookmarkableId=e.bookmarkable_id,this.bookmarkableType=e.bookmarkable_type,this.autoDeletePreference=e.auto_delete_preference??o.AUTO_DELETE_PREFERENCES.CLEAR_REMINDER}get reminderAtISO(){return this.selectedReminderType===r.TIME_SHORTCUT_TYPES.NONE?null:this.selectedReminderType&&this.selectedDatetime?this.selectedDatetime.toISOString():this.reminderAt?this.reminderAt.toISOString():null}get saveData(){return{reminder_at:this.reminderAtISO,name:this.name,id:this.id,auto_delete_preference:this.autoDeletePreference,bookmarkable_id:this.bookmarkableId,bookmarkable_type:this.bookmarkableType}}formattedReminder(e){return(0,n.formattedReminderTime)(this.reminderAt,e)}}},1602:(e,t,i)=>{"use strict";i.r(t),i.d(t,{formattedReminderTime:()=>n});var s=i(843);function n(e,t){let i=moment.tz(e,t),n=i.format((0,s.i18n)("dates.time")),r=moment.tz(t),o=moment(r).add(1,"day");return i.isSame(o,"date")?(0,s.i18n)("bookmarks.reminders.tomorrow_with_time",{time:n}):i.isSame(r,"date")?(0,s.i18n)("bookmarks.reminders.today_with_time",{time:n}):(0,s.i18n)("bookmarks.reminders.at_time",{date_time:i.format((0,s.i18n)("dates.long_with_year"))})}},58112:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(8554),n=i(35533),r=i(31049),o=i(83133),a=i(57222),l=i(23777),c=i(19268);class u{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#S=(()=>void dt7948.i(this,"modal"))();static #s=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#nZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#eQ=(()=>void dt7948.i(this,"topicTrackingState"))();static #c=(()=>dt7948.g(this.prototype,"bulkSelectEnabled",[s.tracked],function(){return!1}))();#uU=(()=>void dt7948.i(this,"bulkSelectEnabled"))();static #u=(()=>dt7948.g(this.prototype,"autoAddTopicsToBulkSelect",[s.tracked],function(){return!1}))();#uj=(()=>void dt7948.i(this,"autoAddTopicsToBulkSelect"))();static #d=(()=>dt7948.g(this.prototype,"autoAddBookmarksToBulkSelect",[s.tracked],function(){return!1}))();#uB=(()=>void dt7948.i(this,"autoAddBookmarksToBulkSelect"))();static #p=(()=>dt7948.g(this.prototype,"lastCheckedElementId",[s.tracked],function(){return null}))();#u$=(()=>void dt7948.i(this,"lastCheckedElementId"))();selected=(()=>new a.TrackedArray)();constructor(e){(0,r.setOwner)(this,(0,r.getOwner)(e))}clear(){this.selected.length=0,this.lastCheckedElementId=null}addTopics(e){this.selected.concat(e)}get selectedCategoryIds(){return this.selected.mapBy("category_id").uniq()}toggleBulkSelect(e){e?.preventDefault(),this.bulkSelectEnabled=!this.bulkSelectEnabled,this.clear()}static #h=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[n.action]))();dismissRead(e,t){let i="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:l.NotificationLevels.REGULAR},s="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);(this.selected.length?c.default.bulkOperation(this.selected,i,{},s):c.default.bulkOperationByFilter("unread",i,t,s)).then(e=>{e?.topic_ids&&(t?.private_message_inbox?this.pmTopicTrackingState.removeTopics(e.topic_ids):this.topicTrackingState.removeTopics(e.topic_ids)),this.modal.close(),this.router.refresh()})}}},64487:(e,t,i)=>{"use strict";function s(e,t){e.set("topicList",t)}function n(e){e.get("topicList")}function r(e){e.setProperties({topicList:null})}function o(e,t){let i=e.get("topicList");return i&&i.filter===t?i:(r(e),!1)}i.r(t),i.d(t,{findOrResetCachedTopicList:()=>o,getCachedTopicList:()=>n,resetCachedTopicList:()=>r,setCachedTopicList:()=>s})},17358:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{constructor(e,t,i){this.model=e,this.can_moderators_view_emails=t,this.currentUser=i}get canAdminCheckEmails(){return this.currentUser.admin}get canCheckEmails(){if(!this.currentUser)return!1;let e=this.can_moderators_view_emails&&this.currentUser.staff;return this.model?.id===this.currentUser.id||this.canAdminCheckEmails||e}}},88723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{caret:()=>a,caretPosition:()=>l});var s=i(25124),n=i.n(s);let r=null;function o(e){return e.selectionStart?e.selectionStart:0}function a(e){return o(e||this[0])}function l(e){let t,i,s,a,l,c,u,d,p,h,m,g,f,_,y;r&&r.remove(),_=n()(this),s=function(e){return e.currentStyle?e.currentStyle:document.defaultView.getComputedStyle(e,"")},c=function(e){return f.getPropertyValue(e)},f=s(_[0]),h=(r=n()("

").appendTo("body")).find("p");let b=n()("html").hasClass("rtl");r.css({border:"1px solid black",padding:c("padding"),resize:c("resize"),"max-height":_.height()+"px","overflow-y":"auto","word-wrap":"break-word",position:"absolute",left:b?"auto":"-7000px",right:b?"-7000px":"auto"}),h.css({margin:0,padding:0,"word-wrap":"break-word","letter-spacing":c("letter-spacing"),"font-family":c("font-family"),"font-size":c("font-size"),"line-height":c("line-height")}),r.width(_.width()),r.height(_.height()),g=e&&(e.pos||0===e.pos)?e.pos:o(_[0]),y=_.val().replace("\r",""),e&&e.key&&(y=y.substring(0,g)+e.key+y.substring(g)),i=g-1,t=g,u=!1,"\n"===y[i]&&"\n"===y[t]&&(u=!0),a=function(e){return e.replace(//g,">").replace(/[ ]/g,"​ ​").replace(/\n/g,"
")},p=function(e,t,i){let s;return"\n"===(s=y.substring(e,e+1))?"
":""+a(s)+""},l="",i>=0&&(l+=a(y.substring(0,g-1))+p(i,"before","#d0ffff"),u&&(l+=p(0,"post-before","#d0ffff"))),t>=0&&(l+=p(t,"after","#ffd0ff"),t-1{"use strict";function s(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function n(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function r(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase()}i.r(t),i.d(t,{camelCaseToDash:()=>n,camelCaseToSnakeCase:()=>r,snakeCaseToCamelCase:()=>s})},66950:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SEPARATOR:()=>r,categoryHashtagTriggerRule:()=>a,replaceSpan:()=>o});var s=i(16547),n=i(41089);let r=":";function o(e,t,i,s){s=s?` data-type="${s}"`:"",e.replaceWith(`#${t}`)}function a(e,t){return(0,s.default)("categoryHashtagTriggerRule is being replaced by hashtagTriggerRule and the new hashtag-autocomplete plugin APIs",{since:"2.9.0.beta10",dropFrom:"3.0.0.beta1",id:"discourse.category-hashtags.categoryHashtagTriggerRule"}),(0,n.hashtagTriggerRule)(e,t)}},90184:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{search:()=>y});var r=i(62053),o=i(24571),a=i(6864),l=i(37054),c=i(66950),u=i(46301),d=i(77093),p=i(53306),h=i(32036),m=i(1559);let g={};function f(e,t){return g[e]=t,s=new Date,t}function _(e,t,i,s){n=(0,a.ajax)("/tags/filter/search",{data:{limit:t,q:e}});let r=l.CANCELLED_STATUS;n.then(e=>{let t=i.map(e=>e.model.get("name")),s=e.results.map(e=>(e.text=t.includes(e.text)?`${e.text}${h.TAG_HASHTAG_POSTFIX}`:e.text,e));r=i.concat(s)}).finally(()=>{n=null,s(r)})}function y(e,t){n&&(n.abort(),n=null),new Date-s>3e4&&(g={});let i=g[e];if(i)return i;let a=m.default.search(e,{limit:5}),h=a.length;return(a=a.map(e=>({model:e,text:m.default.slugFor(e,c.SEPARATOR,2)})),5!==h&&t.tagging_enabled)?function(e,t,i){return new o.Promise(s=>{let n=(0,d.isTesting)()?null:(0,p.default)(()=>{s(l.CANCELLED_STATUS)},5e3);(0,u.default)(this,_,e,i,t,t=>{(0,r.cancel)(n),s(f(e,t))},300)})}(e,a,5-h):f(e,a)}},25733:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,rollbackAllPrepends:()=>u,withPrependsRolledBack:()=>c});var s=i(27138);let n=["prototype","name","length"],r=["constructor"];function o(e,t){(function(e,t){let i=e;for(;i;){if(i===t)return!0;i=Object.getPrototypeOf(i)}return!1})(e,s.default)&&e.proto();let i=Object.getOwnPropertyDescriptors(e),o=Object.getOwnPropertyDescriptors(e.prototype);for(let s of(function(e,t,i,s){let n=a.get(e)||{klassDescs:t,protoDescs:i,modifyCallbacks:[]};n.modifyCallbacks.push(s),a.set(e,n)}(e,i,o,t),n))delete i[s];for(let e of r)delete o[e];let l=Object.getPrototypeOf(e),c=l!==Function.prototype?class extends l{}:class{};Object.defineProperties(c,i),Object.defineProperties(c.prototype,o);let u=t(c);if(Object.getPrototypeOf(u)!==c)throw Error("The class returned from the callback must extend the provided superclass");for(let[t,s]of Object.entries(Object.getOwnPropertyDescriptors(u)))i[t]===s||n.includes(t)||Object.defineProperty(e,t,s);for(let[t,i]of Object.entries(Object.getOwnPropertyDescriptors(u.prototype)))o[t]===i||r.includes(t)||Object.defineProperty(e.prototype,t,i)}let a=new Map;function l(e){let{klassDescs:t,protoDescs:i}=a.get(e);for(let[i,s]of Object.entries(t))Object.defineProperty(e,i,s);for(let i of Object.getOwnPropertyNames(e))n.includes(i)||t[i]||delete e[i];for(let[t,s]of Object.entries(i))Object.defineProperty(e.prototype,t,s);for(let t of Object.getOwnPropertyNames(e.prototype))r.includes(t)||i[t]||delete e.prototype[t];a.delete(e)}function c(e,t){let i=a.get(e);if(!i){t();return}l(e);try{t()}finally{i.modifyCallbacks.forEach(t=>o(e,t))}}function u(){for(let e of a.keys())l(e)}},7294:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y,isValidLink:()=>g,openLinkInNewTab:()=>_,shouldOpenInNewTab:()=>f});var s=i(25124),n=i.n(s),r=i(24571),o=i(6864),a=i(16547),l=i(77093),c=i(99434),u=i(94636),d=i(97015),p=i(87353),h=i(59864),m=i(843);function g(e){if(e instanceof n()&&(e=e[0],(0,a.default)("isValidLink now expects an Element, not a jQuery object",{since:"2.9.0.beta7",id:"discourse.click-track.is-valid-link-jquery"})),["lightbox","no-track-link","hashtag","hashtag-cooked","back"].some(t=>e.classList.contains(t)))return!1;let t=e.closest("aside.quote, .elided, .expanded-embed");if(t&&t!==e)return!1;if(e.closest(".onebox-result, .onebox-body")){let t=e.closest(".onebox")?.querySelector("header a");if(t&&t.href===e.href)return!0}return e.classList.contains("track-link")||!e.closest(".hashtag, .hashtag-cooked, .hashtag-icon-placeholder, .badge-category, .onebox-result, .onebox-body")}function f(e){let t=p.default.isInternal(e),i=h.default.currentProp("user_option.external_links_in_new_tab");return!t&&i}function _(e,t){let i=(t.href||t.dataset.href||"").trim();if(""===i)return;let s=window.open(i,"_blank");s.opener=null,s.focus(),e.preventDefault()}let y={trackClick(e,t){let{returnPromise:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(3===e.which)return!0;let s=e.currentTarget,n=g(s);if(["mention","mention-group"].some(e=>s.classList.contains(e)))return!0;let a=(s.getAttribute("href")||s.dataset.href||"").trim();if(!a||a.startsWith("mailto:"))return!0;if(t?.lookup("service:app-events").trigger("click-tracked",a),s.classList.contains("attachment")){if(t?.lookup("service:site-settings")?.prevent_anons_from_downloading_files&&!h.default.current())(0,c.getOwnerWithFallback)(this).lookup("service:dialog").alert((0,m.i18n)("post.errors.attachment_download_requires_login"));else if((0,d.wantsNewWindow)(e)){let e=window.open(a,"_blank");e.opener=null,e.focus()}else p.default.redirectTo(a);return!1}let y=s.closest("article:not(.onebox-body), .excerpt, #revisions"),b=y.dataset.postId,w=document.querySelector("#topic")?.dataset?.topicId||y.dataset.topicId,k=s.dataset.userId||y.dataset.userId,T=k&&parseInt(k,10)===h.default.currentProp("id");if(n&&!T){let e=s.querySelector("span.badge");if(e){let t=e.innerHTML,i=`${new Date().toLocaleDateString()}-${b}-${a}`;/^\d+$/.test(t)&&!sessionStorage.getItem(i)&&(sessionStorage.setItem(i,!0),e.innerHTML=parseInt(t,10)+1)}}let S=r.Promise.resolve();if(n){if(!(0,l.isTesting)()&&navigator.sendBeacon){let e=new FormData;e.append("url",a),e.append("post_id",b),e.append("topic_id",w),navigator.sendBeacon((0,u.default)("/clicks/track"),e)}else S=(0,o.ajax)("/clicks/track",{type:"POST",data:{url:a,post_id:b,topic_id:w}})}return(0,d.wantsNewWindow)(e)?!i||S:(f(a)?_(e,s):S.finally(()=>{p.default.isInternal(a)&&(0,u.samePrefix)(a)?p.default.routeTo(a):p.default.redirectAbsolute(a)}),!!i&&S)}}},91566:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(30503),n=i(62053),r=i(49294),o=i(63748),a=i(99434),l=i(51429),c=i(53306),u=i(5068),d=i(42236),p=i(843);class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={},e=Object.assign({showFullscreen:!0,showCopy:!0},e),this.showFullscreen=e.showFullscreen,this.showCopy=e.showCopy}attachToPost(e,t){let i=this._getCodeBlocks(t);i.length&&e&&(this._createButtons(i),this._storeClickHandler(e.id,t),this._addClickEvent(t))}attachToGeneric(e){let t=this._getCodeBlocks(e);if(!t.length)return;this._createButtons(t);let i=(0,s.guidFor)(e);this._storeClickHandler(i,e),this._addClickEvent(e)}cleanup(){Object.values(this._codeblockButtonClickHandlers||{}).forEach(e=>e.removeEventListener("click",this._handleClick)),Object.values(this._fadeCopyCodeblocksRunners||{}).forEach(e=>(0,n.cancel)(e)),this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={}}_storeClickHandler(e,t){this._codeblockButtonClickHandlers[e]&&(this._codeblockButtonClickHandlers[e].removeEventListener("click",this._handleClick),delete this._codeblockButtonClickHandlers[e]),this._codeblockButtonClickHandlers[e]=t}_getCodeBlocks(e){return e.querySelectorAll(":scope > pre > code, :scope :not(article):not(blockquote) > pre > code")}_createButtons(e){e.forEach(e=>{let t=document.createElement("div");if(t.classList.add("codeblock-button-wrapper"),e.before(t),this.showCopy){let i=document.createElement("button");i.classList.add("btn","nohighlight","copy-cmd","btn-flat"),i.ariaLabel=(0,p.i18n)("copy_codeblock.copy"),i.innerHTML=(0,l.iconHTML)("copy"),t.appendChild(i),t.style.right=`${e.offsetWidth-e.clientWidth}px`}if(this.showFullscreen&&!u.default.isMobileDevice){let e=document.createElement("button");e.classList.add("btn","nohighlight","fullscreen-cmd","btn-flat"),e.ariaLabel=(0,p.i18n)("copy_codeblock.fullscreen"),e.innerHTML=(0,l.iconHTML)("discourse-expand"),t.appendChild(e)}e.parentElement.classList.add("codeblock-buttons")})}_addClickEvent(e){e.addEventListener("click",this._handleClick,!1)}_handleClick(e){if(!e.target.classList.contains("copy-cmd")&&!e.target.classList.contains("fullscreen-cmd"))return;let t=e.target.classList.contains("fullscreen-cmd")?"fullscreen":"copy",i=e.target,s=i.parentElement.parentElement.querySelector("code");if(s){let e=s.innerText.replace(/[\f\v\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/g," ").trim();if("copy"===t){let t=(0,d.clipboardCopy)(e);t?.then?t.then(()=>{this._copyComplete(i)}):t&&this._copyComplete(i)}else"fullscreen"===t&&(0,a.getOwnerWithFallback)(this).lookup("service:modal").show(r.default,{model:{code:e,codeClasses:s.className}})}}static #e=(()=>dt7948.n(this.prototype,"_handleClick",[o.bind]))();_copyComplete(e){e.classList.add("action-complete");let t=e.innerHTML;e.innerHTML=(0,p.i18n)("copy_codeblock.copied");let i=(0,s.guidFor)(e);this._fadeCopyCodeblocksRunners[i]&&((0,n.cancel)(this._fadeCopyCodeblocksRunners[i]),delete this._fadeCopyCodeblocksRunners[i]),this._fadeCopyCodeblocksRunners[i]=(0,c.default)(()=>{e.classList.remove("action-complete"),e.innerHTML=t,delete this._fadeCopyCodeblocksRunners[i]},3e3)}}},61586:(e,t,i)=>{"use strict";i.r(t),i.d(t,{extendColorSchemeCookies:()=>h,listColorSchemes:()=>l,loadColorSchemeStylesheet:()=>c,updateColorSchemeCookie:()=>p});var s=i(6864),n=i(61004),r=i(53306),o=i(56323),a=i(843);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.get("user_color_schemes");if(!i||!Array.isArray(i))return null;let s=[];if(t.darkOnly||(i=i.sort((e,t)=>Number(e.is_dark)-Number(t.is_dark))),i.forEach(e=>{(t.darkOnly&&e.is_dark||!t.darkOnly)&&s.push({name:e.name,id:e.id})}),t.darkOnly){let t=e.get("default_dark_color_scheme");t&&!i.findBy("id",t.id)&&s.unshift({id:t.id,name:`${t.name} ${(0,a.i18n)("user.color_schemes.default_dark_scheme")}`}),s.unshift({id:-1,name:(0,a.i18n)("user.color_schemes.disable_dark_scheme")})}return 0===s.length?null:s}function c(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t?`/${t}`:"";return(0,s.ajax)(`/color-scheme-stylesheet/${e}${n}.json`).then(e=>{if(e&&e.new_href){let t=i?"cs-preview-dark":"cs-preview-light",s=document.querySelector(`link#${t}`);if(s)s.href=e.new_href;else{let s=document.createElement("link");s.href=e.new_href,s.media=i?"(prefers-color-scheme: dark)":"(prefers-color-scheme: light)",s.rel="stylesheet",s.id=t,document.body.appendChild(s)}i||(0,r.default)(()=>{let e=getComputedStyle(document.body).getPropertyValue("--scheme-type");o.default.currentProp("defaultColorSchemeIsDark","dark"===e.trim())},500)}})}let u="color_scheme_id",d="dark_scheme_id";function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.dark?d:u;e?(0,n.default)(i,e,{path:"/",expires:365}):(0,n.removeCookie)(i,{path:"/"})}function h(){for(let e of[u,d]){let t=(0,n.default)(e);t&&(0,n.default)(e,t,{path:"/",expires:365})}}},46475:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.container=e,this.options={columns:3,minCount:2,...t},this.items=this._prepareItems(),this.items.length>=this.options.minCount?this.render():e.dataset.disabled=!0}count(){return[2,4].includes(this.items.length)?2:this.options.columns}render(){if(!this.container.dataset.columns)return this.container.dataset.columns=this.count(),this.container.replaceChildren(...this._distributeEvenly()),this}_prepareColumns(e){return[...Array(e)].map(()=>{let e=document.createElement("div");return e.classList.add("d-image-grid-column"),e})}_prepareItems(){let e=[];for(let t of this.container.children)if("P"===t.nodeName&&t.children.length>0)for(let i of t.children)e.push(this._wrapDirectImage(i));else e.push(this._wrapDirectImage(t));return e.filter(e=>!["BR","P"].includes(e.nodeName))}_wrapDirectImage(e){if("IMG"!==e.nodeName)return e;let t=document.createElement("span");return t.classList.add("image-wrapper"),t.appendChild(e.cloneNode()),t}_distributeEvenly(){let e=this.count(),t=this._prepareColumns(e),i=Array(e).fill(0);return this.items.forEach(s=>{let n=0;for(let t=1;t{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(8554);i(65809);var n=i(31049),r=i(83133),o=i(65742),a=i(6535),l=i(843);class c{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#n=(()=>void dt7948.i(this,"siteSettings"))();static #s=(()=>dt7948.g(this.prototype,"session",[r.service]))();#eO=(()=>void dt7948.i(this,"session"))();static #l=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#G=(()=>void dt7948.i(this,"capabilities"))();static #c=(()=>dt7948.g(this.prototype,"_uppyUpload",[s.tracked]))();#uq=(()=>void dt7948.i(this,"_uppyUpload"))();constructor(e){(0,n.setOwner)(this,e)}get uploading(){this._uppyUpload.uploading}generateVideoThumbnail(e,t,i){if(!this.siteSettings.video_thumbnails_enabled||!(0,o.isVideo)(e.name))return i();let s=document.createElement("video");s.src=URL.createObjectURL(e.data),s.autoplay=!0,s.muted=!0,s.playsinline=!0;let r=t.substring(t.lastIndexOf("/")+1).split(".")[0];s[this.capabilities.isIOS?"onloadedmetadata":"oncanplaythrough"]=()=>{let e=document.createElement("canvas"),t=e.getContext("2d");setTimeout(()=>{if(0===s.videoWidth)return i();e.width=s.videoWidth,e.height=s.videoHeight,t.drawImage(s,0,0,s.videoWidth,s.videoHeight);let o=t.getImageData(0,0,s.videoWidth,s.videoHeight).data,c=!0;for(let e=0;e{this._uppyUpload=new a.default((0,n.getOwner)(this),{id:"video-thumbnail",type:"thumbnail",additionalParams:{videoSha1:r},uploadDone(){i()}}),this._uppyUpload.setup(),this._uppyUpload.uppyWrapper.uppyInstance.on("upload-error",(e,t,s)=>{let n=(0,l.i18n)("wizard.upload_error");s.body.errors&&(n=s.body.errors.join("\n")),console.error(n),i()});try{e.name=`${r}.png`,this._uppyUpload.addFiles(e)}catch(e){}})},100)},s.onerror=()=>{console.warn("Video could not be loaded or decoded for thumbnail generation"),i()}}}},8001:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setupComposerPosition:()=>r});var s=i(62053),n=i(1799);function r(e){let t=document.documentElement;function i(t){(0,n.applyBehaviorTransformer)("composer-position:editor-touch-move",()=>{let i=e.scrollHeight<=e.clientHeight,s=window.getSelection();i&&0===s.rangeCount&&(t.preventDefault(),t.stopPropagation())})}return(t.classList.contains("mobile-device")||t.classList.contains("ipados-device"))&&(window.addEventListener("scroll",o),o(),e.addEventListener("touchmove",i)),()=>{(t.classList.contains("mobile-device")||t.classList.contains("ipados-device"))&&(window.removeEventListener("scroll",o),e.removeEventListener("touchmove",i))}}function o(){(0,s.later)(()=>{let e=document.querySelector("#reply-control").getBoundingClientRect();if(e.top<-1){let t=window.scrollY+e.top;window.scrollTo({top:t,behavior:"instant"})}},150)}},91672:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addPopupMenuOption:()=>r,clearPopupMenuOptions:()=>n,customPopupMenuOptions:()=>s});let s=[];function n(){s.length=0}function r(e){s.push(e)}},58996:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(19905),n=i(42236),r=i(843);function o(e,t){return(0,r.i18n)(e)===t?null:e}class a{constructor(e){let{siteSettings:t,capabilities:i}=e;this.shortcuts={},this.context=null,this.groups=[{group:"fontStyles",buttons:[]},{group:"insertions",buttons:[]},{group:"extras",buttons:[]}];let s=o("composer.bold_label","B");this.addButton({id:"bold",group:"fontStyles",icon:s?null:"bold",label:s,shortcut:"B",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("**","**","bold_text")});let n=o("composer.italic_label","I");this.addButton({id:"italic",group:"fontStyles",icon:n?null:"italic",label:n,shortcut:"I",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("*","*","italic_text")}),e.showLink&&this.addButton({id:"link",icon:"link",group:"insertions",shortcut:"K",preventFocus:!0,trimLeading:!0,sendAction:e=>this.context.send("showLinkModal",e)}),this.addButton({id:"blockquote",group:"insertions",icon:"quote-right",shortcut:"Shift+9",preventFocus:!0,perform:e=>e.applyList("> ","blockquote_text",{applyEmptyLines:!0,multiline:!0})}),i.touch||(this.addButton({id:"code",group:"insertions",shortcut:"E",icon:"code",preventFocus:!0,trimLeading:!0,perform:e=>e.formatCode()}),this.addButton({id:"bullet",group:"extras",icon:"list-ul",shortcut:"Shift+8",title:"composer.ulist_title",preventFocus:!0,perform:e=>e.applyList("* ","list_item")}),this.addButton({id:"list",group:"extras",icon:"list-ol",shortcut:"Shift+7",title:"composer.olist_title",preventFocus:!0,perform:e=>e.applyList(e=>e?`${parseInt(e,10)+1}. `:"1. ","list_item")})),t.support_mixed_text_direction&&this.addButton({id:"toggle-direction",group:"extras",icon:"right-left",shortcut:"Shift+6",title:"composer.toggle_direction",preventFocus:!0,perform:e=>e.toggleDirection()}),this.groups[this.groups.length-1].lastGroup=!0}addButton(e){let t=this.groups.findBy("group",e.group);if(!t)throw Error(`Couldn't find toolbar group ${e.group}`);let i={id:e.id,tabindex:e.tabindex||"-1",className:e.className||e.id,label:e.label,icon:e.icon,action:t=>{e.action?e.action(t):this.context.send("toolbarButton",t),this.context.appEvents.trigger("d-editor:toolbar-button-clicked",t)},perform:e.perform||function(){},trimLeading:e.trimLeading,popupMenu:e.popupMenu||!1,preventFocus:e.preventFocus||!1,condition:e.condition||(()=>!0),shortcutAction:e.shortcutAction};e.sendAction&&(i.sendAction=e.sendAction);let o=(0,r.i18n)(e.title||`composer.${e.id}_title`);if(e.shortcut){let t=`${(0,n.translateModKey)(s.PLATFORM_KEY_MODIFIER+"+")}${(0,n.translateModKey)(e.shortcut)}`;i.title=`${o} (${t})`,this.shortcuts[`${s.PLATFORM_KEY_MODIFIER}+${e.shortcut}`.toLowerCase()]=i}else i.title=o;e.unshift?t.buttons.unshift(i):t.buttons.push(i)}}},82805:(e,t,i)=>{"use strict";i.r(t),i.d(t,{computedI18n:()=>h,endWith:()=>_,fmt:()=>g,htmlSafe:()=>m,i18n:()=>h,propertyEqual:()=>c,propertyGreaterThan:()=>d,propertyLessThan:()=>p,propertyNotEqual:()=>u,setting:()=>y,url:()=>f});var s=i(35533),n=i(42256),r=i(94636),o=i(93805),a=i(843);function l(e,t){let i=t;if(!Array.isArray(i)||arguments.length>2){i=Array(arguments.length-1);for(let e=1,t=arguments.length;ethis.get(t)})}function p(e,t){return(0,s.computed)(e,t,function(){return this.get(e)this.get(e))))})}function m(){for(var e=arguments.length,t=Array(e),i=0;ithis.get(e)))})}function f(){for(var e=arguments.length,t=Array(e),i=0;ithis.get(e))))})}function _(){let e=Array.prototype.slice.call(arguments,0),t=e.pop();return(0,s.computed)(...e,function(){return e.map(e=>this.get(e)).every(e=>{let i=e.length-t.length,s=e.lastIndexOf(t);return -1!==s&&s===i})})}function y(e){return(0,s.computed)(function(){return this.siteSettings[e]})}},17773:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AUTO_GROUPS:()=>a,GROUP_SMTP_SSL_MODES:()=>l,MAX_NOTIFICATIONS_LIMIT_PARAMS:()=>c,MAX_UNOPTIMIZED_CATEGORIES:()=>h,REPORT_MODES:()=>g,SEARCH_PHRASE_REGEXP:()=>n,SEARCH_PRIORITIES:()=>s,SIDEBAR_SECTION:()=>o,SIDEBAR_URL:()=>r,SITE_SETTING_REQUIRES_CONFIRMATION_TYPES:()=>p,SYSTEM_FLAG_IDS:()=>d,TOPIC_VISIBILITY_REASONS:()=>u,USER_FIELD_FLAGS:()=>m});let s={ignore:1,very_low:2,low:3,normal:0,high:4,very_high:5},n='"([^"]+)"',r={max_icon_length:40,max_name_length:80,max_value_length:1e3},o={max_title_length:30},a={everyone:{id:0,automatic:!0,name:"everyone",display_name:"everyone"},admins:{id:1,automatic:!0,name:"admins",display_name:"admins"},moderators:{id:2,automatic:!0,name:"moderators",display_name:"moderators"},staff:{id:3,automatic:!0,name:"staff",display_name:"staff"},trust_level_0:{id:10,automatic:!0,name:"trust_level_0",display_name:"trust_level_0"},trust_level_1:{id:11,automatic:!0,name:"trust_level_1",display_name:"trust_level_1"},trust_level_2:{id:12,automatic:!0,name:"trust_level_2",display_name:"trust_level_2"},trust_level_3:{id:13,automatic:!0,name:"trust_level_3",display_name:"trust_level_3"},trust_level_4:{id:14,automatic:!0,name:"trust_level_4",display_name:"trust_level_4"}},l={none:0,ssl_tls:1,starttls:2},c=60,u={op_flag_threshold_reached:0,op_unhidden:1,embedded_topic:2,manually_unlisted:3,manually_relisted:4,bulk_action:5,unknown:99},d={like:2,notify_user:6,off_topic:3,inappropriate:4,spam:8,illegal:10,notify_moderators:7},p={simple:"simple",user_option:"user_option"},h=1e3,m=["editable","show_on_profile","show_on_user_card","searchable"],g={table:"table",chart:"chart",stacked_chart:"stacked_chart",stacked_line_chart:"stacked_line_chart",radar:"radar",counters:"counters",inline_table:"inline_table",storage_stats:"storage_stats"}},61004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l,removeCookie:()=>a});var s=i(16547);let n=/\+/g;function r(e){e.startsWith('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," "))}catch{}}function o(e,t,i){if(void 0!==t){if("number"==typeof(i={...i||{}}).expires){let e=i.expires,t=i.expires=new Date;t.setTime(+t+864e5*e)}return document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(String(t)),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":"",";samesite=Lax"].join("")}let s=e?void 0:{},n=document.cookie?document.cookie.split("; "):[];for(let t=0,i=n.length;t{"use strict";function s(e,t){let i=!1;try{document.queryCommandSupported("copy")&&(i=!0)}catch{}if(!i)return;let s=document.createRange();s.selectNode(t);let n=window.getSelection();n.removeAllRanges(),n.addRange(s);try{if(document.execCommand("copy"))return!0}catch{}return!1}i.r(t),i.d(t,{default:()=>s})},71072:(e,t,i)=>{"use strict";i.r(t),i.d(t,{hidePopover:()=>r,showPopover:()=>n});var s=i(16547);function n(){(0,s.default)("`showPopover` is deprecated. Use tooltip service instead.",{id:"discourse.show-popover"})}function r(){(0,s.default)("`hidePopover` is deprecated. Use tooltip service instead.",{id:"discourse.hide-popover"})}},72024:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(32361),n=i(63748),r=i(65573);class o{static from(e,t){let i=new this(t);for(let[t,s,n]of e)i.add(t,s,n);return i}#uV;#uH;#uz;#uW;#uK;#uG;#uY=(()=>new Map)();#uQ=(()=>new s.default)();constructor(e){this.#uV=e?.defaultPosition||{},this.#uG=e?.throwErrorOnCycle??!0,this.#uH=e?.onAddItem,this.#uz=e?.onDeleteItem,this.#uW=e?.onReplaceItem,this.#uK=e?.onRepositionItem}#uJ(e){let t={...this.#uV};return(0,r.makeArray)(t.before).includes(e)&&delete t.before,(0,r.makeArray)(t.after).includes(e)&&delete t.after,t}add(e,t,i){if(this.has(e))return!1;let{before:s,after:n}=i||=this.#uJ(e);return this.#uY.set(e,{value:t,before:s,after:n}),this.#uX(this.#uQ,e,t,s,n),this.#uH?.(e,t,i),!0}delete(e){let t=this.#uY.delete(e);return this.#uZ(),t&&this.#uz?.(e),t}replace(e,t,i){return this.#u1(e,t,i)}reposition(e,t){if(!this.has(e)||!t)return!1;let{value:i}=this.#uY.get(e);return this.#u1(e,i,t,{repositionOnly:!0})}has(e){return this.#uY.has(e)}entries(){return Array.from(this.#uY.entries()).map(e=>{let[t,{value:i,before:s,after:n}]=e;return[t,i,{before:s,after:n}]})}resolve(){let e=[];return this.#uQ.each((t,i)=>{if(this.has(t)){let{before:s,after:n}=this.#uY.get(t);e.push({key:t,value:i,position:{before:s,after:n}})}}),e}static #e=(()=>dt7948.n(this.prototype,"resolve",[n.bind]))();#uX(e,t,i,s,n){if(this.#uG)e.add(t,i,s,n);else try{e.add(t,i,s,n)}catch(s){if(s.message.match(/cycle/i)){let{before:s,after:n}=this.#uJ(t);e.add(t,i,s,n)}}}#u1(e,t,i){let{repositionOnly:s}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{repositionOnly:!1};if(!this.has(e))return!1;let n=this.#uY.get(e),r=n.value,o={before:n.before,after:n.after};return n.value=t,i&&(n.before=i.before,n.after=i.after),this.#uZ(),s?this.#uK?.(e,i,o):this.#uW?.(e,t,r,i,o),!0}#uZ(){let e=new s.default;for(let[t,{value:i,before:s,after:n}]of this.#uY)this.#uX(e,t,i,s,n);this.#uQ=e}}},46301:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(62053),n=i(77093);function r(){if(!(0,n.isTesting)())return(0,s.debounce)(...arguments);{let e=arguments[arguments.length-1],t="boolean"==typeof e,i=[].slice.call(arguments,0,t?-2:-1);return i.push(10),t&&i.push(e),s.debounce.apply(void 0,i)}}},42763:(e,t,i)=>{"use strict";function s(e,t,i){return void 0===i||0==+i?Math[e](t):(i*=1,isNaN(t*=1)||"number"!=typeof i||i%1!=0)?NaN:+((t=(t=Math[e](+((t=t.toString().split("e"))[0]+"e"+(t[1]?+t[1]-i:-i)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+i:i))}i.r(t),i.d(t,{default:()=>s})},56360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(93985);function n(e,t){return function(){for(var i=arguments.length,n=Array(i),r=0;r{"use strict";i.r(t),i.d(t,{afterRender:()=>_,alias:()=>S,and:()=>C,bind:()=>y,bool:()=>x,collect:()=>A,debounce:()=>w,default:()=>f,empty:()=>E,equal:()=>D,filter:()=>P,filterBy:()=>M,gt:()=>F,gte:()=>I,lt:()=>N,lte:()=>O,map:()=>L,mapBy:()=>R,match:()=>U,max:()=>j,min:()=>B,none:()=>$,not:()=>q,notEmpty:()=>V,observes:()=>T,on:()=>k,oneWay:()=>H,or:()=>z,readOnly:()=>b,reads:()=>W,setDiff:()=>K,sort:()=>G,sum:()=>Y,union:()=>Q,uniq:()=>J});var s=i(35533),n=i(30574),r=i(27138),o=i(15656),a=i(62053),l=i(42064),c=i(46301),u=i(56360),d=i(16547),p=i(93985),h=i(14580),m=i(73018),g=i(33297);function f(){for(var e=arguments.length,t=Array(e),i=0;i{if(!this.isDestroying&&!this.isDestroyed)return s.apply(this,arguments)})}}function y(e,t,i){return{configurable:!0,get(){let e=(0,a.bind)(this,i.value);return Object.defineProperty(this,t,{...i,value:e}),e}}}function b(e,t,i){return{writable:!1,enumerable:i.enumerable,configurable:i.configurable,initializer:()=>(0,p.default)(i).readOnly()}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,s,n){return{enumerable:n.enumerable,configurable:n.configurable,get:function(){var i=this;let r=n.value,o=function(){for(var s=arguments.length,n=Array(s),o=0;o{"use strict";let s;i.r(t),i.d(t,{default:()=>a,registerDeprecationHandler:()=>l,withSilencedDeprecations:()=>c,withSilencedDeprecationsAsync:()=>u});var n=i(58210);let r=[],o=new Set;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{id:i,since:s,dropFrom:a,url:l,raiseError:c}=t;if(i&&o.has(i))return;e=["Deprecation notice:",e],s&&e.push(`[deprecated since Discourse ${s}]`),a&&e.push(`[removal in Discourse ${a}]`),i&&e.push(`[deprecation id: ${i}]`),l&&e.push(`[info: ${l}]`),e=e.join(" ");let u="";window.require.has("discourse/lib/source-identifier")&&(u=window.require("discourse/lib/source-identifier").consolePrefix()||""),r.forEach(i=>i(e,t));let d=n.default.find(e=>e.matchId===i);if(c||d?.handler==="throw"||!d&&globalThis.EmberENV?.RAISE_ON_DEPRECATION)throw e;d?.handler!=="silence"&&console.warn(...[u,e].filter(Boolean))}function l(e){r.push(e)}function c(e,t){d();let i=[].concat(e);try{i.forEach(e=>o.add(e));let e=t();if(e instanceof Promise)throw Error("withSilencedDeprecations callback returned a promise. Use withSilencedDeprecationsAsync instead.");return e}finally{i.forEach(e=>o.delete(e))}}async function u(e,t){d();let i=[].concat(e);try{return i.forEach(e=>o.add(e)),await t()}finally{i.forEach(e=>o.delete(e))}}function d(){!s&&(s=(e,t,i)=>{t?.id&&o.has(t.id)||i(e,t)},window.require.has("@ember/debug")&&window.require("@ember/debug").registerDeprecationHandler(s))}},89801:(e,t,i)=>{"use strict";i.r(t),i.d(t,{alertChannel:()=>x,canUserReceiveNotifications:()=>S,clearDesktopNotificationHandlers:()=>w,confirmNotification:()=>T,context:()=>f,disable:()=>E,init:()=>k,onNotification:()=>C,registerDesktopNotificationHandler:()=>b,unsubscribe:()=>A});var s=i(24571),n=i(78255),r=i(53306),o=i(87353),a=i(42236),l=i(93536),c=i(59864),u=i(843);let d=!1,p=!1,h=null,m="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",g="focus-tracker",f="discourse_desktop_notifications_",_=new n.default(f),y=[];function b(e){y.push(e)}function w(){y=[]}function k(e){if(p=!1,m=e.clientId,c.default.current()){try{_.getItem(g)}catch{console.info("Discourse desktop notifications are disabled - localStorage denied.");return}if(!("Notification"in window)){console.info("Discourse desktop notifications are disabled - not supported by browser");return}try{if("granted"===Notification.permission)h=!0;else if("denied"===Notification.permission){h=!1;return}}catch(e){console.warn("Notification is defined on window but is not responding correctly "+e)}p=!0;try{!function(){window.addEventListener("storage",function(e){if(e.key!==`${f}${g}`)return!0;d=!1}),window.addEventListener("focus",function(){d||(d=!0,_.setItem(g,m))}),document&&void 0!==document.hidden&&document.hidden?d=!1:(d=!0,_.setItem(g,m))}()}catch(e){console.error(e)}}}function T(e){let t=new Notification((0,u.i18n)("notifications.popup.confirm_title",{site_title:e.title}),{body:(0,u.i18n)("notifications.popup.confirm_body"),icon:e.site_logo_small_url||e.site_logo_url,tag:"confirm-subscription"}),i=()=>t.close();t.addEventListener("click",i),(0,r.default)(()=>{t.close(),t.removeEventListener("click",i)},1e4)}function S(e){return!(!d||e.isInDoNotDisturb())&&"disabled"!==_.getItem("notifications-disabled")}async function C(e,t,i,n){if(S(i)&&p){let i=e.translated_title||(0,u.i18n)(function(e){return"notifications.popup."+l.default.current().get("notificationLookup")[e]}(e.notification_type),{site_title:t.title,topic:e.topic_title,username:(0,a.formatUsername)(e.username),group_name:e.group_name}),r=t.site_logo_small_url||t.site_logo_url,c="discourse-notification-"+t.title+"-"+(e.topic_id||0);await function(){return!0===h?s.Promise.resolve():!1===h?s.Promise.reject():new s.Promise(function(e,t){Notification.requestPermission(function(i){"granted"===i?e():t()})})}();let d=new Notification(i,{body:e.excerpt,icon:r,tag:c});d.addEventListener("click",()=>{o.default.routeTo(e.post_url),n.trigger("desktop-notification-opened",{url:e.post_url}),d.close()},{once:!0})}y.forEach(s=>s(e,t,i))}function x(e){return`/notification-alert/${e.get("id")}`}function A(e,t){e.unsubscribe(x(t))}function E(){_.setItem("notifications-disabled","disabled")}},14433:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{constructor(e){this.name=e,this._keys={}}keyDirty(e,t){(t=t||{}).dirty=!0,this._keys[e]=t}forceAll(){this.keyDirty("*")}allDirty(){return!!this._keys["*"]}optionsFor(e){return this._keys[e]||{dirty:!1}}renderedKey(e){"*"===e?this._keys={}:delete this._keys[e]}}},99291:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(16547);let n=/^discourse\/plugins\/([^\/]+)\/(.*)$/,r=/^discourse\/theme-([^\/]+)\/(.*)$/,o=["discourse/","admin/"];class a{coreTemplates=(()=>new Map)();pluginTemplates=(()=>new Map)();themeTemplates=(()=>new Map)();prioritizedCaches=[this.themeTemplates,this.pluginTemplates,this.coreTemplates];setModuleNames(e){for(let t of(this.coreTemplates.clear(),this.pluginTemplates.clear(),this.themeTemplates.clear(),e))(function(e){for(let t of o)if(e.startsWith(t))return!0;return!1})(t)&&function(e){return e.includes("/templates/")}(t)&&this.#u0(t)}#u0(e){let t,i,s,o=e;(t=o.match(n))?(o=t[2],s=this.pluginTemplates):(i=o.match(r))?(o=i[2],s=this.themeTemplates):s=this.coreTemplates,function(e,t,i){let s=e.get(t);(s??=[]).push(i),e.set(t,s)}(s,o=o.replace(/^discourse\/templates\//,""),e)}resolve(e){let[t,i,n]=this.prioritizedCaches.map(t=>{let i=t.get(e);if(i)return i[i.length-1]});return(t||i)&&n&&(0,s.default)(`[${t||i}] Overriding templates is deprecated, and will soon be disabled. Use plugin outlets, CSS, or other customization APIs instead.`,{id:"discourse.resolver-template-overrides",url:"https://meta.discourse.org/t/247487"}),t||i||n}keys(){return[...new Set([...this.coreTemplates.keys(),...this.pluginTemplates.keys(),...this.themeTemplates.keys()])]}}let l=new a},8249:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{static forever="3000-01-01T00:00:00.000Z";static isEternal(e){return moment.utc(e).isSame(s.forever,"day")}}},45067:(e,t,i)=>{"use strict";function s(e){let t=document.createElement("template");return e=e.trim(),t.innerHTML=e,t.content.children}i.r(t),i.d(t,{default:()=>s})},48276:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={offset:function(e){let t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}}},91365:(e,t,i)=>{"use strict";i.r(t),i.d(t,{downloadCalendar:()=>a,downloadGoogle:()=>c,downloadIcs:()=>l,formatDates:()=>u,generateIcsData:()=>d});var s=i(86966),n=i(99434),r=i(94636),o=i(59864);function a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o.default.current(),a=u(t);switch(e=e.trim(),r?.user_option.default_calendar){case"ics":l(e,a,i);break;case"google":c(e,a,i);break;default:!function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,n.getOwnerWithFallback)(this).lookup("service:modal").show(s.default,{model:{calendar:{title:e,dates:t,recurrenceRule:i.recurrenceRule,location:i.location,details:i.details}}})}(e,a,i)}}function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=new File([d(e,t,i)],{type:"text/plain"}),n=document.createElement("a");document.body.appendChild(n),n.style="display: none",n.href=window.URL.createObjectURL(s),n.download=`${e.toLowerCase().replace(/[^\w]/g,"-")}.ics`,n.click(),setTimeout(()=>window.URL.revokeObjectURL(s),2e4)}function c(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.forEach(t=>{let s=new URL("https://www.google.com/calendar/event");s.searchParams.append("action","TEMPLATE"),s.searchParams.append("text",e),s.searchParams.append("dates",`${p(t.startsAt)}/${p(t.endsAt)}`),i.recurrenceRule&&s.searchParams.append("recur",`RRULE:${i.recurrenceRule}`),i.location&&s.searchParams.append("location",i.location),i.details&&s.searchParams.append("details",i.details),window.open((0,r.default)(s.href).trim(),"_blank","noopener","noreferrer")})}function u(e){return e.map(e=>({startsAt:e.startsAt,endsAt:e.endsAt?e.endsAt:moment.utc(e.startsAt).add(1,"hours").format()}))}function d(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Discourse//EN\n";return t.forEach(t=>{let n=moment(t.startsAt),r=moment(t.endsAt);s=s.concat(`BEGIN:VEVENT UID:${n.utc().format("x")}_${r.format("x")} DTSTAMP:${moment().utc().format("YMMDDTHHmmss")}Z DTSTART:${n.utc().format("YMMDDTHHmmss")}Z DTEND:${r.utc().format("YMMDDTHHmmss")}Z `+(i.recurrenceRule?`RRULE:${i.recurrenceRule} `:"")+(i.location?`LOCATION:${i.location} `:"")+(i.details?`DESCRIPTION:${i.details} `:"")+`SUMMARY:${e} `+"END:VEVENT\n")}),s=s.concat("END:VCALENDAR")}function p(e){return moment(e).toISOString().replace(/-|:|\.\d\d\d/g,"")}},13280:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(17773);let n={imap:{imap_server:"imap.gmail.com",imap_port:"993",imap_ssl:!0},smtp:{smtp_server:"smtp.gmail.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}},r={smtp:{smtp_server:"smtp-mail.outlook.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}},o={smtp:{smtp_server:"smtp.office365.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}};function a(e,t){switch(e=e.toLowerCase(),t=t.toLowerCase(),e){case"gmail":return n[t];case"office365":return o[t];case"outlook":return r[t]}}},32054:(e,t,i)=>{"use strict";i.r(t),i.d(t,{actionModifier:()=>s,isSimpleClick:()=>n});let s=(0,i(68587).modifier)((e,t,i)=>{let[s,a,...l]=t,{on:c,bubbles:u,preventDefault:d,allowedKeys:p}=i,h=e=>{let t;if("string"==typeof a?t=s.actions?.[a]??s[a]:"function"==typeof a&&(t=a),void 0===t)throw Error("Unexpected callback for `action` modifier. Please provide either a function or the name of a method on the current context.");return!function(e,t){if(null==t){if(o.test(e.type))return n(e);t=""}if(t.indexOf("any")>=0)return!0;for(let i=0;i0)?t.call(s,...l):t.call(s,e))},m=c??"click";return e.addEventListener(m,h),()=>{e.removeEventListener(m,h)}},{eager:!1});function n(e){if(!(e instanceof MouseEvent))return!1;let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,i=e.which>1;return!t&&!i}let r=["alt","shift","meta","ctrl"],o=/^click|mouse|touch/},36009:(e,t,i)=>{"use strict";i.r(t),i.d(t,{normalizeEmberEventHandling:()=>a});var s=i(97060),n=i(53653),r=i(35533),o=i(32054);function a(e){(function(){s.EventDispatcher.reopen({events:{}})})(),function(e){let t={...l};if(e.customEvents)for(let[i,s]of Object.entries(e.customEvents))t[i]=s;let i={};for(let[e,s]of Object.entries(t))i[s]=e;r.default.reopen.call(n.default,{_trigger(e){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n{let i=e.trigger.call(e,u,n,t);return!1===i&&(t.preventDefault(),t.stopPropagation()),i};s.addEventListener(r,o),i.push({event:r,listener:o})}}(this,i)},willDestroyElement(){(function(e){let t=c.get(e);if(t?.length>0){let{element:i}=e;if(i)for(let{event:e,listener:s}of t)i.removeEventListener(e,s);c.delete(e)}})(this),this._super(...arguments)}})}(e),e.instanceInitializer({name:"rewire-action-modifier",initialize:e=>(function(e){let t=e.lookup("renderer:-dom"),i=t._runtimeResolver.lookupModifier;t._runtimeResolver.lookupModifier=(e,t)=>"action"===e?o.actionModifier:i(e,t)})(e)})}let l={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"},c=new WeakMap,u=Symbol("INTERNAL")},60534:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EMBER_MAJOR_VERSION:()=>s});let s=parseInt(i(36617).default.split(".")[0],10)},77093:(e,t,i)=>{"use strict";i.r(t),i.d(t,{INPUT_DELAY:()=>n,isDevelopment:()=>u,isLegacyEmber:()=>c,isProduction:()=>d,isRailsTesting:()=>l,isTesting:()=>a,setEnvironment:()=>o});var s=i(16547);let n=250,r="unknown";function o(e){r=a()?"testing":e}function a(){return"qunit-testing"===r}function l(){return"test"===r}function c(){return(0,s.default)("`isLegacyEmber()` is now deprecated and always returns false",{id:"discourse.is-legacy-ember",dropFrom:"3.0.0.beta1"}),!1}function u(){return"development"===r}function d(){return"production"===r}},19587:(e,t,i)=>{"use strict";function s(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i.r(t),i.d(t,{default:()=>s})},84457:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});let s={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n=/[&<>"'`]/g,r=/[&<>"'`]/;function o(e){return s[e]}function a(e){return null===e?"":e?(e=""+e,r.test(e))?e.replace(n,o):e:e+""}},27213:(e,t,i)=>{"use strict";i.r(t),i.d(t,{exportEntity:()=>c,exportUserArchive:()=>l});var s=i(6864),n=i(88355),r=i(99434),o=i(843);function a(e,t,i){return(0,s.ajax)("/export_csv/export_entity.json",{type:"POST",data:{entity:t,args:i}})}function l(){let e=(0,r.getOwnerWithFallback)(this).lookup("service:dialog");return a("user","user_archive").then(function(){e.alert((0,o.i18n)("user.download_archive.success"))}).catch(n.popupAjaxError)}function c(e,t){return a("admin",e,t)}},6808:(e,t,i)=>{"use strict";i.r(t),i.d(t,{outputExportResult:()=>r});var s=i(99434),n=i(843);function r(e){let t=(0,s.getOwnerWithFallback)(this).lookup("service:dialog");e.success?t.alert((0,n.i18n)("admin.export_csv.success")):t.alert((0,n.i18n)("admin.export_csv.failed"))}},93985:(e,t,i)=>{"use strict";function s(e){return e.value||"function"==typeof e.initializer&&e.initializer()}i.r(t),i.d(t,{default:()=>s})},21391:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{configureEyeline:()=>u,default:()=>d});var r=i(35533),o=i(15656),a=i(25124),l=i.n(a),c=i(77093);function u(e){e?(s=e.skipUpdate,n=e.rootElement):(s=(0,c.isTesting)(),n=null)}u();class d extends r.default.extend(o.default){update(){if(s)return;let e=n?l()(n).scrollTop():l()(window).scrollTop(),t=e+(n?l()(n).height():l()(window).height()),i=l()(this.selector),r=n?i.last().position():i.last().offset(),o=r&&r.top<=t&&r.top>=e;return i.each((s,r)=>{let a=l()(r),c=n?a.position().top:a.offset().top,u=c+a.height(),d=!1;return!a.is(":visible")||(c<=t&&c>=e&&(d=!0),c<=e&&u>=t&&(d=!0),o&&u>=e&&(d=!0),!d||!!o&&(s===i.length-1?this.trigger("sawBottom",{detail:a}):void 0))})}}},93946:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u,incrementSequence:()=>c});var s=i(83225),n=i(31049),r=i(83133),o=i(87198),a=i(50409);let l=1;function c(){return l++}class u{static #e=(()=>dt7948.g(this.prototype,"store",[r.service]))();#f=(()=>void dt7948.i(this,"store"))();constructor(e){if(e&&!(e instanceof s.default))throw Error("First argument of CoreFabricators constructor must be the owning ApplicationInstance");(0,n.setOwner)(this,e)}post(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("post",{id:e.id||c(),topic:e.topic||this.topic()})}tag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("tag",{id:e.id||c(),name:e.name??(0,o.getLoadedFaker)().faker.word.noun(),description:e.description??(0,o.getLoadedFaker)().faker.lorem.sentence(),count:e.count??0,pm_count:e.pm_count??0})}topic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id||c();return this.store.createRecord("topic",{id:t,created_at:e.created_at||moment().subtract(2,"day"),updated_at:e.updated_at||moment().subtract(1,"day"),slug:e.slug||(0,o.getLoadedFaker)().faker.lorem.slug(),title:e.title||(0,o.getLoadedFaker)().faker.commerce.productName(),tags:e.tags||[],category:e.category,image_url:e.image_url??"/images/bubbles-bg.png",excerpt:e.excerpt??(0,a.excerpt)((0,o.getLoadedFaker)().faker.lorem.sentences(5),100)})}category(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name||(0,o.getLoadedFaker)().faker.commerce.product();return this.store.createRecord("category",{id:e.id||c(),color:e.color||(0,o.getLoadedFaker)().faker.color.rgb({prefix:""}),read_restricted:e.read_restricted??!1,name:t,slug:e.slug||t.toLowerCase()})}user(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("user",{id:e.id||c(),username:e.username||(0,o.getLoadedFaker)().faker.internet.domainWord(),name:e.name,avatar_template:"/letter_avatar_proxy/v3/letter/t/41988e/{size}.png",suspended_till:e.suspended_till,can_send_private_message_to_user:e.can_send_private_message_to_user??!0})}bookmark(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("bookmark",{id:e.id||c()})}group(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("group",{name:e.name||(0,o.getLoadedFaker)().faker.word.noun()})}webhook(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("web-hook",e)}upload(){return{extension:"jpeg",filesize:126177,height:800,human_filesize:"123 KB",id:c(),original_filename:"avatar.PNG.jpg",retain_hours:null,short_path:"/images/avatar.png",short_url:"upload://yoj8pf9DdIeHRRULyw7i57GAYdz.jpeg",thumbnail_height:320,thumbnail_width:690,url:"/images/avatar.png",width:1920}}}},58302:(e,t,i)=>{"use strict";i.r(t),i.d(t,{calculateFilterMode:()=>n,filterTypeForMode:()=>r});var s=i(1559);function n(e){let{category:t,filterType:i,noSubcategories:n}=e;return t?`c/${s.default.slugFor(t)}${n?"/none":""}/l/${i}`:i}function r(e){return e?.split("/").pop()}},90336:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(88355);class n{targetsTopic(){return!1}editable(){return!0}create(e,t){let i=this.postActionFor(e);e.appEvents.trigger(this.flagCreatedEvent(),e.args.model.flagModel,i,t),e.args.closeModal(),i.act(e.args.model.flagModel,t).then(()=>{e.appEvents.trigger("post-stream:refresh",{id:e.args.model.flagModel.id})}).catch(e=>(0,s.popupAjaxError)(e))}}},6347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(90336);class n extends s.default{title(){return"flagging.title"}customSubmitLabel(){return"flagging.notify_action"}submitLabel(){return"flagging.action"}flagCreatedEvent(){return"post:flag-created"}flagsAvailable(e){let t=e.args.model.flagModel.flagsAvailable,i=(t=t.filter(e=>e.applies_to.includes("Post"))).indexOf(t.filterBy("name_key","notify_user")[0]);if(-1!==i){let e=t[i];t.splice(i,1),t.splice(0,0,e)}return t}postActionFor(e){return e.args.model.flagModel.actions_summary.findBy("id",e.selected.id)}}},80018:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(35533),n=i(90336),r=i(41936);class o extends n.default{title(){return"flagging_topic.title"}targetsTopic(){return!0}customSubmitLabel(){return"flagging_topic.notify_action"}submitLabel(){return"flagging_topic.action"}flagCreatedEvent(){return"topic:flag-created"}flagsAvailable(e){let t=s.default.create();return e.args.model.flagModel.actions_summary.forEach(i=>{i.flagTopic=e.args.model.flagModel,i.actionType=e.site.topicFlagTypeById(i.id),t.set(i.actionType.name_key,r.default.create(i))}),e.topicActionByName=t,e.site.topic_flag_types.filter(t=>e.args.model.flagModel.actions_summary.some(e=>e.id===t.id&&e.can_act))}postActionFor(e){return e.topicActionByName[e.selected.name_key]}}},27943:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r,getFormTemplateObject:()=>n});var s=i(843);function n(e){let t=new FormData(e),i={};return t.forEach((e,t)=>{i[t]=e}),i}function r(e,t){let i=t.reduce((e,t)=>(e[t.id]=t.attributes.label,e),{}),n=new FormData(e);if(function(e){Array.from(e.elements).forEach(e=>{e.setAttribute("aria-invalid",!1);let t=document.createElement("div");t.classList.add("form-template-field__error","popup-tip");let i=e.id+"-error";e.addEventListener("invalid",()=>{e.setAttribute("aria-invalid",!0),t.classList.add("bad"),t.setAttribute("id",i),e.setAttribute("aria-describedby",i),e.nextElementSibling||e.insertAdjacentElement("afterend",t),function(e,t){e.validity.valueMissing?o(t,e,"form_templates.errors.value_missing",["select-one","select-multiple","checkbox"],{"select-one":"select_one","select-multiple":"select_multiple"}):e.validity.typeMismatch?o(t,e,"form_templates.errors.type_mismatch",["color","date","email","number","password","tel","text","url"]):e.validity.tooShort?t.textContent=(0,s.i18n)("form_templates.errors.too_short",{count:e.minLength}):e.validity.tooLong?t.textContent=(0,s.i18n)("form_templates.errors.too_long",{count:e.maxLength}):e.validity.rangeOverflow?t.textContent=(0,s.i18n)("form_templates.errors.range_overflow",{count:e.max}):e.validity.rangeUnderflow?t.textContent=(0,s.i18n)("form_templates.errors.range_underflow",{count:e.min}):e.validity.patternMismatch?t.textContent=(0,s.i18n)("form_templates.errors.pattern_mismatch"):e.validity.badInput&&(t.textContent=(0,s.i18n)("form_templates.errors.bad_input"))}(e,t)}),e.addEventListener("input",()=>{e.checkValidity()&&(e.setAttribute("aria-invalid",!1),t.classList.remove("bad"),t.textContent="")}),e.addEventListener("blur",()=>{e.checkValidity()})})}(e),!e.checkValidity())return!1;let r=[];for(let[e,t]of n.entries())r.push({[e]:t});let a=[],l=new Set;for(let e of r){let t=Object.keys(e)[0];l.has(t)?a[a.length-1][t]+="\n"+e[t]:(a.push(e),l.add(t))}return a.map(e=>{let t=Object.keys(e)[0],s=e[t];if(s)return`### ${i[t]} ${s}`}).join("\n\n")}function o(e,t,i,n,r){n.includes(t.type)?n.forEach(n=>{t.type===n&&(e.textContent=(0,s.i18n)(`${i}.${r&&r[n]?r[n]:n}`))}):e.textContent=(0,s.i18n)(`${i}.default`)}},17206:(e,t,i)=>{"use strict";i.r(t),i.d(t,{autoUpdatingRelativeAge:()=>f,duration:()=>b,durationTiny:()=>w,ensureJSON:()=>x,longDate:()=>h,longDateNoYear:()=>m,number:()=>C,plainJSON:()=>A,prettyJSON:()=>E,relativeAge:()=>S,relativeAgeMediumSpan:()=>k,shortDate:()=>l,shortDateNoYear:()=>c,smartShortDate:()=>u,tinyDateYear:()=>d,toTitleCase:()=>p,until:()=>_,updateRelativeAge:()=>g});var s=i(25124),n=i.n(s),r=i(16547),o=i(65573),a=i(843);function l(e){return moment(e).format((0,a.i18n)("dates.medium.date_year"))}function c(e){return moment(e).format((0,a.i18n)("dates.tiny.date_month"))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return e.getFullYear()===new Date().getFullYear()?c(e):t(e)}function d(e){return moment(e).format((0,a.i18n)("dates.tiny.date_year"))}function p(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})}function h(e){if(e)return moment(e).format((0,a.i18n)("dates.long_with_year"))}function m(e){return e?new Date().getFullYear()!==e.getFullYear()?moment(e).format((0,a.i18n)("dates.long_date_with_year")):moment(e).format((0,a.i18n)("dates.long_date_without_year")):void 0}function g(e){e instanceof n()&&(e=e.toArray(),(0,r.default)("updateRelativeAge now expects a DOM NodeList",{since:"2.8.0.beta7",dropFrom:"2.9.0.beta1",id:"discourse.formatter.update-relative-age-node-list"})),NodeList.prototype.isPrototypeOf(e)||(e=(0,o.makeArray)(e)),e.forEach(e=>{e.innerHTML=S(new Date(parseInt(e.dataset.time,10)),{format:e.dataset.format,wrapInSpan:!1})})}function f(e,t){if(!e||+e==+new Date(0))return"";let i=(t=t||{}).format||"tiny",s="";"medium"===i&&(s=" date",t.leaveAgo&&(i="medium-with-ago"),t.wrapInSpan=!1);let n=S(e,t);"tiny"===i&&function(e){return e.match(/'[\d]{2}$/)}(n)&&(s+=" with-year"),t.customTitle?s+="' title='"+t.customTitle:t.title&&(s+="' title='"+h(e));let r="";return t.prefix&&(r=t.prefix+" "),""+r+n+""}function _(e,t,i){let s;let n=moment.tz(e,t);if(moment.tz(t).isSame(n,"day")){let e=moment.localeData(i);s=n.format(e.longDateFormat("LT"))}else s=n.format((0,a.i18n)("dates.long_no_year_no_time"));return`${(0,a.i18n)("until")} ${s}`}function y(e){return(0,a.i18n)("dates.wrap_ago",{date:e})}function b(e,t){let i;if("number"!=typeof e)return"—";let s=Math.round(e/60),n=s<1?1:s,r=function(e,i){let s=t&&t.format||"tiny",n=(0,a.i18n)("dates."+s+"."+e,i);return t&&t.addAgo?y(n):n};switch(!0){case e<=59:i=r("less_than_x_minutes",{count:1});break;case n>=0&&n<=44:i=r("x_minutes",{count:n});break;case n>=45&&n<=89:i=r("about_x_hours",{count:1});break;case n>=90&&n<=1409:i=r("about_x_hours",{count:Math.round(n/60)});break;case n>=1410&&n<=2519:i=r("x_days",{count:1});break;case n>=2520&&n<=129599:i=r("x_days",{count:Math.round(n/1440)});break;case n>=129600&&n<=525599:i=r("x_months",{count:Math.round(n/43200)});break;default:let o=n/525600,l=o%1;i=l<.25?r("about_x_years",{count:Math.floor(o)}):l<.75?r("over_x_years",{count:Math.floor(o)}):r("almost_x_years",{count:Math.floor(o)+1})}return i}function w(e,t){return b(e,{format:"tiny",...t})}function k(e,t){let i;let s=Math.round(e/60),n=function(e,i){return(0,a.i18n)("dates.medium"+(t?"_with_ago":"")+"."+e,i)};switch(!0){case s>=1&&s<=55:i=n("x_minutes",{count:s});break;case s>=56&&s<=89:i=n("x_hours",{count:1});break;case s>=90&&s<=1409:i=n("x_hours",{count:Math.round(s/60)});break;case s>=1410&&s<=2519:i=n("x_days",{count:1});break;case s>=2520&&s<=129599:i=n("x_days",{count:Math.round((s-720)/1440)});break;case s>=129600&&s<=525599:i=n("x_months",{count:Math.round(s/43200)});break;default:i=n("x_years",{count:Math.round(s/525600)})}return i||"—"}function T(e,t){let i=!1!==t.wrapInSpan,s=t.leaveAgo,n=Math.round((new Date-e)/1e3);if(!e)return"—";let r=h(e),o="";return(n<60?o=(0,a.i18n)("now"):n>432e3?(o=u(e,l),t.wrapOn&&(o=function(e){return(0,a.i18n)("dates.wrap_on",{date:e})}(o))):o=k(n,s),i)?""+o+"":o}function S(e,t){let i=(t=t||{}).format||"tiny";return"tiny"===i?function(e,t){let i;let s=Math.round((new Date-e)/1e3);s<0&&(s=Math.round((e-new Date)/1e3));let n=Math.round(s/60),r=n<1?1:n,l=function(e,i){let s=(0,a.i18n)("dates.tiny."+e,i);return t&&t.addAgo?y(s):s},d=(0,o.helperContext)().siteSettings;switch(!0){case r>=0&&r<=44:i=l("x_minutes",{count:r});break;case r>=45&&r<=89:i=l("about_x_hours",{count:1});break;case r>=90&&r<=1409:i=l("about_x_hours",{count:Math.round(r/60)});break;case 0===d.relative_date_duration&&r<=525599:i=c(e);break;case r>=1410&&r<=2519:i=l("x_days",{count:1});break;case r>=2520&&r<=1440*(d.relative_date_duration||14):i=l("x_days",{count:Math.round(r/1440)});break;default:i=(t.defaultFormat||u)(e)}return i}(e,t):"medium"===i?T(e,t):"medium-with-ago"===i?T(e,Object.assign(t,{format:"medium",leaveAgo:!0})):"medium-with-ago-and-on"===i?T(e,Object.assign(t,{format:"medium",leaveAgo:!0,wrapOn:!0})):"UNKNOWN FORMAT"}function C(e){let t;return(isNaN(e=Math.round(parseFloat(e)))&&(e=0),e>999999)?(t=a.default.toNumber(e/1e6,{precision:1}),(0,a.i18n)("number.short.millions",{number:t})):e>99999?(t=a.default.toNumber(Math.floor(e/1e3),{precision:0}),(0,a.i18n)("number.short.thousands",{number:t})):e>999?(t=a.default.toNumber(e/1e3,{precision:1}),(0,a.i18n)("number.short.thousands",{number:t})):e.toString()}function x(e){return"string"==typeof e?JSON.parse(e):e}function A(e){let t=x(e),i="";return Object.keys(t).forEach(e=>{i+=`${e}: ${t[e]} `}),i}function E(e){return JSON.stringify(x(e),null,2)}},99434:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getOwner:()=>a,getOwnerWithFallback:()=>o,getRegister:()=>c,setDefaultOwner:()=>l});var s=i(31049),n=i(16547);let r={};function o(e){return s.getOwner?(0,s.getOwner)(e||r)||(0,s.getOwner)(r):e.container}function a(e){return(0,n.default)("Importing getOwner from `discourse/lib/get-owner` is deprecated. See the alternatives on meta.",{since:"3.2",id:"discourse.get-owner-with-fallback",url:"https://meta.discourse.org/t/292080"}),o(e)}function l(e){(0,s.setOwner)(r,e)}function c(e){let t=o(e),i={lookup:function(){return t.lookup(...arguments)},lookupFactory:function(){return t.factoryFor?t.factoryFor(...arguments):t._lookupFactory?t._lookupFactory(...arguments):void 0},deprecateContainer(e){Object.defineProperty(e,"container",{get:()=>((0,n.default)("Use `this.register` or `getOwner` instead of `this.container`",{id:"discourse.this-container"}),i)})}};return(0,s.setOwner)(i,t),i}},94636:(e,t,i)=>{"use strict";let s,n,r,o,a,l,c;function u(e){return(void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||""),e)?"/"!==e&&!/^\/[^\/]/.test(e)||o.test(e)?e:("/"!==e[0]&&(e="/"+e),r+e):"/"===r?"":r}function d(e){return e=u(e),s&&/^\/[^\/]/.test(e)?e=s+e:l&&e.startsWith(a)&&(e=e.replace(a,l)),e}function p(e){return n+m(e)}function h(e){return e.startsWith(n)}function m(e){return r?e.replace(o,"$1"):e}function g(e){r=e,o=RegExp(`^${r}(/|$)`)}function f(e,t,i,a){a=a||{},s=e,n=t,g(i),a?.snapshot&&(c={cdn:s,baseUri:r,baseUrl:n,configBaseUrl:t,baseUriMatcher:o})}function _(){c&&(s=c.cdn,r=c.baseUri,n=c.baseUrl,o=c.baseUriMatcher,a=c.S3BaseUrl,l=c.S3CDN)}function y(e,t,i){a=e,l=t,i?.snapshot&&((c=c||{}).S3BaseUrl=a,c.S3CDN=l)}function b(e){void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||"");let t=window.location.origin,i="/"===e[0]?r||"/":t+r||t;return e.startsWith(i)}i.r(t),i.d(t,{default:()=>u,getAbsoluteURL:()=>p,getURLWithCDN:()=>d,isAbsoluteURL:()=>h,restoreBaseUri:()=>_,samePrefix:()=>b,setPrefix:()=>g,setupS3CDN:()=>y,setupURL:()=>f,withoutPrefix:()=>m})},43380:(e,t,i)=>{"use strict";i.r(t),i.d(t,{grantableBadges:()=>n,isBadgeGrantable:()=>r});var s=i(51429);function n(e,t){let i=t.reduce((e,t)=>(e[t.get("badge_id")]=!0,e),{});return e.filter(e=>e.get("enabled")&&e.get("manually_grantable")&&(!i[e.get("id")]||e.get("multiple_grant"))).map(e=>(e.get("icon")&&e.set("icon",(0,s.convertIconClass)(e.icon)),e)).sort((e,t)=>e.get("name").localeCompare(t.get("name")))}function r(e,t){return!!(t&&t.some(t=>t.get("id")===e))}},14580:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(35533),n=i(27138),r=i(93985);function o(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],c=(0,r.default)(i);return"function"==typeof c&&e instanceof n.default?(i.writable=!1,i.initializer=void 0,i.value=void 0,i.get=l(o,c),(0,s.computed)(...o)(e,t,i)):{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,initializer(){let e;if(i.writable){if("object"==typeof c){let t={};c.get&&(t.get=l(o,c.get)),c.set&&(t.set=function(e,t){return e=e.map(a),function(i,n){let r=e.map(e=>(0,s.get)(this,e));return r.unshift(n),t.apply(this,r)}}(o,c.set)),e=t}else e=l(o,c)}else throw Error("ember-computed-decorators does not support using getters and setters");return s.computed.apply(null,o.concat(e))}}}function a(e){let t;let i=e.split(".");for(t=0;t(0,s.get)(this,e));return t.apply(this,i)}}},43410:(e,t,i)=>{"use strict";function s(e){let t=0;for(let i=0;is})},41089:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{hashtagAutocompleteOptions:()=>y,hashtagTriggerRule:()=>_,setupHashtagAutocomplete:()=>f});var r=i(62053),o=i(42256),a=i(6864),l=i(37054),c=i(46301),u=i(77093),d=i(93301),p=i(53306),h=i(47716),m=i(50409),g=i(42236);function f(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t.autocomplete(y(e,i,s))}async function _(e,t){let{inCodeBlock:i}=t;return!await i()}function y(e,t,i){return{template:(0,h.findRawTemplate)("hashtag-autocomplete"),key:"#",scrollElementSelector:".hashtag-autocomplete__fadeout",autoSelectFirstSuggestion:!0,transformComplete:e=>e.ref,dataSource:t=>t.match(/\s/)?null:function(e,t,i){return n&&(n.abort(),n=null),new Date-s>3e4&&(b={}),b[e]||new Promise(t=>{let n=(0,u.isTesting)()?null:(0,p.default)(()=>{t(l.CANCELLED_STATUS)},5e3);((e,t,i)=>{(0,c.default)(this,w,e,t,i,u.INPUT_DELAY)})(e,i,i=>{(0,r.cancel)(n),t(function(e,t){return b[e]=t,s=new Date,t}(e,i))})})}(t,0,e),triggerRule:async(e,t)=>await _(e,t),...i}}let b={};function w(e,t,i){return(n=(0,a.ajax)("/hashtags/search.json",{data:{term:e,order:t}})).then(e=>{e.results?.forEach(e=>{e.text=o.htmlSafe(m.emojiUnescape(g.escapeExpression(e.text)));let t=d.getHashtagTypeClasses()[e.type];e.icon=t.generateIconHTML({preloaded:!0,colors:e.colors,icon:e.icon,id:e.id})}),i(e.results||l.CANCELLED_STATUS)}).finally(()=>{n=null}),n}},36712:(e,t,i)=>{"use strict";i.r(t),i.d(t,{decorateHashtags:()=>p,fetchUnseenHashtagsInContext:()=>c,generatePlaceholderHashtagHTML:()=>d,linkSeenHashtagsInContext:()=>u});var s=i(6864),n=i(45067),r=i(93301),o=i(50409);let a=new Set,l={};function c(e,t){return(0,s.ajax)("/hashtags",{data:{slugs:t,order:e}}).then(e=>{Object.keys(e).forEach(t=>{l[t]=l[t]||{},e[t].forEach(e=>{l[t][e.ref]=l[t][e.ref]||e})}),t.forEach(a.add,a)})}function u(e,t){let i=[...t?.querySelectorAll("span.hashtag-raw")||[]];if(0===i.length)return[];let s=[...i.map(e=>e.innerText.replace("#",""))];return i.forEach((t,i)=>{(function(e,t,i){t.forEach(t=>{let s=l[t]?.[e];s&&d(t,i,{preloaded:!0,...s})})})(s[i],e,t)}),s.map(e=>e.toLowerCase()).uniq().filter(e=>!a.has(e))}function d(e,t,i){let s=document.createElement("a");s.classList.add("hashtag-cooked"),s.href=i.relative_url,s.dataset.type=e,s.dataset.id=i.id,s.dataset.slug=i.slug;let n=new r.getHashtagTypeClasses()[e];s.innerHTML=`${n.generateIconHTML(i)}${(0,o.emojiUnescape)(i.text)}`,t.replaceWith(s)}function p(e,t){e.querySelectorAll(".hashtag-cooked").forEach(e=>{let i=e.querySelector(".hashtag-icon-placeholder"),s=e.dataset.type,o=(0,r.getHashtagTypeClasses)()[s];if(i&&o){let r=o.generateIconHTML({icon:t.hashtag_icons[s],id:e.dataset.id,slug:e.dataset.slug}).trim();i.replaceWith((0,n.default)(r)[0])}e.setAttribute("aria-label",`${e.innerText.trim()}`)})}},93301:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cleanUpHashtagTypeClasses:()=>r,getHashtagTypeClasses:()=>o,registerHashtagType:()=>n});let s={};function n(e,t){s[e]=t}function r(){s={}}function o(){return s}},66590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(31049),n=i(62053),r=i(6864),o=i(93301);class a{static loadingIds={};static async _load(){let e=a.loadingIds;a.loadingIds={};let t=!1;if(Object.keys(e).forEach(i=>{t||=e[i].size>0,e[i]=[...e[i]]}),!t)return;let i=await (0,r.ajax)("/hashtags/by-ids",{data:e});Object.entries((0,o.getHashtagTypeClasses)()).forEach(e=>{let[t,s]=e;return i[t]?.forEach(e=>s.onLoad(e))})}constructor(e){(0,s.setOwner)(this,e),this.loadedIds=new Set}get type(){throw"not implemented"}get preloadedData(){throw"not implemented"}generatePreloadedCssClasses(){let e=[];return this.preloadedData.forEach(t=>{this.loadedIds.add(t.id),e.push(this.generateColorCssClasses(t))}),e.flat()}generateColorCssClasses(){throw"not implemented"}generateIconHTML(){throw"not implemented"}isLoaded(e){return e=parseInt(e,10),this.loadedIds.has(e)}load(e){e=parseInt(e,10),this.isLoaded(e)||((a.loadingIds[this.type]||=new Set).add(e),(0,n.debounce)(a,a._load,100,!1))}onLoad(e){let t=parseInt(e.id,10);this.isLoaded(t)||(this.loadedIds.add(t),document.querySelector("#hashtag-css-generator").innerHTML+="\n"+this.generateColorCssClasses(e).join("\n"))}}},89783:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(83133),n=i(66590);class r extends n.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#w=(()=>void dt7948.i(this,"site"))();get type(){return"category"}get preloadedData(){return this.site.categories||[]}generatePreloadedCssClasses(){return[".hashtag-category-badge { background-color: var(--primary-medium); }",...super.generatePreloadedCssClasses()]}generateColorCssClasses(e){let t,i,s;return e.colors?1===e.colors.length?t=e.colors[0]:(i=e.colors[0],t=e.colors[1]):(t=e.color,e.parentCategory&&(i=e.parentCategory.color)),s=i?`background: linear-gradient(-90deg, #${t} 50%, #${i} 50%);`:`background-color: #${t};`,[`.hashtag-color--category-${e.id} { ${s} }`]}generateIconHTML(e){e.preloaded?this.onLoad(e):this.load(e.id);let t=`hashtag-color--${this.type}-${e.id}`;return``}isLoaded(e){return!this.site.lazy_load_categories||super.isLoaded(e)}}},45079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(51429),n=i(66590);class r extends n.default{get type(){return"tag"}get preloadedData(){return[]}generateColorCssClasses(){return[]}generateIconHTML(e){return(0,s.iconHTML)(e.icon,{class:`hashtag-color--${this.type}-${e.id}`})}}},65573:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{createHelperContext:()=>_,findHelper:()=>g,helperContext:()=>y,htmlHelper:()=>d,makeArray:()=>u,registerHelper:()=>m,registerHelpers:()=>f,registerRawHelper:()=>w,registerUnbound:()=>b});var n=i(22421),r=i(35533),o=i(94480),a=i(42256),l=i(16547),c=i(11071);function u(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(e){return(0,l.default)('htmlHelper is deprecated. Use a plain function and `htmlSafe()` from "@ember/template" instead.',{id:"discourse.html-helper"}),n.default.helper(function(){for(var t=arguments.length,i=Array(t),s=0;s1?i[0].concat({hash:i[i.length-1]}):i,(0,a.htmlSafe)(e.apply(this,i)||"")})}let p={};function h(e,t,i){if(!i.types||!i.data.view)return(0,r.get)(e,t);{let e=i.data.view;return e.getStream?e.getStream(t).value():e.getAttr(t)}}function m(e,t){p[e]=n.default.helper(t)}function g(e){return p[e]||p[(0,o.dasherize)(e)]}function f(e){Object.keys(p).forEach(t=>{e.register(`helper:${t}`,p[t],{singleton:!1})})}function _(e){s=e}function y(){return s}function b(e,t){(0,l.default)(`[registerUnbound ${e}] registerUnbound is deprecated. Instead, you should export a default function from 'discourse/helpers/${e}.js'. If the helper is also used in raw-hbs, you can register it using 'registerRawHelper'.`,{id:"discourse.register-unbound"}),p[e]=class extends n.default{compute(e,i){return t(...e,i)}},w(e,t)}function w(e,t){c.default.registerHelper(e,function(){for(var e=arguments.length,i=Array(e),s=0;s{"use strict";i.r(t),i.d(t,{default:()=>n,unhighlightHTML:()=>r});var s=i(65573);function n(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={nodeName:"span",className:"highlighted",matchCase:!1};if(r={...r,...n},!(t=(0,s.makeArray)(t).filter(Boolean).map(e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))).length)return e;let o=`(${t.join(" ")})`;return r.matchCase||(i="i"),!function e(t,i,s,n){if(![Node.ELEMENT_NODE,Node.TEXT_NODE].includes(t.nodeType)||["SCRIPT","STYLE"].includes(t.tagName)||t.tagName===s&&t.className===n)return 0;if(t.nodeType===Node.ELEMENT_NODE&&t.childNodes){for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={nodeName:"span",className:"highlighted"};t={...t,...e},document.querySelectorAll(`${t.nodeName}.${t.className}`).forEach(e=>{let t=e.parentNode;t.replaceChild(e.firstChild,e),t.normalize()})}},79297:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CLASS_NAME:()=>o,default:()=>a});var s=i(75983),n=i(17773),r=i(68304);let o="search-highlight";function a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,s.isEmpty)(t)){let s=t.match(RegExp(`${n.SEARCH_PHRASE_REGEXP}|[^\\s]+`,"g")).filter(e=>"l"!==e).map(e=>e.replace(/^"(.*)"$/,"$1")),a={};i.defaultClassName||(a.className=o),(0,r.default)(e,s,a)}}},15277:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=function(){var e;function t(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.nodeName.toLowerCase()}function s(e){let t=[];return!function e(s,n){for(let r=s.firstChild;r;r=r.nextSibling)3===r.nodeType?n+=r.nodeValue.length:1!==r.nodeType||(t.push({event:"start",offset:n,node:r}),n=e(r,n),i(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:r}));return n}(e,0),t}return{"before:highlightElement":t=>{let{el:i}=t;e=s(i)},"after:highlightElement":n=>{let{el:r,result:o,text:a}=n;if(!e.length)return;let l=document.createElement("div");l.innerHTML=o.value,o.value=function(e,s,n){let r=0,o="",a=[];function l(){return e.length&&s.length?e[0].offset!==s[0].offset?e[0].offset"}function u(e){o+=""}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||s.length;){let i=l();if(o+=t(n.substring(r,i[0].offset)),r=i[0].offset,i===e){a.reverse().forEach(u);do d(i.splice(0,1)[0]),i=l();while(i===e&&i.length&&i[0].offset===r)a.reverse().forEach(c)}else"start"===i[0].event?a.push(i[0].node):a.pop(),d(i.splice(0,1)[0])}return o+t(n.substr(r))}(e,s(l),a),r.innerHTML=o.value}}}()},18178:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{default:()=>c,registerHighlightJSLanguage:()=>h,registerHighlightJSPlugin:()=>m});var n=i(983);i(77093);var r=i(94636),o=i(15277);let a=[],l=[];async function c(e,t,i){if(!e)return;let s=t.autohighlight_all_code?"pre code":"pre code[class]",n=e.querySelectorAll(s);if(!n.length)return;let r=i.highlightJsPath,o=await u(r);n.forEach(e=>{let t;if(!(e.innerHTML.length>3e4)){for(let i of e.classList){let e=i.match(/^lang(?:uage)?-(.+)$/);if(e){t=e[1];break}}"auto"===t&&e.innerHTML.length>1e3||(t&&("auto"===t||o.getLanguage(t))?(e.classList.remove("lang-auto"),o.highlightElement(e)):e.dataset.unknownHljsLang=t)}})}async function u(e){try{return s||(s=d(e),(0,n.YZ)(s)),await s}catch(e){throw s=null,e}}async function d(e){let[t,s]=await Promise.all([i.e(160).then(i.bind(i,83160)),p(e)]),n=t.default;return s(n),function(e){(function(e){a.forEach(t=>{void 0===e.getLanguage(t.name)&&e.registerLanguage(t.name,t.fn)})})(e),function(e){l.forEach(t=>{e.addPlugin(t)})}(e),e.addPlugin(o.default),e.configure({ignoreUnescapedHTML:!0})}(n),n}async function p(e){let t=(0,r.getURLWithCDN)(e);return(await import(t)).default}function h(e,t){a.push({name:e,fn:t})}function m(e){l.push(e)}},42090:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n,homepageDestination:()=>o});var s=i(42236);function n(e){let t=e._routerMicrolib;for(let e of["updateURL","replaceURL"]){let i=t[e].bind(t);t[e]=function(e){return i(e=function(e,t){let i=t?.intent?.url;if(i?.startsWith(o())||t?.intent.name===`discovery.${(0,s.defaultHomepage)()}`&&t?.intent.queryParams[r]){let t=(i||e).split("?",2)[1];if(e="/",t){let i=new URLSearchParams(t);i.delete(r),i.size&&(e+=`?${i.toString()}`)}}return e}(e,this.activeTransition))}}}let r="_discourse_homepage_rewrite";function o(){return`/${(0,s.defaultHomepage)()}?${r}=1`}},51429:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{REPLACEMENTS:()=>h,SVG_NAMESPACE:()=>u,convertIconClass:()=>w,disableMissingIconWarning:()=>g,enableMissingIconWarning:()=>f,iconHTML:()=>y,iconNode:()=>b,isExistingIconId:()=>C,registerIconRenderer:()=>k,renderIcon:()=>_,replaceIcon:()=>m,setIconList:()=>S});var n=i(83236),r=i(6466),o=i(16547),a=i(77093),l=i(84457),c=i(843);let u="http://www.w3.org/2000/svg",d=[],p=!0,h={"d-tracking":"bell","d-muted":"discourse-bell-slash","d-regular":"far-bell","d-watching":"discourse-bell-exclamation","d-watching-first":"discourse-bell-one","d-drop-expanded":"caret-down","d-drop-collapsed":"caret-right","d-unliked":"far-heart","d-liked":"heart","d-post-share":"link","d-topic-share":"link","notification.mentioned":"at","notification.group_mentioned":"users","notification.quoted":"quote-right","notification.replied":"reply","notification.posted":"discourse-bell-exclamation","notification.watching_category_or_tag":"discourse-bell-exclamation","notification.edited":"pencil","notification.bookmark_reminder":"discourse-bookmark-clock","notification.liked":"heart","notification.liked_2":"heart","notification.liked_many":"heart","notification.liked_consolidated":"heart","notification.private_message":"envelope","notification.invited_to_private_message":"envelope","notification.invited_to_topic":"hand-point-right","notification.invitee_accepted":"user","notification.moved_post":"right-from-bracket","notification.linked":"link","notification.linked_consolidated":"link","notification.granted_badge":"certificate","notification.topic_reminder":"far-clock","notification.watching_first_post":"discourse-bell-one","notification.group_message_summary":"users","notification.post_approved":"check","notification.membership_request_accepted":"user-plus","notification.membership_request_consolidated":"users","notification.reaction":"bell","notification.votes_released":"plus","notification.chat_quoted":"quote-right","user_menu.replies":"reply","user_menu.drafts":"pencil","sidebar.all_categories":"list"};function m(e,t){e=x(e),t=x(t),h[e]=t}function g(){p=!1}function f(){p=!1}function _(e,t,i){for(let s of(i||={},d)){let n=s[e];if(!n)continue;let r=n({id:t,replacementId:h[t]},i);if(r)return r}}function y(e,t){return _("string",e,t)}function b(e,t){return _("node",e,t)}function w(e){return e.replace("far fa-","far-").replace("fab fa-","fab-").replace("fas fa-","").replace("fa-","").trim()}function k(e){d.unshift(e)}function T(e,t){let i=e.replacementId&&e.id.includes("notification.")?e.replacementId:e.id,s=`fa d-icon d-icon-${i} svg-icon`;return t&&t.class&&(s+=" "+t.class),s}function S(e){s=e}function C(e){return s?.includes(e)}function x(e){let t=e;return(t=function(e){let t,i=e;if(e.startsWith("far-")?(t="far",i=e.replace("far-","")):e.startsWith("fab-")&&(t="fab",i=e.replace("fab-","")),E.hasOwnProperty(i)){let e=E[i];return t&&(e=`${t}-${e}`),e}return e}(t=w(t)))!==e&&(0,o.default)(`The icon name "${e}" has been updated to "${t}". Please use the new name in your code. Old names will be removed in Q2 2025.`,{id:"discourse.fontawesome-6-upgrade",url:"https://meta.discourse.org/t/325349",raiseError:(0,a.isTesting)()||(0,a.isRailsTesting)()}),t}function A(e){let t=e.replacementId||e.id||"";return!function(e){p&&(0,a.isDevelopment)()&&!C(e)&&console.warn(`The icon "${e}" is missing from the SVG subset.`)}(t=x(t=t.replace(" unpinned",""))),t}k({name:"font-awesome",string(e,t){let i=(0,l.default)(A(e)),s=``,t.label&&(s+=`${(0,l.default)(t.label)}`),t.title&&(s=`${s}`),t.translatedtitle&&((0,o.default)("use 'translatedTitle' option instead of 'translatedtitle'",{since:"2.9.0.beta6",dropFrom:"2.10.0.beta1",id:"discourse.icon-renderer-translatedtitle"}),t.translatedTitle=t.translatedtitle),t.translatedTitle&&(s=`${s}`),s},node(e,t){let i=A(e),s=T(e,t)+" svg-node",o=(0,n.h)("svg",{attributes:{class:s,"aria-hidden":!0},namespace:u},[(0,n.h)("use",{href:(0,r.default)("http://www.w3.org/1999/xlink",`#${(0,l.default)(i)}`),namespace:u})]);return t.title?(0,n.h)("span",{title:t.title,attributes:{class:"svg-icon-title"}},[o]):o}});let E={adjust:"circle-half-stroke","air-freshener":"spray-can-sparkles","alien-monster":"alien-8bit",allergies:"hand-dots",ambulance:"truck-medical","american-sign-language-interpreting":"hands-asl-interpreting",analytics:"chart-mixed","angle-double-down":"angles-down","angle-double-left":"angles-left","angle-double-right":"angles-right","angle-double-up":"angles-up",angry:"face-angry","apple-alt":"apple-whole","apple-crate":"crate-apple",archive:"box-archive","arrow-alt-circle-down":"circle-down","arrow-alt-circle-left":"circle-left","arrow-alt-circle-right":"circle-right","arrow-alt-circle-up":"circle-up","arrow-alt-down":"down","arrow-alt-from-bottom":"up-from-line","arrow-alt-from-left":"right-from-line","arrow-alt-from-right":"left-from-line","arrow-alt-from-top":"down-from-line","arrow-alt-left":"left","arrow-alt-right":"right","arrow-alt-square-down":"square-down","arrow-alt-square-left":"square-left","arrow-alt-square-right":"square-right","arrow-alt-square-up":"square-up","arrow-alt-to-bottom":"down-to-line","arrow-alt-to-left":"left-to-line","arrow-alt-to-right":"right-to-line","arrow-alt-to-top":"up-to-line","arrow-alt-up":"up","arrow-circle-down":"circle-arrow-down","arrow-circle-left":"circle-arrow-left","arrow-circle-right":"circle-arrow-right","arrow-circle-up":"circle-arrow-up","arrow-from-bottom":"arrow-up-from-line","arrow-from-left":"arrow-right-from-line","arrow-from-right":"arrow-left-from-line","arrow-from-top":"arrow-down-from-line","arrow-square-down":"square-arrow-down","arrow-square-left":"square-arrow-left","arrow-square-right":"square-arrow-right","arrow-square-up":"square-arrow-up","arrow-to-bottom":"arrow-down-to-line","arrow-to-left":"arrow-left-to-line","arrow-to-right":"arrow-right-to-line","arrow-to-top":"arrow-up-to-line",arrows:"arrows-up-down-left-right","arrows-alt":"up-down-left-right","arrows-alt-h":"left-right","arrows-alt-v":"up-down","arrows-h":"arrows-left-right","arrows-v":"arrows-up-down","assistive-listening-systems":"ear-listen",atlas:"book-atlas","atom-alt":"atom-simple",backspace:"delete-left","balance-scale":"scale-balanced","balance-scale-left":"scale-unbalanced","balance-scale-right":"scale-unbalanced-flip","band-aid":"bandage","barcode-alt":"rectangle-barcode","baseball-ball":"baseball","basketball-ball":"basketball","bed-alt":"bed-front",beer:"beer-mug-empty",betamax:"cassette-betamax",bible:"book-bible",biking:"person-biking","biking-mountain":"person-biking-mountain","birthday-cake":"cake-candles",blind:"person-walking-with-cane","book-alt":"book-blank","book-dead":"book-skull","book-reader":"book-open-reader","book-spells":"book-sparkles","border-style":"border-top-left","border-style-alt":"border-bottom-right","box-alt":"box-taped","box-fragile":"square-fragile","box-full":"box-open-full","box-up":"square-this-way-up","box-usd":"box-dollar",boxes:"boxes-stacked","boxes-alt":"boxes-stacked",brackets:"brackets-square","broadcast-tower":"tower-broadcast",burn:"fire-flame-simple","bus-alt":"bus-simple","calculator-alt":"calculator-simple","calendar-alt":"calendar-days","calendar-edit":"calendar-pen","calendar-times":"calendar-xmark","camera-alt":"camera","camera-home":"camera-security","car-alt":"car-rear","car-crash":"car-burst","car-mechanic":"car-wrench","caravan-alt":"caravan-simple","caret-circle-down":"circle-caret-down","caret-circle-left":"circle-caret-left","caret-circle-right":"circle-caret-right","caret-circle-up":"circle-caret-up","caret-square-down":"square-caret-down","caret-square-left":"square-caret-left","caret-square-right":"square-caret-right","caret-square-up":"square-caret-up",cctv:"camera-cctv","chalkboard-teacher":"chalkboard-user","chart-pie-alt":"chart-pie-simple","check-circle":"circle-check","check-square":"square-check",cheeseburger:"burger-cheese","chess-bishop-alt":"chess-bishop-piece","chess-clock-alt":"chess-clock-flip","chess-king-alt":"chess-king-piece","chess-knight-alt":"chess-knight-piece","chess-pawn-alt":"chess-pawn-piece","chess-queen-alt":"chess-queen-piece","chess-rook-alt":"chess-rook-piece","chevron-circle-down":"circle-chevron-down","chevron-circle-left":"circle-chevron-left","chevron-circle-right":"circle-chevron-right","chevron-circle-up":"circle-chevron-up","chevron-double-down":"chevrons-down","chevron-double-left":"chevrons-left","chevron-double-right":"chevrons-right","chevron-double-up":"chevrons-up","chevron-square-down":"square-chevron-down","chevron-square-left":"square-chevron-left","chevron-square-right":"square-chevron-right","chevron-square-up":"square-chevron-up","clinic-medical":"house-chimney-medical","cloud-download":"cloud-arrow-down","cloud-download-alt":"cloud-arrow-down","cloud-upload":"cloud-arrow-up","cloud-upload-alt":"cloud-arrow-up",cocktail:"martini-glass-citrus",coffee:"mug-saucer","coffee-togo":"cup-togo",cog:"gear",cogs:"gears",columns:"table-columns","comment-alt":"message","comment-alt-check":"message-check","comment-alt-dollar":"message-dollar","comment-alt-dots":"message-dots","comment-alt-edit":"message-pen","comment-alt-exclamation":"message-exclamation","comment-alt-lines":"message-lines","comment-alt-medical":"message-medical","comment-alt-minus":"message-minus","comment-alt-music":"message-music","comment-alt-plus":"message-plus","comment-alt-slash":"message-slash","comment-alt-smile":"message-smile","comment-alt-times":"message-xmark","comment-edit":"comment-pen","comment-times":"comment-xmark","comments-alt":"messages","comments-alt-dollar":"messages-dollar","compress-alt":"down-left-and-up-right-to-center","compress-arrows-alt":"minimize","concierge-bell":"bell-concierge",construction:"triangle-person-digging","conveyor-belt-alt":"conveyor-belt-boxes","cowbell-more":"cowbell-circle-plus",cricket:"cricket-bat-ball","crop-alt":"crop-simple",curling:"curling-stone",cut:"scissors",deaf:"ear-deaf",debug:"ban-bug","desktop-alt":"desktop",dewpoint:"droplet-degree",diagnoses:"person-dots-from-line",digging:"person-digging","digital-tachograph":"tachograph-digital",directions:"diamond-turn-right",dizzy:"face-dizzy","dolly-flatbed":"cart-flatbed","dolly-flatbed-alt":"cart-flatbed-boxes","dolly-flatbed-empty":"cart-flatbed-empty",donate:"circle-dollar-to-slot","dot-circle":"circle-dot","drafting-compass":"compass-drafting","drone-alt":"drone-front","dryer-alt":"dryer-heat","eclipse-alt":"moon-over-sun",edit:"pen-to-square","ellipsis-h":"ellipsis","ellipsis-h-alt":"ellipsis-stroke","ellipsis-v":"ellipsis-vertical","ellipsis-v-alt":"ellipsis-stroke-vertical","envelope-square":"square-envelope",exchange:"arrow-right-arrow-left","exchange-alt":"right-left","exclamation-circle":"circle-exclamation","exclamation-square":"square-exclamation","exclamation-triangle":"triangle-exclamation","expand-alt":"up-right-and-down-left-from-center","expand-arrows":"arrows-maximize","expand-arrows-alt":"maximize","external-link":"arrow-up-right-from-square","external-link-alt":"up-right-from-square","external-link-square":"square-arrow-up-right","external-link-square-alt":"square-up-right",eyedropper:"eye-dropper","fast-backward":"backward-fast","fast-forward":"forward-fast","feather-alt":"feather-pointed",female:"person-dress","field-hockey":"field-hockey-stick-ball","fighter-jet":"jet-fighter","file-alt":"file-lines","file-archive":"file-zipper","file-chart-line":"file-chart-column","file-download":"file-arrow-down","file-edit":"file-pen","file-medical-alt":"file-waveform","file-search":"file-magnifying-glass","file-times":"file-xmark","file-upload":"file-arrow-up","film-alt":"film-simple","fire-alt":"fire-flame-curved","first-aid":"kit-medical","fist-raised":"hand-fist","flag-alt":"flag-swallowtail",flame:"fire-flame","flask-poison":"flask-round-poison","flask-potion":"flask-round-potion",flushed:"face-flushed",fog:"cloud-fog","folder-download":"folder-arrow-down","folder-times":"folder-xmark","folder-upload":"folder-arrow-up","font-awesome-alt":"square-font-awesome-stroke","font-awesome-flag":"font-awesome","font-awesome-logo-full":"font-awesome","football-ball":"football",fragile:"wine-glass-crack","frosty-head":"snowman-head",frown:"face-frown","frown-open":"face-frown-open","funnel-dollar":"filter-circle-dollar","game-board-alt":"game-board-simple","gamepad-alt":"gamepad-modern","glass-champagne":"champagne-glass","glass-cheers":"champagne-glasses","glass-martini":"martini-glass-empty","glass-martini-alt":"martini-glass","glass-whiskey":"whiskey-glass","glass-whiskey-rocks":"whiskey-glass-ice","glasses-alt":"glasses-round","globe-africa":"earth-africa","globe-americas":"earth-americas","globe-asia":"earth-asia","globe-europe":"earth-europe","golf-ball":"golf-ball-tee",grimace:"face-grimace",grin:"face-grin","grin-alt":"face-grin-wide","grin-beam":"face-grin-beam","grin-beam-sweat":"face-grin-beam-sweat","grin-hearts":"face-grin-hearts","grin-squint":"face-grin-squint","grin-squint-tears":"face-grin-squint-tears","grin-stars":"face-grin-stars","grin-tears":"face-grin-tears","grin-tongue":"face-grin-tongue","grin-tongue-squint":"face-grin-tongue-squint","grin-tongue-wink":"face-grin-tongue-wink","grin-wink":"face-grin-wink","grip-horizontal":"grip","h-square":"square-h",hamburger:"burger","hand-holding-usd":"hand-holding-dollar","hand-holding-water":"hand-holding-droplet","hand-paper":"hand","hand-receiving":"hands-holding-diamond","hand-rock":"hand-back-fist","hands-heart":"hands-holding-heart","hands-helping":"handshake-angle","hands-usd":"hands-holding-dollar","hands-wash":"hands-bubbles","handshake-alt":"handshake-simple","handshake-alt-slash":"handshake-simple-slash","hard-hat":"helmet-safety",hdd:"hard-drive","head-vr":"head-side-goggles","headphones-alt":"headphones-simple","heart-broken":"heart-crack","heart-circle":"circle-heart","heart-rate":"wave-pulse","heart-square":"square-heart",heartbeat:"heart-pulse",hiking:"person-hiking",history:"clock-rotate-left",home:"house","home-alt":"house","home-heart":"house-heart","home-lg":"house-chimney","home-lg-alt":"house","hospital-alt":"hospital","hospital-symbol":"circle-h","hot-tub":"hot-tub-person","hourglass-half":"hourglass","house-damage":"house-chimney-crack","house-leave":"house-person-leave","house-return":"house-person-return",hryvnia:"hryvnia-sign",humidity:"droplet-percent","icons-alt":"symbols","id-card-alt":"id-card-clip","industry-alt":"industry-windows","info-circle":"circle-info","info-square":"square-info",innosoft:"42-group",inventory:"shelves","journal-whills":"book-journal-whills",kiss:"face-kiss","kiss-beam":"face-kiss-beam","kiss-wink-heart":"face-kiss-wink-heart","landmark-alt":"landmark-dome","laptop-house":"house-laptop",laugh:"face-laugh","laugh-beam":"face-laugh-beam","laugh-squint":"face-laugh-squint","laugh-wink":"face-laugh-wink","level-down":"arrow-turn-down","level-down-alt":"turn-down","level-up":"arrow-turn-up","level-up-alt":"turn-up","list-alt":"rectangle-list",location:"location-crosshairs","location-circle":"circle-location-arrow","location-slash":"location-crosshairs-slash","lock-alt":"lock-keyhole","lock-open-alt":"lock-keyhole-open","long-arrow-alt-down":"down-long","long-arrow-alt-left":"left-long","long-arrow-alt-right":"right-long","long-arrow-alt-up":"up-long","long-arrow-down":"arrow-down-long","long-arrow-left":"arrow-left-long","long-arrow-right":"arrow-right-long","long-arrow-up":"arrow-up-long","low-vision":"eye-low-vision",luchador:"luchador-mask","luggage-cart":"cart-flatbed-suitcase",magic:"wand-magic","mail-bulk":"envelopes-bulk",male:"person","map-marked":"map-location","map-marked-alt":"map-location-dot","map-marker":"location-pin","map-marker-alt":"location-dot","map-marker-alt-slash":"location-dot-slash","map-marker-check":"location-check","map-marker-edit":"location-pen","map-marker-exclamation":"location-exclamation","map-marker-minus":"location-minus","map-marker-plus":"location-plus","map-marker-question":"location-question","map-marker-slash":"location-pin-slash","map-marker-smile":"location-smile","map-marker-times":"location-xmark","map-signs":"signs-post","mars-stroke-h":"mars-stroke-right","mars-stroke-v":"mars-stroke-up","medium-m":"medium",medkit:"suitcase-medical",meh:"face-meh","meh-blank":"face-meh-blank","meh-rolling-eyes":"face-rolling-eyes","microphone-alt":"microphone-lines","microphone-alt-slash":"microphone-lines-slash","mind-share":"brain-arrow-curved-right","minus-circle":"circle-minus","minus-hexagon":"hexagon-minus","minus-octagon":"octagon-minus","minus-square":"square-minus","mobile-alt":"mobile-screen-button","mobile-android":"mobile","mobile-android-alt":"mobile-screen","money-bill-alt":"money-bill-1","money-bill-wave-alt":"money-bill-1-wave","money-check-alt":"money-check-dollar","money-check-edit":"money-check-pen","money-check-edit-alt":"money-check-dollar-pen","monitor-heart-rate":"monitor-waveform",mouse:"computer-mouse","mouse-alt":"computer-mouse-scrollwheel","mouse-pointer":"arrow-pointer","music-alt":"music-note","music-alt-slash":"music-note-slash","oil-temp":"oil-temperature","page-break":"file-dashed-line","paint-brush":"paintbrush","paint-brush-alt":"paintbrush-fine","paint-brush-fine":"paintbrush-fine","pallet-alt":"pallet-boxes","paragraph-rtl":"paragraph-left",parking:"square-parking","parking-circle":"circle-parking","parking-circle-slash":"ban-parking","parking-slash":"square-parking-slash",pastafarianism:"spaghetti-monster-flying","pause-circle":"circle-pause","paw-alt":"paw-simple","pen-alt":"pen-clip","pen-square":"square-pen","pencil-alt":"pencil","pencil-paintbrush":"pen-paintbrush","pencil-ruler":"pen-ruler",pennant:"flag-pennant","people-arrows":"people-arrows-left-right","people-carry":"people-carry-box",percentage:"percent","person-carry":"person-carry-box","phone-alt":"phone-flip","phone-laptop":"laptop-mobile","phone-square":"square-phone","phone-square-alt":"square-phone-flip","photo-video":"photo-film","plane-alt":"plane-engines","play-circle":"circle-play","plus-circle":"circle-plus","plus-hexagon":"hexagon-plus","plus-octagon":"octagon-plus","plus-square":"square-plus",poll:"square-poll-vertical","poll-h":"square-poll-horizontal","portal-enter":"person-to-portal","portal-exit":"person-from-portal",portrait:"image-portrait","pound-sign":"sterling-sign",pray:"person-praying","praying-hands":"hands-praying","prescription-bottle-alt":"prescription-bottle-medical",presentation:"presentation-screen","print-search":"print-magnifying-glass",procedures:"bed-pulse","project-diagram":"diagram-project","question-circle":"circle-question","question-square":"square-question",quran:"book-quran","rabbit-fast":"rabbit-running","radiation-alt":"circle-radiation","radio-alt":"radio-tuner",random:"shuffle","rectangle-landscape":"rectangle","rectangle-portrait":"rectangle-vertical",redo:"arrow-rotate-right","redo-alt":"rotate-right","remove-format":"text-slash","repeat-1-alt":"arrows-repeat-1","repeat-alt":"arrows-repeat","retweet-alt":"arrows-retweet","rss-square":"square-rss",running:"person-running","sad-cry":"face-sad-cry","sad-tear":"face-sad-tear",save:"floppy-disk","sax-hot":"saxophone-fire","scalpel-path":"scalpel-line-dashed","scanner-image":"scanner",search:"magnifying-glass","search-dollar":"magnifying-glass-dollar","search-location":"magnifying-glass-location","search-minus":"magnifying-glass-minus","search-plus":"magnifying-glass-plus","sensor-alert":"sensor-triangle-exclamation","sensor-smoke":"sensor-cloud","share-alt":"share-nodes","share-alt-square":"square-share-nodes","share-square":"share-from-square","shield-alt":"shield-halved","shipping-fast":"truck-fast","shipping-timed":"truck-clock","shopping-bag":"bag-shopping","shopping-basket":"basket-shopping","shopping-cart":"cart-shopping","shuttle-van":"van-shuttle",sign:"sign-hanging","sign-in":"arrow-right-to-bracket","sign-in-alt":"right-to-bracket","sign-language":"hands","sign-out":"arrow-right-from-bracket","sign-out-alt":"right-from-bracket","signal-1":"signal-weak","signal-2":"signal-fair","signal-3":"signal-good","signal-4":"signal-strong","signal-alt":"signal-bars","signal-alt-1":"signal-bars-weak","signal-alt-2":"signal-bars-fair","signal-alt-3":"signal-bars-good","signal-alt-slash":"signal-bars-slash",skating:"person-skating","ski-jump":"person-ski-jumping","ski-lift":"person-ski-lift",skiing:"person-skiing","skiing-nordic":"person-skiing-nordic","slack-hash":"slack",sledding:"person-sledding","sliders-h":"sliders","sliders-h-square":"square-sliders","sliders-v":"sliders-up","sliders-v-square":"square-sliders-vertical",smile:"face-smile","smile-beam":"face-smile-beam","smile-plus":"face-smile-plus","smile-wink":"face-smile-wink","smoking-ban":"ban-smoking",sms:"comment-sms","snapchat-ghost":"snapchat",snowboarding:"person-snowboarding",snowmobile:"person-snowmobiling","sort-alpha-down":"arrow-down-a-z","sort-alpha-down-alt":"arrow-down-z-a","sort-alpha-up":"arrow-up-a-z","sort-alpha-up-alt":"arrow-up-z-a","sort-alt":"arrow-down-arrow-up","sort-amount-down":"arrow-down-wide-short","sort-amount-down-alt":"arrow-down-short-wide","sort-amount-up":"arrow-up-wide-short","sort-amount-up-alt":"arrow-up-short-wide","sort-circle":"circle-sort","sort-circle-down":"circle-sort-down","sort-circle-up":"circle-sort-up","sort-numeric-down":"arrow-down-1-9","sort-numeric-down-alt":"arrow-down-9-1","sort-numeric-up":"arrow-up-1-9","sort-numeric-up-alt":"arrow-up-9-1","sort-shapes-down":"arrow-down-triangle-square","sort-shapes-down-alt":"arrow-down-square-triangle","sort-shapes-up":"arrow-up-triangle-square","sort-shapes-up-alt":"arrow-up-square-triangle","sort-size-down":"arrow-down-big-small","sort-size-down-alt":"arrow-down-small-big","sort-size-up":"arrow-up-big-small","sort-size-up-alt":"arrow-up-small-big",soup:"bowl-hot","space-shuttle":"shuttle-space","space-station-moon-alt":"space-station-moon-construction","square-root-alt":"square-root-variable","star-half-alt":"star-half-stroke","starfighter-alt":"starfighter-twin-ion-engine","step-backward":"backward-step","step-forward":"forward-step","sticky-note":"note-sticky","stop-circle":"circle-stop","store-alt":"shop","store-alt-slash":"shop-slash",stream:"bars-staggered",subway:"train-subway",surprise:"face-surprise",swimmer:"person-swimming","swimming-pool":"water-ladder",sync:"arrows-rotate","sync-alt":"rotate","table-tennis":"table-tennis-paddle-ball","tablet-alt":"tablet-screen-button","tablet-android":"tablet","tablet-android-alt":"tablet-screen",tachometer:"gauge-simple","tachometer-alt":"gauge","tachometer-alt-average":"gauge-med","tachometer-alt-fast":"gauge","tachometer-alt-fastest":"gauge-max","tachometer-alt-slow":"gauge-low","tachometer-alt-slowest":"gauge-min","tachometer-average":"gauge-simple-med","tachometer-fast":"gauge-simple","tachometer-fastest":"gauge-simple-max","tachometer-slow":"gauge-simple-low","tachometer-slowest":"gauge-simple-min",tanakh:"book-tanakh",tasks:"list-check","tasks-alt":"bars-progress","telegram-plane":"telegram","temperature-down":"temperature-arrow-down","temperature-frigid":"temperature-snow","temperature-hot":"temperature-sun","temperature-up":"temperature-arrow-up",tenge:"tenge-sign",th:"table-cells","th-large":"table-cells-large","th-list":"table-list","theater-masks":"masks-theater","thermometer-empty":"temperature-empty","thermometer-full":"temperature-full","thermometer-half":"temperature-half","thermometer-quarter":"temperature-quarter","thermometer-three-quarters":"temperature-three-quarters","thumb-tack":"thumbtack",thunderstorm:"cloud-bolt","thunderstorm-moon":"cloud-bolt-moon","thunderstorm-sun":"cloud-bolt-sun","ticket-alt":"ticket-simple",times:"xmark","times-circle":"circle-xmark","times-hexagon":"hexagon-xmark","times-octagon":"octagon-xmark","times-square":"square-xmark",tint:"droplet","tint-slash":"droplet-slash",tired:"face-tired","toilet-paper-alt":"toilet-paper-blank","tombstone-alt":"tombstone-blank",tools:"screwdriver-wrench",torah:"scroll-torah",tram:"train-tram","transgender-alt":"transgender","trash-alt":"trash-can","trash-restore":"trash-arrow-up","trash-restore-alt":"trash-can-arrow-up","trash-undo-alt":"trash-can-undo","tree-alt":"tree-deciduous","triangle-music":"triangle-instrument","trophy-alt":"trophy-star","truck-couch":"truck-ramp-couch","truck-loading":"truck-ramp-box",tshirt:"shirt","tv-alt":"tv",undo:"arrow-rotate-left","undo-alt":"rotate-left",university:"building-columns",unlink:"link-slash","unlock-alt":"unlock-keyhole","usd-circle":"circle-dollar","usd-square":"square-dollar","user-alt":"user-large","user-alt-slash":"user-large-slash","user-chart":"chart-user","user-circle":"circle-user","user-cog":"user-gear","user-edit":"user-pen","user-friends":"user-group","user-hard-hat":"user-helmet-safety","user-md":"user-doctor","user-md-chat":"user-doctor-message","user-times":"user-xmark","users-class":"screen-users","users-cog":"users-gear","users-crown":"user-group-crown","utensil-fork":"fork","utensil-knife":"knife","utensil-spoon":"spoon","utensils-alt":"fork-knife",vhs:"cassette-vhs","volleyball-ball":"volleyball","volume-down":"volume-low","volume-mute":"volume-xmark","volume-up":"volume-high","vote-nay":"xmark-to-slot","vote-yea":"check-to-slot",walking:"person-walking","warehouse-alt":"warehouse-full",washer:"washing-machine","water-lower":"water-arrow-down","water-rise":"water-arrow-up","waveform-path":"waveform-lines",webcam:"camera-web","webcam-slash":"camera-web-slash",weight:"weight-scale","wifi-1":"wifi-weak","wifi-2":"wifi-fair","window-alt":"window-flip","window-close":"rectangle-xmark","wine-glass-alt":"wine-glass-empty"}},73868:(e,t,i)=>{"use strict";i.r(t),i.d(t,{disableImplicitInjections:()=>g,registerDiscourseImplicitInjections:()=>m});var s=i(53653),n=i(28418),r=i(35533),o=i(31049),a=i(50065),l=i(83133),c=i(6319),u=i(72473);let d=Symbol("DISABLE_IMPLICIT_INJECTIONS");function p(e,t){let i={};for(let[e,s]of Object.entries(t))i[e]=function(e,t){let i=`__OVERRIDE_${t}`;return(0,r.computed)(t,{get(){if(this[i])return this[i];if(this[d])return;let t=(0,o.getOwner)(this)||this.container;if(t)return t.lookup(e)},set(e,t){return this[i]=t}})}(s,e);r.default.reopen.call(e,i),e.proto()}let h=!1;function m(){if(h)return;let e={appEvents:"service:app-events",pmTopicTrackingState:"service:pm-topic-tracking-state",store:"service:store",site:"service:site",searchService:"service:search",session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store"};p(n.default,{...e,capabilities:"service:capabilities",currentUser:"service:current-user"}),p(s.default,{capabilities:"service:capabilities",currentUser:"service:current-user",...e}),p(a.default,{...e,currentUser:"service:current-user"}),p(u.default,{...e}),p(c.default,{...e}),p(l.default,{session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store",currentUser:"service:current-user"}),h=!0}function g(e){e.prototype[d]=!0}},97015:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r,wantsNewWindow:()=>n});var s=i(87353);function n(e){return e.defaultPrevented||e.isDefaultPrevented?.()||e.shiftKey||e.metaKey||e.ctrlKey||e.button&&0!==e.button||e.currentTarget?.target==="_blank"}function r(e){let t=e.target.closest("a");if(!t||n(e,t)||"_blank"===t.target)return;let i=t.getAttribute("href"),r=t.getAttribute("target");!i||i.startsWith("#")||r&&"_self"!==r||t.dataset.autoRoute||t.dataset.shareUrl||t.classList.contains("widget-link")||t.classList.contains("raw-link")||t.classList.contains("mention")||!t.classList.contains("d-link")&&!t.dataset.userCard&&t.classList.contains("ember-view")||t.classList.contains("lightbox")||i.startsWith("mailto:")||i.match(/^http[s]?:\/\//i)&&!i.match(RegExp("^https?:\\/\\/"+window.location.hostname,"i"))||(e.preventDefault(),s.default.routeTo(i))}},73018:(e,t,i)=>{"use strict";function s(e){return e&&"object"==typeof e&&"writable"in e&&"enumerable"in e&&"configurable"in e}i.r(t),i.d(t,{default:()=>s})},79266:(e,t,i)=>{"use strict";function s(e){if(!e)return;let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}i.r(t),i.d(t,{default:()=>s})},78255:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{default:()=>r});var n=i(77093);try{s=localStorage,"true"===localStorage.disableLocalStorage?s=null:s.safeLocalStorage=!0}catch{s=null}class r{context=null;constructor(e){this.context=(0,n.isTesting)()?`__test_${e}`:e}abandonLocal(){return this.removeKeys()}removeKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0;if(!s)return;let t=s.length-1;for(;t>=0;){let i=s.key(t),n=s[i];try{n=JSON.parse(n)}catch{}i.substring(0,this.context.length)===this.context&&e(i,n)&&s.removeItem(i),t--}return!0}remove(e){if(s)return s.removeItem(this.context+e)}set(e){if(!s)return!1;s[this.context+e.key]=e.value}setObject(e){this.set({key:e.key,value:JSON.stringify(e.value)})}get(e){return s?s[this.context+e]:null}getInt(e,t){if(t||(t=0),!s)return t;let i=parseInt(this.get(e),10);return isFinite(i)?i:t}getObject(e){if(!s)return null;try{return JSON.parse(s[this.context+e])}catch{}}}r.prototype.getItem=r.prototype.get,r.prototype.removeItem=r.prototype.remove,r.prototype.setItem=function(e,t){this.set({key:e,value:t})}},19905:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PLATFORM_KEY_MODIFIER:()=>b,clearDisabledDefaultKeyboardBindings:()=>f,clearExtraKeyboardShortcutHelp:()=>y,default:()=>T,disableDefaultKeyboardShortcuts:()=>g,extraKeyboardShortcutsHelp:()=>_});var s=i(31049),n=i(62053),r=i(6864),o=i(48276),a=i(77093),l=i(53306),c=i(77270),u=i(83549),d=i(87353),p=i(39965),h=i(95291);let m=[];function g(e){m=m.concat(e)}function f(){m=[]}let _={};function y(){_={}}let b=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl",w={"!":{postAction:"showFlags"},"#":{handler:"goToPost",anonymous:!0},"/":{handler:"toggleSearch",anonymous:!0},"meta+/":{handler:"filterSidebar",anonymous:!0},[`${b}+/`]:{handler:"filterSidebar",anonymous:!0},"ctrl+alt+f":{handler:"toggleSearch",anonymous:!0,global:!0},"=":{handler:"toggleHamburgerMenu",anonymous:!0},"?":{handler:"showHelpModal",anonymous:!0},".":{click:".alert.alert-info.clickable",anonymous:!0},a:{handler:"toggleArchivePM"},b:{handler:"toggleBookmark"},c:{handler:"createTopic"},"shift+c":{handler:"focusComposer"},"ctrl+f":{handler:"showPageSearch",anonymous:!0},"command+f":{handler:"showPageSearch",anonymous:!0},"command+left":{handler:"webviewKeyboardBack",anonymous:!0},"command+[":{handler:"webviewKeyboardBack",anonymous:!0},"command+right":{handler:"webviewKeyboardForward",anonymous:!0},"command+]":{handler:"webviewKeyboardForward",anonymous:!0},"mod+p":{handler:"printTopic",anonymous:!0},d:{postAction:"deletePostWithConfirmation"},e:{handler:"editPost"},end:{handler:"goToLastPost",anonymous:!0},"command+down":{handler:"goToLastPost",anonymous:!0},f:{handler:"toggleBookmarkTopic"},"g h":{path:"/",anonymous:!0},"g l":{path:"/latest",anonymous:!0},"g n":{path:"/new"},"g u":{path:"/unread"},"g c":{path:"/categories",anonymous:!0},"g t":{path:"/top",anonymous:!0},"g b":{path:"/my/activity/bookmarks"},"g p":{path:"/my/activity"},"g m":{path:"/my/messages"},"g d":{path:"/my/activity/drafts"},"g s":{handler:"goToFirstSuggestedTopic",anonymous:!0},"g j":{handler:"goToNextTopic",anonymous:!0},"g k":{handler:"goToPreviousTopic",anonymous:!0},home:{handler:"goToFirstPost",anonymous:!0},"command+up":{handler:"goToFirstPost",anonymous:!0},j:{handler:"selectDown",anonymous:!0},k:{handler:"selectUp",anonymous:!0},l:{click:".topic-post.selected button.toggle-like"},"m m":{handler:"setTrackingToMuted"},"m r":{handler:"setTrackingToRegular"},"m t":{handler:"setTrackingToTracking"},"m w":{handler:"setTrackingToWatching"},"o,enter":{click:".topic-list tr.selected a.title, .latest-topic-list .latest-topic-list-item.selected div.main-link a.title, .top-topic-list .latest-topic-list-item.selected div.main-link a.title, .latest .featured-topic.selected a.title, .search-results .fps-result.selected .search-link",anonymous:!0},tab:{handler:"switchFocusCategoriesPage",anonymous:!0},p:{handler:"showCurrentUser"},q:{handler:"quoteReply"},r:{postAction:"replyToPost"},s:{click:".topic-post.selected a.post-date",anonymous:!0},"shift+j":{handler:"nextSection",anonymous:!0},"shift+k":{handler:"prevSection",anonymous:!0},"shift+p":{handler:"pinUnpinTopic"},"shift+r":{handler:"replyToTopic"},"shift+s":{click:"#topic-footer-buttons button.share-and-invite",anonymous:!0},"shift+l":{handler:"goToUnreadPost"},"shift+z shift+z":{handler:"logout"},"shift+f11":{handler:"fullscreenComposer",global:!0},"shift+u":{handler:"deferTopic"},"shift+a":{handler:"toggleAdminActions"},"shift+b":{handler:"toggleBulkSelect"},t:{postAction:"replyAsNewTopic"},u:{handler:"goBack",anonymous:!0},x:{handler:"bulkSelectItem"},"shift+d":{click:"#dismiss-new-bottom, #dismiss-new-top, #dismiss-topics-bottom, #dismiss-topics-top"}};function k(e){e.preventDefault(),e.stopPropagation()}let T={init(e,t){(0,s.setOwner)(this,t),this.keyTrapper&&(this.keyTrapper.destroy(),this.keyTrapper=null),this.keyTrapper=new e,this._stopCallback(),this.searchService=t.lookup("service:search"),this.appEvents=t.lookup("service:app-events"),this.currentUser=t.lookup("service:current-user"),this.siteSettings=t.lookup("service:site-settings"),this.site=t.lookup("service:site"),this.currentUser?.can_send_private_messages||delete w["g m"],m.length&&m.forEach(e=>delete w[e])},bindEvents(){Object.keys(w).forEach(e=>{this.bindKey(e)})},teardown(){Object.getPrototypeOf(this.keyTrapper).stopCallback=this.oldStopCallback,this.oldStopCallback=null,this.keyTrapper?.destroy(),this.keyTrapper=null},isTornDown(){return null==this.keyTrapper},bindKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!this.isTornDown()&&(t||(t=w[e]),(t.anonymous||this.currentUser)&&(t.path?this._bindToPath(t.path,e):t.handler?t.global?this._globalBindToFunction(t.handler,e):this._bindToFunction(t.handler,e):t.postAction?this._bindToSelectedPost(t.postAction,e):t.click&&this._bindToClick(t.click,e)))},pause(e){if(!this.isTornDown()){if(!e){this.keyTrapper.paused=!0;return}e.forEach(e=>this.keyTrapper.unbind(e))}},unpause(e){if(!this.isTornDown()){if(!e){this.keyTrapper.paused=!1;return}e.forEach(e=>this.bindKey(e))}},addShortcut(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.bindKey(e.trim(),{handler:t,...i}),i.help&&function(e){let t=e.category;_[t]?_[t]=_[t].concat([e]):_[t]=[e]}(i.help)},unbind(e){Object.keys(e).forEach(e=>this.keyTrapper.unbind(e))},toggleBookmark(e){let t=this._getSelectedPost();if(t){k(e),this.sendToSelectedPost("toggleBookmark",t);return}let i=this._getSelectedTopicListItem();if(i){k(e),this.sendToTopicListItemView("toggleBookmark",i);return}this._bookmarkCurrentTopic(e)},toggleBookmarkTopic(e){let t=this._getSelectedTopicListItem();if(t){k(e),this.sendToTopicListItemView("toggleBookmark",t);return}this._bookmarkCurrentTopic(e)},_bookmarkCurrentTopic(e){this.currentTopic()&&document.querySelectorAll(".posts-wrapper").length&&(k(e),(0,s.getOwner)(this).lookup("controller:topic").send("toggleBookmark"))},logout(){(0,s.getOwner)(this).lookup("route:application").send("logout")},quoteReply(){return this.isPostTextSelected?this.appEvents.trigger("quote-button:quote"):(this.sendToSelectedPost("replyToPost"),(0,l.default)(()=>document.querySelector(".d-editor .quote")?.click(),500)),!1},editPost(){return this.siteSettings.enable_fast_edit&&this.isPostTextSelected?this.appEvents.trigger("quote-button:edit"):this.sendToSelectedPost("editPost"),!1},goToNextTopic(){(0,u.nextTopicUrl)().then(e=>{e&&d.default.routeTo(e)})},goToPreviousTopic(){(0,u.previousTopicUrl)().then(e=>{e&&d.default.routeTo(e)})},goToFirstSuggestedTopic(){let e=document.querySelector("#suggested-topics a.raw-topic-link");if(e)e.click();else{let e=(0,s.getOwner)(this).lookup("controller:topic"),t=`/t/${e.get("model.id")}/last.json`;(0,r.ajax)(t).then(t=>{if(t.suggested_topics&&t.suggested_topics.length>0){let i=e.store.createRecord("topic",t.suggested_topics[0]);d.default.routeTo(i.get("url"))}})}},goToFirstPost(){this._jumpTo("jumpTop")},goToLastPost(){this._jumpTo("jumpBottom")},goToUnreadPost(){this._jumpTo("jumpUnread")},_jumpTo(e){document.querySelector(".container.posts")&&(0,s.getOwner)(this).lookup("controller:topic").send(e)},replyToTopic(){return this._replyToPost(),!1},selectDown(){this._moveSelection({direction:1,scrollWithinPosts:!0})},selectUp(){this._moveSelection({direction:-1,scrollWithinPosts:!0})},bulkSelectItem(){let e=document.querySelector(".selected input.bulk-select, .selected .select-post");e?.click()},goBack(){history.back()},nextSection(){this._changeSection(1)},prevSection(){this._changeSection(-1)},showPageSearch(e){(0,n.run)(()=>{this.appEvents.trigger("header:keyboard-trigger",{type:"page-search",event:e})})},printTopic(e){(0,n.run)(()=>{document.querySelector(".container.posts")&&(e.preventDefault(),(0,s.getOwner)(this).lookup("controller:topic").print())})},createTopic(e){if(!(this.currentUser&&this.currentUser.can_create_topic))return;e.preventDefault();let t=document.querySelector("#create-topic");if(t){t.click();return}(0,s.getOwner)(this).lookup("service:composer").open({action:p.default.CREATE_TOPIC,draftKey:p.default.NEW_TOPIC_KEY})},focusComposer(e){let t=(0,s.getOwner)(this).lookup("service:composer");e&&(e.preventDefault(),e.stopPropagation()),t.focusComposer(e)},filterSidebar(){let e=document.querySelector(".sidebar-filter__input");e&&(this._scrollTo(0),e.focus())},fullscreenComposer(){let e=(0,s.getOwner)(this).lookup("service:composer");e.get("model")&&e.toggleFullscreen()},pinUnpinTopic(){(0,s.getOwner)(this).lookup("controller:topic").togglePinnedState()},goToPost(e){k(e),this.appEvents.trigger("topic:keyboard-trigger",{type:"jump"})},toggleSearch(e){return this.appEvents.trigger("header:keyboard-trigger",{type:"search",event:e}),!1},toggleHamburgerMenu(e){this.appEvents.trigger("header:keyboard-trigger",{type:"hamburger",event:e})},showCurrentUser(e){this.appEvents.trigger("header:keyboard-trigger",{type:"user",event:e})},showHelpModal(){(0,s.getOwner)(this).lookup("controller:application").send("showKeyboardShortcutsHelp")},setTrackingToMuted(){(0,n.throttle)(this,"_setTracking",0,a.INPUT_DELAY,!0)},setTrackingToRegular(){(0,n.throttle)(this,"_setTracking",1,a.INPUT_DELAY,!0)},setTrackingToTracking(){(0,n.throttle)(this,"_setTracking",2,a.INPUT_DELAY,!0)},setTrackingToWatching(){(0,n.throttle)(this,"_setTracking",3,a.INPUT_DELAY,!0)},_setTracking(e){let t=this.currentTopic();t&&t.details.updateNotifications(e)},sendToTopicListItemView(e,t){if(t=t||document.querySelector("tr.selected.topic-list-item")){let i=(0,s.getOwner)(this).lookup("-view-registry:main");i&&i[t.id].send(e)}},currentTopic(){let e=(0,s.getOwner)(this).lookup("controller:topic");if(e){let t=e.get("model");if(t)return t}},get isPostTextSelected(){return!!(0,s.getOwner)(this).lookup("controller:topic").quoteState.postId},sendToSelectedPost(e,t){let i;let n=t||document.querySelector(".topic-post.selected article.boxed");if(n&&(i=parseInt(n.dataset.postId,10)),i){let t=(0,s.getOwner)(this).lookup("controller:topic"),n=t.get("model.postStream.posts").findBy("id",i);if(n){let r=t.actions[e];r||(r=(0,s.getOwner)(this).lookup("route:topic").actions[e]);let o=r.call(t,n);o&&o.then&&this.appEvents.trigger("post-stream:refresh",{id:i})}}return!1},_bindToSelectedPost(e,t){this.keyTrapper.bind(t,()=>this.sendToSelectedPost(e))},_bindToPath(e,t){this.keyTrapper.bind(t,()=>d.default.routeTo(e))},_bindToClick(e,t){t=t.split(","),this.keyTrapper.bind(t,function(t){let i=document.querySelector(e);if(t&&"Enter"===t.key){if(!i)return;t.preventDefault()}i?.click()})},_globalBindToFunction(e,t){let i="function"==typeof e?e:this[e];"function"==typeof i&&this.keyTrapper.bindGlobal(t,i.bind(this))},_bindToFunction(e,t){let i="function"==typeof e?e:this[e];"function"==typeof i&&this.keyTrapper.bind(t,i.bind(this))},_moveSelection(e){let{direction:t,scrollWithinPosts:i}=e,s=+new Date,n=this._lastMoveTime&&s-this._lastMoveTime<150;this._lastMoveTime=s;let r=this._findArticles();if(void 0===r)return;let a=(r=Array.from(r)).find(e=>e.classList.contains("selected"));if(a||(a=r.find(e=>"true"===e.dataset.isLastViewedTopic)),a&&!n){let e=a.getBoundingClientRect();(e.bottom<(0,c.headerOffset)()||e.top>window.innerHeight)&&(a=null)}if(!a){let e=(0,c.headerOffset)();(a=r.find(i=>t>0?i.getBoundingClientRect().top>=e:i.getBoundingClientRect().bottom>=e))||(a=r[r.length-1]),t=0}let l=r.indexOf(a),u=a;if(!n&&0!==t&&u&&i){let e=u.classList.contains("topic-post")&&u.querySelector("#post_1")?0:o.default.offset(u).top,i=o.default.offset(u).top+u.offsetHeight,s=window.scrollY,n=s+window.innerHeight;if(t<0&&s>e)return this._scrollTo(Math.max(s-window.innerHeight+3*(0,c.headerOffset)(),e-(0,c.headerOffset)()));if(t>0&&n0||0===t)break}for(let e of r)e.classList.remove("selected"),e.removeAttribute("tabindex");u.classList.add("selected"),u.setAttribute("tabindex","0"),u.focus(),this.appEvents.trigger("keyboard:move-selection",{articles:r,selectedArticle:u});let p=o.default.offset(u).top,h=p-(0,c.headerOffset)();if(i&&!n&&t<0&&u.offsetHeight>window.innerHeight)return this._scrollTo(p+u.offsetHeight-window.innerHeight);if(u.classList.contains("topic-post"))return this._scrollTo(u.querySelector("#post_1")?0:h);if(h>window.pageYOffset&&p+u.offsetHeight0?.2:.7;this._scrollTo(h-window.innerHeight*m)},_scrollTo(e){window.scrollTo({top:e,behavior:"smooth"})},categoriesTopicsList(){switch(this.siteSettings.desktop_category_page_style){case"categories_with_featured_topics":return document.querySelectorAll(".latest .featured-topic");case"categories_and_latest_topics":case"categories_and_latest_topics_created_date":return document.querySelectorAll(".latest-topic-list .latest-topic-list-item");case"categories_and_top_topics":return document.querySelectorAll(".top-topic-list .latest-topic-list-item");default:return[]}},_findArticles(){let e;return document.querySelector(".posts-wrapper")?document.querySelectorAll(".posts-wrapper .topic-post, .topic-list tbody tr"):document.querySelector(".topic-list")?document.querySelectorAll(".topic-list .topic-list-item"):document.querySelector(".search-results")?document.querySelectorAll(".search-results .fps-result"):(e=this.categoriesTopicsList())?e:void 0},_changeSection(e){if(document.querySelector(".post-stream"))this._moveSelection({direction:e,scrollWithinPosts:!1});else{let t=Array.from(document.querySelectorAll(".nav.nav-pills li")),i=document.querySelector(".nav.nav-pills li.active"),s=t.indexOf(i)+e;s>=0&&sdocument.querySelector(".topic-post.selected article[data-post-id]"),_getSelectedTopicListItem:()=>document.querySelector("tr.selected.topic-list-item"),deferTopic(){(0,s.getOwner)(this).lookup("controller:topic").send("deferTopic")},toggleAdminActions(){document.querySelector(".toggle-admin-menu")?.click()},toggleBulkSelect(){let e=document.querySelector("button.bulk-select");e?e.click():(0,s.getOwner)(this).lookup("controller:topic").send("toggleMultiSelect")},toggleArchivePM(){(0,s.getOwner)(this).lookup("controller:topic").send("toggleArchiveMessage")},webviewKeyboardBack(){h.capabilities.isAppWebview&&window.history.back()},webviewKeyboardForward(){h.capabilities.isAppWebview&&window.history.forward()}}},53306:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(62053),n=i(77093);function r(){if(!(0,n.isTesting)()||"number"!=typeof[...arguments].at(-1))return(0,s.later)(...arguments);{let e=[].slice.call(arguments,0,-1);return e.push(10),s.later.apply(void 0,e)}}},81132:(e,t,i)=>{"use strict";function s(e){e.decorateCookedElement(e=>e.querySelectorAll("img").forEach(e=>e.loading="lazy")),e.decorateCookedElement(t=>{let i=e.container.lookup("service:site-settings");t.querySelectorAll("img").forEach(e=>{let{smallUpload:t,dominantColor:s}=e.dataset;(!i.secure_uploads||!t)&&(t||s)&&!function(e){return!!e.naturalHeight}(e)&&(e.onload||(e.onload=()=>{e.style.removeProperty("background-image"),e.style.removeProperty("background-size"),e.style.removeProperty("background-color")}),t?(e.style.setProperty("background-image",`url(${t})`),e.style.setProperty("background-size","cover")):e.style.setProperty("background-color",`#${s}`))})},{afterAdopt:!0})}i.r(t),i.d(t,{nativeLazyLoading:()=>s})},47991:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cleanupLightboxes:()=>f,default:()=>_,setupLightboxes:()=>g});var s=i(25124),n=i.n(s),r=i(43006),o=i(77093),a=i(99434),l=i(65573),c=i(51429),u=i(97637),d=i(53404),p=i(42236),h=i(59864),m=i(843);async function g(e){let{container:t,selector:i}=e;(0,a.getOwnerWithFallback)(this).lookup("service:lightbox").setupLightboxes({container:t,selector:i})}function f(){return(0,a.getOwnerWithFallback)(this).lookup("service:lightbox").cleanupLightboxes()}function _(e,t){if(!e)return;let i=e.querySelectorAll(u.SELECTORS.DEFAULT_ITEM_SELECTOR);if(!i.length)return;let s=(0,l.helperContext)().capabilities,a=s.touch;(0,d.default)("/javascripts/jquery.magnific-popup.min.js").then(function(){n()(i).magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:300*!(0,o.isTesting)(),mainClass:"mfp-zoom-in",tClose:(0,m.i18n)("lightbox.close"),tLoading:r.spinnerHTML,prependTo:(0,o.isTesting)()&&document.getElementById("ember-testing"),gallery:{enabled:!0,tPrev:(0,m.i18n)("lightbox.previous"),tNext:(0,m.i18n)("lightbox.next"),tCounter:(0,m.i18n)("lightbox.counter"),navigateByImgClick:a},ajax:{tError:(0,m.i18n)("lightbox.content_load_error")},callbacks:{open(){if(!a){let e=this.wrap,t=this.currItem.img,i=t.css("max-height");e.on("click.pinhandler","img",function(){e.toggleClass("mfp-force-scrollbars"),t.css("max-height",e.hasClass("mfp-force-scrollbars")?"none":i)})}s.isAppWebview&&(0,p.postRNWebviewMessage)("headerBg",n()(".mfp-bg").css("background-color"))},change(){this.wrap.removeClass("mfp-force-scrollbars")},beforeClose(){this.wrap.off("click.pinhandler"),this.wrap.removeClass("mfp-force-scrollbars"),s.isAppWebview&&(0,p.postRNWebviewMessage)("headerBg",n()(".d-header").css("background-color"))}},image:{tError:(0,m.i18n)("lightbox.image_load_error"),titleSrc(e){let i=e.el.data("download-href")||e.src,s=[(0,p.escapeExpression)(e.el.attr("title")),n()("span.informations",e.el).text()];return(!t.prevent_anons_from_downloading_files||h.default.current())&&s.push(''+(0,c.renderIcon)("string","download")+(0,m.i18n)("lightbox.download")+""),s.push(''+(0,c.renderIcon)("string","image")+(0,m.i18n)("lightbox.open")+""),s.join(" · ")}}})})}},97637:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SELECTORS:()=>s});let s={DEFAULT_ITEM_SELECTOR:"*:not(.spoiler):not(.spoiled) a.lightbox"}},18029:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,reset:()=>r});let s={},n=[!1,null];function r(){s={}}class o{constructor(e){this._links=e}check(e,t){if(s[t])return n;let i=t.toLowerCase().replace(/^https?:\/\//,"").replace(/\/$/,"");if(s[i])return n;let r=this._links[i];if(r){if(e){let t=e.get("post_number");if(1===t||t===r.post_number||moment(e.get("created_at")).isBefore(moment().subtract(2,"weeks")))return n}return s[t]=!0,s[i]=!0,[!0,r]}return n}}},99236:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{fetchUnseenMentions:()=>f,linkSeenMentions:()=>g,resetMentions:()=>h});var n=i(6864),r=i(94636),o=i(87353),a=i(42236);let l={},c={},u={},d={},p={};function h(){l={},c={},u={},d={},p={},s=null}function m(e,t,i){let n=document.createElement("a");i.group?(n.href=(0,r.default)(`/g/${t}`),n.innerText=`@${t}`,n.classList.add("mention-group"),!i.reason&&i.details&&(n.dataset.mentionableUserCount=i.details.user_count,n.dataset.maxMentions=s)):(n.href=(0,o.userPath)(t.toLowerCase()),n.innerText=`@${(0,a.formatUsername)(t)}`,n.classList.add("mention")),n.dataset.name=t,i.reason&&(n.dataset.reason=i.reason,i.details&&(n.dataset.notifiedUserCount=i.details.notified_count)),e.replaceWith(n)}function g(e,t){let i=[...e.querySelectorAll("span.mention:not(.mention-tested)")];if(0===i.length)return[];let s=i.map(e=>e.innerText.slice(1));return!function(e,t){e.forEach((e,i)=>{let s=t[i];c[s.toLowerCase()]?m(e,s,{reason:u[s]}):d[s]?m(e,s,{group:!0,details:d[s],reason:p[s]}):l[s]&&e.classList.add("mention-tested")})}(i,s),s.uniq().filter(e=>!l[e]&&e.length>=t.min_username_length)}async function f(e){let{names:t,topicId:i,allowedNames:r}=e,o=await (0,n.ajax)("/composer/mentions",{data:{names:t,topic_id:i,allowed_names:r}});return t.forEach(e=>l[e]=!0),o.users.forEach(e=>c[e]=!0),Object.entries(o.user_reasons).forEach(e=>{let[t,i]=e;return u[t]=i}),Object.entries(o.groups).forEach(e=>{let[t,i]=e;return d[t]=i}),Object.entries(o.group_reasons).forEach(e=>{let[t,i]=e;return p[t]=i}),s=o.max_users_notified_per_group_mention,o}},99080:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(983);async function n(){let e=i.e(145).then(i.bind(i,145));return(0,s.YZ)(e),await e}},87198:(e,t,i)=>{"use strict";let s;async function n(){return s??=await i.e(114).then(i.bind(i,2114))}function r(e){s=e}function o(){if(!s)throw"Faker has not been loaded yet. Ensure `setLoadedFaker()` or `loadFaker()` have been called first";return s}i.r(t),i.d(t,{default:()=>n,getLoadedFaker:()=>o,setLoadedFaker:()=>r})},86660:(e,t,i)=>{"use strict";async function s(){return await i.e(374).then(i.bind(i,57374))}i.r(t),i.d(t,{default:()=>s})},47806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{loadOneboxes:()=>r});var s=i(61150),n=i(87784);function r(e,t,i,r,o,a,l){let c={},u={},d=e.querySelectorAll(`aside.onebox, a.${n.LOADING_ONEBOX_CSS_CLASS}, a.inline-onebox`).length;return e.querySelectorAll("a.onebox, a.inline-onebox-loading").forEach(e=>{let t=e.classList.contains("inline-onebox-loading"),i=t?u:c;d0&&function(e){let{oneboxes:t,ajax:i,topicId:s,categoryId:r,refresh:o,offline:a}=e;Object.values(t).forEach(e=>{e.forEach(e=>{(0,n.load)({elem:e,ajax:i,categoryId:r,topicId:s,refresh:o,offline:a})})})}({oneboxes:c,ajax:t,topicId:i,categoryId:r,refresh:a,offline:l}),Object.keys(u).length>0&&function(e,t,i,n){(0,s.applyInlineOneboxes)(e,t,{categoryId:i,topicId:n})}(u,t,i,r),Object.keys(c).length+Object.keys(u).length}},53404:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cacheBuster:()=>m,default:()=>h,loadCSS:()=>p});var s=i(62053),n=i(983),r=i(24571),o=i(6864),a=i(94636),l=i(64133);let c=(0,n.lQ)("load-script"),u={},d={};function p(e){return h(e,{css:!0})}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u[e])return r.Promise.resolve();e=m(e);let i=t.css?(0,a.default)(e):(0,a.getURLWithCDN)(e);return document.querySelectorAll("script").forEach(e=>{let t=e.getAttribute("src");t&&t!==i&&!d[t]&&(u[t]=!0)}),new r.Promise(function(n){let a;if(u[i])return n();if(d[i])return d[i].then(n);d[i]=new r.Promise(function(e){a=e}),d[i].then(function(){delete d[i]});let l=function(s){if(t?.css){let e=document.createElement("style");e.innerText=s,document.querySelector("head").appendChild(e)}a(),n(),u[e]=!0,u[i]=!0};t.css?(0,o.ajax)({url:i,dataType:"text"}).then(l):function(e,t){let i=document.getElementsByTagName("head")[0],n=document.createElement("script");n.src=e;let r=c.beginAsync();n.onerror=function(){c.endAsync(r)},n.onload=n.onreadystatechange=function(e,i){!i&&n.readyState&&"loaded"!==n.readyState&&"complete"!==n.readyState||(n=n.onload=n.onreadystatechange=null,i||(0,s.run)(null,t)),c.endAsync(r)},i.appendChild(n)}(i,l)})}function m(e){if(l.PUBLIC_JS_VERSIONS){let[t,...i]=e.split("/").filter(Boolean);if("javascripts"===t){i=i.join("/").toLowerCase();let e=l.PUBLIC_JS_VERSIONS[i];if(e)return`/javascripts/${e}`}}return e}},48079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});let{define:s,require:n}=globalThis;function r(e,t){n.has(e)||s(e,t)}},16143:(e,t,i)=>{"use strict";function s(e,t){t.discourse_local_dates_enabled&&(0,requirejs("discourse/plugins/discourse-local-dates/initializers/discourse-local-dates").applyLocalDates)(e,t)}i.r(t),i.d(t,{applyLocalDates:()=>s})},10335:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(63748),n=i(77270);let r=["scroll","touchmove","mousedown","wheel","keyup"],o=["mousedown","mousewheel","touchmove","wheel"];function a(e,t,i){return Math.abs(t-i)this.options.originalTopOffset?i-this.options.originalTopOffset:i-(0,n.headerOffset)()}clearLock(){this._removeListener(),window.cancelAnimationFrame(this._requestId),this.options.finished&&this.options.finished()}lock(){this.startedAt=Date.now(),this.previousTop=this.elementTop(),this.previousTop&&window.scrollTo(window.pageXOffset,this.previousTop),this._requestId=window.requestAnimationFrame(this._performLocking),this._removeListener(),this._addListener()}_scrollListener(e){(e.which>0||o.includes(e.type))&&this.clearLock()}static #e=(()=>dt7948.n(this.prototype,"_scrollListener",[s.bind]))();_addListener(){r.forEach(e=>{document.body.addEventListener(e,this._scrollListener,{passive:!0})})}_removeListener(){r.forEach(e=>{document.body.removeEventListener(e,this._scrollListener)})}_performLocking(){let e=this.elementTop();if(!this.previousTop&&!e){Date.now()-this.startedAt>5e3&&this.clearLock(),this._requestId=window.requestAnimationFrame(this._performLocking);return}let t=Math.max(0,e);return isNaN(t)?this.clearLock():(a(4,t,this.previousTop)&&a(4,window.scrollY,t)||(window.scrollTo(window.pageXOffset,t),this.previousTop=t),this.options.originalTopOffset||Date.now()-this.startedAt>1e3)?this.clearLock():void(this._requestId=window.requestAnimationFrame(this._performLocking))}static #i=(()=>dt7948.n(this.prototype,"_performLocking",[s.bind]))()}},63464:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75983),n=i(77093),r=i(94636),o=i(65573);function a(){let{redirect:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,n.isTesting)())return;let t=(0,o.helperContext)();if(t.keyValueStore.abandonLocal(),!(0,s.isEmpty)(e)){window.location.href=e;return}let i=t.siteSettings.login_required?"/login":"/";window.location.href=(0,r.default)(i)}},33297:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(16547),n=i(73018);function r(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,initializer:()=>s(...n)}}function o(e){return function(){for(var t=arguments.length,i=Array(t),o=0;o{"use strict";async function s(e){return await createImageBitmap(e)}async function n(e){let t=function(e){let t=e.width,i=e.height,s=new OffscreenCanvas(t,i).getContext("2d");if(!s)throw"Could not create canvas context";return s.drawImage(e,0,0,t,i,0,0,t,i),s.getImageData(0,0,t,i)}(await s(e));if(function(e,t){if(!/(\.|\/)(png|webp)$/i.test(e))return!1;for(let e=0;en})},5068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c,forceMobile:()=>a,resetMobile:()=>l});var s=i(25124),n=i.n(s),r=i(77093);let o=!1;function a(){o=!0}function l(){o=!1}let c={isMobileDevice:!1,mobileView:!1,init(){let e=n()("html");if(this.isMobileDevice=o||e.hasClass("mobile-device"),this.mobileView=o||e.hasClass("mobile-view"),!(0,r.isTesting)()&&!o)try{if(window.location.search.match(/mobile_view=1/)&&(localStorage.mobileView=!0),window.location.search.match(/mobile_view=0/)&&(localStorage.mobileView=!1),window.location.search.match(/mobile_view=auto/)&&localStorage.removeItem("mobileView"),localStorage.mobileView){let e="true"===localStorage.mobileView;e!==this.mobileView&&this.reloadPage(e)}}catch{}},toggleMobileView(){try{localStorage&&(localStorage.mobileView=!this.mobileView)}catch{}this.reloadPage(!this.mobileView)},reloadPage(e){window.location.assign(window.location.pathname+"?mobile_view="+(e?"1":"0"))}}},87986:(e,t,i)=>{"use strict";i.r(t),i.d(t,{applyModelTransformations:()=>o,registerModelTransformer:()=>r,resetModelTransformers:()=>a});var s=i(62267);let n={};function r(e,t){n[e]||(n[e]=[]);let i={prefix:(0,s.consolePrefix)(),execute:t};n[e].push(i)}async function o(e,t){for(let i of n[e]||[])try{await i.execute(t)}catch(t){console.error(i.prefix,`transformer for the \`${e}\` model failed with:`,t,t?.stack)}}function a(){n={}}},98590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MultiCache:()=>s});class s{constructor(e){this.cb=e,this.values=new Map,this.fetchTimes=[]}reset(){this.values=new Map,this.fetchTimes=[]}hadTooManyCalls(){let[e,t]=this.fetchTimes;return e&&t&&t-e<1e3}async fetch(e){this.fetchTimes=[this.fetchTimes[this.fetchTimes.length-1],new Date];let t=[];for(let i of e=e.uniq())this.values.has(i)||t.push(i);if(0!==t.length){let e=this.cb(t);for(let i of t)this.values.set(i,e);e.catch(()=>{for(let e of t)this.values.delete(e)})}let i=new Map;for(let t of e)i.set(t,(await this.values.get(t)).get(t));return i}}},80706:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(8554),n=i(75983),r=i(843);class o{static #e=(()=>dt7948.g(this.prototype,"forceValidationReason",[s.tracked],function(){return!1}))();#u3=(()=>void dt7948.i(this,"forceValidationReason"))();constructor(e){this.owner=e}get nameTitle(){return(0,r.i18n)(this.owner.site.full_name_required_for_signup?"user.name.title":"user.name.title_optional")}get nameValidation(){return this.owner.site.full_name_required_for_signup&&(0,n.isEmpty)(this.owner.get("accountName"))?{failed:!0,ok:!1,message:(0,r.i18n)("user.name.required"),reason:this.forceValidationReason?(0,r.i18n)("user.name.required"):null,element:document.querySelector("#new-account-name")}:{ok:!0}}}},88784:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={narrowDesktopView:!1,init(){this.narrowDesktopView=this.isNarrowDesktopView(document.body.getBoundingClientRect().width)},isNarrowDesktopView:e=>e<768}},23777:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NotificationLevels:()=>s,allLevels:()=>r,buttonDetails:()=>n,topicLevels:()=>o});let s={WATCHING_FIRST_POST:4,WATCHING:3,TRACKING:2,REGULAR:1,NORMAL:1,MUTED:0};function n(e){switch(e){case 4:return{id:4,key:"watching_first_post",icon:"d-watching-first"};case 3:return{id:3,key:"watching",icon:"d-watching"};case 2:return{id:2,key:"tracking",icon:"d-tracking"};case 0:return{id:0,key:"muted",icon:"d-muted"};default:return{id:1,key:"regular",icon:"d-regular"}}}let r=[3,2,4,1,0].map(n),o=r.filter(e=>4!==e.id)},84135:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getRenderDirector:()=>C,registerNotificationTypeRenderer:()=>T,resetNotificationTypeRenderers:()=>S});var s=i(85758),n=i(15273),r=i(24607),o=i(54071),a=i(4905),l=i(64927),c=i(83139),u=i(9686),d=i(97942),p=i(21115),h=i(67315),m=i(37553),g=i(45044),f=i(80346),_=i(11148),y=i(25182),b=i(35053);let w={bookmark_reminder:r.default,custom:o.default,edited:a.default,granted_badge:l.default,group_mentioned:c.default,group_message_summary:u.default,invitee_accepted:d.default,liked:p.default,liked_consolidated:h.default,linked_consolidated:m.default,membership_request_accepted:g.default,membership_request_consolidated:f.default,moved_post:_.default,new_features:y.default,admin_problems:s.default,watching_first_post:b.default},k={};function T(e,t){k[e]=t(n.default)}function S(){k={}}function C(e,t,i,s,r){return new(k[e]||w[e]||n.default)({notification:t,currentUser:i,siteSettings:s,site:r})}},85758:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(94636),n=i(15273),r=i(843);let o=class extends n.default{get label(){return null}get description(){return(0,r.i18n)("notifications.admin_problems")}get linkHref(){return(0,s.default)("/admin")}get icon(){return"triangle-exclamation"}}},15273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(42256),n=i(50409),r=i(87353),o=i(42236),a=i(843);class l{constructor(e){let{notification:t,currentUser:i,siteSettings:s,site:n}=e;this.notification=t,this.currentUser=i,this.siteSettings=s,this.site=n}get classNames(){let e=["notification"];return this.notification.read?e.push("read"):e.push("unread"),this.notificationName&&e.push(this.notificationName.replace(/_/g,"-")),this.notification.is_warning&&e.push("is-warning"),e}get linkHref(){return this.topicId?(0,o.postUrl)(this.notification.slug,this.topicId,this.notification.post_number):this.notification.data.group_id?(0,r.userPath)(`${this.notification.data.username}/messages/${this.notification.data.group_name}`):void 0}get linkTitle(){return this.notificationName?(0,a.i18n)(`notifications.titles.${this.notificationName}`):""}get icon(){return`notification.${this.notificationName}`}get label(){return this.siteSettings.prioritize_full_name_in_ux&&this.notification.acting_user_name||this.username}get description(){let e=(0,n.emojiUnescape)(this.notification.fancy_title);return e?(0,s.htmlSafe)(e):this.notification.data.topic_title}get labelClasses(){return[]}get descriptionClasses(){return[]}get topicId(){return this.notification.topic_id}get username(){return(0,o.formatUsername)(this.notification.data.display_username)}get notificationName(){return this.site.notificationLookup[this.notification.notification_type]}}},24607:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(94636),n=i(15273),r=i(843);let o=class extends n.default{get linkTitle(){return this.notification.data.bookmark_name?(0,r.i18n)("notifications.titles.bookmark_reminder_with_name",{name:this.notification.data.bookmark_name}):super.linkTitle}get description(){return super.description||this.notification.data.title}get label(){return null}get linkHref(){return super.linkHref||(this.notification.data.bookmarkable_url?(0,s.default)(this.notification.data.bookmarkable_url):void 0)}}},54071:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(15273),n=i(843);let r=class extends s.default{get linkTitle(){if(this.notification.data.title)return(0,n.i18n)(this.notification.data.title)}get icon(){return`notification.${this.notification.data.message}`}}},4905:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(15273),n=i(25198);let r=class extends s.default{onClick(){(0,n.setLastEditNotificationClick)(this.notification.topic_id,this.notification.post_number,this.notification.data.revision_number)}}},64927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(94636),n=i(15273),r=i(843);let o=class extends n.default{get linkHref(){let e=this.notification.data.badge_id;if(!e)return super.url;{let t=this.notification.data.badge_slug;t||(t=this.notification.data.badge_name.replace(/[^A-Za-z0-9_]+/g,"-").toLowerCase());let i=this.notification.data.username;return i=i?`?username=${i.toLowerCase()}`:"",(0,s.default)(`/badges/${e}/${t}${i}`)}}get description(){return(0,r.i18n)("notifications.granted_badge",{description:this.notification.data.badge_name})}get label(){return null}}},83139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(15273);let n=class extends s.default{get label(){return`${this.username} @${this.notification.data.group_name}`}get labelClasses(){return["mention-group","notify"]}}},9686:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get description(){return(0,r.i18n)("notifications.group_message_summary",{count:this.notification.data.inbox_count,group_name:this.notification.data.group_name})}get label(){return null}get linkHref(){return(0,n.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}},97942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get linkHref(){return(0,n.userPath)(this.notification.data.display_username)}get description(){return(0,r.i18n)("notifications.invitee_accepted_your_invitation")}}},67315:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get linkHref(){return(0,n.userPath)(`${this.currentUser.username}/notifications/likes-received?acting_username=${this.notification.data.username}`)}get description(){return(0,r.i18n)("notifications.liked_consolidated_description",{count:this.notification.data.count})}}},21115:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(42236),r=i(843);let o=class extends s.default{get label(){return 2===this.count?(0,r.i18n)("notifications.liked_by_2_users",{username:this.username,username2:this.#u8}):this.count>2?(0,r.i18n)("notifications.liked_by_multiple_users",{username:this.username,count:this.count-1}):super.label}get labelClasses(){return 2===this.count?["double-user"]:this.count>2?["multi-user"]:void 0}get count(){return this.notification.data.count}get #u8(){return(0,n.formatUsername)(this.notification.data.username2)}}},37553:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get linkHref(){return(0,n.userPath)(`${this.currentUser.username}/notifications/links?acting_username=${this.notification.data.username}`)}get description(){return(0,r.i18n)("notifications.linked_consolidated_description",{count:this.notification.data.count})}}},45044:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get linkHref(){return(0,n.groupPath)(this.notification.data.group_name)}get description(){return(0,r.i18n)("notifications.membership_request_accepted",{group_name:this.notification.data.group_name})}get label(){return null}}},80346:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15273),n=i(87353),r=i(843);let o=class extends s.default{get linkHref(){return(0,n.userPath)(`${this.notification.username||this.currentUser.username}/messages`)}get description(){return(0,r.i18n)("notifications.membership_request_consolidated",{group_name:this.notification.data.group_name,count:this.notification.data.count})}get label(){return null}}},11148:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(15273),n=i(843);let r=class extends s.default{get label(){return(0,n.i18n)("notifications.user_moved_post",{username:this.username})}}},25182:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(94636),n=i(15273),r=i(843);let o=class extends n.default{get label(){return null}get description(){return(0,r.i18n)("notifications.new_features")}get linkHref(){return(0,s.default)("/admin/whats-new")}get icon(){return"gift"}}},35053:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(15273),n=i(843);let r=class extends s.default{get label(){return(0,n.i18n)("notifications.watching_first_post_label")}}},93805:(e,t,i)=>{"use strict";function s(e){return e&&"object"==typeof e}function n(){let e;for(var t=arguments.length,i=Array(t),n=0;ne&&!s(e)))throw Error('deepMerge: all values should be of type "object"');let r=i.shift();for(;e=i.shift();)!function e(t,i){return Object.keys(i).forEach(n=>{let r=t[n],o=i[n];Array.isArray(r)&&Array.isArray(o)?t[n]=r.concat(o):s(r)&&s(o)?t[n]=e({...r},o):t[n]=o}),t}(r,e||{});return r}function r(e){return JSON.parse(JSON.stringify(e))}i.r(t),i.d(t,{cloneJSON:()=>r,deepEqual:()=>function e(t,i){if(t===i)return!0;if(!(s(t)&&s(i))||Object.keys(t).length!==Object.keys(i).length)return!1;for(let s in t)if(!e(t[s],i[s]))return!1;return!0},deepFreeze:()=>function e(t){for(let i of Reflect.ownKeys(t)){let s=t[i];(s&&"object"==typeof s||"function"==typeof s)&&e(s)}return Object.freeze(t)},deepMerge:()=>n})},77270:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a,headerOffset:()=>o,minimumOffset:()=>r,scrollTopFor:()=>n});var s=i(16547);function n(e){return e-a()}function r(){(0,s.default)("The minimumOffset() helper is deprecated, please use headerOffset() instead.",{since:"2.8.0.beta10",dropFrom:"2.9.0.beta2",id:"discourse.offset-calculator.minimumOffset"});let e=document.querySelector("header.d-header"),t=document.querySelector(".footer-nav-ipad .footer-nav"),i=t?t.offsetHeight:0,n=document.querySelector(".d-header-wrap").getBoundingClientRect();return e?e.offsetHeight+n.top+i:0}function o(){return parseInt(document.documentElement.style.getPropertyValue("--header-offset"),10)||0}function a(){let e=o();if(document.documentElement.classList.contains("mobile-view"))return e;let t=window.innerHeight,i=document.body.clientHeight,s=document.getElementById("topic-bottom").offsetTop;if(i-t>s)return e;let n=window.scrollY+t-s;if(n>0){let r=i-s;return Math.max(e,(t-r)*n/r)}return e}},90092:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(35533),n=i(31049),r=i(94480);function o(e,t,i){t??=e;let o=(0,s.computed)(function(e){return(0,n.getOwner)(this).lookup(`service:${t||(0,r.dasherize)(e)}`)});return i?o(e,t,i):o}},77404:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addGTMPageChangedCallback:()=>h,getTransient:()=>c,googleTagManagerPageChanged:()=>m,resetPageTracking:()=>u,setTransient:()=>l,startPageTracking:()=>d});var s=i(62053),n=i(94636);let r=!1,o={},a=0;function l(e,t,i){o[e]={data:t,target:a+i}}function c(e){return o[e]}function u(){r=!1,a=0,o={}}function d(e,t,i){r||(e.on("routeDidChange",r=>{if(r.isAborted)return;let l="replace"===r.urlMethod&&r.queryParamsOnly;e.send("refreshTitle");let c=(0,n.default)(e.get("url"));(0,s.next)(()=>{t.trigger("page:changed",{url:c,title:i.getTitle(),currentRouteName:e.currentRouteName,replacedOnlyQueryParams:l})}),a++,Object.keys(o).forEach(e=>{let t=o[e];t&&t.target&&t.targete(t)),window.dataLayer.push(t)}},96340:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PLUGIN_API_VERSION:()=>e$,RAW_TOPIC_LIST_DEPRECATION_OPTIONS:()=>eH,withPluginApi:()=>eY});var s=i(25124),n=i.n(s),r=i(83236),o=i(91742),a=i(20797),l=i(13654),c=i(69008),u=i(30799),d=i(4855),p=i(4671),h=i(54664),m=i(66758),g=i(8972),f=i(78329),_=i(86385),y=i(40260),b=i(44620),w=i(9212),k=i(65755),T=i(3506),S=i(64685),C=i(47488),x=i(37437),A=i(92936),E=i(41553),D=i(96820),P=i(72148),M=i(45054),F=i(54527),I=i(23686),N=i(75805),O=i(97054),L=i(35490),R=i(18385),U=i(83296),j=i(56665),B=i(69522),$=i(10094),q=i(81863),V=i(91151),H=i(25733),z=i(91672),W=i(16547),K=i(89801),G=i(91365),Y=i(77093),Q=i(99434),J=i(93301),X=i(18178),Z=i(51429),ee=i(19905),et=i(87986),ei=i(84135),es=i(77404),en=i(72906),er=i(64418),eo=i(92487),ea=i(94399),el=i(14298),ec=i(10028),eu=i(98802),ed=i(47960),ep=i(62101),eh=i(72502),em=i(65525),eg=i(97351),ef=i(85858),e_=i(62267),ey=i(56147),eb=i(1799),ev=i(24833),ew=i(42236),ek=i(4054),eT=i(39965),eS=i(6404),eC=i(89277),ex=i(19268),eA=i(59864),eE=i(93754),eD=i(94045),eP=i(24519),eM=i(75806),eF=i(57350),eI=i(91444),eN=i(58339),eO=i(59095),eL=i(7429),eR=i(36200),eU=i(27672),ej=i(46013),eB=i(36774);let e$="2.0.1",eq=["post-menu","post-user-tip-shim","small-user-list"],eV={since:"v3.4.0.beta3-dev",id:"discourse.post-menu-widget-overrides",url:"https://meta.discourse.org/t/341014"},eH={since:"v3.4.0.beta4-dev",id:"discourse.hbr-topic-list-overrides",url:"https://meta.discourse.org/t/343404"},ez=new WeakMap;function eW(e,t,i,s){if("function"==typeof s)return!0;if(!s.pluginId)return console.warn((0,e_.consolePrefix)(),"To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once."),!0;let n="_"+t+"/"+s.pluginId+"/"+i;if(ez.get(e.class)?.includes(n))return!1;{let t=ez.get(e.class)||[];return t.push(n),ez.set(e.class,t),!0}}function eK(e,t){return function(){try{return e.call(this,...arguments)}catch(e){if(document.dispatchEvent(new CustomEvent("discourse-error",{detail:{messageKey:t,error:e}})),(0,Y.isTesting)())throw e;return}}}class eG{constructor(e,t){this.version=e,this.container=t,this.h=r.h}getCurrentUser(){return this._lookupContainer("service:current-user")}_lookupContainer(e){if(this.container&&!this.container.isDestroying&&!this.container.isDestroyed)return this.container.lookup(e)}_resolveClass(e,t){t=t||{};let i=this.container.registry.normalize(e);if(this.container.cache[i]||"model:user"===i&&this.container.lookup("service:current-user")){console.error((0,e_.consolePrefix)(),`Attempted to modify "${e}", but it was already initialized earlier in the boot process (e.g. via a lookup()). Remove that lookup, or move the modifyClass call earlier in the boot process for changes to take effect. https://meta.discourse.org/t/262064`);return}let s=this.container.factoryFor(i);if(!s){t.ignoreMissing||console.warn((0,e_.consolePrefix)(),`"${i}" was not found by modifyClass`);return}return s}modifyClass(e,t,i){("component:topic-list"===e||"component:topic-list-item"===e||"raw-view:topic-status"===e)&&(0,W.default)(`Modifying '${e}' with 'modifyClass' is deprecated. Use the value transformer 'topic-list-columns' and other new topic-list plugin APIs instead.`,eH);let s=this._resolveClass(e,i);if(s)return eW(s,"member",e,t)&&(delete t.pluginId,"function"==typeof t?(0,H.default)(s.class,t):s.class.reopen?(0,H.withPrependsRolledBack)(s.class,()=>{s.class.reopen(t)}):Object.defineProperties(s.class.prototype||s.class,Object.getOwnPropertyDescriptors(t))),s}modifyClassStatic(e,t,i){("component:topic-list"===e||"component:topic-list-item"===e||"raw-view:topic-status"===e)&&(0,W.default)(`Modifying '${e}' with 'modifyClass' is deprecated. Use the value transformer 'topic-list-columns' and other new topic-list plugin APIs instead.`,eH);let s=this._resolveClass(e,i);if(s)return eW(s,"static",e,t)&&(delete t.pluginId,(0,H.withPrependsRolledBack)(s.class,()=>{s.class.reopenClass(t)})),s}addBehaviorTransformerName(e){(0,eb._addTransformerName)(e,eb.transformerTypes.BEHAVIOR)}registerBehaviorTransformer(e,t){return(0,eb._registerTransformer)(e,eb.transformerTypes.BEHAVIOR,t)}addValueTransformerName(e){(0,eb._addTransformerName)(e,eb.transformerTypes.VALUE)}registerValueTransformer(e,t){return(0,eb._registerTransformer)(e,eb.transformerTypes.VALUE,t)}registerIconRenderer(e){(0,Z.registerIconRenderer)(e)}replaceIcon(e,t){(0,Z.replaceIcon)(e,t)}decorateCooked(e,t){this.decorateCookedElement((t,i)=>e(n()(t),i),t)}decorateCookedElement(e,t){t=t||{},e=eK(e,"broken_decorator_alert"),(0,eF.addDecorator)(e,{afterAdopt:!!t.afterAdopt}),t.onlyStream||this.onAppEvent("decorate-non-stream-cooked-element",e)}addKeyboardShortcut(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ee.default.addShortcut(e,t,i)}disableDefaultKeyboardShortcuts(e){(0,ee.disableDefaultKeyboardShortcuts)(e)}addPosterIcon(e){this.addPosterIcons(e)}addPosterIcons(e){let t=this._lookupContainer("service:site"),i=t&&t.mobileView?"before":"after";(0,eR.decorateWidget)(`poster-name:${i}`,t=>{let i=t.attrs,s=e(i.userCustomFields||{},i);if(s)return Array.isArray(s)||(s=[s]),s.map(e=>{let i;return e.icon?i=(0,Z.iconNode)(e.icon):e.emoji&&(i=e.emoji.split("|").map(i=>{let s={name:i};return e.emojiTitle&&(s.title=!0),t.attach("emoji",s)})),e.text&&(i=[i,e.text]),e.url&&(i=t.h("a",{attributes:{href:e.url}},i)),t.h("span.poster-icon",{className:e.className,attributes:{title:e.title}},i)})})}decorateWidget(e,t){let i=e.split(":")[0];this.#u2(i,"decorateWidget"),(0,eR.decorateWidget)(e,t)}attachWidgetAction(e,t,i){let s=(0,eR.queryRegistry)(e)||this.container.factoryFor(`widget:${e}`)?.class;if(!s){console.error((0,e_.consolePrefix)(),`attachWidgetAction: Could not find widget ${e} in registry`);return}this.#u2(e,"attachWidgetAction"),s.prototype[t]=i}includePostAttributes(){(0,ey.includeAttributes)(...arguments)}addTrackedPostProperties(){for(var e=arguments.length,t=Array(e),i=0;i(0,eC._addTrackedPostProperty)(e)),(0,ey.includeAttributes)(...t)}addPostMenuButton(e,t){(0,W.default)("`api.addPostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eV),eI.apiExtraButtons[e]=t,(0,eI.addButton)(e,t)}addPostAdminMenuButton(e){this.container.lookup("service:admin-post-menu-buttons").addButton(e)}addTopicAdminMenuButton(e){this.container.lookup("service:admin-topic-menu-buttons").addButton(e)}removePostMenuButton(e,t){(0,W.default)("`api.removePostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eV),(0,eI.removeButton)(e,t)}replacePostMenuButton(e,t){(0,W.default)("`api.replacePostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eV),(0,eI.replaceButton)(e,t)}onToolbarCreate(e){(0,d.addToolbarCallback)(e)}addComposerToolbarPopupMenuOption(e){(0,z.addPopupMenuOption)(e)}addToolbarPopupMenuOptionsCallback(e){(0,W.default)("`addToolbarPopupMenuOptionsCallback` has been renamed to `addComposerToolbarPopupMenuOption`",{id:"discourse.add-toolbar-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),this.addComposerToolbarPopupMenuOption(e)}cleanupStream(e){(0,y.addWidgetCleanCallback)("post-stream",e)}onPageChange(e){let t=eK(e,"broken_page_change_alert");this.onAppEvent("page:changed",e=>t(e.url,e.title))}onAppEvent(e,t){let i=this._lookupContainer("service:app-events");i&&i.on(e,t)}customUserAvatarClasses(e){(0,j.registerCustomAvatarHelper)(e)}disableNameSuppressionOnPosts(){(0,eL.disableNameSuppression)()}registerCustomPostMessageCallback(e,t){(0,N.registerCustomPostMessageCallback)(e,t)}addBeforeLoadMoreNotificationsCallback(e){(0,O.addBeforeLoadMoreCallback)(e)}changeWidgetSetting(e,t,i){this.#u2(e,"changeWidgetSetting"),(0,eR.changeSetting)(e,t,i)}preventCloak(e){(0,eO.preventCloak)(e)}createWidget(e,t){return(0,eR.createWidget)(e,t)}reopenWidget(e,t){return this.#u2(e,"reopenWidget"),(0,eR.reopenWidget)(e,t)}addFlagProperty(){(0,W.default)("addFlagProperty has been removed. Use the reviewable API instead.",{id:"discourse.add-flag-property"})}addHeaderPanel(){console.error((0,e_.consolePrefix)(),"api.addHeaderPanel: This API was decommissioned. Use api.headerIcons instead.")}addStorePluralization(e,t){let i=this._lookupContainer("service:store");i&&i.addPluralization(e,t)}registerConnectorClass(e,t,i){(0,en.extraConnectorClass)(`${e}/${t}`,i)}renderInOutlet(e,t){(0,en.extraConnectorComponent)(e,t)}renderBeforeWrapperOutlet(e,t){this.renderInOutlet(`${e}__before`,t)}renderAfterWrapperOutlet(e,t){this.renderInOutlet(`${e}__after`,t)}registerTopicFooterButton(e){(0,er.registerTopicFooterButton)(e)}registerTopicFooterDropdown(e){(0,eo.registerTopicFooterDropdown)(e)}registerDesktopNotificationHandler(e){(0,K.registerDesktopNotificationHandler)(e)}addPostSmallActionIcon(e,t){(0,eN.addPostSmallActionIcon)(e,t)}addGroupPostSmallActionCode(e){(0,eN.addGroupPostSmallActionCode)(e)}addPostSmallActionClassesCallback(e){(0,eN.addPostSmallActionClassesCallback)(e)}addDiscoveryQueryParam(e,t){(0,F.addDiscoveryQueryParam)(e,t)}addTagsHtmlCallback(e,t){(0,el.addTagsHtmlCallback)(e,t)}addUserMenuGlyph(){(0,W.default)("addUserMenuGlyph has been removed. Use api.registerUserMenuTab instead.",{id:"discourse.add-user-menu-glyph"})}addPostClassesCallback(e){(0,eM.addPostClassesCallback)(e)}addTopicParticipantClassesCallback(e){(0,E.addTopicParticipantClassesCallback)(e)}addCustomUserFieldValidationCallback(e){(0,ek.addCustomUserFieldValidationCallback)(e)}addPostTransformCallback(e){(0,eO.addPostTransformCallback)(e)}addNavigationBarItem(e){if(e.name){let t=e.customHref;if(t){let i=this.container.lookup("service:router");e.customHref=function(e,s){return t(e,s,i)}}let i=e.customFilter;if(i){let t=this.container.lookup("service:router");e.customFilter=function(e,s){return i(e,s,t)}}let s=e.forceActive;if(s){let t=this.container.lookup("service:router");e.forceActive=function(e,i){return s(e,i,t)}}let n=e.init;if(n){let t=this.container.lookup("service:router");e.init=function(e,i,s){n(e,i,s,t)}}(0,eS.addNavItem)(e)}else console.warn((0,e_.consolePrefix)(),"A 'name' is required when adding a Navigation Bar Item.",e)}formatUsername(e){(0,ew.replaceFormatter)(e)}modifySelectKit(e){return(0,eB.modifySelectKit)(e)}addGTMPageChangedCallback(e){(0,es.addGTMPageChangedCallback)(e)}addSharingSource(e){ed.default.addSharingId(e.id),ed.default.addSource(e)}addComposerUploadHandler(e,t){(0,c.addComposerUploadHandler)(e,t)}addComposerUploadPreProcessor(e,t){(0,c.addComposerUploadPreProcessor)(e,t)}addComposerUploadMarkdownResolver(e){(0,c.addComposerUploadMarkdownResolver)(e)}addUsernameSelectorDecorator(e){(0,U.addUsernameSelectorDecorator)(e)}composerBeforeSave(e){eT.default.reopen({beforeSave:e})}addComposerSaveErrorCallback(e){(0,eP.addComposerSaveErrorCallback)(e)}serializeToTopic(e,t){eT.default.serializeToTopic(e,t)}serializeToDraft(e,t){eT.default.serializeToDraft(e,t)}serializeOnCreate(e,t){eT.default.serializeOnCreate(e,t)}serializeOnUpdate(e,t){eT.default.serializeOnUpdate(e,t)}addCategorySortCriteria(e){(0,p.addCategorySortCriteria)(e)}addCardClickListenerSelector(e){(0,l.addCardClickListenerSelector)(e)}replaceCategoryLinkRenderer(e){(0,R.replaceCategoryLinkRenderer)(e)}replaceTagRenderer(e){(0,ea.replaceTagRenderer)(e)}registerCustomLastUnreadUrlCallback(e){(0,ex.registerCustomLastUnreadUrlCallback)(e)}registerHighlightJSLanguage(e,t){(0,X.registerHighlightJSLanguage)(e,t)}registerHighlightJSPlugin(e){(0,X.registerHighlightJSPlugin)(e)}addGlobalNotice(e,t,i){(0,m.addGlobalNotice)(e,t,i)}addDocumentTitleCounter(e){(0,u.addPluginDocumentTitleCounter)(e)}decoratePluginOutlet(e,t,i){(0,W.default)("decoratePluginOutlet is deprecated because modifying an Ember-rendered DOM tree can lead to very unexpected errors. Use CSS or plugin outlet connectors instead",{id:"discourse.decorate-plugin-outlet"}),(0,b.addPluginOutletDecorator)(e,t,i||{})}setDesktopTopicTimelineScrollAreaHeight(e){(0,D.setDesktopScrollAreaHeight)(e)}setUserMenuNotificationsLimit(e){(0,P.setNotificationsLimit)(e)}addCategoryLinkIcon(e){(0,R.addExtraIconRenderer)(e)}get headerIcons(){return(0,f.headerIconsDAG)()}get headerButtons(){return(0,g.headerButtonsDAG)()}addToHeaderIcons(e){console.error((0,e_.consolePrefix)(),"api.addToHeaderIcons: This API was decommissioned. Use api.headerIcons instead.")}registerHomeLogoHrefCallback(e){(0,eb._registerTransformer)("home-logo-href",eb.transformerTypes.VALUE,t=>{let{value:i}=t;return e(i)})}addQuickAccessProfileItem(e){(0,M.addUserMenuProfileTabItem)(e)}addFeaturedLinkMetaDecorator(e){(0,ec.addFeaturedLinkMetaDecorator)(e)}addAdvancedSearchOptions(e){(0,k.addAdvancedSearchOptions)(e)}addSaveableUserField(e){(0,eA.addSaveableUserField)(e)}addSaveableUserOptionField(e){(0,eA.addSaveableUserOptionField)(e)}addPluginReviewableParam(e,t){(0,w.addPluginReviewableParam)(e,t)}registerReviewableActionModal(e,t){(0,w.registerReviewableActionModal)(e,t)}setNewCategoryDefaultColors(e,t){(0,eE.setNewCategoryDefaultColors)(e,t)}setNotificationsLimit(e){(0,eD.setNotificationsLimit)(e)}addSearchResultsCallback(e){(0,eu.addSearchResultsCallback)(e)}addLogSearchLinkClickedCallbacks(e){(0,eu.addLogSearchLinkClickedCallbacks)(e)}addSearchSuggestion(e){(0,T.addSearchSuggestion)(e)}addSearchMenuAssistantSelectCallback(e){(0,S.addItemSelectCallback)(e)}forceDropdownForMenuPanels(e){(0,h.forceDropdownForMenuPanels)(e)}downloadCalendar(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,G.downloadCalendar)(e,t,i)}addSearchMenuOnKeyDownCallback(e){(0,x.addOnKeyUpCallback)(e)}addQuickSearchRandomTip(e){(0,C.addQuickSearchRandomTip)(e)}removeDefaultQuickSearchRandomTips(){(0,C.removeDefaultQuickSearchRandomTips)()}addUserSearchOption(e){ej.CUSTOM_USER_SEARCH_OPTIONS.push(e)}dispatchWidgetAppEvent(e,t,i){this.modifyClass(`component:${e}`,{pluginId:`${e}/${t}/${i}`,didInsertElement(){this._super(),this.dispatch(i,t)}},{ignoreMissing:!0})}customizeComposerText(e){(0,eT.registerCustomizationCallback)(e)}addCommunitySectionLink(e,t){(0,eh.addSectionLink)(e,t)}registerUserCategorySectionLinkCountable(e){let{badgeTextFunction:t,route:i,routeQuery:s,shouldRegister:n,refreshCountFunction:r,prioritizeOverDefaults:o}=e;(0,eg.registerCustomCountable)({badgeTextFunction:t,route:i,routeQuery:s,shouldRegister:n,refreshCountFunction:r,prioritizeOverDefaults:o})}registerCustomCategorySectionLinkLockIcon(e){return(0,eg.registerCustomCategoryLockIcon)(e)}registerCustomCategorySectionLinkPrefix(e){let{categoryId:t,prefixType:i,prefixValue:s,prefixColor:n}=e;(0,eg.registerCustomCategorySectionLinkPrefix)({categoryId:t,prefixType:i,prefixValue:s,prefixColor:n})}registerCustomTagSectionLinkPrefixIcon(e){let{tagName:t,prefixValue:i,prefixColor:s}=e;(0,ef.registerCustomTagSectionLinkPrefixIcon)({tagName:t,prefixValue:i,prefixColor:s})}refreshUserSidebarCategoriesSectionCounts(){let e=this._lookupContainer("service:app-events");e?.trigger(A.REFRESH_COUNTS_APP_EVENT_NAME)}addSidebarPanel(e){(0,em.addSidebarPanel)(e)}addAdminSidebarSectionLink(e,t){(0,ep.addAdminSidebarSectionLink)(e,t)}setSidebarPanel(e){this._lookupContainer("service:sidebar-state")?.setPanel(e)}getSidebarPanel(){return this._lookupContainer("service:sidebar-state")?.currentPanel}setCombinedSidebarMode(){this._lookupContainer("service:sidebar-state")?.setCombinedMode()}setSeparatedSidebarMode(){this._lookupContainer("service:sidebar-state").setSeparatedMode()}showSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state").showSwitchPanelButtons()}hideSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state")?.hideSwitchPanelButtons()}addSidebarSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";(0,em.addSidebarSection)(e,t)}registerNotificationTypeRenderer(e,t){(0,ei.registerNotificationTypeRenderer)(e,t)}registerUserMenuTab(e){(0,ev.registerUserMenuTab)(e)}registerModelTransformer(e,t){(0,et.registerModelTransformer)(e,t)}addUserMessagesNavigationDropdownRow(e,t,i){(0,L.registerCustomUserNavMessagesDropdownRow)(e,t,i)}addFullPageSearchType(e,t,i){(0,I.registerFullPageSearchType)(e,t,i)}addBeforeAuthCompleteCallback(e){(0,B.addBeforeAuthCompleteCallback)(e)}registerHashtagType(e,t){(0,J.registerHashtagType)(e,t)}addBulkActionButton(e){(0,a.addBulkDropdownButton)(e)}includeUserFieldPropertyOnSave(e){this.container.lookup("service:admin-custom-user-fields").addProperty(e)}addComposerImageWrapperButton(e,t,i,s){(0,eU.addImageWrapperButton)(e,t,i),(0,c.addApiImageWrapperButtonClickEvent)(s)}addAdminPluginConfigurationNav(e){if(!e){console.warn((0,e_.consolePrefix)(),"A pluginId must be provided!");return}let t=[$.PLUGIN_NAV_MODE_SIDEBAR,$.PLUGIN_NAV_MODE_TOP];for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n=function(e,t){let i,s;let n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),a=Math.min(r.length,o.length);for(i=0;i{"use strict";let s,n,r;i.r(t),i.d(t,{_setOutletDebugCallback:()=>E,buildArgsWithDeprecations:()=>x,clearCache:()=>_,connectorsExist:()=>k,connectorsFor:()=>T,deprecatedArgumentValue:()=>A,expireConnectorCache:()=>y,extraConnectorClass:()=>m,extraConnectorComponent:()=>g,rawConnectorsFor:()=>C,renderedConnectorsFor:()=>S,resetExtraClasses:()=>h});var o=i(50061),a=i(73306),l=i(8635),c=i(16547),u=i(47716);let d={},p={};function h(){d={},p={}}function m(e,t){(0,c.default)("Defining connector classes via registerConnectorClass is deprecated. See https://meta.discourse.org/t/32727 for more modern patterns.",{id:"discourse.register-connector-class-legacy"}),d[e]=t}function g(e,t){if(!(0,o.hasInternalComponentManager)(t))throw Error("klass is not an Ember component");if(!(0,o.getComponentTemplate)(t))throw Error("connector component has no associated template. Ensure the template is colocated or authored with gjs.");if(e.includes("/"))throw Error("invalid outlet name");p[e]??=[],p[e].push(t)}let f=/^discourse(\/[^\/]+)*?(?