1(self.webpackChunkinitiative_as_a_service=self.webpackChunkinitiative_as_a_service||[]).push([["src_app_features_overview_overview_module_ts"],{84100(Y,C,n){"use strict";n.d(C,{o:()=>_,u:()=>s});var _=function(i){return i.D_MMMM_YYYY="D MMMM YYYY",i.DD_MMMM_YYYY="DD MMMM YYYY",i.D_MMM_YYYY="D MMM YYYY",i.D_MMMM_YYYY_HH_MM="D MMMM YYYY, HH:mm",i.DDDD_DD_MMMM_K_MM="dddd DD MMMM, k:mm",i.DDDD_DD_MMMM="dddd DD MMMM",i.DD="DD",i.K_MM="k:mm",i.MMMM="MMMM",i.D="D",i.D_MMMM="D MMMM",i.D_MMM="D MMM",i.MMM="MMM",i.HH_MM="HH:mm",i.YYYY_MM_DD="YYYY-MM-DD",i.YYYY_MM_DD_HH_MM="YYYY-MM-DD HH:mm",i.YYYY_MM_DD_T_HH_MM_SS="YYYY-MM-DDTHH:mm:ss",i}(_||{}),s=function(i){return i.D_MMMM_YYYY="d MMMM yyyy",i.DD_MMMM_YYYY="dd MMMM yyyy",i.D_MMM_YYYY="d MMM yyyy",i.DD_MMM_YYYY="dd MMM yyyy",i.D_MMM_COMMA_Y="d MMM, y",i.MMMM_YYYY="MMMM yyyy",i.DD_MMM_YY="dd MMM yy",i.YYYY="yyyy",i.D="d",i.D_MMMM="d MMMM",i.D_MMM="d MMM",i.MMM="MMM",i.MMM_D_Y_H_MM_A="MMM d, y, h:mm a",i.MMM_D_Y="MMM d, y",i.HH_MM="HH:mm",i.LONG_DATE="longDate",i}(s||{})},48963(Y,C,n){"use strict";n.d(C,{OverviewModule:()=>Mt});var _=n(72200),s=n(99213),i=n(59115),b=n(9183),I=n(86156),l=n(78884),g=n(97005),T=n(38132),x=n(10467),r=n(21413),a=n(56977),h=n(88141),c=n(87083),f=n(96697),B=n(5964),L=n(12257),S=n(34308),R=n(91708),D=n(4810),A=n(1835),p=n(32850),d=n(17036),v=n(35097),u=n(86906),y=n(24228),t=n(73664),O=n(2615),N=n(17705),$=n(61945),G=n(91029),X=n(29185),F=n(32591),H=n(65769),z=n(95416),W=n(49030),V=n(40455);function K(o,E){1&o&&t.eu8(0)}function k(o,E){1&o&&(t.j41(0,"span"),t.nrm(1,"mat-icon",28),t.EFF(2," PUBLIC "),t.k0s())}function Z(o,E){1&o&&(t.j41(0,"span"),t.nrm(1,"mat-icon",29),t.EFF(2," FOLLOWER "),t.k0s())}function J(o,E){1&o&&(t.j41(0,"span"),t.nrm(1,"mat-icon",30),t.EFF(2," MEMBER "),t.k0s())}function Q(o,E){if(1&o&&(t.j41(0,"a",34),t.nrm(1,"mat-icon",35),t.EFF(2),t.k0s()),2&o){const e=t.XpG(3);t.Y8G("href",e.activeCommunity.site.path,t.B4B),t.R7$(2),t.SpI(" ",e.activeCommunity.site.path," ")}}function q(o,E){if(1&o&&(t.j41(0,"span",36),t.nrm(1,"mat-icon",35),t.EFF(2),t.k0s()),2&o){const e=t.XpG(3);t.R7$(2),t.SpI(" ",e.activeCommunity.site.path," ")}}function tt(o,E){if(1&o&&(t.j41(0,"div",31),t.DNE(1,Q,3,2,"a",32)(2,q,3,1,"span",33),t.k0s()),2&o){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.isPublished(e.activeCommunity.site.status)),t.R7$(),t.Y8G("ngIf",!e.isPublished(e.activeCommunity.site.status))}}function et(o,E){1&o&&t.eu8(0)}function nt(o,E){if(1&o&&(t.qex(0),t.j41(1,"lib-button",37,5),t.nrm(3,"mat-icon",38),t.EFF(4," Export "),t.k0s(),t.bVm()),2&o){const e=t.sdS(2),m=t.XpG(2),M=t.sdS(4);t.R7$(),t.Aen(m.buttonStyle.Ghost),t.Y8G("type",m.buttonType.Secondary)("iconPosition",m.buttonIconPosition.Left)("matMenuTriggerFor",M.menu)("state",e.menuOpen?m.buttonState.Pressed:m.buttonState.Default)}}function it(o,E){if(1&o&&(t.qex(0),t.j41(1,"div",8)(2,"div",9)(3,"div",10),t.DNE(4,K,1,0,"ng-container",11),t.k0s(),t.j41(5,"div",12)(6,"div",13)(7,"div",14),t.DNE(8,k,3,0,"span",6)(9,Z,3,0,"span",6)(10,J,3,0,"span",6),t.k0s(),t.j41(11,"div")(12,"lib-icon-button",15),t.nrm(13,"mat-icon",16),t.k0s()()(),t.j41(14,"div",17)(15,"h5",18),t.EFF(16),t.k0s(),t.j41(17,"div",19),t.EFF(18,"Setup & manage the content and design of your initiative space"),t.k0s(),t.DNE(19,tt,3,2,"div",20)(20,et,1,0,"ng-container",11),t.k0s()()()(),t.j41(21,"div",21),t.nrm(22,"mat-icon",22),t.j41(23,"div",23)(24,"p",24),t.EFF(25,"Export presentation"),t.k0s(),t.j41(26,"p",25),t.EFF(27,"Download a PPT with all your events from the milestone widget"),t.k0s()(),t.j41(28,"div",26),t.DNE(29,nt,5,6,"ng-container",27),t.nI1(30,"async"),t.k0s()(),t.bVm()),2&o){const e=t.XpG(),m=t.sdS(2),M=t.sdS(6),U=t.sdS(8),j=t.sdS(10);t.R7$(4),t.Y8G("ngTemplateOutlet",U),t.R7$(4),t.Y8G("ngIf",e.activeCommunity.tiers.publicSpace),t.R7$(),t.Y8G("ngIf",e.activeCommunity.tiers.authenticatedSpace),t.R7$(),t.Y8G("ngIf",e.activeCommunity.tiers.initiativeMemberSpace),t.R7$(2),t.Aen(e.buttonStyle.Ghost),t.Y8G("type",e.iconButtonType.Secondary)("matMenuTriggerFor",m.menu),t.R7$(4),t.JRh(e.activeCommunity.name),t.R7$(3),t.Y8G("ngIf",e.activeCommunity.site.path),t.R7$(),t.Y8G("ngTemplateOutlet",M),t.R7$(9),t.Y8G("ngIf",!t.bMT(30,13,e.exportingMilestones$))("ngIfElse",j)}}function ot(o,E){if(1&o){const e=t.RV6();t.j41(0,"lib-button",40),t.bIt("buttonClick",function(){O.eBV(e);const M=t.XpG(2);return O.Njj(M.createSite(M.activeCommunity))}),t.EFF(1," Set up space manually "),t.k0s()}if(2&o){const e=t.XpG(2);t.Aen(e.buttonStyle.Solid)}}function st(o,E){if(1&o){const e=t.RV6();t.j41(0,"lib-button",40),t.bIt("buttonClick",function(){O.eBV(e);const M=t.XpG(2);return O.Njj(M.editSite(M.activeCommunity.site.id))}),t.EFF(1," Manage Space "),t.k0s()}if(2&o){const e=t.XpG(2);t.Aen(e.buttonStyle.Solid)}}function at(o,E){if(1&o&&t.DNE(0,ot,2,2,"lib-button",39)(1,st,2,2,"lib-button",39),2&o){const e=t.XpG();t.Y8G("ngIf",!e.isCreated(null==e.activeCommunity.site?null:e.activeCommunity.site.status)),t.R7$(),t.Y8G("ngIf",e.isCreated(null==e.activeCommunity.site?null:e.activeCommunity.site.status))}}function rt(o,E){1&o&&(t.j41(0,"div",43)(1,"div"),t.nrm(2,"img",44),t.k0s(),t.j41(3,"div"),t.EFF(4,"Set Up Your Site"),t.k0s()())}function ct(o,E){if(1&o){const e=t.RV6();t.j41(0,"div",45)(1,"img",46),t.bIt("error",function(){O.eBV(e);const M=t.XpG(2);return O.Njj(M.activeCommunity.photoUrl="/assets/images/default-site-image.jpg")}),t.k0s(),t.j41(2,"lib-status",47),t.EFF(3),t.k0s()()}if(2&o){const e=t.XpG(2);t.xc7("background-image","url("+e.activeCommunity.photoUrl+")"),t.R7$(),t.Y8G("src",e.activeCommunity.photoUrl,t.B4B),t.R7$(),t.Aen(e.statusStyle.Strong),t.Y8G("matTooltip",e.getBadgeTooltip(e.activeCommunity.site))("type",e.isPublished(e.activeCommunity.site.status)?e.activeCommunity.site.unpublishedChanges?e.statusType.Warning:e.statusType.Positive:e.statusType.OnImage)("size",e.statusSize.Regular),t.R7$(),t.SpI(" ",e.isPublished(e.activeCommunity.site.status)?"Published":"Unpublished"," ")}}function lt(o,E){if(1&o&&t.DNE(0,rt,5,0,"div",41)(1,ct,4,9,"div",42),2&o){const e=t.XpG();t.Y8G("ngIf",!e.activeCommunity||!e.activeCommunity.photoUrl),t.R7$(),t.Y8G("ngIf",e.activeCommunity&&e.activeCommunity.photoUrl)}}function ut(o,E){1&o&&(t.j41(0,"div",48),t.nrm(1,"mat-spinner",49),t.j41(2,"span",50),t.EFF(3,"Exporting..."),t.k0s()())}const mt={UnpublishSite:"unpublish",ExportMilestones:"exportMilestones"},_t=[{path:"",component:(()=>{class o{constructor(e,m,M,U,j,w,dt,vt,gt){this.sitesSnapshotsService=e,this.cdr=m,this.activatedRoute=M,this.router=U,this.siteService=j,this.matDialog=w,this.milestonesService=dt,this.snackBar=vt,this.mixPanelService=gt,this.communityList$=this.sitesSnapshotsService.communityList$,this.exportingMilestones$=this.milestonesService.exportingMilestones$,this.activeCommunityId="",this.buttonStyle=l.inm,this.buttonType=l.VQ,this.iconButtonType=l.ZUJ,this.buttonState={...l.UwB,...l.waY},this.buttonIconPosition=l.fEU,this.statusType=l.XUj,this.statusStyle=l.WO1,this.statusSize=l.Iqg,this.menusActions=mt,this.exportMenuConfig={items:[{label:"Upcoming Events and Announcements",id:this.menusActions.ExportMilestones,icon:{icon:"trumpet",isSVG:!0}}]},this.actionsMenuConfig=()=>({items:[{label:"Unpublish",id:this.menusActions.UnpublishSite,de
1structive:!0,state:this.activeCommunity?.site?.status!==S.u.PUBLISH?l.UwB.Disabled:l.UwB.Default}]}),this.destroy$=new r.B}ngOnInit(){this.activatedRoute.parent?.parent?.url.pipe((0,a.Q)(this.destroy$),(0,h.M)(e=>{this.activeCommunityId=e[0].path}),(0,c.K)(this.communityList$)).subscribe(e=>{this.activeCommunity=e.find(m=>m.id===this.activeCommunityId),this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}isMemberSpace(e){return"memberSpace"===e}isPublished(e){return e===S.u.PUBLISH}isCreated(e){return e!==S.u.NEW}getBadgeTooltip(e){return this.isPublished(e.status)?e.unpublishedChanges?"The website is live but there are some unpublished changes":"The website is live":"You have to publish your site to go live"}createSite(e){this.router.navigate([v.r.SITES,v.r.NEW,v.r.APPS],{queryParams:{sfid:e.site.id,id:e.id}})}unPublishSite(e){this.matDialog.open(g.P,(o=>({disableClose:!0,maxWidth:"424px",panelClass:u.C,data:{title:`Unpublish ${o} Initiative`,message:"The public web address won\u2019t be available, but all data will be stored",buttons:{cancel:{title:"Cancel"},confirm:{title:"Unpublish",type:y.O.ERROR}}}}))(e.name)).afterClosed().pipe((0,f.s)(1),(0,B.p)(Boolean)).subscribe(()=>{this.siteService.unPublishSite(e.site.id).pipe((0,f.s)(1)).subscribe(({status:M})=>{this.activeCommunity.site.status=M,this.cdr.detectChanges()})})}editSite(e){var m=this;return(0,x.A)(function*(){yield m.router.navigate([L.n.BUILDER,e])})()}exportMilestone(){this.milestonesService.initExportMilestones(this.activeCommunity.site.id,this.activeCommunity.name,this.activeCommunity.site.path).subscribe({next:e=>{const m=(0,d.V)({blob:e.body,communityName:this.activeCommunity.name,exportDataType:p.R.EVENTS,fileType:p.D.PPTX});this.snackBar.openFromComponent(R.Y,A.g0),this.trackExportPresentation(m)},error:()=>{this.snackBar.openFromComponent(R.Y,A.z)}})}trackExportPresentation(e){this.mixPanelService.pageTrack(this.mixPanelService.ACTIONS.OPEN_DOCUMENT,{entityType:D.Gz.COMMUNITY,entityId:this.activeCommunity.id,entityName:this.activeCommunity.name,documentName:e,documentType:"file",action:"download"})}static{this.\u0275fac=function(m){return new(m||o)(t.rXU($.X),t.rXU(N.gRc),t.rXU(G.nX),t.rXU(G.Ix),t.rXU(X.T),t.rXU(F.bZ),t.rXU(H.J),t.rXU(z.UG),t.rXU(W.aO))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-overview"]],standalone:!1,decls:11,vars:3,consts:[["actionsMenuInstance","libMenu"],["exportMenuInstance","libMenu"],["buttonContainerPublishSpaceTemplate",""],["photoPublishSpaceTemplate",""],["exportMilestonesLoading",""],["exportMenuTrigger","matMenuTrigger"],[4,"ngIf"],["xPosition","before",1,"overview-action-menu",3,"clicked","menuItemsConfig"],[1,"sites"],[1,"sites__box"],[1,"sites__image-box"],[4,"ngTemplateOutlet"],[1,"sites__content-container"],[1,"sites__tier-menu"],[1,"sites__tier-menu__items"],[3,"type","matMenuTriggerFor"],["libIconContent","","svgIcon","more-dots-horizontal"],[1,"sites__title-container"],[1,"sites__title","heading-bold"],[1,"sites__description"],["class","sites__url-container",4,"ngIf"],[1,"export-presentation"],["svgIcon","slides-windows"],[1,"export-presentation__text"],[1,"body-small-medium"],[1,"body-xs-regular"],[1,"export-presentation__export"],[4,"ngIf","ngIfElse"],["svgIcon","earth"],["svgIcon","user-followers-no-bg"],["svgIcon","user-members"],[1,"sites__url-container"],["class","sites__url","target","_blank",3,"href",4,"ngIf"],["class","sites__url sites__url--no-active",4,"ngIf"],["target","_blank",1,"sites__url",3,"href"],["svgIcon","globe-smart-home"],[1,"sites__url","sites__url--no-active"],[3,"type","iconPosition","matMenuTriggerFor","state"],["libIconContent","","svgIcon","attach-file"],[3,"style","buttonClick",4,"ngIf"],[3,"buttonClick"],["class","sites__empty-image-box-container",4,"ngIf"],["class","sites__image",3,"background-image",4,"ngIf"],[1,"sites__empty-image-box-container"],["src","/assets/images/default-site-image.jpg","alt",""],[1,"sites__image"],[3,"error","src"],["matTooltipPosition","below",1,"publish-status",3,"matTooltip","type","size"],[1,"exporting_loader"],["diameter","20",1,"loading"],[1,"exporting_loader__text","body-sm-regular"]],template:function(m,M){if(1&m){const U=t.RV6();t.DNE(0,it,31,15,"ng-container",6),t.j41(1,"lib-menu",7,0),t.bIt("clicked",function(w){return O.eBV(U),O.Njj(w.id===M.menusActions.UnpublishSite&&M.unPublishSite(M.activeCommunity))}
1),t.k0s(),t.j41(3,"lib-menu",7,1),t.bIt("clicked",function(w){return O.eBV(U),O.Njj(w.id===M.menusActions.ExportMilestones&&M.exportMilestone())}),t.k0s(),t.DNE(5,at,2,2,"ng-template",null,2,t.C5r)(7,lt,2,2,"ng-template",null,3,t.C5r)(9,ut,4,0,"ng-template",null,4,t.C5r)}2&m&&(t.Y8G("ngIf",M.activeCommunityId),t.R7$(),t.Y8G("menuItemsConfig",M.actionsMenuConfig()),t.R7$(2),t.Y8G("menuItemsConfig",M.exportMenuConfig))},dependencies:[_.bT,_.T3,l.Qpp,l.CR$,l.q9O,l.ZuA,l.xBz,b.LG,i.Cp,V.oV,s.An,_.Jj],styles:['@keyframes _ngcontent-%COMP%_shine-lines{to{transform:translate(100%)}}[_nghost-%COMP%]{padding-top:var(--space-500);display:block}.sites[_ngcontent-%COMP%]{width:872px}.sites__box[_ngcontent-%COMP%]{display:flex;background-color:var(--colour-surface-base);border:var(--border-width-hairline) solid var(--colour-border-tertiary);box-sizing:border-box;border-radius:10px;min-height:140px}.sites__image-box[_ngcontent-%COMP%], .sites__image[_ngcontent-%COMP%], .sites__image[_ngcontent-%COMP%]:before{border-radius:10px 0 0 10px}.sites__image-box[_ngcontent-%COMP%]{min-width:196px;min-height:196px;width:256px;height:auto;background:var(--colour-surface-accent-subtle-default)}.sites__empty-image-box-container[_ngcontent-%COMP%]{color:var(--colour-text-secondary);height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.sites__image[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.sites__image[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:none}.sites__image[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;pointer-events:none;display:block;background-image:var(--colour-gradient-on-image-bt);opacity:var(--opacity-high)}.sites__content-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;padding:var(--space-100) var(--space-200) var(--space-300) var(--space-300)}.sites__tier-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:var(--space-050)}.sites__tier-menu__items[_ngcontent-%COMP%]{font-family:var(--typography-label-bold-caps-x-small-font-family);font-weight:var(--typography-label-bold-caps-x-small-font-weight);line-height:var(--typography-label-bold-caps-x-small-line-height);font-size:var(--typography-label-bold-caps-x-small-font-size);letter-spacing:var(--typography-label-bold-caps-x-small-letter-spacing);text-transform:var(--typography-label-bold-caps-x-small-text-case);display:flex;gap:var(--space-200);color:var(--colour-text-neutral-default)}.sites__tier-menu__items[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-050)}.sites__tier-menu__items[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:var(--size-150);width:var(--size-150);font-size:var(--size-150);line-height:var(--size-150)}.sites__title-container[_ngcontent-%COMP%]{justify-content:center;display:flex;flex:1;flex-direction:column}.sites__title-container[_ngcontent-%COMP%] .hide-on-path[_ngcontent-%COMP%]{opacity:0;visibility:hidden}.sites__description[_ngcontent-%COMP%], .sites__url[_ngcontent-%COMP%]{font-family:var(--typography-label-regular-font-family);font-weight:var(--typography-label-regular-font-weight);line-height:var(--typography-label-regular-line-height);font-size:var(--typography-label-regular-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case)}.sites__title[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;color:var(--colour-text-primary);margin-bottom:var(--space-050)!important}.sites__description[_ngcontent-%COMP%]{font-family:var(--typography-label-regular-font-family);font-weight:var(--typography-label-regular-font-weight);line-height:var(--typography-label-regular-line-height);font-size:var(--typography-label-regular-font-size);letter-spacing:var(--typography-body-regular-letter-spacing);text-transform:var(--typography-body-regular-text-case);color:var(--colour-text-secondary);margin-bottom:var(--space-200)}.sites__url-container[_ngcontent-%COMP%]{margin-bottom:var(--space-300)}.sites__url-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:var(--size-250);width:var(--size-250);font-size:var(--size-250);line-height:var(--size-250)}.sites__url[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-050);color:var(--colour-text-accent-default)}.sites__url--no-active[_ngcontent-%COMP%]{color:var(--colour-text-neutral-default)}.sites[_ngcontent-%COMP%] .publish-status[_ngcontent-%COMP%]{position:absolute;margin:var(--space-200)}.export-presentation[_ngcontent-%COMP%]{display:flex;background-color:var(--colour-surface-base);border:var(--border-width-hairline) solid var(--colour-border-tertiary);box-sizing:border-box;border-radius:10px;padding:var(--space-300);width:872px;align-items:center;margin-top:var(--space-400)}.export-presentation[_ngcontent-%COMP%] > mat-icon[svgIcon=slides-windows][_ngcontent-%COMP%]{height:var(--size-500);width:var(--size-500);font-size:var(--size-500);line-height:var(--size-500);margin-right:var(--space-200)}.export-presentation__text[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-child{color:var(--colour-text-primary)}.export-presentation__text[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:last-child{margin:0;color:var(--colour-text-secondary)}.export-presentation__export[_ngcontent-%COMP%]{margin-left:auto}.exporting_loader[_ngcontent-%COMP%]{display:flex;padding:var(--space-100);justify-content:center;align-items:center;gap:var(--space-100)}.exporting_loader__text[_ngcontent-%COMP%]{color:var(--colour-text-secondary)} .overview-action-menu{max-width:350px}'],changeDetection:0})}}return o}
1)()}];let pt=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=O.G2t({imports:[T.iI.forChild(_t),T.iI]})}}return o})(),Mt=(()=>{class o{static{this.\u0275fac=function(m){return new(m||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=O.G2t({imports:[_.MD,pt,g.P,l.Qpp,l.q9O,l.ZuA,l.xBz,l.ZuA,b.D6,i.Cn,I.u,s.m_]})}}return o})()},32850(Y,C,n){"use strict";n.d(C,{D:()=>s,R:()=>_});var _=function(i){return i.MEMBERS="MemberList",i.EVENTS="Events",i.ASSESSMENT_REPORT="AssessmentReport",i}(_||{}),s=function(i){return i.XLSX="xlsx",i.PPTX="pptx",i.PDF="pdf",i}(s||{})},17036(Y,C,n){"use strict";n.d(C,{V:()=>b});var _=n(72200),s=n(2578);const b=I=>{const{blob:l,communityName:g,exportDataType:T,fileType:x}=I;if(l){const h=`${g.replace(/ /g,"_")}_${T}_${(0,_.Yq)(new Date,"dMMMyy","en-US")}.${x}`;return s.saveAs(l,h),h}return""}},59211(Y,C,n){"use strict";n.d(C,{Ev:()=>a,OT:()=>h,PH:()=>c,PR:()=>b,Tc:()=>r,XU:()=>I,eA:()=>i,jB:()=>x,mI:()=>l,mX:()=>T,my:()=>g});var _=n(48090),s=n(9347);const i=6,b=1,I=3,l=568,g=728,T=620,x=`(max-width: ${_.T.TABLET-1}px)`,r=`(min-width: ${_.T.TABLET}px) and (max-width: ${_.T.LARGE_DESKTOP-1}px)`,a=[s.h.COMMUNITY_MEETING,s.h.SESSION],h={[s.h.FORUM_EVENT]:"Forum Event",[s.h.PROGRAMME]:"Forum Event",[s.h.AFFILIATED_EVENT]:"Affiliated Event",[s.h.COMMUNITY_MEETING]:"Community Meeting",[s.h.CO_ORGANIZED_MEETING]:"Co-organized Meeting",[s.h.EXTERNAL_MEETING]:"External Meeting",[s.h.SESSION]:"Session",[s.h.MILESTONE]:"Announcement"},c={[s.h.FORUM_EVENT]:"milestone-event",[s.h.PROGRAMME]:"milestone-event",[s.h.AFFILIATED_EVENT]:"milestone-event",[s.h.COMMUNITY_MEETING]:"milestone-community",[s.h.CO_ORGANIZED_MEETING]:"milestone-co-organized",[s.h.EXTERNAL_MEETING]:"milestone-external",[s.h.SESSION]:"milestone-session",[s.h.MILESTONE]:"horn"}},9347(Y,C,n){"use strict";n.d(C,{h:()=>_});var _=function(s){return s.COMMUNITY_MEETING="Community Meeting",s.CO_ORGANIZED_MEETING="Co-organized Meeting",s.EXTERNAL_MEETING="External Meeting",s.FORUM_EVENT="Forum Event",s.SESSION="Session",s.MILESTONE="Milestone",s.AFFILIATED_EVENT="Affiliated Event",s.PROGRAMME="Programme",s}(_||{})},65769(Y,C,n){"use strict";n.d(C,{J:()=>R});var _=n(97586),s=n.n(_),i=n(84412),b=n(983),I=n(99437),l=n(70980),g=n(96354),T=n(25558),x=n(96697),r=n(88141),a=n(84100),h=n(59211),c=n(2615),f=n(29330),B=n(49030),L=n(54427),S=n(73878);let R=(()=>{class D{constructor(p,d,v,u){this.http=p,this.idpService=d,this.tierService=v,this.apiEndpointService=u,this.isLoading$=new i.t(!1),this.exportingMilestones$=new i.t(!1),this.milestonesLength$=new i.t(0),this.error$=new i.t(null),this.currentDate=s()(),this.currentMonth=this.currentDate.month()+1,this.currentYear=this.currentDate.year()}fetchMilestones(p){return this.isLoading$.next(!0),this.getMilestones(
1p).pipe((0,g.T)(d=>this.mapToDictionary(d)),(0,r.M)(d=>this.milestonesLength$.next(Object.values(d).flat().length)),(0,I.W)(d=>this.handleError(d)),(0,l.j)(()=>this.isLoading$.next(!1)))}initExportMilestones(p,d,v){return this.exportingMilestones$.next(!0),this.fetchMilestonesForExport(p).pipe((0,T.n)(u=>this.exportMilestones({initiativeName:d,milestones:u,initiativeBaseUrl:v})),(0,l.j)(()=>{this.exportingMilestones$.next(!1)}),(0,x.s)(1))}fetchMilestonesForExport(p){return this.getMilestones(p).pipe((0,g.T)(d=>this.filterMapSortMilestones(d)))}exportMilestones(p){return this.http.post(`${this.apiEndpointService.getFWSEndpoint()}/export/ppt/milestones`,p,{responseType:"blob",observe:"response"})}getMilestones(p){const d=this.tierService.isPublic()?`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/public/sites/${p}/milestones`:`${this.apiEndpointService.getFWSEndpoint()}/communities/v1/sites/${p}/milestones`;return this.http.get(d)}mapToDictionary(p){const d=this.filterMapSortMilestones(p),v=[];for(let y=0;y<h.eA;y++){const P=s()().year(this.currentYear).month(this.currentMonth-1+y),t=(P.month()+1)%12||12,N=`${P.year()+Math.floor((P.month()+1)/12)-(12===t?1:0)}-${String(t).padStart(2,"0")}-01`;v.push(N)}const u={};return v.forEach(y=>{u[y]=d.filter(P=>{const t=s()(P.startDate),O=String(t.month()+1).padStart(2,"0"),N=String(t.year()),$=y.split("-");return O===$[1]&&N===$[0]})}),u}
1filterMapSortMilestones(p){return p.filter(u=>{const y=s()(u.startDate);return y.year()>this.currentYear||y.year()===this.currentYear&&y.month()+1>=this.currentMonth}).map(u=>({...u,fullDate:this.getFormattedDateInterval(u.startDate,u.endDate),...(u.country||u.city)&&{fullLocation:`${u.country}, ${u.city}`}})).sort((u,y)=>{const P=s()(u.startDate),t=s()(y.startDate);return P.valueOf()-t.valueOf()})}getFormattedDateInterval(p,d){const v=s()(p),u=s()(d);return v.isValid()&&u.isValid()?v.startOf("day").isSame(u.startOf("day"))?v.format(a.o.D_MMM_YYYY):v.month()===u.month()&&v.year()===u.year()?`${v.format(a.o.D)}\u2013${u.format(a.o.D_MMM_YYYY)}`:v.year()===u.year()?`${v.format(a.o.D_MMM)}\u2013${u.format(a.o.D_MMM_YYYY)}`:`${v.format(a.o.D_MMM_YYYY)}\u2013${u.format(a.o.D_MMM_YYYY)}`:"-"}handleError(p){return this.error$.next(p),b.w}static{this.\u0275fac=function(d){return new(d||D)(c.KVO(f.Qq),c.KVO(B.JP),c.KVO(L.s),c.KVO(S.J))}}static{this.\u0275prov=c.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()},2578(Y,C){var n,s;void 0!==(s="function"==typeof(n=function(){"use strict";function b(r,a,h){var c=new XMLHttpRequest;c.open("GET",r),c.responseType="blob",c.onload=function(){x(c.response,a,h)},c.onerror=function(){console.error("could not download file")},c.send()}function I(r){var a=new XMLHttpRequest;a.open("HEAD",r,!1);try{a.send()}catch{}return 200<=a.status&&299>=a.status}function l(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var a=document.createEvent("MouseEvents");
vendor: 2,084 bytes, line 1
1a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(a)}}var g="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,T=g.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),x=g.saveAs||("object"!=typeof window||window!==g?function(){}:"download"in HTMLAnchorElement.prototype&&!T?function(r,a,h){var c=g.URL||g.webkitURL,f=document.createElement("a");f.download=a=a||r.name||"download",f.rel="noopener","string"==typeof r?(f.href=r,f.origin===location.origin?l(f):I(f.href)?b(r,a,h):l(f,f.target="_blank")):(f.href=c.createObjectURL(r),setTimeout(function(){c.revokeObjectURL(f.href)},4e4),setTimeout(function(){l(f)},0))}:"msSaveOrOpenBlob"in navigator?function(r,a,h){if(a=a||r.name||"download","string"!=typeof r)navigator.msSaveOrOpenBlob(function i(r,a){return typeof a>"u"?a={autoBom:!1}:"object"!=typeof a&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\ufeff",r],{type:r.type}):r}(r,h),a);else if(I(r))b(r,a,h);else{var c=document.createElement("a");c.href=r,c.target="_blank",setTimeout(function(){l(c)})}}:function(r,a,h,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),"string"==typeof r)return b(r,a,h);var f="application/octet-stream"===r.type,B=/constructor/i.test(g.HTMLElement)||g.safari,L=/CriOS\/[\d]+/.test(navigator.userAgent);if((L||f&&B||T)&&typeof FileReader<"u"){var S=new FileReader;S.onloadend=function(){var A=S.result;A=L?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=A:location=A,c=null},S.readAsDataURL(r)}else{var R=g.URL||g.webkitURL,D=R.createObjectURL(r);c?c.location=D:location.href=D,c=null,setTimeout(function(){R.revokeObjectURL(D)},4e4)}});g.saveAs=x.saveAs=x,Y.exports=x})?n.apply(C,[]):n)&&(Y.exports=s)}}]);
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.