PageSourceSearch

https://portal.alasconnect.com/7468.b4057bccfa329ca3.js

js alasconnect.com collected 2026-10-03 19:46:57 UTC 399,689 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkCloudRadial=self.webpackChunkCloudRadial||[]).push([[7468],{21552:(ln,Se,C)=>{C.d(Se,{i:()=>K});var E=C(54438),N=C(60177),A=C(89417),te=C(46196);function ne(n,Q){1&n&&(E.j41(0,"span"),E.EFF(1,"\u2013"),E.k0s())}function X(n,Q){if(1&n){const P=E.RV6();E.j41(0,"div",2)(1,"div",3)(2,"input",4),E.mxI("ngModelChange",function(le){const Oe=E.eBV(P).$implicit;return E.DH7(Oe.isSubscribed,le)||(Oe.isSubscribed=le),E.Njj(le)}),E.k0s(),E.j41(3,"label",5)(4,"span",6),E.EFF(5),E.k0s(),E.j41(6,"span",7),E.DNE(7,ne,2,0,"span",0),E.EFF(8),E.k0s()()()()}if(2&n){const P=Q.$implicit;E.R7$(2),E.FS9("title",P.description),E.FS9("name",P.id),E.FS9("id",P.id),E.R50("ngModel",P.isSubscribed),E.R7$(),E.FS9("for",P.id),E.R7$(2),E.JRh(P.name),E.R7$(2),E.Y8G("ngIf",P.description),E.R7$(),E.SpI(" ",P.description,"")}}function ke(n,Q){1&n&&(E.j41(0,"div"),E.EFF(1," No subscriptions available. "),E.k0s())}function U(n,Q){if(1&n&&(E.j41(0,"div"),E.DNE(1,X,9,8,"div",1)(2,ke,2,0,"div",0),E.k0s()),2&n){const P=E.XpG();E.R7$(),E.Y8G("ngForOf",P.subscription.packages),E.R7$(),E.Y8G("ngIf",0==P.subscription.packages.length)}}function G(n,Q){1&n&&(E.j41(0,"div"),E.EFF(1," No subscriptions available.\n"),E.k0s())}let K=(()=>{class n{constructor(){}static{this.\u0275fac=function(M){return new(M||n)}}static{this.\u0275cmp=E.VBU({type:n,selectors:[["subscription-editor"]],inputs:{subscription:"subscription"},decls:2,vars:2,consts:[[4,"ngIf"],["class","subscription",4,"ngFor","ngForOf"],[1,"subscription"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"ngModelChange","title","ngModel","name","id"],[1,"form-check-label",3,"for"],["notranslate","",1,"subName"],["notranslate","",1,"subDesc"]],template:function(M,le){1&M&&E.DNE(0,U,3,2,"div",0)(1,G,2,0,"div",0),2&M&&(E.Y8G("ngIf",le.subscription),E.R7$(),E.Y8G("ngIf",!le.subscription))},dependencies:[N.Sq,N.bT,A.Zm,A.BC,A.vS,te.C3],styles:[".subscription[_ngcontent-%COMP%]{padding-top:10px}.subDesc[_ngcontent-%COMP%]{font-size:14px;opacity:.8}"]})}static{this.\u0275prov=E.jDH({token:n,factory:n.\u0275fac})}}return n})()},48397:(ln,Se,C)=>{C.d(Se,{D:()=>A});var E=C(84412),N=C(54438);let A=(()=>{class te{constructor(){this.selectedUserId=new E.t(null),this.selectedUserId$=this.selectedUserId.asObservable()}selectUser(X){this.selectedUserId.next(X)}clear(){this.selectedUserId.next(null)}static{this.\u0275fac=function(ke){return new(ke||te)}}static{this.\u0275prov=N.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})()},9214:(ln,Se,C)=>{C.r(Se),C.d(Se,{CompanyModule:()=>pb});var E=C(6744),N=C(90979),A=C(71581),te=C(80924),ne=C(65752),X=C(54106),ke=C(87136),U=C(72585),G=C(39408),K=C(93512),n=C(54438),Q=C(8996),P=C(51188),M=C(60177),le=C(80377),Oe=C(20100),rt=C(97812),zo=C(81548),cn=C(1134),ki=C(73539),Xo=C(51280),Ri=C(49206),V=C(89417),I=C(96268),st=C(89786),Wo=C(73076),qo=C(93952),yt=C(94676),dn=C(21552),un=C(53612),Ct=C(1695),Et=C(31050),Qo=C(25708),Ai=C(46196),St=C(27452),Ge=C(58544),ot=C(47220);const Zo=["saveAsModal"],Ti=()=>({allowUnsort:!1,mode:"single"}),wi=()=>[10,20,50,100],Di=i=>({pageSizes:i}),xi=()=>({mode:"single"});function Jo(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",4),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}if(2&i){const e=n.XpG();n.HbH("pageHeaderButton"),n.Y8G("title","Edit articles")("label","Edit All")("icon","fal fa-pencil")("moduleType",e.moduleType)("permission","Edit")}}function Ko(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",4),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}if(2&i){const e=n.XpG();n.HbH("pageHeaderButton Finish"),n.Y8G("title","Close editing")("label","Finish Edit")("icon","fal fa-pencil")("moduleType",e.moduleType)("permission","Edit")}}function ea(i,t){if(1&i&&(n.j41(0,"option",21),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.Y8G("value",e.id),n.R7$(),n.SpI(" ",e.name," ")}}function ta(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",8)(1,"div",17)(2,"label",18),n.EFF(3),n.k0s(),n.nrm(4,"br"),n.j41(5,"select",19),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG();return n.DH7(o.roleFilter,s)||(o.roleFilter=s),n.Njj(s)}),n.j41(6,"option",20),n.EFF(7,"All roles"),n.k0s(),n.Z7z(8,ea,2,2,"option",21,n.Vm6),n.k0s()()()}if(2&i){const e=n.XpG();n.R7$(3),n.JRh(e.filterLegendTitle),n.R7$(2),n.R50("ngModel",e.roleFilter),n.R7$(3),n.Dyx(e.allRoles)}}function na(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",27)(1,"span",28),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.displayMode(0))}),n.k0s(),n.j41(2,"span",29),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.displayMode(1))}),n.k0s()()}}function ia(i,t){1&i&&(n.j41(0,"div",27),n.nrm(1,"span",30)(2,"span",31),n.k0s())}function ra(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",22),n.nrm(1,"banner-display",23),n.j41(2,"div",24)(3,"searchBox",25),n.bIt("onSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.searchForText())}),n.k0s()(),n.DNE(4,na,3,0,"div",26)(5,ia,3,0,"div",26),n.k0s()}if(2&i){const e=n.XpG();n.R7$(),n.Y8G("location",1)("placement",2),n.R7$(2),n.Y8G("model",e.searchModel)("label","Search articles..."),n.R7$(),n.Y8G("ngIf",!e.isInSearch),n.R7$(),n.Y8G("ngIf",e.isInSearch)}}function sa(i,t){1&i&&(n.j41(0,"div"),n.EFF(1,"Searching..."),n.k0s())}function oa(i,t){1&i&&(n.j41(0,"div"),n.EFF(1,"No records available."),n.k0s())}function aa(i,t){if(1&i&&n.DNE(0,sa,2,0,"div",11)(1,oa,2,0,"div",11),2&i){const e=n.XpG(2);n.Y8G("ngIf",e._dataService.isBusy),n.R7$(),n.Y8G("ngIf",!e._dataService.isBusy)}}function la(i,t){1&i&&n.nrm(0,"span",43)}function ca(i,t){1&i&&n.nrm(0,"span",46)}function da(i,t){if(1&i&&(n.j41(0,"span",44),n.EFF(1),n.DNE(2,ca,1,0,"span",45),n.k0s()),2&i){const e=t.$implicit;n.FS9("title",e.summary),n.Y8G("ngClass",e.isFavorite?"favorite articleSearchTitle":"articleSearchTitle"),n.R7$(),n.Sp
1I("",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function ua(i,t){1&i&&(n.j41(0,"span",47),n.EFF(1,"Subject"),n.k0s())}function fa(i,t){1&i&&(n.EFF(0),n.nI1(1,"localizedMediumDateZ")),2&i&&n.SpI(" ",n.bMT(1,1,t.$implicit.date)," ")}function pa(i,t){1&i&&(n.j41(0,"span",48),n.EFF(1,"Date"),n.k0s())}function ha(i,t){if(1&i&&(n.j41(0,"span",49),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.JRh(e.author)}}function ma(i,t){1&i&&(n.j41(0,"span",50),n.EFF(1,"Author"),n.k0s())}function ga(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",32)(1,"div",33)(2,"div",34),n.EFF(3),n.k0s(),n.j41(4,"kendo-grid",35),n.nI1(5,"async"),n.bIt("selectionChange",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.gridUserSelectionChange(s))})("dataStateChange",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.dataStateChange(s))}),n.DNE(6,aa,2,2,"ng-template",36),n.j41(7,"kendo-grid-column",37),n.DNE(8,la,1,0,"ng-template",38),n.k0s(),n.j41(9,"kendo-grid-column",39),n.DNE(10,da,3,4,"ng-template",38)(11,ua,2,0,"ng-template",40),n.k0s(),n.j41(12,"kendo-grid-column",41),n.DNE(13,fa,2,3,"ng-template",38)(14,pa,2,0,"ng-template",40),n.k0s(),n.j41(15,"kendo-grid-column",42),n.DNE(16,ha,2,1,"ng-template",38)(17,ma,2,0,"ng-template",40),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(3),n.SpI(" ",e.searchTitle," "),n.R7$(),n.Y8G("data",n.bMT(5,15,e.gridData))("reorderable",!0)("resizable",!0)("sortable",n.lJ4(17,Ti))("sort",e.state.sort)("pageSize",e.state.take)("skip",e.state.skip)("pageable",n.eq3(19,Di,n.lJ4(18,wi)))("rowSelected",e.isRowSelected)("selectable",n.lJ4(21,xi))("filterable",!1),n.R7$(3),n.Y8G("width",35),n.R7$(5),n.Y8G("width",120),n.R7$(3),n.Y8G("width",180)}}function _a(i,t){1&i&&n.nrm(0,"span",43)}function va(i,t){1&i&&n.nrm(0,"span",46)}function ba(i,t){if(1&i&&(n.j41(0,"span",44),n.EFF(1),n.DNE(2,va,1,0,"span",45),n.k0s()),2&i){const e=t.$implicit;n.FS9("title",e.summary),n.Y8G("ngClass",e.isFavorite?"favorite articleSearchTitle":"articleSearchTitle"),n.R7$(),n.SpI("",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function ya(i,t){1&i&&(n.EFF(0),n.nI1(1,"localizedMediumDateZ")),2&i&&n.SpI(" ",n.bMT(1,1,t.$implicit.date)," ")}function Ca(i,t){if(1&i){const e=n.RV6();n.qex(0),n.j41(1,"kendo-grid",51,1),n.nI1(3,"async"),n.bIt("selectionChange",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.gridViewSelectionChange(s))})("dataStateChange",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.dataViewStateChange(s))}),n.j41(4,"kendo-grid-column",37),n.DNE(5,_a,1,0,"ng-template",38),n.k0s(),n.j41(6,"kendo-grid-column",39),n.DNE(7,ba,3,4,"ng-template",38),n.k0s(),n.nrm(8,"kendo-grid-column",52),n.j41(9,"kendo-grid-column",53),n.DNE(10,ya,2,3,"ng-template",38),n.k0s()(),n.bVm()}if(2&i){const e=n.XpG();n.R7$(),n.Y8G("data",n.bMT(3,13,e.gridData))("reorderable",!0)("resizable",!0)("sortable",n.lJ4(15,Ti))("sort",e.displayState.sort)("pageSize",e.displayState.take)("skip",e.displayState.skip)("pageable",n.eq3(17,Di,n.lJ4(16,wi)))("rowSelected",e.isRowSelected)("selectable",n.lJ4(19,xi))("filterable","row")("filter",e.displayFilter),n.R7$(3),n.Y8G("width",35)}}function Ea(i,t){1&i&&n.nrm(0,"span",46)}function Sa(i,t){if(1&i){const e=n.RV6();n.j41(0,"li")(1,"span",64),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.showArticle(s.id.toString()))}),n.EFF(2),n.DNE(3,Ea,1,0,"span",45),n.k0s()()}if(2&i){const e=t.$implicit,r=n.XpG(3);n.xc7("display",r.getFilterDisplay(e)),n.R7$(),n.Y8G("ngClass",e.isFavorite?"favorite":""),n.R7$(),n.SpI(" ",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function ka(i,t){if(1&i){const e=n.RV6();n.j41(0,"li")(1,"span",65),n.bIt("click",function(){n.eBV(e);const s=n.XpG().$implicit,o=n.XpG(2);return n.Njj(o.showCategory(s.category))}),n.EFF(2," See more articles... "),n.k0s()()}}function Ra(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",24)(1,"div",56)(2,"div",57),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(2);return n.Njj(o.showCategory(s.category))}),n.nrm(3,"div",58),n.j41(4,"div",59),n.EFF(5),n.j41(6,"div",60),n.EFF(7),n.k0s()()(),n.j41(8,"div",61)(9,"ul",62),n.DNE(10,Sa,4,5,"li",63)(11,ka,3,0,"li",11),n.k0s()()()()}if(2&i){const e=t.$implicit,r=n.XpG(2);n.R7$(5),n.SpI(" ",e.category," "),n.R7$(2),n.SpI("(",e.count,")"),n.R7$(3),n.Y8G("ngForOf",r.getLimitedArticles(e.category)),n.R7$(),n.Y8G("ngIf",r.hasMoreArticles(e.category))}}function Aa(i,t){if(1&i&&(n.j41(0,"div",54),n.DNE(1,Ra,12,4,"div",55),n.k0s()),2&i){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.categoryList)}}function Ta(i,t){1&i&&n.nrm(0,"span",46)}function wa(i,t){if(1&i){const e=n.RV6();n.j41(0,"li",75),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.showArticle(s.id.toString()))}),n.EFF(1),n.DNE(2,Ta,1,0,"span",45),n.k0s()}if(2&i){const e=t.$implicit;
1n.R7$(),n.SpI(" ",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function Da(i,t){if(1&i&&(n.j41(0,"div",68)(1,"h3"),n.EFF(2,"Popular"),n.k0s(),n.j41(3,"div",73)(4,"ul",74),n.DNE(5,wa,3,2,"li",72),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(5),n.Y8G("ngForOf",e.popularList)}}function xa(i,t){if(1&i){const e=n.RV6();n.j41(0,"li",75),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(2);return n.Njj(o.showCategory(s.category))}),n.EFF(1),n.k0s()}if(2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e.category," ")}}function Ia(i,t){1&i&&n.nrm(0,"span",46)}function Ma(i,t){if(1&i){const e=n.RV6();n.j41(0,"li",75),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.showArticle(s.id.toString()))}),n.EFF(1),n.DNE(2,Ia,1,0,"span",45),n.k0s()}if(2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function Fa(i,t){if(1&i&&(n.j41(0,"div",68)(1,"h3"),n.EFF(2,"Latest"),n.k0s(),n.j41(3,"div",73)(4,"ul",74),n.DNE(5,Ma,3,2,"li",72),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(5),n.Y8G("ngForOf",e.newestList)}}function Na(i,t){if(1&i){const e=n.RV6();n.j41(0,"span",78),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.showTag(s.tag))}),n.EFF(1),n.j41(2,"span",79),n.EFF(3),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(),n.SpI("",e.tag,"\xa0 "),n.R7$(2),n.SpI("(",e.count,")")}}function ja(i,t){if(1&i&&(n.j41(0,"div",68)(1,"h3"),n.EFF(2,"Tags"),n.k0s(),n.j41(3,"div",76),n.DNE(4,Na,4,2,"span",77),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.tagList)}}function Oa(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",66),n.DNE(1,Da,6,1,"div",67),n.j41(2,"div",68)(3,"h3"),n.EFF(4,"Categories"),n.k0s(),n.j41(5,"div",69)(6,"ul",70)(7,"li",71),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.showCategory(""))}),n.EFF(8,"All"),n.k0s(),n.DNE(9,xa,2,1,"li",72),n.k0s()()(),n.DNE(10,Fa,6,1,"div",67)(11,ja,5,1,"div",67),n.k0s()}if(2&i){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.popularList.length>0),n.R7$(8),n.Y8G("ngForOf",e.categoryList),n.R7$(),n.Y8G("ngIf",e.newestList.length>0),n.R7$(),n.Y8G("ngIf",e.tagList.length>0)}}function Ga(i,t){if(1&i&&(n.j41(0,"div",94),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e," ")}}function Ba(i,t){if(1&i&&(n.j41(0,"div",92),n.DNE(1,Ga,2,1,"div",93),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.errors)}}function Pa(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",80)(1,"div",81)(2,"div",82),n.EFF(3,"Settings"),n.k0s(),n.j41(4,"div",83)(5,"button",84),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeAdminEdit())}),n.nrm(6,"span",85),n.EFF(7,"Close "),n.k0s()()(),n.j41(8,"div",86)(9,"div",87)(10,"h3"),n.EFF(11,"Content Subscriptions"),n.k0s(),n.DNE(12,Ba,2,1,"div",88),n.nrm(13,"subscription-editor",89),n.k0s(),n.j41(14,"blade-footer")(15,"rbac-button",90),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitAdmin())}),n.k0s(),n.j41(16,"button",91),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeAdminEdit())}),n.EFF(17," Cancel "),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(12),n.Y8G("ngIf",e.errors.length>0),n.R7$(),n.Y8G("subscription",e.contentSubscriptions),n.R7$(2),n.HbH("btn btn-primary me-2"),n.Y8G("label","Submit")("disabled",e._dataService.isBusy)("moduleType",e.moduleType)("permission","Full")}}function Ha(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",109),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.deleteArticle(s.displayArticle))}),n.nrm(1,"span",110),n.k0s()}}function La(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",111),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.editArticle(s.displayArticle))}),n.nrm(1,"span",112),n.EFF(2,"Edit "),n.k0s()}}function $a(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",122),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(4);return n.Njj(o.openAttachment(s))}),n.j41(1,"span",123),n.EFF(2,"Download "),n.j41(3,"var"),n.EFF(4),n.k0s()(),n.j41(5,"span",124),n.EFF(6),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(4),n.JRh(e.name),n.R7$(2),n.JRh(e.name)}}function Ua(i,t){if(1&i&&(n.j41(0,"div",118)(1,"div",119),n.EFF(2,"Attachments"),n.k0s(),n.j41(3,"div",120),n.DNE(4,$a,7,2,"button",121),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.files)}}function Va(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",86)(1,"h3",113),n.EFF(2),n.k0s(),n.nrm(3,"pdfviewer",114),n.DNE(4,Ua,5,1,"div",115),n.j41(5,"div",116)(6,"small",49),n.EFF(7),n.nI1(8,"localizedMediumDateZ"),n.k0s()(),n.j41(9,"blade-footer")(10,"button",117),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.closeArticle())}),n.EFF(11,"Close"),n.k0s()()()}if(2&i){const e=n.XpG(2);n.R7$(2),n.SpI(" ",e.displayArticle.subject," "),n.R7$(),n.Y8G("src",e.pdfSrc)("name",e.displayArticle.subject)("auth",!0)("showClose",!1),n.R7$(),n.Y8G("ngIf",e.displayArticle.files.length>0),n.R7$(3),n.JRh(n.bMT(8,7,e.displayArticle.date))}}function Ya(i,t){if(1&i&&(n.j41(0,"div",128),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);
1n.R7$(),n.SpI(" ",e.displayArticle.author," ")}}function za(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",122),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(4);return n.Njj(o.openAttachment(s))}),n.j41(1,"span",123),n.EFF(2,"Download "),n.j41(3,"var"),n.EFF(4),n.k0s()(),n.j41(5,"span",124),n.EFF(6),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(4),n.JRh(e.name),n.R7$(2),n.JRh(e.name)}}function Xa(i,t){if(1&i&&(n.j41(0,"div",118)(1,"div",119),n.EFF(2,"Attachments"),n.k0s(),n.j41(3,"div",120),n.DNE(4,za,7,2,"button",121),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.files)}}function Wa(i,t){if(1&i){const e=n.RV6();n.j41(0,"li")(1,"button",133),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(4);return n.Njj(o.openRelated(s.id.toString()))}),n.EFF(2),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(),n.Y8G("title",e.summary),n.R7$(),n.JRh(e.subject)}}function qa(i,t){if(1&i&&(n.j41(0,"div",129)(1,"div",130),n.EFF(2,"Related Articles"),n.k0s(),n.j41(3,"ul",131),n.DNE(4,Wa,3,2,"li",132),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(4),n.Y8G("ngForOf",e.relatedArticles)}}function Qa(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",86)(1,"h3",49),n.EFF(2),n.k0s(),n.DNE(3,Ya,2,1,"div",125),n.nrm(4,"div",126),n.nI1(5,"SafeHtml"),n.DNE(6,Xa,5,1,"div",115),n.j41(7,"div",116)(8,"small",49),n.EFF(9),n.nI1(10,"localizedMediumDateZ"),n.k0s()(),n.DNE(11,qa,5,1,"div",127),n.j41(12,"blade-footer")(13,"button",117),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.closeArticle())}),n.EFF(14,"Close"),n.k0s()()()}if(2&i){const e=n.XpG(2);n.R7$(2),n.SpI(" ",e.displayArticle.subject," "),n.R7$(),n.Y8G("ngIf",e.displayArticle.author),n.R7$(),n.Y8G("innerHTML",n.bMT(5,6,e.displayArticle.body),n.npT),n.R7$(2),n.Y8G("ngIf",e.displayArticle.files&&e.displayArticle.files.length>0),n.R7$(3),n.JRh(n.bMT(10,8,e.displayArticle.date)),n.R7$(2),n.Y8G("ngIf",e.relatedArticles&&e.relatedArticles.length>0)}}function Za(i,t){if(1&i&&(n.j41(0,"div",105)(1,"div",134),n.EFF(2),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(2),n.Lme(" ",e.displayArticle.articleFeedback.helpful," out of ",e.displayArticle.articleFeedback.total," users found this helpful ")}}function Ja(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",95),n.bIt("onEscape",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeArticle())}),n.j41(1,"div",81)(2,"div",82),n.EFF(3,"Knowledge Article"),n.k0s(),n.j41(4,"div",83),n.DNE(5,Ha,2,0,"button",96),n.j41(6,"rbac-button",97),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.openEntityEventsBlade())}),n.k0s(),n.j41(7,"rbac-button",4),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.saveAs(s.displayArticle))}),n.k0s(),n.DNE(8,La,3,0,"button",98),n.j41(9,"button",99),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.downloadPDF(s.displayArticle))}),n.nrm(10,"span",100),n.EFF(11,"Download "),n.k0s(),n.j41(12,"button",84),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.nrm(13,"span",85),n.EFF(14,"Close "),n.k0s()()(),n.DNE(15,Va,12,9,"div",101)(16,Qa,15,10,"div",101),n.j41(17,"div",102)(18,"div",103)(19,"div",104),n.EFF(20,"Was this article helpful?"),n.k0s()(),n.j41(21,"div",105)(22,"div",104)(23,"button",106),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.helpfulFeedback(!0))}),n.EFF(24," Yes "),n.k0s(),n.j41(25,"button",107),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.helpfulFeedback(!1))}),n.EFF(26," No "),n.k0s()()(),n.DNE(27,Za,3,2,"div",108),n.k0s()()}if(2&i){const e=n.XpG();n.Y8G("isWhite",!0),n.R7$(5),n.Y8G("ngIf",e.displayArticle.canBeDeleted),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Audit Trail")("icon","fal fa-book")("moduleType",e.moduleType)("feature","Partner_Security_AuditTrail")("permission","Full"),n.R7$(),n.HbH("pageHeaderButton pageHeaderPartner"),n.Y8G("title","Partner Save As")("label","Save As")("icon","fal fa-save")("moduleType",e.moduleType)("permission","Full"),n.R7$(),n.Y8G("ngIf",e.displayArticle.canBeEdited),n.R7$(7),n.Y8G("ngIf",e.showPdf),n.R7$(),n.Y8G("ngIf",!e.showPdf),n.R7$(7),n.Y8G("disabled",e._dataService.isBusy),n.R7$(2),n.Y8G("disabled",e._dataService.isBusy),n.R7$(2),n.Y8G("ngIf",e.displayArticle.articleFeedback)}}function Ka(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",135)(1,"div",81)(2,"div",82),n.EFF(3,"Edit Article"),n.k0s(),n.j41(4,"div",83)(5,"button",84),n.bIt("click",function(){n.eBV(e);const s=n.XpG();
1return n.Njj(s.cancelForm())}),n.nrm(6,"span",85),n.EFF(7,"Cancel "),n.k0s()()(),n.j41(8,"div",86)(9,"article-editor",136),n.bIt("onSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitForm())})("onCancel",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.k0s()()()}if(2&i){const e=n.XpG();n.R7$(9),n.Y8G("article",e.articleModel)("title","")("errors",e.errors)("categories",e.categoryList)("uploader",e.uploader)("moduleType","Company_KnowledgeBase")}}let fn=(()=>{class i{constructor(e,r,s,o,a,l,c,u,d,m,h,p,_,v,b){this._blade=e,this._browserutils=r,this._confirmService=s,this._route=o,this._router=a,this._location=l,this._gridService=c,this._slimLoading=u,this._dataService=d,this._user=m,this.huduService=h,this.fileUploadService=p,this.auditTrailService=_,this.mixpanelService=v,this.roleService=b,this.path="",this.disableFeedback=!1,this.maxFileSize=52428800,this.moduleType="",this.articlesPerCategoryLimit=10,this.editMode=!1,this.filterLegendTitle="Show Items Based on Role Membership",this.roleFilter="",this.allRoles=[],this.tagList=[],this.categoryList=[],this.articleList=[],this.popularList=[],this.newestList=[],this.searchList=[],this.searchTitle="",this.isInSearch=!1,this.searchModel={text:"",isDebounce:!0,isEnter:!1},this.articleModel={author:"",body:"",category:"",date:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,isSubscribed:!1,subject:"",isFavorite:!1,isFrontPage:!1,removedFiles:[],summary:"",tags:[],tagString:"",url:"",isNewWindow:!1,viewCount:0,permalink:"",templatePackId:0,templatePackName:"",articleSource:X.f.None,externalArticleId:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.newArticleModel={author:"",body:"",category:"",date:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,isSubscribed:!1,subject:"",isFavorite:!1,isFrontPage:!1,removedFiles:[],summary:"",tags:[],tagString:"",url:"",isNewWindow:!1,viewCount:0,permalink:"",templatePackId:0,templatePackName:"",articleSource:X.f.Editor,externalArticleId:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.displayArticle={author:"",body:"",category:"",date:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,isSubscribed:!1,subject:"",isFavorite:!1,isFrontPage:!1,removedFiles:[],summary:"",tags:[],tagString:"",url:"",isNewWindow:!1,viewCount:0,permalink:"",templatePackId:0,templatePackName:"",articleSource:X.f.Editor,externalArticleId:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.errors=[],this.showForm=!1,this.showEdit=!1,this.relatedArticles=[],this.showPdf=!1,this.showAdmin=!1,this.contentSubscriptions={type:te.sO.Articles,packages:[]},this.state={skip:0,take:this._user.UserProfile.user.rowsPerPage},this.baseFilter=[{field:"text",operator:"contains",value:"",ignoreCase:!0}],this.baseComposite={logic:"and",filters:this.baseFilter},this.isRowSelected=()=>!1,this.displayState={skip:0,take:10},this.displayStyle=0,this.pdfSrc="",this.displayId=0,this._gridService.setBaseURL("/api/articles"),this.gridData=c,this.moduleType=G.nR.Company_KnowledgeBase,this.uploader=this.fileUploadService.instance({url:"/api/articles/files",maxFileSize:this.maxFileSize},y=>{y.additionalParameter={articleId:this.articleModel.id}}),this.fillData(new A.Yj)}toggleEdit(){this.editMode=!this.editMode,this.editMode?(0==this.allRoles.length&&this.fetchAllRoles(),this.roleFilter=""):this.roleFilter="",this.isInSearch=!1;const e=new A.Yj;return this.editMode?(e.filters="all",e.conditions="eq",e.values="true",this._browserutils.openToast('Click on an item to edit. Click "Finish Edit" to stop.',"Edit Mode",N.R.success)):this._browserutils.clearToasts(),this.fillData(e),!1}ngOnInit(){this.paramsSubscription=this._route.params.subscribe(e=>{if(this.path=this._router.url.includes("/categories")?"/app/company/categories":"/app/company/articles",e.id)if(this._router.url.includes("/categories/")){const r=decodeURIComponent(e.id);this.showCategory(r)}else this.showArticle(e.id)})}ngOnDestroy(){this.paramsSubscription&&this.paramsSubscription.unsubscribe()}searchForText(){if(""!=this.searchModel.text&&this.searchModel.text.length>0){const e=this.searchModel.text.toLowerCase();this.searchTitle="Search Results",this.baseFilter[0].field="text",this.baseFilter[0].operator="
1contains",this.baseFilter[0].value=encodeURIComponent(e),this.state.filter=this.baseComposite,this.state.skip=0,this.state.take=this._user.UserProfile.user.rowsPerPage,this.isInSearch=!0;const r=this._gridService.convertFrom(this.state,null,this.state.filter);this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._gridService.query(r)}else this.displayMode(this.displayStyle)}showCategory(e){if(this.searchTitle=e,""!=e){this.baseFilter[0].field="category",this.baseFilter[0].operator="eq",this.baseFilter[0].value=encodeURIComponent(e),this.state.filter=this.baseComposite,this.isInSearch=!0,this.searchModel.text="";const r=encodeURIComponent(e),s="/app/company/categories/"+r;this._router.url.includes("/categories/"+r)||this._location.replaceState(s);const o=this._gridService.convertFrom(this.state,null,this.state.filter);this.editMode&&(o.filters+="^all",o.conditions+="^eq",o.values+="^true"),this._gridService.query(o)}else{const r="/app/company/articles";this._router.url!==r&&this._location.replaceState(r),this.displayMode(this.displayStyle)}return!1}showTag(e){this.searchTitle='Tag "'+e+'"',this.baseFilter[0].field="tag",this.baseFilter[0].operator="eq",this.baseFilter[0].value=e,this.state.skip=0,this.state.take=10,this.state.filter=this.baseComposite,this.isInSearch=!0,this.searchModel.text="";const r=this._gridService.convertFrom(this.state,null,this.state.filter);return this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._gridService.query(r),!1}fetchAllRoles(){this.allRoles=[],this.roleService.getAssignableRoles(this.moduleType).subscribe({next:e=>{this.allRoles=e},error:e=>{console.error("Error loading roles:",e)}})}fillData(e){if(this._slimLoading.start(),1==this.displayStyle){const r=this._gridService.convertFrom(this.displayState,null,this.displayFilter);this._gridService.query(r)}this._dataService.get(e,"/api/articles/summary").subscribe(r=>{this.categoryList=r.data,this.articleList=r.extended,this._slimLoading.complete()},r=>{this.errors=this._dataService.processErrors(r)}),this._dataService.get(e,"/api/articles/tags").subscribe(r=>{this.tagList=r.data}),this._dataService.get(e,"/api/articles/popular").subscribe(r=>{this.popularList=r.data}),this._dataService.get(e,"/api/articles/newest").subscribe(r=>{this.newestList=r.data})}submitForm(){this.articleModel.tags=[];const e=this.articleModel.tagString.split(",");for(let r=0;r<e.length;r++)this.articleModel.tags.push({tag:e[r],count:0});return this._slimLoading.start(),this._dataService.post(this.articleModel,"/api/articles").subscribe(r=>{const s=new A.Yj;this.editMode&&(s.filters="all",s.conditions="eq",s.values="true"),this.fillData(s),this.articleModel=r.data,this.cancelForm(),this.uploader.uploadAll(),this._slimLoading.complete(),this._browserutils.openToast(this.articleModel.id>0?"Article successfully updated.":"Article successfully created.","Done!",N.R.success)},r=>{this.errors=this._dataService.processErrors(r)}),!1}openRelated(e){return this.showForm=!1,this._location.replaceState(this.path),this.showArticle(e),!1}showArticle(e){this.showPdf=!1;const r=new A.Yj;return this.editMode?(r.filters="id^all",r.conditions="eq^eq",r.values=e+"^true"):(r.filters="id",r.conditions="eq",r.values=e),this._slimLoading.start(),this._dataService.get(r,"/api/articles").subscribe(s=>{if(s.data.length>0){switch(this.displayArticle=s.data[0],this.mixpanelService.trackEvent(K.N.ArticleView,{Subject:this.displayArticle.subject,Permalink:this.displayArticle.permalink}),this.displayArticle.articleSource){case X.f.None:case X.f.Editor:break;case X.f.Hudu:{const o=parseInt(this.displayArticle.externalArticleId);this.huduService.getArticleAndUpdateContent(o,this.displayArticle.id).subscribe(a=>{a&&(this.displayArticle.body=a.content)});break}default:if(this.displayArticle.url){if(this.displayArticle.isNewWindow&&!this.editMode)return this._slimLoading.complete(),this._router.url.endsWith("articles")||this._location.replaceState(this.path),r.filters="id",r.conditions="eq",r.values=this.displayArticle.id.toString(),this._dataService.get(r,"/api/articles/view").subscribe(),window.open(this.displayArticle.url),!1;this.showPdf=!0,this.pdfSrc="/api/articles/pdf?f=id&c=eq&v="+this.displayArticle.id.toString(),this.displayId=1}}
1this._slimLoading.complete(),this.showForm=!0,this._blade.showMe(),this.path="/app/company/articles",this.path.includes(this.displayArticle.id.toString())||this._location.replaceState(this.path+"/"+this.displayArticle.id.toString()),r.filters="id",r.conditions="eq",r.values=this.displayArticle.id.toString(),this._dataService.get(r,"/api/articles/view").subscribe(),this.relatedArticles=[],this._dataService.get(r,"/api/articles/similar").subscribe(o=>{o.data&&o.data.length>0&&(this.relatedArticles=o.data)})}},s=>{this.errors=this._dataService.processErrors(s)}),!1}editArticle(e){const r=new A.Yj;return this.editMode?(r.filters="id^all^isEdit",r.conditions="eq^eq^eq",r.values=e.id.toString()+"^true^true"):(r.filters="id^isEdit",r.conditions="eq^eq",r.values=e.id.toString()+"^true"),this._slimLoading.start(),this._dataService.get(r,"/api/articles").subscribe(s=>{if(s.data.length>0){if(this.articleModel=s.data[0],this.articleModel.tagString="",this.articleModel.tags)for(let o=0;o<this.articleModel.tags.length;o++)this.articleModel.tagString.length>0&&(this.articleModel.tagString+=", "),this.articleModel.tagString+=this.articleModel.tags[o].tag;this._slimLoading.complete(),this.errors=[],this.uploader.clearQueue(),this.displayArticle.id=0,this._blade.showMe()}}),!1}deleteArticle(e){return this._confirmService.activate('Are you sure you want to delete "'+e.subject+'"?').then(r=>{r==ne.x.OK&&this._dataService.delete(e.id,"/api/articles").subscribe(()=>{this.articleModel.id=0,this.fillData(new A.Yj),this.closeArticle(),this._browserutils.openToast("Article successfully deleted.","Done!",N.R.success)},s=>{this.errors=this._dataService.processErrors(s),this._browserutils.pushErrorToast(this.errors[0])})}),!1}cancelForm(){return this.closeArticle()}closeArticle(){return this.showForm=!1,this.displayArticle.id=0,this.pdfSrc="",this._blade.closeMe(),this._location.replaceState(this.path),!1}addArticle(){return this.articleModel=JSON.parse(JSON.stringify(this.newArticleModel)),this.showForm=!0,this.uploader.clearQueue(),this._blade.showMe(),this.errors=[],!1}closeMe(){this._blade.closeMe(),this.showForm=!1,this.displayArticle.id=0}clickEdit(){return this.showEdit=!this.showEdit,this.showEdit?this._blade.showMe():this._blade.closeMe(),!1}showAdminEdit(){const e=new A.Yj;return e.filters="type",e.conditions="eq",e.values=this.contentSubscriptions.type.toString(),this._dataService.get(e,"/api/content/subscription").subscribe(r=>{this.contentSubscriptions=r.data,this.showAdmin=!0,this._blade.showMe()}),!1}submitAdmin(){return this._slimLoading.start(),this._dataService.post(this.contentSubscriptions,"/api/content/subscription").subscribe(()=>{this._slimLoading.complete(),this.fillData(new A.Yj),this._browserutils.openToast("Subscription list updated.","Done!",N.R.success),this.closeAdminEdit()},e=>{this.errors=this._dataService.processErrors(e)}),!1}closeAdminEdit(){return this.showAdmin=!1,this._blade.closeMe(),!1}dataStateChange(e){this._user.UserProfile.user.rowsPerPage!=e.take&&this._dataService.updateRowsPerpage(e.take),this._user.UserProfile.user.rowsPerPage=e.take,this.state.skip=e.sort!=this.state.sort?0:e.skip,this.state.take=e.take,this.state.sort=e.sort;const r=this._gridService.convertFrom(this.state,this.state.sort,this.state.filter);this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._gridService.query(r)}dataViewStateChange(e){this._user.UserProfile.user.rowsPerPage!=e.take&&this._dataService.updateRowsPerpage(e.take),this._user.UserProfile.user.rowsPerPage=e.take,this.displayState.skip=e.sort!=this.displayState.sort?0:e.skip,this.displayState.take=e.take,this.displayState.sort=e.sort,this.displayFilter=e.filter;const r=this._gridService.convertFrom(this.displayState,this.displayState.sort,this.displayFilter);this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._gridService.query(r)}gridUserSelectionChange(e){this.showArticle(e.selectedRows[0].dataItem.id.toString())}openAttachment(e){return this._slimLoading.start(),this._browserutils.busyCursor(),this._dataService.downloadFileNoAuth(e.viewUrl).subscribe(r=>{this._dataService.downloadContent(r,e.name),this._slimLoading.complete(),this._browserutils.normalCursor()},r=>{this._browserutils.normalCursor(),this._dataService.processErrors(r)}),!1}downloadPDF(e){return this.showPdf?(window.open(this.pdfSrc,"_blank"),!1):(this.errors=[],this._slimLoading.start(),this._browserutils.busyCursor(),this._dataService.downloadFile("/api/articles/pdf?f=id&c=eq&v="+e.id.toString()).subscribe(r=>{this._dataService.downloadContent(r,this._browserutils.SafeName(e.subject)+".pdf"),this._slimLoading.complete(),this._browserutils.normalCursor()},r=>{this._browserutils.normalCursor(),this._dataService.processErrors(r)}),!1)}isRoleFilter(e){return""==this.roleFilter?"block":"^"==this.roleFilter?e.roleIds&&0!=e.roleIds.length?"none":"":e.roleIds&&e.roleIds.some(r=>r===this.roleFilter)?"":"none"}getFilterDisplay(e){return this.isRoleFilter(e)}displayMode(e){if(1==e){const r=this._gridService.convertFrom(this.displayState,null,this.displayFilter);this._gridService.query(r)}this.displayStyle=e,this.searchModel.text="",this.isInSearch=!1}
1gridViewSelectionChange(e){this.showArticle(e.selectedRows[0].dataItem.id.toString())}saveAs(e){if(this.saveAsModal)return this.saveAsModal.activate(e,te.sO.Articles),!1}helpfulFeedback(e){let r=0;e&&(r=1),this.disableFeedback=!0,this._dataService.post({companyId:this._user.UserProfile.company.companyId,rating:r,articleId:this.displayArticle.id},"api/articles/feedback").subscribe(s=>{if(null!=s.data&&1==s.data){if(this.displayArticle.updateKey){const o=new A.Yj;o.filters="updateKey^companyId",o.values=this.displayArticle.updateKey+"^"+this._user.UserProfile.company.companyId,this._dataService.get(o,"api/articles/feedback").subscribe(a=>{const l=a.data;l&&(this.displayArticle.articleFeedback=l)})}this._browserutils.openToast("Your feedback was recieved.","Done!",N.R.success)}else this._browserutils.openToast("Your feedback was not recieved","Error",N.R.error);this.disableFeedback=!1})}openEntityEventsBlade(){this.displayArticle&&this.auditTrailService.displayEvents(U.F.Article,this.displayArticle.id)}getLimitedArticles(e){return this.articleList.filter(s=>s.category===e).slice(0,this.articlesPerCategoryLimit)}hasMoreArticles(e){return this.articleList.filter(s=>s.category===e).length>this.articlesPerCategoryLimit}static{this.\u0275fac=function(r){return new(r||i)(n.rXU(Q.C),n.rXU(N.b),n.rXU(ne.G),n.rXU(P.nX),n.rXU(P.Ix),n.rXU(M.aZ),n.rXU(le.M),n.rXU(Oe.KO),n.rXU(A.jK),n.rXU(rt.D),n.rXU(zo.U),n.rXU(ke.P),n.rXU(cn.L),n.rXU(K.U),n.rXU(ki.W))}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["az-company"]],viewQuery:function(r,s){if(1&r&&n.GBs(Zo,5),2&r){let o;n.mGM(o=n.lsd())&&(s.saveAsModal=o.first)}},features:[n.Jv_([ke.P])],decls:19,vars:26,consts:[["saveAsModal",""],["grid",""],[1,"d-flex","flex-column","h-100"],[3,"title"],[3,"click","title","label","icon","moduleType","permission"],[3,"title","label","class","icon","moduleType","permission","click",4,"ngIf"],[1,"row","h-100","overflow-auto"],[1,"col","d-flex","flex-column","h-100","overflow-auto","py-3"],[1,"row"],["class","row align-items-center mb-3",4,"ngIf"],["class","row h-100 overflow-hidden",4,"ngIf"],[4,"ngIf"],["class","row row-cols-auto articleList",4,"ngIf"],["class","col-auto d-none d-md-block navpanel h-100 overflow-auto",4,"ngIf"],["class","w-45-responsive",4,"ngIf"],["class","w-65-responsive",3,"isWhite","onEscape",4,"ngIf"],["class","w-65-responsive",4,"ngIf"],[1,"editAllContentBox"],["for","filterDropdown"],["id","roleFilter","name","roleFilter",1,"form-select",2,"width","300px",3,"ngModelChange","ngModel"],["value",""],["notranslate","",3,"value"],[1,"row","align-items-center","mb-3"],[3,"location","placement"],[1,"col"],[2,"width","100%",3,"onSubmit","model","label"],["class","col-auto",4,"ngIf"],[1,"col-auto"],[1,"fal","fa-th","me-3",2,"cursor","pointer",3,"click"],[1,"fal","fa-bars",2,"cursor","pointer",3,"click"],[1,"fal","fa-th","me-3","text-muted"],[1,"fal","fa-bars","text-muted"],[1,"row","h-100","overflow-hidden"],[1,"col","d-flex","flex-column","h-100","overflow-hidden"],["notranslate","",1,"searchTitle"],["width","100%",1,"h-100","overflow-hidden",3,"selectionChange","dataStateChange","data","reorderable","resizable","sortable","sort","pageSize","skip","pageable","rowSelected","selectable","filterable"],["kendoGridNoRecordsTemplate",""],["media","(min-width: 1200px)",1,"gridGraphic",3,"width"],["kendoGridCellTemplate",""],["field","subject","title","Subject"],["kendoGridHeaderTemplate",""],["field","date","title","Date","media","(min-width: 1000px)",3,"width"],["field","author","title","Author","media","(min-width: 1200px)",3,"width"],[1,"fal","fa-file-alt"],["notranslate","",3,"title","ngClass"],["class","external-link",4,"ngIf"],[1,"external-link"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Subject"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Date"],["notranslate",""],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Author"],[1,"h-100","overflow-hidden",3,"selectionChange","dataStateChange","data","reorderable","resizable","sortable","sort","pageSize","skip","pageable","rowSelected","selectable","filterable","filter"],["field","category","title","Category","media","(min-width: 1000px)"],["field","date","title","Date","media","(min-width: 1200px)"],[1,"row","row-cols-auto","articleList"],["class","col",4,"ngFor","ngForOf"],[1,"card","h-100"],[1,"card-header","headerText","clearfix",2,"cursor","pointer",3,"click"],[1,"categoryFolder","fal","fa-folder"],["notranslate","",1,"categoryName"],[1,"categoryCount"],[1,"card-body"],[2,"padding-left","10px !important"],[3,"display",4,"ngFor","ngForOf"],["notranslate","",3,"click","ngClass"],[1,"fst-italic",3,"click"],[1,"col-auto","d-none","d-md-block","navpanel","h-100","overflow-auto"],["class","navpanelSection",4,"ngIf"],[1,"navpanelSection"],[1,"itemList"],[1,"categorylist"],[3,"click"],["notranslate","",3,"click",4,"ngFor","ngForOf"],[1,"popular"],[1,"articlelist"],["notranslate","",3,"click"],[1,"tagList"],["class","tag","notranslate","",3,"click",4,"ngFor","ngForOf"],["notranslate","",1,"tag",3,"click"],[2,"font-size","smaller","color","var(--text-muted-accessible)"],[1,"w-45-responsive"],[1,"bladeHeader","clearfix"],[1,"bladeTitle"],[1,"bladeCommands"],["title","Close",1,"pageHeaderButton",3,"click"],[1,"fal","fa-times"],[1,"bladeBody"],[1,"mb-3"],["class","top-20",4,"ngIf"],[3,"subscription"],[3,"click","label","disabled","moduleType","permission"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"top-20"],["class","alert alert-danger","role","alert",4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-danger"],[1,"w-65-responsive",3,"onEscape","isWhite"],["title","Delete","class","pageHeaderButtonImage pageHeaderDelete",3,"click",4,"ngIf"],[3,"click","title","icon","moduleType","feature","permission"],["title","Edit","class","pageHeaderButton",3,"click",4,"ngIf"],["title","Download PDF",1,"pageHeaderButton",3,"click"],[1,"fal","fa-file-pdf"],["class","bladeBody",4,"ngIf"],[1,"bladeBody","feedback"],[1,"row","pt-0"],[1,"col","pl-0"],[1,"row","pt-1"],[1,"btn","btn-secondary","positive","me-2",3,"click","disabled"],[1,"btn","btn-secondary","negative",3,"click","disabled"],["class","row pt-1",4,"ngIf"],["title","Delete",1,"pageHeaderButtonImage","pageHeaderDelete",3,"click"],[1,"fal","fa-tras
1h"],["title","Edit",1,"pageHeaderButton",3,"click"],[1,"fal","fa-pencil"],["notranslate","",1,"clearfix"],[2,"display","block","height","calc(100vh - 335px)",3,"src","name","auth","showClose"],["style","padding-top: 30px",4,"ngIf"],[2,"padding-top","20px"],[1,"btn","btn-secondary",3,"click"],[2,"padding-top","30px"],[1,"articleFileAttachmentHeader"],[1,"clearfix"],["type","button","class","downloadBox",3,"click",4,"ngFor","ngForOf"],["type","button",1,"downloadBox",3,"click"],[1,"visually-hidden"],["notranslate","","aria-hidden","true"],["class","bladeBodySubHeading","style","padding-bottom: 10px","notranslate","",4,"ngIf"],["notranslate","",1,"froalaText","fr-view",3,"innerHTML"],["style","margin-top: 30px",4,"ngIf"],["notranslate","",1,"bladeBodySubHeading",2,"padding-bottom","10px"],[2,"margin-top","30px"],[2,"font-weight","bold"],[2,"padding","0 1.5rem"],[4,"ngFor","ngForOf"],["type","button","kendoButton","","fillMode","link","notranslate","",3,"click","title"],[1,"col","pl-1"],[1,"w-65-responsive"],[3,"onSubmit","onCancel","article","title","errors","categories","uploader","moduleType"]],template:function(r,s){if(1&r){const o=n.RV6();n.j41(0,"div",2)(1,"page-header",3)(2,"rbac-button",4),n.bIt("click",function(){return n.eBV(o),n.Njj(s.showAdminEdit())}),n.k0s(),n.j41(3,"rbac-button",4),n.bIt("click",function(){return n.eBV(o),n.Njj(s.addArticle())}),n.k0s(),n.DNE(4,Jo,1,7,"rbac-button",5)(5,Ko,1,7,"rbac-button",5),n.k0s(),n.j41(6,"div",6)(7,"div",7),n.DNE(8,ta,10,2,"div",8)(9,ra,6,6,"div",9)(10,ga,18,22,"div",10)(11,Ca,11,20,"ng-container",11)(12,Aa,2,1,"div",12),n.k0s(),n.DNE(13,Oa,12,4,"div",13),n.k0s()(),n.DNE(14,Pa,18,8,"blade-display",14)(15,Ja,28,22,"blade-display",15)(16,Ka,10,6,"blade-display",16),n.nrm(17,"saveAsContent",null,0)}2&r&&(n.R7$(),n.Y8G("title",s._user.GetPortalString("KB","Knowledge Base")),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Edit settings")("label","Settings")("icon","fa fa-cog")("moduleType",s.moduleType)("permission","Full"),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Add article")("label","Add")("icon","fal fa-plus")("moduleType",s.moduleType)("permission","Edit"),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("ngIf",s.editMode),n.R7$(3),n.vxM(s.editMode&&s.allRoles?8:-1),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("ngIf",s.isInSearch),n.R7$(),n.Y8G("ngIf",!s.isInSearch&&1==s.displayStyle),n.R7$(),n.Y8G("ngIf",!s.isInSearch&&0==s.displayStyle),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("ngIf",s.showAdmin),n.R7$(),n.Y8G("ngIf",s.showForm&&s.displayArticle.id>0),n.R7$(),n.Y8G("ngIf",s.showForm&&0==s.displayArticle.id))},dependencies:[Xo.R,Ri.W,Q.C,M.YU,M.Sq,M.bT,V.xH,V.y7,V.wz,V.BC,V.vS,I._ab,I.Ioe,I.i4w,I.jqs,I.TiO,st.y,Wo.H,qo.V,yt.T,dn.i,un.dg,Ct.S,Et.J,Qo.Qp,Ai.C3,St.j,M.Jj,Ge.FI,ot.$n],styles:[".articleList[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{background-color:var(--main-widget-background)}.articleSearchResult[_ngcontent-%COMP%]{cursor:pointer}.articleSearchTitle[_ngcontent-%COMP%]{color:var(--main-link-color)}.articleFileAttachmentHeader[_ngcontent-%COMP%]{margin-bottom:5px;font-size:8pt;text-transform:uppercase}.subscription[_ngcontent-%COMP%]{margin-top:10px}.articleSearchList[_ngcontent-%COMP%]{cursor:pointer;margin-top:20px}.favoriteMenu[_ngcontent-%COMP%]{margin-left:10px;font-weight:600;font-size:10px}.searchTitle[_ngcontent-%COMP%]{color:var(--main-text-color);font-size:15pt}.quickNav[_ngcontent-%COMP%]{width:100%;text-align:center}.pdfWrapper[_ngcontent-%COMP%]{margin-top:10px;width:100%;box-sizing:border-box;border:solid 5px transparent}.preWrapper[_ngcontent-%COMP%]{border:solid 5px var(--main-border-color);min-height:100vh;padding:20px}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.saving[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:200%;animation-name:_ngcontent-%COMP%_blink;animation-duration:1.4s;animation-iteration-count:infinite;animation-fill-mode:both}.saving[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(1){margin-left:5px}.saving[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.saving[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}.whitebg[_ngcontent-%COMP%]{background:#fff!important;color:#242424!important}.whitebg[_ngcontent-%COMP%]   .btn.btn-secondary.positive[_ngcontent-%COMP%]{border-color:var(--positive)!important;color:var(--positive)!important}.whitebg[_ngcontent-%COMP%]   .btn.btn-secondary.negative[_ngcontent-%COMP%]{border-color:var(--negative)!important;color:var(--negative)!important}.feedback[_ngcontent-%COMP%]{font-size:14px;opacity:.7;text-align:center}.feedback[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{min-width:60px;line-height:1;font-size:10px}.feedback[_ngcontent-%COMP%]   .btn-secondary.positive[_ngcontent-%COMP%]{border-color:var(--positive)!important;color:var(--positive)!important}.feedback[_ngcontent-%COMP%]   .btn-secondary.negative[_ngcontent-%COMP%]{border-color:var(--negative)!important;color:var(--negative)!important}.feedback[_ngcontent-%COMP%]   .btn-secondary.positive[_ngcontent-%COMP%]:hover{background-color:var(--positive)!important;color:#fff!important}.feedback[_ngcontent-%COMP%]   .btn-secondary.negative[_ngcontent-%COMP%]:hover{background-color:var(--negative)!important;color:#fff!important}.feedback[_ngcontent-%COMP%]   .pl-1[_ngcontent-%COMP%]{font-style:italic}"]})}}return i})();var at,k,Ii,Mi,Xe,Be,Fi,Ni,ji,ue=C(70877),fe=C(91575),kt={},Oi=[],el=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pe(i,t){for(var e in t)i[e]=t[e];return i}function Gi(i){var t=i.parentNode;t&&t.removeChild(i)}function f(i,t,e){var r,s,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?at.call(arguments,2):e),"function"==typeof i&&null!=i.defaultProps)for(o in i.defaultProps)void 0===a[o]&&(a[o]=i.defaultProps[o]);return lt(i,a,r,s,null)}function lt(i,t,e,r,s){var o={type:i,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Ii};return null==s&&null!=k.vnode&&k.vnode(o),o}function j(i){return i.children}function Bi(i,t,e){"-"===t[0]?i.setProperty(t,e??""):i[t]=null==e?"":"number"!=typeof e||el.test(t)?e:e+"px"}function Rt(i,t,e,r,s){var o;e:if("style"===t)if("string"==typeof e)i.style.cssText=e;else{if("string"==typeof r&&(i.style.cssText=r=""),r)for(t in r)e&&t in e||Bi(i.style,t,"");if(e)for(t in e)r&&e[t]===r[t]||Bi(i.style,t,e[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in i?t.toLowerCase().slice(2):t.slice(2),i.l||(i.l={}),i.l[t+o]=e,e?r||i.addEventListener(t,o?Hi:Pi,o):i.removeEventListener(t,o?Hi:Pi,o);else if("dangerouslySetInnerHTML"!==t){if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in 
vendor: 14,598 bytes, line 1
1i)try{i[t]=e??"";break e}catch{}"function"==typeof e||(null==e||!1===e&&-1==t.indexOf("-")?i.removeAttribute(t):i.setAttribute(t,e))}}function Pi(i){Xe=!0;try{return this.l[i.type+!1](k.event?k.event(i):i)}finally{Xe=!1}}function Hi(i){Xe=!0;try{return this.l[i.type+!0](k.event?k.event(i):i)}finally{Xe=!1}}function ie(i,t){this.props=i,this.context=t}function ct(i,t){if(null==t)return i.__?ct(i.__,i.__.__k.indexOf(i)+1):null;for(var e;t<i.__k.length;t++)if(null!=(e=i.__k[t])&&null!=e.__e)return e.__e;return"function"==typeof i.type?ct(i):null}function Li(i){var t,e;if(null!=(i=i.__)&&null!=i.__c){for(i.__e=i.__c.base=null,t=0;t<i.__k.length;t++)if(null!=(e=i.__k[t])&&null!=e.__e){i.__e=i.__c.base=e.__e;break}return Li(i)}}function nl(i){Xe?setTimeout(i):Ni(i)}function pn(i){(!i.__d&&(i.__d=!0)&&Be.push(i)&&!At.__r++||Fi!==k.debounceRendering)&&((Fi=k.debounceRendering)||nl)(At)}function At(){var i,t,e,r,s,o,a,l;for(Be.sort(function(c,u){return c.__v.__b-u.__v.__b});i=Be.shift();)i.__d&&(t=Be.length,r=void 0,s=void 0,a=(o=(e=i).__v).__e,(l=e.__P)&&(r=[],(s=pe({},o)).__v=o.__v+1,hn(l,o,s,e.__n,void 0!==l.ownerSVGElement,null!=o.__h?[a]:null,r,a??ct(o),o.__h),zi(r,o),o.__e!=a&&Li(o)),Be.length>t&&Be.sort(function(c,u){return c.__v.__b-u.__v.__b}));At.__r=0}function $i(i,t,e,r,s,o,a,l,c,u){var d,m,h,p,_,v,b,y=r&&r.__k||Oi,S=y.length;for(e.__k=[],d=0;d<t.length;d++)if(null!=(p=e.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?lt(null,p,null,null,p):Array.isArray(p)?lt(j,{children:p},null,null,null):p.__b>0?lt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=e,p.__b=e.__b+1,null===(h=y[d])||h&&p.key==h.key&&p.type===h.type)y[d]=void 0;else for(m=0;m<S;m++){if((h=y[m])&&p.key==h.key&&p.type===h.type){y[m]=void 0;break}h=null}hn(i,p,h=h||kt,s,o,a,l,c,u),_=p.__e,(m=p.ref)&&h.ref!=m&&(b||(b=[]),h.ref&&b.push(h.ref,null,p),b.push(m,p.__c||_,p)),null!=_?(null==v&&(v=_),"function"==typeof p.type&&p.__k===h.__k?p.__d=c=Ui(p,c,i):c=Vi(i,p,h,y,_,c),"function"==typeof e.type&&(e.__d=c)):c&&h.__e==c&&c.parentNode!=i&&(c=ct(h))}for(e.__e=v,d=S;d--;)null!=y[d]&&("function"==typeof e.type&&null!=y[d].__e&&y[d].__e==e.__d&&(e.__d=Yi(r).nextSibling),Wi(y[d],y[d]));if(b)for(d=0;d<b.length;d++)Xi(b[d],b[++d],b[++d])}function Ui(i,t,e){for(var r,s=i.__k,o=0;s&&o<s.length;o++)(r=s[o])&&(r.__=i,t="function"==typeof r.type?Ui(r,t,e):Vi(e,r,r,s,r.__e,t));return t}function he(i,t){return t=t||[],null==i||"boolean"==typeof i||(Array.isArray(i)?i.some(function(e){he(e,t)}):t.push(i)),t}function Vi(i,t,e,r,s,o){var a,l,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==e||s!=o||null==s.parentNode)e:if(null==o||o.parentNode!==i)i.appendChild(s),a=null;else{for(l=o,c=0;(l=l.nextSibling)&&c<r.length;c+=1)if(l==s)break e;i.insertBefore(s,o),a=o}return void 0!==a?a:s.nextSibling}function Yi(i){var t,e,r;if(null==i.type||"string"==typeof i.type)return i.__e;if(i.__k)for(t=i.__k.length-1;t>=0;t--)if((e=i.__k[t])&&(r=Yi(e)))return r;return null}function hn(i,t,e,r,s,o,a,l,c){var u,d,m,h,p,_,v,b,y,S,w,T,z,O,$,x=t.type;if(void 0!==t.constructor)return null;null!=e.__h&&(c=e.__h,l=t.__e=e.__e,t.__h=null,o=[l]),(u=k.__b)&&u(t);try{e:if("function"==typeof x){if(b=t.props,y=(u=x.contextType)&&r[u.__c],S=u?y?y.props.value:u.__:r,e.__c?v=(d=t.__c=e.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(b,S):(t.__c=d=new ie(b,S),d.constructor=x,d.render=rl),y&&y.sub(d),d.props=b,d.state||(d.state={}),d.context=S,d.__n=r,m=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,x.getDerivedStateFromProps(b,d.__s))),h=d.props,p=d.state,d.__v=t,m)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===e.__v){for(t.__v!==e.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach(function(je){je&&(je.__=t)}),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,S),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,p,_)})}if(d.context=S,d.props=b,d.__P=i,T=k.__r,z=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,T&&T(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,T&&T(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++z<25);d.state=d.__s,null!=d.getChildContext&&(r=pe(pe({},r),d.getChildContext())),m||null==d.getSnapshotBeforeUpdate||(_=d.getSnapshotBeforeUpdate(h,p)),$=null!=u&&u.type===j&&null==u.key?u.props.children:u,$i(i,Array.isArray($)?$:[$],t,e,r,s,o,a,l,c),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==o&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=function il(i,t,e,r,s,o,a,l){var c,u,d,m=e.props,h=t.props,p=t.type,_=0;if("svg"===p&&(s=!0),null!=o)for(;_<o.length;_++)if((c=o[_])&&"setAttribute"in c==!!p&&(p?c.localName===p:3===c.nodeType)){i=c,o[_]=null;break}if(null==i){if(null===p)return document.createTextNode(h);i=s?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),o=null,l=!1}if(null===p)m===h||l&&i.data===h||(i.data=h);else{if(o=o&&at.call(i.childNodes),u=(m=e.props||kt).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!l){if(null!=o)for(m={},_=0;_<i.attributes.length;_++)m[i.attributes[_].name]=i.attributes[_].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===i.innerHTML)||(i.innerHTML=d&&d.__html||""))}if(function tl(i,t,e,r,s){var o;for(o in e)"children"===o||"key"===o||o in t||Rt(i,o,null,e[o],r);for(o in t)s&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||e[o]===t[o]||Rt(i,o,t[o],e[o],r)}(i,h,m,s,l),d)t.__k=[];else if(_=t.props.children,$i(i,Array.isArray(_)?_:[_],t,e,r,s&&"foreignObject"!==p,o,a,o?o[0]:e.__k&&ct(e,0),l),null!=o)for(_=o.length;_--;)null!=o[_]&&Gi(o[_]);l||("value"in h&&void 0!==(_=h.value)&&(_!==i.value||"progress"===p&&!_||"option"===p&&_!==m.value)&&Rt(i,"value",_,m.value,!1),"checked"in h&&void 0!==(_=h.checked)&&_!==i.checked&&Rt(i,"checked",_,m.checked,!1))}return i}(e.__e,t,e,r,s,o,a,c);(u=k.diffed)&&u(t)}catch(je){t.__v=null,(c||null!=o)&&(t.__e=l,t.__h=!!c,o[o.indexOf(l)]=null),k.__e(je,t,e)}}function zi(i,t){k.__c&&k.__c(t,i),i.some(function(e){try{i=e.__h,e.__h=[],i.some(function(r){r.call(e)})}catch(r){k.__e(r,e.__v)}})}function Xi(i,t,e){try{"function"==typeof i?i(t):i.current=t}catch(r){k.__e(r,e)}}function Wi(i,t,e){var r,s;if(k.unmount&&k.unmount(i),(r=i.ref)&&(r.current&&r.current!==i.__e||Xi(r,null,t)),null!=(r=i.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){k.__e(o,t)}r.base=r.__P=null,i.__c=void 0}if(r=i.__k)for(s=0;s<r.length;s++)r[s]&&Wi(r[s],t,e||"function"!=typeof i.type);e||null==i.__e||Gi(i.__e),i.__=i.__e=i.__d=void 0}function rl(i,t,e){return this.constructor(i,e)}function Re(i,t,e){var r,s,o;k.__&&k.__(i,t),s=(r="function"==typeof e)?null:e&&e.__k||t.__k,o=[],hn(t,i=(!r&&e||t).__k=f(j,null,[i]),s||kt,kt,void 0!==t.ownerSVGElement,!r&&e?[e]:s?null:t.firstChild?at.call(t.childNodes):null,o,!r&&e?e:s?s.__e:t.firstChild,r),zi(o,i)}at=Oi.slice,k={__e:function(i,t,e,r){for(var s,o,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(i)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(i,r||{}),a=s.__d),a)return s.__E=s}catch(l){i=l}throw i}},Ii=0,Mi=function(i){return null!=i&&void 0===i.constructor},Xe=!1,ie.prototype.setState=function(i,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=pe({},this.state),"function"==typeof i&&(i=i(pe({},e),this.props)),i&&pe(e,i),null!=i&&this.__v&&(t&&this._sb.push(t),pn(this))},ie.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),pn(this))},ie.prototype.render=j,Be=[],Ni="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,At.__r=0,ji=0;var H,mn,Zi,Ji=[],Tt=[],Ki=k.__b,er=k.__r,tr=k.diffed,nr=k.__c,ir=k.unmount;function fl(){for(var i;i=Ji.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(Dt),i.__H.__h.forEach(vn),i.__H.__h=[]}catch(t){i.__H.__h=[],k.__e(t,i.__v)}}k.__b=function(i){H=null,Ki&&Ki(i)},k.__r=function(i){er&&er(i);var t=(H=i.__c).__H;t&&(mn===H?(t.__h=[],H.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Tt,e.__N=e.i=void 0})):(t.__h.forEach(Dt),t.__h.forEach(vn),t.__h=[])),mn=H},k.diffed=function(i){tr&&tr(i);var t=i.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ji.push(t)&&Zi===k.requestAnimationFrame||((Zi=k.requestAnimationFrame)||pl)(fl)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Tt&&(e.__=e.__V),e.i=void 0,e.__V=Tt})),mn=H=null},k.__c=function(i,t){t.some(function(e){try{e.__h.forEach(Dt),e.__h=e.__h.filter(function(r){return!r.__||vn(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],k.__e(r,e.__v)}}),nr&&nr(i,t)},k.unmount=function(i){ir&&ir(i);var t,e=i.__c;e&&e.__H&&(e.__H.__.forEach(function(r){try{Dt(r)}catch(s){t=s}}),e.__H=void 0,t&&k.__e(t,e.__v))};var or="function"==typeof requestAnimationFrame;function pl(i){var t,e=function(){clearTimeout(r),or&&cancelAnimationFrame(t),setTimeout(i)},r=setTimeout(e,100);or&&(t=requestAnimationFrame(e))}function Dt(i){var t=H,e=i.__c;"function"==typeof e&&(i.__c=void 0,e()),H=t}function vn(i){var t=H;i.__c=i.__(),H=t}function yn(i,t){for(var e in i)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&i[r]!==t[r])return!0;return!1}function En(i){this.props=i}(En.prototype=new ie).isPureReactComponent=!0,En.prototype.shouldComponentUpdate=function(i,t){return yn(this.props,i)||yn(this.state,t)};var cr=k.__b;k.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),cr&&cr(i)},typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref");var vl=k.__e;k.__e=function(i,t,e,r){if(i.then)for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),s.__c(i,t);vl(i,t,e,r)};var ur=k.unmount;function fr(i,t,e){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(r){"function"==typeof r.__c&&r.__c()}),i.__c.__H=null),null!=(i=function lr(i,t){for(var e in t)i[e]=t[e];return i}({},i)).__c&&(i.__c.__P===e&&(i.__c.__P=t),i.__c=null),i.__k=i.__k&&i.__k.map(function(r){return fr(r,t,e)})),i}function pr(i,t,e){return i&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(r){return pr(r,t,e)}),i.__c&&i.__c.__P===t&&(i.__e&&e.insertBefore(i.__e,i.__d),i.__c.__e=!0,i.__c.__P=e)),i}function xt(){this.__u=0,this.t=null,this.__b=null}function hr(i){var t=i.__.__c;return t&&t.__a&&t.__a(i)}function dt(){this.u=null,this.o=null}k.unmount=function(i){var t=i.__c;t&&t.__R&&t.__R(),t&&!0===i.__h&&(i.type=null),ur&&ur(i)},(xt.prototype=new ie).__c=function(i,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var s=hr(r.__v),o=!1,a=function(){o||(o=!0,e.__R=null,s?s(l):l())};e.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=pr(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),i.then(a,a)},xt.prototype.componentWillUnmount=function(){this.t=[]},xt.prototype.render=function(i,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=fr(this.__b,e,r.__O=r.__P)}this.__b=null}var s=t.__a&&f(j,null,i.fallback);return s&&(s.__h=null),[f(j,null,t.__a?null:i.children),s]};var mr=function(i,t,e){if(++e[1]===e[0]&&i.o.delete(t),i.props.revealOrder&&("t"!==i.props.revealOrder[0]||!i.o.size))for(e=i.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;i.u=e=e[2]}};function yl(i){return this.getChildContext=function(){return i.context},i.children}function Cl(i){var t=this,e=i.i;t.componentWillUnmount=function(){Re(null,t.l),t.l=null,t.i=null},t.i&&t.i!==e&&t.componentWillUnmount(),i.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Re(f(yl,{context:t.context},i.__v),t.l)):t.l&&t.componentWillUnmount()}(dt.prototype=new ie).__a=function(i){var t=this,e=hr(t.__v),r=t.o.get(i);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),mr(t,i,r)):s()};e?e(o):o()}},dt.prototype.render=function(i){this.u=null,this.o=new Map;var t=he(i.children);i.revealOrder&&"b"===i.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return i.children},dt.prototype.componentDidUpdate=dt.prototype.componentDidMount=function(){var i=this;this.o.forEach(function(t,e){mr(i,e,t)})};var _r=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,El=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sl=typeof document<"u",kl=function(i){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(i)};ie.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(ie.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(t){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:t})}})});var vr=k.event;function Tl(){}function wl(){return this.cancelBubble}function Dl(){return this.defaultPrevented}k.event=function(i){return vr&&(i=vr(i)),i.persist=Tl,i.isPropagationStopped=wl,i.isDefaultPrevented=Dl,i.nativeEvent=i};var yr={configurable:!0,get:function(){return this.class}},Cr=k.vnode;k.vnode=function(i){var t=i.type,e=i.props,r=e;if("string"==typeof t){var s=-1===t.indexOf("-");for(var o in r={},e){var a=e[o];Sl&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in e&&null==a||("defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===a?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!kl(e.type)?o="onin
1put":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():s&&El.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=he(e.children).forEach(function(l){l.props.selected=-1!=r.value.indexOf(l.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=he(e.children).forEach(function(l){l.props.selected=r.multiple?-1!=r.defaultValue.indexOf(l.props.value):r.defaultValue==l.props.value})),i.props=r,e.class!=e.className&&(yr.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",yr))}i.$$typeof=_r,Cr&&Cr(i)};var Er=k.__r;k.__r=function(i){Er&&Er(i)};const Rr=[],Sn=new Map;function It(i){Rr.push(i),Sn.forEach(t=>{Tr(t,i)})}function Ar(i){let t=Sn.get(i);if(!t||!t.isConnected){if(t=i.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const e=function Vl(){return void 0===kn&&(kn=function Yl(){const i=document.querySelector('meta[name="csp-nonce"]');if(i&&i.hasAttribute("content"))return i.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}()),kn}();e&&(t.nonce=e);const r=i===document?document.head:i,s=i===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,s)}Sn.set(i,t),function Ul(i){for(const t of Rr)Tr(i,t)}(t)}}function Tr(i,t){const{sheet:e}=i,r=e.cssRules.length;t.split("}").forEach((s,o)=>{(s=s.trim())&&e.insertRule(s+"}",r+o)})}let kn;typeof document<"u"&&Ar(document),It(
vendor: 14,301 bytes, line 1
1':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}'
vendor: 135,781 bytes, line 1
1);class Rn{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:e}=this;e[t]=(e[t]||0)+1,this.clearTimeout()}resume(t="",e){let{pauseDepths:r}=this;t in r&&(e?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function wr(i){i.parentNode&&i.parentNode.removeChild(i)}function me(i,t){if(i.closest)return i.closest(t);if(!document.documentElement.contains(i))return null;do{if(Dr(i,t))return i;i=i.parentElement||i.parentNode}while(null!==i&&1===i.nodeType);return null}function Dr(i,t){return(i.matches||i.matchesSelector||i.msMatchesSelector).call(i,t)}const Wl=/(top|left|right|bottom|width|height)$/i;function Ir(i,t,e){i.style[t]=null==e?"":"number"==typeof e&&Wl.test(t)?`${e}px`:e}let Mr=0;function Te(){return Mr+=1,"fc-dom-"+Mr}function Fr(i,t,e,r){let s=function Ql(i,t){return e=>{let r=me(e.target,i);r&&t.call(r,e,r)}}(e,r);return i.addEventListener(t,s),()=>{i.removeEventListener(t,s)}}function jr(i){return Object.assign({onClick:i},Or(i))}function Or(i){return{tabIndex:0,onKeyDown(t){("Enter"===t.key||" "===t.key)&&(i(t),t.preventDefault())}}}let Gr=0;function He(){return Gr+=1,String(Gr)}function ec(i,t,e){return e.func?e.func(i,t):function tc(i,t){return i||t?null==t?-1:null==i?1:"string"==typeof i||"string"==typeof t?String(i).localeCompare(String(t)):i-t:0}(i[e.field],t[e.field])*(e.order||1)}function qe(i,t){let e=String(i);return"000".substr(0,t-e.length)+e}function ut(i,t,e){return"function"==typeof i?i(...t):"string"==typeof i?t.reduce((r,s,o)=>r.replace("$"+o,s||""),i):e}function Ft(i){return i%1==0}function nc(i){let t=i.querySelector(".fc-scrollgrid-shrink-frame"),e=i.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!e)throw new Error("needs fc-scrollgrid-shrink-cushion className");return i.getBoundingClientRect().width-t.getBoundingClientRect().width+e.getBoundingClientRect().width}const Br=["years","months","days","milliseconds"],ic=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function D(i,t){return"string"==typeof i?function rc(i){let t=ic.exec(i);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(i):"object"==typeof i&&i?Pr(i):"number"==typeof i?Pr({[t||"milliseconds"]:i}):null}function Pr(i){let t={years:i.years||i.year||0,months:i.months||i.month||0,days:i.days||i.day||0,milliseconds:60*(i.hours||i.hour||0)*60*1e3+60*(i.minutes||i.minute||0)*1e3+1e3*(i.seconds||i.second||0)+(i.milliseconds||i.millisecond||i.ms||0)},e=i.weeks||i.week;return e&&(t.days+=7*e,t.specifiedWeeks=!0),t}function An(i,t){return{years:i.years+t.years,months:i.months+t.months,days:i.days+t.days,milliseconds:i.milliseconds+t.milliseconds}}function Qe(i){return se(i)/864e5}function se(i){return 31536e6*i.years+2592e6*i.months+864e5*i.days+i.milliseconds}function Tn(i,t){let e=null;for(let r=0;r<Br.length;r+=1){let s=Br[r];if(t[s]){let o=i[s]/t[s];if(!Ft(o)||null!==e&&e!==o)return null;e=o}else if(i[s])return null}return e}function wn(i){let t=i.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return i.days?i.specifiedWeeks&&i.days%7==0?{unit:"week",value:i.days/7}:{unit:"day",value:i.days}:i.months?{unit:"month",value:i.months}:i.years?{unit:"year",value:i.years}:{unit:"millisecond",value:0}}function ce(i,t,e){if(i===t)return!0;let s,r=i.length;if(r!==t.length)return!1;for(s=0;s<r;s+=1)if(!(e?e(i[s],t[s]):i[s]===t[s]))return!1;return!0}const Hr=["sun","mon","tue","wed","thu","fri","sat"];function Lr(i,t){let e=xe(i);return e[2]+=7*t,re(e)}function Y(i,t){let e=xe(i);return e[2]+=t,re(e)}function we(i,t){let e=xe(i);return e[6]+=t,re(e)}function De(i,t){return(t.valueOf()-i.valueOf())/864e5}function Nt(i,t){return Ie(i)===Ie(t)?Math.round(De(i,t)):null}function B(i){return re([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()])}function Dn(i,t,e,r){let s=re([t,0,1+yc(t,e,r)]),o=B(i),a=Math.round(De(s,o));return Math.floor(a/7)+1}function yc(i,t,e){let r=7+t-e;return-(7+re([i,0,r]).getUTCDay()-t)%7+r-1}function $r(i){return[i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()]}function Ur(i){return new Date(i[0],i[1]||0,null==i[2]?1:i[2],i[3]||0,i[4]||0,i[5]||0)}function xe(i){return[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()]}function re(i){return 1===i.length&&(i=i.concat([0])),new Date(Date.UTC(...i))}function Vr(i){return!isNaN(i.valueOf())}function Ie(i){return 1e3*i.getUTCHours()*60*60+1e3*i.getUTCMinutes()*60+1e3*i.getUTCSeconds()+i.getUTCMilliseconds()}function Yr(i,t,e=!1){let r=i.toISOString();return r=r.replace(".000",""),e&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",xn(t,!0)))),r}function ft(i){return i.toISOString().replace(/T.*$/,"")}function Ec(i){return qe(i.getUTCHours(),2)+":"+qe(i.getUTCMinutes(),2)+":"+qe(i.getUTCSeconds(),2)}function xn(i,t=!1){let e=i<0?"-":"+",r=Math.abs(i),s=Math.floor(r/60),o=Math.round(r%60);return t?`${e+qe(s,2)}:${qe(o,2)}`:`GMT${e}${s}${o?`:${qe(o,2)}`:""}`}function R(i,t,e){let r,s;return function(...o){if(r){if(!ce(r,o)){e&&e(s);let a=i.apply(this,o);(!t||!t(a,s))&&(s=a)}}else s=i.apply(this,o);return r=o,s}}function jt(i,t,e){let r,s;return o=>{if(r){if(!oe(r,o)){e&&e(s);let a=i.call(this,o);(!t||!t(a,s))&&(s=a)}}else s=i.call(this,o);return r=o,s}}const In={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Ot={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Gt=/\s*([ap])\.?m\.?/i,Sc=/,/g,kc=/\s+/g,Rc=/\u200e/g,Ac=/UTC|GMT/;class Tc{constructor(t){let e={},r={},s=9;for(let o in t)o in In?(r[o]=t[o],In[o]<9&&(s=Math.min(In[o],s))):(e[o]=t[o],o in Ot&&(s=Math.min(Ot[o],s)));this.standardDateProps=e,this.extendedSettings=r,this.smallestUnitNum=s,this.buildFormattingFunc=R(zr)}format(t,e){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,e)(t)}formatRange(t,e,r,s){let{standardDateProps:o,extendedSettings:a}=this,l=function Fc(i,t,e){return e.getMarkerYear(i)!==e.getMarkerYear(t)?5:e.getMarkerMonth(i)!==e.getMarkerMonth(t)?4:e.getMarkerDay(i)!==e.getMarkerDay(t)?2:Ie(i)!==Ie(t)?1:0}(t.marker,e.marker,r.calendarSystem);if(!l)return this.format(t,r);let c=l;c>1&&("numeric"===o.year||"2-digit"===o.year)&&("numeric"===o.month||"2-digit"===o.month)&&("numeric"===o.day||"2-digit"===o.day)&&(c=1);let u=this.format(t,r),d=this.format(e,r);if(u===d)return u;let m=function Nc(i,t){let e={};for(let r in i)(!(r in Ot)||Ot[r]<=t)&&(e[r]=i[r]);return e}(o,c),h=zr(m,a,r),p=h(t),_=h(e),v=function jc(i,t,e,r){let s=0;for(;s<i.length;){let o=i.indexOf(t,s);if(-1===o)break;let a=i.substr(0,o);s=o+t.length;let l=i.substr(s),c=0;for(;c<e.length;){let u=e.indexOf(r,c);if(-1===u)break;let d=e.substr(0,u);c=u+r.length;let m=e.substr(c);if(a===d&&l===m)return{before:a,after:l}}}return null}(u,p,d,_),b=a.separator||s||r.defaultSeparator||"";return v?v.before+p+b+_+v.after:u+b+d}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function zr(i,t,e){let r=Object.keys(i).length;return 1===r&&"short"===i.timeZoneName?s=>xn(s.timeZoneOffset):0===r&&t.week?s=>function Mc(i,t,e,r,s){let o=[];return"long"===s?o.push(e):("short"===s||"narrow"===s)&&o.push(t),("long"===s||"short"===s)&&o.push(" "),o.push(r.simpleNumberFormat.format(i)),"rtl"===r.options.direction&&o.reverse(),o.join("")}(e.computeWeekNumber(s.marker),e.weekText,e.weekTextLong,e.locale,t.week):function wc(i,t,e){i=Object.assign({},i),t=Object.assign({},t),function Dc(i,t){i.timeZoneName&&(i.hour||(i.hour="2-digit"),i.minute||(i.minute="2-digit")),"long"===i.timeZoneName&&(i.timeZoneName="short"),t.omitZeroMinute&&(i.second||i.millisecond)&&delete t.omitZeroMinute}(i,t),i.timeZone="UTC";let s,r=new Intl.DateTimeFormat(e.locale.codes,i);if(t.omitZeroMinute){let o=Object.assign({},i);delete o.minute,s=new Intl.DateTimeFormat(e.locale.codes,o)}return o=>{let l,{marker:a}=o;return l=s&&!a.getUTCMinutes()?s:r,function xc(i,t,e,r,s){return i=i.replace(Rc,""),"short"===e.timeZoneName&&(i=function Ic(i,t){let e=!1;return i=i.replace(Ac,()=>(e=!0,t)),e||(i+=` ${t}`),i}(i,"UTC"===s.timeZone||null==t.timeZoneOffset?"UTC":xn(t.timeZoneOffset))),r.omitCommas&&(i=i.replace(Sc,"").trim()),r.omitZeroMinute&&(i=i.replace(":00","")),!1===r.meridiem?i=i.replace(Gt,"").trim():"narrow"===r.meridiem?i=i.replace(Gt,(o,a)=>a.toLocaleLowerCase()):"short"===r.meridiem?i=i.replace(Gt,(o,a)=>`${a.toLocaleLowerCase()}m`):"lowercase"===r.meridiem&&(i=i.replace(Gt,o=>o.toLocaleLowerCase())),i=(i=i.replace(kc," ")).trim()}(l.format(a),o,i,t,e)}}(i,t,e)}function Xr(i,t){let e=t.markerToArray(i.marker);return{marker:i.marker,timeZoneOffset:i.timeZoneOffset,array:e,year:e[0],month:e[1],day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]}}function Bt(i,t,e,r){let s=Xr(i,e.calendarSystem);return{date:s,start:s,end:t?Xr(t,e.calendarSystem):null,timeZone:e.timeZone,localeCodes:e.locale.codes,defaultSeparator:r||e.defaultSeparator}}class Oc{constructor(t){this.cmdStr=t}format(t,e,r){return e.cmdFormatter(this.cmdStr,Bt(t,null,e,r))}formatRange(t,e,r,s){return r.cmdFormatter(this.cmdStr,Bt(t,e,r,s))}}class Gc{constructor(t){this.func=t}format(t,e,r){return this.func(Bt(t,null,e,r))}formatRange(t,e,r,s){return this.func(Bt(t,e,r,s))}}function L(i){return"object"==typeof i&&i?new Tc(i):"string"==typeof i?new Oc(i):"function"==typeof i?new Gc(i):null}const Wr={navLinkDayClick:g,navLinkWeekClick:g,duration:D,bootstrapFontAwesome:g,buttonIcons:g,customButtons:g,defaultAllDayEventDuration:D,defaultTimedEventDuration:D,nextDayThreshold:D,scrollTime:D,scrollTimeReset:Boolean,slotMinTime:D,slotMaxTime:D,dayPopoverFormat:L,slotDuration:D,snapDuration:D,headerToolbar:g,footerToolbar:g,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:L,dayHeaderClassNames:g,dayHeaderContent:g,dayHeaderDidMount:g,dayHeaderWillUnmount:g,dayCellClassNames:g,dayCellContent:g,dayCellDidMount:g,dayCellWillUnmount:g,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:g,weekNumbers:Boolean,weekNumberClassNames:g,weekNumberContent:g,weekNumberDidMount:g,weekNumberWillUnmount:g,editable:Boolean,viewClassNames:g,viewDidMount:g,viewWillUnmount:g,nowIndicator:Boolean,nowIndicatorSnap:g,nowIndicatorClassNames:g,nowIndicatorContent:g,nowIndicatorDidMount:g,nowIndicatorWillUnmount:g,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:g,locale:g,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:g,eventOrder:function Jl(i){let r,s,t=[],e=[];for("string"==typeof i?e=i.split(/\s*,\s*/):"function"==typeof i?e=[i]:Array.isArray(i)&&(e=i),r=0;r<e.length;r+=1)s=e[r],"string"==typeof s?t.push("-"===s.charAt(0)?{field:s.substring(1),order:-1}:{field:s,order:1}):"function"==typeof s&&t.push({func:s});return t},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:g,contentHeight:g,direction:String,weekNumberFormat:L,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:g,initialDate:g,now:g,eventDataTransform:g,stickyHeaderDates:g,stickyFooterScrollbar:g,viewHeight:g,defaultAllDay:Boolean,eventSourceFailure:g,eventSourceSuccess:g,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:g,eventConstraint:g,eventAllow:g,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:g,eventContent:g,eventDidMount:g,eventWillUnmount:g,selectConstraint:g,selectOverlap:g,selectAllow:g,droppable:Boolean,unselectCancel:String,slotLabelFormat:g,slotLaneClassNames:g,slotLaneContent:g,slotLaneDidMount:g,slotLaneWillUnmount:g,slotLabelClassNames:g,slotLabelContent:g,slotLabelDidMount:g,slotLabelWillUnmount:g,dayMaxEvents:g,dayMaxEventRows:g,dayMinWidth:Number,slotLabelInterval:D,allDayText:String,allDayClassNames:g,allDayContent:g,allDayDidMount:g,allDayWillUnmount:g,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:L,rerenderDelay:Number,moreLinkText:g,moreLinkHint:g,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:g,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:D,hiddenDays:g,fixedWeekCount:Boolean,validRange:g,visibleRange:g,titleFormat:g,eventInteractive:Boolean,noEventsText:String,viewHint:g,navLinkHint:g,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:g,moreLinkClassNames:g,moreLinkContent:g,moreLinkDidMount:g,moreLinkWillUnmount:g,monthStartFormat:L,handleCustomRendering:g,customRenderingMetaMap:g,customRenderingReplaces:Boolean},pt={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},qr={datesSet:g,eventsSet:g,eventAdd:g,eventChange:g,eventRemove:g,windowResize:g,eventClick:g,eventMouseEnter:g,eventMouseLeave:g,select:g,unselect:g,loading:g,_unmount:g,_beforeprint:g,_afterprint:g,_noEventDrop:g,_noEventResize:g,_resize:g,_scrollRequest:g},Qr={buttonText:g,buttonHints:g,views:g,plugins:g,initialEvents:g,events:g,eventSources:g},Le={headerToolbar:$e,footerToolbar:$e,buttonText:$e,buttonHints:$e,buttonIcons:$e,dateIncrement:$e,plugins:Pt,events:Pt,eventSources:Pt,resources:Pt};function $e(i,t){return"object"==typeof i&&"object"==typeof t&&i&&t?oe(i,t):i===t}function Pt(i,t){return Array.isArray(i)&&Array.isArray(t)?ce(i,t):i===t}const Bc={type:String,component:g,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:g,usesMinMaxTime:Boolean,classNames:g,content:g,didMount:g,willUnmount:g};function Mn(i){return Fn(i,Le)}function Ht(i,t){let e={},r={};for(let s in t)s in i&&(e[s]=t[s](i[s]));for(let s in i)s in t||(r[s]=i[s]);return{refined:e,extra:r}}function g(i){return i}const{hasOwnProperty:Lt}=Object.prototype;function Fn(i,t){let e={};if(t)for(let r in t)if(t[r]===$e){let s=[];for(let o=i.length-1;o>=0;o-=1){let a=i[o][r];if("object"==typeof a&&a)s.unshift(a);else if(void 0!==a){e[r]=a;break}}s.length&&(e[r]=Fn(s))}for(let r=i.length-1;r>=0;r-=1){let s=i[r];for(let o in s)o in e||(e[o]=s[o])}return e}function Ue(i,t){let e={};for(let r in i)t(i[r],r)&&(e[r]=i[r]);return e}function Me(i,t){let e={};for(let r in i)e[r]=t(i[r],r);return e}function Zr(i){let t={};for(let e of i)t[e]=!0;return t}function Nn(i){let t=[];for(let e in i)t.push(i[e]);return t}function oe(i,t){if(i===t)return!0;for(let e in i)if(Lt.call(i,e)&&!(e in t))return!1;for(let e in t)if(Lt.call(t,e)&&i[e]!==t[e])return!1;return!0}const Pc=/^on[A-Z]/;function jn(i,t,e={}){if(i===t)return!0;for(let r in t)if(!(r in i)||!$c(i[r],t[r],e[r]))return!1;for(let r in i)if(!(r in t))return!1;return!0}function $c(i,t,e){return i===t||!0===e||!!e&&e(i,t)}let Jr={};!function Vc(i,t){Jr[i]=t}("gregory",class zc{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return re(t)}markerToArray(t){return xe(t)}});const Xc=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class qc{constructor(t){let e=this.timeZone=t.timeZone,r="local"!==e&&"UTC"!==e;t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(e)),this.canComputeOffset=!(r&&!this.namedTimeZoneImpl),this.calendarSystem=function Yc(i){return new Jr[i]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let e=this.createMarkerMeta(t);return null===e?null:e.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):re($r(new Date))}createMarkerMeta(t){if("string"==typeof t)return this.parse(t);let e=null;return"number"==typeof t?e=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(e=this.timestampToMarker(t))):Array.isArray(t)&&(e=re(t)),null!==e&&Vr(e)?{marker:e,isTimeUnspecified:!1,forcedTzo:null}:null}parse(t){let e=function Wc(i){let t=Xc.exec(i);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*+`0.${t[12]}`:0));if(Vr(e)){let r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(t);if(null===e)return null;let{marker:r}=e,s=null;return null!==e.timeZoneOffset&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-60*e.timeZoneOffset*1e3):s=e.timeZoneOffset),{marker:r,isTimeUnspecified:e.isTimeUnspecified,forcedTzo:s}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}getDay(t){return this.calendarSystem.getMarkerDay(t)}add(t,e){let r=this.calendarSystem.markerToArray(t);return r[0]+=e.years,r[1]+=e.months,r[2]+=e.days,r[6]+=e.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,e){let r=this.calendarSystem.markerToArray(t);return r[0]-=e.years,r[1]-=e.months,r[2]-=e.days,r[6]-=e.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,e){let r=this.calendarSystem.markerToArray(t);return r[0]+=e,this.calendarSystem.arrayToMarker(r)}addMonths(t,e){let r=this.calendarSystem.markerToArray(t);return r[1]+=e,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,e){let{calendarSystem:r}=this;return Ie(t)===Ie(e)&&r.getMarkerDay(t)===r.getMarkerDay(e)&&r.getMarkerMonth(t)===r.getMarkerMonth(e)?r.getMarkerYear(e)-r.getMarkerYear(t):null}diffWholeMonths(t,e){let{calendarSystem:r}=this;return Ie(t)===Ie(e)&&r.getMarkerDay(t)===r.getMarkerDay(e)?r.getMarkerMonth(e)-r.getMarkerMonth(t)+12*(r.getMarkerYear(e)-r.getMarkerYear(t)):null}greatestWholeUnit(t,e){let r=this.diffWholeYears(t,e);return null!==r?{unit:"year",value:r}:(r=this.diffWholeMonths(t,e),null!==r?{unit:"month",value:r}:(r=function mc(i,t){let e=Nt(i,t);return null!==e&&e%7==0?e/7:null}(t,e),null!==r?{unit:"week",value:r}:(r=Nt(t,e),null!==r?{unit:"day",value:r}:(r=function uc(i,t){return(t.valueOf()-i.valueOf())/36e5}(t,e),Ft(r)?{unit:"hour",value:r}:(r=function fc(i,t){return(t.valueOf()-i.valueOf())/6e4}(t,e),Ft(r)?{unit:"minute",value:r}:(r=function pc(i,t){return(t.valueOf()-i.valueOf())/1e3}(t,e),Ft(r)?{unit:"second",value:r}:{unit:"millisecond",value:e.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,e,r){let s;return r.years&&(s=this.diffWholeYears(t,e),null!==s)?s/function lc(i){return Qe(i)/365}(r):r.months&&(s=this.diffWholeMonths(t,e),null!==s)?s/function cc(i){return Qe(i)/30}(r):r.days&&(s=Nt(t,e),null!==s)?s/Qe(r):(e.valueOf()-t.valueOf())/se(r)}startOf(t,e){return"year"===e?this.startOfYear(t):"month"===e?this.startOfMonth(t):"week"===e?this.startOfWeek(t):"day"===e?B(t):"hour"===e?function gc(i){return re([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()])}(t):"minute"===e?function _c(i){return re([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()])}(t):"second"===e?function vc(i){return re([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds()])}(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function bc(i,t,e){let r=i.getUTCFullYear(),s=Dn(i,r,t,e);if(s<1)return Dn(i,r-1,t,e);let o=Dn(i,r+1,t,e);return o>=1?Math.min(s,o):s}(t,this.weekDow,this.weekDoy)}format(t,e,r={}){return e.format({marker:t,timeZoneOffset:null!=r.forcedTzo?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,e,r,s={}){return s.isEndExclusive&&(e=we(e,-1)),r.formatRange({marker:t,timeZoneOffset:null!=s.forcedStartTzo?s.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=s.forcedEndTzo?s.forcedEndTzo:this.offsetForMarker(e)},this,s.defaultSeparator)}formatIso(t,e={}){let r=null;return e.omitTimeZoneOffset||(r=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),Yr(t,r,e.omitTime)}timestampToMarker(t){return"local"===this.timeZone?re($r(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?re(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)}offsetForMarker(t){return"local"===this.timeZone?-Ur(xe(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(xe(t)):null}toDate(t,e){return"local"===this.timeZone?Ur(xe(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(xe(t))*60):new Date(t.valueOf()-(e||0))}}class ht{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let e,r;if("object"==typeof t&&t){for(r in e=Object.assign({},this.iconClasses),t)e[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=e}else!1===t&&(this.iconClasses={})}applyIconOverridePrefix(t){let e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,e){let r;return r=e&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption],e)?`${this.baseIconClass} ${this.applyIconOverridePrefix(e)}`:""}}function $t(i){i();let t=k.debounceRendering,e=[];for(k.debounceRendering=function r(s){e.push(s)},Re(f(Qc,{}),document.createElement("div"));e.length;)e.shift()();k.debounceRendering=t}ht.prototype.classes={},ht.prototype.iconClasses={},ht.prototype.baseIconClass="",ht.prototype.iconOverridePrefix="";class Qc extends ie{render(){return f("div",{})}componentDidMount(){this.setState({})}}function Kr(i){let t=function Qi(i,t){var e={__c:t="__cC"+ji++,__:i,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&s.some(function(l){l.__e=!0,pn(l)})},this.sub=function(a){s.push(a);var l=a.componentWillUnmount;a.componentWillUnmount=function(){s.splice(s.indexOf(a),1),l&&l.call(a)}}),r.children}};return e.Provider.__=e.Consumer.contextType=e}(i),e=t.Provider;return t.Provider=function(){let r=!this.getChildContext,s=e.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&o.forEach(l=>{l.context=a.value,l.forceUpdate()})},this.sub=a=>{o.push(a);let l=a.componentWillUnmount;a.componentWillUnmount=()=>{o.splice(o.indexOf(a),1),l&&l.call(a)}}}return s},t}class Zc{constructor(t,e,r,s){this.execFunc=t,this.emitter=e,this.scrollTime=r,this.scrollTimeReset=s,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},e.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ge=Kr({});function Jc(i,t,e,r,s,o,a,l,c,u,d,m,h,p){return{dateEnv:s,nowManager:o,options:e,pluginHooks:l,emitter:d,dispatch:c,getCurrentData:u,calendarApi:m,viewSpec:i,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:"rtl"===e.direction,addResizeHandler(_){d.on("_resize",_)},removeResizeHandler(_){d.off("_resize",_)},createScrollResponder:_=>new Zc(_,d,D(e.scrollTime),e.scrollTimeReset),registerInteractiveComponent:h,unregisterInteractiveComponent:p}}let Ut=(()=>{class i extends ie{shouldComponentUpdate(e,r){return!jn(this.props,e,this.propEquality)||!jn(this.state,r,this.stateEquality)}safeSetState(e){jn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}return i.addPropsEquality=Kc,i.addStateEquality=ed,i.contextType=ge,i})();Ut.prototype.propEquality={},Ut.prototype.stateEquality={};let F=(()=>{class i extends Ut{}return i.contextType=ge,i})();function Kc(i){let t=Object.create(this.prototype.propEquality);Object.assign(t,i),this.prototype.propEquality=t}function ed(i){let t=Object.create(this.prototype.stateEquality);Object.assign(t,i),this.prototype.stateEquality=t}function de(i,t){"function"==typeof i?i(t):i&&(i.current=t)}class On extends F{constructor(){super(...arguments),this.id=He(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{const{options:e}=this.context,{generatorName:r}=this.props;(!e.customRenderingReplaces||!Gn(r,e))&&this.updateElRef(t)},this.updateElRef=t=>{this.props.elRef&&de(this.props.elRef,t)}}render(){const{props:t,context:e}=this,{options:r}=e,{customGenerator:s,defaultGenerator:o,renderProps:a}=t,l=es(t,[],this.handleEl);let u,m,c=!1,d=[];if(null!=s){const h="function"==typeof s?s(a,f):s;if(!0===h)c=!0;else{const p=h&&"object"==typeof h;p&&"html"in h?l.dangerouslySetInnerHTML={__html:h.html}:p&&"domNodes"in h?d=Array.prototype.slice.call(h.domNodes):(p?Mi(h):"function"!=typeof h)?u=h:m=h}}else c=!Gn(t.generatorName,r);return c&&o&&(u=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=m,f(t.elTag,l,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var e;const{props:r,context:s}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=s.options;if(o){const l=null!==(e=this.currentGeneratorMeta)&&void 0!==e?e:a?.[r.generatorName];l&&o(Object.assign(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:l},r),{elClasses:(r.elClasses||[]).filter(td)}))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:e}=this,r=this.base;if(!ce(t,e)){e.forEach(wr);for(let s of t)r.appendChild(s);this.currentDomNodes=t}}}function Gn(i,t){var e;return!!(t.handleCustomRendering&&i&&null!==(e=t.customRenderingMetaMap)&&void 0!==e&&e[i])}function es(i,t,e){const r=Object.assign(Object.assign({},i.elAttrs),{ref:e});return(i.elClasses||t)&&(r.className=(i.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),i.elStyle&&(r.style=i.elStyle),r}function td(i){return!!i}On.addPropsEquality({elClasses:ce,elStyle:oe,elAttrs:function Hc(i,t){const e=function Lc(i,t){let e=[];for(let r in i)Lt.call(i,r)&&(r in t||e.push(r));for(let r in t)Lt.call(t,r)&&i[r]!==t[r]&&e.push(r);return e}(i,t);for(let r of e)if(!Pc.test(r))return!1;return!0},renderProps:oe});const ts=Kr(0);let ee=(()=>{class i extends ie{constructor(){super(...arguments),this.InnerContent=nd.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(de(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,r=function id(i,t){const e="function"==typeof i?i(t):i||[];return"string"==typeof e?[e]:e}(e.classNameGenerator,e.renderProps);if(e.children){const s=es(e,r,this.handleEl),o=e.children(this.InnerContent,e.renderProps,s);return e.elTag?f(e.elTag,s,o):o}return f(On,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(r),renderId:this.context}))}componentDidMount(){var e,r;this.el?null===(r=(e=this.props).didMount)||void 0===r||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,r;null===(r=(e=this.props).willUnmount)||void 0===r||r.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}return i.contextType=ts,i})();function nd(i,t){const e=i.props;return f(On,Object.assign({renderProps:e.renderProps,generatorName:e.generatorName,customGenerator:e.customGenerator,defaultGenerator:e.defaultGenerator,renderId:i.context},t))}class mt extends F{render(){let{props:t,context:e}=this,{options:r}=e,s={view:e.viewApi};return f(ee,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:[...ns(t.viewSpec),...t.elClasses||[]],elStyle:t.elStyle,renderProps:s,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>t.children)}}function ns(i){return[`fc-${i.type}-view`,"fc-view"]}function is(i,t){let s,o,e=[],{start:r}=t;for(i.sort(sd),s=0;s<i.length;s+=1)o=i[s],o.start>r&&e.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<t.end&&e.push({start:r,end:t.end}),e}function sd(i,t){return i.start.valueOf()-t.start.valueOf()}function Fe(i,t){let{start:e,end:r}=i,s=null;return null!==t.start&&(e=null===e?t.start:new Date(Math.max(e.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===e||null===r||e<r)&&(s={start:e,end:r}),s}function _e(i,t){return(null===i.start||t>=i.start)&&(null===i.end||t<i.end)}function rs(i){let t=Math.floor(De(i.start,i.end))||1,e=B(i.start);return{start:e,end:Y(e,t)}}function Hn(i,t=D(0)){let e=null,r=null;if(i.end){r=B(i.end);let s=i.end.valueOf()-r.valueOf();s&&s>=se(t)&&(r=Y(r,1))}return i.start&&(e=B(i.start),r&&r<=e&&(r=Y(e,1))),{start:e,end:r}}function Vt(i,t,e,r){return"year"===r?D(e.diffWholeYears(i,t),"year"):"month"===r?D(e.diffWholeMonths(i,t),"month"):function hc(i,t){let e=B(i),r=B(t);return{years:0,months:0,days:Math.round(De(e,r)),milliseconds:t.valueOf()-r.valueOf()-(i.valueOf()-e.valueOf())}}(i,t)}class ss{constructor(t){this.props=t,this.initHiddenDays()}buildPrev(t,e,r){let{dateEnv:s}=this.props,o=s.subtract(s.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(o,-1,r)}buildNext(t,e,r){let{dateEnv:s}=this.props,o=s.add(s.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(o,1,r)}build(t,e,r=!0){let o,a,l,c,u,d,{props:s}=this;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=function ad(i,t){return null!=t.start&&i<t.start?t.start:null!=t.end&&i>=t.end?new Date(t.end.valueOf()-1):i}(t,o)),a=this.buildCurrentRangeInfo(t,e),l=/^(year|month|week|day)$/.test(a.unit),c=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,l),c=this.trimHiddenDays(c),u=c,s.showNonCurrentDates||(u=Fe(u,a.range)),u=this.adjustActiveRange(u),u=Fe(u,o),d=function Bn(i,t){return(null===i.end||null===t.start||i.end>t.start)&&(null===i.start||null===t.end||i.start<t.end)}(a.range,o),_e(c,t)||(t=c.start),{currentDate:t,validRange:o,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:l,activeRange:u,renderRange:c,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let t=this.props.validRangeInput,e="function"==typeof t?t.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):t;return this.refineRange(e)||{start:null,end:null}}buildCurrentRangeInfo(t,e){let l,{props:r}=this,s=null,o=null,a=null;return r.duration?(s=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(t,e,s,o)):(l=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,e,l)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(s=this.getFallbackDuration(),o=wn(s).unit,a=this.buildRangeFromDuration(t,e,s,o)),{duration:s,unit:o,range:a}}getFallbackDuration(){return D({day:1})}adjustActiveRange(t){let{dateEnv:e,usesMinMaxTime:r,slotMinTime:s,slotMaxTime:o}=this.props,{start:a,end:l}=t;return r&&(Qe(s)<0&&(a=B(a),a=e.add(a,s)),Qe(o)>1&&(l=B(l),l=Y(l,-1),l=e.add(l,o))),{start:a,end:l}}buildRangeFromDuration(t,e,r,s){let l,c,u,{dateEnv:o,dateAlignment:a}=this.props;if(!a){let{dateIncrement:m}=this.props;a=m&&se(m)<se(r)?wn(m).unit:s}function d(){l=o.startOf(t,a),c=o.add(l,r),u={start:l,end:c}}return Qe(r)<=1&&this.isHiddenDay(l)&&(l=this.skipHiddenDays(l,e),l=B(l)),d(),this.trimHiddenDays(u)||(t=this.skipHiddenDays(t,e),d()),u}buildRangeFromDayCount(t,e,r){let c,{dateEnv:s,dateAlignment:o}=this.props,a=0,l=t;o&&(l=s.startOf(l,o)),l=B(l),l=this.skipHiddenDays(l,e),c=l;do{c=Y(c,1),this.isHiddenDay(c)||(a+=1)}while(a<r);return{start:l,end:c}}buildCustomVisibleRange(t){let{props:e}=this,r=e.visibleRangeInput,s="function"==typeof r?r.call(e.calendarApi,e.dateEnv.toDate(t)):r,o=this.refineRange(s);return!o||null!=o.start&&null!=o.end?o:null}buildRenderRange(t,e,r){return t}buildDateIncrement(t){let r,{dateIncrement:e}=this.props;return e||((r=this.props.dateAlignment)?D(1,r):t||D({days:1}))}refineRange(t){if(t){let e=function rd(i,t){let e=null,r=null;return i.start&&(e=t.createMarker(i.start)),i.end&&(r=t.createMarker(i.end)),!e&&!r||e&&r&&r<e?null:{start:e,end:r}}(t,this.props.dateEnv);return e&&(e=Hn(e)),e}return null}initHiddenDays(){let s,t=this.props.hiddenDays||[],e=[],r=0;for(!1===this.props.weekends&&t.push(0,6),s=0;s<7;s+=1)(e[s]=-1!==t.indexOf(s))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=e}trimHiddenDays(t){let{start:e,end:r}=t;return e&&(e=this.skipHiddenDays(e)),r&&(r=this.skipHiddenDays(r,-1,!0)),null==e||null==r||e<r?{start:e,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,e=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?e:0)+7)%7];)t=Y(t,e);return t}}function Ln(i,t,e,r){return{instanceId:He(),defId:i,range:t,forcedStartTzo:e??null,forcedEndTzo:r??null}}function Ve(i,t,e){let{dateEnv:r,pluginHooks:s,options:o}=e,{defs:a,instances:l}=i;l=Ue(l,c=>!a[c.defId].recurringDef);for(let c in a){let u=a[c];if(u.recurringDef){let{duration:d}=u.recurringDef;d||(d=u.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let m=dd(u,d,t,r,s.recurringTypes);for(let h of m){let p=Ln(c,{start:h,end:r.add(h,d)});l[p.instanceId]=p}}}return{defs:a,instances:l}}function dd(i,t,e,r,s){let a=s[i.recurringDef.typeId].expand(i.recurringDef.typeData,{start:r.subtract(e.start,t),end:e.end},r);return i.allDay&&(a=a.map(B)),a}const Yt={id:String,groupId:String,title:String,url:String,interactive:Boolean},os={start:g,end:g,date:g,allDay:Boolean},ud=Object.assign(Object.assign(Object.assign({},Yt),os),{extendedProps:g});function as(i,t,e,r,s=$n(e),o,a){let{refined:l,extra:c}=ls(i,e,s),u=function pd(i,t){let e=null;return i&&(e=i.defaultAllDay),null==e&&(e=t.options.defaultAllDay),e}(t,e),d=function cd(i,t,e,r){for(let s=0;s<r.length;s+=1){let o=r[s].parse(i,e);if(o){let{allDay:a}=i;return null==a&&(a=t,null==a&&(a=o.allDayGuess,null==a&&(a=!1))),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:s}}}return null}(l,u,e.dateEnv,e.pluginHooks.recurringTypes);if(d){let h=Un(l,c,t?t.sourceId:"",d.allDay,!!d.duration,e,o);return h.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:h,instance:null}}let m=function fd(i,t,e,r){let o,c,{allDay:s}=i,a=null,l=!1,u=null;if(o=e.dateEnv.createMarkerMeta(null!=i.start?i.start:i.date),o)a=o.marker;else if(!r)return null;return null!=i.end&&(c=e.dateEnv.createMarkerMeta(i.end)),null==s&&(s=null!=t?t:(!o||o.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),s&&a&&(a=B(a)),c&&(u=c.marker,s&&(u=B(u)),a&&u<=a&&(u=null)),u?l=!0:r||(l=e.options.forceEventDuration||!1,u=e.dateEnv.add(a,s?e.options.defaultAllDayEventDuration:e.options.defaultTimedEventDuration)),{allDay:s,hasEnd:l,range:{start:a,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}(l,u,e,r);if(m){let h=Un(l,c,t?t.sourceId:"",m.allDay,m.hasEnd,e,o),p=Ln(h.defId,m.range,m.forcedStartTzo,m.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(p.instanceId=a[h.publicId]),{def:h,instance:p}}return null}function ls(i,t,e=$n(t)){return Ht(i,e)}function $n(i){return Object.assign(Object.assign(Object.assign({},Xt),ud),i.pluginHooks.eventRefiners)}function Un(i,t,e,r,s,o,a){let l={title:i.title||"",groupId:i.groupId||"",publicId:i.id||"",url:i.url||"",recurringDef:null,defId:(a&&i.id?a[i.id]:"")||He(),sourceId:e,allDay:r,hasEnd:s,interactive:i.interactive,ui:Wt(i,o),extendedProps:Object.assign(Object.assign({},i.extendedProps||{}),t)};for(let c of o.pluginHooks.eventDefMemberAdders)Object.assign(l,c(i));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function gt(i,t,e,r,s,o){let a={defs:{},instances:{}},l=$n(e);for(let c of i){let u=as(c,t,e,r,l,s,o);u&&Vn(u,a)}return a}function Vn(i,t={defs:{},instances:{}}){return t.defs[i.def.defId]=i.def,i.instance&&(t.instances[i.instance.instanceId]=i.instance),t}function Yn(i,t){return{defs:Object.assign(Object.assign({},i.defs),t.defs),instances:Object.assign(Object.assign({},i.instances),t.instances)}}function zt(i,t){let e=Ue(i.defs,t),r=Ue(i.instances,s=>e[s.defId]);return{defs:e,instances:r}}function cs(i){return Array.isArray(i)?i:"string"==typeof i?i.split(/\s+/):[]}const Xt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:g,overlap:g,allow:g,className:cs,classNames:cs,color:String,backgroundColor:String,borderColor:String,textColor:String},vd={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Wt(i,t){let e=function _d(i,t){return Array.isArray(i)?gt(i,null,t,!0):"object"==typeof i&&i?gt([i],null,t,!0):null!=i?String(i):null}(i.constraint,t);return{display:i.display||null,startEditable:null!=i.startEditable?i.startEditable:i.editable,durationEditable:null!=i.durationEditable?i.durationEditable:i.editable,constraints:null!=e?[e]:[],overlap:null!=i.overlap?i.overlap:null,allows:null!=i.allow?[i.allow]:[],backgroundColor:i.backgroundColor||i.color||"",borderColor:i.borderColor||i.color||"",textColor:i.textColor||"",classNames:(i.className||[]).concat(i.classNames||[])}}function ds(i){return i.reduce(bd,vd)}function bd(i,t){return{display:null!=t.display?t.display:i.display,startEditable:null!=t.startEditable?t.startEditable:i.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:i.durationEditable,constraints:i.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:i.overlap,allows:i.allows.concat(t.allows),backgroundColor:t.backgroundColor||i.backgroundColor,borderColor:t.borderColor||i.borderColor,textColor:t.textColor||i.textColor,classNames:i.classNames.concat(t.classNames)}}const yd={id:String,defaultAllDay:Boolean,url:String,format:String,events:g,eventDataTransform:g,success:g,failure:g};function us(i,t,e=fs(t)){let r;if("string"==typeof i?r={url:i}:"function"==typeof i||Array.isArray(i)?r={events:i}:"object"==typeof i&&i&&(r=i),r){let{refined:s,extra:o}=Ht(r,e),a=function Cd(i,t){let e=t.pluginHooks.eventSourceDefs;for(let r=e.length-1;r>=0;r-=1){let o=e[r].parseMeta(i);if(o)return{sourceDefId:r,meta:o}}return null}(s,t);if(a)return{_raw:i,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:He(),sourceDefId:a.sourceDefId,meta:a.meta,ui:Wt(s,t),extendedProps:o}}return null}function fs(i){return Object.assign(Object.assign(Object.assign({},Xt),yd),i.pluginHooks.eventSourceRefiners)}function ps(i,t,e){let r=e.options.eventDataTransform,s=t?t.eventDataTransform:null;return s&&(i=hs(i,s)),r&&(i=hs(i,r)),i}function hs(i,t){let e;if(t){e=[];for(let r of i){let s=t(r);s?e.push(s):null==s&&e.push(r)}}else e=i;return e}function ms(i,t,e){let{defs:r}=i,s=Me(i.instances,o=>r[o.defId].allDay?o:Object.assign(Object.assign({},o),{range:{start:e.createMarker(t.toDate(o.range.start,o.forcedStartTzo)),end:e.createMarker(t.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:e.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:e.canComputeOffset?null:o.forcedEndTzo}));return{defs:r,instances:s}}function gs(i,t){return zt(i,e=>e.sourceId!==t)}class _s{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,e){!function wd(i,t,e){(i[t]||(i[t]=[])).push(e)}(this.handlers,t,e)}off(t,e){!function Dd(i,t,e){e?i[t]&&(i[t]=i[t].filter(r=>r!==e)):delete i[t]}(this.handlers,t,e)}trigger(t,...e){let o=[].concat(this.options&&this.options[t]||[],this.handlers[t]||[]);for(let a of o)a.apply(this.thisContext,e)}hasHandlers(t){return!!(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}const xd={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function vs(i,t,e){let{dateEnv:r,options:s}=e,o=t;return i?(o=B(o),o=r.add(o,s.defaultAllDayEventDuration)):o=r.add(o,s.defaultTimedEventDuration),o}function Od(i,t,e,r){let s=e.standardProps||{};null==s.hasEnd&&t.durationEditable&&(e.startDelta||e.endDelta)&&(s.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},i),s),{ui:Object.assign(Object.assign({},i.ui),s.ui)});e.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),e.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(o,e,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function Gd(i,t,e,r,s){let{dateEnv:o}=s,a=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,c=Object.assign({},i);return a&&(c.range=rs(c.range)),r.datesDelta&&e.startEditable&&(c.range={start:o.add(c.range.start,r.datesDelta),end:o.add(c.range.end,r.datesDelta)}),r.startDelta&&e.durationEditable&&(c.range={start:o.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&e.durationEditable&&(c.range={start:c.range.start,end:o.add(c.range.end,r.endDelta)}),l&&(c.range={start:c.range.start,end:vs(t.allDay,c.range.start,s)}),t.allDay&&(c.range={start:B(c.range.start),end:B(c.range.end)}),c.range.end<c.range.start&&(c.range.end=vs(t.allDay,c.range.start,s)),c}class Ze{constructor(t,e){this.context=t,this.internalEventSource=e}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Z{constructor(t,e,r){this._context=t,this._def=e,this._instance=r||null}setProp(t,e){if(t in os)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)e=Yt[t](e),this.mutate({standardProps:{publicId:e}});else if(t in Yt)e=Yt[t](e),this.mutate({standardProps:{[t]:e}});else if(t in Xt){let r=Xt[t](e);r="color"===t?{backgroundColor:e,borderColor:e}:"editable"===t?{startEditable:e,durationEditable:e}:{[t]:e},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,e){this.mutate({extendedProps:{[t]:e}})}setStart(t,e={}){let{dateEnv:r}=this._context,s=r.createMarker(t);if(s&&this._instance){let a=Vt(this._instance.range.start,s,r,e.granularity);this.mutate(e.maintainDuration?{datesDelta:a}:{startDelta:a})}}setEnd(t,e={}){let s,{dateEnv:r}=this._context;if((null==t||(s=r.createMarker(t),s))&&this._instance)if(s){let o=Vt(this._instance.range.end,s,r,e.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,e,r={}){let l,{dateEnv:s}=this._context,o={allDay:r.allDay},a=s.createMarker(t);if(a&&(null==e||(l=s.createMarker(e),l))&&this._instance){let c=this._instance.range;!0===r.allDay&&(c=rs(c));let u=Vt(c.start,a,s,r.granularity);if(l){let d=Vt(c.end,l,s,r.granularity);!function sc(i,t){return i.years===t.years&&i.months===t.months&&i.days===t.days&&i.milliseconds===t.milliseconds}(u,d)?this.mutate({startDelta:u,endDelta:d,standardProps:o}):this.mutate({datesDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:u,standardProps:o})}}moveStart(t){let e=D(t);e&&this.mutate({startDelta:e})}moveEnd(t){let e=D(t);e&&this.mutate({endDelta:e})}moveDates(t){let e=D(t);e&&this.mutate({datesDelta:e})}setAllDay(t,e={}){let r={allDay:t},{maintainDuration:s}=e;null==s&&(s=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=s),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:e}=this._context,r=this._instance,s=L(t);return this._def.hasEnd?e.formatRange(r.range.start,r.range.end,s,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):e.format(r.range.start,s,{forcedTzo:r.forcedStartTzo})}mutate(t){let e=this._instance;if(e){let r=this._def,s=this._context,{eventStore:o}=s.getCurrentData(),a=function hd(i,t){let e=i.instances[t];if(e){let r=i.defs[e.defId],s=zt(i,o=>function md(i,t){return!(!i.groupId||i.groupId!==t.groupId)}(r,o));return s.defs[r.defId]=r,s.instances[e.instanceId]=e,s}return{defs:{},instances:{}}}(o,e.instanceId);a=function jd(i,t,e,r){let s=qt(i.defs,t),o={defs:{},instances:{}};for(let a in i.defs)o.defs[a]=Od(i.defs[a],s[a],e,r);for(let a in i.instances){let l=i.instances[a];o.instances[a]=Gd(l,o.defs[l.defId],s[l.defId],e,r)}return o}(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,s);let c=new Z(s,r,e);this._def=a.defs[r.defId],this._instance=a.instances[e.instanceId],s.dispatch({type:"MERGE_EVENTS",eventStore:a}),s.emitter.trigger("eventChange",{oldEvent:c,event:this,relatedEvents:Xn(a,s,e),revert(){s.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,e=bs(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:e}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:e})}})}get source(){let{sourceId:t}=this._def;return t?new Ze(this._context,this._context.getCurrentData().eventSources[t]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(t={}){let e=this._def,{ui:r}=e,{startStr:s,endStr:o}=this,a={allDay:e.allDay};return e.title&&(a.title=e.title),s&&(a.start=s),o&&(a.end=o),e.publicId&&(a.id=e.publicId),e.groupId&&(a.groupId=e.groupId),e.url&&(a.url=e.url),r.display&&"auto"!==r.display&&(a.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(e.extendedProps).length&&(t.collapseExtendedProps?Object.assign(a,e.extendedProps):a.extendedProps=e.extendedProps),a}toJSON(){return this.toPlainObject()}}function bs(i){let t=i._def,e=i._instance;return{defs:{[t.defId]:t},instances:e?{[e.instanceId]:e}:{}}}function Xn(i,t,e){let{defs:r,instances:s}=i,o=[],a=e?e.instanceId:"";for(let l in s){let c=s[l];c.instanceId!==a&&o.push(new Z(t,r[c.defId],c))}return o}function Wn(i,t,e,r){let s={},o={},a={},l=[],c=[],u=qt(i.defs,t);for(let d in i.defs){let m=i.defs[d];"inverse-background"===u[m.defId].display&&(m.groupId?(s[m.groupId]=[],a[m.groupId]||(a[m.groupId]=m)):o[d]=[])}for(let d in i.instances){let m=i.instances[d],h=i.defs[m.defId],p=u[h.defId],_=m.range,v=!h.allDay&&r?Hn(_,r):_,b=Fe(v,e);b&&("inverse-background"===p.display?h.groupId?s[h.groupId].push(b):o[m.defId].push(b):"none"!==p.display&&("background"===p.display?l:c).push({def:h,ui:p,instance:m,range:b,isStart:v.start&&v.start.valueOf()===b.start.valueOf(),isEnd:v.end&&v.end.valueOf()===b.end.valueOf()}))}for(let d in s){let h=is(s[d],e);for(let p of h){let _=a[d];l.push({def:_,ui:u[_.defId],instance:null,range:p,isStart:!1,isEnd:!1})}}for(let d in o){let h=is(o[d],e);for(let p of h)l.push({def:i.defs[d],ui:u[d],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:l,fg:c}}function ys(i,t){i.fcSeg=t}function qn(i){return i.fcSeg||i.parentNode.fcSeg||null}function qt(i,t){return Me(i,e=>Cs(e,t))}function Cs(i,t){let e=[];return t[""]&&e.push(t[""]),t[i.defId]&&e.push(t[i.defId]),e.push(i.ui),ds(e)}function Qn(i,t){let e=i.map(Pd);return e.sort((r,s)=>function Kl(i,t,e){let r,s;for(r=0;r<e.length;r+=1)if(s=ec(i,t,e[r]),s)return s;return 0}(r,s,t)),e.map(r=>r._seg)}function Pd(i){let{eventRange:t}=i,e=t.def,r=t.instance?t.instance.range:t.range,s=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},e.extendedProps),e),{id:e.publicId,start:s,end:o,duration:o-s,allDay:Number(e.allDay),_seg:i})}function Hd(i,t){let{pluginHooks:e}=t,r=e.isDraggableTransformers,{def:s,ui:o}=i.eventRange,a=o.startEditable;for(let l of r)a=l(a,s,o,t);return a}function Ld(i,t){return i.isStart&&i.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function _t(i,t,e,r,s,o,a){let{dateEnv:l,options:c}=e,{displayEventTime:u,displayEventEnd:d}=c,m=i.eventRange.def,h=i.eventRange.instance;null==u&&(u=!1!==r),null==d&&(d=!1!==s);let p=h.range.start,_=h.range.end,v=o||i.start||i.eventRange.range.start,b=a||i.end||i.eventRange.range.end,y=B(p).valueOf()===B(v).valueOf(),S=B(we(_,-1)).valueOf()===B(we(b,-1)).valueOf();return u&&!m.allDay&&(y||S)?(v=y?p:v,b=S?_:b,d&&m.hasEnd?l.formatRange(v,b,t,{forcedStartTzo:o?null:h.forcedStartTzo,forcedEndTzo:a?null:h.forcedEndTzo}):l.format(v,t,{forcedTzo:o?null:h.forcedStartTzo})):""}function be(i,t,e){let r=i.eventRange.range;return{isPast:r.end<=(e||t.start),isFuture:r.start>=(e||t.end),isToday:t&&_e(t,r.start)}}function Ud(i){let t=["fc-event"];return i.isMirror&&t.push("fc-event-mirror"),i.isDraggable&&t.push("fc-event-draggable"),(i.isStartResizable||i.isEndResizable)&&t.push("fc-event-resizable"),i.isDragging&&t.push("fc-event-dragging"),i.isResizing&&t.push("fc-event-resizing"),i.isSelected&&t.push("fc-event-selected"),i.isStart&&t.push("fc-event-start"),i.isEnd&&t.push("fc-event-end"),i.isPast&&t.push("fc-event-past"),i.isToday&&t.push("fc-event-today"),i.isFuture&&t.push("fc-event-future"),t}function Es(i){return i.instance?i.instance.instanceId:`${i.def.defId}:${i.range.start.toISOString()}`}function Zn(i,t){let{def:e,instance:r}=i.eventRange,{url:s}=e;if(s)return{href:s};let{emitter:o,options:a}=t,{eventInteractive:l}=a;return null==l&&(l=e.interactive,null==l&&(l=!!o.hasHandlers("eventClick"))),l?Or(c=>{o.trigger("eventClick",{el:c.target,event:new Z(t,e,r),jsEvent:c,view:t.viewApi})}):{}}const Vd={start:g,end:g,allDay:Boolean};function Ss(i,t,e){return Object.assign(Object.assign({},ks(i,t,e)),{timeZone:t.timeZone})}function ks(i,t,e){return{start:t.toDate(i.start),end:t.toDate(i.end),startStr:t.formatIso(i.start,{omitTime:e}),endStr:t.formatIso(i.end,{omitTime:e})}}class Rs extends Error{constructor(t,e){super(t),this.response=e}}let Jn;function As(){return null==Jn&&(Jn=function Jd(){if(typeof document>"u")return!0;let i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.innerHTML="<table><tr><td><div></div></td></tr></table>",i.querySelector("table").style.height="100px",i.querySelector("div").style.height="100%",document.body.appendChild(i);let e=i.querySelector("div").offsetHeight>0;return document.body.removeChild(i),e}()),Jn}class Kd extends F{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{$t(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{$t(()=>{this.setState({forPrint:!1})})}}render(){let{props:t}=this,{options:e}=t,{forPrint:r}=this.state,s=r||"auto"===e.height||"auto"===e.contentHeight,o=s||null==e.height?"":e.height,a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${e.direction}`,t.theme.getClass("root")];return As()||a.push("fc-liquid-hack"),t.children(a,o,s,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class Ts{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}const ws={};let Je=(()=>{class i extends ie{constructor(e,r){super(e,r),this.handleRefresh=()=>{let s=this.computeTiming();s.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(s.state),this.clearTimeout(),this.setTimeout(s.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:r}=this;return e.children(r.nowDate,r.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let a,l,{props:e,context:r}=this,s=r.nowManager.getDateMarker(),{nowIndicatorSnap:o}=r.options;return"auto"===o&&(o=/year|month|week|day/.test(e.unit)||1===(e.unitValue||1)),o?(a=r.dateEnv.startOf(s,e.unit),l=r.dateEnv.add(a,D(1,e.unit)).valueOf()-s.valueOf()):(a=s,l=6e4),l=Math.min(864e5,l),{state:{nowDate:a,todayRange:tu(a)},waitMs:l}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const r=this.computeTiming();this.setState(r.state,()=>{this.setTimeout(r.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return i.contextType=ge,i})();function tu(i){let t=B(i);return{start:t,end:Y(t,1)}}class nu{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,e){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:e})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,e){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,e):console.warn(`Unknown listener name '${t}'`)}off(t,e){this.currentDataManager.emitter.off(t,e)}trigger(t,...e){this.currentDataManager.emitter.trigger(t,...e)}changeView(t,e){this.batchRendering(()=>{if(this.unselect(),e)if(e.start&&e.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:e});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(e)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,e){let s;s=this.getCurrentData().viewSpecs[e=e||"day"]||this.getUnitViewSpec(e),this.unselect(),this.dispatch(s?{type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:t}:{type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let o,a,{viewSpecs:e,toolbarConfig:r}=this.getCurrentData(),s=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]);for(let l in e)s.push(l);for(o=0;o<s.length;o+=1)if(a=e[s[o]],a&&a.singleUnit===t)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.nowManager.getDateMarker()})}gotoDate(t){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.createMarker(t)})}incrementDate(t){let e=this.getCurrentData(),r=D(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.add(e.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,e){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),L(e))}formatRange(t,e,r){let{dateEnv:s}=this.getCurrentData();return s.formatRange(s.createMarker(t),s.createMarker(e),L(r),r)}formatIso(t,e){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:e})}select(t,e){let r;r=null==e?null!=t.start?t:{start:t,end:null}:{start:t,end:e};let s=this.getCurrentData(),o=function Yd(i,t,e){let r=function zd(i,t){let{refined:e,extra:r}=Ht(i,Vd),s=e.start?t.createMarkerMeta(e.start):null,o=e.end?t.createMarkerMeta(e.end):null,{allDay:a}=e;return null==a&&(a=s&&s.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:o?o.marker:null},allDay:a},r)}(i,t),{range:s}=r;if(!s.start)return null;if(!s.end){if(null==e)return null;s.end=t.add(s.start,e)}return r}(r,s.dateEnv,D({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function Fd(i,t,e){e.emitter.trigger("select",Object.assign(Object.assign({},function zn(i,t){let e={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(e,r(i,t));return Object.assign(e,function Wd(i,t){return Object.assign(Object.assign({},ks(i.range,t,i.allDay)),{allDay:i.allDay})}(i,t.dateEnv)),e}(i,e)),{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view}))}(o,null,s))}unselect(t){let e=this.getCurrentData();e.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function Nd(i,t){t.emitter.trigger("unselect",{jsEvent:i?i.origEvent:null,view:t.viewApi||t.calendarApi.view})}(t,e))}addEvent(t,e){if(t instanceof Z){let a=t._def,l=t._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Vn({def:a,instance:l})}),this.triggerEventAdd(t)),t}let s,r=this.getCurrentData();if(e instanceof Ze)s=e.internalEventSource;else if("boolean"==typeof e)e&&([s]=Nn(r.eventSources));else if(null!=e){let a=this.getEventSourceById(e);if(!a)return console.warn(`Could not find an event source with ID "${e}"`),null;s=a.internalEventSource}let o=as(t,s,r,!1);if(o){let a=new Z(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Vn(o)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(t){let{emitter:e}=this.getCurrentData();e.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:bs(t)})}})}getEventById(t){let e=this.getCurrentData(),{defs:r,instances:s}=e.eventStore;t=String(t);for(let o in r){let a=r[o];if(a.publicId===t){if(a.recurringDef)return new Z(e,a,null);for(let l in s){let c=s[l];if(c.defId===a.defId)return new Z(e,a,c)}}}return null}getEvents(){let t=this.getCurrentData();return Xn(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),e=t.eventSources,r=[];for(let s in e)r.push(new Ze(t,e[s]));return r}getEventSourceById(t){let e=this.getCurrentData(),r=e.eventSources;t=String(t);for(let s in r)if(r[s].publicId===t)return new Ze(e,r[s]);return null}addEventSource(t){let e=this.getCurrentData();if(t instanceof Ze)return e.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=us(t,e);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Ze(e,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let e=D(t);e&&this.trigger("_scrollRequest",{time:e})}}function iu(i,t){let e={left:Math.max(i.left,t.left),right:Math.min(i.right,t.right),top:Math.max(i.top,t.top),bottom:Math.min(i.bottom,t.bottom)};return e.left<e.right&&e.top<e.bottom&&e}const Kn={defs:{},instances:{}};class ru{constructor(){this.getKeysForEventDefs=R(this._getKeysForEventDefs),this.splitDateSelection=R(this._splitDateSpan),this.splitEventStore=R(this._splitEventStore),this.splitIndividualUi=R(this._splitIndividualUi),this.splitEventDrag=R(this._splitInteraction),this.splitEventResize=R(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let e=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),s=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),l=this.splitEventDrag(t.eventDrag),c=this.splitEventResize(t.eventResize),u={};this.eventUiBuilders=Me(e,(d,m)=>this.eventUiBuilders[m]||R(su));for(let d in e){let m=e[d],h=a[d]||Kn;u[d]={businessHours:m.businessHours||t.businessHours,dateSelection:s[d]||null,eventStore:h,eventUiBases:(0,this.eventUiBuilders[d])(t.eventUiBases[""],m.ui,o[d]),eventSelection:h.instances[t.eventSelection]?t.eventSelection:"",eventDrag:l[d]||null,eventResize:c[d]||null}}return u}_splitDateSpan(t){let e={};if(t){let r=this.getKeysForDateSpan(t);for(let s of r)e[s]=t}return e}_getKeysForEventDefs(t){return Me(t.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(t,e){let{defs:r,instances:s}=t,o={};for(let a in r)for(let l of e[a])o[l]||(o[l]={defs:{},instances:{}}),o[l].defs[a]=r[a];for(let a in s){let l=s[a];for(let c of e[l.defId])o[c]&&(o[c].instances[a]=l)}return o}_splitIndividualUi(t,e){let r={};for(let s in t)if(s)for(let o of e[s])r[o]||(r[o]={}),r[o][s]=t[s];return r}_splitInteraction(t){let e={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),s=this._getKeysForEventDefs(t.mutatedEvents),o=this._splitEventStore(t.mutatedEvents,s),a=l=>{e[l]||(e[l]={affectedEvents:r[l]||Kn,mutatedEvents:o[l]||Kn,isEvent:t.isEvent})};for(let l in r)a(l);for(let l in o)a(l)}return e}}function su(i,t,e){let r=[];i&&r.push(i),t&&r.push(t);let s={"":ds(r)};return e&&Object.assign(s,e),s}function ei(i,t,e,r){return{dow:i.getUTCDay(),isDisabled:!(!r||r.activeRange&&_e(r.activeRange,i)),isOther:!(!r||_e(r.currentRange,i)),isToday:!(!t||!_e(t,i)),isPast:!!(e?i<e:t&&i<t.start),isFuture:!!(e?i>e:t&&i>=t.end)}}function Qt(i,t){let e=["fc-day",`fc-day-${Hr[i.dow]}`];return i.isDisabled?e.push("fc-day-disabled"):(i.isToday&&(e.push("fc-day-today"),e.push(t.getClass("today"))),i.isPast&&e.push("fc-day-past"),i.isFuture&&e.push("fc-day-future"),i.isOther&&e.push("fc-day-other")),e}const ou=L({year:"numeric",month:"long",day:"numeric"}),au=L({week:"long"});function Ke(i,t,e="day",r=!0){const{dateEnv:s,options:o,calendarApi:a}=i;let l=s.format(t,"week"===e?au:ou);if(o.navLinks){let c=s.toDate(t);const u=d=>{let m="day"===e?o.navLinkDayClick:"week"===e?o.navLinkWeekClick:null;"function"==typeof m?m.call(a,s.toDate(t),d):("string"==typeof m&&(e=m),a.zoomTo(t,e))};return Object.assign({title:ut(o.navLinkHint,[l,c],l),"data-navlink":""},r?jr(u):{onClick:u})}return{"aria-label":l}}let ni;class et{constructor(t,e,r,s){this.els=e;let o=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(o.left),s&&this.buildElVerticals(o.top)}buildElHorizontals(t){let e=[],r=[];for(let s of this.els){let o=s.getBoundingClientRect();e.push(o.left-t),r.push(o.right-t)}this.lefts=e,this.rights=r}buildElVerticals(t){let e=[],r=[];for(let s of this.els){let o=s.getBoundingClientRect();e.push(o.top-t),r.push(o.bottom-t)}this.tops=e,this.bottoms=r}leftToIndex(t){let o,{lefts:e,rights:r}=this,s=e.length;for(o=0;o<s;o+=1)if(t>=e[o]&&t<r[o])return o}topToIndex(t){let o,{tops:e,bottoms:r}=this,s=e.length;for(o=0;o<s;o+=1)if(t>=e[o]&&t<r[o])return o}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Zt(this.tops||[],t.tops||[])&&Zt(this.bottoms||[],t.bottoms||[])&&Zt(this.lefts||[],t.lefts||[])&&Zt(this.rights||[],t.rights||[])}}function Zt(i,t){const e=i.length;if(e!==t.length)return!1;for(let r=0;r<e;r++)if(Math.round(i[r])!==Math.round(t[r]))return!1;return!0}class ae extends F{constructor(){super(...arguments),this.uid=He()}prepareHits(){}queryHit(t,e,r,s){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!me(t,".fc-event-mirror")}isValidDateDownEl(t){return!(me(t,".fc-event:not(.fc-bg-event)")||me(t,".fc-more-link")||me(t,"a[data-navlink]")||me(t,".fc-popover"))}}class xs{constructor(t=e=>e.thickness||1){this.getEntryThickness=t,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let e=[];for(let r of t)this.insertEntry(r,e);return e}insertEntry(t,e){let r=this.findInsertion(t);this.isInsertionValid(r,t)?this.insertEntryAt(t,r):this.handleInvalidInsertion(r,t,e)}isInsertionValid(t,e){return(-1===this.maxCoord||t.levelCoord+this.getEntryThickness(e)<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,e,r){if(this.allowReslicing&&t.touchingEntry){const s=Object.assign(Object.assign({},e),{span:ri(e.span,t.touchingEntry.span)});r.push(s),this.splitEntry(e,t.touchingEntry,r)}else r.push(e)}splitEntry(t,e,r){let s=t.span,o=e.span;s.start<o.start&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.start,end:o.start}},r),s.end>o.end&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:o.end,end:s.end}},r)}insertEntryAt(t,e){let{entriesByLevel:r,levelCoords:s}=this;-1===e.lateral?(si(s,e.level,e.levelCoord),si(r,e.level,[t])):si(r[e.level],e.lateral,t),this.stackCnts[Ye(t)]=e.stackCnt}findInsertion(t){let{levelCoords:e,entriesByLevel:r,strictOrder:s,stackCnts:o}=this,a=e.length,l=0,c=-1,u=-1,d=null,m=0;for(let _=0;_<a;_+=1){const v=e[_];if(!s&&v>=l+this.getEntryThickness(t))break;let y,b=r[_],S=oi(b,t.span.start,ii),w=S[0]+S[1];for(;(y=b[w])&&y.span.start<t.span.end;){let T=v+this.getEntryThickness(y);T>l&&(l=T,d=y,c=_,u=w),T===l&&(m=Math.max(m,o[Ye(y)]+1)),w+=1}}let h=0;if(d)for(h=c+1;h<a&&e[h]<l;)h+=1;let p=-1;return h<a&&e[h]===l&&(p=oi(r[h],t.span.end,ii)[0]),{touchingLevel:c,touchingLateral:u,touchingEntry:d,stackCnt:m,levelCoord:l,level:h,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:e}=this,r=t.length,s=[];for(let o=0;o<r;o+=1){let a=t[o],l=e[o];for(let c of a)s.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:l}))}return s}}function ii(i){return i.span.end}function Ye(i){return i.index+":"+i.span.start}function vu(i,t){return{start:Math.min(i.start,t.start),end:Math.max(i.end,t.end)}}function ri(i,t){let e=Math.max(i.start,t.start),r=Math.min(i.end,t.end);return e<r?{start:e,end:r}:null}function si(i,t,e){i.splice(t,0,e)}function oi(i,t,e){let r=0,s=i.length;if(!s||t<e(i[r]))return[0,0];if(t>e(i[s-1]))return[s,0];for(;r<s;){let o=Math.floor(r+(s-r)/2),a=e(i[o]);if(t<a)s=o;else{if(!(t>a))return[o,1];r=o+1}}return[r,0]}Boolean;const Is="fc-col-header-cell";function Ms(i){return i.text}class Cu extends F{render(){let{dateEnv:t,options:e,theme:r,viewApi:s}=this.context,{props:o}=this,{date:a,dateProfile:l}=o,c=ei(a,o.todayRange,null,l),u=[Is].concat(Qt(c,r)),d=t.format(a,o.dayHeaderFormat),m=!c.isDisabled&&o.colCnt>1?Ke(this.context,a):{},h=t.toDate(a);t.namedTimeZoneImpl&&(h=we(h,36e5));let p=Object.assign(Object.assign(Object.assign({date:h,view:s},o.extraRenderProps),{text:d}),c);return f(ee,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":c.isDisabled?void 0:ft(a)},o.extraDataAttrs),renderProps:p,generatorName:"dayHeaderContent",customGenerator:e.dayHeaderContent,defaultGenerator:Ms,classNameGenerator:e.dayHeaderClassNames,didMount:e.dayHeaderDidMount,willUnmount:e.dayHeaderWillUnmount},_=>f("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&f(_,{elTag:"a",elAttrs:m,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const Eu=L({weekday:"long"});class Su extends F{render(){let{props:t}=this,{dateEnv:e,theme:r,viewApi:s,options:o}=this.context,a=Y(new Date(2592e5),t.dow),l={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=e.format(a,t.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:a},l),{view:s}),t.extraRenderProps),{text:c});return f(ee,{elTag:"th",elClasses:[Is,...Qt(l,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:Ms,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},d=>f("div",{className:"fc-scrollgrid-sync-inner"},f(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":e.format(a,Eu)}})))}}class Fs extends F{constructor(){super(...arguments),this.createDayHeaderFormatter=R(ku)}render(){let{context:t}=this,{dates:e,dateProfile:r,datesRepDistinctDays:s,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,s,e.length);return f(Je,{unit:"day"},(l,c)=>f("tr",{role:"row"},o&&o("day"),e.map(u=>s?f(Cu,{key:u.toISOString(),date:u,dateProfile:r,todayRange:c,colCnt:e.length,dayHeaderFormat:a}):f(Su,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:a}))))}}function ku(i,t,e){return i||function yu(i,t){return L(!i||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(t,e)}class Ns{constructor(t,e){let r=t.start,{end:s}=t,o=[],a=[],l=-1;for(;r<s;)e.isHiddenDay(r)?o.push(l+.5):(l+=1,o.push(l),a.push(r)),r=Y(r,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(t){let e=this.getDateDayIndex(t.start),r=this.getDateDayIndex(Y(t.end,-1)),s=Math.max(0,e),o=Math.min(this.cnt-1,r);return s=Math.ceil(s),o=Math.floor(o),s<=o?{firstIndex:s,lastIndex:o,isStart:e===s,isEnd:r===o}:null}getDateDayIndex(t){let{indices:e}=this,r=Math.floor(De(this.dates[0],t));return r<0?e[0]-1:r>=e.length?e[e.length-1]+1:e[r]}}class js{constructor(t,e){let s,o,a,{dates:r}=t;if(e){for(o=r[0].getUTCDay(),s=1;s<r.length&&r[s].getUTCDay()!==o;s+=1);a=Math.ceil(r.length/s)}else a=1,s=r.length;this.rowCnt=a,this.colCnt=s,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let e=0;e<this.rowCnt;e+=1){let r=[];for(let s=0;s<this.colCnt;s+=1)r.push(this.buildCell(e,s));t.push(r)}return t}buildCell(t,e){let r=this.daySeries.dates[t*this.colCnt+e];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let e=0;e<this.colCnt;e+=1)t.push(this.cells[0][e].date);return t}sliceRange(t){let{colCnt:e}=this,r=this.daySeries.sliceRange(t),s=[];if(r){let{firstIndex:o,lastIndex:a}=r,l=o;for(;l<=a;){let c=Math.floor(l/e),u=Math.min((c+1)*e,a+1);s.push({row:c,firstCol:l%e,lastCol:(u-1)%e,isStart:r.isStart&&l===o,isEnd:r.isEnd&&u-1===a}),l=u}}return s}}class Os{constructor(){this.sliceBusinessHours=R(this._sliceBusinessHours),this.sliceDateSelection=R(this._sliceDateSpan),this.sliceEventStore=R(this._sliceEventStore),this.sliceEventDrag=R(this._sliceInteraction),this.sliceEventResize=R(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,e,r,s,...o){let{eventUiBases:a}=t,l=this.sliceEventStore(t.eventStore,a,e,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,e,r,a,s,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,e,r,s,...o),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag(t.eventDrag,a,e,r,...o),eventResize:this.sliceEventResize(t.eventResize,a,e,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,e,r,s,...o){return this._sliceDateSpan({range:{start:t,end:we(t,1)},allDay:!1},e,r,{},s,...o)}_sliceBusinessHours(t,e,r,s,...o){return t?this._sliceEventStore(Ve(t,Jt(e,!!r),s),{},e,r,...o).bg:[]}_sliceEventStore(t,e,r,s,...o){if(t){let a=Wn(t,e,Jt(r,!!s),s);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,e,r,s,...o){if(!t)return null;let a=Wn(t.mutatedEvents,e,Jt(r,!!s),s);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,e,r,s,o,...a){if(!t)return[];let l=Jt(e,!!r),c=Fe(t.range,l);if(c){let u=function qd(i,t,e){let r=ls({editable:!1},e),s=Un(r.refined,r.extra,"",i.allDay,!0,e);return{def:s,ui:Cs(s,t),instance:Ln(s.defId,i.range),range:i.range,isStart:!0,isEnd:!0}}(t=Object.assign(Object.assign({},t),{range:c}),s,o),d=this.sliceRange(t.range,...a);for(let m of d)m.eventRange=u;return d}return[]}sliceEventRanges(t,e){let r=[];for(let s of t)r.push(...this.sliceEventRange(s,e));return r}sliceEventRange(t,e){let r=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(r={start:r.start,end:Y(r.start,1)});let s=this.sliceRange(r,...e);for(let o of s)o.eventRange=t,o.isStart=t.isStart&&o.isStart,o.isEnd=t.isEnd&&o.isEnd;return s}}function Jt(i,t){let e=i.activeRange;return t?e:{start:we(e.start,i.slotMinTime.milliseconds),end:we(e.end,i.slotMaxTime.milliseconds-864e5)}}const Kt=/^(visible|hidden)$/;class Ps extends F{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,de(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:e,liquidIsAbsolute:r}=t,s=e&&r,o=["fc-scroller"];return e&&o.push(r?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),f("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:s&&-(t.overcomeLeft||0)||"",right:s&&-(t.overcomeRight||0)||"",bottom:s&&-(t.overcomeBottom||0)||"",marginLeft:!s&&-(t.overcomeLeft||0)||"",marginRight:!s&&-(t.overcomeRight||0)||"",marginBottom:!s&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(Kt.test(this.props.overflowX))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().width>e)return!0;return!1}needsYScrolling(){if(Kt.test(this.props.overflowY))return!1;let{el:t}=this,e=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let s=0;s<r.length;s+=1)if(r[s].getBoundingClientRect().height>e)return!0;return!1}getXScrollbarWidth(){return Kt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Kt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ye{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,r)=>{let{depths:s,currentMap:o}=this,a=!1,l=!1;null!==e?(a=r in o,o[r]=e,s[r]=(s[r]||0)+1,l=!0):(s[r]-=1,s[r]||(delete o[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),l&&this.masterCallback(e,String(r)))}}createRef(t){let e=this.callbackMap[t];return e||(e=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),e}collect(t,e,r){return function Uc(i,t=0,e,r=1){let s=[];null==e&&(e=Object.keys(i).length);for(let o=t;o<e;o+=r){let a=i[o];void 0!==a&&s.push(a)}return s}(this.currentMap,t,e,r)}getAll(){return Nn(this.currentMap)}}function Hs(i,t){return i.liquid&&t.liquid}function Fu(i,t){return ce(i,t,oe)}function Nu(i,t){let e=[];for(let r of i){let s=r.span||1;for(let o=0;o<s;o+=1)e.push(f("col",{style:{width:"shrink"===r.width?ju(t):r.width||"",minWidth:r.minWidth||""}}))}return f("colgroup",{},...e)}function ju(i){return i??4}function Bu(i,t){let e=["fc-scrollgrid-section",`fc-scrollgrid-section-${i.type}`,i.className];return t&&i.liquid&&null==i.maxHeight&&e.push("fc-scrollgrid-section-liquid"),i.isSticky&&e.push("fc-scrollgrid-section-sticky"),e}function li(i){return f("div",{className:"fc-scrollgrid-sticky-shim",style:{width:i.clientWidth,minWidth:i.tableMinWidth}})}function en(i){let{stickyHeaderDates:t}=i;return(null==t||"auto"===t)&&(t="auto"===i.height||"auto"===i.viewHeight),t}function Ls(i){let{stickyFooterScrollbar:t}=i;return(null==t||"auto"===t)&&(t="auto"===i.height||"auto"===i.viewHeight),t}class ci extends F{constructor(){super(...arguments),this.processCols=R(t=>t,Fu),this.renderMicroColGroup=R(Nu),this.scrollerRefs=new ye,this.scrollerElRefs=new ye(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:t,state:e,context:r}=this,s=t.sections||[],o=this.processCols(t.cols),a=this.renderMicroColGroup(o,e.shrinkWidth),l=function Gu(i,t){let e=["fc-scrollgrid",t.theme.getClass("table")];return i&&e.push("fc-scrollgrid-liquid"),e}(t.liquid,r);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let d,c=s.length,u=0,m=[],h=[],p=[];for(;u<c&&"header"===(d=s[u]).type;)m.push(this.renderSection(d,a,!0)),u+=1;for(;u<c&&"body"===(d=s[u]).type;)h.push(this.renderSection(d,a,!1)),u+=1;for(;u<c&&"footer"===(d=s[u]).type;)p.push(this.renderSection(d,a,!0)),u+=1;let _=!As();const v={role:"rowgroup"};return f("table",{role:"grid",className:l.join(" "),style:{height:t.height}},!(_||!m.length)&&f("thead",v,...m),!(_||!h.length)&&f("tbody",v,...h),!(_||!p.length)&&f("tfoot",v,...p),_&&f("tbody",v,...m,...h,...p))}renderSection(t,e,r){return"outerContent"in t?f(j,{key:t.key},t.outerContent):f("tr",{key:t.key,role:"presentation",className:Bu(t,this.props.liquid).join(" ")},this.renderChunkTd(t,e,t.chunk,r))}renderChunkTd(t,e,r,s){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:l,scrollerClientHeights:c}=this.state,u=function Iu(i,t){return null!=t.maxHeight||Hs(i,t)}(o,t),d=Hs(o,t),m=o.liquid?a?"scroll":u?"auto":"hidden":"visible",h=t.key,p=function Mu(i,t,e,r){let{expandRows:s}=e;return"function"==typeof t.content?t.content(e):f("table",{role:"presentation",className:[t.tableClassName,i.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:s?e.clientHeight:""}},e.tableColGroupNode,f(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(e):t.rowContent))}(t,r,{tableColGroupNode:e,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===l[h]?null:l[h],clientHeight:void 0!==c[h]?c[h]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return f(s?"th":"td",{ref:r.elRef,role:"presentation"},f("div",{className:"fc-scroller-harness"+(d?" fc-scroller-harness-liquid":"")},f(Ps,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:m,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:d,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,e){let r=function Pu(i,t){for(let e of i)if(e.key===t)return e;return null}(this.props.sections,e);r&&de(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function Ou(i){for(let t of i)if("shrink"===t.width)return!0;return!1}(this.props.cols)?function xu(i){let t=function Xl(i,t){let e=i instanceof HTMLElement?[i]:i,r=[];for(let s=0;s<e.length;s+=1){let o=e[s].querySelectorAll(t);for(let a=0;a<o.length;a+=1)r.push(o[a])}return r}(i,".fc-scrollgrid-shrink"),e=0;for(let r of t)e=Math.max(e,nc(r));return Math.ceil(e)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=function du(){return ni||(ni=function uu(){let i=document.createElement("div");i.style.overflow="scroll",i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",document.body.appendChild(i);let t=function Ds(i){return{x:i.offsetHeight-i.clientHeight,y:i.offsetWidth-i.clientWidth}}(i);return document.body.removeChild(i),t}()),ni}(),{scrollerRefs:e,scrollerElRefs:r}=this,s=!1,o={},a={};for(let l in e.currentMap){let c=e.currentMap[l];if(c&&c.needsYScrolling()){s=!0;break}}for(let l of this.props.sections){let c=l.key,u=r.currentMap[c];if(u){let d=u.parentNode;o[c]=Math.floor(d.getBoundingClientRect().width-(s?t.y:0)),a[c]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:o,scrollerClientHeights:a}}}ci.addStateEquality({scrollerClientWidths:oe,scrollerClientHeights:oe});class tn extends F{constructor(){super(...arguments),this.buildPublicEvent=R((t,e,r)=>new Z(t,e,r)),this.handleEl=t=>{this.el=t,de(this.props.elRef,t),t&&ys(t,this.props.seg)}}render(){const{props:t,context:e}=this,{options:r}=e,{seg:s}=t,{eventRange:o}=s,{ui:a}=o,l={event:this.buildPublicEvent(e,o.def,o.instance),view:e.viewApi,timeText:t.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!t.disableDragging&&Hd(s,e),isStartResizable:!t.disableResizing&&Ld(s,e),isEndResizable:!t.disableResizing&&(i=s,i.isEnd&&i.eventRange.ui.durationEditable),isMirror:!!(t.isDragging||t.isResizing||t.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!t.isPast,isFuture:!!t.isFuture,isToday:!!t.isToday,isSelected:!!t.isSelected,isDragging:!!t.isDragging,isResizing:!!t.isResizing};var i;return f(ee,{elRef:this.handleEl,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:[...Ud(l),...s.eventRange.ui.classNames,...t.elClasses||[]],elStyle:t.elStyle,renderProps:l,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},t.children)}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&ys(this.el,this.props.seg)}}class di extends F{render(){let{props:t,context:e}=this,{options:r}=e,{seg:s}=t,{ui:o}=s.eventRange,l=_t(s,r.eventTimeFormat||t.defaultTimeFormat,e,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return f(tn,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Zn(s,e),defaultGenerator:Hu,timeText:l}),(c,u)=>f(j,null,f(c,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&f("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&f("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Hu(i){return f("div",{className:"fc-event-main-frame"},i.timeText&&f("div",{className:"fc-event-time"},i.timeText),f("div",{className:"fc-event-title-container"},f("div",{className:"fc-event-title fc-sticky"},i.event.title||f(j,null,"\xa0"))))}di.addPropsEquality({seg:oe});const ui=i=>f(ge.Consumer,null,t=>{let{options:e}=t,r={isAxis:i.isAxis,date:t.dateEnv.toDate(i.date),view:t.viewApi};return f(ee,{elRef:i.elRef,elTag:i.elTag||"div",elAttrs:i.elAttrs,elClasses:i.elClasses,elStyle:i.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:e.nowIndicatorContent,classNameGenerator:e.nowIndicatorClassNames,didMount:e.nowIndicatorDidMount,willUnmount:e.nowIndicatorWillUnmount},i.children)}),Lu=L({day:"numeric"});class fi extends F{constructor(){super(...arguments),this.refineRenderProps=jt($u)}render(){let{props:t,context:e}=this,{options:r}=e,s=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:e.viewApi,dateEnv:e.dateEnv,monthStartFormat:r.monthStartFormat});return f(ee,{elRef:t.elRef,elTag:t.elTag,elAttrs:Object.assign(Object.assign({},t.elAttrs),s.isDisabled?{}:{"data-date":ft(t.date)}),elClasses:[...Qt(s,e.theme),...t.elClasses||[]],elStyle:t.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:s.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},t.children)}}function pi(i){return!(!i.dayCellContent&&!Gn("dayCellContent",i))}function $u(i){let{date:t,dateEnv:e,dateProfile:r,isMonthStart:s}=i,o=ei(t,i.todayRange,null,r),a=i.showDayNumber?e.format(t,s?i.monthStartFormat:Lu):"";return Object.assign(Object.assign(Object.assign({date:e.toDate(t),view:i.viewApi},o),{isMonthStart:s,dayNumberText:a}),i.extraRenderProps)}class $s extends F{render(){let{props:t}=this,{seg:e}=t;return f(tn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:e.eventRange.ui.backgroundColor},defaultGenerator:Uu,seg:e,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function Uu(i){let{title:t}=i.event;return t&&f("div",{className:"fc-event-title"},i.event.title)}function Us(i){return f("div",{className:`fc-${i}`})}const Vs=i=>f(ge.Consumer,null,t=>{let{dateEnv:e,options:r}=t,{date:s}=i,o=r.weekNumberFormat||i.defaultFormat,a=e.computeWeekNumber(s),l=e.format(s,o);return f(ee,{elRef:i.elRef,elTag:i.elTag,elAttrs:i.elAttrs,elClasses:i.elClasses,elStyle:i.elStyle,renderProps:{num:a,text:l,date:s},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Vu,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},i.children)});function Vu(i){return i.text}class Yu extends F{constructor(){super(...arguments),this.state={titleId:Te()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&de(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const e=function ql(i){var t,e;return null!==(e=null===(t=i.composedPath)||void 0===t?void 0:t.call(i)[0])&&void 0!==e?e:i.target}(t);this.rootEl.contains(e)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:e}=this.context,{props:r,state:s}=this,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return function gr(i,t){var e=f(Cl,{__v:i,i:t});return e.containerInfo=t,e}(f("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),f("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},f("span",{className:"fc-popover-title",id:s.titleId},r.title),f("span",{className:"fc-popover-close "+t.getIconClass("close"),title:e.closeHint,onClick:this.handleCloseClick})),f("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:t}=this.context,{alignmentEl:e,alignGridTop:r}=this.props,{rootEl:s}=this,o=function hu(i){let t=function mu(i){let t=[];for(;i instanceof HTMLElement;){let e=window.getComputedStyle(i);if("fixed"===e.position)break;/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(i),i=i.parentNode}return t}(i),e=i.getBoundingClientRect();for(let r of t){let s=iu(e,r.getBoundingClientRect());if(!s)return null;e=s}return e}(e);if(o){let a=s.getBoundingClientRect(),l=r?me(e,".fc-scrollgrid").getBoundingClientRect().top:o.top,c=t?o.right-a.width:o.left;l=Math.max(l,10),c=Math.min(c,document.documentElement.clientWidth-10-a.width),c=Math.max(c,10);let u=s.offsetParent.getBoundingClientRect();!function xr(i,t){for(let e in t)Ir(i,e,t[e])}(s,{top:l-u.top,left:c-u.left})}}}class zu extends ae{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:e}=this.context,{props:r}=this,{startDate:s,todayRange:o,dateProfile:a}=r,l=e.format(s,t.dayPopoverFormat);return f(fi,{elRef:this.handleRootEl,date:s,dateProfile:a,todayRange:o},(c,u,d)=>f(Yu,{elRef:d.ref,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},pi(t)&&f(c,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,e,r,s){let{rootEl:o,props:a}=this;return t>=0&&t<r&&e>=0&&e<s?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:s},layer:1}:null}}class Ys extends F{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Te()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&de(this.props.elRef,t)},this.handleClick=t=>{let{props:e,context:r}=this,{moreLinkClick:s}=r.options,o=zs(e).start;function a(l){let{def:c,instance:u,range:d}=l.eventRange;return{event:new Z(r,c,u),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:l.isStart,isEnd:l.isEnd}}"function"==typeof s&&(s=s({date:o,allDay:!!e.allDayDate,allSegs:e.allSegs.map(a),hiddenSegs:e.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),s&&"popover"!==s?"string"==typeof s&&r.calendarApi.zoomTo(o,s):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:e}=this;return f(ge.Consumer,null,r=>{let{viewApi:s,options:o,calendarApi:a}=r,{moreLinkText:l}=o,{moreCnt:c}=t,u=zs(t),d="function"==typeof l?l.call(a,c):`+${c} ${l}`,m=ut(o.moreLinkHint,[c],d),h={num:c,shortText:`+${c}`,text:d,view:s};return f(j,null,!!t.moreCnt&&f(ee,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),jr(this.handleClick)),{title:m,"aria-expanded":e.isPopoverOpen,"aria-controls":e.isPopoverOpen?e.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||Xu,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),e.isPopoverOpen&&f(zu,{id:e.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=me(this.linkEl,".fc-view-harness"))}}function Xu(i){return i.text}function zs(i){if(i.allDayDate)return{start:i.allDayDate,end:Y(i.allDayDate,1)};let{hiddenSegs:t}=i;return{start:Xs(t),end:qu(t)}}function Xs(i){return i.reduce(Wu).eventRange.range.start}function Wu(i,t){return i.eventRange.range.start<t.eventRange.range.start?i:t}function qu(i){return i.reduce(Qu).eventRange.range.end}function Qu(i,t){return i.eventRange.range.end>t.eventRange.range.end?i:t}class Zu{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let e of this.handlers)e(t)}subscribe(t){this.handlers.push(t),void 0!==this.currentValue&&t(this.currentValue)}}class Ju extends Zu{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:e}=this;let r=!1;t.isActive?(e.set(t.id,t),r=!0):e.has(t.id)&&(e.delete(t.id),r=!0),r&&this.set(e)}}const Ku=[],Ws={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},qs=Object.assign(Object.assign({},Ws),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(i,t)=>"day"===t?"Today":`This ${i}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:i=>`Show ${i} more event${1===i?"":"s"}`});function Qs(i){let t=i.length>0?i[0].code:"en",e=Ku.concat(i),r={en:qs};for(let s of e)r[s.code]=s;return{map:r,defaultCode:t}}function mi(i,t){return"object"!=typeof i||Array.isArray(i)?function ef(i,t){let e=[].concat(i||[]),r=function tf(i,t){for(let e=0;e<i.length;e+=1){let r=i[e].toLocaleLowerCase().split("-");for(let s=r.length;s>0;s-=1){let o=r.slice(0,s).join("-");if(t[o])return t[o]}}return null}(e,t)||qs;return Zs(i,e,r)}(i,t):Zs(i.code,[i.code],i)}function Zs(i,t,e){let r=Fn([Ws,e],["buttonText"]);delete r.code;let{week:s}=r;return delete r.week,{codeArg:i,codes:t,week:s,simpleNumberFormat:new Intl.NumberFormat(i),options:r}}function Ce(i){return{id:He(),name:i.name,premiumReleaseDate:i.premiumReleaseDate?new Date(i.premiumReleaseDate):void 0,deps:i.deps||[],reducers:i.reducers||[],isLoadingFuncs:i.isLoadingFuncs||[],contextInit:[].concat(i.contextInit||[]),eventRefiners:i.eventRefiners||{},eventDefMemberAdders:i.eventDefMemberAdders||[],eventSourceRefiners:i.eventSourceRefiners||{},isDraggableTransformers:i.isDraggableTransformers||[],eventDragMutationMassagers:i.eventDragMutationMassagers||[],eventDefMutationAppliers:i.eventDefMutationAppliers||[],dateSelectionTransformers:i.dateSelectionTransformers||[],datePointTransforms:i.datePointTransforms||[],dateSpanTransforms:i.dateSpanTransforms||[],views:i.views||{},viewPropsTransformers:i.viewPropsTransformers||[],isPropsValid:i.isPropsValid||null,externalDefTransforms:i.externalDefTransforms||[],viewContainerAppends:i.viewContainerAppends||[],eventDropTransformers:i.eventDropTransformers||[],componentInteractions:i.componentInteractions||[],calendarInteractions:i.calendarInteractions||[],themeClasses:i.themeClasses||{},eventSourceDefs:i.eventSourceDefs||[],cmdFormatter:i.cmdFormatter,recurringTypes:i.recurringTypes||[],namedTimeZonedImpl:i.namedTimeZonedImpl,initialView:i.initialView||"",elementDraggingImpl:i.elementDraggingImpl,optionChangeHandlers:i.optionChangeHandlers||{},scrollGridImpl:i.scrollGridImpl||null,listenerRefiners:i.listenerRefiners||{},optionRefiners:i.optionRefiners||{},propSetHandlers:i.propSetHandlers||{}}}function sf(i,t){return{premiumReleaseDate:of(i.premiumReleaseDate,t.premiumReleaseDate),reducers:i.reducers.concat(t.reducers),isLoadingFuncs:i.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:i.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},i.eventRefiners),t.eventRefiners),eventDefMemberAdders:i.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},i.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:i.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},i.views),t.views),viewPropsTransformers:i.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:i.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:i.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(t.calendarInteractions),componentInteractions:i.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},i.themeClasses),t.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||i.namedTimeZonedImpl,initialView:i.initialView||t.initialView,elementDraggingImpl:i.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},i.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||i.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},i.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},i.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},i.propSetHandlers),t.propSetHandlers)}}function of(i,t){return void 0===i?t:void 0===t?i:new Date(Math.max(i.valueOf(),t.valueOf()))}class Ne extends ht{}function gi(i,t,e,r){if(t[i])return t[i];let s=function lf(i,t,e,r){let s=e[i],o=r[i],a=d=>s&&null!==s[d]?s[d]:o&&null!==o[d]?o[d]:null,l=a("component"),c=a("superType"),u=null;if(c){if(c===i)throw new Error("Can't have a custom view type that references itself");u=gi(c,t,e,r)}return!l&&u&&(l=u.component),l?{type:i,component:l,defaults:Object.assign(Object.assign({},u?u.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),o?o.rawOptions:{})}:null}(i,t,e,r);return s&&(t[i]=s),s}function Js(i){return Me(i,cf)}function cf(i){let t="function"==typeof i?{component:i}:i,{component:e}=t;return t.content?e=Ks(t):e&&!(e.prototype instanceof F)&&(e=Ks(Object.assign(Object.assign({},t),{content:e}))),{superType:t.type,component:e,rawOptions:t}}function Ks(i){return t=>f(ge.Consumer,null,e=>f(ee,{elTag:"div",elClasses:ns(e.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:e.options.nextDayThreshold}),generatorName:void 0,customGenerator:i.content,classNameGenerator:i.classNames,didMount:i.didMount,willUnmount:i.willUnmount}))}function df(i,t,e,r){let s=Js(i),o=Js(t.views),a=function af(i,t){let r,e={};for(r in i)gi(r,e,i,t);for(r in t)gi(r,e,i,t);return e}(s,o);return Me(a,l=>function uf(i,t,e,r,s){let o=i.overrides.duration||i.defaults.duration||r.duration||e.duration,a=null,l="",c="",u={};if(o&&(a=function ff(i){let t=JSON.stringify(i),e=eo[t];return void 0===e&&(e=D(i),eo[t]=e),e}(o),a)){let h=wn(a);l=h.unit,1===h.value&&(c=l,u=t[l]?t[l].rawOptions:{})}let d=h=>{let p=h.buttonText||{},_=i.defaults.buttonTextKey;return null!=_&&null!=p[_]?p[_]:null!=p[i.type]?p[i.type]:null!=p[c]?p[c]:null},m=h=>{let p=h.buttonHints||{},_=i.defaults.buttonTextKey;return null!=_&&null!=p[_]?p[_]:null!=p[i.type]?p[i.type]:null!=p[c]?p[c]:null};return{type:i.type,component:i.component,duration:a,durationUnit:l,singleUnit:c,optionDefaults:i.defaults,optionOverrides:Object.assign(Object.assign({},u),i.overrides),buttonTextOverride:d(r)||d(e)||i.overrides.buttonText,buttonTextDefault:d(s)||i.defaults.buttonText||d(pt)||i.type,buttonTitleOverride:m(r)||m(e)||i.overrides.buttonHint,buttonTitleDefault:m(s)||i.defaults.buttonHint||m(pt)}}(l,o,t,e,r))}Ne.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ne.prototype.baseIconClass="fc-icon",Ne.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Ne.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ne.prototype.iconOverrideOption="buttonIcons",Ne.prototype.iconOverrideCustomButtonOption="icon",Ne.prototype.iconOverridePrefix="fc-icon-";let eo={};function to(i){for(let t in i)if(i[t].isFetching)return!0;return!1}function no(i,t,e,r){let s={};for(let o of t)s[o.sourceId]=o;return e&&(s=io(s,e,r)),Object.assign(Object.assign({},i),s)}function io(i,t,e){return _i(i,Ue(i,r=>function Ef(i,t,e){return so(i,e)?!e.options.lazyFetching||!i.fetchRange||i.isFetching||t.start<i.fetchRange.start||t.end>i.fetchRange.end:!i.latestFetchId}(r,t,e)),t,!1,e)}function _i(i,t,e,r,s){let o={};for(let a in i){let l=i[a];o[a]=t[a]?Sf(l,e,r,s):l}return o}function Sf(i,t,e,r){let{options:s,calendarApi:o}=r,a=r.pluginHooks.eventSourceDefs[i.sourceDefId],l=He();return a.fetch({eventSource:i,range:t,isRefetch:e,context:r},c=>{let{rawEvents:u}=c;s.eventSourceSuccess&&(u=s.eventSourceSuccess.call(o,u,c.response)||u),i.success&&(u=i.success.call(o,u,c.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:i.sourceId,fetchId:l,fetchRange:t,rawEvents:u})},c=>{let u=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(o,c),u=!0),i.failure&&(i.failure(c),u=!0),u||console.warn(c.message,c),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:i.sourceId,fetchId:l,fetchRange:t,error:c})}),Object.assign(Object.assign({},i),{isFetching:!0,latestFetchId:l})}function ro(i,t){return Ue(i,e=>so(e,t))}function so(i,t){return!t.pluginHooks.eventSourceDefs[i.sourceDefId].ignoreRange}function Af(i,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return i}}function Tf(i,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return i}}function wf(i,t){let e;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return e=t.state,{affectedEvents:e.affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return i}}function Df(i,t){let e;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return e=t.state,{affectedEvents:e.affectedEvents,mutatedEvents:e.mutatedEvents,isEvent:e.isEvent};default:return i}}function xf(i,t,e,r,s){return{header:i.headerToolbar?oo(i.headerToolbar,i,t,e,r,s):null,footer:i.footerToolbar?oo(i.footerToolbar,i,t,e,r,s):null}}function oo(i,t,e,r,s,o){let a={},l=[],c=!1;for(let u in i){let m=If(i[u],t,e,r,s,o);a[u]=m.widgets,l.push(...m.viewsWithButtons),c=c||m.hasTitle}return{sectionWidgets:a,viewsWithButtons:l,hasTitle:c}}function If(i,t,e,r,s,o){let a="rtl"===t.direction,l=t.customButtons||{},c=e.buttonText||{},u=t.buttonText||{},d=e.buttonHints||{},m=t.buttonHints||{},h=i?i.split(" "):[],p=[],_=!1;return{widgets:h.map(b=>b.split(",").map(y=>{if("title"===y)return _=!0,{buttonName:y};let S,w,T,z,O,$;if(S=l[y])T=x=>{S.click&&S.click.call(x.target,x,x.target)},(z=r.getCustomButtonIconClass(S))||(z=r.getIconClass(y,a))||(O=S.text),$=S.hint||S.text;else if(w=s[y]){p.push(y),T=()=>{o.changeView(y)},(O=w.buttonTextOverride)||(z=r.getIconClass(y,a))||(O=w.buttonTextDefault);let x=w.buttonTextOverride||w.buttonTextDefault;$=ut(w.buttonTitleOverride||w.buttonTitleDefault||t.viewHint,[x,y],x)}else if(o[y])if(T=()=>{o[y]()},(O=c[y])||(z=r.getIconClass(y,a))||(O=u[y]),"prevYear"===y||"nextYear"===y){let x="prevYear"===y?"prev":"next";$=ut(d[x]||m[x],[u.year||"year","year"],u[y])}else $=x=>ut(d[y]||m[y],[u[x]||x,x],u[y]);return{buttonName:y,buttonClick:T,buttonIcon:z,buttonText:O,buttonHint:$}})),viewsWithButtons:p,hasTitle:_}}class Mf{constructor(t,e,r){this.type=t,this.getCurrentData=e,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(t){return this.getCurrentData().options[t]}}function ao(i,t){let e=Nn(t.getCurrentData().eventSources);if(1===e.length&&1===i.length&&Array.isArray(e[0]._raw)&&Array.isArray(i[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:e[0].sourceId,rawEvents:i[0]});let r=[];for(let s of i){let o=!1;for(let a=0;a<e.length;a+=1)if(e[a]._raw===s){e.splice(a,1),o=!0;break}o||r.push(s)}for(let s of e)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:s.sourceId});for(let s of r)t.calendarApi.addEventSource(s)}const $f=[Ce({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:i=>Array.isArray(i.events)?i.events:null,fetch(i,t){t({rawEvents:i.eventSource.meta})}}]}),Ce({name:"func-event-source",eventSourceDefs:[{parseMeta:i=>"function"==typeof i.events?i.events:null,fetch(i,t,e){const{dateEnv:r}=i.context;!function Qd(i,t,e){let r=!1,s=function(l){r||(r=!0,t(l))},o=function(l){r||(r=!0,e(l))},a=i(s,o);a&&"function"==typeof a.then&&a.then(s,o)}(i.eventSource.meta.bind(null,Ss(i.range,r)),o=>t({rawEvents:o}),e)}}]}),Ce({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:g,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:i=>!i.url||"json"!==i.format&&i.format?null:{url:i.url,format:"json",method:(i.method||"GET").toUpperCase(),extraParams:i.extraParams,startParam:i.startParam,endParam:i.endParam,timeZoneParam:i.timeZoneParam},fetch(i,t,e){const{meta:r}=i.eventSource,s=function Of(i,t,e){let o,a,l,c,{dateEnv:r,options:s}=e,u={};return o=i.startParam,null==o&&(o=s.startParam),a=i.endParam,null==a&&(a=s.endParam),l=i.timeZoneParam,null==l&&(l=s.timeZoneParam),c="function"==typeof i.extraParams?i.extraParams():i.extraParams||{},Object.assign(u,c),u[o]=r.formatIso(t.start),u[a]=r.formatIso(t.end),"local"!==r.timeZone&&(u[l]=r.timeZone),u}(r,i.range,i.context);(function Zd(i,t,e){const r={method:i=i.toUpperCase()};return"GET"===i?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(e):(r.body=new URLSearchParams(e),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(s=>{if(s.ok)return s.json().then(o=>[o,s],()=>{throw new Rs("Failure parsing JSON",s)});throw new Rs("Request failed",s)})})(r.method,r.url,s).then(([o,a])=>{t({rawEvents:o,response:a})},e)}}]}),Ce({name:"simple-recurring-event",recurringTypes:[{parse(i,t){if(i.daysOfWeek||i.startTime||i.endTime||i.startRecur||i.endRecur){let r,e={daysOfWeek:i.daysOfWeek||null,startTime:i.startTime||null,endTime:i.endTime||null,startRecur:i.startRecur?t.createMarker(i.startRecur):null,endRecur:i.endRecur?t.createMarker(i.endRecur):null,dateEnv:t};return i.duration&&(r=i.duration),!r&&i.startTime&&i.endTime&&(r=function oc(i,t){return{years:i.years-t.years,months:i.months-t.months,days:i.days-t.days,milliseconds:i.milliseconds-t.milliseconds}}(i.endTime,i.startTime)),{allDayGuess:!i.startTime&&!i.endTime,duration:r,typeData:e}}return null},expand(i,t,e){let r=Fe(t,{start:i.startRecur,end:i.endRecur});return r?function Bf(i,t,e,r,s){let o=i?Zr(i):null,a=B(s.start),l=s.end,c=[];for(t&&(t.milliseconds<0?l=Y(l,1):t.milliseconds>=864e5&&(a=Y(a,-1)));a<l;){let u;(!o||o[a.getUTCDay()])&&(u=t?r.add(a,t):a,c.push(r.createMarker(e.toDate(u)))),a=Y(a,1)}return c}(i.daysOfWeek,i.startTime,i.dateEnv,e,r):[]}}],eventRefiners:{daysOfWeek:g,startTime:D,endTime:D,duration:D,startRecur:g,endRecur:g}}),Ce({name:"change-handler",optionChangeHandlers:{events(i,t){ao([i],t)},eventSources:ao}}),Ce({name:"misc",isLoadingFuncs:[i=>to(i.eventSources)],propSetHandlers:{dateProfile:function Hf(i,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Ss(i.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function Lf(i,t){let{emitter:e}=t;e.hasHandlers("eventsSet")&&e.trigger("eventsSet",Xn(i,t))}}})];class Uf{constructor(t,e){this.runTaskOption=t,this.drainedOption=e,this.queue=[],this.delayedRunner=new Rn(this.drain.bind(this))}request(t,e){this.queue.push(t),this.delayedRunner.request(e)}pause(t){this.delayedRunner.pause(t)}resume(t,e){this.delayedRunner.resume(t,e)}drain(){let{queue:t}=this;for(;t.length;){let r,e=[];for(;r=t.shift();)this.runTask(r),e.push(r);this.drained(e)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function Vf(i,t,e){let r;return r=/^(year|month)$/.test(i.currentRangeUnit)?i.currentRange:i.activeRange,e.formatRange(r.start,r.end,L(t.titleFormat||function Yf(i){let{currentRangeUnit:t}=i;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let e=Nt(i.currentRange.start,i.currentRange.end);return null!==e&&e>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(i)),{isEndExclusive:i.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class lo{constructor(){this.resetListeners=new Set}handleInput(t,e){const r=this.dateEnv;if(t!==r&&("function"==typeof e?this.nowFn=e:r||(this.nowAnchorDate=t.toDate(e?t.createMarker(e):t.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=t,r))for(const s of this.resetListeners.values())s()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(t){this.resetListeners.add(t)}removeResetListener(t){this.resetListeners.delete(t)}}class zf{constructor(t){this.computeCurrentViewData=R(this._computeCurrentViewData),this.organizeRawLocales=R(Qs),this.buildLocale=R(mi),this.buildPluginHooks=function rf(){let e,i=[],t=[];return(r,s)=>((!e||!ce(r,i)||!ce(s,t))&&(e=function nf(i,t){let e={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function s(o){for(let a of o){const l=a.name,c=e[l];void 0===c?(e[l]=a.id,s(a.deps),r=sf(r,a)):c!==a.id&&console.warn(`Duplicate plugin '${l}'`)}}return i&&s(i),s(t),r}(r,s)),i=r,t=s,e)}(),this.buildDateEnv=R(Xf),this.buildTheme=R(Wf),this.parseToolbars=R(xf),this.buildViewSpecs=R(df),this.buildDateProfileGenerator=jt(qf),this.buildViewApi=R(Qf),this.buildViewUiProps=jt(Kf),this.buildEventUiBySource=R(Zf,oe),this.buildEventUiBases=R(Jf),this.parseContextBusinessHours=jt(ep),this.buildTitle=R(Vf),this.nowManager=new lo,this.emitter=new _s,this.actionRunner=new Uf(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=t,this.actionRunner.pause(),this.nowManager=new lo;let e={},r=this.computeOptionsData(t.optionOverrides,e,t.calendarApi),s=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(s,r,t.optionOverrides,e);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=function mf(i,t,e){let r=i.initialDate;return null!=r?t.createMarker(r):e.getDateMarker()}(r.calendarOptions,r.dateEnv,this.nowManager),c=o.dateProfileGenerator.build(l);_e(c.activeRange,l)||(l=c.currentRange.start);for(let h of r.pluginHooks.contextInit)h(a);let u=function vf(i,t,e){let r=t?t.activeRange:null;return no({},function Rf(i,t){let e=fs(t),r=[].concat(i.eventSources||[]),s=[];i.initialEvents&&r.unshift(i.initialEvents),i.events&&r.unshift(i.events);for(let o of r){let a=us(o,t,e);a&&s.push(a)}return s}(i,e),r,e)}(r.calendarOptions,c,a),d={dynamicOptionOverrides:e,currentViewType:s,currentDate:l,dateProfile:c,businessHours:this.parseContextBusinessHours(a),eventSources:u,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},m=Object.assign(Object.assign({},a),d);for(let h of r.pluginHooks.reducers)Object.assign(d,h(null,null,m));vi(d,a)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(t,e){let{props:r}=this;void 0===e?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...e)),(void 0===e||e.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:e,state:r,emitter:s}=this,o=function gf(i,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},i),{[t.optionName]:t.rawOptionValue}):i}(r.dynamicOptionOverrides,t),a=this.computeOptionsData(e.optionOverrides,o,e.calendarApi),l=function pf(i,t){return"CHANGE_VIEW_TYPE"===t.type&&(i=t.viewType),i}(r.currentViewType,t),c=this.computeCurrentViewData(l,a,e.optionOverrides,o);e.calendarApi.currentDataManager=this,s.setThisContext(e.calendarApi),s.setOptions(c.options);let u={nowManager:this.nowManager,dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:m}=r;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(m=c.dateProfileGenerator.build(d)),d=function hf(i,t){return"CHANGE_DATE"===t.type?t.dateMarker:i}(d,t),m=function _f(i,t,e,r){let s;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||e);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(s=r.buildPrev(i,e),s.isValid)return s;break;case"NEXT":if(s=r.buildNext(i,e),s.isValid)return s}return i}(m,t,d,c.dateProfileGenerator),("PREV"===t.type||"NEXT"===t.type||!_e(m.currentRange,d))&&(d=m.currentRange.start);let h=function bf(i,t,e,r){let s=e?e.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return no(i,t.sources,s,r);case"REMOVE_EVENT_SOURCE":return function Cf(i,t){return Ue(i,e=>e.sourceId!==t)}(i,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return e?io(i,s,r):i;case"FETCH_EVENT_SOURCES":return _i(i,t.sourceIds?Zr(t.sourceIds):ro(i,r),s,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function kf(i,t,e,r){let s=i[t];return s&&e===s.latestFetchId?Object.assign(Object.assign({},i),{[t]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:r})}):i}(i,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return i}}(r.eventSources,t,m,u),p=function Ed(i,t,e,r,s){switch(t.type){case"RECEIVE_EVENTS":return function Sd(i,t,e,r,s,o){if(t&&e===t.latestFetchId){let a=gt(ps(s,t,o),t,o);return r&&(a=Ve(a,r,o)),Yn(gs(i,t.sourceId),a)}return i}(i,e[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,s);case"RESET_RAW_EVENTS":return function kd(i,t,e,r,s){const{defIdMap:o,instanceIdMap:a}=function Td(i){const{defs:t,instances:e}=i,r={},s={};for(let o in t){const a=t[o],{publicId:l}=a;l&&(r[l]=o)}for(let o in e){const l=t[e[o].defId],{publicId:c}=l;c&&(s[c]=o)}return{defIdMap:r,instanceIdMap:s}}(i);return Ve(gt(ps(e,t,s),t,s,!1,o,a),r,s)}(i,e[t.sourceId],t.rawEvents,r.activeRange,s);case"ADD_EVENTS":return function Rd(i,t,e,r){return e&&(t=Ve(t,e,r)),Yn(i,t)}(i,t.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Yn(i,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ve(i,r.activeRange,s):i;case"REMOVE_EVENTS":return function gd(i,t){let{defs:e,instances:r}=i,s={},o={};for(let a in e)t.defs[a]||(s[a]=e[a]);for(let a in r)!t.instances[a]&&s[r[a].defId]&&(o[a]=r[a]);return{defs:s,instances:o}}(i,t.eventStore);case"REMOVE_EVENT_SOURCE":return gs(i,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return zt(i,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return i}}(r.eventStore,t,h,m,u),v=to(h)&&!c.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:b,selectionConfig:y}=this.buildViewUiProps(u),S=this.buildEventUiBySource(h),T={dynamicOptionOverrides:o,currentViewType:l,currentDate:d,dateProfile:m,eventSources:h,eventStore:p,renderableEventStore:v,selectionConfig:y,eventUiBases:this.buildEventUiBases(v.defs,b,S),businessHours:this.parseContextBusinessHours(u),dateSelection:Af(r.dateSelection,t),eventSelection:Tf(r.eventSelection,t),eventDrag:wf(r.eventDrag,t),eventResize:Df(r.eventResize,t)},z=Object.assign(Object.assign({},u),T);for(let x of a.pluginHooks.reducers)Object.assign(T,x(r,t,z));let O=vi(r,u),$=vi(T,u);!O&&$?s.trigger("loading",!0):O&&!$&&s.trigger("loading",!1),this.state=T,e.onAction&&e.onAction(t)}updateData(){let{props:t,state:e}=this,r=this.data,s=this.computeOptionsData(t.optionOverrides,e.dynamicOptionOverrides,t.calendarApi),o=this.computeCurrentViewData(e.currentViewType,s,t.optionOverrides,e.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(e.dateProfile,o.options,s.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),o),e),l=s.pluginHooks.optionChangeHandlers,c=r&&r.calendarOptions,u=s.calendarOptions;if(c&&c!==u){c.timeZone!==u.timeZone&&(e.eventSources=a.eventSources=function yf(i,t,e){let r=t?t.activeRange:null;return _i(i,ro(i,e),r,!0,e)}(a.eventSources,e.dateProfile,a),e.eventStore=a.eventStore=ms(a.eventStore,r.dateEnv,a.dateEnv),e.renderableEventStore=a.renderableEventStore=ms(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let d in l)(-1!==this.optionsForHandling.indexOf(d)||c[d]!==u[d])&&l[d](u[d],a)}this.optionsForHandling=[],t.onData&&t.onData(a)}computeOptionsData(t,e,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&e===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:o,localeDefaults:a,availableLocaleData:l,extra:c}=this.processRawCalendarOptions(t,e);co(c);let u=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,o,l,s.defaultRangeSeparator),d=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),m=this.buildTheme(s,o),h=this.parseToolbars(s,this.stableOptionOverrides,m,d,r);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:o,dateEnv:u,viewSpecs:d,theme:m,toolbarConfig:h,localeDefaults:a,availableRawLocales:l.map}}processRawCalendarOptions(t,e){let{locales:r,locale:s}=Mn([pt,t,e]),o=this.organizeRawLocales(r),l=this.buildLocale(s||o.defaultCode,o.map).options,c=this.buildPluginHooks(t.plugins||[],$f),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr),qr),Qr),c.listenerRefiners),c.optionRefiners),d={},m=Mn([pt,l,t,e]),h={},p=this.currentCalendarOptionsInput,_=this.currentCalendarOptionsRefined,v=!1;for(let b in m)-1===this.optionsForRefining.indexOf(b)&&(m[b]===p[b]||Le[b]&&b in p&&Le[b](p[b],m[b]))?h[b]=_[b]:u[b]?(h[b]=u[b](m[b]),v=!0):d[b]=p[b];return v&&(this.currentCalendarOptionsInput=m,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=e),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:o,localeDefaults:l,extra:d}}_computeCurrentViewData(t,e,r,s){let o=e.viewSpecs[t];if(!o)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:l}=this.processRawViewOptions(o,e.pluginHooks,e.localeDefaults,r,s);return co(l),this.nowManager.handleInput(e.dateEnv,a.now),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:e.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,e.dateEnv)}}processRawViewOptions(t,e,r,s,o){let a=Mn([pt,t.optionDefaults,r,s,t.optionOverrides,o]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wr),qr),Qr),Bc),e.listenerRefiners),e.optionRefiners),c={},u=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,m=!1,h={};for(let p in a)a[p]===u[p]||Le[p]&&Le[p](a[p],u[p])?c[p]=d[p]:(a[p]===this.currentCalendarOptionsInput[p]||Le[p]&&Le[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(c[p]=this.currentCalendarOptionsRefined[p]):l[p]?c[p]=l[p](a[p]):h[p]=a[p],m=!0);return m&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Xf(i,t,e,r,s,o,a,l){let c=mi(t||a.defaultCode,a.map);return new qc({calendarSystem:"gregory",timeZone:i,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:c,weekNumberCalculation:e,firstDay:r,weekText:s,cmdFormatter:o.cmdFormatter,defaultSeparator:l})}function Wf(i,t){return new(t.themeClasses[i.themeSystem]||Ne)(i)}function qf(i){return new(i.dateProfileGeneratorClass||ss)(i)}function Qf(i,t,e){return new Mf(i,t,e)}function Zf(i){return Me(i,t=>t.ui)}function Jf(i,t,e){let r={"":t};for(let s in i){let o=i[s];o.sourceId&&e[o.sourceId]&&(r[s]=e[o.sourceId])}return r}function Kf(i){let{options:t}=i;return{eventUiSingleBase:Wt({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},i),selectionConfig:Wt({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},i)}}function vi(i,t){for(let e of t.pluginHooks.isLoadingFuncs)if(e(i))return!0;return!1}function ep(i){return function Id(i,t){return gt(function Md(i){let t;return t=!0===i?[{}]:Array.isArray(i)?i.filter(e=>e.daysOfWeek):"object"==typeof i&&i?[i]:[],t=t.map(e=>Object.assign(Object.assign({},xd),e)),t}(i),null,t)}(i.options.businessHours,i)}function co(i,t){for(let e in i)console.warn(`Unknown option '${e}'`+(t?` for view '${t}'`:""))}class tp extends F{render(){return f("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(t){let{props:e}=this,{theme:r}=this.context,s=[],o=!0;for(let a of t){let{buttonName:l,buttonClick:c,buttonText:u,buttonIcon:d,buttonHint:m}=a;if("title"===l)o=!1,s.push(f("h2",{className:"fc-toolbar-title",id:e.titleId},e.title));else{let h=l===e.activeButton,p=!e.isTodayEnabled&&"today"===l||!e.isPrevEnabled&&"prev"===l||!e.isNextEnabled&&"next"===l,_=[`fc-${l}-button`,r.getClass("button")];h&&_.push(r.getClass("buttonActive")),s.push(f("button",{type:"button",title:"function"==typeof m?m(e.navUnit):m,disabled:p,"aria-pressed":h,className:_.join(" "),onClick:c},u||(d?f("span",{className:d,role:"img"}):"")))}}return s.length>1?f("div",{className:o&&r.getClass("buttonGroup")||""},...s):s[0]}}class uo extends F{render(){let s,o,{model:t,extraClassName:e}=this.props,r=!1,a=t.sectionWidgets,l=a.center;return a.left?(r=!0,s=a.left):s=a.start,a.right?(r=!0,o=a.right):o=a.end,f("div",{className:[e||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",l||[]),this.renderSection("end",o||[]))}renderSection(t,e){let{props:r}=this;return f(tp,{key:t,widgetGroups:e,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class np extends F{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,de(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:e}=this,{aspectRatio:r}=t,o="",a="";return r?null!==e.availableWidth?o=e.availableWidth/r:a=1/r*100+"%":o=t.height||"",f("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:o,paddingBottom:a}},t.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class ip extends Ts{constructor(t){super(t),this.handleSegClick=(e,r)=>{let{component:s}=this,{context:o}=s,a=qn(r);if(a&&s.isValidSegDownEl(e.target)){let l=me(e.target,".fc-event-forced-url"),c=l?l.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new Z(s.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:o.viewApi}),c&&!e.defaultPrevented&&(window.location.href=c)}},this.destroy=Fr(t.el,"click",".fc-event",this.handleSegClick)}}class rp extends Ts{constructor(t){super(t),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,r)=>{qn(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",e,r))},this.handleSegLeave=(e,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,r))},this.removeHoverListeners=function Zl(i,t,e,r){let s;return Fr(i,"mouseover",t,(o,a)=>{if(a!==s){s=a,e(o,a);let l=c=>{s=null,r(c,a),a.removeEventListener("mouseleave",l)};a.addEventListener("mouseleave",l)}})}(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,e,r){let{component:s}=this,{context:o}=s,a=qn(r);(!e||s.isValidSegDownEl(e.target))&&o.emitter.trigger(t,{el:r,event:new Z(o,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:o.viewApi})}}class sp extends Ut{constructor(){super(...arguments),this.buildViewContext=R(Jc),this.buildViewPropTransformers=R(ap),this.buildToolbarProps=R(op),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:Te()},this.registerInteractiveComponent=(t,e)=>{let r=function eu(i,t){return{component:i,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(t,e),a=[ip,rp].concat(this.props.pluginHooks.componentInteractions).map(l=>new l(r));this.interactionsStore[t.uid]=a,ws[t.uid]=r},this.unregisterInteractiveComponent=t=>{let e=this.interactionsStore[t.uid];if(e){for(let r of e)r.destroy();delete this.interactionsStore[t.uid]}delete ws[t.uid]},this.resizeRunner=new Rn(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:e}=this.props;e.handleWindowResize&&t.target===window&&this.resizeRunner.request(e.windowResizeDelay)}}render(){let a,{props:t}=this,{toolbarConfig:e,options:r}=t,s=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?s=!0:null!=r.contentHeight?o=r.contentHeight:a=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=e.header&&e.header.hasTitle?this.state.viewLabelId:void 0;return f(ge.Provider,{value:l},f(Je,{unit:"day"},u=>{let d=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,u,t.viewTitle);return f(j,null,e.header&&f(uo,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:e.header,titleId:c},d)),f(np,{liquid:s,height:o,aspectRatio:a,labeledById:c},this.renderView(t),this.buildAppendContent()),e.footer&&f(uo,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:e.footer,titleId:""},d)))}))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:e}=t.pluginHooks;for(let r in e)e[r](t[r],t)}componentDidUpdate(t){let{props:e}=this,{propSetHandlers:r}=e.pluginHooks;for(let s in r)e[s]!==t[s]&&r[s](e[s],e)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this;return f(j,{},...t.pluginHooks.viewContainerAppends.map(r=>r(t)))}renderView(t){let{pluginHooks:e}=t,{viewSpec:r}=t,s={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=this.buildViewPropTransformers(e.viewPropsTransformers);for(let l of o)Object.assign(s,l.transform(s,t));return f(r.component,Object.assign({},s))}}function op(i,t,e,r,s,o){let a=e.build(s,void 0,!1),l=e.buildPrev(t,r,!1),c=e.buildNext(t,r,!1);return{title:o,activeButton:i.type,navUnit:i.singleUnit,isTodayEnabled:a.isValid&&!_e(t.currentRange,s),isPrevEnabled:l.isValid,isNextEnabled:c.isValid}}function ap(i){return i.map(t=>new t)}class fo extends nu{constructor(t,e={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;$t(()=>{Re(f(Kd,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(s,o,a,l)=>(this.setClassNames(s),this.setHeight(o),f(ts.Provider,{value:this.customContentRenderId},f(sp,Object.assign({isHeightAuto:a,forPrint:l},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Re(null,this.el),this.setClassNames([]),this.setHeight(""))},function $l(i){i.isConnected&&i.getRootNode&&Ar(i.getRootNode())}(t),this.el=t,this.renderRunner=new Rn(this.handleRenderRequest),new zf({optionOverrides:e,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){$t(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,e){this.currentDataManager.resetOptions(t,e)}setClassNames(t){if(!ce(t,this.currentClassNames)){let{classList:e}=this.el;
vendor: 2,429 bytes, line 1
1for(let r of this.currentClassNames)e.remove(r);for(let r of t)e.add(r);this.currentClassNames=t}}setHeight(t){Ir(this.el,"height",t)}}class lp extends ae{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(t,e){let{props:r,context:s}=this,o=[],a=en(s.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:e}}),f(mt,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},f(ci,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(t,e,r,s){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:l}=this,c=!a.forPrint&&en(l.options),u=!a.forPrint&&Ls(l.options),d=[];return t&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:e}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:li}]}),f(mt,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},f(o,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:s}]}],sections:d}))}}function nn(i,t){let e=[];for(let r=0;r<t;r+=1)e[r]=[];for(let r of i)e[r.row].push(r);return e}function rn(i,t){let e=[];for(let r=0;r<t;r+=1)e[r]=[];for(let r of i)e[r.firstCol].push(r);return e}function ho(i,t){let e=[];if(i){for(let r=0;r<t;r+=1)e[r]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let r of i.segs)e[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)e[r]=null;return e}const mo=L({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function go(i){let{display:t}=i.eventRange.ui;return"list-item"===t||"auto"===t&&!i.eventRange.def.allDay&&i.firstCol===i.lastCol&&i.isStart&&i.isEnd}class _o extends F{render(){let{props:t}=this;return f(di,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:mo,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class vo extends F{render(){let{props:t,context:e}=this,{options:r}=e,{seg:s}=t,a=_t(s,r.eventTimeFormat||mo,e,!0,t.defaultDisplayEventEnd);return f(tn,Object.assign({}
vendor: 2,174 bytes, line 1
1,t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Zn(t.seg,e),defaultGenerator:cp,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function cp(i){return f(j,null,f("div",{className:"fc-daygrid-event-dot",style:{borderColor:i.borderColor||i.backgroundColor}}),i.timeText&&f("div",{className:"fc-event-time"},i.timeText),f("div",{className:"fc-event-title"},i.event.title||f(j,null,"\xa0")))}class dp extends F{constructor(){super(...arguments),this.compileSegs=R(up)}render(){let{props:t}=this,{allSegs:e,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return f(Ys,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:e,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let s=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return f(j,null,e.map(o=>{let a=o.eventRange.instance.instanceId;return f("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:s[a]?"hidden":""}},go(o)?f(vo,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},be(o,t.todayRange))):f(_o,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},be(o,t.todayRange))))}))}})}}function up(i){let t=[],e=[];for(let r of i)t.push(r.seg),r.isVisible||e.push(r.seg);return{allSegs:t,invisibleSegs:e}}const fp=L({week:"narrow"});class pp extends ae{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:Te()},this.handleRootEl=t=>{de(this.rootElRef,t),de(this.props.elRef,t)}}render(){let{context:t,props:e,state:r,rootElRef:s}=this,{options:o,dateEnv:a}=t,{date:l,dateProfile:c}=e;const u=e.showDayNumber&&function mp(i,t,e){const{start:r,end:s}=t,o=we(s,-1),a=e.getYear(r),l=e.getMonth(r),c=e.getYear(o),u=e.getMonth(o);return!(a===c&&l===u)&&(i.valueOf()===r.valueOf()||1===e.getDay(i)&&i.valueOf()<s.valueOf())}(l,c.currentRange,a);return f(fi,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...e.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},e.extraDataAttrs),e.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hp,date:l,dateProfile:c,todayRange:e.todayRange,showDayNumber:e.showDayNumber,isMonthStart:u,extraRenderProps:e.extraRenderProps},(d,m)=>f("div",{ref:e.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:e.minHeight}},e.showWeekNumber&&f(Vs,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Ke(t,l,"week"),date:l,defaultFormat:fp}),!m.isDisabled&&(e.showDayNumber||pi(o)||e.forceDayTop)?f("div",{className:"fc-daygrid-day-top"},f(d,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Ke(t,l)),{id:r.dayNumberId})})):e.showDayNumber?f("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},f("a",{className:"fc-daygrid-day-number"},"\xa0")):void 0,f("div",{className:"fc-daygrid-day-events",ref:e.fgContentElRef},e.fgContent,f("div",{className:"fc-daygrid-day-bottom",style:{marginTop:e.moreMarginTop}},f(dp,{allDayDate:l,singlePlacements:e.singlePlacements,moreCnt:e.moreCnt,alignmentElRef:s,alignGridTop:!e.showDayNumber,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange}))),f("div",{className:"fc-daygrid-day-bg"},e.bgContent)))}}function hp(i){return i.dayNumberText||f(j,null,"\xa0")}function bo(i){return i.eventRange.instance.instanceId+":"+i.firstCol}function yo(i){return bo(i)+":"+i.lastCol}function tt(i,t,e,r){if(i.firstCol===t&&i.lastCol===e-1)return i;let s=i.eventRange,o=s.range,a=Fe(o,{start:r[t].date,end:Y(r[e-1].date,1)});return Object.assign(Object.assign({},i),{firstCol:t,lastCol:e-1,eventRange:{def:s.def,ui:Object.assign(Object.assign({},s.ui),{durationEditable:!1}),instance:s.instance,range:a},isStart:i.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:i.isEnd&&a.end.valueOf()===o.end.valueOf()})}class bp extends xs{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const e=super.addSegs(t),{entriesByLevel:r}=this,s=o=>!this.forceHidden[Ye(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(s);return e}handleInvalidInsertion(t,e,r){const{entriesByLevel:s,forceHidden:o}=this,{touchingEntry:a,touchingLevel:l,touchingLateral:c}=t;if(this.hiddenConsumes&&a){const u=Ye(a);if(!o[u])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:ri(a.span,e.span)});o[Ye(d)]=!0,s[l][c]=d,r.push(d),this.splitEntry(a,e,r)}else o[u]=!0,r.push(a)}super.handleInvalidInsertion(t,e,r)}}class Co extends ae{constructor(){super(...arguments),this.cellElRefs=new ye,this.frameElRefs=new ye,this.fgElRefs=new ye,this.segHarnessRefs=new ye,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:e,context:r}=this,{options:s}=r,o=t.cells.length,a=rn(t.businessHourSegs,o),l=rn(t.bgEventSegs,o),c=rn(this.getHighlightSegs(),o),u=rn(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:m,moreCnts:h,moreMarginTops:p}=function gp(i,t,e,r,s,o,a){let l=new bp(y=>s[i[y.index].eventRange.instance.instanceId+":"+y.span.start+":"+(y.span.end-1)]||1);l.allowReslicing=!0,l.strictOrder=r,!0===t||!0===e?(l.maxCoord=o,l.hiddenConsumes=!0):"number"==typeof t?l.maxStackCnt=t:"number"==typeof e&&(l.maxStackCnt=e,l.hiddenConsumes=!0);let c=[],u=[];for(let y=0;y<i.length;y+=1){let S=i[y],w=yo(S);null!=s[w]?c.push({index:y,span:{start:S.firstCol,end:S.lastCol+1}}):u.push(S)}let d=l.addSegs(c),m=l.toRects(),{singleColPlacements:h,multiColPlacements:p,leftoverMargins:_}=function _p(i,t,e){let r=function vp(i,t){let e=[];for(let r=0;r<t;r+=1)e.push([]);for(let r of i)for(let s=r.span.start;s<r.span.end;s+=1)e[s].push(r);return e}(i,e.length),s=[],o=[],a=[];for(let l=0;l<e.length;l+=1){let c=r[l],u=[],d=0,m=0;for(let p of c)u.push({seg:tt(t[p.index],l,l+1,e),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness;let h=[];d=0,m=0;for(let p of c){let _=t[p.index],b=p.span.start===l;m+=p.levelCoord-d,d=p.levelCoord+p.thickness,p.span.end-p.span.start>1?(m+=p.thickness,b&&h.push({seg:tt(_,p.span.start,p.span.end,e),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):b&&(h.push({seg:tt(_,p.span.start,p.span.end,e),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:m}),m=0)}s.push(u),o.push(h),a.push(m)}return{singleColPlacements:s,multiColPlacements:o,leftoverMargins:a}}(m,i,a),v=[],b=[];for(let y of u){p[y.firstCol].push({seg:y,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=y.firstCol;S<=y.lastCol;S+=1)h[S].push({seg:tt(y,S,S+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let y=0;y<a.length;y+=1)v.push(0);for(let y of d){let S=i[y.index],w=y.span;p[w.start].push({seg:tt(S,w.start,w.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let T=w.start;T<w.end;T+=1)v[T]+=1,h[T].push({seg:tt(S,T,T+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let y=0;y<a.length;y+=1)b.push(_[y]);return{singleColPlacements:h,multiColPlacements:p,moreCnts:v,moreMarginTops:b}}(Qn(t.fgEventSegs,s.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,s.eventOrderStrict,e.segHeights,e.maxContentHeight,t.cells),_=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return f("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,b)=>{let y=this.renderFgSegs(b,t.forPrint?d[b]:m[b],t.todayRange,_),S=this.renderFgSegs(b,function yp(i,t){if(!i.length)return[];let e=function Cp(i){let t={};for(let e of i)for(let r of e)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}(t);return i.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:e[r.eventRange.instance.instanceId],marginTop:0}))}(u[b],m),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return f(pp,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&0===b,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:h[b],moreMarginTop:p[b],singlePlacements:d[b],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:f(j,null,f(j,null,y),f(j,null,S)),bgContent:f(j,null,this.renderFillSegs(c[b],"highlight"),this.renderFillSegs(a[b],"non-business"),this.renderFillSegs(l[b],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,e){this.updateSizing(!oe(t,this.props))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,e,r,s,o,a,l){let{context:c}=this,{eventSelection:u}=this.props,{framePositions:d}=this.state,m=1===this.props.cells.length,h=o||a||l,p=[];if(d)for(let _ of e){let{seg:v}=_,{instanceId:b}=v.eventRange.instance,y=_.isVisible&&!s[b],S=_.isAbsolute,w="",T="";S&&(c.isRtl?(T=0,w=d.lefts[v.lastCol]-d.lefts[v.firstCol]):(w=0,T=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(f("div",{className:"fc-daygri
1d-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:bo(v),ref:h?null:this.segHarnessRefs.createRef(yo(v)),style:{visibility:y?"":"hidden",marginTop:S?"":_.marginTop,top:S?_.absoluteTop:"",left:w,right:T}},go(v)?f(vo,Object.assign({seg:v,isDragging:o,isSelected:b===u,defaultDisplayEventEnd:m},be(v,r))):f(_o,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:l,isSelected:b===u,defaultDisplayEventEnd:m},be(v,r)))))}return p}renderFillSegs(t,e){let{isRtl:r}=this.context,{todayRange:s}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let l of t){let c=r?{right:0,left:o.lefts[l.lastCol]-o.lefts[l.firstCol]}:{left:0,right:o.rights[l.firstCol]-o.rights[l.lastCol]};a.push(f("div",{key:Es(l.eventRange),className:"fc-daygrid-bg-harness",style:c},"bg-event"===e?f($s,Object.assign({seg:l},be(l,s))):Us(e)))}return f(j,{},...a)}updateSizing(t){let{props:e,state:r,frameElRefs:s}=this;if(!e.forPrint&&null!==e.clientWidth){if(t){let c=e.cells.map(u=>s.currentMap[u.key]);if(c.length){let u=this.rootElRef.current,d=new et(u,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new et(u,c,!0,!1)})}}const o=this.state.segHeights,a=this.querySegHeights(),l=!0===e.dayMaxEvents||!0===e.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:l?this.computeMaxContentHeight():null})}}querySegHeights(){let t=this.segHarnessRefs.currentMap,e={};for(let r in t){let s=Math.round(t[r].getBoundingClientRect().height);e[r]=Math.max(e[r]||0,s)}return e}computeMaxContentHeight(){let t=this.props.cells[0].key,r=this.fgElRefs.currentMap[t];return this.cellElRefs.currentMap[t].getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(e=>t[e.key])}}Co.addStateEquality({segHeights:oe});class Ep extends ae{constructor(){super(...arguments),this.splitBusinessHourSegs=R(nn),this.splitBgEventSegs=R(Sp),this.splitFgEventSegs=R(nn),this.splitDateSelectionSegs=R(nn),this.splitEventDrag=R(ho),this.splitEventResize=R(ho),this.rowRefs=new ye}render(){let{props:t,context:e}=this,r=t.cells.length,s=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),l=this.splitDateSelectionSegs(t.dateSelectionSegs,r),c=this.splitEventDrag(t.eventDrag,r),u=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/e.options.aspectRatio/6:null;return f(Je,{unit:"day"},(m,h)=>f(j,null,t.cells.map((p,_)=>f(Co,{ref:this.rowRefs.createRef(_),key:p.length?p[0].date.toISOString():_,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:s[_],eventSelection:t.eventSelection,bgEventSegs:o[_],fgEventSegs:a[_],dateSelectionSegs:l[_],eventDrag:c[_],eventResize:u[_],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const t=this.rowRefs.currentMap[0].getCellEls()[0],e=t?t.closest(".fc-daygrid-body"):null;e&&(this.rootEl=e,this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new et(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new et(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,e){let{colPositions:r,rowPositions:s}=this,o=r.leftToIndex(t),a=s.topToIndex(e);if(null!=a&&null!=o){let l=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:s.tops[a],bottom:s.bottoms[a]},layer:0}}return null}getCellEl(t,e){return this.rowRefs.currentMap[t].getCellEls()[e]}getCellRange(t,e){let r=this.props.cells[t][e].date;return{start:r,end:Y(r,1)}}}function Sp(i,t){return nn(i.filter(kp),t)}function kp(i){return i.eventRange.def.allDay}class Rp extends ae{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:e,dayMaxEvents:r,expandRows:s}=t,o=!0===r||!0===e;return o&&!s&&(o=!1,e=null,r=null),f("div",{ref:this.elRef,className:["fc-daygri
1d-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"].join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},f("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:s?t.clientHeight:""}},t.colGroupNode,f("tbody",{role:"presentation"},f(Ep,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:e,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=function Ap(i,t){let e;return t.currentRangeUnit.match(/year|month/)&&(e=i.querySelector(`[data-date="${function Cc(i){return i.toISOString().match(/^\d{4}-\d{2}/)[0]}(t.currentDate)}-01"]`)),e||(e=i.querySelector(`[data-date="${ft(t.currentDate)}"]`)),e}(this.elRef.current,this.props.dateProfile);if(t){const e=t.closest(".fc-daygrid-body"),r=e.closest(".fc-scroller"),s=t.getBoundingClientRect().top-e.getBoundingClientRect().top;r.scrollTop=s?s+1:0}this.needsScrollReset=!1}}}class Tp extends Os{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,e){return e.sliceRange(t)}}class Eo extends ae{constructor(){super(...arguments),this.slicer=new Tp,this.tableRef={current:null}}render(){let{props:t,context:e}=this;return f(Rp,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,e,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}function Dp(i,t){let e=new Ns(i.renderRange,t);return new js(e,/year|month|week/.test(i.currentRangeUnit))}It
vendor: 3,529 bytes, line 1
1(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var 
vendor: 25,288 bytes, line 1
1Fp=Ce({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class wp extends lp{constructor(){super(...arguments),this.buildDayTableModel=R(Dp),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:t,dateProfileGenerator:e}=this.context,{props:r}=this,s=this.buildDayTableModel(r.dateProfile,e),o=t.dayHeaders&&f(Fs,{ref:this.headerRef,dateProfile:r.dateProfile,dates:s.headerDates,datesRepDistinctDays:1===s.rowCnt}),a=l=>f(Eo,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:s,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:l.tableColGroupNode,tableMinWidth:l.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:l.clientWidth,clientHeight:l.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,a,s.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,a)}},dateProfileGeneratorClass:class xp extends ss{buildRenderRange(t,e,r){let s=super.buildRenderRange(t,e,r),{props:o}=this;return function Ip(i){let o,{dateEnv:t,currentRange:e}=i,{start:r,end:s}=e;if(i.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(s),o.valueOf()!==s.valueOf()&&(s=Lr(o,1))),i.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(Y(e.end,-1))),l=Math.ceil(function dc(i,t){return De(i,t)/7}(a,s));s=Lr(s,6-l)}return{start:r,end:s}}({currentRange:s,snapToWeek:/^(year|month)$/.test(e),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class Np extends ru{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?function Bd(i){return"background"===i.ui.display||"inverse-background"===i.ui.display}(t)?["timed","allDay"]:["allDay"]:["timed"]}}const jp=L({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function So(i){let t=["fc-timegrid-slot","fc-timegrid-slot-label",i.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return f(ge.Consumer,null,e=>{if(!i.isLabeled)return f("td",{className:t.join(" "),"data-time":i.isoTimeStr});let{dateEnv:r,options:s,viewApi:o}=e,a=null==s.slotLabelFormat?jp:Array.isArray(s.slotLabelFormat)?L(s.slotLabelFormat[0]):L(s.slotLabelFormat),l={level:0,time:i.time,date:r.toDate(i.date),view:o,text:r.format(i.date,a)};return f(ee,{elTag:"td",elClasses:t,elAttrs:{"data-time":i.isoTimeStr},renderProps:l,generatorName:"slotLabelContent",customGenerator:s.slotLabelContent,defaultGenerator:Op,classNameGenerator:s.slotLabelClassNames,didMount:s.slotLabelDidMount,willUnmount:s.slotLabelWillUnmount},c=>f("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},f(c,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Op(i){return i.text}class Gp extends F{render(){return this.props.slatMetas.map(t=>f("tr",{key:t.key},f(So,Object.assign({},t))))}}const Bp=L({week:"short"});class Hp extends ae{constructor(){super(...arguments),this.allDaySplitter=new Np,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let e=this.scrollerElRef.current;e&&(e.scrollTop=t)},this.renderHeadAxis=(t,e="")=>{let{options:r}=this.context,{dateProfile:s}=this.props,o=s.renderRange,l=1===De(o.start,o.end)?Ke(this.context,o.start,"week"):{};return r.weekNumbers&&"day"===t?f(Vs,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:Bp},c=>f("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:e}},f(c,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:l}))):f("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},f("div",{className:"fc-timegrid-axis-frame",style:{height:e}}))},this.renderTableRowAxis=t=>{let{options:e,viewApi:r}=this.context;return f(ee,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:{text:e.allDayText,view:r},generatorName:"allDayContent",customGenerator:e.allDayContent,defaultGenerator:Lp,classNameGenerator:e.allDayClassNames,didMount:e.allDayDidMount,willUnmount:e.allDayWillUnmount},o=>f("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==t?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},f(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,e,r){let{context:s,props:o}=this,a=[],l=en(s.options);return t&&a.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),e&&(a.push({type:"body",key:"all-day",chunk:{content:e}}),a.push({type:"body",key:"all-day-divider",outerContent:f("tr",{role:"presentation",className:"fc-scrollgrid-section"},f("td",{className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!s.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),f(mt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:s.viewSpec},f(ci,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(t,e,r,s,o,a,l){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");let{context:u,props:d}=this,m=!d.forPrint&&en(u.options),h=!d.forPrint&&Ls(u.options),p=[];t&&p.push({type:"header",key:"header",isSticky:m,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>f("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),e&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>f("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:e}]}),p.push({key:"all-day-divider",type:"body",outerContent:f("tr",{role:"presentation",className:"fc-scrollgrid-section"},f("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let _=u.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:v=>f("div",{className:"fc-timegrid-axis-chunk"},f("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,f("tbody",null,f(Gp,{slatMetas:a}))),f("div",{className:"fc-timegrid-now-indicator-container"},f(Je,{unit:_?"minute":"day"},b=>{let y=_&&l&&l.safeComputeTop(b);return"number"==typeof y?f(ui,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:y},isAxis:!0,date:b}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:li},{key:"cols",content:li}]}),f(mt,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},f(c,{liquid:!d.isHeightAuto&&!d.forPrint,forPrint:d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:s,minWidth:o}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:e}=this.context.options;return(!0===t||!0===e)&&(t=void 0,e=5),{dayMaxEvents:t,dayMaxEventRows:e}}}function Lp(i){return i.text}class $p{constructor(t,e,r){this.positions=t,this.dateProfile=e,this.slotDuration=r}safeComputeTop(t){let{dateProfile:e}=this;if(_e(e.currentRange,t)){let r=B(t),s=t.valueOf()-r.valueOf();if(s>=se(e.slotMinTime)&&s<se(e.slotMaxTime))return this.computeTimeTop(D(s))}return null}computeDateTop(t,e){return e||(e=B(t)),this.computeTimeTop(D(t.valueOf()-e.valueOf()))}computeTimeTop(t){let a,l,{positions:e,dateProfile:r}=this,s=e.els.length,o=(t.milliseconds-se(r.slotMinTime))/se(this.slotDuration);return o=Math.max(0,o),o=Math.min(s,o),a=Math.floor(o),a=Math.min(a,s-1),l=o-a,e.tops[a]+e.getHeight(a)*l}}class Up extends F{render(){let{props:t,context:e}=this,{options:r}=e,{slatElRefs:s}=t;return f("tbody",null,t.slatMetas.map((o,a)=>{let l={time:o.time,date:e.dateEnv.toDate(o.date),view:e.viewApi};return f("tr",{key:o.key,ref:s.createRef(o.key)},t.axis&&f(So,Object.assign({},o)),f(ee,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:l,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class Vp extends F{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new ye}render(){let{props:t,context:e}=this;return f("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},f("table",{"aria-hidden":!0,className:e.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,f(Up,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:e}=this;e.onCoords&&null!==e.clientWidth&&this.rootElRef.current.offsetHeight&&e.onCoords(new $p(new et(this.rootElRef.current,function Yp(i,t){return t.map(e=>i[e.key])}(this.slatElRefs.currentMap,e.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function vt(i,t){let r,e=[];for(r=0;r<t;r+=1)e.push([]);if(i)for(r=0;r<i.length;r+=1)e[i[r].col].push(i[r]);return e}function ko(i,t){let e=[];if(i){for(let r=0;r<t;r+=1)e[r]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let r of i.segs)e[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)e[r]=null;return e}class zp extends F{render(){let{props:t}=this;return f(Ys,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>wo(t.hiddenSegs,t),defaultGenerator:Xp,forceTimed:!0},e=>f(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Xp(i){return i.shortText}function Ro(i,t){if(!i)return[[],0];let{level:e,lateralStart:r,lateralEnd:s}=i,o=r,a=[];for(;o<s;)a.push(t(e,o)),o+=1;return a.sort(Qp),[a.map(Zp),a[0][1]]}function Qp(i,t){return t[1]-i[1]}function Zp(i){return i[0]}function eh(i){let t=[];const e=bi((s,o,a)=>Ye(s),(s,o,a)=>{let l=Object.assign(Object.assign({},s),{levelCoord:o,stackDepth:a,stackForward:0});return t.push(l),l.stackForward=r(s.nextLevelNodes,o+s.thickness,a+1)+1});function r(s,o,a){let l=0;for(let c of s)l=Math.max(e(c,o,a),l);return l}return r(i,0,0),t}function bi(i,t){const e={};return(...r)=>{let s=i(...r);return s in e?e[s]:e[s]=t(...r)}}function Ao(i,t,e=null,r=0){let s=[];if(e)for(let o=0;o<i.length;o+=1){let a=i[o],l=e.computeDateTop(a.start,t),c=Math.max(l+(r||0),e.computeDateTop(a.end,t));s.push({start:Math.round(l),end:Math.round(c)})}return s}const nh=L({hour:"numeric",minute:"2-digit",meridiem:!1});class To extends F{render(){return f(di,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:nh}))}}class ih extends F{constructor(){super(...arguments),this.sortEventSegs=R(Qn)}render(){let{props:t,context:e}=this,{options:r}=e,s=r.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||s&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},l=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return f(fi,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},c=>f("div",{className:"fc-timegrid-col-frame"},f("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),f("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,a,!1,!1,!1)),f("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},!!t.eventDrag,!!t.eventResize,!!s,"mirror")),f("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),pi(r)&&f(c,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,e,r,s,o,a){let{props:l}=this;return l.forPrint?wo(t,l):this.renderPositionedFgSegs(t,e,r,s,o,a)}renderPositionedFgSegs(t,e,r,s,o,a){let{eventMaxStack:l,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:d}=this.context.options,{date:m,slatCoords:h,eventSelection:p,todayRange:_,nowDate:v}=this.props,b=r||s||o,y=Ao(t,m,h,d),{segPlacements:S,hiddenGroups:w}=function th(i,t,e,r){let s=[],o=[];for(let u=0;u<i.length;u+=1){let d=t[u];d?s.push({index:u,thickness:1,span:d}):o.push(i[u])}let{segRects:a,hiddenGroups:l}=function Wp(i,t,e){let r=new xs;null!=t&&(r.strictOrder=t),null!=e&&(r.maxStackCnt=e);let o=function _u(i){let t=[];for(let e of i){let r=[],s={span:e.span,entries:[e]};for(let o of t)ri(o.span,s.span)?s={entries:o.entries.concat(s.entries),span:vu(o.span,s.span)}:r.push(o);r.push(s),t=r}return t}(r.addSegs(i)),a=function qp(i){const{entriesByLevel:t}=i,e=bi((r,s)=>r+":"+s,(r,s)=>{let o=function Jp(i,t,e){let{levelCoords:r,entriesByLevel:s}=i,o=s[t][e],a=r[t]+o.thickness,l=r.length,c=t;for(;c<l&&r[c]<a;c+=1);for(;c<l;c+=1){let d,u=s[c],m=oi(u,o.span.start,ii),h=m[0]+m[1],p=h;for(;(d=u[p])&&d.span.start<o.span.end;)p+=1;if(h<p)return{level:c,lateralStart:h,lateralEnd:p}}return null}(i,r,s),a=Ro(o,e),l=t[r][s];return[Object.assign(Object.assign({},l),{nextLevelNodes:a[0]}),l.thickness+a[1]]});return Ro(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,e)[0]}(r);return a=function Kp(i,t){const e=bi((r,s,o)=>Ye(r),(r,s,o)=>{let d,{nextLevelNodes:a,thickness:l}=r,c=l+o,u=l/c,m=[];if(a.length)for(let p of a)if(void 0===d){let _=e(p,s,c);d=_[0],m.push(_[1])}else{let _=e(p,d,0);m.push(_[1])}else d=t;let h=(d-s)*u;return[d-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:m})]});return i.map(r=>e(r,0,0)[1])}(a,1),{segRects:eh(a),hiddenGroups:o}}(s,e,r),c=[];for(let u of a)c.push({seg:i[u.index],rect:u});for(let u of o)c.push({seg:u,rect:null});return{segPlacements:c,hiddenGroups:l}}(t,y,u,l);return f(j,null,this.renderHiddenGroups(w,t),S.map(T=>{let{seg:z,rect:O}=T,$=z.eventRange.instance.instanceId,x=b||!(e[$]||!O),je=yi(O&&O.span),bt=!b&&O?this.computeSegHStyle(O):{left:0,right:0},mb=!!O&&O.span.end-O.span.start<c;return f("div",{className:"fc-timegrid-event-harness"+(O&&O.stackForward>0?" fc-timegrid-event-harness-inset":""),key:a||$,style:Object.assign(Object.assign({visibility:x?"":"hidden"},je),bt)},f(To,Object.assign({seg:z,isDragging:r,isResizing:s,isDateSelecting:o,isSelected:$===p,isShort:mb},be(z,_,v))))}))}renderHiddenGroups(t,e){let{extraDateSpan:r,dateProfile:s,todayRange:o,nowDate:a,eventSelection:l,eventDrag:c,eventResize:u}=this.props;return f(j,null,t.map(d=>{let m=yi(d.span),h=function rh(i,t){return i.map(e=>t[e.index])}(d.entries,e);return f(zp,{key:Yr(Xs(h)),hiddenSegs:h,top:m.top,bottom:m.bottom,extraDateSpan:r,dateProfile:s,todayRange:o,nowDate:a,eventSelection:l,eventDrag:c,eventResize:u})}))}renderFillSegs(t,e){let{props:r,context:s}=this,a=Ao(t,r.date,r.slatCoords,s.options.eventMinHeight).map((l,c)=>{let u=t[c];return f("div",{key:Es(u.eventRange),className:"fc-timegrid-bg-harness",style:yi(l)},"bg-event"===e?f($s,Object.assign({seg:u},be(u,r.todayRange,r.nowDate))):Us(e))});return f(j,null,a)}renderNowIndicator(t){let{slatCoords:e,date:r}=this.props;return e?t.map((s,o)=>f(ui,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:e.computeDateTop(s.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let l,c,{isRtl:e,options:r}=this.context,s=r.slotEventOverlap,o=t.levelCoord,a=t.levelCoord+t.thickness;s&&(a=Math.min(1,o+2*(a-o))),e?(l=1-a,c=o):(l=o,c=1-a);let u={zIndex:t.stackDepth+1,left:100*l+"%",right:100*c+"%"};return s&&!t.stackForward&&(u[e?"marginLeft":"marginRight"]=20),u}}function wo(i,{todayRange:t,nowDate:e,eventSelection:r,eventDrag:s,eventResize:o}){let a=(s?s.affectedInstances:null)||(o?o.affectedInstances:null)||{};return f(j,null,i.map(l=>{let c=l.eventRange.instance.instanceId;return f("div",{key:c,style:{visibility:a[c]?"hidden":""}},f(To,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===r,isShort:!1},be(l,t,e))))}))}function yi(i){return i?{top:i.start,bottom:-i.end}:{top:"",bottom:""}}class sh extends F{constructor(){super(...arguments),this.splitFgEventSegs=R(vt),this.splitBgEventSegs=R(vt),this.splitBusinessHourSegs=R(vt),this.splitNowIndicatorSegs=R(vt),this.splitDateSelectionSegs=R(vt),this.splitEventDrag=R(ko),this.splitEventResize=R(ko),this.rootElRef={current:null},this.cellElRefs=new ye}render(){let{props:t,context:e}=this,r=e.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),s=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,s),a=this.splitBgEventSegs(t.bgEventSegs,s),l=this.splitBusinessHourSegs(t.businessHourSegs,s),c=this.splitNowIndicatorSegs(t.nowIndicatorSegs,s),u=this.splitDateSelectionSegs(t.dateSelectionSegs,s),d=this.splitEventDrag(t.eventDrag,s),m=this.splitEventResize(t.eventResize,s);return f("div",{className:"fc-timegrid-cols",ref:this.rootElRef},f("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,f("tbody",{role:"presentation"},f("tr",{role:"row"},t.axis&&f("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},f("div",{className:"fc-timegrid-col-frame"},f("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof r&&f(ui,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((h,p)=>f(ih,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:t.dateProfile,date:h.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:o[p],bgEventSegs:a[p],businessHourSegs:l[p],nowIndicatorSegs:c[p],dateSelectionSegs:u[p],eventDrag:d[p],eventResize:m[p],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new et(this.rootElRef.current,function oh(i,t){return t.map(e=>i[e.key])}(this.cellElRefs.currentMap,t.cells),!0,!1))}}class ah extends ae{constructor(){super(...arguments),this.processSlotOptions=R(lh),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:e}=this.props,{slatCoords:r}=this.state;if(e&&r){if(t.time){let s=r.computeTimeTop(t.time);s=Math.ceil(s),s&&(s+=1),e(s)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:e}=this;return f("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},f(Vp,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),f(sh,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:e.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,e){let{dateEnv:r,options:s}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:l}=this.state,{snapDuration:c,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,s.snapDuration),d=o.leftToIndex(t),m=l.positions.topToIndex(e);if(null!=d&&null!=m){let h=this.props.cells[d],p=l.positions.tops[m],_=l.positions.getHeight(m),b=Math.floor((e-p)/_*u),S=this.props.cells[d].date,w=An(a.slotMinTime,function ac(i,t){return{years:i.years*t,months:i.months*t,days:i.days*t,milliseconds:i.milliseconds*t}}(c,m*u+b)),T=r.add(S,w),z=r.add(T,c);return{dateProfile:a,dateSpan:Object.assign({range:{start:T,end:z},allDay:!1},h.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:p,bottom:p+_},layer:0}}return null}}function lh(i,t){let e=t||i,r=Tn(i,e);return null===r&&(e=i,r=1),{snapDuration:e,snapsPerSlot:r}}class ch extends Os{sliceRange(t,e){let r=[];for(let s=0;s<e.length;s+=1){let o=Fe(t,e[s]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:s})}return r}}class dh extends ae{constructor(){super(...arguments),this.buildDayRanges=R(uh),this.slicer=new ch,this.timeColsRef={current:null}}render(){let{props:t,context:e}=this,{dateProfile:r,dayTableModel:s}=t,{nowIndicator:o,nextDayThreshold:a}=e.options,l=this.buildDayRanges(s,r,e.dateEnv);return f(Je,{unit:o?"minute":"day"},(c,u)=>f(ah,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,e,l),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:s.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:c,nowIndicatorSegs:o&&this.slicer.sliceNowDate(c,r,a,e,l),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function uh(i,t,e){let r=[];for(let s of i.headerDates)r.push({start:e.add(s,t.slotMinTime),end:e.add(s,t.slotMaxTime)});return r}const Do=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function fh(i,t,e,r,s){let o=new Date(0),a=i,l=D(0),c=e||function ph(i){let t,e,r;for(t=Do.length-1;t>=0;t-=1)if(e=D(Do[t]),r=Tn(e,i),null!==r&&r>1)return e;return i}(r),u=[];for(;se(a)<se(t);){let d=s.add(o,a),m=null!==Tn(l,c);u.push({date:d,time:a,key:d.toISOString(),isoTimeStr:Ec(d),isLabeled:m}),a=An(a,r),l=An(l,r)}return u}function mh(i,t){let e=new Ns(i.renderRange,t);return new js(e,!1)}It('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}
1.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var _h=Ce({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class hh extends Hp{constructor(){super(...arguments),this.buildTimeColsModel=R(mh),this.buildSlatMetas=R(fh)}render(){let{options:t,dateEnv:e,dateProfileGenerator:r}=this.context,{props:s}=this,{dateProfile:o}=s,a=this.buildTimeColsModel(o,r),l=this.allDaySplitter.splitProps(s),c=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,e),{dayMinWidth:u}=t,d=!u,m=u,h=t.dayHeaders&&f(Fs,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),p=!1!==t.allDaySlot&&(v=>f(Eo,Object.assign({},l.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:s.forPrint},this.getAllDayMaxEventProps()))),_=v=>f(dh,Object.assign({},l.timed,{dayTableModel:a,dateProfile:o,axis:d,slotDuration:t.slotDuration,slatMetas:c,forPrint:s.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return m?this.renderHScrollLayout(h,p,_,a.colCnt,u,c,this.state.slatCoords):this.renderSimpleLayout(h,p,_)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class vh extends F{constructor(){super(...arguments),this.state={textId:Te()}}render(){let{theme:t,dateEnv:e,options:r,viewApi:s}=this.context,{cellId:o,dayDate:a,todayRange:l}=this.props,{textId:c}=this.state,u=ei(a,l),d=r.listDayFormat?e.format(a,r.listDayFormat):"",m=r.listDaySideFormat?e.format(a,r.listDaySideFormat):"",h=Object.assign({date:e.toDate(a),view:s,textId:c,text:d,sideText:m,navLinkAttrs:Ke(this.context,a),sideNavLinkAttrs:Ke(this.context,a,"day",!1)},u);return f(ee,{elTag:"tr",elClasses:["fc-list-day",...Qt(u,t)],elAttrs:{"data-date":ft(a)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:bh,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>f("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":c},f(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function bh(i){return f(j,null,i.text&&f("a",Object.assign({id:i.textId,className:"fc-list-day-text"},i.navLinkAttrs),i.text),i.sideText&&f("a",Object.assign({"aria-hidden":!0,
vendor: 6,981 bytes, line 1
1className:"fc-list-day-side-text"},i.sideNavLinkAttrs),i.sideText))}const yh=L({hour:"numeric",minute:"2-digit",meridiem:"short"});class Ch extends F{render(){let{props:t,context:e}=this,{options:r}=e,{seg:s,timeHeaderId:o,eventHeaderId:a,dateHeaderId:l}=t,c=r.eventTimeFormat||yh;return f(tn,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",s.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>function Eh(i,t){let e=Zn(i,t);return f("a",Object.assign({},e),i.eventRange.def.title)}(s,e),seg:s,timeText:"",disableDragging:!0,disableResizing:!0}),(u,d)=>f(j,null,function Sh(i,t,e,r,s){let{options:o}=e;if(!1!==o.displayEventTime){let u,l=i.eventRange.instance,c=!1;return i.eventRange.def.allDay?c=!0:function ld(i){let t=Hn(i);return De(t.start,t.end)>1}(i.eventRange.range)?i.isStart?u=_t(i,t,e,null,null,l.range.start,i.end):i.isEnd?u=_t(i,t,e,null,null,i.start,l.range.end):c=!0:u=_t(i,t,e),c?f(ee,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${s}`},renderProps:{text:e.options.allDayText,view:e.viewApi},generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:kh,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount}):f("td",{className:"fc-list-event-time"},u)}return null}(s,c,e,o,l),f("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},f("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),f(u,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${l}`}})))}}function kh(i){return i.text}function Ah(i){return i.text}function Th(i){let t=B(i.renderRange.start),e=i.renderRange.end,r=[],s=[];for(;t<e;)r.push(t),s.push({start:t,end:Y(t,1)}),t=Y(t,1);return{dayDates:r,dayRanges:s}}function xo(i){return!1===i?null:L(i)}It(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');var Ih=Ce({name:"@fullcalendar/list",optionRefiners:{listDayFormat:xo,listDaySideFormat:xo,noEventsClassNames:g,noEventsContent:g,noEventsDidMount:g,noEventsWillUnmount:g},views:{list:{component:class Rh extends ae{constructor(){super(...arguments),this.computeDateVars=R(Th),this.eventStoreToSegs=R(this._eventStoreToSegs),this.state={timeHeaderId:Te(),eventHeaderId:Te(),dateHeaderIdRoot:Te()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:e}=this,{dayDates:r,dayRanges:s}=this.computeDateVars(t.dateProfile),o=this.eventStoreToSegs(t.eventStore,t.eventUiBases,s);return f(mt,{elRef:this.setRootEl,elClasses:["fc-list",e.theme.getClass("table"),!1!==e.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:e.viewSpec},f(Ps,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:e}=this.context;return f(ee,{elTag:"div",elClasses:["fc-list-empty"],renderProps:{text:t.noEventsText,view:e},generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:Ah,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},s=>f(s,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,e){let{theme:r,options:s}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:l}=this.state,c=function wh(i){let e,r,t=[];for(e=0;e<i.length;e+=1)r=i[e],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}(t);return f(Je,{unit:"day"},(u,d)=>{let m=[];for(let h=0;h<c.length;h+=1){let p=c[h];if(p){let _=ft(e[h]),v=l+"-"+_;m.push(f(vh,{key:_,cellId:v,dayDate:e[h],todayRange:d})),p=Qn(p,s.eventOrder);for(let b of p)m.push(f(Ch,Object.assign({key:_+":"+b.eventRange.instance.instanceId,seg:b,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:v},be(b,d,u))))}}return f("table",{className:"fc-list-table "+r.getClass("table")},f("thead",null,f("tr",null,f("th",{scope:"col",id:o},s.timeHint),f("th",{scope:"col","aria-hidden":!0}),f("th",{scope:"col",id:a},s.eventHint))),f("tbody",null,m))})}_eventStoreToSegs(t,e,r){return this.eventRangesToSegs(Wn(t,e,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(t,e){let r=[];for(let s of t)r.push(...this.eventRangeToSegs(s,e));return r}eventRangeToSegs(t,e){let l,c,u,{dateEnv:r}=this.context,{nextDayThreshold:s}=this.context.options,o=t.range,a=t.def.allDay,d=[];for(l=0;l<e.length;l+=1)if(c=Fe(o,e[l]),c&&(u={component:this,eventRange:t,start:c.start,end:c.end,isStart:t.isStart&&c.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&c.end.valueOf()===o.end.valueOf(),dayIndex:l},d.push(u),!u.isEnd&&!a&&l+1<e.length&&o.end<r.add(e[l+1].start,s))){u.end=o.end,u.isEnd=!0;break}return d}},buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}
1),Io=C(12772),Mo=C(20319),Ee=C(81391),Mh=C(53540),Fh=C(60209);const Nh=["*"],jh=["rootEl"],nt=i=>({$implicit:i});function Oh(i,t){if(1&i&&(n.j41(0,"div",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}function Gh(i,t){if(1&i&&(n.j41(0,"span",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}function Bh(i,t){if(1&i&&(n.j41(0,"a",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}function Ph(i,t){if(1&i&&(n.j41(0,"tr",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}function Hh(i,t){if(1&i&&(n.j41(0,"th",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}function Lh(i,t){if(1&i&&(n.j41(0,"td",2,0),n.eu8(2,3),n.k0s()),2&i){const e=n.XpG();n.Y8G("ngClass",e.elClasses||"")("ngStyle",e.elStyle||null),n.R7$(2),n.Y8G("ngTemplateOutlet",e.template)("ngTemplateOutletContext",n.eq3(4,nt,e.renderProps))}}const $h=["dayHeaderContent"],Uh=["dayCellContent"],Vh=["weekNumberContent"],Yh=["nowIndicatorContent"],zh=["eventContent"],Xh=["slotLaneContent"],Wh=["slotLabelContent"],qh=["allDayContent"],Qh=["moreLinkContent"],Zh=["noEventsContent"],Jh=["resourceAreaHeaderContent"],Kh=["resourceGroupLabelContent"],em=["resourceLabelContent"],tm=["resourceLaneContent"],nm=["resourceGroupLaneContent"];function im(i,t){if(1&i&&n.nrm(0,"transport-container",1),2&i){const e=t.$implicit;n.Y8G("inPlaceOf",e.containerEl)("reportEl",e.reportNewContainerEl)("elTag",e.elTag)("elClasses",e.elClasses)("elStyle",e.elStyle)("elAttrs",e.elAttrs)("template",e.generatorMeta)("renderProps",e.renderProps)}}const Fo={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},rm=["events","eventSources","resources"],sm=Object.prototype.hasOwnProperty;function sn(i){return Array.isArray(i)?i.map(sn):i instanceof Date?new Date(i.valueOf()):"object"==typeof i&&i?No(i,sn):i}function No(i,t){const e={};for(const r in i)sm.call(i,r)&&(e[r]=t(i[r],r));return e}function Ci(i,t){if(i===t)return!0;if(i&&t&&"object"==typeof i&&"object"==typeof t){if(i.constructor!==t.constructor)return!1;var e,r,s;if(Array.isArray(i)){if((e=i.length)!=t.length)return!1;for(r=e;0!=r--;)if(!Ci(i[r],t[r]))return!1;return!0}if(i.constructor===RegExp)return i.source===t.source&&i.flags===t.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===t.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===t.toString();if((e=(s=Object.keys(i)).length)!==Object.keys(t).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;for(r=e;0!=r--;){var o=s[r];if(!Ci(i[o],t[o]))return!1}return!0}return i!=i&&t!=t}const on=typeof document<"u"?document.createDocumentFragment():null;let om=(()=>{class i{constructor(e){this.element=e}ngAfterViewInit(){on&&on.appendChild(this.element.nativeElement)}ngOnDestroy(){on&&on.removeChild(this.element.nativeElement)}}return i.\u0275fac=function(e){return new(e||i)(n.rXU(n.aKT))},i.\u0275cmp=n.VBU({type:i,selectors:[["offscreen-fragment"]],ngContentSelectors:Nh,decls:1,vars:0,template:function(e,r){1&e&&(n.NAR(),n.SdG(0))},encapsulation:2}),i})();const it=typeof document<"u"?document.createDocumentFragment():null;let am=(()=>{class i{ngAfterViewInit(){const e=this.rootElRef?.nativeElement;jo(e,this.inPlaceOf),Ei(e,void 0,this.elAttrs),this.inPlaceOf.style.display="none",this.reportEl(e)}ngOnChanges(e){const r=this.rootElRef?.nativeElement;if(r)if(this.inPlaceOf.parentNode!==it)jo(r,this.inPlaceOf),Ei(r,void 0,this.elAttrs),this.reportEl(r);else{const s=e.elAttrs;
1s&&Ei(r,s.previousValue,s.currentValue)}}ngOnDestroy(){this.inPlaceOf.parentNode===it&&it&&it.removeChild(this.inPlaceOf),this.reportEl(null)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.VBU({type:i,selectors:[["transport-container"]],viewQuery:function(e,r){if(1&e&&n.GBs(jh,5),2&e){let s;n.mGM(s=n.lsd())&&(r.rootElRef=s.first)}},inputs:{inPlaceOf:"inPlaceOf",reportEl:"reportEl",elTag:"elTag",elClasses:"elClasses",elStyle:"elStyle",elAttrs:"elAttrs",template:"template",renderProps:"renderProps"},features:[n.OA$],decls:6,vars:6,consts:[["rootEl",""],[3,"ngIf"],[3,"ngClass","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){1&e&&n.DNE(0,Oh,3,6,"ng-template",1)(1,Gh,3,6,"ng-template",1)(2,Bh,3,6,"ng-template",1)(3,Ph,3,6,"ng-template",1)(4,Hh,3,6,"ng-template",1)(5,Lh,3,6,"ng-template",1),2&e&&(n.Y8G("ngIf","div"==r.elTag),n.R7$(),n.Y8G("ngIf","span"==r.elTag),n.R7$(),n.Y8G("ngIf","a"==r.elTag),n.R7$(),n.Y8G("ngIf","tr"==r.elTag),n.R7$(),n.Y8G("ngIf","th"==r.elTag),n.R7$(),n.Y8G("ngIf","td"==r.elTag))},dependencies:[M.bT,M.YU,M.B3,M.T3],encapsulation:2}),i})();function jo(i,t){t.parentNode?.insertBefore(i,t.nextSibling),it&&it.appendChild(t)}function Ei(i,t={},e={}){for(const r in t)r in e||(i[r]=null);for(const r in e)i[r]=e[r]}let lm=(()=>{class i{constructor(e,r){this.element=e,this.calendar=null,this.optionSnapshot={},this.customRenderingMap=new Map;const s=new Ju;s.subscribe(o=>{this.customRenderingMap=o,this.customRenderingArray=void 0,r.detectChanges()}),this.handleCustomRendering=s.handle.bind(s)}ngAfterViewInit(){const{deepChangeDetection:e}=this,r={...this.options,...this.buildInputOptions()};this.optionSnapshot=No(r,(l,c)=>e&&Fo[c]?sn(l):l);const s=this.element.nativeElement,o=this.calendar=new fo(s,{...r,...this.buildExtraOptions()}),a=s.closest("ion-content");a&&a.componentOnReady?a.componentOnReady().then(()=>{window.requestAnimationFrame(()=>{o.render()})}):o.render(),setTimeout(()=>o.updateSize())}ngDoCheck(){if(this.calendar){const{deepChangeDetection:e,optionSnapshot:r}=this,s={...this.options,...this.buildInputOptions()},o={},a=[];for(const c in s)if(s.hasOwnProperty(c)){let u=s[c];e&&Fo[c]?Ci(r[c],u)||(r[c]=sn(u),a.push(c)):r[c]!==u&&(r[c]=u,a.push(c)),o[c]=u}const l=Object.keys(r);for(const c of l)c in s||(delete r[c],a.push(c));a.length&&(this.calendar.pauseRendering(),this.calendar.resetOptions({...o,...this.buildExtraOptions()},a))}}ngAfterContentChecked(){this.calendar&&this.calendar.resumeRendering()}ngOnDestroy(){this.calendar&&(this.calendar.destroy(),this.calendar=null)}get customRenderings(){return this.customRenderingArray||(this.customRenderingArray=[...this.customRenderingMap.values()])}getApi(){return this.calendar}buildInputOptions(){const e={};for(const r of rm){const s=this[r];null!=s&&(e[r]=s)}return e}buildExtraOptions(){return{handleCustomRendering:this.handleCustomRendering,customRenderingMetaMap:this,customRenderingReplaces:!0}}trackCustomRendering(e,r){return r.id}}return i.\u0275fac=function(e){return new(e||i)(n.rXU(n.aKT),n.rXU(n.gRc))},i.\u0275cmp=n.VBU({type:i,selectors:[["full-calendar"]],contentQueries:function(e,r,s){if(1&e&&(n.wni(s,$h,7),n.wni(s,Uh,7),n.wni(s,Vh,7),n.wni(s,Yh,7),n.wni(s,zh,7),n.wni(s,Xh,7),n.wni(s,Wh,7),n.wni(s,qh,7),n.wni(s,Qh,7),n.wni(s,Zh,7),n.wni(s,Jh,7),n.wni(s,Kh,7),n.wni(s,em,7),n.wni(s,tm,7),n.wni(s,nm,7)),2&e){let o;n.mGM(o=n.lsd())&&(r.dayHeaderContent=o.first),n.mGM(o=n.lsd())&&(r.dayCellContent=o.first),n.mGM(o=n.lsd())&&(r.weekNumberContent=o.first),n.mGM(o=n.lsd())&&(r.nowIndicatorContent=o.first),n.mGM(o=n.lsd())&&(r.eventContent=o.first),n.mGM(o=n.lsd())&&(r.slotLaneContent=o.first),n.mGM(o=n.lsd())&&(r.slotLabelContent=o.first),n.mGM(o=n.lsd())&&(r.allDayContent=o.first),n.mGM(o=n.lsd())&&(r.moreLinkContent=o.first),n.mGM(o=n.lsd())&&(r.noEventsContent=o.first),n.mGM(o=n.lsd())&&(r.resourceAreaHeaderContent=o.first),n.mGM(o=n.lsd())&&(r.resourceGroupLabelContent=o.first),n.mGM(o=n.lsd())&&(r.resourceLabelContent=o.first),n.mGM(o=n.lsd())&&(r.resourceLaneContent=o.first),n.mGM(o=n.lsd())&&(r.resourceGroupLaneContent=o.first)}},inputs:{options:"options",deepChangeDetection:"deepChangeDetection",events:"events",eventSources:"eventSources",resources:"resources"},decls:2,vars:2,consts:[[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps"]],template:function(e,r){1&e&&(n.j41(0,"offscreen-fragment"),n.DNE(1,im,1,8,"transport-container",0),n.k0s()),2&e&&(n.R7$(),n.Y8G("ngForOf",r.customRenderings)("ngForTrackBy",r.trackCustomRendering))},dependencies:[om,am,M.Sq],encapsulation:2}),i})(),cm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[[M.MD]]}),i})();const Oo=()=>["gradient"],Go=()=>({opacity:!1});function dm(i,t){if(1&i&&(n.j41(0,"div",24),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;
1n.R7$(),n.SpI(" ",e," ")}}function um(i,t){if(1&i&&(n.j41(0,"div",21)(1,"div",22),n.DNE(2,dm,2,1,"div",23),n.k0s()()),2&i){const e=n.XpG();n.R7$(2),n.Y8G("ngForOf",e.errors)}}function fm(i,t){if(1&i&&(n.j41(0,"span",25),n.EFF(1),n.k0s()),2&i){const e=n.XpG();n.R7$(),n.JRh(e.event.title)}}function pm(i,t){1&i&&(n.j41(0,"span",26),n.EFF(1,"Calendar Event"),n.k0s())}function hm(i,t){if(1&i&&(n.j41(0,"div"),n.nrm(1,"i",27),n.EFF(2),n.nI1(3,"localizedMediumDate"),n.nI1(4,"localizedShortTime"),n.k0s()),2&i){const e=n.XpG();n.R7$(2),n.Lme(" \xa0 ",n.bMT(3,2,e.event.end),", ",n.bMT(4,4,e.event.end)," ")}}function mm(i,t){if(1&i&&(n.j41(0,"div",28),n.nrm(1,"div",29),n.nI1(2,"SafeMatchHtml"),n.k0s()),2&i){const e=n.XpG();n.R7$(),n.Y8G("innerHTML",n.bMT(2,1,e.event.body),n.npT)}}function gm(i,t){if(1&i&&(n.nrm(0,"div",29),n.nI1(1,"SafeMatchHtml")),2&i){const e=n.XpG(2);n.Y8G("innerHTML",n.bMT(1,1,e.event.location.displayName),n.npT)}}function _m(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.JRh(e.event.location.address.street)}}function vm(i,t){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.JRh(e.event.location.address.city)}}function bm(i,t){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.JRh(e.event.location.address.state)}}function ym(i,t){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.JRh(e.event.location.address.postalCode)}}function Cm(i,t){if(1&i&&(n.j41(0,"div",9),n.DNE(1,_m,2,1,"div",15),n.j41(2,"div"),n.DNE(3,vm,2,1,"span",15)(4,bm,2,1,"span",15)(5,ym,2,1,"span",15),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.event.location.address.street),n.R7$(2),n.Y8G("ngIf",e.event.location.address.city),n.R7$(),n.Y8G("ngIf",e.event.location.address.state),n.R7$(),n.Y8G("ngIf",e.event.location.address.postalCode)}}function Em(i,t){if(1&i&&(n.j41(0,"div",30),n.DNE(1,gm,2,3,"div",31)(2,Cm,6,4,"div",32),n.k0s()),2&i){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.event.location.displayName),n.R7$(),n.Y8G("ngIf",e.event.location.address)}}function Sm(i,t){if(1&i&&(n.j41(0,"div",24),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e," ")}}function km(i,t){if(1&i&&(n.j41(0,"div"),n.DNE(1,Sm,2,1,"div",23),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.errors)}}function Rm(i,t){1&i&&n.nrm(0,"span",59)}function Am(i,t){1&i&&n.nrm(0,"span",60)}function Tm(i,t){if(1&i&&(n.j41(0,"option",71),n.EFF(1),n.k0s()),2&i){const e=t.$implicit,r=n.XpG(4).$implicit;n.Y8G("selected",r.email==e.id)("value",e.id),n.R7$(),n.SpI(" ",e.displayName," ")}}function wm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div")(1,"div",47)(2,"label",62),n.EFF(3,"Group"),n.k0s(),n.j41(4,"select",69),n.bIt("change",function(s){n.eBV(e);const o=n.XpG(3).$implicit,a=n.XpG(2);return n.Njj(a.onGroupChange(o,s))}),n.DNE(5,Tm,2,3,"option",70),n.k0s(),n.j41(6,"small",64),n.EFF(7,"The group calendar to display."),n.k0s()()()}if(2&i){const e=n.XpG(3).index,r=n.XpG(2);n.R7$(4),n.Y8G("id","groupName"+e.toString())("name","groupName"+e.toString()),n.R7$(),n.Y8G("ngForOf",r.groupList)}}function Dm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",61)(1,"div",47)(2,"label",62),n.EFF(3,"Display Name"),n.k0s(),n.j41(4,"input",63),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(2).$implicit;return n.DH7(o.displayName,s)||(o.displayName=s),n.Njj(s)}),n.k0s(),n.j41(5,"small",64),n.EFF(6,"The calendar name shown to other users."),n.k0s()(),n.j41(7,"div",47)(8,"label",62),n.EFF(9,"Email"),n.k0s(),n.j41(10,"input",65),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(2).$implicit;return n.DH7(o.email,s)||(o.email=s),n.Njj(s)}),n.k0s(),n.j41(11,"small",64),n.EFF(12,"The email of the user's calendar."),n.k0s()(),n.DNE(13,wm,8,3,"div",15),n.j41(14,"div",47)(15,"label"),n.EFF(16,"Text Color"),n.k0s(),n.nrm(17,"br"),n.j41(18,"kendo-colorpicker",66),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(2).$implicit;return n.DH7(o.color,s)||(o.color=s),n.Njj(s)}),n.k0s(),n.j41(19,"small",64),n.EFF(20," Click the box above to change the color. "),n.k0s()(),n.j41(21,"div",47)(22,"label"),n.EFF(23,"Backgroun
1d Color"),n.k0s(),n.nrm(24,"br"),n.j41(25,"kendo-colorpicker",66),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(2).$implicit;return n.DH7(o.bgColor,s)||(o.bgColor=s),n.Njj(s)}),n.k0s(),n.j41(26,"small",64),n.EFF(27," Click the box above to change the color. "),n.k0s()(),n.j41(28,"div",67)(29,"rbac-button",68),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2).$implicit,o=n.XpG(2);return n.Njj(o.deleteSettings(s))}),n.k0s()()()}if(2&i){const e=n.XpG(2),r=e.$implicit,s=e.index;n.R7$(4),n.Y8G("id","name"+s.toString())("name","name"+s.toString()),n.R50("ngModel",r.displayName),n.R7$(6),n.Y8G("id","email"+s.toString())("name","email"+s.toString()),n.R50("ngModel",r.email),n.R7$(3),n.Y8G("ngIf",1==r.type),n.R7$(5),n.Y8G("id","textColor"+s.toString())("name","textColor"+s.toString())("views",n.lJ4(27,Oo))("value",r.color),n.R50("ngModel",r.color),n.Y8G("clearButton",!1)("gradientSettings",n.lJ4(28,Go)),n.R7$(7),n.Y8G("id","bgColor"+s.toString())("name","bgColor"+s.toString())("views",n.lJ4(29,Oo))("value",r.bgColor),n.R50("ngModel",r.bgColor),n.Y8G("clearButton",!1)("gradientSettings",n.lJ4(30,Go)),n.R7$(4),n.HbH("pageHeaderButtonImage pageHeaderDelete"),n.Y8G("title","Delete")("icon","fal fa-trash")("moduleType","Company_Calendar")("permission","Delete")}}function xm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",51)(1,"div",52),n.bIt("click",function(){n.eBV(e);const s=n.XpG().$implicit,o=n.XpG(2);return n.Njj(o.togglePanel(s))}),n.j41(2,"div",53),n.nrm(3,"span",54),n.EFF(4),n.k0s(),n.j41(5,"div",55),n.DNE(6,Rm,1,0,"span",56)(7,Am,1,0,"span",57),n.k0s()(),n.DNE(8,Dm,30,31,"div",58),n.k0s()}if(2&i){const e=n.XpG().$implicit;n.Y8G("cdkDragData",e),n.R7$(4),n.SpI(" ",e.displayName," "),n.R7$(2),n.Y8G("ngIf",!e.isVisible),n.R7$(),n.Y8G("ngIf",e.isVisible),n.R7$(),n.Y8G("ngIf",e.isVisible)}}function Im(i,t){if(1&i&&(n.qex(0),n.DNE(1,xm,9,5,"div",50),n.bVm()),2&i){const e=t.$implicit;n.R7$(),n.Y8G("ngIf",!e.isDeleted)}}function Mm(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",33)(1,"div",34)(2,"div",35),n.EFF(3," Calendars "),n.k0s(),n.j41(4,"div",36)(5,"button",37),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.nrm(6,"span",38),n.EFF(7,"Cancel "),n.k0s()()(),n.j41(8,"div",39)(9,"h3"),n.EFF(10," Select Calendars "),n.nrm(11,"help-link",40),n.k0s(),n.j41(12,"p"),n.EFF(13,"Choose one or more Microsoft 365 calendars to show as view only to all users."),n.k0s(),n.DNE(14,km,2,1,"div",15),n.j41(15,"form",41,2),n.bIt("ngSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.saveSettings())}),n.j41(17,"div",42),n.bIt("cdkDropListDropped",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.drop(s))}),n.DNE(18,Im,2,1,"ng-container",43),n.k0s(),n.j41(19,"div",44)(20,"button",45),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.addSettings())}),n.nrm(21,"span",46),n.EFF(22,"Add a Calendar "),n.k0s()(),n.j41(23,"blade-footer",47),n.nrm(24,"rbac-button",48),n.j41(25,"button",49),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.EFF(26," Cancel "),n.k0s()()()()()}if(2&i){const e=n.sdS(16),r=n.XpG();n.R7$(11),n.Y8G("moduleType","Company_Calendar")("permission","Full"),n.R7$(3),n.Y8G("ngIf",r.errors.length>0),n.R7$(3),n.Y8G("cdkDropListData",r.calendarSettingsList),n.R7$(),n.Y8G("ngForOf",r.calendarSettingsList),n.R7$(6),n.HbH("btn btn-primary me-2"),n.Y8G("type","submit")("label","Submit")("disabled",e.invalid||r._dataService.isBusy)("moduleType","Company_Calendar")("permission","Edit")}}let Fm=(()=>{class i{constructor(e,r,s,o,a,l){this._blade=e,this._browserutils=r,this._confirmService=s,this._slimLoading=o,this._dataService=a,this.user=l,this.calendarEvents=[],this.calendarList=[],this.calendarOptions={plugins:[Fp,_h,Ih],initialView:"dayGridMonth",events:[],datesSet:this.fillData.bind(this),eventClick:this.eventClick.bind(this),headerToolbar:{left:"today prev,next",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"}},this.calendarSettingsList=[],this.errors=[],this.event={},this.groupList=[],this.isShowSettings=!1}drop(e){(0,Ee.HD)(this.calendarSettingsList,e.previousIndex,e.currentIndex)}fillData(e){const r=new A.Yj;let s,o;
1if(e)s=e.view.activeStart,o=e.view.activeEnd;else{const a=new Date,l=new Date;a.setDate(a.getDate()-35),l.setDate(l.getDate()+35),s=a.toISOString(),o=l.toISOString()}r.filters="start^end",r.conditions="eq^eq",r.values=`${new Date(s).toISOString()}^${new Date(o).toISOString()}`,this._slimLoading.start(),this._dataService.get(r,"/api/calendar").subscribe({next:a=>{this._slimLoading.complete(),this.calendarList=a.data,a.message&&this._browserutils.pushErrorToast(a.message),this.calendarEvents=[];for(let l=0;l<this.calendarList.length;l++){const c=Intl.DateTimeFormat().resolvedOptions().timeZone;let u=this.calendarList[l].start.dateTime,d=this.calendarList[l].end.dateTime;this.calendarList[l].isAllDay&&(c.startsWith("Australia")||c.startsWith("Europe")||(u=Mo.c9.fromJSDate(u).plus({day:1}).toJSDate(),d=Mo.c9.fromJSDate(d).plus({day:1}).toJSDate())),this.calendarEvents.push({start:u,end:d,allDay:this.calendarList[l].isAllDay,id:this.calendarList[l].id,title:this.calendarList[l].subject,body:this.calendarList[l].body,location:this.calendarList[l].location,textColor:this.calendarList[l].color,backgroundColor:this.calendarList[l].bgColor,borderColor:this.calendarList[l].bgColor})}this.calendarOptions.events=this.calendarEvents},error:a=>{this.errors=this._dataService.processErrors(a)}})}eventClick(e){this.event=e.event,this.modal&&this.modal.show()}eventClose(){this.modal&&this.modal.hide()}showAdminEdit(){return this._slimLoading.start(),this._dataService.get(new A.Yj,"/api/calendar/settings").subscribe({next:e=>{this.calendarSettingsList=e.data,this.groupList=e.extended,this.isShowSettings=!0,this._slimLoading.complete()},error:e=>{this.errors=this._dataService.processErrors(e)}}),!1}cancelForm(){return this.isShowSettings=!1,this.errors=[],!1}saveSettings(){this.errors=[];for(let e=this.calendarSettingsList.length;e>0;e--)this.calendarSettingsList[e-1].isDeleted&&this.calendarSettingsList.splice(e-1,1);return this._slimLoading.start(),this._dataService.post(this.calendarSettingsList,"/api/calendar/settings").subscribe({next:()=>{this.fillData(void 0),this.cancelForm(),this._slimLoading.complete()},error:e=>{this.errors=this._dataService.processErrors(e)}}),!1}togglePanel(e){e.isVisible=!e.isVisible;for(let r=0;r<this.calendarSettingsList.length;r++)this.calendarSettingsList[r]!=e&&(this.calendarSettingsList[r].isVisible=!1)}addSettings(){return this.calendarSettingsList.push({type:0,email:"",displayName:"",color:"#ffffff",bgColor:"#000000",isDeleted:!1,isVisible:!0}),!1}deleteSettings(e){return this._confirmService.activate("Are you sure you want to remove this calendar?").then(r=>{r==ne.x.OK&&(e.isDeleted=!0)}),!1}onTypeChange(e,r,s){e.email="",e.displayName="",e.type=s}onGroupChange(e,r){e.email=this.groupList[r.target.selectedIndex].id,e.displayName=this.groupList[r.target.selectedIndex].displayName}static{this.\u0275fac=function(r){return new(r||i)(n.rXU(Q.C),n.rXU(N.b),n.rXU(ne.G),n.rXU(Oe.KO),n.rXU(A.jK),n.rXU(rt.D))}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["az-company"]],viewQuery:function(r,s){if(1&r&&n.GBs(Io.z,5),2&r){let o;n.mGM(o=n.lsd())&&(s.modal=o.first)}},features:[n.Jv_([])],decls:25,vars:23,consts:[["calendar",""],["showeventmodal",""],["f","ngForm"],[1,"d-flex","flex-column","h-100"],[3,"title"],[3,"click","title","label","icon","moduleType","permission"],["notranslate","",1,"row","py-3","h-100","overflow-auto"],["class","row",4,"ngIf"],[3,"options","deepChangeDetection"],["notranslate",""],[1,"app-modal-header"],["class","modal-title","notranslate","",4,"ngIf"],["class","modal-title",4,"ngIf"],[1,"app-modal-body"],[1,"fa","fa-calendar",2,"width","15px"],[4,"ngIf"],["style","padding-top: 10px; overflow-x: hidden;",4,"ngIf"],["style","padding-top: 10px;",4,"ngIf"],[1,"app-modal-footer"],["type","button",1,"btn","btn-secondary",2,"margin-left","10px",3,"click"],["class","w-45-responsive","notranslate","",4,"ngIf"],[1,"row"],[1,"col"],["class","alert alert-danger","role","alert",4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-danger"],["notranslate","",1,"modal-title"],[1,"modal-title"],[1,"fa","fa-clock",2,"width","15px"],[2,"padding-top","10px","overflow-x","hidden"],["notranslate","",3,"innerHTML"],[2,"padding-top","10px"],["notranslate","",3,"innerHTML",4,"ngIf"],["notranslate","",4,"ngIf"],["notranslate","",1,"w-45-responsive"],[1,"bladeHeader","clearfix"],[1,"bladeTitle"],[1,"bladeCommands"],["title","Close",1,"pageHeaderButton",3,"click"],[1,"fal","fa-times"],[1,"bladeBody"],["topic","CompanyCalendar",3,"moduleType","permission"],["autocomplete","off",3,"ngSubmit"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData"],[4,"ngFor","ngForOf"],[2,"margin-bottom","20px"],["title","Add a calendar",1,"pageHeaderButton",3,"click"],["_ngcontent-c400","",1,"fa","fa-plus"],[1,"mb-3"],[3,"type","label","disabled","moduleType","permission"],["type","button",1,"btn","btn-secondary",3,"click"],["cdkDrag","","class","questionBox",3,"cdkDragData",4,"ngIf"],["cdkDrag","",1,"questionBox",3,"cdkDragData"],[1,"clearfix",2,"cursor","pointer",3,"click"],[2,"float","left"],[1,"draggable","fal","fa-bars",2,"margin-right","10px"],[2,"float","right"],["class","fal fa-chevron-down",4,"ngIf"],["class","fal fa-chevron-up",4,"ngIf"],["style","padding-top: 20px;",4,"ngIf"],[1,"fal","fa-chevron-down"],[1,"fal","fa-chevron-up"],[2,"padding-top","20px"],[1,"labelRequired"],["type","text","required","",1,"form-control",3,"ngModelChange","id","name","ngModel"],[1,"d-block","form-text","text-muted"],["type","email","required","",1,"form-control",3,"ngModelChange","id","name","ngModel"],["format","hex",3,"ngModelChange","id","name","views","value","ngModel","clearButton","gradientSettings"],[2,"text-align","right"],[3,"click","title","icon","moduleType","permission"],["required","",1,"form-select",3,"change","id","name"],[3,"selected","value",4,"ngFor","ngForOf"],[3,"selected","value"]],template:function(r,s){if(1&r){const o=n.RV6();n.j41(0,"div",3)(1,"page-header",4)(2,"rbac-button",5),n.bIt("click",function(){return n.eBV(o),n.Njj(s.showAdminEdit())}),n.k0s()(),n.j41(3,"div",6),n.DNE(4,um,3,1,"div",7),n.nrm(5,"full-calendar",8,0),n.k0s()(),n.j41(7,"app-modal",9,1)(9,"div",10),n.DNE(10,fm,2,1,"span",11)(11,pm,2,0,"span",12),n.k0s(),n.j41(12,"div",13)(13,"div"),n.nrm(14,"i",14),n.EFF(15),n.nI1(16,"localizedMediumDate"),n.nI1(17,"localizedShortTime"),n.k0s(),n.DNE(18,hm,5,6,"div",15)(19,mm,3,3,"div",16)(20,Em,3,2,"div",17),n.k0s(),n.j41(21,"div",18)(22,"button",19),n.bIt("click",function(){return n.eBV(o),n.Njj(s.eventClose())}),n.EFF(23," Close "),n.k0s()()(),n.DNE(24,Mm,27,12,"blade-display",20)}2&r&&(n.R7$(),n.Y8G("title",s.user.GetPortalString("Calendar","Calendar")),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Edit settings")("label","Settings")("icon","fa fa-cog")("moduleType","Company_Calendar")("permission","Edit"),n.R7$(2),n.Y8G("ngIf",s.errors.length>0&&!s.isShowSettings),n.R7$(),n.Y8G("options",s.calendarOptions)("deepChangeDetection",!0),n.R7$(5),n.Y8G("ngIf",s.event.title),n.R7$(),n.Y8G("ngIf",!s.event.title),n.R7$(4),n.Lme(" \xa0 ",n.bMT(16,19,s.event.start),", ",n.bMT(17,21,s.event.start)," "),n.R7$(3),n.Y8G("ngIf",s.event.end
1),n.R7$(),n.Y8G("ngIf",s.event.body),n.R7$(),n.Y8G("ngIf",s.event.location),n.R7$(4),n.Y8G("ngIf",s.isShowSettings))},dependencies:[Q.C,M.Sq,M.bT,V.qT,V.xH,V.y7,V.me,V.BC,V.cb,V.YS,V.vS,V.cV,Mh.z,Fh.h_,Io.z,st.y,Ct.S,Et.J,lm,Ee.O7,Ee.T1,Ge.Pt,Ge.Ln,ot.Iv],styles:[".questionBox[_ngcontent-%COMP%]{margin-bottom:20px;border:solid 1px var(--main-border-color);background:var(--main-background);padding:15px 20px}"]})}}return i})(),Nm=(()=>{class i{constructor(){}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["az-company"]],hostAttrs:[1,"container-fluid","overflow-hidden","h-100"],decls:1,vars:0,template:function(r,s){1&r&&n.nrm(0,"router-outlet")},dependencies:[P.n3],encapsulation:2})}}return i})();var jm=C(7034),an=C(30948),Om=C(83801);const Gm=()=>({allowUnsort:!1,mode:"single"}),Bm=i=>({currentUser:i});function Pm(i,t){1&i&&(n.j41(0,"div"),n.EFF(1," Searching... "),n.k0s())}function Hm(i,t){1&i&&(n.j41(0,"div"),n.EFF(1," No records available. "),n.k0s())}function Lm(i,t){if(1&i&&n.DNE(0,Pm,2,0,"div",17)(1,Hm,2,0,"div",17),2&i){const e=n.XpG();n.Y8G("ngIf",e._dataService.isBusy),n.R7$(),n.Y8G("ngIf",!e._dataService.isBusy)}}function $m(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",18),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG();return n.Njj(o.showUser(s))}),n.j41(1,"div",19),n.nrm(2,"ngx-avatars",20),n.k0s(),n.j41(3,"div",21)(4,"div",22),n.EFF(5),n.k0s(),n.j41(6,"div",23),n.EFF(7),n.k0s()()()}if(2&i){const e=t.$implicit,r=n.XpG();n.Y8G("ngClass",n.eq3(6,Bm,r.user&&e.id==r.user.id)),n.R7$(2),n.Y8G("src",e.profileImageUrl)("value",e.userInitials)("textSizeRatio",2),n.R7$(3),n.SpI(" ",e.displayName," "),n.R7$(2),n.SpI(" ",e.email," ")}}function Um(i,t){1&i&&n.nrm(0,"kendo-pager-prev-buttons")(1,"kendo-pager-numeric-buttons",24)(2,"kendo-pager-next-buttons"),2&i&&(n.R7$(),n.Y8G("buttonCount",5))}function Vm(i,t){1&i&&(n.j41(0,"div",25)(1,"div",26)(2,"div",27),n.nrm(3,"img",28),n.k0s(),n.EFF(4," Select entry to view "),n.k0s()())}function Ym(i,t){if(1&i&&(n.j41(0,"div",44),n.EFF(1),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.user.companyName," ")}}function zm(i,t){if(1&i&&(n.j41(0,"span",45)(1,"a",46),n.nrm(2,"img",47),n.EFF(3," Send email"),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.Mz_("href","mailto:",e.user.email,"",n.B4B)}}function Xm(i,t){if(1&i&&(n.j41(0,"span")(1,"a",48),n.nrm(2,"img",49),n.EFF(3," Teams chat"),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.FS9("href",e.user.teamsChatUrl,n.B4B)}}function Wm(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,", "),n.k0s())}function qm(i,t){if(1&i&&(n.j41(0,"div",50),n.EFF(1),n.DNE(2,Wm,2,0,"span",17),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.user.title," "),n.R7$(),n.Y8G("ngIf",e.user.title&&e.user.department),n.R7$(2),n.JRh(e.user.department)}}function Qm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.nrm(2,"span",52),n.EFF(3),n.k0s(),n.j41(4,"span",53),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(2);n.R7$(),n.Mz_("href","mailto:",e.user.email,"",n.B4B),n.R7$(2),n.SpI(" ",e.user.email," "),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.email)}}function Zm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.nrm(2,"span",54),n.EFF(3),n.k0s(),n.j41(4,"span",55),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(2);n.R7$(),n.Mz_("href","tel:",e.user.phone,"",n.B4B),n.R7$(2),n.SpI(" ",e.user.phone," "),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.phone)}}function Jm(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.nrm(2,"span",56),n.EFF(3),n.k0s(),n.j41(4,"span",57),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(2);n.R7$(),n.Mz_("href","tel:",e.user.mobile,"",n.B4B),n.R7$(2),n.SpI(" ",e.user.mobile," "),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.mobile)}}function Km(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.SpI(" ",e.user.companyName," ")}}function eg(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);
1n.R7$(),n.SpI(" ",e.user.streetAddress," ")}}function tg(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.E5c(" ",e.user.city," ",e.user.state," ",e.user.postalCode," ")}}function ng(i,t){if(1&i&&(n.j41(0,"div",58),n.DNE(1,Km,2,1,"div",17)(2,eg,2,1,"div",17)(3,tg,2,3,"div",17),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.user.companyName),n.R7$(),n.Y8G("ngIf",e.user.streetAddress),n.R7$(),n.Y8G("ngIf",e.user.city)}}function ig(i,t){if(1&i&&(n.j41(0,"div",59),n.EFF(1),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.SpI(" \u201c",e.user.bio,"\u201d ")}}function rg(i,t){if(1&i&&(n.j41(0,"div",60)(1,"a",61),n.nrm(2,"img",62),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.FS9("href",e.user.linkedInUrl,n.B4B)}}function sg(i,t){if(1&i&&(n.j41(0,"div",29)(1,"div",30)(2,"table",31)(3,"tr")(4,"td",32),n.nrm(5,"ngx-avatars",33),n.k0s(),n.j41(6,"td",34)(7,"div",35)(8,"div",22),n.EFF(9),n.k0s(),n.DNE(10,Ym,2,1,"div",36),n.j41(11,"div",37),n.DNE(12,zm,4,2,"span",38)(13,Xm,4,1,"span",17),n.k0s()()()()(),n.j41(14,"div",39),n.DNE(15,qm,5,3,"div",40)(16,Qm,5,4,"div",40)(17,Zm,5,4,"div",40)(18,Jm,5,4,"div",40)(19,ng,4,3,"div",41)(20,ig,2,1,"div",42)(21,rg,3,1,"div",43),n.k0s()()()),2&i){const e=n.XpG();n.R7$(5),n.Y8G("src",e.user.profileImageUrl)("value",e.user.userInitials)("textSizeRatio",2),n.R7$(4),n.SpI(" ",e.user.displayName," "),n.R7$(),n.Y8G("ngIf",e.user.companyName),n.R7$(2),n.Y8G("ngIf",e.user.email),n.R7$(),n.Y8G("ngIf",e.user.teamsChatUrl&&e._user.UserProfile.user.email!=e.user.email),n.R7$(2),n.Y8G("ngIf",e.user.title),n.R7$(),n.Y8G("ngIf",e.user.email),n.R7$(),n.Y8G("ngIf",e.user.phone),n.R7$(),n.Y8G("ngIf",e.user.mobile),n.R7$(),n.Y8G("ngIf",e.user.companyName||e.user.streetAddress||e.user.city),n.R7$(),n.Y8G("ngIf",e.user.bio),n.R7$(),n.Y8G("ngIf",e.user.linkedInUrl)}}function og(i,t){if(1&i&&(n.j41(0,"div",44),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.SpI(" ",e.user.companyName," ")}}function ag(i,t){if(1&i&&(n.j41(0,"span",45)(1,"a",46),n.nrm(2,"img",47),n.EFF(3," Send email "),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(),n.Mz_("href","mailto:",e.user.email,"",n.B4B)}}function lg(i,t){if(1&i&&(n.j41(0,"span")(1,"a",48),n.nrm(2,"img",49),n.EFF(3," Teams chat"),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(),n.FS9("href",e.user.teamsChatUrl,n.B4B)}}function cg(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,", "),n.k0s())}function dg(i,t){if(1&i&&(n.j41(0,"div",50),n.EFF(1),n.DNE(2,cg,2,0,"span",17),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(),n.SpI(" ",e.user.title," "),n.R7$(),n.Y8G("ngIf",e.user.title&&e.user.department),n.R7$(2),n.JRh(e.user.department)}}function ug(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.EFF(2),n.k0s(),n.j41(3,"span",53),n.bIt("click",function(){n.eBV(e);const s=n.XpG(3);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(3);n.R7$(),n.Mz_("href","mailto:",e.user.email,"",n.B4B),n.R7$(),n.JRh(e.user.email),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.email)}}function fg(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.EFF(2),n.k0s(),n.j41(3,"span",55),n.bIt("click",function(){n.eBV(e);const s=n.XpG(3);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(3);n.R7$(),n.Mz_("href","tel:",e.user.phone,"",n.B4B),n.R7$(),n.JRh(e.user.phone),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.phone)}}function pg(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",50)(1,"a",51),n.EFF(2),n.k0s(),n.j41(3,"span",57),n.bIt("click",function(){n.eBV(e);const s=n.XpG(3);return n.Njj(s.pressClipboard())}),n.k0s()()}if(2&i){const e=n.XpG(3);n.R7$(),n.Mz_("href","tel:",e.user.mobile,"",n.B4B),n.R7$(),n.JRh(e.user.mobile),n.R7$(),n.Y8G("cdkCopyToClipboard",e.user.mobile)}}function hg(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(4);n.R7$(),n.SpI(" ",e.user.companyName," ")}}function mg(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(4);n.R7$(),n.SpI(" ",e.user.streetAddress," ")}}function gg(i,t){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&i){const e=n.XpG(4);n.R7$(),n.E5c(" ",e.user.city," ",e.user.state," ",e.user.postalCode," ")}}function _g(i,t){if(1&i&&(n.j41(0,"div",58),n.DNE(1,hg,2,1,"div",17)(2,mg,2,1,"div",17)(3,gg,2,3,"div",17),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.user.companyName),n.R7$(),n.Y8G("ngIf",e.user.streetAddress),n.R7$(),n.Y8G("ngIf",e.user.city)}}function vg(i,t){if(1&i&&(n.j41(0,"div",59),n.EFF(1),n.k0s()),2&i){const e=n.XpG(3);
1n.R7$(),n.SpI(" \u201c",e.user.bio,"\u201d ")}}function bg(i,t){if(1&i&&(n.j41(0,"div",60)(1,"a",61),n.nrm(2,"img",62),n.k0s()()),2&i){const e=n.XpG(3);n.R7$(),n.FS9("href",e.user.linkedInUrl,n.B4B)}}function yg(i,t){if(1&i&&(n.j41(0,"div",29)(1,"div",71)(2,"div",22),n.EFF(3),n.k0s()(),n.j41(4,"div",35),n.DNE(5,og,2,1,"div",36),n.j41(6,"div",37),n.DNE(7,ag,4,2,"span",38)(8,lg,4,1,"span",17),n.k0s()(),n.j41(9,"div",39),n.DNE(10,dg,5,3,"div",40)(11,ug,4,4,"div",40)(12,fg,4,4,"div",40)(13,pg,4,4,"div",40)(14,_g,4,3,"div",41)(15,vg,2,1,"div",42)(16,bg,3,1,"div",43),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(3),n.SpI(" ",e.user.displayName," "),n.R7$(2),n.Y8G("ngIf",e.user.companyName),n.R7$(2),n.Y8G("ngIf",e.user.email),n.R7$(),n.Y8G("ngIf",e.user.teamsChatUrl&&e._user.UserProfile.user.email!=e.user.email),n.R7$(2),n.Y8G("ngIf",e.user.title),n.R7$(),n.Y8G("ngIf",e.user.email),n.R7$(),n.Y8G("ngIf",e.user.phone),n.R7$(),n.Y8G("ngIf",e.user.mobile),n.R7$(),n.Y8G("ngIf",e.user.companyName||e.user.streetAddress||e.user.city),n.R7$(),n.Y8G("ngIf",e.user.bio),n.R7$(),n.Y8G("ngIf",e.user.linkedInUrl)}}function Cg(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",63),n.bIt("onEscape",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeBlade())}),n.j41(1,"div",64)(2,"div",65),n.EFF(3," Company Directory "),n.k0s(),n.j41(4,"div",66)(5,"button",67),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeBlade())}),n.nrm(6,"span",68),n.EFF(7,"Close "),n.k0s()()(),n.j41(8,"div",69),n.DNE(9,yg,17,11,"div",15),n.j41(10,"blade-footer")(11,"button",70),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeBlade())}),n.EFF(12,"Close "),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(9),n.Y8G("ngIf",e.user)}}let Bo=(()=>{class i{constructor(e,r,s,o,a,l){this._browserutils=e,this._blade=r,this._dataService=s,this._gridService=o,this._user=a,this._route=l,this.pageNumber=1,this.totalpages=0,this.pageSize=12,this.search="",this.errors=[],this.state={skip:0,take:10,sort:[{field:"displayName",dir:"asc"}]},this.sort=[{field:"displayName",dir:"asc"}],this.baseFilter=[{field:"text",operator:"contains",value:"",ignoreCase:!0}],this.baseComposite={logic:"and",filters:this.baseFilter},this.isRowSelected=c=>!1,this.user=void 0,this.searchModel={text:"",isDebounce:!0,isEnter:!1},this.showProfile=!1,this._gridService.setBaseURL("/api/directory"),this.gridData=o,this.fillData("all")}ngOnInit(){this.routerSubscription=this._route.queryParams.subscribe(e=>{const r=e.s;if(r){const s=new A.Yj;s.filters="id",s.conditions="eq",s.values=r,this._dataService.get(s,"/api/directory").subscribe(o=>{o.data&&o.data.length>0&&this.showUser(o.data[0])})}})}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}fillData(e){const r=new A.Yj;r.skip=this.state.skip,r.take=this.state.take,e&&"all"!=e&&""!=e?(r.filters="isShowInDirectory^text",r.conditions="eq^contains",r.values="true^"+e):(r.filters="isShowInDirectory",r.conditions="eq",r.values="true",this.search=""),this._gridService.query(r)}dataStateChange(e){this.state.skip=e.skip,this.state.take=e.take,this.fillData(this.searchModel.text)}gridUserSelectionChange(e){}showUser(e){this.user=e,window.innerWidth<600&&(this.showProfile=!0)}closeBlade(){return this.showProfile=!1,this._blade.closeMe(),!1}searchForText(){return this.state.skip=0,this.fillData(this.searchModel.text),!1}pressClipboard(){this._browserutils.openToast("Copied to clipboard.","Copied",N.R.success)}static{this.\u0275fac=function(r){return new(r||i)(n.rXU(N.b),n.rXU(Q.C),n.rXU(A.jK),n.rXU(le.M),n.rXU(rt.D),n.rXU(P.nX))}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["az-company"]],decls:19,vars:18,consts:[[3,"title"],[2,"height","calc(100vh - 126px)"],[1,"h-100","border-0",2,"background-color","var(--main-background)"],["size","30%","min","300px","max","50%",1,"d-flex","flex-column","pe-3",3,"scrollable"],[1,"pt-3"],[1,"w-100",3,"onSubmit","model","label"],[1,"h-100","overflow-hidden",3,"selectionChange","dataStateChange","data","pageSize","skip","sortable","sort","pageable","filter","filterable"],["kendoGridNoRecordsTemplate",""],["noRecords",""],[1,"p-0"],["kendoGridCellTemplate",""],["kendoPagerTemplate",""],[1,"split-pane-content-secondary",2,"height","100%"],[1,"right",2,"height","100%"],["class","rightInner",4,"ngIf"],["notranslate","",4,"ngIf"],["class","w-45-responsive",3,"onEscape",4,"ngIf"],[4,"ngIf"],["notranslate","",1,"row","align-items-center","ms-0","py-2","userGrid",3,"click","ngClass"],[1,"col-auto"],["notranslate","","size","25","initialsSize","2",1,"directory-avatar",3,"src","value","textSizeRatio"],[1,"col"],[1,"userName"],[1,"userEmail"],[3,"buttonCount"],[1,"rightInner"],[2,"padding-top","calc(20vh)","color","#888","font-size","16px"],[2,"padding-bottom","30px"],["src","/assets/img/icon-people-circle.svg",2,"width","120px","opacity",".4"],["notranslate",""],[2,"padding","20px"],[2,"width","100%"],[2,"width","90px","vertical-align","top"],["notranslate","","size","70","initialsSize","2",3,"src","value","textSizeRatio"],[2,"vertical-align","top"],[1,"profileHeader"],["class","companyName",4,"ngIf"],[1,"icons"],["style","margin-right: 15px;",4,"ngIf"],[1,"profileBody"],["class","infoItem",4,"ngIf"],["class","infoItem","style","margin-top: 0.5rem;",4,"ngIf"],["class","infoItem","style","margin-top: 0.5rem; font-style: italic;",4,"ngIf"],["style","padding-top: 10px;",4,"ngIf"],[1,"companyName"],[2,"margin-right","15px"],["title","Create new email",3,"href"],["src","/assets/img/office/outlook.svg",2,"width","16px","height","16px"],["title","Open teams chat","target","_blank",3,"href"],["src","/assets/img/office/teams.svg",2,"width","16px","height","16px"],[1,"infoItem"],[3,"href"],[1,"fa","fa-envelope",2,"width","15px","font-size","14px"],["title","Copy email address",1,"fal","fa-copy","copyLink",3,"click","cdkCopyToClipboard"],[1,"fa","fa-phone",2,"width","15px","font-size","14px"],["title","Copy phone number",1,"fal","fa-copy","copyLink",3,"click","cdkCopyToClipboard"],[1,"fa","fa-mobile-alt",2,"width","15px","font-size","14px","padding-left","2px"],["title","Copy mobile number",1,"fal","fa-copy","copyLink",3,"click","cdkCopyToClipboard"],[1,"infoItem",2,"margin-top","0.5rem"],[1,"infoItem",2,"margin-top","0.5rem","font-style","
1italic"],[2,"padding-top","10px"],["title","View LinkedIn profile","target","_blank",3,"href"],["src","/assets/img/office/linkedin.png",2,"width","26px","height","22px"],[1,"w-45-responsive",3,"onEscape"],[1,"bladeHeader","clearfix"],[1,"bladeTitle"],[1,"bladeCommands"],["title","Close",1,"pageHeaderButton",3,"click"],[1,"fal","fa-times"],[1,"bladeBody"],[1,"btn","btn-secondary",3,"click"],[1,"bladeBodyHeading"]],template:function(r,s){1&r&&(n.nrm(0,"page-header",0),n.j41(1,"div",1)(2,"kendo-splitter",2)(3,"kendo-splitter-pane",3)(4,"div",4)(5,"searchBox",5),n.bIt("onSubmit",function(){return s.searchForText()}),n.k0s()(),n.j41(6,"kendo-grid",6),n.nI1(7,"async"),n.bIt("selectionChange",function(a){return s.gridUserSelectionChange(a)})("dataStateChange",function(a){return s.dataStateChange(a)}),n.DNE(8,Lm,2,2,"ng-template",7),n.nrm(9,"kendo-grid-messages",8),n.j41(10,"kendo-grid-column",9),n.DNE(11,$m,8,8,"ng-template",10),n.k0s(),n.DNE(12,Um,3,1,"ng-template",11),n.k0s()(),n.j41(13,"kendo-splitter-pane")(14,"div",12)(15,"div",13),n.DNE(16,Vm,5,0,"div",14)(17,sg,22,14,"div",15),n.k0s()()()()(),n.DNE(18,Cg,13,1,"blade-display",16)),2&r&&(n.Y8G("title",s._user.GetPortalString("Directory","Directory")),n.R7$(3),n.Y8G("scrollable",!1),n.R7$(2),n.Y8G("model",s.searchModel)("label","Search directory..."),n.R7$(),n.Y8G("data",n.bMT(7,15,s.gridData))("pageSize",s.state.take)("skip",s.state.skip)("sortable",n.lJ4(17,Gm))("sort",s.state.sort)("pageable",!0)("filter",s.state.filter)("filterable","none"),n.R7$(10),n.Y8G("ngIf",!s.user),n.R7$(),n.Y8G("ngIf",s.user&&!s.showProfile),n.R7$(),n.Y8G("ngIf",s.showProfile))},dependencies:[Q.C,M.YU,M.bT,I._ab,I.Xhb,I.Ioe,I.i4w,I.jqs,I.hwh,I.Zcx,I.F$9,I.HGh,st.y,yt.T,jm.fw,Et.J,an.Hn,an.R7,St.j,Om.dF,M.Jj],styles:['.userGrid[_ngcontent-%COMP%]   .userEmail[_ngcontent-%COMP%]{font-size:14px;height:16px;overflow:hidden;text-overflow:ellipsis;color:var(--main-alt-text-color)}.userGrid[_ngcontent-%COMP%]:hover, .userGrid[_ngcontent-%COMP%]:hover   tr[_ngcontent-%COMP%], .userGrid[_ngcontent-%COMP%]:hover   tr[_ngcontent-%COMP%]:hover{background:var(--main-alt-background)!important}.profileBody[_ngcontent-%COMP%]{margin-top:20px;padding-top:20px;border-top:solid 1px #ced4da}.profileBody[_ngcontent-%COMP%]   .infoItem[_ngcontent-%COMP%]{padding-bottom:3px}.profileHeader[_ngcontent-%COMP%]   .userName[_ngcontent-%COMP%]{margin-bottom:0;max-width:100%;overflow:hidden;font-size:28px;font-weight:300}.profileHeader[_ngcontent-%COMP%]   .companyName[_ngcontent-%COMP%]{padding-top:10px 0}.profileHeader[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{padding-top:10px}.copyLink[_ngcontent-%COMP%]{margin-left:10px;font-size:10px;cursor:pointer}.copyEmail[_ngcontent-%COMP%]{margin-left:15px;cursor:pointer;color:var(--main-link-color)}.currentUser[_ngcontent-%COMP%], .currentUser[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%], .currentUser[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{background:var(--main-alt-background)!important}.letterLookup[_ngcontent-%COMP%]{text-align:center;margin:0 auto}.letterLookup[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:10px}.letterLookup[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-left:0}.card[_ngcontent-%COMP%]{border:solid 1px var(--main-border-color);box-shadow:0 5px 8px var(--main-box-shadow);transition:box-shadow .6s;transition-timing-function:cubic-bezier(.16,1,.29,.99)}.card-header[_ngcontent-%COMP%]{background:#fff;color:var(--main-text-color)}.card-body[_ngcontent-%COMP%]{padding:5px 20px 20px}.card-footer[_ngcontent-%COMP%]{background:#f7f9fb;text-align:right;min-height:48px}.right[_ngcontent-%COMP%]{background:var(--main-alt-background)}.rightInner[_ngcontent-%COMP%]{text-align:center;height:100%}.ribbon[_ngcontent-%COMP%]{position:absolute;right:-5px;top:-5px;z-index:1;overflow:hidden;width:75px;height:75px;text-align:right}.ribbon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px;font-weight:700;color:#fff;text-transform:uppercase;text-align:center;line-height:20px;transform:rotate(45deg);width:100px;display:block;background:#79a70a;background:linear-gradient(var(--main-border-color) 0%,var(--main-border-color) 100%);box-shadow:0 3px 10px -5px #000;position:absolute;top:19px;right:-21px}.ribbon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{content:"";position:absolute;
1left:0;top:100%;z-index:-1;border-left:3px solid var(--main-border-color);border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid var(--main-border-color)}.ribbon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;top:100%;z-index:-1;border-left:3px solid transparent;border-right:3px solid var(--main-border-color);border-bottom:3px solid transparent;border-top:3px solid var(--main-border-color)}']})}}return i})();var Eg=C(68430),Po=C(816),Sg=C(86983),kg=C(48397),Rg=C(24295),ze=C(37367),Ag=C(84320);const Tg=["basicMenu"],Ho=()=>({allowUnsort:!1,mode:"single"}),wg=(i,t)=>({newEmail:i,currentMail:t}),Dg=()=>({mode:"single"});function xg(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",3),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}if(2&i){const e=n.XpG();n.HbH("pageHeaderButton"),n.Y8G("title","Edit messages")("label","Edit All")("icon","fal fa-pencil")("moduleType",e.moduleType)("permission","Edit")}}function Ig(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",3),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}if(2&i){const e=n.XpG();n.HbH("pageHeaderButton Finish"),n.Y8G("title","Close editing")("label","Finish Edit")("icon","fal fa-pencil")("moduleType",e.moduleType)("permission","Edit")}}function Mg(i,t){1&i&&(n.j41(0,"div"),n.EFF(1," Searching... "),n.k0s())}function Fg(i,t){1&i&&(n.j41(0,"div"),n.EFF(1," No records available. "),n.k0s())}function Ng(i,t){if(1&i&&n.DNE(0,Mg,2,0,"div",21)(1,Fg,2,0,"div",21),2&i){const e=n.XpG();n.Y8G("ngIf",e._dataService.isBusy),n.R7$(),n.Y8G("ngIf",!e._dataService.isBusy)}}function jg(i,t){1&i&&n.nrm(0,"span",34)}function Og(i,t){1&i&&n.nrm(0,"span",35)}function Gg(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",26),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG();return n.Njj(o.showArticle(s.id.toString()))}),n.j41(1,"div",27)(2,"div",28),n.EFF(3),n.k0s(),n.j41(4,"div",29),n.EFF(5),n.k0s(),n.nrm(6,"div",30),n.nI1(7,"SafeHtml"),n.k0s(),n.j41(8,"div",31),n.DNE(9,jg,1,0,"span",32)(10,Og,1,0,"span",33),n.EFF(11),n.nI1(12,"localizedMMMdDateZ"),n.k0s()()}if(2&i){const e=t.$implicit,r=n.XpG(),s=n.sdS(29);n.Y8G("contextMenu",s)("contextMenuValue",e)("ngClass",n.l_i(13,wg,r.checkIfNew(e),e.id==r.displayArticle.id)),n.R7$(3),n.SpI(" ",e.author," "),n.R7$(2),n.SpI(" ",e.subject," "),n.R7$(),n.Y8G("innerHTML",n.bMT(7,9,e.summary),n.npT),n.R7$(3),n.Y8G("ngIf",10==e.priority),n.R7$(),n.Y8G("ngIf",20==e.priority),n.R7$(),n.SpI(" ",n.bMT(12,11,e.date)," ")}}function Bg(i,t){1&i&&n.nrm(0,"kendo-pager-prev-buttons")(1,"kendo-pager-numeric-buttons",36)(2,"kendo-pager-next-buttons"),2&i&&(n.R7$(),n.Y8G("buttonCount",5))}function Pg(i,t){1&i&&(n.j41(0,"div",37)(1,"div",38)(2,"div"),n.nrm(3,"img",39),n.k0s(),n.EFF(4," Select an item to read "),n.k0s()())}function Hg(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",56),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.deleteArticle(s.displayArticle))}),n.nrm(1,"span",57),n.k0s()}}function Lg(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",58),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.editArticle(s.displayArticle.id))}),n.nrm(1,"span",59),n.EFF(2,"Edit "),n.k0s()}}function $g(i,t){if(1&i&&(n.j41(0,"span",62),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.JRh(e.groupName)}}function Ug(i,t){if(1&i&&(n.j41(0,"div",60)(1,"strong"),n.EFF(2,"To:"),n.k0s(),n.EFF(3,"\xa0 "),n.DNE(4,$g,2,1,"span",61),n.k0s()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.groups)}}function Vg(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",67),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.openAttachment(s))}),n.j41(1,"span",68),n.EFF(2,"Download "),n.j41(3,"var"),n.EFF(4),n.k0s()(),n.j41(5,"span",69),n.EFF(6),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(4),n.JRh(e.name),n.R7$(2),n.JRh(e.name)}}function Yg(i,t){if(1&i&&(n.j41(0,"div",63)(1,"div",64),n.EFF(2," Attachments "),n.k0s(),n.j41(3,"div",65),n.DNE(4,Vg,7,2,"button",66),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.files)}}function zg(i,t){if(1&i){const e=n.RV6();n.j41(0,"div")(1,"div",40)(2,"div",41)(3,"div",42),n.DNE(4,Hg,2,0,"button",43),n.j41(5,"rbac-button",44),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.openEntityEventsBlade())}),n.k0s(),n.j41(6,"rbac-button",3),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.showHistory(s.displayArticle))}),n.k0s(),n.DNE(7,Lg,3,0,"button",45),n.j41(8,"button",46),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.downloadPDF(s.displayArticle))}),n.nrm(9,"span",47),n.EFF(10,"Download "),n.k0s()(),n.j41(11,"div",48),n.EFF(12),n.k0s(),n.j41(13,"div",49),n.EFF(14),n.k0s(),n.j41(15,"div",50),n.EFF(16),n.k0s(),n.j41(17,"div",51),n.EFF(18),n.nI1(19,"localizedMediumDateZ"),n.k0s()(),n.j41(20,"div",52),n.DNE(21,Ug,5,1,"div",53),n.nrm(22,"div",54),n.nI1(23,"SafeHtml"),n.k0s(),n.DNE(24,Yg,5,1,"div",55),n.k0s()()}if(2&i){const e=n.XpG();n.R7$(4),n.Y8G("ngIf",e.displayArticle.canBeDeleted),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Audit Trail")("icon","fal fa-book")("moduleType",e.moduleType)("feature","Partner_Security_AuditTrail")("permission","Full"),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","View history")("label","History")("icon","fal fa-user-clock")("moduleType",e.moduleType)("permission","Full"),n.R7$(),n.Y8G("ngIf",e.displayArticle.canBeEdited),n.R7$(5),n.SpI(" ",e.displayArticle.author," "),n.R7$(2),n.SpI(" ",e.displayArticle.priority," "),n.R7$(2),n.SpI(" ",e.displayArticle.subject," "),n.R7$(2),n.SpI(" ",n.bMT(19,23,e.displayArticle.date)," "),n.R7$(3),n.Y8G("ngIf",e.displayArticle.groups.length>0),n.R7$(),n.Y8G("innerHTML",n.bMT(23,25,e.displayArticle.body),n.npT),n.R7$(2),n.Y8G("ngIf",e.displayArticle.files.length>0)}}function Xg(i,t){1&i&&(n.j41(0,"span",88),n.EFF(1,"User"),n.k0s())}function Wg(i,t){1&i&&(n.j41(0,"span",89),n.EFF(1,"Email"),n.k0s())}function qg(i,t){1&i&&(n.EFF(0),n.nI1(1,"localizedShort")),2&i&&n.SpI(" ",n.bMT(1,1,t.$implicit.dateViewed)," ")}function Qg(i,t){1&i&&(n.j41(0,"span",90),n.EFF(1,"Last viewed"),n.k0s())}function Zg(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",91)(1,"div",92),n.EFF(2," User Views "),n.k0s(),n.j41(3,"button",93),n.bIt("click",function(){n.eBV(e),n.XpG();const s=n.sdS(2);return n.Njj(s.saveAsExcel())}),n.nrm(4,"span",94),n.EFF(5,"Download "),n.k0s()()}}function Jg(i,t){if(1&i){const e=n.RV6();
1n.j41(0,"div",80)(1,"kendo-grid",81,1),n.bIt("selectionChange",function(s){n.eBV(e);const o=n.XpG(2);return n.Njj(o.installSelectionChange(s))}),n.j41(3,"kendo-grid-column",82),n.DNE(4,Xg,2,0,"ng-template",83),n.k0s(),n.j41(5,"kendo-grid-column",84),n.DNE(6,Wg,2,0,"ng-template",83),n.k0s(),n.j41(7,"kendo-grid-column",85),n.DNE(8,qg,2,3,"ng-template",16),n.EFF(9,"> "),n.DNE(10,Qg,2,0,"ng-template",83),n.k0s(),n.DNE(11,Zg,6,0,"ng-template",86),n.nrm(12,"kendo-grid-excel",87),n.k0s()()}if(2&i){const e=n.XpG(2);n.R7$(),n.Y8G("kendoGridBinding",e.userViewData)("pageSize",10)("pageable",!0)("sortable",n.lJ4(11,Ho))("sort",e.installState.sort)("filter",e.installState.filter)("rowSelected",e.isRowSelected)("selectable",n.lJ4(12,Dg))("filterable",e.isFilter),n.R7$(11),n.Y8G("fileName",e.getDownloadName())("fetchData",e.allData)}}function Kg(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",70),n.bIt("onEscape",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeHistory())}),n.j41(1,"div",71)(2,"div",72),n.EFF(3," Message Views "),n.k0s(),n.j41(4,"div",73)(5,"button",74),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeHistory())}),n.nrm(6,"span",75),n.EFF(7,"Close "),n.k0s()()(),n.j41(8,"div",76)(9,"h3",62),n.EFF(10),n.k0s(),n.DNE(11,Jg,13,13,"div",77),n.j41(12,"blade-footer",78)(13,"button",79),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeHistory())}),n.EFF(14,"Close "),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(10),n.SpI(" ",e.viewSubject," "),n.R7$(),n.Y8G("ngIf",e.userViewData.length>0)}}function e_(i,t){if(1&i&&(n.j41(0,"span",62),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.JRh(e.groupName)}}function t_(i,t){if(1&i&&(n.j41(0,"div",60)(1,"strong"),n.EFF(2,"To:"),n.k0s(),n.EFF(3,"\xa0 "),n.DNE(4,e_,2,1,"span",61),n.k0s()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.groups)}}function n_(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",67),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.openAttachment(s))}),n.j41(1,"span",68),n.EFF(2,"Download "),n.j41(3,"var"),n.EFF(4),n.k0s()(),n.j41(5,"span",69),n.EFF(6),n.k0s()()}if(2&i){const e=t.$implicit;n.R7$(4),n.JRh(e.name),n.R7$(2),n.JRh(e.name)}}function i_(i,t){if(1&i&&(n.j41(0,"div",63)(1,"div",64),n.EFF(2," Attachments "),n.k0s(),n.j41(3,"div",65),n.DNE(4,n_,7,2,"button",66),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.displayArticle.files)}}function r_(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",95)(1,"div",71)(2,"div",72),n.EFF(3," Message "),n.k0s(),n.j41(4,"div",73)(5,"button",74),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeArticle())}),n.nrm(6,"span",75),n.EFF(7,"Close "),n.k0s()()(),n.j41(8,"div",76)(9,"div",96),n.EFF(10),n.k0s(),n.j41(11,"div",41)(12,"div",48),n.EFF(13),n.k0s(),n.j41(14,"div",49),n.EFF(15),n.k0s(),n.j41(16,"div",51),n.EFF(17),n.nI1(18,"localizedMediumDateZ"),n.k0s()(),n.j41(19,"div",52),n.DNE(20,t_,5,1,"div",53),n.nrm(21,"div",54),n.nI1(22,"SafeHtml"),n.k0s(),n.DNE(23,i_,5,1,"div",55),n.j41(24,"blade-footer")(25,"button",97),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeArticle())}),n.EFF(26,"Close "),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(10),n.SpI(" ",e.displayArticle.subject," "),n.R7$(3),n.SpI(" ",e.displayArticle.author," "),n.R7$(2),n.SpI(" ",e.displayArticle.priority," "),n.R7$(2),n.SpI(" ",n.bMT(18,7,e.displayArticle.date)," "),n.R7$(3),n.Y8G("ngIf",e.displayArticle.groups.length>0),n.R7$(),n.Y8G("innerHTML",n.bMT(22,9,e.displayArticle.body),n.npT),n.R7$(2),n.Y8G("ngIf",e.displayArticle.files.length>0)}}function s_(i,t){if(1&i&&(n.j41(0,"div",105),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e," ")}}function o_(i,t){if(1&i&&(n.j41(0,"div",103),n.DNE(1,s_,2,1,"div",104),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.errors)}}function a_(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",95)(1,"div",71)(2,"div",72),n.EFF(3," Settings "),n.k0s(),n.j41(4,"div",73)(5,"button",74),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeAdminEdit())}),n.nrm(6,"span",75),n.EFF(7,"Cancel "),n.k0s()()(),n.j41(8,"div",76)(9,"div",98)(10,"div",99),n.EFF(11," Content Subscriptions "),n.k0s(),n.DNE(12,o_,2,1,"div",100),n.nrm(13,"subscription-editor",101),n.k0s(),n.j41(14,"blade-footer")(15,"rbac-button",102),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitAdmin())}),n.k0s(),n.j41(16,"button",97),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeAdminEdit())}),n.EFF(17,"Cancel "),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(12),n.Y8G("ngIf",e.errors.length>0),n.R7$(),n.Y8G("subscription",e.contentSubscriptions),n.R7$(2),n.HbH("btn btn-primary me-2"),n.Y8G("label","Submit")("disabled",e._dataService.isBusy)("moduleType",e.moduleType)("permission","Full")}}function l_(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",106)(1,"div",71)(2,"div",72),n.EFF(3," Edit Message "),n.k0s(),n.j41(4,"div",73)(5,"button",74),n.bIt("click",function(){n.eBV(e);const s=n.XpG();
1return n.Njj(s.cancelForm())}),n.nrm(6,"span",75),n.EFF(7,"Cancel "),n.k0s()()(),n.j41(8,"div",76)(9,"message-editor",107),n.bIt("onSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitForm())})("onCancel",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.k0s()()()}if(2&i){const e=n.XpG();n.R7$(9),n.Y8G("message",e.articleModel)("errors",e.errors)("categories",e.categoryList)("uploader",e.uploader)("moduleType",e.moduleType)}}function c_(i,t){1&i&&(n.nrm(0,"span",108),n.EFF(1," Mark as Unread "))}function d_(i,t){1&i&&(n.nrm(0,"span",108),n.EFF(1," Mark All as Read "))}let Lo=(()=>{class i{constructor(e,r,s,o,a,l,c,u,d,m,h,p,_,v,b,y){this._blade=e,this._browserutils=r,this._confirmService=s,this._messageService=o,this._route=a,this._slimLoading=l,this._dataService=c,this._gridService=u,this._user=d,this._hotkeysService=m,this._router=h,this.fileUploadService=p,this.auditTrailService=_,this.userSelectionService=v,this.sidebarBadgeService=b,this.mixpanelService=y,this.maxFileSize=20971520,this.moduleType=G.nR.Company_Messages,this.editMode=!1,this.tagList=[],this.categoryList=[],this.articleList=[],this.popularList=[],this.newestList=[],this.searchList=[],this.isInSearch=!1,this.searchModel={text:"",isDebounce:!1,isEnter:!1},this.articleModel={author:"",body:"",category:"",date:"",summary:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,subject:"",isNew:!1,isSendAsEmail:!1,isShowAsAlert:!1,isSubscribed:!1,isSendAsBroadcast:!1,priority:0,removedFiles:[],tags:[],tagString:"",viewCount:0,permalink:"",templatePackId:0,templatePackName:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.newArticleModel={author:"",body:"",category:"",date:"",summary:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,subject:"",isNew:!1,isSendAsEmail:!1,isShowAsAlert:!1,isSubscribed:!1,isSendAsBroadcast:!1,priority:0,removedFiles:[],tags:[],tagString:"",viewCount:0,permalink:"",templatePackId:0,templatePackName:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.displayArticle={author:"",body:"",category:"",date:"",summary:"",files:[],groups:[{id:0,groupName:"Everyone"}],id:0,subject:"",isNew:!1,isSendAsEmail:!1,isShowAsAlert:!1,isSubscribed:!1,isSendAsBroadcast:!1,priority:0,removedFiles:[],tags:[],tagString:"",viewCount:0,permalink:"",templatePackId:0,templatePackName:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1},this.errors=[],this.showMessage=!1,this.showForm=!1,this.showViews=!1,this.viewedMessages=[],this.showEdit=!1,this.showAdmin=!1,this.contentSubscriptions={type:te.sO.Messages,packages:[]},this.isFilter=!0,this.state={skip:0,take:2,sort:[{field:"date",dir:"desc"}]},this.sort=[{field:"date",dir:"desc"}],this.baseFilter=[{field:"text",operator:"contains",value:"",ignoreCase:!0}],this.baseComposite={logic:"and",filters:this.baseFilter},this.isRowSelected=S=>!1,this.userViewData=[],this.viewSubject="",this.installState={skip:0,take:10,sort:[{field:"displayName",dir:"asc"}]},this._gridService.setBaseURL("/api/messages"),this.gridData=u,this.uploader=this.fileUploadService.instance({url:"/api/messages/files",maxFileSize:this.maxFileSize},S=>{S.additionalParameter={messageId:this.articleModel.id}}),this.messageCountSubscription=this._messageService.currentCount.subscribe(S=>{}),this.fillData(),this.allData=this.allData.bind(this)}ngOnInit(){this.paramsSubscription=this._route.params.subscribe(e=>{e.id&&this.showArticle(e.id)}),this.refreshFunc=this._hotkeysService.add(new Po.t5("f2",e=>(this.refresh(),!1)))}ngOnDestroy(){this.messageCountSubscription&&this.messageCountSubscription.unsubscribe(),this.paramsSubscription&&this.paramsSubscription.unsubscribe(),this._hotkeysService.remove(this.refreshFunc)}toggleEdit(){return this.editMode=!this.editMode,this.editMode?this._browserutils.openToast('Click on an item to edit. Click "Finish Edit" to stop.',"Edit Mode",N.R.success):this._browserutils.clearToasts(),this.fillData(),!1}searchForText(){const e=this.searchModel.text.toLowerCase().trim();if(""!=e)this.baseFilter[0].field="text",this.baseFilter[0].operator="contains",this.baseFilter[0].value=e,this.state.filter=this.baseComposite,this.state.skip=0,this.state.take=10,this.isInSearch=!0;else{let r;this.state.skip=0,this.state.take=10,this.state.filter=r}this.fillData()}clearSearch(){return this.searchModel.text="",this.isInSearch=!1,!1}fillData(){this.state.skip=0,this.state.take=10;const e=this._gridService.convertFrom(this.state,null,this.state.filter);this.editMode&&(e.filters+="^all",e.conditions+="^eq",e.values+="^true"),this.viewedMessages=[],this._gridService.query(e)}
1submitForm(){this.articleModel.tags=[];const e=this.articleTags.split(",");for(let r=0;r<e.length;r++)this.articleModel.tags.push({tag:e[r],count:0});return this._slimLoading.start(),this._dataService.post(this.articleModel,"/api/messages").subscribe(r=>{this.fillData(),this.cancelForm(),this._slimLoading.complete(),this._browserutils.openToast(this.articleModel.id>0?"Message successfully updated.":"Message successfully created.","Done!",N.R.success),this.articleModel.id=r.data.id,this.uploader.uploadAll()},r=>{this.errors=this._dataService.processErrors(r)}),!1}showArticle(e){const r=new A.Yj;return this.editMode?(r.filters="id^all",r.conditions="eq^eq",r.values=e+"^true"):(r.filters="id",r.conditions="eq",r.values=e),this._slimLoading.start(),this._dataService.get(r,"/api/messages").subscribe(s=>{s.data.length>0&&(this.displayArticle=s.data[0],window.innerWidth<600&&(this.showMessage=!0),this.displayArticle&&this.viewedMessages.push(this.displayArticle.id),this.mixpanelService.trackEvent(K.N.MessageView,{Subject:this.displayArticle.subject,Permalink:this.displayArticle.permalink}),this._slimLoading.complete(),history.replaceState(null,"","/app/company/messages/"+this.displayArticle.id.toString()),r.filters="id",r.conditions="eq",r.values=this.displayArticle.id.toString(),this._dataService.get(r,"/api/messages/view").subscribe(a=>{this._dataService.get(new A.Yj,"/api/messages/new").subscribe(l=>{this._messageService.sendMessage(l.data.new),this.sidebarBadgeService.triggerRefresh()})}))}),!1}removeViewed(e){for(let r=0;r<this.viewedMessages.length;r++)if(this.viewedMessages[r]==e){this.viewedMessages.splice(r,1);break}}checkIfNew(e){if(!e.isNew)return!1;for(let r=0;r<this.viewedMessages.length;r++)if(e.id==this.viewedMessages[r])return!1;return e.isNew}editArticle(e){const r=new A.Yj;return this.editMode?(r.filters="id^all^isEdit",r.conditions="eq^eq^eq",r.values=e.toString()+"^true^true"):(r.filters="id^isEdit",r.conditions="eq^eq",r.values=e.toString()+"^true"),this._slimLoading.start(),this._dataService.get(r,"/api/messages").subscribe(s=>{if(this._slimLoading.complete(),s.data.length>0){if(this.articleModel=s.data[0],this.categoryList=s.extended,this.articleTags="",this.articleModel.tags)for(let o=0;o<this.articleModel.tags.length;o++)this.articleTags.length>0&&(this.articleTags+=", "),this.articleTags+=this.articleModel.tags[o].tag;this.errors=[],this.showForm=!0,this.uploader.clearQueue(),this._blade.showMe(),this.displayArticle.id=0}}),!1}deleteArticle(e){return this._confirmService.activate('Are you sure you want to delete "'+e.subject+'"?').then(r=>{r==ne.x.OK&&(this._slimLoading.start(),this._dataService.delete(e.id,"/api/messages").subscribe(s=>{this.fillData(),this.closeArticle(),this._slimLoading.complete(),this._browserutils.openToast("Message successfully deleted.","Done!",N.R.success)},s=>{this.errors=this._dataService.processErrors(s),this._browserutils.pushErrorToast(this.errors[0])}))}),!1}cancelForm(){return this.closeArticle()}closeArticle(){return this.showForm=!1,this.showMessage=!1,this.showViews=!1,this.displayArticle.id=0,this._blade.closeMe(),history.replaceState(null,"","/app/company/messages"),!1}addArticle(){return this.articleModel=JSON.parse(JSON.stringify(this.newArticleModel)),this.showForm=!0,this.articleTags="",this.uploader.clearQueue(),this.errors=[],this.categoryList=this._gridService.data.extended,this._blade.showMe(),!1}closeMe(){this._blade.closeMe(),this.showForm=!1,this.displayArticle.id=0}clickEdit(){return this.showEdit=!this.showEdit,this.showEdit?this._blade.showMe():this._blade.closeMe(),!1}showAdminEdit(){const e=new A.Yj;return e.filters="type",e.conditions="eq",e.values=this.contentSubscriptions.type.toString(),this._dataService.get(e,"/api/content/subscription").subscribe(r=>{this.contentSubscriptions=r.data,this.showAdmin=!0,this._blade.showMe()}),!1}toggleFilter(){return this.isFilter=!this.isFilter,!1}submitAdmin(){return this._slimLoading.start(),this._dataService.post(this.contentSubscriptions,"/api/content/subscription").subscribe(e=>{this.fillData(),this._browserutils.openToast("Subscription list updated.","Done!",N.R.success),this.closeAdminEdit(),this._slimLoading.complete()},e=>{this.errors=this._dataService.processErrors(e)}),!1}closeAdminEdit(){return this.showAdmin=!1,this._blade.closeMe(),!1}
1dataStateChange(e){this.state.skip=e.skip,this.state.take=e.take;const r=this._gridService.convertFrom(this.state,null,this.state.filter);this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._gridService.query(r)}gridUserSelectionChange(e){}openAttachment(e){return this._dataService.downloadFileNoAuth(e.viewUrl).subscribe(r=>{this._dataService.downloadContent(r,e.name)},r=>{this.errors.push("There was a problem with the request")}),!1}refresh(){this.fillData()}showHistory(e){const r=new A.Yj;return r.filters="id",r.conditions="eq",r.values=e.id.toString(),this.viewSubject=e.subject,this._slimLoading.start(),this._dataService.get(r,"/api/messages/history").subscribe(s=>{s.data.length>0&&(this.userViewData=s.data,this.showViews=!0,this._slimLoading.complete())}),!1}allData(){return{data:(0,Eg.eh)(this.userViewData,{}).data}}installSelectionChange(e){this.userSelectionService.selectUser(e.selectedRows[0].dataItem.id),this._router.navigate(["/app/usage/users"])}closeHistory(){this.showViews=!1}markAllAsRead(){return this._confirmService.activate("Are you sure you want to mark all messages as read?").then(e=>{e==ne.x.OK&&(this._slimLoading.start(),this._dataService.post(new A.Yj,"/api/messages/view/all").subscribe(r=>{this.fillData(),this._slimLoading.complete(),this._browserutils.openToast("Messages marked as read.","Done!",N.R.success),this._messageService.sendMessage(0),this.sidebarBadgeService.triggerRefresh()},r=>{this.errors=this._dataService.processErrors(r),this._browserutils.pushErrorToast(this.errors[0])}))}),!1}markUnread(e){this._dataService.post({id:e.id},"/api/messages/view/clear").subscribe(r=>{this.removeViewed(e.id),e.isNew=!0,this._dataService.get(new A.Yj,"/api/messages/new").subscribe(s=>{this._messageService.sendMessage(s.data.new),this.sidebarBadgeService.triggerRefresh()})},r=>{this.errors=this._dataService.processErrors(r)})}downloadPDF(e){return this.errors=[],this._slimLoading.start(),this._browserutils.busyCursor(),this._dataService.downloadFile("/api/messages/pdf?f=id&c=eq&v="+e.id.toString()).subscribe(r=>{this._dataService.downloadContent(r,this._browserutils.SafeName(e.subject)+".pdf"),this._slimLoading.complete(),this._browserutils.normalCursor()},r=>{this._browserutils.normalCursor(),this._dataService.processErrors(r)}),!1}getDownloadName(){return`MessageViews-${this._user.UserProfile.company.safeName}-${this._browserutils.currentDate()}.xlsx`}openEntityEventsBlade(){this.displayArticle&&this.auditTrailService.displayEvents(U.F.Message,this.displayArticle.id)}static{this.\u0275fac=function(r){return new(r||i)(n.rXU(Q.C),n.rXU(N.b),n.rXU(ne.G),n.rXU(Sg.I),n.rXU(P.nX),n.rXU(Oe.KO),n.rXU(A.jK),n.rXU(le.M),n.rXU(rt.D),n.rXU(Po.dr),n.rXU(P.Ix),n.rXU(ke.P),n.rXU(cn.L),n.rXU(kg.D),n.rXU(Rg.D),n.rXU(K.U))}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["az-usage"]],viewQuery:function(r,s){if(1&r&&n.GBs(Tg,5),2&r){let o;n.mGM(o=n.lsd())&&(s.basicMenu=o.first)}},features:[n.Jv_([ke.P])],decls:32,vars:37,consts:[["basicMenu",""],["grid2",""],[3,"onRefresh","title"],[3,"click","title","label","icon","moduleType","permission"],[3,"title","label","class","icon","moduleType","permission","click",4,"ngIf"],["title","Refresh view",1,"pageHeaderButtonImage","pageHeaderButtonRefresh",3,"click"],[1,"fal","fa-sync"],[2,"height","calc(100vh - 126px)"],[1,"h-100","border-0",2,"background-color","var(--main-background)"],["size","30%","min","300px","max","50%",1,"d-flex","flex-column","pe-3",3,"scrollable"],[1,"pt-3"],[1,"w-100",3,"onSubmit","model","label"],[1,"h-100","overflow-hidden",3,"selectionChange","dataStateChange","data","pageSize","skip","sortable","sort","pageable","filter","filterable"],["kendoGridNoRecordsTemplate",""],["noRecords",""],[1,"p-0"],["kendoGridCellTemplate",""],["kendoPagerTemplate",""],[1,"split-pane-content-secondary",2,"height","100%"],[1,"right",2,"height","100%"],["class","rightInner",4,"ngIf"],[4,"ngIf"],["class","w-65-responsive",3,"onEscape",4,"ngIf"],["class","w-45-responsive",4,"ngIf"],["class","w-65-responsive",4,"ngIf"],["contextMenuItem","",3,"execute"],[1,"row","align-items-center","ms-0","pe-2","mailItem",3,"click","contextMenu","contextMenuValue","ngClass"],["notranslate","",1,"col","leftBorder"],[1,"author"],[1,"subject"],[1,"summary",3,"innerHTML"],[1,"col-auto",2,"font-size","10px"],["class","warnText fa fa-star",4,"ngIf"],["class","alertText fa fa-star",4,"ngIf"],[1,"warnText","fa","fa-star"],[1,"alertText","fa","fa-star"],[3,"buttonCount"],[1,"rightInner"],[2,"padding-top","calc(20vh)","color","#888","font-size","16px"],["src","/assets/img/envelopes.svg",2,"width","175px","opacity",".4"],[2,"padding","20px"],[1,"displayHeader","clearfix"],[2,"float","right"],["title","Delete","class","pageHeaderButtonImage pageHeaderDelete",3,"click",4,"ngIf"],[3,"click","title","icon","moduleType","feature","permission"],["title","Edit","class","pageHeaderButton",3,"click",4,"ngIf"],["title","Download PDF",1,"pageHeaderButton",3,"click"],[1,"fal","fa-file-pdf"],["notranslate","",1,"displayAuthor"],[1,"displayPriority"],["notranslate","",1,"displaySubject"],[1,"displayDate"],[1,"displayBlock"],["class","displayGroups",4,"ngIf"],["notranslate","",1,"displayBody","froalaText","fr-view",3,"innerHTML"],["style","padding-top: 30px;",4,"ngIf"],["title","Delete",1,"pageHeaderButtonImage","pageHeaderDelete",3,"click"],[1,"fal","fa-tras
1h"],["title","Edit",1,"pageHeaderButton",3,"click"],[1,"fal","fa-pencil"],[1,"displayGroups"],["notranslate","",4,"ngFor","ngForOf"],["notranslate",""],[2,"padding-top","30px"],[1,"articleFileAttachmentHeader"],[1,"clearfix"],["type","button","title","Download attachment","class","downloadBox",3,"click",4,"ngFor","ngForOf"],["type","button","title","Download attachment",1,"downloadBox",3,"click"],[1,"visually-hidden"],["notranslate","","aria-hidden","true"],[1,"w-65-responsive",3,"onEscape"],[1,"bladeHeader","clearfix"],[1,"bladeTitle"],[1,"bladeCommands"],["title","Close",1,"pageHeaderButton",3,"click"],[1,"fal","fa-times"],[1,"bladeBody"],["class","epSpecs",4,"ngIf"],[1,"button-group"],[1,"btn","btn-secondary",3,"click"],[1,"epSpecs"],[1,"bottom-30","mh-100","overflow-hidden","kendo-top-border",3,"selectionChange","kendoGridBinding","pageSize","pageable","sortable","sort","filter","rowSelected","selectable","filterable"],["field","displayName","title","User"],["kendoGridHeaderTemplate",""],["field","email","title","Email"],["field","dateViewed","title","Last Viewed","filter","date","media","md"],["kendoGridToolbarTemplate","","position","top"],[3,"fileName","fetchData"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","User display name"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Email"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Date last viewed"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,"fw-bold"],["title","Download all",1,"kgToolbarButton","pageHeaderButton",3,"click"],[1,"fmd","fm-ExcelDocument"],[1,"w-45-responsive"],["notranslate","",1,"bladeBodyHeading"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"mb-3"],[1,"bladeBodyHeading"],["class","top-20",4,"ngIf"],[3,"subscription"],[3,"click","label","disabled","moduleType","permission"],[1,"top-20"],["class","alert alert-danger","role","alert",4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-danger"],[1,"w-65-responsive"],[3,"onSubmit","onCancel","message","errors","categories","uploader","moduleType"],[1,"fal","fa-user","verticalMenuIcon"]],template:function(r,s){if(1&r){const o=n.RV6();n.j41(0,"page-header",2),n.bIt("onRefresh",function(){return n.eBV(o),n.Njj(s.refresh())}),n.j41(1,"rbac-button",3),n.bIt("click",function(){return n.eBV(o),n.Njj(s.showAdminEdit())}),n.k0s(),n.j41(2,"rbac-button",3),n.bIt("click",function(){return n.eBV(o),n.Njj(s.addArticle())}),n.k0s(),n.DNE(3,xg,1,7,"rbac-button",4)(4,Ig,1,7,"rbac-button",4),n.j41(5,"button",5),n.bIt("click",function(){return n.eBV(o),n.Njj(s.refresh())}),n.nrm(6,"span",6),n.k0s()(),n.j41(7,"div",7)(8,"kendo-splitter",8)(9,"kendo-splitter-pane",9)(10,"div",10)(11,"searchBox",11),n.bIt("onSubmit",function(){return n.eBV(o),n.Njj(s.searchForText())}),n.k0s()(),n.j41(12,"kendo-grid",12),n.nI1(13,"async"),n.bIt("selectionChange",function(l){return n.eBV(o),n.Njj(s.gridUserSelectionChange(l))})("dataStateChange",function(l){return n.eBV(o),n.Njj(s.dataStateChange(l))}),n.DNE(14,Ng,2,2,"ng-template",13),n.nrm(15,"kendo-grid-messages",14),n.j41(16,"kendo-grid-column",15),n.DNE(17,Gg,13,16,"ng-template",16),n.k0s(),n.DNE(18,Bg,3,1,"ng-template",17),n.k0s()(),n.j41(19,"kendo-splitter-pane")(20,"div",18)(21,"div",19),n.DNE(22,Pg,5,0,"div",20)(23,zg,25,27,"div",21),n.k0s()()()()(),n.DNE(24,Kg,15,2,"blade-display",22)(25,r_,27,11,"blade-display",23)(26,a_,18,8,"blade-display",23)(27,l_,10,5,"blade-display",24),n.j41(28,"context-menu",null,0),n.DNE(30,c_,2,0,"ng-template",25),n.bIt("execute",function(l){return n.eBV(o),n.Njj(s.markUnread(l.value))}),n.DNE(31,d_,2,0,"ng-template",25),n.bIt("execute",function(){return n.eBV(o),n.Njj(s.markAllAsRead())}),n.k0s()}2&r&&(n.Y8G("title",s._user.GetPortalString("Messages","Messages")),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Edit settings")("label","Settings")("icon","fal fa-cog")("moduleType",s.moduleType)("permission","Full"),n.R7$(),n.HbH("pageHeaderButton"),n.Y8G("title","Add message")("label","Add")("icon","fal fa-plus")("moduleType",s.moduleType)("permission","Edit"),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("ngIf",s.editMode),n.R7$(5),n.Y8G("scrollable",!1),n.R7$(2),n.Y8G("model",s.searchModel)("label","Search messages..."),n.R7$(),n.Y8G("data",n.bMT(13,34,s.gridData))("pageSize",s.state.take)("skip",s.state.skip)("sortable",n.lJ4(36,Ho))("sort",s.state.sort)("pageable",!0)("filter",s.state.filter)("filterable","none"),n.R7$(10),n.Y8G("ngIf",0==s.displayArticle.id),n.R7$(),n.Y8G("ngIf",s.displayArticle.id>0),n.R7$(),n.Y8G("ngIf",s.showViews),n.R7$(),n.Y8G("ngIf",s.showMessage),n.R7$(),n.Y8G("ngIf",s.showAdmin),n.R7$(),n.Y8G("ngIf",s.showForm))},dependencies:[Q.C,M.YU,M.Sq,M.bT,ze.Q5,ze.Ek,ze.JO,I.NXp,I._ab,I.vGN,I.vqx,I.Xhb,I.Ioe,I.i4w,I.jqs,I.TiO,I.hwh,I.Zcx,I.F$9,I.HGh,Ag.i,st.y,yt.T,dn.i,un.dg,Ct.S,Et.J,an.Hn,an.R7,St.j,M.Jj,Ge.VO,Ge.FI,Ge.sT,ot.$n],styles:['.leftBorder[_ngcontent-%COMP%]{border-left:solid 3px transparent;padding:5px 5px 5px 15px}.summary[_ngcontent-%COMP%]{font-size:14px;color:#999}.newEmail[_ngcontent-%COMP%]   .leftBorder[_ngcontent-%COMP%]{border-left:solid 4px var(--main-link-color)}.newEmail[_ngcontent-%COMP%]   .author[_ngcontent-%COMP%]{font-weight:500}.newEmail[_ngcontent-%COMP%]   .subject[_ngcontent-%COMP%]{color:var(--main-link-color);font-weight:500}.currentMail[_ngcontent-%COMP%], .mailItem[_ngcontent-%COMP%]:hover{background:var(--main-alt-background)}.displayPriority[_ngcontent-%COMP%]{display:none}.displayBlock[_ngcontent-%COMP%]{margin-top:10px;border-top:solid 1px var(--main-border-color);padding-top:10px}.displayBody[_ngcontent-%COMP%]{padding-top:10px}.displayAuthor[_ngcontent-%COMP%]{color:var(--main-alt-text-color);font-size:10pt}.displaySubject[_ngcontent-%COMP%]{font-size:13pt}.displayGroups[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:12px}.displayGroups[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:", "}.displayGroups[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child:after{content:""}.displayDate[_ngcontent-%COMP%]{padding-top:5px;font-size:8pt;color:var(--main-alt-text-color)}.articleFileAttachmentHeader[_ngcontent-%COMP%]{margin-bottom:5px;font-size:8pt;text-transform:uppercase}.right[_ngcontent-%COMP%]{background:var(--main-alt-background)}.rightInner[_ngcontent-%COMP%]{text-align:center;height:100%}.epTitle[_ngcontent-%COMP%]{font-size:14px;padding:20px 0 10px;font-weight:700}']})}}return i})();var W=C(80821),u_=C(15170),f_=C(18359),Si=C(54138),$o=C(54281),p_=C(345),h_=C(25700),m_=C(81127),g_=C(49620),__=C(60713),v_=C(2227),b_=C(59318),y_=C(42634);const C_=()=>["Edit","Company_Applications"],Uo=()=>["Read","Partner_Account"],E_=()=>["Full","Partner_Account"],Vo=()=>({allowUnsort:!1,mode:"single"}),Yo=()=>({mode:"single"}),S_=i=>
1({cursor:i}),k_=()=>["Full","Company_Applications"];function R_(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",9),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}2&i&&(n.HbH("pageHeaderButton"),n.Y8G("title","Edit menu items")("label","Edit All")("icon","fal fa-pencil")("moduleType","Company_Applications")("permission","Read"))}function A_(i,t){if(1&i){const e=n.RV6();n.j41(0,"rbac-button",9),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.toggleEdit())}),n.k0s()}2&i&&(n.HbH("pageHeaderButton Finish"),n.Y8G("title","Close editing")("label","Finish Edit")("icon","fal fa-pencil")("moduleType","Company_Applications")("permission","Read"))}function T_(i,t){if(1&i&&(n.j41(0,"div",30)(1,"div",31)(2,"strong"),n.EFF(3,"Partner Advisories"),n.k0s(),n.nrm(4,"br"),n.EFF(5,"We found some issues with your setup that need attention. "),n.j41(6,"a",32),n.EFF(7,"More Info..."),n.k0s(),n.j41(8,"div",33)(9,"strong"),n.EFF(10,"Most Recent Issue"),n.k0s(),n.nrm(11,"br"),n.j41(12,"span",34),n.EFF(13),n.k0s(),n.nrm(14,"br"),n.EFF(15),n.nI1(16,"localizedMediumDate"),n.k0s()()()),2&i){const e=n.XpG(3);n.R7$(13),n.JRh(e.advisories[0].subject),n.R7$(2),n.SpI(" ",n.bMT(16,2,e.advisories[0].date)," ")}}function w_(i,t){if(1&i&&(n.qex(0),n.DNE(1,T_,17,4,"div",29),n.bVm()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.advisories.length>0)}}function D_(i,t){1&i&&(n.j41(0,"div",36)(1,"div",31)(2,"strong"),n.EFF(3,"CloudRadial Trial Setup"),n.k0s(),n.nrm(4,"br"),n.EFF(5,"Access your onboarding checklist using the Account option under the Partner tab. "),n.j41(6,"a",37),n.EFF(7,"Onboarding\xa0Checklist"),n.k0s()()())}function x_(i,t){if(1&i&&(n.qex(0),n.DNE(1,D_,8,0,"div",35),n.bVm()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e._user.UserProfile.partner.expiration)}}function I_(i,t){if(1&i&&(n.j41(0,"div",36)(1,"div",31)(2,"strong"),n.EFF(3,"Partner Advisories"),n.k0s(),n.nrm(4,"br"),n.EFF(5,"We found some issues with your setup that need attention. "),n.j41(6,"a",32),n.EFF(7,"More Info..."),n.k0s(),n.j41(8,"div",33)(9,"strong"),n.EFF(10,"Most Recent Issue"),n.k0s(),n.nrm(11,"br"),n.j41(12,"span",34),n.EFF(13),n.k0s(),n.nrm(14,"br"),n.EFF(15),n.nI1(16,"localizedMediumDate"),n.k0s()()()),2&i){const e=n.XpG(3);n.R7$(13),n.JRh(e.advisories[0].subject),n.R7$(2),n.SpI(" ",n.bMT(16,2,e.advisories[0].date)," ")}}function M_(i,t){if(1&i&&(n.qex(0),n.DNE(1,I_,17,4,"div",35),n.bVm()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.advisories.length>0)}}function F_(i,t){1&i&&n.nrm(0,"span",44)}function N_(i,t){if(1&i&&(n.j41(0,"li",34)(1,"a",42),n.EFF(2),n.DNE(3,F_,1,0,"span",43),n.k0s()()),2&i){const e=t.$implicit;n.R7$(),n.Mz_("routerLink","/app/company/articles/",e.id,""),n.R7$(),n.SpI("",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function j_(i,t){if(1&i&&(n.j41(0,"div",38)(1,"h3"),n.EFF(2,"Recommended Articles"),n.k0s(),n.j41(3,"div",39)(4,"ul",40),n.DNE(5,N_,4,4,"li",41),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(5),n.Y8G("ngForOf",e.frontPageList)}}function O_(i,t){1&i&&n.nrm(0,"span",44)}function G_(i,t){if(1&i&&(n.j41(0,"li",34)(1,"a",42),n.EFF(2),n.DNE(3,O_,1,0,"span",43),n.k0s()()),2&i){const e=t.$implicit;n.R7$(),n.Mz_("routerLink","/app/company/articles/",e.id,""),n.R7$(),n.SpI("",e.subject," "),n.R7$(),n.Y8G("ngIf",e.isNewWindow)}}function B_(i,t){if(1&i&&(n.j41(0,"div",38)(1,"h3"),n.EFF(2,"Popular Articles"),n.k0s(),n.j41(3,"div",39)(4,"ul",40),n.DNE(5,G_,4,4,"li",41),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(5),n.Y8G("ngForOf",e.popularList)}}function P_(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,"tickets"),n.k0s())}function H_(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,"ticket"),n.k0s())}function L_(i,t){if(1&i&&(n.j41(0,"div",38)(1,"h3",45),n.EFF(2,"Tickets Waiting"),n.k0s(),n.j41(3,"div"),n.EFF(4),n.DNE(5,P_,2,0,"span",18)(6,H_,2,0,"span",18),n.EFF(7," awaiting your review. "),n.k0s(),n.j41(8,"div",46)(9,"button",47),n.EFF(10,"View Tickets"),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(4),n.SpI(" You have ",e.waitCount," "),n.R7$(),n.Y8G("ngIf",e.waitCount>1),n.R7$(),n.Y8G("ngIf",1==e.waitCount)}}function $_(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,"courses"),n.k0s())}function U_(i,t){1&i&&(n.j41(0,"span"),n.EFF(1,"course"),n.k0s())}function V_(i,t){if(1&i&&(n.j41(0,"div",38)(1,"h3",45),n.EFF(2,"Courses Waiting"),n.k0s(),n.j41(3,"div"),n.EFF(4),n.DNE(5,$_,2,0,"span",18)(6,U_,2,0,"span",18),n.EFF(7," that you have not started. "),n.k0s(),n.j41(8,"div",46)(9,"button",48),n.EFF(10,"View Courses"),n.k0s()()()),2&i){const e=n.XpG(2);n.R7$(4),n.SpI(" You have ",e.courseCount," required "),n.R7$(),n.Y8G("ngIf",e.courseCount>1),n.R7$(),n.Y8G("ngIf",1==e.courseCount)}}function Y_(i,t){if(1&i&&(n.j41(0,"div",23)(1,"div",24),n.DNE(2,w_,2,1,"ng-container",17),n.nrm(3,"banner-display",25),n.k0s(),n.j41(4,"div",26),n.nrm(5,"banner-display",27),n.DNE(6,x_,2,1,"ng-container",17)(7,M_,2,1,"ng-container",17)(8,j_,6,1,"div",28)(9,B_,6,1,"div",28)(10,L_,11,3,"div",28)(11,V_,11,3,"div",28),n.k0s()()),2&i){const e=n.XpG();n.R7$(2),n.Y8G("userPermissions",n.lJ4(11,Uo)),n.R7$(),n.Y8G("location",1)("placement",1),n.R7$(2),n.Y8G("location",1)("placement",1),n.R7$(),n.Y8G("userPermissions",n.lJ4(12,E_)),n.R7$(),n.Y8G("userPermissions",n.lJ4(13,Uo)),n.R7$(),n.Y8G("ngIf",e.frontPageList.length>0&&!e.isKnowledgeBaseDisabled),n.R7$(),n.Y8G("ngIf",e.popularList.length>0&&!e.isKnowledgeBaseDisabled),n.R7$(),n.Y8G("ngIf",e.waitCount>0),n.R7$(),n.Y8G("ngIf",e.courseCount>0&&!e.isCoursesDisabled)}}function z_(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",49),n.nrm(1,"banner-display",27),n.j41(2,"div",50)(3,"searchBox",51),n.bIt("onSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.searchForText())}),n.k0s()(),n.j41(4,"div",52)(5,"span",53),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.displayMode(0))}),n.k0s(),n.j41(6,"span",54),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.displayMode(1))}),n.k0s()()()}if(2&i){const e=n.XpG();n.R7$(),n.Y8G("location",1)("placement",2),n.R7$(2),n.Y8G("model",e.searchModel)("label","Search applications...")}}function X_(i,t){if(1&i&&(n.j41(0,"option",62),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;
1n.Y8G("value",e.id),n.R7$(),n.SpI("",e.name," ")}}function W_(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",55)(1,"div",56)(2,"label",57),n.EFF(3,"Show Items Based on Role Membership"),n.k0s(),n.nrm(4,"br"),n.j41(5,"select",58),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(2);return n.DH7(o.roleFilter,s)||(o.roleFilter=s),n.Njj(s)}),n.j41(6,"option",59),n.EFF(7,"All roles"),n.k0s(),n.DNE(8,X_,2,2,"option",60),n.j41(9,"option",61),n.EFF(10,"No role specified"),n.k0s()()()()}if(2&i){const e=n.XpG(2);n.R7$(5),n.R50("ngModel",e.roleFilter),n.R7$(3),n.Y8G("ngForOf",e.allRoles)}}function q_(i,t){if(1&i&&(n.qex(0),n.DNE(1,W_,11,2,"div",19),n.bVm()),2&i){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.isPersonal&&e.editMode&&(null==e.allRoles?null:e.allRoles.length))}}function Q_(i,t){if(1&i&&(n.nrm(0,"span"),n.nI1(1,"SafeStyle")),2&i){const e=n.XpG().$implicit;n.HbH(e.icon),n.xc7("color",n.bMT(1,5,e.color))}}function Z_(i,t){if(1&i&&(n.nrm(0,"img",71),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG().$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function J_(i,t){if(1&i&&n.DNE(0,Q_,2,7,"span",69)(1,Z_,2,3,"img",70),2&i){const e=t.$implicit;n.Y8G("ngIf",(null==e.iconUrl||""==e.iconUrl)&&null!=e.icon&&""!=e.icon),n.R7$(),n.Y8G("ngIf",""!=e.iconUrl)}}function K_(i,t){1&i&&(n.j41(0,"span",72),n.EFF(1,"Name"),n.k0s())}function ev(i,t){1&i&&(n.j41(0,"span",73),n.EFF(1,"Category"),n.k0s())}function tv(i,t){if(1&i){const e=n.RV6();n.qex(0),n.j41(1,"kendo-grid",63,0),n.bIt("selectionChange",function(s){n.eBV(e);const o=n.XpG(2);return n.Njj(o.gridUserSelectionChange(s))}),n.j41(3,"kendo-grid-column",64),n.DNE(4,J_,2,2,"ng-template",65),n.k0s(),n.j41(5,"kendo-grid-column",66),n.DNE(6,K_,2,0,"ng-template",67),n.k0s(),n.j41(7,"kendo-grid-column",68),n.DNE(8,ev,2,0,"ng-template",67),n.k0s()(),n.bVm()}if(2&i){const e=n.XpG(2);n.R7$(),n.Y8G("kendoGridBinding",e.menuSearchItems)("pageSize",1e3)("sortable",n.lJ4(10,Vo))("pageable",!1)("rowSelected",e.isRowSelected)("selectable",n.lJ4(11,Yo))("filterable","row"),n.R7$(2),n.Y8G("width",35),n.R7$(2),n.Y8G("filterable",!1),n.R7$(2),n.Y8G("filterable",!1)}}function nv(i,t){if(1&i&&(n.nrm(0,"span"),n.nI1(1,"SafeStyle")),2&i){const e=n.XpG().$implicit;n.HbH(e.icon),n.xc7("color",n.bMT(1,5,e.color))}}function iv(i,t){if(1&i&&(n.nrm(0,"img",71),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG().$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function rv(i,t){if(1&i&&n.DNE(0,nv,2,7,"span",69)(1,iv,2,3,"img",70),2&i){const e=t.$implicit;n.Y8G("ngIf",(null==e.iconUrl||""==e.iconUrl)&&null!=e.icon&&""!=e.icon),n.R7$(),n.Y8G("ngIf",""!=e.iconUrl)}}function sv(i,t){1&i&&n.nrm(0,"span",77)}function ov(i,t){if(1&i&&(n.j41(0,"span",75),n.EFF(1),n.k0s(),n.DNE(2,sv,1,0,"span",76)),2&i){const e=t.$implicit,r=n.XpG(3);n.Y8G("contextMenu",r.basicMenu)("contextMenuValue",e),n.R7$(),n.JRh(e.name),n.R7$(),n.Y8G("ngIf",e.isFavorite)}}function av(i,t){1&i&&(n.j41(0,"span",72),n.EFF(1,"Name"),n.k0s())}function lv(i,t){1&i&&(n.j41(0,"span",73),n.EFF(1,"Category"),n.k0s())}function cv(i,t){if(1&i){const e=n.RV6();n.qex(0),n.j41(1,"kendo-grid",74,0),n.bIt("selectionChange",function(s){n.eBV(e);const o=n.XpG(2);return n.Njj(o.gridUserSelectionChange(s))}),n.j41(3,"kendo-grid-column",64),n.DNE(4,rv,2,2,"ng-template",65),n.k0s(),n.j41(5,"kendo-grid-column",66),n.DNE(6,ov,3,4,"ng-template",65)(7,av,2,0,"ng-template",67),n.k0s(),n.j41(8,"kendo-grid-column",68),n.DNE(9,lv,2,0,"ng-template",67),n.k0s()(),n.bVm()}if(2&i){const e=n.XpG(2);n.R7$(),n.Y8G("kendoGridBinding",e.menuItems)("pageSize",1e3)("sortable",n.lJ4(10,Vo))("pageable",!1)("rowSelected",e.isRowSelected)("selectable",n.lJ4(11,Yo))("filterable","row"),n.R7$(2),n.Y8G("width",35),n.R7$(2),n.Y8G("filterable",!1),n.R7$(3),n.Y8G("filterable",!1)}}function dv(i,t){if(1&i&&(n.qex(0),n.DNE(1,tv,9,12,"ng-container",18)(2,cv,10,12,"ng-container",18),n.bVm()),2&i){const e=n.XpG();n.R7$(),n.Y8G("ngIf",""!=e.searchModel.text),n.R7$(),n.Y8G("ngIf",""==e.searchModel.text)}}function uv(i,t){if(1&i&&n.nrm(0,"span",86),2&i){const e=n.XpG().$implicit;n.xc7("color",e.color)}}function fv(i,t){if(1&i&&n.nrm(0,"span"),2&i){const e=n.XpG().$implicit;n.ZvI("",e.icon," fa-4x"),n.xc7("color",e.color)}}function pv(i,t){if(1&i&&(n.nrm(0,"img",87),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG().$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function hv(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",80)(1,"a",81),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(3);return n.Njj(o.runItem(s))}),n.j41(2,"div",82),n.DNE(3,uv,1,2,"span",83)(4,fv,1,5,"span",69)(5,pv,2,3,"img",84),n.k0s(),n.j41(6,"div",85),n.EFF(7),n.k0s()()()}if(2&i){const e=t.$implicit,r=n.XpG(3);n.R7$(),n.FS9("title",e.tooltip),n.Y8G("contextMenu",r.basicMenu)("contextMenuValue",e),n.BMQ("data-lr",r.LogRocketDataAttribute.AppShortcut),n.R7$(2),n.Y8G("ngIf",!(null!=e.iconUrl&&""!=e.iconUrl||null!=e.icon&&""!=e.icon)),n.R7$(),n.Y8G("ngIf",(null==e.iconUrl||""==e.iconUrl)&&null!=e.icon&&""!=e.icon),n.R7$(),n.Y8G("ngIf",""!=e.iconUrl),n.R7$(2),n.SpI(" ",e.name," ")}}function mv(i,t){if(1&i&&(n.j41(0,"div")(1,"div",78)(2,"span"),n.EFF(3,"Search Results"),n.k0s()(),n.DNE(4,hv,8,8,"div",79),n.k0s()),2&i){const e=n.XpG(2);n.R7$(4),n.Y8G("ngForOf",e.searchItems)}}
1function gv(i,t){if(1&i&&n.nrm(0,"span",86),2&i){const e=n.XpG().$implicit;n.xc7("color",e.color)}}function _v(i,t){if(1&i&&n.nrm(0,"span"),2&i){const e=n.XpG().$implicit;n.ZvI("",e.icon," fa-4x"),n.xc7("color",e.color)}}function vv(i,t){if(1&i&&(n.nrm(0,"img",87),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG().$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function bv(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",80)(1,"a",81),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(4);return n.Njj(o.runItem(s))}),n.j41(2,"div",82),n.DNE(3,gv,1,2,"span",83)(4,_v,1,5,"span",69)(5,vv,2,3,"img",84),n.k0s(),n.j41(6,"div",85),n.EFF(7),n.k0s()()()}if(2&i){const e=t.$implicit,r=n.XpG(4);n.R7$(),n.FS9("title",e.tooltip),n.Y8G("contextMenu",r.basicMenu)("contextMenuValue",e),n.BMQ("data-lr",r.LogRocketDataAttribute.AppShortcut),n.R7$(2),n.Y8G("ngIf",!(null!=e.iconUrl&&""!=e.iconUrl||null!=e.icon&&""!=e.icon)),n.R7$(),n.Y8G("ngIf",(null==e.iconUrl||""==e.iconUrl)&&null!=e.icon&&""!=e.icon),n.R7$(),n.Y8G("ngIf",""!=e.iconUrl),n.R7$(2),n.SpI(" ",e.name," ")}}function yv(i,t){if(1&i&&(n.j41(0,"div",92)(1,"div",78)(2,"span"),n.EFF(3,"Favorites"),n.k0s()(),n.DNE(4,bv,8,8,"div",79),n.k0s()),2&i){const e=n.XpG(3);n.R7$(4),n.Y8G("ngForOf",e.favoriteItems)}}function Cv(i,t){1&i&&(n.j41(0,"div",93)(1,"div",94),n.EFF(2," No applications found to display. Click the Add button to create your own items. "),n.k0s()())}function Ev(i,t){if(1&i&&(n.j41(0,"span",34),n.EFF(1),n.k0s()),2&i){const e=n.XpG(2).$implicit;n.R7$(),n.JRh(e.category)}}function Sv(i,t){if(1&i){const e=n.RV6();n.j41(0,"input",100),n.bIt("keydown",function(s){n.eBV(e);const o=n.XpG(5);return n.Njj(o.categoryKeyDown(s))}),n.mxI("ngModelChange",function(s){n.eBV(e);const o=n.XpG(5);return n.DH7(o.tempCategoryName,s)||(o.tempCategoryName=s),n.Njj(s)}),n.k0s()}if(2&i){const e=n.XpG(5);n.R50("ngModel",e.tempCategoryName)}}function kv(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",101),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2),o=s.$implicit,a=s.index,l=n.XpG(3);return n.Njj(l.editCategory(o,a))}),n.k0s()}}function Rv(i,t){if(1&i){const e=n.RV6();n.qex(0),n.j41(1,"div",102),n.bIt("click",function(){n.eBV(e);const s=n.XpG(5);return n.Njj(s.saveCategory())}),n.k0s(),n.j41(2,"div",103),n.bIt("click",function(){n.eBV(e);const s=n.XpG(5);return n.Njj(s.cancelEditCategory())}),n.k0s(),n.bVm()}}function Av(i,t){if(1&i&&(n.qex(0),n.DNE(1,Ev,2,1,"span",97)(2,Sv,1,1,"input",98)(3,kv,1,0,"div",99)(4,Rv,3,0,"ng-container",18),n.bVm()),2&i){const e=n.XpG().index,r=n.XpG(3);n.R7$(),n.Y8G("ngIf",!r.isCategoryInEditMode(e)),n.R7$(),n.Y8G("ngIf",r.isCategoryInEditMode(e)),n.R7$(),n.Y8G("ngIf",!r.isCategoryInEditMode(e)),n.R7$(),n.Y8G("ngIf",r.isCategoryInEditMode(e))}}function Tv(i,t){if(1&i&&(n.j41(0,"span",34),n.EFF(1),n.k0s()),2&i){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.category)}}function wv(i,t){1&i&&n.eu8(0)}function Dv(i,t){1&i&&n.eu8(0)}function xv(i,t){if(1&i){const e=n.RV6();n.j41(0,"a",108),n.bIt("click",function(){n.eBV(e);const s=n.XpG().$implicit,o=n.XpG(5);return n.Njj(o.editItem(s))}),n.DNE(1,Dv,1,0,"ng-container",109),n.k0s()}if(2&i){const e=n.XpG().$implicit,r=n.sdS(7);n.FS9("title",e.tooltip),n.R7$(),n.Y8G("ngTemplateOutlet",r)}}function Iv(i,t){1&i&&n.eu8(0)}function Mv(i,t){if(1&i&&(n.j41(0,"div",110),n.DNE(1,Iv,1,0,"ng-container",109),n.k0s()),2&i){n.XpG();const e=n.sdS(7);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Fv(i,t){if(1&i&&n.nrm(0,"span",113),2&i){const e=n.XpG(2).$implicit;n.xc7("color",e.color)}}function Nv(i,t){if(1&i&&n.nrm(0,"span"),2&i){const e=n.XpG(2).$implicit;n.ZvI("",e.icon," fa-4x"),n.xc7("color",e.color)}}function jv(i,t){if(1&i&&(n.nrm(0,"img",87),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG(2).$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function Ov(i,t){if(1&i&&(n.j41(0,"div",111),n.DNE(1,Fv,1,2,"span",112)(2,Nv,1,5,"span",69)(3,jv,2,3,"img",84),n.k0s(),n.j41(4,"div",85),n.EFF(5),n.k0s()),2&i){const e=n.XpG().$implicit;n.Y8G("ngStyle",n.eq3(5,S_,e.canBeEdited?"pointer":"inherit")),n.R7$(),n.Y8G("ngIf",!e.iconUrl&&!e.icon),n.R7$(),n.Y8G("ngIf",!e.iconUrl&&e.icon),n.R7$(),n.Y8G("ngIf",e.iconUrl),n.R7$(2),n.JRh(e.name)}}function Gv(i,t){1&i&&n.eu8(0)}function Bv(i,t){if(1&i&&(n.j41(0,"div",114),n.DNE(1,Gv,1,0,"ng-container",109),n.k0s()),2&i){n.XpG();
1const e=n.sdS(7);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Pv(i,t){if(1&i&&(n.j41(0,"div",105),n.DNE(1,wv,1,0,"ng-container",106)(2,xv,2,2,"ng-template",null,2,n.C5r)(4,Mv,2,1,"ng-template",null,3,n.C5r)(6,Ov,6,7,"ng-template",null,4,n.C5r)(8,Bv,2,1,"ng-template",107),n.k0s()),2&i){const e=t.$implicit,r=n.sdS(3),s=n.sdS(5),o=n.XpG(5);n.Y8G("ngClass",o.isRoleFilter(e)),n.R7$(),n.Y8G("ngIf",e.canBeEdited)("ngIfThen",r)("ngIfElse",s)}}function Hv(i,t){if(1&i&&(n.j41(0,"div"),n.DNE(1,Pv,9,4,"div",104),n.k0s()),2&i){const e=n.XpG().$implicit;n.R7$(),n.Y8G("ngForOf",e.menu.items)}}function Lv(i,t){if(1&i&&n.nrm(0,"span",86),2&i){const e=n.XpG().$implicit;n.xc7("color",e.color)}}function $v(i,t){if(1&i&&n.nrm(0,"span"),2&i){const e=n.XpG().$implicit;n.ZvI("",e.icon," fa-4x"),n.xc7("color",e.color)}}function Uv(i,t){if(1&i&&(n.nrm(0,"img",87),n.nI1(1,"SafeUrl")),2&i){const e=n.XpG().$implicit;n.Y8G("src",n.bMT(1,1,e.iconUrl),n.B4B)}}function Vv(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",80)(1,"a",81),n.bIt("click",function(){const s=n.eBV(e).$implicit,o=n.XpG(5);return n.Njj(o.runItem(s))}),n.j41(2,"div",82),n.DNE(3,Lv,1,2,"span",83)(4,$v,1,5,"span",69)(5,Uv,2,3,"img",84),n.k0s(),n.j41(6,"div",85),n.EFF(7),n.k0s()()()}if(2&i){const e=t.$implicit,r=n.XpG(5);n.R7$(),n.FS9("title",e.tooltip),n.Y8G("contextMenu",r.basicMenu)("contextMenuValue",e),n.BMQ("data-lr",r.LogRocketDataAttribute.AppShortcut),n.R7$(2),n.Y8G("ngIf",!(null!=e.iconUrl&&""!=e.iconUrl||null!=e.icon&&""!=e.icon)),n.R7$(),n.Y8G("ngIf",(null==e.iconUrl||""==e.iconUrl)&&null!=e.icon&&""!=e.icon),n.R7$(),n.Y8G("ngIf",""!=e.iconUrl),n.R7$(2),n.SpI(" ",e.name," ")}}function Yv(i,t){if(1&i&&(n.j41(0,"div"),n.DNE(1,Vv,8,8,"div",79),n.k0s()),2&i){const e=n.XpG().$implicit;n.R7$(),n.Y8G("ngForOf",e.menu.items)}}function zv(i,t){if(1&i){const e=n.RV6();n.j41(0,"div",95),n.bIt("cdkDropListDropped",function(s){const o=n.eBV(e).$implicit,a=n.XpG(3);return n.Njj(a.onDrop(s,o))}),n.j41(1,"div",78),n.DNE(2,Av,5,4,"ng-container",96)(3,Tv,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(5,Hv,2,1,"div",18)(6,Yv,2,1,"div",18),n.k0s()}if(2&i){const e=t.$implicit,r=t.index,s=n.sdS(4),o=n.XpG(3);n.Y8G("cdkDropListData",e.menu.items)("cdkDropListConnectedTo",o.getConnectedDropLists(r)),n.R7$(2),n.Y8G("ngIf",o.editMode)("ngIfElse",s),n.R7$(3),n.Y8G("ngIf",o.editMode),n.R7$(),n.Y8G("ngIf",!o.editMode)}}function Xv(i,t){if(1&i&&(n.j41(0,"div"),n.DNE(1,yv,5,1,"div",88)(2,Cv,3,0,"div",89),n.j41(3,"div",90),n.DNE(4,zv,7,6,"div",91),n.k0s()()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.editMode&&e.favoriteItems.length>0),n.R7$(),n.Y8G("ngIf",e.menuCategories&&0==e.menuCategories.length&&e.menuLoadFinished),n.R7$(2),n.Y8G("ngForOf",e.menuCategories)}}function Wv(i,t){if(1&i&&(n.j41(0,"div",55),n.DNE(1,mv,5,1,"div",18)(2,Xv,5,3,"div",18),n.k0s()),2&i){const e=n.XpG();n.R7$(),n.Y8G("ngIf",""!=e.searchModel.text),n.R7$(),n.Y8G("ngIf",""==e.searchModel.text)}}function qv(i,t){if(1&i){const e=n.RV6();n.j41(0,"a",128),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clearWallpaper())}),n.EFF(1,"Remove wallpaper"),n.k0s()}}function Qv(i,t){if(1&i&&(n.j41(0,"div",134),n.EFF(1),n.k0s()),2&i){const e=t.$implicit;n.R7$(),n.SpI(" ",e," ")}}function Zv(i,t){if(1&i&&(n.j41(0,"div",132),n.DNE(1,Qv,2,1,"div",133),n.k0s()),2&i){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.errors)}}function Jv(i,t){if(1&i&&(n.qex(0),n.j41(1,"div",30)(2,"div",129)(3,"h4"),n.EFF(4,"Content Subscriptions"),n.k0s(),n.DNE(5,Zv,2,1,"div",130),n.nrm(6,"subscription-editor",131),n.k0s()(),n.bVm()),2&i){const e=n.XpG(2);n.R7$(5),n.Y8G("ngIf",e.errors.length>0),n.R7$(),n.Y8G("subscription",e.contentSubscriptions)}}function Kv(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",115)(1,"div",116)(2,"div",117),n.EFF(3," Settings "),n.k0s(),n.j41(4,"div",118)(5,"button",119),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeSetup(!1))}),n.nrm(6,"span",120),n.EFF(7,"Cancel"),n.k0s()()(),n.j41(8,"div",121)(9,"h3"),n.EFF(10," Wallpaper "),n.k0s(),n.j41(11,"div",30)(12,"label",122),n.EFF(13,"Choose Your Image"),n.k0s(),n.j41(14,"input",123),n.bIt("change",function(s){n.eBV(e);const o=n.XpG();return n.Njj(o.fileChange(s))}),n.k0s(),n.j41(15,"small"),n.EFF(16,"Choose a .jpg, .gif or .png file."),n.k0s(),n.j41(17,"div"),n.DNE(18,qv,2,0,"a",124),n.k0s()(),n.DNE(19,Jv,7,2,"ng-container",17),n.j41(20,"div",125)(21,"rbac-button",126),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitSettings())}),n.k0s(),n.j41(22,"button",127),n.bIt("click",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.closeSetup(!1))}),n.EFF(23,"Cancel"),n.k0s()()()()}if(2&i){const e=n.XpG();n.R7$(18),n.Y8G("ngIf",e._user.UserProfile.wallpaper.imageUrl),n.R7$(),n.Y8G("userPermissions",n.lJ4(8,k_)),n.R7$(2),n.HbH("btn btn-primary me-2"),n.Y8G("label","Submit")("moduleType","Company_Applications")("permission","Read")("disabled",e._dataService.isBusy)}}function eb(i,t){if(1&i){const e=n.RV6();n.j41(0,"button",137),n.bIt("click",function(){n.eBV(e);const s=n.XpG(2);return n.Njj(s.deleteMenu(s.menuModel))}),n.nrm(1,"span",138),n.k0s()}}function tb(i,t){1&i&&(n.j41(0,"div")(1,"strong"),n.EFF(2,"Note"),n.k0s(),n.EFF(3," - This is a personal menu item and is only available to you. "),n.k0s())}function nb(i,t){if(1&i){const e=n.RV6();n.j41(0,"blade-display",115)(1,"div",116)(2,"div",117),n.EFF(3," Menu Item "),n.k0s(),n.j41(4,"div",118),n.DNE(5,eb,2,0,"button",135),n.j41(6,"button",119),n.bIt("click",function(){n.eBV(e);const s=n.XpG();
1return n.Njj(s.cancelForm())}),n.nrm(7,"span",120),n.EFF(8,"Cancel"),n.k0s()()(),n.j41(9,"div",121),n.DNE(10,tb,4,0,"div",18),n.j41(11,"menu-editor",136),n.bIt("onSubmit",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.submitForm())})("onCancel",function(){n.eBV(e);const s=n.XpG();return n.Njj(s.cancelForm())}),n.k0s()()()}if(2&i){const e=n.XpG();n.R7$(5),n.Y8G("ngIf",(e.hasApplicationsDeletePermission||e._user.UserProfile.user.id==e.menuModel.createdBy&&e.menuModel.id>0)&&e.menuModel.canBeDeleted),n.R7$(5),n.Y8G("ngIf",e.isPersonal),n.R7$(),n.Y8G("menu",e.menuModel)("categories",e.menuCategories)("menuModel",e.menuModel)("isPersonal",e.isPersonal)("showPartnerOptions",!e.isPersonal)("errors",e.errors)("icon",e.icon)("moduleType","Company_Applications")}}function ib(i,t){1&i&&n.EFF(0," Pin to favorites ")}function rb(i,t){1&i&&n.EFF(0," Unpin from favorites ")}function sb(i,t){1&i&&n.EFF(0," Edit ")}function ob(i,t){}function ab(i,t){1&i&&(n.j41(0,"span",139),n.EFF(1,"Audit Trail"),n.k0s())}let lb=(()=>{class i{constructor(e,r,s,o,a,l,c,u,d,m,h,p,_){this._browserutils=e,this._dataService=r,this._user=s,this._confirmService=o,this._router=a,this._slimLoading=l,this._sanitizer=c,this.auditTrailService=u,this.storefrontService=d,this.userPermissionsService=m,this.psaProjectsService=h,this.shortcutsServcie=p,this.roleService=_,this.gridData=[],this.isShowMissingAgent=!1,this.wallpaperImage="",this.icon="",this.sidebarTypes=W.I,this.LogRocketDataAttribute=$o.tH,this._subscription=new f_.yU,this.hasApplicationsEditPermission=!1,this.hasApplicationsDeletePermission=!1,this.hasApplicationsFullPermission=!1,this.hasContentEditPermission=!1,this.hasPartnerSecurityFullPermission=!1,this.courseCount=0,this.waitCount=0,this.advisories=[],this.isPersonal=!1,this.isKnowledgeBaseDisabled=!1,this.isMessagesDisabled=!1,this.isCoursesDisabled=!1,this.menuLoadFinished=!1,this.menuCategories=[],this.editMode=!1,this.showForm=!1,this.menuModel={category:"",color:"",groups:[],icon:"",iconUrl:"",id:0,instructions:"",isFavorite:!1,isSubscribed:!1,isService:!1,name:"",order:0,source:Si.q.Manual,tooltip:"",url:"",userId:"",isIframe:!1,trayAppUrl:"",isLocal:!1,templatePackId:0,templatePackName:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1,createdBy:""},this.newMenuModel={category:"",color:"#024A88",groups:[{id:0,groupName:"Everyone"}],icon:"fal fa-external-link",iconUrl:"",id:0,instructions:"",isFavorite:!1,isSubscribed:!1,isService:!1,name:"",order:0,source:Si.q.Manual,tooltip:"",url:"",userId:"",isIframe:!1,trayAppUrl:"",isLocal:!1,templatePackId:0,templatePackName:"",canBeEdited:!1,canBeDeleted:!1,isPartnerManaged:!1,createdBy:""},this.errors=[],this.favoriteItems=[],this.menuItems=[],this.menuSearchItems=[],this.canBeEdited=v=>v.canBeEdited,this.searchItems=[],this.searchModel={text:"",isDebounce:!1,isEnter:!1},this.displayStyle=0,this.currentColor="",this.isShowSetup=!1,this.subject="",this.contentSubscriptions={type:te.sO.Menus,packages:[]},this.popularList=[],this.frontPageList=[],this.messageList=[],this.isRowSelected=v=>!1,this.roleFilter="",this.allRoles=[]}fillSidebar(e){this._slimLoading.start(),this.userPermissionsService.checkPermission$(G.aX.Read,G.nR.Company_KnowledgeBase).subscribe(r=>{r&&(this._dataService.get(new A.Yj,"/api/articles/frontpage").subscribe(s=>{this.frontPageList=s.data}),this._dataService.get(new A.Yj,"/api/articles/popular").subscribe(s=>{this.popularList=s.data}))}),this._slimLoading.complete()}refresh(){return this.fillSidebar(!0),!1}ngOnInit(){this.isKnowledgeBaseDisabled=this.userPermissionsService.IsDisabled(this.sidebarTypes.Company_Knowledge_Base),this.isMessagesDisabled=this.userPermissionsService.IsDisabled(this.sidebarTypes.Company_Messages),this.isCoursesDisabled=this.userPermissionsService.IsDisabled(this.sidebarTypes.University_Courses),this.userPermissionsService.checkPermission$(G.aX.Edit,G.nR.Company_Applications).subscribe(e=>{this.hasApplicationsEditPermission=e}),this.userPermissionsService.checkPermission$(G.aX.Delete,G.nR.Company_Applications).subscribe(e=>{this.hasApplicationsDeletePermission=e}),this.userPermissionsService.checkPermission$(G.aX.Edit,G.nR.Partner_Content).subscribe(e=>{this.hasContentEditPermission=e}),this.userPermissionsService.checkPermission$(G.aX.Full,G.nR.Partner_Security).subscribe(e=>{this.hasPartnerSecurityFullPermission=e}),this.isPersonal=!this.hasApplicationsEditPermission,this.userPermissionsService.checkPermission$(G.aX.Read,G.nR.Partner_Account).subscribe(e=>{if(e){const r=new A.Yj;this._dataService.get(r,"/api/partner/advisory/count").subscribe(s=>{this.advisories=s.data})}}),this.fillSidebar(!1),this.loadData(!1)}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}onDrop(e,r){e.previousContainer===e.container?(0,Ee.HD)(r.menu.items,e.previousIndex,e.currentIndex):(0,Ee.eg)(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex),this.updateMenuOrder()}updateMenuOrder(){this._dataService.post(this.menuCategories,"/api/menu/order").subscribe(()=>{let e=0;for(const r of this.menuCategories)for(const s of r.menu.items)s.order=e++})}getConnectedDropLists(e){return this.menuCategories.map((r,s)=>s!==e?`category-${s}`:null).filter(r=>!!r)}toggleEdit(){return this.editMode=!this.editMode,this.editMode?(this.searchModel.text="",this.roleFilter="",!this.isPersonal&&0===this.allRoles.length&&this.fetchAllRoles()):(this.currentCategoryIndex=void 0,this.currentCategory=void 0),this.isPersonal||this.loadData(!1),!1}flattenResponse(){this.menuItems=[],this.favoriteItems=[];for(let e=0;e<this.menuCategories.length;e++)for(let r=0;r<this.menuCategories[e].menu.items.length;r++)this.menuItems.push(this.menuCategories[e].menu.items[r]),this.menuCategories[e].menu.items[r].isFavorite&&this.favoriteItems.push(this.menuCategories[e].menu.items[r]);this.sortFavorites(),this.sortMenuItems(),this.menuLoadFinished=!0}sortMenuItems(){this.menuItems.sort((e,r)=>e.isFavorite&&!r.isFavorite?-1:!e.isFavorite&&r.isFavorite?1:e.name<r.name?-1:e.name>
1r.name?1:0)}loadData(e){this.menuLoadFinished=!1;const r=new A.Yj;this.editMode?(this.isPersonal?(r.filters="personal",r.conditions="eq",r.values="true"):(r.filters="all",r.conditions="eq",r.values="true"),e||this._browserutils.openToast('Click on a menu item to edit. Or, drag and drop items between categories. Click "Finish Edit" to stop.',"Edit Mode",N.R.success),this._slimLoading.start(),this._dataService.get(r,"/api/menu").subscribe(s=>{this._slimLoading.complete(),this.menuCategories=s.data,this.flattenResponse()},s=>{this.errors=this._dataService.processErrors(s)})):(r.filters="isTray",r.conditions="eq",r.values=this._dataService.isTrayApp()?"true":"false",this._browserutils.clearToasts(),this._slimLoading.start(),this._dataService.get(r,"/api/menu").subscribe(s=>{this._slimLoading.complete(),this.menuCategories=s.data,this.flattenResponse()},s=>{this.errors=this._dataService.processErrors(s)}))}itemAdd(){return this.menuModel=JSON.parse(JSON.stringify(this.newMenuModel)),this._browserutils.clearToasts(),this.errors=[],this.menuModel.groups=[{id:0,groupName:"Everyone"}],this.showForm=!this.showForm,!1}editItem(e){this._browserutils.clearToasts(),this.errors=[],this.menuModel=JSON.parse(JSON.stringify(e)),this.menuModel.color=e.color?e.color:"#024A88",this._slimLoading.start();const r=new A.Yj;return e.id>0&&(r.filters="id",r.conditions="eq",r.values=e.id.toString(),this.editMode&&(r.filters+="^all",r.conditions+="^eq",r.values+="^true"),this._dataService.get(r,"/api/menu").subscribe(s=>{this._slimLoading.complete(),this.menuModel=s.data[0],this.showForm=!0},s=>{this.errors=this._dataService.processErrors(s)})),!1}deleteMenu(e){return this._confirmService.activate('Are you sure you want to delete "'+e.name+'"?').then(r=>{r==ne.x.OK&&this._dataService.delete(this.menuModel.id,"/api/menu").subscribe(s=>{this.loadData(!0),this.cancelForm()},s=>{this.errors=this._dataService.processErrors(s),this._browserutils.pushErrorToast(this.errors[0])})}),!1}cancelForm(){return this.showForm=!1,!1}submitForm(){return this.isPersonal&&(this.menuModel.userId=this._user.UserProfile.user.id,this.menuModel.source=Si.q.User),this._dataService.post(this.menuModel,"/api/menu?isTray="+(this._dataService.isTrayApp()?"true":"false")).subscribe(()=>{this.loadData(!0),this.cancelForm(),this._browserutils.openToast(this.menuModel.id>0?"Menu successfully updated.":"Menu successfully created.","Done!",N.R.success)},e=>{this.errors=this._dataService.processErrors(e)}),!1}searchForText(){if(""!=this.searchModel.text){const e=this.searchModel.text.toLowerCase();this.searchItems=[],this.menuSearchItems=[];for(let r=0;r<this.menuCategories.length;r++)for(let s=0;s<this.menuCategories[r].menu.items.length;s++)(this.menuCategories[r].menu.items[s].name.toLowerCase().includes(e)||this.menuCategories[r].menu.items[s].url.toLowerCase().includes(e)||this.menuCategories[r].category.toLowerCase().includes(e))&&this.searchItems.push(this.menuCategories[r].menu.items[s]);for(let r=0;r<this.menuItems.length;r++)(this.menuItems[r].name.toLowerCase().includes(e)||this.menuItems[r].url.toLowerCase().includes(e)||this.menuItems[r].category.toLowerCase().includes(e))&&this.menuSearchItems.push(this.menuItems[r])}}displayMode(e){1==e&&this.sortMenuItems(),this.displayStyle=e}runItem(e){this.shortcutsServcie.runItem(e,$o.gX.HomePage)}showSetup(){if(this.currentColor=this._user.UserProfile.user.titleColor,this.hasContentEditPermission){const e=new A.Yj;return e.filters="type",e.conditions="eq",e.values=this.contentSubscriptions.type.toString(),this._dataService.get(e,"/api/content/subscription").subscribe(r=>{this.contentSubscriptions=r.data,this.isShowSetup=!0}),!1}return this.isShowSetup=!0,!1}clearWallpaper(){return this._confirmService.activate("Are you sure you want to remove the wallpaper?").then(e=>{e==ne.x.OK&&this._dataService.post({},"/api/user/wallpaper/remove").subscribe(r=>{this._user.loadProfile().subscribe()})}),!1}fileChange(e){this.fileList=e.target.files}submitSettings(){if(this._slimLoading.start(),this.fileList&&this.fileList.length>0){const r=this.fileList[0],s=new FormData;s.append("file",r,r.name),this._dataService.postFormData(s,"/api/user/wallpaper").subscribe(o=>{this.fileList=void 0,this._user.loadProfile().subscribe()})}return this._dataService.post({theme:this._user.UserProfile.user.theme,titleColor:this._user.UserProfile.user.titleColor,menuClosed:!0},"/api/user/settings").subscribe(r=>{if(!this.hasContentEditPermission)return this.closeSetup(!0),!1;this._dataService.post(this.contentSubscriptions,"/api/content/subscription").subscribe(s=>{this.loadData(!1),this._browserutils.openToast("Settings saved.","Done!",N.R.success),this.closeSetup(!0),this._slimLoading.complete()},s=>{this.errors=this._dataService.processErrors(s)})}),!1}closeSetup(e){return this._slimLoading.complete(),this.isShowSetup=!1,e||(this._user.UserProfile.user.titleColor=this.currentColor),!1}gridUserSelectionChange(e){const r=e.selectedRows[0].dataItem;this.editMode?this.editItem(r):this.runItem(r)}sortFavorites(){this.favoriteItems.sort((e,r)=>e.name<r.name?-1:e.name>
1r.name?1:0)}pinFavorite(e){if(e.isFavorite){this._dataService.post(e,"/api/menu/favorites/remove").subscribe(r=>{},r=>{this.errors=this._dataService.processErrors(r)});for(let r=0;r<this.favoriteItems.length;r++)if(this.favoriteItems[r].id==e.id){this.favoriteItems.splice(r,1);break}}else this._dataService.post(e,"/api/menu/favorites/add").subscribe(r=>{},r=>{this.errors=this._dataService.processErrors(r)}),this.favoriteItems.push(e),this.sortFavorites();e.isFavorite=!e.isFavorite}isFavorite(e){return e.isFavorite}isNotFavorite(e){return!e.isFavorite}editCategory(e,r){this.currentCategoryIndex=r,this.currentCategory=e,this.tempCategoryName=e.category}saveCategory(){if(this.tempCategoryName.trim().length>0){this._slimLoading.start(),this.currentCategory.category=this.tempCategoryName;for(let e=0;e<this.currentCategory.menu.items.length;e++)this.currentCategory.menu.items[e].category=this.tempCategoryName;this._dataService.post(this.menuCategories,"/api/menu/order").subscribe(()=>{this.currentCategoryIndex=void 0,this.currentCategory=void 0,this._slimLoading.complete()})}}
1categoryKeyDown(e){13==e.keyCode&&this.saveCategory()}cancelEditCategory(){this.currentCategoryIndex=void 0,this.currentCategory=void 0}isCategoryInEditMode(e){return this.currentCategoryIndex===e}fetchAllRoles(){this.allRoles=[],this.roleService.getAssignableRoles(G.nR.Company_Applications).subscribe({next:e=>{this.allRoles=e},error:e=>{console.error("Error loading roles:",e)}})}isRoleFilter(e){return this.roleFilter?"^"===this.roleFilter?e.roleIds&&0!==e.roleIds.length?"hiddenByRole":"":e.roleIds&&0!==e.roleIds.length&&e.roleIds.some(r=>r===this.roleFilter)?"":"hiddenByRole":""}openEntityEventsBlade(e){e&&this.auditTrailService.displayEvents(U.F.CompanyMenu,e.id)}static{this.\u0275fac=function(r){return new(r||i)(n.rXU(N.b),n.rXU(A.jK),n.rXU(rt.D),n.rXU(ne.G),n.rXU(P.Ix),n.rXU(Oe.KO),n.rXU(p_.up),n.rXU(cn.L),n.rXU(h_.i),n.rXU(m_.N),n.rXU(g_.E),n.rXU(__.t),n.rXU(ki.W))}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["home"]],viewQuery:function(r,s){if(1&r&&n.GBs(ze.Ek,5),2&r){let o;n.mGM(o=n.lsd())&&(s.basicMenu=o.first)}},features:[n.Jv_([u_.t])],decls:26,vars:25,consts:[["grid",""],["readOnly",""],["editableMenuItem",""],["nonEditableMenuItem",""],["menuItem",""],[1,"d-flex","flex-column","h-100"],[3,"onRefresh","title"],["title","Change background",1,"pageHeaderButton",3,"click"],[1,"fal","fa-cog"],[3,"click","title","label","icon","moduleType","permission"],[3,"title","label","class","icon","moduleType","permission","click",4,"ngIf"],["title","Refresh view",1,"pageHeaderButtonImage","pageHeaderButtonRefresh",3,"click"],[1,"fal","fa-sync"],[1,"row","h-100","overflow-auto","homeWallpaper"],["class","col-12 col-md-auto order-0 order-md-1",4,"ngIf"],[1,"col","d-flex","flex-column","h-100","py-3","order-1","order-md-0"],["class","row align-items-center mb-3",4,"ngIf"],[4,"userPermissions"],[4,"ngIf"],["class","row",4,"ngIf"],["class","w-45-responsive",4,"ngIf"],["contextMenuItem","",3,"execute","visible"],["contextMenuItem","","divider","true",3,"visible"],[1,"col-12","col-md-auto","order-0","order-md-1"],[1,"d-block","d-md-none"],[1,"d-block","mb-3",3,"location","placement"],[1,"d-none","d-md-block","navpanel"],[3,"location","placement"],["class","navpanelSection",4,"ngIf"],["class","mb-3",4,"ngIf"],[1,"mb-3"],["role","alert",1,"alert","alert-warning",2,"width","100%"],["routerLink","/app/admin/advisories",2,"margin-left","5px"],[1,"small","standardText",2,"padding-top","5px"],["notranslate",""],["class","navpanelSection navPanelMessage",4,"ngIf"],[1,"navpanelSection","navPanelMessage"],["routerLink","/app/admin/account"],[1,"navpanelSection"],[1,"popular"],[1,"articlelist"],["notranslate","",4,"ngFor","ngForOf"],[3,"routerLink"],["class","external-link",4,"ngIf"],[1,"external-link"],[1,"warnText"],[2,"padding-top","20px"],["routerLink","/app/service/waiting",1,"btn","btn-secondary"],["routerLink","/app/education/courses",1,"btn","btn-secondary"],[1,"row","align-items-center","mb-3"],[1,"col"],[2,"width","100%",3,"onSubmit","model","label"],[1,"col-auto"],[1,"fal","fa-th","me-3",2,"cursor","pointer",3,"click"],[1,"fal","fa-bars",2,"cursor","pointer",3,"click"],[1,"row"],[1,"editAllContentBox"],["for","roleFilter"],["id","roleFilter","name","roleFilter",1,"form-select",2,"width","300px",3,"ngModelChange","ngModel"],["value",""],["notranslate","",3,"value",4,"ngFor","ngForOf"],["value","^"],["notranslate","",3,"value"],[1,"h-100","overflow-hidden",3,"selectionChange","kendoGridBinding","pageSize","sortable","pageable","rowSelected","selectable","filterable"],[1,"gridGraphic",3,"width"],["kendoGridCellTemplate",""],["field","name","title","Name",3,"filterable"],["kendoGridHeaderTemplate",""],["field","category","title","Category","media","md",3,"filterable"],[3,"color","class",4,"ngIf"],["style","height: 14px;",3,"src",4,"ngIf"],[2,"height","14px",3,"src"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Name"],["kendoTooltip","","tooltipClass","kendoHeaderToolTip","title","Category"],[1,"h-100","overflow-hidden","noHeaderBorder",3,"selectionChange","kendoGridBinding","pageSize","sortable","pageable","rowSelected","selectable","filterable"],["notranslate","",3,"contextMenu","contextMenuValue"],["class","fal fa-star text-success favoriteMenu",4,"ngIf"],[1,"fal","fa-star","text-success","favoriteMenu"],[1,"menuCategoryTitle"],["class","menuItem",4,"ngFor","ngForOf"],[1,"menuItem"],[1,"btn","btn-sq",3,"click","contextMenu","contextMenuValue","title"],[1,"menuIcon"],["class","fal fa-external-link-square fa-4x",3,"color",4,"ngIf"],[3,"src",4,"ngIf"],["notranslate","",1,"menuTitle"],[1,"fal","fa-external-link-square","fa-4x"],[3,"src"],["class","menuList",4,"ngIf"],["style","padding: 20px 0;",4,"ngIf"],["cdkDropListGroup",""],["class","menuList","cdkDropList","",3,"cdkDropListData","cdkDropListConnectedTo","cdkDropListDropped",4,"ngFor","ngForOf"],[1,"menuList"],[2,"padding","20px 0"],["role","alert",1,"alert","alert-warning"],["cdkDropList","",1,"menuList",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],[4,"ngIf","ngIfElse"],["notranslate","",4,"ngIf"],["type","text","class","form-control","style","width: 300px; display: inline-block;",3,"ngModel","keydown","ngModelChange",4,"ngIf"],["class","fal fa-pencil categoryEdit",3,"click",4,"ngIf"],["type","text",1,"form-control",2,"width","300px","display","inline-block",3,"keydown","ngModelChange","ngModel"],[1,"fal","fa-pencil","categoryEdit",3,"click"],[1,"fal","fa-save","categoryEdit",2,"position","inherit",3,"click"],[1,"fal","fa-ban","categoryEdit",2,"position","inherit",3,"click"],["class","menuItem dragable","cdkDrag","",3,"ngClass",4,"ngFor","ngForOf"],["cdkDrag","",1,"menuItem","dragable",3,"ngClass"],[4,"ngIf","ngIfThe
1n","ngIfElse"],["cdkDragPreview",""],["href","",1,"btn","btn-sq",3,"click","title"],[4,"ngTemplateOutlet"],[1,"btn","btn-sq"],[1,"menuIcon",3,"ngStyle"],["class","fa fa-external-link-square fa-4x",3,"color",4,"ngIf"],[1,"fa","fa-external-link-square","fa-4x"],[1,"menuItem","dragable"],[1,"w-45-responsive"],[1,"bladeHeader","clearfix"],[1,"bladeTitle"],[1,"bladeCommands"],["title","Close",1,"pageHeaderButton",3,"click"],[1,"fal","fa-times"],[1,"bladeBody"],["for","imageFile"],["type","file","placeholder","Upload file","id","imageFile","name","imageFile","accept",".jpg,.gif,.png",1,"form-control-file","w-100",3,"change"],["href","",3,"click",4,"ngIf"],[2,"padding-top","30px"],[3,"click","label","moduleType","permission","disabled"],["type","button",1,"btn","btn-secondary",3,"click"],["href","",3,"click"],[1,"mb-3",2,"padding-top","30px"],["class","top-20",4,"ngIf"],[3,"subscription"],[1,"top-20"],["class","alert alert-danger","role","alert",4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-danger"],["title","Delete","class","pageHeaderButtonImage pageHeaderDelete",3,"click",4,"ngIf"],[3,"onSubmit","onCancel","menu","categories","menuModel","isPersonal","showPartnerOptions","errors","icon","moduleType"],["title","Delete",1,"pageHeaderButtonImage","pageHeaderDelete",3,"click"],[1,"fal","fa-trash"],[1,"partnerText"]],template:function(r,s){1&r&&(n.j41(0,"div",5)(1,"page-header",6),n.bIt("onRefresh",function(){return s.refresh()}),n.j41(2,"div")(3,"button",7),n.bIt("click",function(){return s.showSetup()}),n.nrm(4,"span",8),n.EFF(5,"Settings"),n.k0s(),n.j41(6,"rbac-button",9),n.bIt("click",function(){return s.itemAdd()}),n.k0s(),n.DNE(7,R_,1,7,"rbac-button",10)(8,A_,1,7,"rbac-button",10),n.j41(9,"button",11),n.bIt("click",function(){return s.refresh()}),n.nrm(10,"span",12),n.k0s()()(),n.j41(11,"div",13),n.DNE(12,Y_,12,14,"div",14),n.j41(13,"div",15),n.DNE(14,z_,7,4,"div",16)(15,q_,2,1,"ng-container",17)(16,dv,3,2,"ng-container",18)(17,Wv,3,2,"div",19),n.k0s()()(),n.DNE(18,Kv,24,9,"blade-display",20)(19,nb,12,10,"blade-display",20),n.j41(20,"context-menu"),n.DNE(21,ib,1,0,"ng-template",21),n.bIt("execute",function(a){return s.pinFavorite(a.value)}),n.DNE(22,rb,1,0,"ng-template",21),n.bIt("execute",function(a){return s.pinFavorite(a.value)}),n.DNE(23,sb,1,0,"ng-template",21),n.bIt("execute",function(a){return s.editItem(a.value)}),n.DNE(24,ob,0,0,"ng-template",22)(25,ab,2,0,"ng-template",21),n.bIt("execute",function(a){return s.openEntityEventsBlade(a.value)}),n.k0s()),2&r&&(n.R7$(),n.Y8G("title",s._user.GetPortalString("Applications","Applications")),n.R7$(5),n.HbH("pageHeaderButton"),n.Y8G("title","Add menu item")("label","Add")("icon","fal fa-plus")("moduleType","Company_Applications")("permission","Read"),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("ngIf",s.editMode),n.R7$(3),n.xc7("background-image",s._sanitizer.bypassSecurityTrustStyle("url("+s._user.UserProfile.wallpaper.imageUrl+")")),n.R7$(),n.Y8G("ngIf",!s.editMode),n.R7$(2),n.Y8G("ngIf",!s.editMode),n.R7$(),n.Y8G("userPermissions",n.lJ4(24,C_)),n.R7$(),n.Y8G("ngIf",1==s.displayStyle),n.R7$(),n.Y8G("ngIf",0==s.displayStyle),n.R7$(),n.Y8G("ngIf",s.isShowSetup),n.R7$(),n.Y8G("ngIf",s.showForm),n.R7$(2),n.Y8G("visible",s.isNotFavorite),n.R7$(),n.Y8G("visible",s.isFavorite),n.R7$(),n.Y8G("visible",s.canBeEdited),n.R7$(),n.Y8G("visible",s.hasPartnerSecurityFullPermission),n.R7$(),n.Y8G("visible",s.hasPartnerSecurityFullPermission))},dependencies:[P.Wk,Ri.W,Q.C,M.YU,M.Sq,M.bT,M.T3,M.B3,ze.Q5,ze.Ek,ze.JO,v_.x,V.xH,V.y7,V.me,V.wz,V.BC,V.vS,I._ab,I.vqx,I.Ioe,I.i4w,I.TiO,b_.Q,st.y,yt.T,dn.i,un.dg,Ct.S,Ai.C3,St.j,Ee.O7,Ee.RK,Ee.T1,Ee.r0,y_.Z,Ge.Pt,ot.HR,ot.d6],styles:[".hiddenByRole[_ngcontent-%COMP%]{display:none!important}.categoryEdit[_ngcontent-%COMP%]{color:var(--main-link-color);cursor:pointer;font-size:14px;font-weight:600;margin-left:15px;margin-top:11px}.favoriteMenu[_ngcontent-%COMP%]{margin-left:10px;font-weight:600;font-size:10px}.editMode[_ngcontent-%COMP%]{border:2px solid var(--main-border-color);min-height:200px;padding:10px;background-color:var(--main-alt-background);width:100%}.homeWallpaper[_ngcontent-%COMP%]{background:no-repeat center;background-size:cover}"]})}}return i})();var q=C(79547);const db=P.iI.forChild([{path:"",component:Nm,children:[{path:"applications",component:lb,canActivate:[ue.q,fe.m],title:"Ap
1plications",data:{modules:[W.I.Company_Applications],claimType:q.nR.Company_Applications,claimValue:q.aX.Read}},{path:"articles",component:fn,canActivate:[ue.q,fe.m],title:"Knowledge Base",data:{modules:[W.I.Company,W.I.Company_Knowledge_Base],claimType:q.nR.Company_KnowledgeBase,claimValue:q.aX.Read}},{path:"articles/:id",component:fn,canActivate:[ue.q,fe.m],title:"Knowledge Base",data:{modules:[W.I.Company,W.I.Company_Knowledge_Base],claimType:q.nR.Company_KnowledgeBase,claimValue:q.aX.Read}},{path:"categories/:id",component:fn,canActivate:[ue.q,fe.m],title:"Knowledge Base",data:{modules:[W.I.Company,W.I.Company_Knowledge_Base],claimType:q.nR.Company_KnowledgeBase,claimValue:q.aX.Read}},{path:"calendar",component:Fm,canActivate:[ue.q,fe.m],title:"Calendar",data:{modules:[W.I.Company,W.I.Company_Calendar],claimType:q.nR.Company_Calendar,claimValue:q.aX.Read}},{path:"directory",component:Bo,canActivate:[ue.q,fe.m],title:"Directory",data:{modules:[W.I.Company,W.I.Company_Directory],claimType:q.nR.Company_Directory,claimValue:q.aX.Read}},{path:"directory/:id",component:Bo,canActivate:[ue.q,fe.m],title:"Directory",data:{modules:[W.I.Company,W.I.Company_Directory],claimType:q.nR.Company_Directory,claimValue:q.aX.Read}},{path:"messages",component:Lo,canActivate:[ue.q,fe.m],title:"Messages",data:{modules:[W.I.Company,W.I.Company_Messages],claimType:q.nR.Company_Messages,claimValue:q.aX.Read}},{path:"messages/:id",component:Lo,canActivate:[ue.q,fe.m],title:"Messages",data:{modules:[W.I.Company,W.I.Company_Messages],claimType:q.nR.Company_Messages,claimValue:q.aX.Read}}]}]);var ub=C(35867),fb=C(93873);let pb=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=n.$C({type:i})}static{this.\u0275inj=n.G2t({imports:[db,E.sb,cm,ub._,fb.G]})}}return i})()},13809:(ln,Se,C)=>{C.d(Se,{t:()=>ne});var E=C(54438),N=C(89417),A=C(73539),te=C(32394);let ne=(()=>{class X{constructor(U){this.roleService=U,this.placeholder="Select roles...",this.disabled=!1,this.autoClose=!0,this.clearButton=!0,this.selectionChange=new E.bkB,this.roles=[],this.selectedRoleIds=[],this.loading=!1,this.onChange=G=>{},this.onTouched=()=>{}}ngOnInit(){this.loadRoles()}loadRoles(){this.loading=!0,(this.moduleType?this.roleService.getAssignableRoles(this.moduleType):this.roleService.getRoles()).subscribe({next:G=>{this.roles=G,this.loading=!1},error:G=>{console.error("Error loading roles:",G),this.loading=!1}})}onValueChange(U){this.selectedRoleIds=U||[],this.onChange(this.selectedRoleIds),this.onTouched(),this.selectionChange.emit(this.selectedRoleIds)}writeValue(U){this.selectedRoleIds=U||[]}registerOnChange(U){this.onChange=U}registerOnTouched(U){this.onTouched=U}setDisabledState(U){this.disabled=U}static{this.\u0275fac=function(G){return new(G||X)(E.rXU(A.W))}}static{this.\u0275cmp=E.VBU({type:X,selectors:[["app-role-selector"]],inputs:{placeholder:"placeholder",disabled:"disabled",moduleType:"moduleType",autoClose:"autoClose",clearButton:"clearButton"},outputs:{selectionChange:"selectionChange"},features:[E.Jv_([{provide:N.kq,useExisting:(0,E.Rfq)(()=>X),multi:!0}])],decls:1,vars:7,consts:[["notranslate","","textField","name","valueField","id",3,"valueChange","data","value","placeholder","disabled","clearButton","valuePrimitive","autoClose"]],template:function(G,K){1&G&&(E.j41(0,"kendo-multiselect",0),E.bIt("valueChange",function(Q){return K.onValueChange(Q)}),E.k0s()),2&G&&E.Y8G("data",K.roles)("value",K.selectedRoleIds)("placeholder",K.placeholder)("disabled",K.disabled||K.loading)("clearButton",K.clearButton)("valuePrimitive",!0)("autoClose",K.autoClose)},dependencies:[te.b3],encapsulation:2})}}return X})()}}]);

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.