1"use strict";(self.webpackChunkinitiative_as_a_service=self.webpackChunkinitiative_as_a_service||[]).push([["src_app_features_sites_sites_module_ts"],{76107(E,g,e){e.d(g,{$p:()=>x,E:()=>T,I6:()=>V,IY:()=>K,K6:()=>k,Kz:()=>U,Le:()=>d,Q:()=>F,Q3:()=>D,SM:()=>N,XI:()=>j,ce:()=>$,dS:()=>z,jx:()=>G,ld:()=>R,sZ:()=>v,uu:()=>t,x:()=>S});var l=e(78884),h=e(45312),f=e(147),a=e(22156),c=e(31957),m=e(26373),p=e(1835),C=e(75810);const y=()=>document.querySelector(".fr-element.fr-view")?.setAttribute("contenteditable","false"),v=()=>({disableClose:!0,width:"424px",data:{title:"You have unsaved changes",message:"All unsaved changes will be lost if you leave. \nDo you still want to leave?",buttons:{cancel:{title:"Leave"},confirm:{title:"Stay"}}}}),S=()=>({disableClose:!0,width:"424px",data:{title:"Publish email templates",message:"You are about to publish changes to the community email templates. This will affect the looks and content of all emails sent to community members.",buttons:{cancel:{title:"Cancel"},confirm:{title:"Publish"}}}}),T=(X,H)=>({disableClose:!0,width:"446px",data:{title:`Send test ${X} email`,messageHTML:`Review email to make sure that everything is in order. It will be sent to your email <span class="confirmation-dialog__email">${H}</span>.`,buttons:{cancel:{title:"Cancel"},confirm:{title:"Send"}}}}),R={key:h.c.froalaLicenseKey,toolbarInline:!0,toolbarButtons:[a.J.BOLD,a.J.ITALIC,a.J.UNDERLINE,a.J.PARAGRAPH_FORMAT,a.J.UNDO,a.J.REDO,a.J.DIVIDER,a.J.ALIGN,a.J.UL,a.J.OL,a.J.INSERT_LINK],pluginsEnabled:[f.D.ALIGN,f.D.LISTS,f.D.PARAGRAPH_FORMAT],listAdvancedTypes:!0,pastePlain:!0,htmlUntouched:!0,pasteDeniedTags:["img","ul","ol","li","table"],events:{"commands.redo":y,"commands.undo":y,initialized:y}},G={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Could not publish your changes. Please try again later.",isDismiss:!0,type:m.C.ERROR,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,showProgressBar:!0}},N={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Emails were published successfully.",type:m.C.SUCCESS,isDismiss:!0,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,showProgressBar:!0}},z={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Could not load email template, please try again later",isDismiss:!0,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,type:m.C.ERROR}},$={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Settings saved successfully",isDismiss:!0,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,type:m.C.SUCCESS}},t={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Could not save the template, please try again later",isDismiss:!0,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,type:m.C.ERROR}},x={horizontalPosition:"center",verticalPosition:"bottom",duration:p.hj,data:{message:"Template saved successfully",isDismiss:!0,horizontalPosition:l.qNj.Center,verticalPosition:l.G0i.Bottom,type:m.C.SUCCESS}},d={horizontalPosition:"end",verticalPosition:"top",duration:p.hj,data:{message:"Emails were sent successfully.",type:m.C.SUCCESS}},j=["Arial","Courier New","Georgia","Tahoma","Times New Roman","Trebuchet MS","Verdana"],U="#editable-content",F="#email-signature",K="#email-banner",D="[signature]",k=[{label:"Reset text to default",id:C.g.RESET_TEXT,icon:{icon:c.m.REPLY,isSVG:!0}}],V=[{label:"Send test email",id:C.g.SEND_TEST_EMAIL,icon:{icon:c.m.GO,isSVG:!0}}]},75810(E,g,e){e.d(g,{g:()=>l});var l=function(h){return h.SEND_TEST_EMAIL="send test email",h.RESET_TEXT="reset text to default",h}(l||{})},35097(E,g,e){e.d(g,{X:()=>h,r:()=>l});const l={CONFIGURE:"configure",APPS:"apps",NEW:"new",SITES:"sites"},h=[{icon:"overview",text:"Overview",routeName:"overview",hidden:!1},{icon:"access",text:"Access",routeName:"access",hidden:!1},{icon:"users",text:"Users",routeName:"users",hidden:!1},{icon:"analytics",text:"Analytics",routeName:"analytics",hidden:!1},{icon:"blog",text:"Blog",routeName:"blog"},{icon:"emails",text:"Emails",routeName:"emails",hidden:!1}]},34594(E,g,e){e.d(g,{SitesModule:()=>Tt});var l=e(72200),h=e(89417),f=e(59115),a=e(78884);const p="https://cdn.platform.openai.com/deployments/chatkit/chatkit.js",y={colorScheme:"light",radius:"pill",density:"normal",color:{accent:{primary:"#0065f2",level:1}},typography:{baseSize:14,fontFamily:"Inter, sans-serif",fontSources:[{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter[slnt,wght].woff",weight:400,style:"normal"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-Italic.woff",weight:400,style:"italic"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-Thin-BETA.woff",weight:100,style:"normal"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-ThinItalic-BETA.woff",weight:400,style:"italic"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-SemiBold.woff",weight:600,style:"normal"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-SemiBoldItalic.woff",weight:600,style:"italic"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-Black.woff",weight:900,style:"normal"},{family:"Inter",src:"https://fonts.cdnfonts.com/s/19795/Inter-BlackItalic.woff",weight:900,style:"italic"}]}},v={placeholder:"How i can help you?",attachments:{enabled:!0,maxCount:5,maxSize:10485760}},S={greeting:"Helping you navigate Forum Spaces. From set up to strategy",prompts:[{icon:"circle-question",label:"Help me getting Started with Member Spaces",prompt:"Help me getting Started with Member Spaces"},{icon:"search",label:"How do I decide whether to use the Library or Projects app?",prompt:"How do I decide whether to use the Library or Projects app?"},{icon:"write",label:"How do different apps like Case Studies and Navigator compare?",prompt:"How do different apps like Case Studies and Navigator compare?"}]};var R=e(49630),G=e(17094),N=e(31957),z=e(91708),$=e(1835),t=e(73664),x=e(84412),d=e(2615
1),j=e(10467),U=e(29330),F=e(73878);let K=(()=>{class i{constructor(n,s){this.http=n,this.apiEndpointService=s}buildApiConfig(){var s,n=this;return{getClientSecret:(s=(0,j.A)(function*(o){const r=`${n.apiEndpointService.getFWSEndpoint()}/communities/v1/chatkit/sessions`,u=yield n.http.post(r,{currentClientSecret:o}).toPromise();if(!u||"string"!=typeof u.client_secret)throw new Error("Missing client_secret in server response");return u.client_secret}),function(r){return s.apply(this,arguments)})}}static{this.\u0275fac=function(s){return new(s||i)(d.KVO(U.Qq),d.KVO(F.J))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),D=(()=>{class i{constructor(n){this.api=n,this.isDrawerOpened$=new x.t(!1),this.isDrawerMaximized$=new x.t(!1),this.isChatKitReady$=new x.t(!1),this.isChatKitScriptReady$=new x.t(!1),this.scriptLoadPromise=null}openDrawer(){this.isDrawerOpened$.next(!0)}closeDrawer(){this.isDrawerOpened$.next(!1)}maximizeDrawer(){this.isDrawerMaximized$.next(!0)}minimizeDrawer(){this.isDrawerMaximized$.next(!1)}toggleMaximize(){this.isDrawerMaximized$.next(!this.isDrawerMaximized$.value)}enableChat(){this.isChatKitReady$.next(!0)}disableChat(){this.isChatKitReady$.next(!1)}enableScriptReady(){this.isChatKitScriptReady$.next(!0)}disableScriptReady(){this.isChatKitScriptReady$.next(!1)}loadChatKitScript(){return this.scriptLoadPromise?this.scriptLoadPromise:document.querySelector(`script[src="${p}"]`)?(this.scriptLoadPromise=Promise.resolve(),this.enableScriptReady(),this.scriptLoadPromise):(this.scriptLoadPromise=new Promise((s,o)=>{const r=document.createElement("script");r.src=p,r.type="text/javascript",r.async=!0,r.onload=()=>{this.enableScriptReady(),s()},r.onerror=()=>{this.scriptLoadPromise=null,this.disableScriptReady(),o(new Error("Failed to load ChatKit script"))},document.head.appendChild(r)}),this.scriptLoadPromise)}buildChatKitOptions(){return{api:this.api.buildApiConfig(),theme:y,composer:v,startScreen:S,locale:"en"}}static{this.\u0275fac=function(s){return new(s||i)(d.KVO(K))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var k=e(95416);const V=["chat"];let X=(()=>{class i{constructor(n,s){this.ui=n,this.snackBar=s,this.chatKitElement=null,this.contactInfo='AI can make mistakes. If you need support, please contact <a target="_blank" href="mailto:[email protected]">[email protected]</a>.',this.onChatkitReady=o=>{this.ui.enableChat()},this.onChatkitError=o=>{this.showError(),this.ui.disableChat()}}ngAfterViewInit(){setTimeout(()=>{this.ui.loadChatKitScript().then(()=>this.initializeChatkit()).catch(n=>{this.showError(),this.ui.disableChat()})},0)}ngOnDestroy(){this.removeEventListeners()}initializeChatkit(){try{const n=this.chatEl.nativeElement;if(!n||"function"!=typeof n.setOptions)return this.showError(),void this.ui.disableChat();this.chatKitElement=n;const s=this.ui.buildChatKitOptions();n.setOptions(s),this.attachEventListeners(n)}catch{this.showError(),this.ui.disableChat()}}attachEventListeners(n){n.addEventListener("chatkit.ready",this.onChatkitReady),n.addEventListener("chatkit.error",this.onChatkitError)}removeEventListeners(){this.chatKitElement&&(this.chatKitElement.removeEventListener("chatkit.ready",this.onChatkitReady),this.chatKitElement.removeEventListener("chatkit.error",this.onChatkitError),this.chatKitElement=null)}showError(){this.snackBar.openFromComponent(z.Y,$.s2)}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(D),t.rXU(k.UG))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-chatkit"]],viewQuery:function(s,o){if(1&s&&t.GBs(V,5),2&s){let r;t.mGM(r=t.lsd())&&(o.chatEl=r.first)}},decls:3,vars:1,consts:[["chat",""],[1,"chatkit-contact-info",3,"innerHTML"]],template:function(s,o){1&s&&t.Hgh(0,"openai-chatkit",null,0)(2,"div",1),2&s&&(t.R7$(2),t.Avn("innerHTML",o.contactInfo,t.npT))},styles:["[_nghost-%COMP%]{display:flex;height:100%;width:100%;flex-direction:column}[_nghost-%COMP%] openai-chatkit[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}.chatkit-contact-info[_ngcontent-%COMP%]{font-family:var(--typography-label-small-font-family);
1font-weight:var(--typography-label-small-font-weight);line-height:var(--typography-label-small-line-height);font-size:var(--typography-label-small-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-secondary);text-align:center;margin-bottom:5px}"],changeDetection:0})}}return i})(),H=(()=>{class i{constructor(n){this.ui=n,this.ButtonStyle=a.inm,this.ControlType=a.ZUJ,this.OneDigitalForumIconName=N.m,this.chatTitle="Forum Spaces Assistant"}toggleMaximize(){this.ui.toggleMaximize()}close(){this.ui.closeDrawer(),this.ui.minimizeDrawer()}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(D))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-chatkit-drawer"]],decls:13,vars:17,consts:[["cdkTrapFocus","",1,"ai-agent-drawer"],[1,"ai-agent-drawer__container"],[1,"ai-agent-drawer__header"],[3,"buttonClick","type","tabIndex"],["libIconContent","",3,"isSVG","icon"],[1,"ai-agent-drawer__title"],[1,"ai-agent-drawer__content"]],template:function(s,o){if(1&s){const r=t.RV6();t.SS7(0),t.nI1(1,"async"),t.j41(2,"div",0)(3,"div",1)(4,"div",2)(5,"lib-icon-button",3),t.bIt("buttonClick",function(){return d.eBV(r),d.Njj(o.toggleMaximize())}),t.nrm(6,"lib-icon",4),t.k0s(),t.j41(7,"div",5),t.EFF(8),t.k0s(),t.j41(9,"lib-icon-button",3),t.bIt("buttonClick",function(){return d.eBV(r),d.Njj(o.close())}),t.nrm(10,"lib-icon",4),t.k0s()(),t.j41(11,"div",6),t.nrm(12,"app-chatkit"),t.k0s()()()}if(2&s){const r=t.bMT(1,15,o.ui.isDrawerMaximized$);t.R7$(2),t.AVh("ai-agent-drawer--maximized",r),t.R7$(3),t.Aen(o.ButtonStyle.Ghost),t.Y8G("type",o.ControlType.Secondary)("tabIndex",0),t.R7$(),t.Y8G("isSVG",!0)("icon",r?o.OneDigitalForumIconName.MINIMISE:o.OneDigitalForumIconName.MAXIMISE),t.R7$(2),t.JRh(o.chatTitle),t.R7$(),t.Aen(o.ButtonStyle.Ghost),t.Y8G("type",o.ControlType.Secondary)("tabIndex",0),t.R7$(),t.Y8G("isSVG",!0)("icon",o.OneDigitalForumIconName.CLOSE)}},dependencies:[a.xBz,a.CR$,a.RlV,G.kB,X,l.Jj],styles:["@keyframes _ngcontent-%COMP%_shine-lines{to{transform:translate(100%)}}[_nghost-%COMP%]{color:var(--colour-text-primary);background:var(--colour-surface-base)}.ai-agent-drawer__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:fixed;top:0;right:0;max-width:520px;width:100%;height:100%;border-left:var(--border-width-hairline) solid var(--colour-border-tertiary);z-index:101;transition:max-width .3s ease}.ai-agent-drawer--maximized[_ngcontent-%COMP%] .ai-agent-drawer__container[_ngcontent-%COMP%]{max-width:100%}.ai-agent-drawer__header[_ngcontent-%COMP%]{display:flex;height:var(--size-800);padding:var(--space-200);justify-content:center;align-items:center;gap:var(--space-100);flex-shrink:0;align-self:stretch;border-bottom:var(--border-width-hairline) solid var(--colour-border-tertiary);background:var(--colour-surface-base)}.ai-agent-drawer__title[_ngcontent-%COMP%]{font-family:var(--typography-label-bold-x-large-font-family);font-weight:var(--typography-label-bold-x-large-font-weight);line-height:var(--typography-label-bold-x-large-line-height);font-size:var(--typography-label-bold-x-large-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;flex:1 0 0}.ai-agent-drawer__content[_ngcontent-%COMP%]{display:flex;padding:0 var(--space-050) var(--space-050) var(--space-050);flex-direction:column;align-items:flex-start;flex:1 1 auto;overflow-y:auto;align-self:stretch;background:var(--colour-surface-base)}"],changeDetection:0})}}return i})();function it(i,P){if(1&i){const n=t.RV6();t.j41(0,"app-ai-agent-button",0),t.nI1(1,"async"),t.nI1(2,"async"),t.bIt("buttonClick",function(){d.eBV(n);const o=t.XpG();return d.Njj(o.onButtonClick())}),t.k0s(),t.nrm(3,"app-chatkit-drawer",1),t.nI1(4,"async")}if(2&i){const n=t.XpG();t.Y8G("text",n.agentButtonTooltipText)("disabled",!t.bMT(1,4,n.isChatKitReady$)||!1)("hidden",t.bMT(2,6,n.ui.isDrawerOpened$)),t.R7$(3),t.Y8G("hidden",!t.bMT(4,8,n.ui.isDrawerOpened$))}}let J=(()=>{class i{constructor(n){this.ui=n,this.agentButtonTooltipText="Forum Spaces Assistant - here to help you learn, connect, and act.",this.isChatKitScriptReady$=this.ui.isChatKitScriptReady$.asObservable(),this.isChatKitReady$=this.ui.isChatKitReady$.asObservable()}ngOnInit(){this.initialize()}ngOnDestroy(){this.ui.disableChat()}onButtonClick(){this.ui.openDrawer()}initialize(){this.ui.disableChat(),this.ui.loadChatKitScript()}
1static{this.\u0275fac=function(s){return new(s||i)(t.rXU(D))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-chatkit-agent"]],decls:2,vars:3,consts:[[3,"buttonClick","text","disabled","hidden"],[3,"hidden"]],template:function(s,o){1&s&&(t.nVh(0,it,5,10),t.nI1(1,"async")),2&s&&t.vxM(t.bMT(1,1,o.isChatKitScriptReady$)?0:-1)},dependencies:[R.L,H,l.Jj],encapsulation:2,changeDetection:0})}}return i})();var w=e(38132),W=e(79375),b=e(96354),A=e(91029),L=e(61945);let st=(()=>{class i{constructor(n,s){this.route=n,this.sitesSnapshotsService=s}getCurrentCommunity(n){const s=n||W.F.findParam(this.route.snapshot,"communityId");return(this.sitesSnapshotsService.communityList$.value.length?this.sitesSnapshotsService.communityList$:this.sitesSnapshotsService.getCommunityList()).pipe((0,b.T)(r=>r.find(u=>u.id===s)))}getCurrentSite(n){return this.getCurrentCommunity(n).pipe((0,b.T)(s=>s?.site))}getCurrentSiteId(n){return this.getCurrentSite(n).pipe((0,b.T)(s=>s?.id))}static{this.\u0275fac=function(s){return new(s||i)(d.KVO(A.nX),d.KVO(L.X))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),at=(()=>{class i{constructor(n){this.adminCommunityService=n}resolve(n){const s=W.F.findParam(n,"communityId");return this.adminCommunityService.getCurrentSite(s)}static{this.\u0275fac=function(s){return new(s||i)(d.KVO(st))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ot=e(3282),B=e(12257),M=e(3534),Q=e(79629),Z=e(25558),ct=e(983),q=e(99437),dt=e(84572),Y=e(88141),mt=e(21413),ht=e(5964),ut=e(56977),gt=e(86906),pt=e(57805),ft=e(76107),vt=e(35097);class Ct{static isMenuItemDisabledInPermissions(P,{text:n,hidden:s}){return P.some(o=>o.services.some(({name:r,permissions:u})=>r===n&&!1!==s&&u.every(O=>!O.public.active&&!O.followers.active&&!O.members.active)))}}var yt=e(345),tt=e(49030),_t=e(66235),St=e(80633),Pt=e(21835);function Ot(i,P){if(1&i){const n=t.RV6();t.j41(0,"div",13)(1,"lib-select",14),t.bIt("change",function(o){d.eBV(n);const r=t.XpG();return d.Njj(r.onCommunityChange(o))}),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(),t.Y8G("hasLabel",!1)("size",n.selectSize.Small)("options",n.communitiesSelectData)("initialValue",null==n.selectedCommunity?null:n.selectedCommunity.id)}}function Et(i,P){if(1&i){const n=t.RV6();t.j41(0,"a",16),t.bIt("click",function(){d.eBV(n);
1const o=t.XpG().$implicit,r=t.XpG();return d.Njj(r.sidebarRouteChange(o.routeName))}),t.nrm(1,"span",17),t.j41(2,"span",18),t.EFF(3),t.k0s()()}if(2&i){const n=t.XpG().$implicit;t.Y8G("routerLink",n.routeName),t.R7$(),t.Y8G("ngClass",n.icon),t.R7$(2),t.JRh(n.text)}}function bt(i,P){if(1&i&&(t.qex(0),t.DNE(1,Et,4,3,"a",15),t.bVm()),2&i){const n=P.$implicit;t.R7$(),t.Y8G("ngIf",!n.hidden)}}let et=(()=>{class i{constructor(n,s,o,r,u,O,Rt,xt,At){this.titleService=n,this.router=s,this.idpService=o,this.sitesSnapshotsService=r,this.activeRoute=u,this.mixPanelService=O,this.accessService=Rt,this.designSettingsService=xt,this.logoutGuardService=At,this.communityList$=this.sitesSnapshotsService.communityList$,this.activeCommunityId="",this.activeSidebarRoute="",this.claims=this.idpService.masqueradingOrIdClaims,this.profileMenuConfig={items:[{label:"Logout",id:"logout"}]},this.communitiesSelectData=[],this.selectedCommunityMenuItem={},this.sidebarMenu$=(0,dt.z)([this.communityList$,this.activeRoute.params]).pipe((0,Y.M)(([_,{communityId:I}])=>this.setCommunityMenuConfig(_,I)),(0,b.T)(([_,{communityId:I}])=>({activeCommunityId:I,selectedCommunity:_.find(({id:Dt})=>Dt===I)})),(0,ht.p)(_=>!!_),(0,Y.M)(_=>this.setCommunity(_)),(0,Z.n)(({selectedCommunity:_})=>this.accessService.getPermissions(_?.site.id)),(0,b.T)(_=>[...vt.X].map(I=>({...I,hidden:Ct.isMenuItemDisabledInPermissions(_,I)})))),this.avatarSize=a.PfE,this.inputSize=a.YIZ,this.selectSize={...a.or0,...a.AJJ},this.destroy$=new mt.B,this.classList=gt.C,this.titleService.setTitle("Your Initiatives"),this.setupDefaultColorTheme()}onCommunityChange(n){this.router.navigate(["sites",n.value,this.activeSidebarRoute])}logout(){this.logoutGuardService.canShowPopup?this.logoutGuardService.showPopup((0,ft.sZ)()).subscribe(n=>{n||(this.idpService.logout(),this.mixPanelService.pageTrack(this.mixPanelService.ACTIONS.LOGOUT,{}))}):(this.idpService.logout(),this.mixPanelService.pageTrack(this.mixPanelService.ACTIONS.LOGOUT,{}))}ngOnInit(){this.activeRoute.url.pipe((0,ut.Q)(this.destroy$)).subscribe(()=>{this.activeSidebarRoute=this.activeRoute.snapshot.children[0].url[0].path}),this.claims.name&&this.profileMenuConfig.items.unshift({label:this.claims.name,id:"profile"})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}sidebarRouteChange(n){this.activeSidebarRoute=n}setCommunity({activeCommunityId:n,selectedCommunity:s}){this.activeCommunityId=n,this.selectedCommunity=s,this.sitesSnapshotsService.selectedCommunityFromList$.next(s)}setCommunityMenuConfig(n,s){this.communitiesSelectData=n.map(o=>({id:o.id,label:o.name})),this.selectedCommunityMenuItem={id:s,label:n.find(({id:o})=>o===s)?.name}}setupDefaultColorTheme(){this.designSettingsService.setDesignSettings(pt.P.FORUM_LIGHT,"theme-bundle")}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(yt.hE),t.rXU(A.Ix),t.rXU(tt.JP),t.rXU(L.X),t.rXU(A.nX),t.rXU(tt.aO),t.rXU(_t.o),t.rXU(St.D),t.rXU(Pt.H))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-sites"]],hostVars:2,hostBindings:function(s,o){2&s&&t.HbH(o.classList)},standalone:!1,decls:17,vars:11,consts:[["menuInstance","libMenu"],[1,"header"],[1,"logo"],["class","community-select-container",4,"ngIf"],[1,"profile"],[1,"avatar",3,"matMenuTriggerFor"],[3,"placeholder","size","imageSrc"],["xPosition","before",1,"profile-menu",3,"clicked","menuItemsConfig"],[1,"wrapper"],["routerLinkActive","selected-item",1,"sidebar"],[4,"ngFor","ngForOf"],[1,"content-container"],[1,"content"],[1,"community-select-container"],[1,"community-select",3,"change","hasLabel","size","options","initialValue"],["class","item","routerLinkActive","selected-item",3,"routerLink","click",4,"ngIf"],["routerLinkActive","selected-item",1,"item",3,"click","routerLink"],[1,"icon",3,"ngClass"],[1,"item-text"]],template:function(s,o){if(1&s){const r=t.RV6();t.j41(0,"div",1),t.nrm(1,"div",2),t.DNE(2,Ot,2,4,"div",3),t.nI1(3,"async"),t.j41(4,"div",4)(5,"div",5),t.nrm(6,"lib-avatar",6),t.k0s(),t.j41(7,"lib-menu",7,0),t.bIt("clicked",function(O){return d.eBV(r),d.Njj("logout"===O.id&&o.logout())}),t.k0s()()(),t.j41(9,"div",8)(10,"div",9),t.DNE(11,bt,2,1,"ng-container",10),t.nI1(12,"async"),t.k0s(),t.j41(13,"div",11)(14,"div",12),t.nrm(15,"router-outlet"),t.k0s(),t.nrm(16,"app-ch
1atkit-agent"),t.k0s()()}if(2&s){const r=t.sdS(8);t.R7$(2),t.Y8G("ngIf",t.bMT(3,7,o.communityList$)),t.R7$(3),t.Y8G("matMenuTriggerFor",r.menu),t.R7$(),t.Y8G("placeholder",o.claims.name)("size",o.avatarSize.Small)("imageSrc",o.claims.picture),t.R7$(),t.Y8G("menuItemsConfig",o.profileMenuConfig),t.R7$(4),t.Y8G("ngForOf",t.bMT(12,9,o.sidebarMenu$))}},dependencies:[l.YU,l.Sq,l.bT,A.n3,w.Wk,w.wQ,a.fw0,a.ZuA,a.wBS,f.Cp,J,l.Jj],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.header[_ngcontent-%COMP%]{height:var(--size-800);display:flex;justify-content:space-between;border-bottom:var(--border-width-hairline) solid var(--colour-border-tertiary)}.header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{flex:0 0 var(--size-800);height:var(--size-800);background:url(/assets/logos/wef-logo.png) no-repeat center center/75%}.header[_ngcontent-%COMP%] .community-select-container[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;border-left:var(--border-width-hairline) solid var(--colour-border-tertiary);align-items:center}.header[_ngcontent-%COMP%] .community-select-container[_ngcontent-%COMP%] .community-select[_ngcontent-%COMP%]{margin-left:var(--space-300);max-width:calc(100vw - 160px);width:500px}.header[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%]{width:var(--size-800);display:flex;align-items:center;justify-content:center;flex:0 0 var(--size-800)}.header[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{font-family:var(--typography-label-x-small-font-family);font-weight:var(--typography-label-x-small-font-weight);line-height:var(--typography-label-x-small-line-height);font-size:var(--typography-label-x-small-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);width:var(--size-700);height:var(--size-700);text-align:center;margin:var(--space-050) auto 0;color:var(--colour-icon-neutral-default);display:flex;flex-direction:column;justify-content:center;border-radius:var(--border-radius-050);-webkit-user-select:none;user-select:none}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{cursor:pointer;background:var(--colour-surface-neutral-subtle-hover)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(1){margin-top:3px}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%]{background:var(--colour-surface-accent-default);color:var(--colour-icon-on-accent);pointer-events:none}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%]:hover{cursor:default;border:0}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.overview[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/overview-selected.svg)}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.access[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/access-selected.svg)}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.users[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/users-selected.svg)}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.analytics[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/analytics-selected.svg)}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.blog[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/fountain-pen-selected.svg)}.sidebar[_ngcontent-%COMP%] .item.selected-item[_ngcontent-%COMP%] .icon.emails[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/emails-selected.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:var(--size-300);height:var(--size-300);margin:0 auto;display:block;background-repeat:no-repeat;background-position:top center}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.overview[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/overview.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.access[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/access.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.users[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/users.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.analytics[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/analytics.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.blog[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/fountain-pen.svg)}.sidebar[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon.emails[_ngcontent-%COMP%]{background-image:url(/assets/images/admin/emails.svg)}.wrapper[_ngcontent-%COMP%]{height:calc(100vh - var(--size-800));display:flex;flex:1}.wrapper[_ngcontent-%COMP%] .sidebar[_ngcontent-%COMP%]{width:var(--size-800);min-width:var(--size-800)}.wrapper[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{background-color:var(--colour-surface-relief);border-left:var(--border-width-hairline) solid var(--colour-border-tertiary);flex:1;overflow:auto;height:100%;padding:0 var(--space-500)}.wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{width:100%;height:100%;min-width:672px;max-width:1144px;margin:0 auto}"],changeDetection:0})}}return i})(),nt=(()=>{class i{constructor(n,s){this.router=n,this.sitesSnapshotsService=s}resolve(n){return this.sitesSnapshotsService.getCommunityList().pipe((0,Y.M)(s=>{const o=n.paramMap.get("communityId"),r=s?.find(u=>u.id===o);!o&&s.length>0?this.router.navigate(["sites",s[0].id]):r||this.router.navigate([B.n.PAGE_NOT_FOUND])}),(0,q.W)(s=>{throw this.router.navigate([B.n.PAGE_NOT_FOUND]),s}))}static{this.\u0275fac=function(s){return new(s||i)(d.KVO(A.Ix),d.KVO(L.X))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const Mt=[{path:"",component:et,resolve:{communitiesList:nt},pathMatch:"full"},{path:":communityId",component:et,resolve:{communitiesList:nt},children:[{path:"",redirectTo:"overview",pathMatch:"full"},{path:M.h.OVERVIEW,loadChildren:()=>Promise.all([e.e("default-src_app_shared_enums_screen-size-breakpoint_enum_ts-node_modules_moment_moment_js-nod-5df1f3"),e.e("common"),e.e("src_app_features_overview_overview_module_ts")]).then(e.bind(e,48963)).then(i=>i.OverviewModule)},{path:M.h.ACCESS,loadComponent:()=>e.e("default-src_app_features_access_container_access_component_ts").then(e.bind(e,33363)).then(i=>i.AccessComponent),canDeactivate:[ot.q]},{path:M.h.USERS,loadChildren:()=>Promise.all([e.e("default-src_app_enums_horizontal-listing-filters_enum_ts-node_modules_lodash-es_isEqual_js"),e.e("default-src_app_shared_enums_screen-size-breakpoint_enum_ts-node_modules_moment_moment_js-nod-5df1f3"),e.e("default-src_app_features_page_fragment_mapper_ts-src_app_shared_classes_custom-control_ts-src-f84cf9"),e.e("default-src_app_enums_date-format_enum_ts-node_modules_ngx-infinite-scroll_fesm2022_ngx-infin-c8a9f4"),e.e("default-src_app_shared_classes_dynamic-page-with-filters_ts-src_app_shared_patterns_filter_fi-c776a2"),e.e("default-src_app_services_communities_communities_service_ts-src_app_services_members_members_-ef9745"),e.e("default-node_modules_angular_material_fesm2022_table_mjs"),e.e("src_app_features_users_users_module_ts")]).then(e.bind(e,16966)).then(i=>i.UsersModule)},{path:M.h.ANALYTICS,loadChildren:()=>e.e("src_app_features_analytics_analytics_module_ts").then(e.bind(e,73029)).then(i=>i.AnalyticsModule)},{path:M.h.BLOG,loadComponent:()=>Promise.all([e.e("default-src_app_enums_horizontal-listing-filters_enum_ts-node_modules_lodash-es_isEqual_js"),e.e("default-src_app_features_page_fragment_mapper_ts-src_app_shared_classes_custom-control_ts-src-f84cf9"),e.e("default-src_app_enums_date-format_enum_ts-node_modules_ngx-infinite-scroll_fesm2022_ngx-infin-c8a9f4"),e.e("default-src_app_shared_classes_dynamic-page-with-filters_ts-src_app_shared_patterns_filter_fi-c776a2"),e.e("default-src_app_services_projects_projects_service_ts-src_app_shared_components_chips-autocom-aeaf37"),e.e("default-node_modules_angular_material_fesm2022_table_mjs"),e.e("default-src_app_features_blog_components_post-settings_post-settings_component_ts-src_app_fea-5a2dad"),e.e("src_app_features_blog_blog_component_ts-src_app_features_blog_helpers_blog_helper_ts-src_app_-1f51b4")]).then(e.bind(e,24569)).then(i=>i.BlogComponent),resolve:{data:i=>{const P=(0,d.WQX)(Q.c),n=(0,d.WQX)(A.Ix),s=(0,d.WQX)(L.X),o=W.F.findParam(i,"communityId");return s.communityList$.pipe((0,b.T)(r=>{const u=r.find(O=>O.id===o);if(!u)throw new Error("Community doesn't exist");return u.site}),(0,Z.n)(r=>P.getBlogDetails(r.id).pipe((0,b.T)(u=>({blog:u,site:r})))),(0,q.W)(()=>(n.navigate([B.n.PAGE_NOT_FOUND],{skipLocationChange:!0}),ct.w)))}},canDeactivate:[(i,P,n,s)=>{const o=(0,d.WQX)(Q.c),r=new RegExp(`.*${B.n.SITES}/.*/${M.h.BLOG}/.*`).test(s.url);return(!s.url||!r)&&o.resetBlogDetails(),!0}]},{path:M.h.EMAILS,loadChildren:()=>Promise.all([e.e("default-src_app_shared_froala_froala_module_ts-node_modules_froala-editor_js_plugins_align_mi-d17ec4"),e.e("default-src_app_shared_components_dropdown_dropdown_component_ts-src_app_shared_components_dr-b8c751"),e.e("src_app_enums_date-format_enum_ts-src_app_features_emails_emails_module_ts")]).then(e.bind(e,12602)).then(i=>i.EmailsModule),resolve:{data:at}}]}];let It=(()=>
1{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=d.G2t({imports:[w.iI.forChild(Mt),w.iI]})}}return i})(),Tt=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=d.G2t({imports:[l.MD,It,a.fw0,a.ZuA,a.Sjx,h.X1,a.wBS,f.Cn,J]})}}return i})()},21835(E,g,e){e.d(g,{H:()=>c});var l=e(96697),h=e(97005),f=e(2615),a=e(32591);let c=(()=>{class m{constructor(C){this.dialog=C,this.canShowPopup=!1}showPopup(C){return this.dialog.open(h.P,C).afterClosed().pipe((0,l.s)(1))}static{this.\u0275fac=function(y){return new(y||m)(f.KVO(a.bZ))}}static{this.\u0275prov=f.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},79375(E,g,e){e.d(g,{F:()=>h});var l=e(65219);class h{static findParam(a,c){return this.findParamInParents(a,c)||this.findParamInChildren(a,c)}static findParamInParents(a,c){return!h.getParam(a,c)&&a.parent?this.findParamInParents(a.parent,c):h.getParam(a,c)}static findParamInChildren(a,c){return!h.getParam(a,c)&&a.children?.length?this.findParamInChildren(a.children[0],c):h.getParam(a,c)}static findConfigPathInChildren(a,c){const m=c.includes(h.getRouterConfigPath(a));return!m&&a.children?.length?this.findConfigPathInChildren(a.children[0],c):m?h.getRouterConfigPath(a):null}static getQueryParamsAsString(a){let c="";return Object.keys(a).length?(c="?",(0,l.A)(a,(m,p)=>{c="?"===c?c:`${c}&`,c+=`${p}=${m}`}),c):""}static getRouterConfigPath(a){return a.routeConfig?.path??""}static getParam(a,c){return a.params?.[c]||a.queryParams?.[c]||a.paramMap?.get(c)||a.queryParamMap?.get(c)}}},62676(E,g,e){e.d(g,{A:()=>a});const a=function l(c){return function(m,p,C){for(var y=-1,v=Object(m),S=C(m),T=S.length;T--;){var R=S[c?T:++y];if(!1===p(v[R],R,v))break}return m}}()},65219(E,g,e){e.d(g,{A:()=>y});var l=e(62676),h=e(14429);var c=e(57003);const y=function C(v,S){return v&&function f(v,S){return v&&(0,l.A)(v,S,h.A)}(v,function m(v){return"function"==typeof v?v:c.A}(S))}},57003(E,g,e){e.d(g,{A:()=>h});const h=function l(f){return f}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.