1 line
234 KiB
JavaScript
1 line
234 KiB
JavaScript
"use strict";(self.webpackChunkworklenz=self.webpackChunkworklenz||[]).push([[848],{95542:(gt,ot,o)=>{o.d(ot,{I:()=>l});var t=o(78645),n=o(65879);let l=(()=>{var d;class L{constructor(){this._teamCreateSbj$=new t.x,this._teamNameChangeSbj$=new t.x}get onCreateTeam(){return this._teamCreateSbj$.asObservable()}get onTeamNameChange(){return this._teamNameChangeSbj$.asObservable()}emitCreateTeam(){this._teamCreateSbj$.next()}emitTeamNameChange(b){this._teamNameChangeSbj$.next(b)}}return(d=L).\u0275fac=function(b){return new(b||d)},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),L})()},92848:(gt,ot,o)=>{o.r(ot),o.d(ot,{AdministratorModule:()=>Xe});var t=o(96814),n=o(60095),l=o(35420),d=o(15861),L=function(c){return c[c.Category=0]="Category",c[c.MenuItem=1]="MenuItem",c}(L||{}),r=o(94489),b=o(69649),W=o(86408),N=o(71993),F=o(63019),H=o(34849),e=o(65879),it=o(32333),lt=o(83916),tt=o(975),_t=o(43460),pt=o(72042),$=o(81221),J=o(94409),Y=o(16849),Z=o(85080),M=o(64532),Q=o(95542),w=o(82669),nt=o(33410),et=o(3626),V=o(28538),st=o(93903),G=o(42840),U=o(70855),v=o(41958);function O(c,B){if(1&c&&(e.ynx(0),e._UZ(1,"nz-alert",5),e.BQk()),2&c){e.oxw(2);const g=e.MAs(2),a=e.MAs(4);e.xp6(1),e.Q6J("nzAction",g)("nzMessage",a)("nzType","error")}}function S(c,B){if(1&c&&e._UZ(0,"nz-alert",7),2&c){const g=B.$implicit;e.Q6J("nzType",g.type)("nzMessage",g.description)}}function x(c,B){if(1&c&&(e.ynx(0),e.YNc(1,S,1,2,"nz-alert",6),e.BQk()),2&c){const g=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",g.alerts)("ngForTrackBy",g.trackByIndex)}}function h(c,B){if(1&c&&(e.TgZ(0,"nz-affix",3),e.YNc(1,O,2,3,"ng-container",4),e.YNc(2,x,2,2,"ng-container",4),e.qZA()),2&c){const g=e.oxw();e.Q6J("nzOffsetTop",0),e.xp6(1),e.Q6J("ngIf",g.updateAvailable),e.xp6(1),e.Q6J("ngIf",g.alerts.length)}}function j(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(g);const u=e.oxw();return e.KtG(u.reload())}),e._uU(1,"Reload"),e.qZA()}2&c&&e.Q6J("nzSize","small")("nzType","primary")}function q(c,B){if(1&c){const g=e.EpF();e._uU(0," Action required! New version of Worklenz available! "),e.TgZ(1,"a",9),e.NdJ("click",function(){e.CHM(g);const u=e.oxw();return e.KtG(u.reload())}),e._uU(2,"Reload"),e.qZA(),e._uU(3," to apply changes.\n")}}let R=(()=>{var c;class B{constructor(){this.updateAvailable=!1,this.alerts=[]}reload(){window.location.reload()}trackByIndex(a,u){return u.id}}return(c=B).\u0275fac=function(a){return new(a||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-alerts"]],inputs:{updateAvailable:"updateAvailable",alerts:"alerts"},decls:5,vars:1,consts:[[3,"nzOffsetTop",4,"ngIf"],["actionTemplate1",""],["messageTemplate",""],[3,"nzOffsetTop"],[4,"ngIf"],["nzShowIcon","",2,"font-weight","500",3,"nzAction","nzMessage","nzType"],["style","font-weight: 500;","nzShowIcon","",3,"nzType","nzMessage",4,"ngFor","ngForOf","ngForTrackBy"],["nzShowIcon","",2,"font-weight","500",3,"nzType","nzMessage"],["nz-button","",3,"nzSize","nzType","click"],[3,"click"]],template:function(a,u){1&a&&(e.YNc(0,h,3,3,"nz-affix",0),e.YNc(1,j,2,2,"ng-template",null,1,e.W1O),e.YNc(3,q,4,0,"ng-template",null,2,e.W1O)),2&a&&e.Q6J("ngIf",u.updateAvailable||u.alerts.length)},dependencies:[t.sg,t.O5,V.$,st.r,G.ix,U.w,v.dQ],changeDetection:0}),B})();var K=o(27782),dt=o(45538),X=o(8689),at=o(73460),E=o(8083),m=o(96109),y=o(62787),T=o(62595),P=o(33640),f=o(96928),A=o(72095),rt=o(28677);const mt=function(){return{exact:!1}},vt=function(){return["ant-menu-item-selected"]},Ot=function(c){return[c]};function Pt(c,B){if(1&c&&(e.TgZ(0,"li",36)(1,"strong"),e._uU(2),e.qZA()()),2&c){const g=B.$implicit,a=e.oxw(2);e.Q6J("routerLinkActiveOptions",e.DdM(5,mt))("nzDisabled",a.profile.is_expired)("routerLinkActive",e.DdM(6,vt))("routerLink",a.profile.is_expired?null:e.VKq(7,Ot,g.url)),e.xp6(2),e.Oqu(g.label)}}function wt(c,B){if(1&c&&(e.TgZ(0,"li",37)(1,"strong"),e._uU(2),e.qZA()()),2&c){const g=B.$implicit,a=B.index,u=e.oxw(2);e.Q6J("routerLinkActiveOptions",e.DdM(6,mt))("nzDisabled",u.profile.is_expired)("routerLinkActive",e.DdM(7,vt))("routerLink",u.profile.is_expired?null:e.VKq(8,Ot,g.url))("ngClass",a>1?"d-none":""),e.xp6(2),e.Oqu(g.label)}}const Lt=function(){return["item-selected"]};function Rt(c,B){if(1&c&&(e.TgZ(0,"li",38),e._uU(1),e.qZA()),2&c){const g=B.$implicit,a=B.index,u=e.oxw(2);e.Q6J("routerLinkActiveOptions",e.DdM(6,mt))("nzDisabled",u.profile.is_expired)("routerLinkActive",e.DdM(7,Lt))("routerLink",u.profile.is_expired?null:e.VKq(8,Ot,g.url))("ngClass",1===a||0===a?"d-none":""),e.xp6(1),e.hij(" ",g.label," ")}}function Bt(c,B){1&c&&(e.ynx(0),e.TgZ(1,"span",40)(2,"a",41),e._uU(3," Upgrade Plan "),e.qZA()(),e.BQk())}function Ut(c,B){if(1&c&&(e.TgZ(0,"div",22),e.YNc(1,Bt,4,0,"ng-container",39),e.qZA()),2&c){const g=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!g.profile.is_ltd_user)}}function Gt(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"li",42)(1,"div",43)(2,"button",44),e.NdJ("click",function(){e.CHM(g);const u=e.oxw(2);return e.KtG(u.openAddMemberForm())}),e._UZ(3,"span",45),e._uU(4,"Invite "),e.qZA()(),e.TgZ(5,"div",46)(6,"button",47),e.NdJ("click",function(){e.CHM(g);const u=e.oxw(2);return e.KtG(u.openAddMemberForm())}),e._UZ(7,"span",45),e.qZA()()()}if(2&c){const g=e.oxw(2);e.xp6(2),e.Q6J("nzTooltipPlacement","bottom")("nzTooltipTitle","Add Team Member")("disabled",g.profile.is_expired),e.xp6(4),e.Akn("width: 32px;"),e.Q6J("nzTooltipPlacement","bottom")("nzTooltipTitle","Add Team Member")("disabled",g.profile.is_expired),e.xp6(1),e.Akn("font-size: 18px;")}}function jt(c,B){if(1&c&&(e.TgZ(0,"li",48)(1,"span",49)(2,"strong"),e._UZ(3,"span",50),e._uU(4),e._UZ(5,"span",51),e.qZA()()()),2&c){const g=e.oxw(2),a=e.MAs(6);e.xp6(1),e.Q6J("nzDropdownMenu",a)("nzPlacement","bottomRight")("nzTooltipPlacement","bottom")("nzTooltipTitle","Switch Team")("nzTrigger","click"),e.xp6(3),e.hij(" ",g.profile.team_name," ")}}function Xt(c,B){if(1&c&&(e.TgZ(0,"nz-badge",52),e._UZ(1,"span",53),e.qZA()),2&c){const g=e.oxw(2);e.Q6J("nzCount",g.count)("nzDot",!1)}}function qt(c,B){if(1&c&&(e.TgZ(0,"nz-badge",54),e._UZ(1,"span",53),e.qZA()),2&c){const g=e.oxw(2);e.Q6J("nzDot",g.hasNotifications())}}function te(c,B){1&c&&e._UZ(0,"span",55)}function ee(c,B){if(1&c&&e._UZ(0,"nz-avatar",56),2&c){const g=e.oxw(2);e.Q6J("nzSrc",g.profile.avatar_url)}}const ne=function(){return["/worklenz/admin-center"]};function ie(c,B){1&c&&(e.TgZ(0,"li",71),e._uU(1,"Admin Center"),e.qZA()),2&c&&e.Q6J("routerLink",e.DdM(1,ne))}const oe=function(){return["/worklenz/settings"]};function se(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"div",57)(1,"div",58)(2,"h2",59),e._uU(3,"Account"),e.qZA()(),e.TgZ(4,"div",60)(5,"div",61)(6,"div",62),e._UZ(7,"nz-avatar",63),e.qZA(),e.TgZ(8,"div",64)(9,"h4",59),e._uU(10),e.qZA(),e.TgZ(11,"p",65),e._uU(12),e.qZA(),e.TgZ(13,"p",66),e._uU(14),e.qZA()()()(),e.TgZ(15,"div",67)(16,"ul",19),e.YNc(17,ie,2,2,"li",68),e.TgZ(18,"li",69),e._uU(19,"Settings "),e.qZA(),e.TgZ(20,"li",70),e.NdJ("click",function(){e.CHM(g);const u=e.oxw(2);return e.KtG(u.signOut())}),e._uU(21,"Log Out"),e.qZA()()()()}if(2&c){const g=e.oxw(2);e.xp6(7),e.Udp("background-color",g.profile.avatar_url?"#ececec":g.avatarColor),e.Q6J("nzText",null==g.profile.name?null:g.profile.name.charAt(0))("nzSrc",g.profile.avatar_url),e.xp6(3),e.Oqu(g.profile.name),e.xp6(2),e.Oqu(g.profile.email),e.xp6(2),e.hij("(",g.userRole,")"),e.xp6(3),e.Q6J("ngIf",g.isOwnerOrAdmin()),e.xp6(1),e.Q6J("nzDisabled",g.profile.is_expired)("routerLink",g.profile.is_expired?null:e.DdM(10,oe))}}function ae(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"div",10)(1,"ul",11),e.YNc(2,Pt,3,9,"li",12),e.qZA(),e.TgZ(3,"div",13)(4,"ul",14),e.YNc(5,wt,3,10,"li",15),e.qZA(),e.TgZ(6,"button",16),e._UZ(7,"span",17),e.qZA(),e.TgZ(8,"nz-dropdown-menu",null,18)(10,"ul",19),e.YNc(11,Rt,2,10,"li",20),e.qZA()()(),e.TgZ(12,"div",0),e.YNc(13,Ut,2,1,"div",21),e.TgZ(14,"div",22)(15,"ul",23),e.YNc(16,Gt,8,10,"li",24),e.YNc(17,jt,6,6,"li",25),e.TgZ(18,"li",26),e.NdJ("click",function(){e.CHM(g);const u=e.oxw();return e.KtG(u.openNotificationsDrawer())}),e.ynx(19,27),e.YNc(20,Xt,2,2,"nz-badge",28),e.YNc(21,qt,2,1,"nz-badge",29),e.BQk(),e.qZA(),e.TgZ(22,"li",30),e._UZ(23,"span",31),e.qZA(),e.TgZ(24,"li",32),e.NdJ("click",function(){e.CHM(g);const u=e.oxw();return e.KtG(u.showProfileDropdown=!u.showProfileDropdown)}),e.YNc(25,te,1,0,"span",33),e.YNc(26,ee,1,1,"nz-avatar",34),e.qZA(),e.YNc(27,se,22,11,"div",35),e.qZA()()()()}if(2&c){const g=e.MAs(9),a=e.oxw();e.xp6(1),e.Q6J("nzMode","horizontal")("nzTheme","light"),e.xp6(1),e.Q6J("ngForOf",a.navigation),e.xp6(2),e.Q6J("nzMode","horizontal")("nzTheme","light"),e.xp6(1),e.Q6J("ngForOf",a.navigation),e.xp6(1),e.Q6J("nzDropdownMenu",g),e.xp6(5),e.Q6J("ngForOf",a.navigation),e.xp6(2),e.Q6J("ngIf",a.isOwnerOrAdmin()&&("trialing"===a.profile.subscription_status||a.profile.is_expired)),e.xp6(2),e.Q6J("nzMode","horizontal")("nzTheme","light"),e.xp6(1),e.Q6J("ngIf",a.isOwnerOrAdmin()),e.xp6(1),e.Q6J("ngIf",a.profile&&a.profile.team_name),e.xp6(1),e.Q6J("nzDisabled",a.profile.is_expired)("nzTooltipPlacement","bottom")("nzTooltipTitle","Notifications"),e.xp6(1),e.Q6J("ngSwitch",a.showUnreadNotificationsCount()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("nzTooltipPlacement","bottom")("nzTooltipTitle","Help (Coming Soon)"),e.xp6(2),e.Q6J("nzTooltipPlacement","bottom")("nzTooltipTitle","Profile"),e.xp6(1),e.Q6J("ngIf",!a.profile.avatar_url),e.xp6(1),e.Q6J("ngIf",a.profile.avatar_url),e.xp6(1),e.Q6J("ngIf",a.showProfileDropdown)}}function re(c,B){if(1&c&&e._UZ(0,"nz-avatar",82),2&c){const g=e.oxw().$implicit,a=e.oxw();e.Udp("background-color",a.utils.getColor(g.name)),e.Q6J("nzText",null==g.name?null:g.name.charAt(0))}}function le(c,B){1&c&&e._UZ(0,"span",83)}function ce(c,B){if(1&c&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&c){const g=e.oxw().$implicit;e.xp6(1),e.Oqu(g.name)}}function pe(c,B){1&c&&(e.TgZ(0,"span",22),e._uU(1,"Setup my account"),e.qZA())}function de(c,B){if(1&c&&(e.TgZ(0,"span",22),e._uU(1),e.qZA()),2&c){const g=e.oxw().$implicit;e.xp6(1),e.Oqu(g.name)}}function ue(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"li",72),e.NdJ("click",function(){const D=e.CHM(g).$implicit,ht=e.oxw();return e.KtG(ht.selectTeam(D.id))}),e.TgZ(1,"div",73)(2,"div",74)(3,"div",75),e.YNc(4,re,1,3,"nz-avatar",76),e.YNc(5,le,1,0,"span",77),e.qZA(),e.TgZ(6,"div",78)(7,"small",79),e._uU(8),e.qZA(),e.YNc(9,ce,2,1,"span",21),e.YNc(10,pe,2,0,"span",21),e.YNc(11,de,2,1,"span",21),e.qZA()(),e.TgZ(12,"div",80),e._UZ(13,"span",81),e.qZA()()()}if(2&c){const g=B.$implicit,a=e.oxw();e.xp6(4),e.Q6J("ngIf",a.getTeamStatus(g)===a.TEAM_STATUSES.OwnerAndNameChanged||a.getTeamStatus(g)===a.TEAM_STATUSES.NotTheOwner),e.xp6(1),e.Q6J("ngIf",a.getTeamStatus(g)===a.TEAM_STATUSES.OwnerAndNameNotChanged),e.xp6(3),e.hij(" ",a.getTeamStatus(g)!==a.TEAM_STATUSES.OwnerAndNameNotChanged?"Owned by "+g.owns_by:"Click to setup your own account"," "),e.xp6(1),e.Q6J("ngIf",a.getTeamStatus(g)===a.TEAM_STATUSES.NotTheOwner),e.xp6(1),e.Q6J("ngIf",a.getTeamStatus(g)===a.TEAM_STATUSES.OwnerAndNameNotChanged),e.xp6(1),e.Q6J("ngIf",a.getTeamStatus(g)===a.TEAM_STATUSES.OwnerAndNameChanged),e.xp6(1),e.Q6J("nzType",a.isActiveTeam(g.id)?"success":"secondary")}}var St=function(c){return c[c.OwnerAndNameChanged=0]="OwnerAndNameChanged",c[c.OwnerAndNameNotChanged=1]="OwnerAndNameNotChanged",c[c.NotTheOwner=2]="NotTheOwner",c}(St||{});let _e=(()=>{var c;class B{get avatarColor(){return this.utils.getColor(this.profile?.name)}get userRole(){return this.auth.role}constructor(a,u,D,ht,zt,Nt,Ht,Kt,ge,fe){this.settingsApi=a,this.api=u,this.notificationSettings=D,this.auth=ht,this.cdr=zt,this.utils=Nt,this.adminCenterService=Ht,this.teamMembersApi=Kt,this.settingsService=ge,this.router=fe,this.teams=[],this.profile={},this.navigation=[],this.count=0,this.showNotifications=!1,this.showNotificationsChange=new e.vpe,this.TEAM_STATUSES=St,this.showProfileDropdown=!1,this.showTeamMemberModal=!1,this.loading=!1,this.switchingTeam=!1,this.selectedMemberId=null,this.showMoreSeatsModal=!1,this.moreSeatsData={},this.notificationSettings.onCountsUpdate$.pipe((0,N.sL)()).subscribe(()=>{this.cdr.markForCheck()}),this.adminCenterService.onTeamNameChange.pipe((0,N.sL)()).subscribe(At=>{this.onHandleTeamNameChange(At)})}signOut(){this.auth.signOutWithConfirm()}showUnreadNotificationsCount(){return!!this.notificationSettings.settings.show_unread_items_count}hasNotifications(){return this.notificationSettings.count>0}isActiveTeam(a){return a===this.profile?.team_id}openNotificationsDrawer(){this.profile.is_expired||(this.showNotifications=!0,this.showNotificationsChange.emit(!0),W.s.track(K.Yh))}selectTeam(a){var u=this;return(0,d.Z)(function*(){if(a){u.loading=!0,u.switchingTeam=!0;try{(yield u.api.activate(a)).done?(W.s.track(K.n),yield u.auth.authorize(),u.reload()):u.switchingTeam=!1,u.loading=!1}catch(D){u.loading=!1,u.switchingTeam=!1,(0,b.tu)(D)}u.cdr.detectChanges()}})()}hideProfileDropdown(a){a.target.classList.contains("prevent-default")||(this.showProfileDropdown=!1,this.cdr.detectChanges())}getTeamStatus(a){return a.owner&&!this.profile?.my_setup_completed?St.OwnerAndNameNotChanged:a.owner&&this.profile?.my_setup_completed?St.OwnerAndNameChanged:St.NotTheOwner}onHandleTeamNameChange(a){this.profile?.team_id===a.teamId&&(this.profile.team_name=a.teamName),this.cdr.detectChanges()}reload(){window.location.reload()}reset(){this.selectedMemberId=null}isOwnerOrAdmin(){return this.profile?.owner||this.profile?.is_admin}handleOnCreateOrUpdate(a){1==a&&W.s.track(K.YC),this.settingsService.emitNewMemberCreated()}openAddMemberForm(){this.showTeamMemberModal=!0,W.s.track(K.oo)}navigateHome(){this.router.navigate(["/worklenz"])}handleMoreSeatsNeeded(a){this.moreSeatsData=a,this.showMoreSeatsModal=!0}}return(c=B).\u0275fac=function(a){return new(a||c)(e.Y36(Y.G),e.Y36(lt.S),e.Y36(Z.g),e.Y36(it.e),e.Y36(e.sBO),e.Y36(M.F),e.Y36(Q.I),e.Y36(dt.B),e.Y36(X.g),e.Y36(l.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-header"]],hostBindings:function(a,u){1&a&&e.NdJ("click",function(ht){return u.hideProfileDropdown(ht)},!1,e.evT)},inputs:{teams:"teams",profile:"profile",navigation:"navigation",count:"count",showNotifications:"showNotifications"},outputs:{showNotificationsChange:"showNotificationsChange"},decls:11,vars:8,consts:[[1,"d-flex","align-items-center"],[1,"logo-holder"],["alt","Worklenz",1,"img-fluid","cursor-pointer","logo-large",3,"src","click"],["alt","Worklenz",1,"img-fluid","cursor-pointer","logo-small",3,"src","click"],["class","d-flex justify-content-between w-100",4,"ngIf"],["teamsMenu","nzDropdownMenu"],["nz-menu","","nzSelectable","",1,"p-0","members-dropdown",2,"border-radius","14px"],["nz-menu-item","","class","d-flex team-list-item py-1",3,"click",4,"ngFor","ngForOf"],[3,"show","memberId","onCancel","onCreateOrUpdate","onMoreSeatsNeeded","showChange"],[3,"isVisible","subscriptionData","modalClosed"],[1,"d-flex","justify-content-between","w-100"],["nz-menu","",1,"top-nav-ul-main",3,"nzMode","nzTheme"],["nz-menu-item","","nz-typography","",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink",4,"ngFor","ngForOf"],[1,"align-items-center","mob-nav-main"],["nz-menu","",3,"nzMode","nzTheme"],["nz-menu-item","","nz-typography","",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink","ngClass",4,"ngFor","ngForOf"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nz-icon","","nzType","ellipsis"],["menu1","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","","nz-typography","","class","mob-main-nav",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink","ngClass",4,"ngFor","ngForOf"],["class","d-block",4,"ngIf"],[1,"d-block"],["nz-menu","",1,"top-nav-ul-secondary",2,"position","relative",3,"nzMode","nzTheme"],["class","menu-border-0 px-0 ms-3","nz-menu-item","",4,"ngIf"],["class","teams-switch menu-border-0 pe-0","nz-menu-item","","nz-typography","",4,"ngIf"],["nz-menu-item","","nz-tooltip","","nz-typography","",1,"menu-hover","menu-border-0",3,"nzDisabled","nzTooltipPlacement","nzTooltipTitle","click"],[3,"ngSwitch"],[3,"nzCount","nzDot",4,"ngSwitchCase"],[3,"nzDot",4,"ngSwitchCase"],["nz-menu-item","","nz-tooltip","","nz-typography","",1,"menu-hover","menu-border-0",3,"nzTooltipPlacement","nzTooltipTitle"],["nz-icon","","nzTheme","outline","nzType","question-circle",2,"font-size","20px"],["nz-menu-item","","nz-tooltip","","nz-typography","",1,"menu-hover","menu-border-0","prevent-default",3,"nzTooltipPlacement","nzTooltipTitle","click"],["nz-icon","","nzTheme","outline","nzType","user","style","font-size: 20px;pointer-events: none;",4,"ngIf"],["nzIcon","user","style","pointer-events: none",3,"nzSrc",4,"ngIf"],["class","profile-details-dropdown prevent-default pt-def",4,"ngIf"],["nz-menu-item","","nz-typography","",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink"],["nz-menu-item","","nz-typography","",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink","ngClass"],["nz-menu-item","","nz-typography","",1,"mob-main-nav",3,"routerLinkActiveOptions","nzDisabled","routerLinkActive","routerLink","ngClass"],[4,"ngIf"],["nz-typography","",1,"upgrade-btn"],["href","worklenz/admin-center/billing",2,"color","rgba(0,0,0,0.85)"],["nz-menu-item","",1,"menu-border-0","px-0","ms-3"],[1,"mb-none"],["nz-button","","nzType","dashed","nz-tooltip","",1,"invite-btn",3,"nzTooltipPlacement","nzTooltipTitle","disabled","click"],["nz-icon","","nzType","usergroup-add","nzTheme","outline"],[1,"lg-none"],["nz-button","","nzType","dashed","nz-tooltip","","nzShape","round",1,"invite-btn","p-0",3,"nzTooltipPlacement","nzTooltipTitle","disabled","click"],["nz-menu-item","","nz-typography","",1,"teams-switch","menu-border-0","pe-0"],["nz-dropdown","","nz-tooltip","",1,"rounded-pill","team-name","border-bottom",3,"nzDropdownMenu","nzPlacement","nzTooltipPlacement","nzTooltipTitle","nzTrigger"],["nz-icon","","nzTheme","outline","nzType","bank"],["nz-icon","","nzTheme","outline","nzType","caret-down"],[3,"nzCount","nzDot"],["nz-icon","","nzType","bell","nzTheme","outline"],[3,"nzDot"],["nz-icon","","nzTheme","outline","nzType","user",2,"font-size","20px","pointer-events","none"],["nzIcon","user",2,"pointer-events","none",3,"nzSrc"],[1,"profile-details-dropdown","prevent-default","pt-def"],[1,"account-heading","prevent-default","pl-def","pr-def"],[1,"prevent-default"],[1,"account-details","pl-def","prevent-default","pr-def"],[1,"d-flex","align-items-center","prevent-default"],[1,"account-image","prevent-default"],[2,"color","#fff",3,"nzText","nzSrc"],[1,"account-name","prevent-default"],["nz-typography","","nzEllipsis","",1,"prevent-default"],["nzType","secondary","nz-typography","","nzEllipsis","",1,"prevent-default"],[1,"actions","prevent-default"],["nz-menu-item","",3,"routerLink",4,"ngIf"],["nz-menu-item","",3,"nzDisabled","routerLink"],["nz-menu-item","",1,"pl-def","pr-def",3,"click"],["nz-menu-item","",3,"routerLink"],["nz-menu-item","",1,"d-flex","team-list-item","py-1",3,"click"],[1,"w-100","align-items-center","d-flex","justify-content-between"],[1,"d-flex","align-items-center","me-3"],[1,"me-2","d-flex","teams-dropdown-avatar"],["style","color:#fff;",3,"nzText","background-color",4,"ngIf"],["class","team-name-edit-icon","nz-icon","","nzType","edit","nzTheme","outline",4,"ngIf"],[1,"align-items-baseline","flex-column","justify-content-start"],["nz-typography","","nzType","secondary","nzEllipsis","",1,"d-block"],["nz-typography","",1,"d-flex","align-items-center","mb-0",2,"font-size","17px",3,"nzType"],["nz-icon","","nzType","check-circle","nzTheme","fill"],[2,"color","#fff",3,"nzText"],["nz-icon","","nzType","edit","nzTheme","outline",1,"team-name-edit-icon"]],template:function(a,u){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"img",2),e.NdJ("click",function(){return u.navigateHome()}),e.qZA(),e.TgZ(3,"img",3),e.NdJ("click",function(){return u.navigateHome()}),e.qZA()()(),e.YNc(4,ae,28,26,"div",4),e.TgZ(5,"nz-dropdown-menu",null,5)(7,"ul",6),e.YNc(8,ue,14,7,"li",7),e.qZA()(),e.TgZ(9,"worklenz-team-members-form",8),e.NdJ("onCancel",function(){return u.reset()})("onCreateOrUpdate",function(ht){return u.handleOnCreateOrUpdate(ht)})("onMoreSeatsNeeded",function(ht){return u.handleMoreSeatsNeeded(ht)})("showChange",function(ht){return u.showTeamMemberModal=ht}),e.qZA(),e.TgZ(10,"worklenz-add-more-seats",9),e.NdJ("modalClosed",function(){return u.showMoreSeatsModal=!1}),e.qZA()),2&a&&(e.xp6(2),e.Q6J("src","/assets/images/wl-logo.png",e.LSH),e.xp6(1),e.Q6J("src","/assets/icons/icon-192x192.png",e.LSH),e.xp6(1),e.Q6J("ngIf",u.profile),e.xp6(4),e.Q6J("ngForOf",u.teams),e.xp6(1),e.Q6J("show",u.showTeamMemberModal)("memberId",u.selectedMemberId),e.xp6(1),e.Q6J("isVisible",u.showMoreSeatsModal)("subscriptionData",u.moreSeatsData))},dependencies:[t.mk,t.sg,t.O5,t.RF,t.n9,l.rH,l.Od,at.wO,at.r9,E.ZU,m.SY,y.cm,y.RR,y.wA,T.Ls,P.x7,f.Dz,G.ix,U.w,v.dQ,A.S,rt.x],styles:[".logo-holder[_ngcontent-%COMP%]{width:135px;max-width:135px;margin-right:7px}.logo[_ngcontent-%COMP%]{width:120px;height:31px;background:rgba(255,255,255,.2);margin:16px 24px 16px 0;float:left}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:27px}.pt-def[_ngcontent-%COMP%]{padding-top:16px}.pb-def[_ngcontent-%COMP%]{padding-bottom:16px}.pl-def[_ngcontent-%COMP%]{padding-left:16px}.pr-def[_ngcontent-%COMP%]{padding-right:16px}[nz-menu-item][_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}span[nztype=bell][_ngcontent-%COMP%]{font-size:20px}.team-list-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #f0f0f0!important}.team-name-edit-icon[_ngcontent-%COMP%]{width:32px;height:32px;background:rgba(150,150,150,.1);display:flex;align-items:center;justify-content:center;border-radius:16px}.profile-details-dropdown[_ngcontent-%COMP%]{position:absolute;right:0;top:70px;background-color:#fff;box-shadow:var(--ds-shadow-overlay, 0 4px 8px -2px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .31));z-index:9;border-radius:4px;width:230px}.profile-details-dropdown[_ngcontent-%COMP%] .account-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{line-height:20px;margin-bottom:0;font-size:14px;font-weight:500}.profile-details-dropdown[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{line-height:20px;margin-bottom:10px;margin-top:10px;font-size:14px;font-weight:500;padding-left:16px}.profile-details-dropdown[_ngcontent-%COMP%] .account-name[_ngcontent-%COMP%]{margin-left:12px;width:155px}.profile-details-dropdown[_ngcontent-%COMP%] .account-name[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{line-height:20px;margin-bottom:0;font-size:14px;font-weight:500}.profile-details-dropdown[_ngcontent-%COMP%] .account-name[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:20px;margin-bottom:0;font-size:12px}.profile-details-dropdown[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{border-top:1px solid #f0f0f0}.profile-details-dropdown[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:6px}.profile-details-dropdown[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:36px;cursor:pointer;margin-bottom:2px}.profile-details-dropdown[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#edebf0!important}.profile-details-dropdown[_ngcontent-%COMP%] .account-details[_ngcontent-%COMP%]{margin-right:16px}[nz-menu][_ngcontent-%COMP%]{line-height:64px}nz-content[_ngcontent-%COMP%]{margin-top:64px;background:#ffffff}.upgrade-btn[_ngcontent-%COMP%]{background-color:#fbc84c69;padding:4px 11px;border-radius:4px}.invite-btn[_ngcontent-%COMP%]{color:#1890ff;border-color:#1890ff}.lg-none[_ngcontent-%COMP%]{display:none}.mb-none[_ngcontent-%COMP%], .logo-large[_ngcontent-%COMP%]{display:block}.logo-small[_ngcontent-%COMP%]{display:none}.item-selected[_ngcontent-%COMP%]{color:#188fff!important;font-weight:500}.top-nav-ul-main[_ngcontent-%COMP%]{display:block}.mob-nav-main[_ngcontent-%COMP%]{display:none}@media (max-width: 1200px){.mob-nav-main[_ngcontent-%COMP%]{display:flex}.top-nav-ul-main[_ngcontent-%COMP%]{display:none}.upgrade-btn[_ngcontent-%COMP%]{font-size:12px}}@media (max-width: 1100px){.lg-none[_ngcontent-%COMP%]{display:block}.mb-none[_ngcontent-%COMP%]{display:none}.teams-switch[_ngcontent-%COMP%]{padding-left:7px!important}.logo-holder[_ngcontent-%COMP%]{width:50px;max-width:50px}.top-nav-ul-main.ant-menu-horizontal[_ngcontent-%COMP%]:not(.ant-menu-dark) > .ant-menu-item[_ngcontent-%COMP%], .ant-menu-horizontal[_ngcontent-%COMP%]:not(.ant-menu-dark) > .ant-menu-submenu[_ngcontent-%COMP%]{padding:0 15px!important}.top-nav-ul-secondary.ant-menu-horizontal[_ngcontent-%COMP%]:not(.ant-menu-dark) > .ant-menu-item[_ngcontent-%COMP%], .ant-menu-horizontal[_ngcontent-%COMP%]:not(.ant-menu-dark) > .ant-menu-submenu[_ngcontent-%COMP%]{padding:0 15px!important}.logo-large[_ngcontent-%COMP%]{display:none}.logo-small[_ngcontent-%COMP%]{display:block}}"],changeDetection:0}),B})();var Ft=o(16676),yt=o.n(Ft);function Dt(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"nz-affix",3),e.ynx(1),e.TgZ(2,"nz-alert",4),e.NdJ("nzOnClose",function(){e.CHM(g);const u=e.oxw();return e.KtG(u.setLicensingLastClose())}),e.qZA(),e.BQk(),e.qZA()}if(2&c){const g=e.oxw(),a=e.MAs(2),u=e.MAs(4);e.Q6J("nzOffsetTop",0),e.xp6(2),e.Q6J("nzAction",a)("nzMessage",u)("nzType","warning"),e.uIk("nzCloseable","CUSTOM"!==g.profile.subscription_type)}}function Zt(c,B){if(1&c&&(e.TgZ(0,"button",6),e._uU(1),e.qZA()),2&c){const g=e.oxw(2);e.Q6J("nzSize","small")("routerLink","admin-center/billing")("nzType","primary"),e.xp6(1),e.hij("","trialing"===g.profile.subscription_status?"Upgrade now":"Go to Billing"," ")}}function kt(c,B){if(1&c&&e.YNc(0,Zt,2,4,"button",5),2&c){const g=e.oxw();e.Q6J("ngIf","CUSTOM"!==g.profile.subscription_type&&(g.profile.owner||g.profile.is_admin))}}function Mt(c,B){if(1&c&&(e._uU(0),e.TgZ(1,"b"),e._uU(2),e.qZA()),2&c){const g=e.oxw();e.hij(" Action required! ",g.string1," "),e.xp6(2),e.Oqu(g.string2)}}let Yt=(()=>{var c;class B{constructor(){this.licensingClose="worklenz.licensing_close",this.string1="",this.string2=""}getVisible(){const a=this.getLicensingLastClose();if(a&&yt()(a).isSame(yt()(),"day"))return!1;const u=yt()(this.profile.valid_till_date);u.isAfter(yt()(),"days")&&u.add(1,"day");const D=u.diff(yt()(),"days");return!(!this.profile.valid_till_date||D>=7||(this.string2=` ${Math.abs(D)} day${1===Math.abs(D)?"":"s"}`,"trialing"===this.profile.subscription_status?(D<0?(this.string1="Your Worklenz trial expired",this.string2=this.string2+" ago"):0!==D&&D<7?this.string1="Your Worklenz trial expires in":0===D&&D<7&&(this.string1="Your Worklenz trial expires ",this.string2="today"),0):"CUSTOM"===this.profile.subscription_type?(D<0?(this.string1="Your Worklenz custom subscription expired",this.string2=this.string2+" ago"):0!==D&&D<7?this.string1="Your Worklenz custom subscription expires in":0===D&&D<7&&(this.string1="Your Worklenz custom subscription expires ",this.string2="today"),0):"active"!==this.profile.subscription_status||(D<0?(this.string1="Your Worklenz subscription expired",this.string2=this.string2+" ago"):0!==D&&D<7?this.string1="Your Worklenz subscription expires in":0===D&&D<7&&(this.string1="Your Worklenz subscription expires ",this.string2="today"),0)))}setLicensingLastClose(){localStorage.setItem(this.licensingClose,yt()().format("YYYY-MM-DD"))}getLicensingLastClose(){return localStorage.getItem(this.licensingClose)}}return(c=B).\u0275fac=function(a){return new(a||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-licensing-alerts"]],inputs:{profile:"profile"},decls:5,vars:1,consts:[[3,"nzOffsetTop",4,"ngIf"],["actionTemplate1",""],["messageTemplate",""],[3,"nzOffsetTop"],["nzShowIcon","",2,"font-weight","500",3,"nzAction","nzMessage","nzType","nzOnClose"],["nz-button","",3,"nzSize","routerLink","nzType",4,"ngIf"],["nz-button","",3,"nzSize","routerLink","nzType"]],template:function(a,u){1&a&&(e.YNc(0,Dt,3,5,"nz-affix",0),e.YNc(1,kt,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Mt,3,2,"ng-template",null,2,e.W1O)),2&a&&e.Q6J("ngIf",u.getVisible())},dependencies:[t.O5,l.rH,V.$,st.r,G.ix,U.w,v.dQ]}),B})();var Jt=o(21406),bt=o(26857),$t=o(69862);let Qt=(()=>{var c;class B extends bt.P{constructor(a){super(),this.http=a,this.root=`${this.API_BASE_URL}/notifications`}update(a){return this._put(this.http,`${this.root}/${a}`,null)}readAll(){return this._put(this.http,`${this.root}/read-all`,null)}get(a){const u=(0,b.UK)({filter:a});return this._get(this.http,`${this.root}${u}`)}getUnreadCount(){return this._get(this.http,`${this.root}/unread-count`)}}return(c=B).\u0275fac=function(a){return new(a||c)(e.LFG($t.eN))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),B})();var Et=o(43389),Wt=o(60804),Vt=o(92574),It=o(55695),z=o(22114),k=o(24139),C=o(22078);let i=(()=>{var c;class B{transform(a){return a||(a="#333333"),`background-color: ${a}ff;color: ${a};border: 1px solid ${a};`}}return(c=B).\u0275fac=function(a){return new(a||c)},c.\u0275pipe=e.Yjl({name:"tagBackground",type:c,pure:!0}),B})();const s=["template"],p=["closeIcon"];function _(c,B){if(1&c&&(e.TgZ(0,"div",10),e._UZ(1,"span",11),e._uU(2),e.qZA()),2&c){const g=e.oxw().data;e.xp6(2),e.hij(" ",g.team," ")}}function I(c,B){if(1&c&&(e.TgZ(0,"div")(1,"nz-tag"),e.ALo(2,"tagBackground"),e._uU(3),e.qZA()()),2&c){const g=e.oxw().data;e.xp6(1),e.Jzz("background-color: ",e.lcZ(2,4,g.color),""),e.xp6(2),e.Oqu(g.project)}}function ct(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"div",2),e.YNc(1,_,3,1,"div",3),e.TgZ(2,"div",4),e._UZ(3,"div",5),e.YNc(4,I,4,6,"div",6),e.qZA(),e.TgZ(5,"span",7)(6,"button",8),e.NdJ("click",function(u){const ht=e.CHM(g).$implicit,zt=e.oxw();return e.KtG(zt.close(u,ht))}),e._UZ(7,"span",9),e.qZA()()()}if(2&c){const g=B.data;e.xp6(1),e.Q6J("ngIf",g.team),e.xp6(2),e.Q6J("innerHTML",g.message,e.oJD),e.xp6(1),e.Q6J("ngIf",g.project)}}function ut(c,B){}let Ct=(()=>{var c;class B{constructor(a,u,D,ht,zt){this.service=a,this.router=u,this.auth=D,this.teamApi=ht,this.settings=zt,this.session=null,this.session=this.auth.getCurrentSession()}show(a){var u=this;a.color=a.color||"#191919";const ht=this.service.template(this.templateRef,{nzDuration:5e3,nzData:a,nzStyle:{cursor:"pointer",borderRadius:"15px",border:`2px solid ${a.color}4d`},nzCloseIcon:this.closeIconRef});ht.onClick.subscribe((0,d.Z)(function*(){u.service.remove(ht.messageId),a.url&&(u.session?.team_id!==a.team_id&&(yield u.teamApi.activate(a.team_id),yield u.auth.authorize()),yield u.router.navigate([a.url],{queryParams:a.params||null})),a.project&&a.task_id&&u.settings.emitNotificationClick({project:a.project,task:a.task_id})}))}close(a,u){a.stopPropagation(),u.close()}}return(c=B).\u0275fac=function(a){return new(a||c)(e.Y36(C.zb),e.Y36(l.F0),e.Y36(it.e),e.Y36(lt.S),e.Y36(Z.g))},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-notification-template"]],viewQuery:function(a,u){if(1&a&&(e.Gf(s,5),e.Gf(p,5)),2&a){let D;e.iGM(D=e.CRH())&&(u.templateRef=D.first),e.iGM(D=e.CRH())&&(u.closeIconRef=D.first)}},decls:4,vars:0,consts:[["template",""],["closeIcon",""],[1,"ant-notification-notice-content"],["class","ant-notification-notice-message",4,"ngIf"],[1,"ant-notification-notice-description"],[1,"mb-1",3,"innerHTML"],[4,"ngIf"],[1,"ant-notification-notice-btn",2,"position","absolute","top","-8px","right","16px"],["nz-button","","nzType","text","nzSize","large","nzShape","circle",3,"click"],["nz-icon","","nzType","close-circle","nzTheme","outline"],[1,"ant-notification-notice-message"],["nz-icon","","nzType","bank","nzTheme","outline"]],template:function(a,u){1&a&&(e.YNc(0,ct,8,3,"ng-template",null,0,e.W1O),e.YNc(2,ut,0,0,"ng-template",null,1,e.W1O))},dependencies:[t.O5,T.Ls,G.ix,U.w,It.j,i],changeDetection:0}),B})();var ft=o(34302);const he=["template"];function ve(c,B){if(1&c){const g=e.EpF();e.ynx(0),e.TgZ(1,"button",11),e.NdJ("click",function(){e.CHM(g);const u=e.oxw(2);return e.KtG(u.readAll())}),e._uU(2," Mark all as read "),e.qZA(),e.BQk()}if(2&c){const g=e.oxw(2);e.xp6(1),e.Q6J("nzType","link")("nzLoading",g.readAllInProgress)("nzTooltipTitle","Marks all notifications as read. You still have to accept invitations.")}}function Ce(c,B){1&c&&e._UZ(0,"nz-empty",12),2&c&&e.Q6J("nzNotFoundContent","You've read all your notifications")}function Te(c,B){1&c&&e.GkF(0)}const Oe=function(c){return{$implicit:c}};function Se(c,B){if(1&c&&(e.ynx(0),e.YNc(1,Te,1,0,"ng-container",13),e.BQk()),2&c){const g=B.$implicit;e.oxw(2);const a=e.MAs(3),u=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet","invitation"===g.type?a:u)("ngTemplateOutletContext",e.VKq(2,Oe,g.data))}}function Me(c,B){if(1&c){const g=e.EpF();e.ynx(0),e.TgZ(1,"div",5)(2,"nz-segmented",6),e.NdJ("nzValueChange",function(u){e.CHM(g);const D=e.oxw();return e.KtG(D.onOptionChange(u))}),e.qZA(),e.YNc(3,ve,3,3,"ng-container",7),e.qZA(),e.TgZ(4,"nz-skeleton",8),e.YNc(5,Ce,1,1,"nz-empty",9),e.YNc(6,Se,2,4,"ng-container",10),e.qZA(),e.BQk()}if(2&c){const g=e.oxw();e.xp6(2),e.Q6J("nzOptions",g.options),e.xp6(1),e.Q6J("ngIf",g.notificationsCount&&g.isUnreadNotifications()),e.xp6(1),e.Q6J("nzActive",!0)("nzLoading",g.loading||g.loadingInvitations),e.xp6(1),e.Q6J("ngIf",g.isEmpty()),e.xp6(1),e.Q6J("ngForOf",g.dataset)("ngForTrackBy",g.trackByFn)}}function Ee(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(u){e.CHM(g);const D=e.oxw(2).$implicit,ht=e.oxw();return e.KtG(ht.accept(u,D))}),e.TgZ(1,"u"),e._uU(2,"Mark as read"),e.qZA()()}if(2&c){const g=e.oxw(2).$implicit,a=e.oxw();e.Q6J("disabled",a.inProgress())("nzLoading",g.accepting)("nzSize","small")("nzType","link")}}function Ie(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(g);const u=e.oxw(2).$implicit,D=e.oxw();return e.KtG(D.acceptAndJoin(u))}),e.TgZ(1,"u"),e._uU(2,"Read & Join"),e.qZA()()}if(2&c){const g=e.oxw(2).$implicit,a=e.oxw();e.Q6J("disabled",a.inProgress())("nzLoading",g.joining)("nzSize","small")("nzType","link")}}function De(c,B){1&c&&(e.TgZ(0,"nz-space"),e.YNc(1,Ee,3,4,"button",17),e.YNc(2,Ie,3,4,"button",18),e.qZA())}function be(c,B){if(1&c&&(e.TgZ(0,"div",14)(1,"div",15)(2,"div",16),e._uU(3," You have been invited to work with "),e.TgZ(4,"b"),e._uU(5),e.qZA(),e._uU(6,". "),e.qZA(),e.YNc(7,De,3,0,"nz-space",7),e.qZA()()),2&c){const g=B.$implicit,a=e.oxw();e.Udp("width","auto"),e.xp6(5),e.Oqu(g.team_name),e.xp6(2),e.Q6J("ngIf",a.isUnreadNotifications())}}function Ne(c,B){if(1&c&&(e.TgZ(0,"div")(1,"nz-tag"),e.ALo(2,"tagBackground"),e._uU(3),e.qZA()()),2&c){const g=e.oxw().$implicit;e.xp6(1),e.Jzz("background-color: ",e.lcZ(2,4,g.color),""),e.xp6(2),e.Oqu(g.project)}}function Pe(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(u){e.CHM(g);const D=e.oxw().$implicit,ht=e.oxw();return e.KtG(ht.markNotificationAsRead(u,D.id))}),e.TgZ(1,"u"),e._uU(2,"Mark as read"),e.qZA()()}if(2&c){const g=e.oxw().$implicit,a=e.oxw();e.Q6J("nzLoading",a.loadersMap[g.id])("nzShape","round")("nzSize","small")("nzType","link")}}function we(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(u){const ht=e.CHM(g).$implicit,zt=e.oxw();return e.KtG(zt.goToUrl(u,ht))}),e.TgZ(1,"div",15)(2,"div",16)(3,"div",22),e._UZ(4,"span",23),e._uU(5),e.qZA(),e._UZ(6,"div",24),e.YNc(7,Ne,4,6,"div",7),e.qZA(),e.TgZ(8,"div",25),e.YNc(9,Pe,3,4,"button",26),e.TgZ(10,"small",27),e._uU(11),e.ALo(12,"fromNow"),e.qZA()()()()}if(2&c){const g=B.$implicit,a=e.oxw();e.Udp("width","auto")("border","2px solid "+g.color+"4d"),e.ekj("cursor-pointer",g.url),e.xp6(3),e.Q6J("nzType","secondary"),e.xp6(1),e.Q6J("nzType","bank")("nzTheme","outline"),e.xp6(1),e.hij(" ",g.team," "),e.xp6(1),e.Q6J("innerHTML",g.message,e.oJD),e.xp6(1),e.Q6J("ngIf",g.project),e.xp6(2),e.Q6J("ngIf",a.isUnreadNotifications()),e.xp6(1),e.Q6J("nzType","secondary"),e.xp6(1),e.Oqu(e.lcZ(12,15,g.created_at))}}let Le=(()=>{var c;class B{get title(){return`${this.selectedFilter} Notifications (${this.dataset.length})`}constructor(a,u,D,ht,zt,Nt,Ht,Kt,ge,fe){var At=this;this.api=a,this.notificationsApi=u,this.auth=D,this.router=ht,this.socket=zt,this.settingsService=Nt,this.cdr=Ht,this.ngZone=Kt,this.renderer=ge,this.teamApi=fe,this.show=!1,this.showChange=new e.vpe,this.count=0,this.countChange=new e.vpe,this.OPTION_UNREAD="Unread",this.OPTION_READ="Read",this.options=[this.OPTION_UNREAD,this.OPTION_READ],this.invitations=[],this.notifications=[],this.showBrowserPush=!1,this.session=null,this._dataset=[],this.loading=!1,this.loadingInvitations=!1,this.activatingTeam=!1,this.acceptingInvitation=!1,this.accepting=!1,this.joining=!1,this.readAllInProgress=!1,this.invitationsCount=0,this.notificationsCount=0,this.unreadNotificationsCount=0,this.selectedFilter=this.OPTION_UNREAD,this.dataset=[],this.loadersMap={},this.onInvitationsUpdate=function(){var Tt=(0,d.Z)(function*(xt){At.isPushEnabled()&&(At.createPush(xt.message,xt.team,xt.team_id),At.notificationTemplate.show({id:"",team:xt.team,team_id:xt.team_id,message:xt.message})),At.init()});return function(xt){return Tt.apply(this,arguments)}}(),this.onInvitationDelete=function(){var Tt=(0,d.Z)(function*(xt){At.init(),At.getUnreadCount()});return function(xt){return Tt.apply(this,arguments)}}(),this.onNotificationsUpdate=Tt=>{if(this.isPushEnabled()){const xt=Tt.team?`${Tt.team} | Worklenz`:"Worklenz";let xe=Tt.url;xe&&Tt.params&&Object.keys(Tt.params).length&&(xe+=(0,b.UK)(Tt.params)),this.createPush(Tt.message,xt,Tt.team_id,xe),this.notificationTemplate.show(Tt)}this.init()},this.askPushPerm(),this.session=this.auth.getCurrentSession()}ngOnInit(){this.init(),this.socket.on(r.C.INVITATIONS_UPDATE.toString(),this.onInvitationsUpdate),this.socket.on(r.C.NOTIFICATIONS_UPDATE.toString(),this.onNotificationsUpdate),this.socket.on(r.C.TEAM_MEMBER_REMOVED.toString(),this.onInvitationDelete)}ngOnDestroy(){this.socket.removeListener(r.C.INVITATIONS_UPDATE.toString(),this.onInvitationsUpdate),this.socket.removeListener(r.C.NOTIFICATIONS_UPDATE.toString(),this.onNotificationsUpdate),this.socket.removeListener(r.C.TEAM_MEMBER_REMOVED.toString(),this.onInvitationDelete)}init(){var a=this;return(0,d.Z)(function*(){a.dataset=[],a._dataset=[],yield a.getInvites(),yield a.getNotifies(),yield a.getUnreadCount(),a.sortDataset(),a.dataset=[...a._dataset],a.cdr.markForCheck()})()}onFocusChange(){this.ngZone.runOutsideAngular(()=>{this.showBrowserPush="hidden"===document.visibilityState})}sortDataset(){const a="invitation";this._dataset.sort((u,D)=>u.type===a&&D.type!==a?-1:u.type!==a&&D.type===a?1:0)}selectTeam(a){var u=this;return(0,d.Z)(function*(){if(a){u.activatingTeam=!0;try{(yield u.api.activate(a)).done&&(yield u.router.navigate(["/worklenz"])),u.activatingTeam=!1}catch(D){u.activatingTeam=!1,(0,b.tu)(D)}}})()}closeDrawer(){this.show=!1,this.showChange.emit(!1)}isUnreadNotifications(){return this.selectedFilter===this.OPTION_UNREAD}inProgress(){return this.accepting||this.joining||this.acceptingInvitation||this.activatingTeam}trackByFn(a,u){return u.id}isEmpty(){return this.invitationsCount+this.notificationsCount===0}askPushPerm(){"Notification"in window&&"serviceWorker"in navigator&&"PushManager"in window?"default"===Notification.permission&&this.ngZone.runOutsideAngular(()=>{"Notification"in window?Notification.requestPermission():console.log("This browser does not support notifications.")}):console.log("This browser does not support notification permission.")}accept(a,u){var D=this;return(0,d.Z)(function*(){u&&((yield D.acceptInvite(u.team_member_id,!1))&&(D.markNotificationAsRead(a,u.id),yield D.init()),D.cdr.markForCheck())})()}acceptAndJoin(a){var u=this;return(0,d.Z)(function*(){if(!a)return;u.joining=!0,a.joining=!0,u.cdr.detectChanges();const D=yield u.acceptInvite(a.team_member_id,!0);D&&(u.init(),yield u.selectTeam(D.id),yield u.auth.authorize(),u.closeDrawer(),window.location.reload()),a.joining=!1,u.joining=!1,u.cdr.markForCheck()})()}readAll(){var a=this;return(0,d.Z)(function*(){try{a.readAllInProgress=!0,a.cdr.detectChanges(),(yield a.notificationsApi.readAll())&&(yield a.init()),a.readAllInProgress=!1}catch{a.readAllInProgress=!1}a.cdr.markForCheck()})()}getInvites(){var a=this;return(0,d.Z)(function*(){try{a.loadingInvitations=!0;const u=yield a.api.getInvites();if(u.done){a.invitations=u.body,a.invitationsCount=a.invitations.length;for(const D of a.invitations)a._dataset.push({type:"invitation",data:D})}a.loadingInvitations=!1}catch(u){a.loadingInvitations=!1,(0,b.tu)(u)}})()}getNotifies(){var a=this;return(0,d.Z)(function*(){try{a.loading=!0;const u=yield a.notificationsApi.get(a.selectedFilter);if(u.done){a.notifications=u.body,a.notificationsCount=a.notifications.length,a.settingsService.count=a.notificationsCount;for(const D of a.notifications)a._dataset.push({type:"notification",data:D})}a.loading=!1}catch(u){(0,b.tu)(u),a.loading=!1}})()}getUnreadCount(){var a=this;return(0,d.Z)(function*(){try{const u=yield a.notificationsApi.getUnreadCount();u.done&&(a.unreadNotificationsCount=u.body,a.emitCountChange(),a.cdr.markForCheck())}catch(u){(0,b.tu)(u)}a.cdr.markForCheck()})()}acceptInvite(a,u){var D=this;return(0,d.Z)(function*(){if(a){try{D.acceptingInvitation=!0;const ht={team_member_id:a,show_alert:u},zt=yield D.api.accept(ht);if(D.acceptingInvitation=!1,zt.done&&zt.body.id)return zt.body}catch(ht){D.acceptingInvitation=!1,(0,b.tu)(ht)}return null}})()}emitCountChange(){this.countChange.emit(this.unreadNotificationsCount),this.settingsService.emitCountsUpdate()}handleVisibilityChange(a){this.ngZone.runOutsideAngular(()=>{a?this.renderer.setStyle(document.documentElement,"overflow","hidden"):this.renderer.removeStyle(document.documentElement,"overflow")})}markNotificationAsRead(a,u){var D=this;return(0,d.Z)(function*(){a.stopPropagation(),u&&(D.loadersMap[u]=!0,(yield D.notificationsApi.update(u))&&(D.notificationsCount--,D.dataset.splice(D.dataset.findIndex(zt=>zt.data.id===u),1),D._dataset.splice(D._dataset.findIndex(zt=>zt.data.id===u),1)),D.loadersMap[u]=!1,D.getUnreadCount(),D.cdr.markForCheck())})()}goToUrl(a,u){var D=this;return(0,d.Z)(function*(){a.stopPropagation(),u.url&&(D.closeDrawer(),D.session?.team_id!==u.team_id&&(yield D.teamApi.activate(u.team_id),yield D.auth.authorize()),u.project&&u.task_id&&D.settingsService.emitNotificationClick({project:u.project,task:u.task_id}),D.router.navigate([u.url],{queryParams:u.params||null}),D.cdr.markForCheck())})()}isPushEnabled(){return!!this.settingsService.settings.popup_notifications_enabled}createPush(a,u,D,ht){var zt=this;"granted"===Notification.permission&&this.showBrowserPush&&this.ngZone.runOutsideAngular(()=>{const Nt="https://worklenz.com/assets/icons/icon-128x128.png";new Notification(u,{body:a.replace(Jt.Yt,""),icon:Nt,badge:Nt}).onclick=function(){var Ht=(0,d.Z)(function*(Kt){ht&&(window.focus(),D&&zt.session?.team_id!==D&&(yield zt.teamApi.activate(D),yield zt.auth.authorize()),window.location.href=ht)});return function(Kt){return Ht.apply(this,arguments)}}()})}onOptionChange(a){this.selectedFilter=this.options[a],this.loading=!0,this.init()}}return(c=B).\u0275fac=function(a){return new(a||c)(e.Y36(lt.S),e.Y36(Qt),e.Y36(it.e),e.Y36(l.F0),e.Y36(tt.s),e.Y36(Z.g),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(lt.S))},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-notifications-drawer"]],viewQuery:function(a,u){if(1&a&&e.Gf(he,5),2&a){let D;e.iGM(D=e.CRH())&&(u.notificationTemplate=D.first)}},hostBindings:function(a,u){1&a&&e.NdJ("visibilitychange",function(){return u.onFocusChange()},!1,e.evT)},inputs:{show:"show",count:"count"},outputs:{showChange:"showChange",countChange:"countChange"},decls:8,vars:5,consts:[[3,"nzVisible","nzClosable","nzPlacement","nzTitle","nzWrapClassName","nzOnClose","nzVisibleChange"],[4,"nzDrawerContent"],["invitationTemplate",""],["notificationTemplate",""],["template",""],[1,"d-flex","justify-content-between","align-items-center",2,"top","-14px","position","relative"],[3,"nzOptions","nzValueChange"],[4,"ngIf"],[3,"nzActive","nzLoading"],[3,"nzNotFoundContent",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["nz-button","","nz-tooltip","",1,"p-0",3,"nzType","nzLoading","nzTooltipTitle","click"],[3,"nzNotFoundContent"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-notification-notice","worklenz-notification","rounded-4"],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-description"],["class","mt-2 p-0","nz-button","",3,"disabled","nzLoading","nzSize","nzType","click",4,"nzSpaceItem"],["class","mt-2","nz-button","",3,"disabled","nzLoading","nzSize","nzType","click",4,"nzSpaceItem"],["nz-button","",1,"mt-2","p-0",3,"disabled","nzLoading","nzSize","nzType","click"],["nz-button","",1,"mt-2",3,"disabled","nzLoading","nzSize","nzType","click"],[1,"ant-notification-notice","worklenz-notification","rounded-4",3,"click"],["nz-typography","",1,"mb-1",3,"nzType"],["nz-icon","",3,"nzType","nzTheme"],[1,"mb-1",3,"innerHTML"],[1,"d-flex","align-items-baseline","justify-content-between","mt-1"],["class","p-0","nz-button","",3,"nzLoading","nzShape","nzSize","nzType","click",4,"ngIf"],["nz-typography","",3,"nzType"],["nz-button","",1,"p-0",3,"nzLoading","nzShape","nzSize","nzType","click"]],template:function(a,u){1&a&&(e.TgZ(0,"nz-drawer",0),e.NdJ("nzOnClose",function(){return u.closeDrawer()})("nzVisibleChange",function(ht){return u.show=ht})("nzVisibleChange",function(ht){return u.handleVisibilityChange(ht)}),e.YNc(1,Me,7,7,"ng-container",1),e.qZA(),e.YNc(2,be,8,4,"ng-template",null,2,e.W1O),e.YNc(4,we,13,17,"ng-template",null,3,e.W1O),e._UZ(6,"worklenz-notification-template",null,4)),2&a&&e.Q6J("nzVisible",u.show)("nzClosable",!0)("nzPlacement","right")("nzTitle",u.title)("nzWrapClassName","notifications-drawer")},dependencies:[t.sg,t.O5,t.tP,E.ZU,m.SY,T.Ls,Et.Vz,Et.SQ,Wt.p9,Vt.NU,Vt.$1,G.ix,U.w,v.dQ,It.j,z.wY,k.ng,Ct,ft.d,i],styles:[".scroll-viewport[_ngcontent-%COMP%]{height:calc(100vh - 140px)}"],changeDetection:0}),B})();function Re(c,B){if(1&c&&e._UZ(0,"worklenz-licensing-alerts",8),2&c){const g=e.oxw();e.Q6J("profile",g.profile)}}function Be(c,B){if(1&c){const g=e.EpF();e.TgZ(0,"worklenz-header",9),e.NdJ("showNotificationsChange",function(u){e.CHM(g);const D=e.oxw();return e.KtG(D.showNotifications=u)}),e.qZA()}if(2&c){const g=e.oxw();e.Q6J("teams",g.teams)("profile",g.profile)("navigation",g.navigation)("count",g.count)("showNotifications",g.showNotifications)}}const Ue=function(){return[]};let Fe=(()=>{var c;class B{get profile(){return this.auth.getCurrentSession()}get isFreeSubscriber(){return this.profile?.subscription_status==this.subscriptionStatus.FREE}constructor(a,u,D,ht,zt,Nt,Ht,Kt,ge,fe,At){this.auth=a,this.api=u,this.socket=D,this.message=ht,this.menu=zt,this.modal=Nt,this.socketService=Ht,this.settingsApi=Kt,this.notificationSettings=ge,this.utils=fe,this.adminCenterService=At,this.navigation=[],this.teams=[],this.count=0,this.loading=!1,this.showNotifications=!1,this.switchingTeam=!1,this.reconnecting=!1,this.updateAvailable=!1,this.subscriptionStatus=H.in,this.messageId=null,this.socket.connect();const Tt=this.auth.getCurrentSession();Tt&&W.s.setIdentity(Tt),(0,F.T)(this.adminCenterService.onCreateTeam,this.adminCenterService.onTeamNameChange).pipe((0,N.sL)()).subscribe(xt=>{this.getTeams()})}ngOnInit(){this.getTeams(),this.getNotificationSettings(),this.listeningForSocketEvents()}ngAfterViewInit(){var a=this;return(0,d.Z)(function*(){yield a.auth.authorize(),a.buildNavigation()})()}ngOnDestroy(){this.socket.disconnect()}reload(){window.location.reload()}listeningForSocketEvents(){this.socket.on("connect",()=>{this.displayReconnectedMessage(),this.socket.emit(r.C.LOGIN.toString(),this.profile?.id),this.socket.once(r.C.LOGIN.toString(),()=>{this.socketService.emitSocketLoginSuccess()}),this.socketService.emitSocketConnect()}),this.socket.on("disconnect",()=>{this.displayDisconnectedMessage(),this.socket.emit(r.C.LOGOUT.toString(),this.profile?.id),this.socketService.emitSocketDisconnect()}),this.socket.on(r.C.INVITATIONS_UPDATE.toString(),a=>{this.getTeams()}),this.socket.on(r.C.TEAM_MEMBER_REMOVED.toString(),a=>{a&&(this.getTeams(),this.profile?.team_id===a.teamId&&this.modal.confirm({nzTitle:"You no longer have permissions to stay on this team!",nzContent:a.message,nzClosable:!1,nzCancelDisabled:!0,nzOnOk:()=>this.reload()}))})}getTeams(){var a=this;return(0,d.Z)(function*(){try{a.loading=!0;const u=yield a.api.get();u.done&&(a.teams=u.body),a.loading=!1}catch(u){a.loading=!1,(0,b.tu)(u)}})()}buildNavigation(){const a=[];a.push({label:"Home",icon:"appstore",url:"home",type:L.MenuItem}),a.push({label:"Projects",icon:"project",url:"projects",type:L.MenuItem}),this.showExtraMenu()&&(a.push({label:"Schedule",icon:"team",url:"schedule",type:L.MenuItem}),a.push({label:"Reporting",icon:"team",url:"reporting",type:L.MenuItem}),this.menu.isPinned(this.menu.CLIENTS_MENU)&&a.push({label:"Clients",icon:"team",url:"settings/clients",type:L.MenuItem}),this.menu.isPinned(this.menu.JOB_TITLES_MENU)&&a.push({label:"Job Titles",icon:"team",url:"settings/job-titles",type:L.MenuItem}),this.menu.isPinned(this.menu.TEAMS_MENU)&&a.push({label:"Teams",icon:"team",url:"settings/teams",type:L.MenuItem}),this.menu.isPinned(this.menu.LABELS_MENU)&&a.push({label:"Labels",icon:"tags",url:"settings/labels",type:L.MenuItem}),this.menu.isPinned(this.menu.TASK_STATUSES_MENU)&&a.push({label:"Task Statuses",icon:"team",url:"settings/statuses",type:L.MenuItem})),this.navigation=[...a]}getNotificationSettings(){var a=this;return(0,d.Z)(function*(){try{const u=yield a.settingsApi.getNotificationSettings();u.done&&(a.notificationSettings.settings=u.body)}catch{}})()}displayReconnectedMessage(){this.messageId&&(this.message.remove(this.messageId),this.message.success("Connected to the server.",{nzDuration:2e3}),this.messageId=null,this.checkForUpdates(),this.reconnecting=!1)}checkForUpdates(){var a=this;return(0,d.Z)(function*(){yield a.auth.authorize();const u="worklenz-build-version",D=a.profile?.build_v||null,ht=localStorage.getItem(u);return null==ht&&D?(localStorage.setItem(u,D),a.updateAvailable=!1,!1):(a.updateAvailable=!(!D||D===ht),a.updateAvailable&&localStorage.setItem(u,D),a.updateAvailable)})()}displayDisconnectedMessage(){this.reconnecting||(this.reconnecting=!0,this.message.error("You are disconnected from the server!",{nzDuration:1500}),this.messageId=this.message.loading("Trying to reconnect...",{nzDuration:0}).messageId)}showExtraMenu(){return!this.isFreeSubscriber&&(this.profile?.owner||this.profile?.is_admin)}}return(c=B).\u0275fac=function(a){return new(a||c)(e.Y36(it.e),e.Y36(lt.S),e.Y36(tt.s),e.Y36(_t.dD),e.Y36(pt.h),e.Y36($.Sf),e.Y36(J.$),e.Y36(Y.G),e.Y36(Z.g),e.Y36(M.F),e.Y36(Q.I))},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-layout"]],hostBindings:function(a,u){1&a&&e.NdJ("worklenz.menu.update",function(){return u.buildNavigation()},!1,e.evT)("worklenz.profile.avatar_change",function(){return u.checkForUpdates()},!1,e.evT)},decls:12,vars:9,consts:[[3,"nzSpinning"],[3,"updateAvailable","alerts"],[3,"profile",4,"ngIf"],[1,"layout"],["class","d-flex",3,"teams","profile","navigation","count","showNotifications","showNotificationsChange",4,"ngIf"],[3,"nzAutoGenerate"],[1,"inner-content"],[3,"count","show","countChange","showChange"],[3,"profile"],[1,"d-flex",3,"teams","profile","navigation","count","showNotifications","showNotificationsChange"]],template:function(a,u){1&a&&(e.TgZ(0,"nz-spin",0),e._UZ(1,"worklenz-alerts",1),e.YNc(2,Re,1,1,"worklenz-licensing-alerts",2),e.TgZ(3,"nz-layout",3)(4,"nz-header"),e.YNc(5,Be,1,5,"worklenz-header",4),e.qZA(),e.TgZ(6,"nz-layout")(7,"nz-content"),e._UZ(8,"nz-breadcrumb",5),e.TgZ(9,"div",6),e._UZ(10,"router-outlet"),e.qZA()()()()(),e.TgZ(11,"worklenz-notifications-drawer",7),e.NdJ("countChange",function(ht){return u.count=ht})("showChange",function(ht){return u.showNotifications=ht}),e.qZA()),2&a&&(e.Q6J("nzSpinning",u.switchingTeam),e.xp6(1),e.Q6J("updateAvailable",u.updateAvailable)("alerts",(null==u.profile?null:u.profile.alerts)||e.DdM(8,Ue)),e.xp6(1),e.Q6J("ngIf",u.profile),e.xp6(3),e.Q6J("ngIf",u.profile),e.xp6(3),e.Q6J("nzAutoGenerate",!0),e.xp6(3),e.Q6J("count",u.count)("show",u.showNotifications))},dependencies:[t.O5,l.lC,w.W,nt.hw,nt.E8,nt.OK,et.Dg,R,_e,Yt,Le],styles:['.layout[_ngcontent-%COMP%]{min-height:100vh}nz-content[_ngcontent-%COMP%]{margin-top:64px;background:#ffffff}.inner-content[_ngcontent-%COMP%]{background:#ffffff;min-height:380px;padding:0 24px 24px}.inner-content[_ngcontent-%COMP%]:has(.reporting-tab-module){padding:0 24px 0 0}nz-header[_ngcontent-%COMP%]{position:fixed;width:100vw;background:#FFFFFF;z-index:11}nz-header[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;right:0;top:100%;height:4px;background:linear-gradient(rgba(9,30,66,.13) 0px,rgba(9,30,66,.13) 1px,rgba(9,30,66,.08) 1px,rgba(9,30,66,0) 4px)}']}),B})();var ze=o(59780);let Ze=(()=>{var c;class B{constructor(a,u){this.auth=a,this.router=u}canActivate(a,u){return!!this.auth.getCurrentSession()?.setup_completed||this.router.navigate(["/worklenz/setup"])}}return(c=B).\u0275fac=function(a){return new(a||c)(e.LFG(it.e),e.LFG(l.F0))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),B})();var ye=o(65797);function Ye(c,B){1&c&&(e.TgZ(0,"button",4),e._uU(1,"Upgrade Now"),e.qZA())}function Je(c,B){if(1&c&&(e.TgZ(0,"div",2),e.YNc(1,Ye,2,0,"button",3),e.qZA()),2&c){const g=e.oxw();e.Q6J("routerLink","/worklenz/admin-center/billing"),e.xp6(1),e.Q6J("ngIf","CUSTOM"!==(null==g.profile?null:g.profile.subscription_status))}}let Qe=(()=>{var c;class B{constructor(a,u){this.authService=a,this.router=u,this.title="Your Worklenz trial has expired!",this.subtitle="Please upgrade now."}get profile(){return this.authService.getCurrentSession()}ngOnInit(){"CUSTOM"===this.profile?.subscription_status&&(this.title="Your Worklenz custom subscription has expired!",this.subtitle="Please contact Worklenz to extend the subscription."),this.profile?.is_expired||this.router.navigate(["/worklenz"])}}return(c=B).\u0275fac=function(a){return new(a||c)(e.Y36(it.e),e.Y36(l.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["worklenz-license-expired"]],decls:2,vars:3,consts:[["nzStatus","warning",3,"nzTitle","nzSubTitle"],["nz-result-extra","",3,"routerLink",4,"ngIf"],["nz-result-extra","",3,"routerLink"],["nz-button","","nzType","primary",4,"ngIf"],["nz-button","","nzType","primary"]],template:function(a,u){1&a&&(e.TgZ(0,"nz-result",0),e.YNc(1,Je,2,2,"div",1),e.qZA()),2&a&&(e.Q6J("nzTitle",u.title)("nzSubTitle",u.subtitle),e.xp6(1),e.Q6J("ngIf",null==u.profile?null:u.profile.owner))},dependencies:[t.O5,l.rH,G.ix,U.w,v.dQ,ye.ml,ye.ey]}),B})(),We=(()=>{var c;class B{constructor(a,u){this.auth=a,this.router=u}canActivate(a,u){return!this.auth.isExpired()||this.router.navigate(["/worklenz/license-expired"])}}return(c=B).\u0275fac=function(a){return new(a||c)(e.LFG(it.e),e.LFG(l.F0))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),B})();const me=(c,B)=>(0,e.f3M)(We).canActivate(c,B);let Ve=(()=>{var c;class B{constructor(a,u){this.auth=a,this.router=u,this.subscriptionStatus=H.in}canActivate(a,u){return this.auth.getCurrentSession()?.subscription_status!=this.subscriptionStatus.FREE||this.router.navigate(["/worklenz"])}}return(c=B).\u0275fac=function(a){return new(a||c)(e.LFG(it.e),e.LFG(l.F0))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),B})();const Ae=(c,B)=>(0,e.f3M)(Ve).canActivate(c,B),He=[{path:"",component:Fe,canActivate:[(c,B)=>(0,e.f3M)(Ze).canActivate(c,B)],children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"dashboard",redirectTo:"home",pathMatch:"full"},{path:"home",canActivate:[me],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(422),o.e(406),o.e(823),o.e(570),o.e(453)]).then(o.bind(o,99028)).then(c=>c.MyDashboardModule)},{path:"projects",canActivate:[ze.T,me],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(422),o.e(771),o.e(406),o.e(823),o.e(246),o.e(570),o.e(217),o.e(592),o.e(860)]).then(o.bind(o,53860)).then(c=>c.ProjectsModule)},{path:"settings",canActivate:[me],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(422),o.e(150)]).then(o.bind(o,16150)).then(c=>c.SettingsModule)},{path:"schedule",canActivate:[ze.T,me,Ae],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(422),o.e(217),o.e(265)]).then(o.bind(o,68265)).then(c=>c.ScheduleModule)},{path:"reporting",canActivate:[ze.T,me,Ae],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(422),o.e(246),o.e(921)]).then(o.bind(o,91921)).then(c=>c.ReportingModule)},{path:"admin-center",canActivate:[ze.T],loadChildren:()=>Promise.all([o.e(215),o.e(140),o.e(823),o.e(592),o.e(586)]).then(o.bind(o,71586)).then(c=>c.AdminCenterModule)},{path:"license-expired",component:Qe}]},{path:"setup",loadChildren:()=>Promise.all([o.e(215),o.e(406),o.e(457)]).then(o.bind(o,43791)).then(c=>c.AccountSetupModule)}];let Ke=(()=>{var c;class B{}return(c=B).\u0275fac=function(a){return new(a||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[l.Bz.forChild(He),l.Bz]}),B})();var $e=o(66987),Ge=o(70532),je=o(16976);let Xe=(()=>{var c;class B{}return(c=B).\u0275fac=function(a){return new(a||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[t.ez,Ke,n.u5,n.UX,w.j,V.j,st.L,nt.wm,at.ip,E.ZJ,m.cg,y.b1,T.PV,P.mS,f.Rt,et.lt,Et.BL,Wt.Xo,_t.Yx,Vt.zf,G.sL,It.X,z.KW,$e.S,k.H0,Ge.N7,ye.XD,je.Ph,A.S,rt.x]}),B})()},28677:(gt,ot,o)=>{o.d(ot,{x:()=>J});var t=o(15861),n=o(65879),l=o(96814),d=o(81221),L=o(8083),r=o(3599),b=o(9691),W=o(42840),N=o(60095),F=o(69649),H=o(23627),e=o(10095),it=o(70855),lt=o(41958);function tt(Y,Z){if(1&Y&&n._UZ(0,"nz-option",12),2&Y){const M=Z.$implicit,Q=n.oxw(2);n.Q6J("nzLabel",M)("nzValue",M)("nzDisabled",!!Q.subscriptionData.current_seat_amount&&M<Q.subscriptionData.current_seat_amount)}}function _t(Y,Z){if(1&Y){const M=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){n.CHM(M);const w=n.oxw(2);return n.KtG(w.purchaseMoreSeats())}),n._uU(1,"Purchase "),n.qZA()}if(2&Y){const M=n.oxw(2);n.Q6J("nzLoading",M.upgradingPlan)}}function pt(Y,Z){1&Y&&(n.TgZ(0,"button",14),n._uU(1," Contact sales "),n.qZA()),2&Y&&n.Q6J("nzSize","large")}function $(Y,Z){if(1&Y){const M=n.EpF();n.ynx(0),n.TgZ(1,"h4",2),n._uU(2),n.qZA(),n.TgZ(3,"p",2),n._uU(4,"You currently have "),n.TgZ(5,"span",3),n._uU(6),n.qZA(),n._uU(7," seats available. "),n.qZA(),n.TgZ(8,"p"),n._uU(9,"Please select the number of additional seats to purchase."),n.qZA(),n.TgZ(10,"nz-form-item")(11,"nz-form-label",4),n._uU(12,"Seats"),n.qZA(),n.TgZ(13,"nz-form-control",5)(14,"nz-select",6),n.NdJ("ngModelChange",function(w){n.CHM(M);const nt=n.oxw();return n.KtG(nt.selectedSeatCount=w)}),n.YNc(15,tt,1,3,"nz-option",7),n._UZ(16,"nz-option",8),n.qZA()()(),n.TgZ(17,"div",9)(18,"span"),n.YNc(19,_t,2,1,"button",10),n.YNc(20,pt,2,1,"button",11),n.qZA()(),n.BQk()}if(2&Y){const M=n.oxw();n.xp6(2),n.Oqu(M.title),n.xp6(4),n.Oqu(M.subscriptionData.current_seat_amount),n.xp6(5),n.Q6J("nzSpan",5),n.xp6(2),n.Q6J("nzSpan",12),n.xp6(1),n.Q6J("ngModel",M.selectedSeatCount),n.xp6(1),n.Q6J("ngForOf",M.seatCountOptions),n.xp6(1),n.Q6J("nzLabel","100+")("nzValue","100+"),n.xp6(3),n.Q6J("ngIf","100+"!==M.selectedSeatCount.toString()),n.xp6(1),n.Q6J("ngIf","100+"===M.selectedSeatCount.toString())}}let J=(()=>{var Y;class Z{constructor(Q){this.billingApi=Q,this.isVisible=!1,this.subscriptionData={},this.title="To continue, you'll need to purchase additional seats.",this.modalClosed=new n.vpe,this.upgradingPlan=!1,this.selectedSeatCount=5,this.seatCountOptions=[1,2,3,4,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90]}onVisibleChange(Q){console.log(123)}closeMoreSeatsModal(){this.isVisible=!1,this.modalClosed.emit()}purchaseMoreSeats(){var Q=this;return(0,t.Z)(function*(){if("100+"!==Q.selectedSeatCount.toString()&&Q.subscriptionData.current_seat_amount)try{Q.upgradingPlan=!0;const w=Q.selectedSeatCount+Q.subscriptionData.current_seat_amount;(yield Q.billingApi.purchaseMoreSeats(w)).done&&(Q.upgradingPlan=!1,Q.modalClosed.emit())}catch(w){(0,F.tu)(w)}finally{Q.upgradingPlan=!1}})()}}return(Y=Z).\u0275fac=function(Q){return new(Q||Y)(n.Y36(H.j))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["worklenz-add-more-seats"]],inputs:{isVisible:"isVisible",subscriptionData:"subscriptionData",title:"title"},outputs:{modalClosed:"modalClosed"},standalone:!0,features:[n.jDz],decls:2,vars:3,consts:[[3,"nzVisible","nzWidth","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["nz-typography",""],[1,"fw-bold"],["nzFor","gender","nzRequired","",3,"nzSpan"],["nzErrorTip","Please select your gender!",3,"nzSpan"],["id","seats",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue","nzDisabled",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],[1,"row","text-end"],["nz-button","","nzType","primary",3,"nzLoading","click",4,"ngIf"],["nz-button","","nzType","primary","type","button","class","mt-3 mb-2",3,"nzSize",4,"ngIf"],[3,"nzLabel","nzValue","nzDisabled"],["nz-button","","nzType","primary",3,"nzLoading","click"],["nz-button","","nzType","primary","type","button",1,"mt-3","mb-2",3,"nzSize"]],template:function(Q,w){1&Q&&(n.TgZ(0,"nz-modal",0),n.NdJ("nzVisibleChange",function(et){return w.isVisible=et})("nzOnCancel",function(){return w.closeMoreSeatsModal()})("nzVisibleChange",function(et){return w.onVisibleChange(et)}),n.YNc(1,$,21,10,"ng-container",1),n.qZA()),2&Q&&n.Q6J("nzVisible",w.isVisible)("nzWidth","32vw")("nzFooter",null)},dependencies:[l.ez,l.sg,l.O5,d.Qp,d.du,d.Hf,L.ZJ,L.ZU,r.U5,e.t3,e.SK,r.Nx,r.iK,r.Fd,b.LV,b.Ip,b.Vq,W.sL,W.ix,it.w,lt.dQ,N.u5,N.JJ,N.On]}),Z})()},72095:(gt,ot,o)=>{o.d(ot,{S:()=>dt});var t=o(15861),n=o(65879),l=o(60095),d=o(69649),L=o(21406),r=o(9691),b=o(43389),W=o(82669),N=o(20824),F=o(96814),H=o(95717),e=o(3599),it=o(62595),lt=o(3278),tt=o(10095);function _t(X,at){1&X&&(n.TgZ(0,"nz-auto-option"),n._UZ(1,"span",5),n._uU(2," Loading Data... "),n.qZA())}function pt(X,at){if(1&X&&(n.TgZ(0,"nz-auto-option",8),n._uU(1),n.qZA()),2&X){const E=n.oxw(2);n.s9C("nzValue",E.newTitle),n.xp6(1),n.hij('+ ADD "',E.newTitle,'"')}}function $(X,at){if(1&X&&(n.TgZ(0,"nz-auto-option",8),n._uU(1),n.qZA()),2&X){const E=at.$implicit;n.Q6J("nzValue",E.name),n.xp6(1),n.Oqu(E.name)}}function J(X,at){if(1&X&&(n.TgZ(0,"span"),n.YNc(1,pt,2,2,"nz-auto-option",6),n.YNc(2,$,2,2,"nz-auto-option",7),n.qZA()),2&X){const E=n.oxw();n.xp6(1),n.Q6J("ngIf",E.isNew),n.xp6(1),n.Q6J("ngForOf",E.jobTitles)}}let Y=(()=>{var X;class at{constructor(m,y){this.api=m,this.fb=y,this.titleChange=new n.vpe,this.title=null,this.placeholder="Job Title",this.loading=!1,this.loadingChange=new n.vpe,this.searching=!1,this.isNew=!1,this.newTitle=null,this.jobTitles=[],this.total=0,this.form=this.fb.group({name:[null]})}ngOnInit(){var m=this;return(0,t.Z)(function*(){m.form.controls.name.setValue(m.title||null),m.form.get("name")?.valueChanges.subscribe(y=>{if(y)return m.newTitle=y,void(m.isNew=!m.jobTitles.some(T=>T.name===y));m.isNew=!1}),m.get()})()}get(){var m=this;return(0,t.Z)(function*(){try{m.setLoading(!0);const y=yield m.api.get(1,5,null,null,m.form.value.name||null);y.done&&(m.jobTitles=y.body.data||[],m.total=m.jobTitles.length),m.setLoading(!1)}catch(y){m.setLoading(!1),(0,d.tu)(y)}})()}search(){var m=this;return(0,t.Z)(function*(){m.emitChange(),m.searching=!0,yield m.get(),m.searching=!1})()}setLoading(m){this.loading=m,this.loadingChange.emit(this.loading)}emitChange(){this.form.valid&&this.titleChange.emit(this.form.value.name.trim())}}return(X=at).\u0275fac=function(m){return new(m||X)(n.Y36(lt.i),n.Y36(l.qu))},X.\u0275cmp=n.Xpm({type:X,selectors:[["worklenz-job-titles-autocomplete"]],inputs:{title:"title",placeholder:"placeholder",loading:"loading"},outputs:{titleChange:"titleChange",loadingChange:"loadingChange"},standalone:!0,features:[n.jDz],decls:10,vars:9,consts:[["nz-form","",3,"formGroup","nzLayout"],[3,"nzSpan"],["nz-input","",3,"formControlName","nzAutocomplete","placeholder","ngModelChange"],["jobTitlesAutoComplete",""],[4,"ngIf"],["nz-icon","","nzType","loading",1,"loading-icon"],[3,"nzValue",4,"ngIf"],[3,"nzValue",4,"ngFor","ngForOf"],[3,"nzValue"]],template:function(m,y){if(1&m&&(n.TgZ(0,"form",0)(1,"nz-form-item")(2,"nz-form-label",1),n._uU(3,"Job Title"),n.qZA(),n.TgZ(4,"nz-form-control",1)(5,"input",2),n.NdJ("ngModelChange",function(){return y.search()}),n.qZA(),n.TgZ(6,"nz-autocomplete",null,3),n.YNc(8,_t,3,0,"nz-auto-option",4),n.YNc(9,J,3,2,"span",4),n.qZA()()()()),2&m){const T=n.MAs(7);n.Q6J("formGroup",y.form)("nzLayout","vertical"),n.xp6(2),n.Q6J("nzSpan",null),n.xp6(2),n.Q6J("nzSpan",null),n.xp6(1),n.Q6J("formControlName","name")("nzAutocomplete",T)("placeholder",y.placeholder),n.xp6(3),n.Q6J("ngIf",y.searching),n.xp6(1),n.Q6J("ngIf",!y.searching)}},dependencies:[N.o7,N.Zp,F.O5,l.UX,l._Y,l.Fj,l.JJ,l.JL,l.sg,l.u,F.sg,H.ic,H.gi,H.NB,H.Pf,e.U5,tt.t3,tt.SK,e.Lr,e.Nx,e.iK,e.Fd,it.PV,it.Ls]}),at})();var Z=o(96928),M=o(8083),Q=o(42840),w=o(96109),nt=o(34302),et=o(45538),V=o(90586),st=o(32333),G=o(70855),U=o(41958);function v(X,at){if(1&X&&(n.TgZ(0,"nz-form-item")(1,"nz-form-label",17),n._uU(2," Email(s) "),n.qZA(),n.TgZ(3,"nz-form-control",18),n._UZ(4,"nz-select",19),n.qZA()()),2&X){n.oxw();const E=n.MAs(5),m=n.oxw();n.xp6(1),n.Q6J("nzSpan",null)("nzTooltipTitle",m.model.email&&m.memberId?"Email cannot be changed.":""),n.xp6(2),n.Q6J("nzSpan",null)("nzExtra",E),n.xp6(1),n.Q6J("nzNotFoundContent","Type an email address and hit enter...")("nzPlaceHolder","Add team members by email")("formControlName","email")}}function O(X,at){1&X&&(n.TgZ(0,"span",20),n._uU(1," Invitees will be added to the team either they accept the invitation or not. "),n.qZA())}function S(X,at){if(1&X){const E=n.EpF();n.TgZ(0,"worklenz-job-titles-autocomplete",21),n.NdJ("loadingChange",function(y){n.CHM(E);const T=n.oxw(2);return n.KtG(T.jobTitlesLoading=y)})("titleChange",function(y){n.CHM(E);const T=n.oxw(2);return n.KtG(T.jobTitle=y)}),n.qZA()}if(2&X){const E=n.oxw(2);n.Q6J("title",E.jobTitle)("placeholder","Select the job title (Optional)")}}function x(X,at){if(1&X){const E=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){n.CHM(E);const y=n.oxw(2);return n.KtG(y.resendInvitation())}),n._uU(1,"Resend invitation "),n.qZA()}if(2&X){const E=n.oxw(2);n.Q6J("disabled",E.loading||E.resending)}}function h(X,at){if(1&X&&(n.TgZ(0,"p",23)(1,"small",24),n.ALo(2,"date"),n._uU(3),n.ALo(4,"fromNow"),n.qZA()()),2&X){const E=n.oxw(2);n.xp6(1),n.s9C("nzTooltipTitle",n.xi3(2,2,E.model.created_at,"medium")),n.xp6(2),n.hij(" Added ",n.lcZ(4,5,E.model.created_at)," ")}}function j(X,at){if(1&X&&(n.TgZ(0,"p",25)(1,"small",24),n.ALo(2,"date"),n._uU(3),n.ALo(4,"fromNow"),n.qZA()()),2&X){const E=n.oxw(2);n.xp6(1),n.s9C("nzTooltipTitle",n.xi3(2,2,E.model.updated_at,"medium")),n.xp6(2),n.hij(" Updated ",n.lcZ(4,5,E.model.updated_at)," ")}}function q(X,at){if(1&X){const E=n.EpF();n.ynx(0),n.TgZ(1,"nz-spin",3)(2,"form",4),n.NdJ("submit",function(){n.CHM(E);const y=n.oxw();return n.KtG(y.handleOk())}),n.YNc(3,v,5,7,"nz-form-item",5),n.YNc(4,O,2,0,"ng-template",null,6,n.W1O),n.YNc(6,S,1,2,"worklenz-job-titles-autocomplete",7),n.TgZ(7,"nz-form-item")(8,"nz-form-label",8),n._uU(9,"Access "),n.qZA(),n.TgZ(10,"nz-form-control",9)(11,"nz-select",10),n._UZ(12,"nz-option",11)(13,"nz-option",12),n.qZA()()(),n.TgZ(14,"button",13),n._uU(15),n.qZA(),n.YNc(16,x,2,1,"button",14),n.YNc(17,h,5,7,"p",15),n.YNc(18,j,5,7,"p",16),n.qZA()(),n.BQk()}if(2&X){const E=n.oxw();n.xp6(1),n.Q6J("nzSpinning",E.isLoading()),n.xp6(1),n.Q6J("formGroup",E.form)("nzLayout","vertical"),n.xp6(1),n.Q6J("ngIf",!E.memberId),n.xp6(3),n.Q6J("ngIf",E.canDisplayTitles()),n.xp6(2),n.Q6J("nzSpan",null)("nzTooltipTitle",E.isOwnAccount()?"You cannot change your permissions. Ask owner to update it.":""),n.xp6(2),n.Q6J("nzSpan",null),n.xp6(1),n.Q6J("formControlName","access"),n.xp6(3),n.Q6J("nzLoading",E.loading),n.xp6(1),n.Oqu(E.okButtonText),n.xp6(1),n.Q6J("ngIf",E.isResendAvailable()),n.xp6(1),n.Q6J("ngIf",E.isEditMember()&&E.model.created_at),n.xp6(1),n.Q6J("ngIf",E.isEditMember()&&(null==E.model?null:E.model.updated_at))}}function R(X,at){if(1&X&&n._UZ(0,"nz-avatar",30),2&X){const E=n.oxw(2);n.Udp("background-color",E.getColor(E.model.name)),n.Q6J("nzSize",28)("nzText",E.model.name.charAt(0).toUpperCase())("nzSrc",E.model.avatar_url)}}function K(X,at){if(1&X&&(n.TgZ(0,"div",26),n.YNc(1,R,1,5,"nz-avatar",27),n.TgZ(2,"div")(3,"span",28),n._uU(4),n.qZA(),n.TgZ(5,"small",29),n._uU(6),n.qZA()()()),2&X){const E=n.oxw();n.xp6(1),n.Q6J("ngIf",E.model.name),n.xp6(3),n.Oqu(E.title),n.xp6(2),n.Oqu(E.model.email)}}let dt=(()=>{var X;class at{constructor(m,y,T,P){this.api=m,this.fb=y,this.app=T,this.auth=P,this.model={},this.memberId=null,this.show=!1,this.showChange=new n.vpe,this.onCreateOrUpdate=new n.vpe,this.onCancel=new n.vpe,this.onMoreSeatsNeeded=new n.vpe,this.jobTitle=null,this.loading=!0,this.jobTitlesLoading=!1,this.resending=!1,this.resentSuccess=!1,this.form=this.fb.group({email:[null,l.kI.required],access:["member",l.kI.required]})}get title(){return this.isEditMember()?this.model.name||"Edit Member":"Add Member"}get okButtonText(){return this.isEditMember()?"Update":"Add to team"}get email(){return this.form.value.email}isOwnAccount(){return this.auth.getCurrentSession()?.email===this.model.email}getColor(m){return L.Lj[m?.charAt(0).toUpperCase()||"A"]}getTeamMember(){var m=this;return(0,t.Z)(function*(){if(m.memberId)try{m.loading=!0;const y=yield m.api.getById(m.memberId);y.done&&(m.model=y.body,m.form.patchValue(y.body),m.form.controls.access.setValue(y.body.is_admin?"admin":"member"),m.model.email&&m.form.controls.email.disable(),m.isOwnAccount()&&m.form.controls.access.disable(),m.jobTitle=y.body.job_title),m.loading=!1}catch(y){(0,d.tu)(y),m.loading=!1}else m.loading=!1})()}init(){this.form.reset(),this.form.controls.email.enable(),this.form.controls.access.enable(),this.form.controls.access.setValue("member"),this.model={},this.getTeamMember()}handleCancel(){this.reset(),this.onCancel.emit()}isEditMember(){return!!this.memberId}handleOk(){var m=this;return(0,t.Z)(function*(){m.isEditMember()?yield m.updateMember():yield m.createMember()})()}isLoading(){return this.loading}visibilityChange(m){m&&this.init()}canDisplayTitles(){return!this.isEditMember()||!this.loading}resendInvitation(){var m=this;return(0,t.Z)(function*(){if(m.memberId&&!m.resending)try{m.resending=!0,(yield m.api.resendInvitation(m.memberId)).done&&(m.resentSuccess=!0),m.resending=!1}catch(y){(0,d.tu)(y),m.resending=!1}})()}isResendAvailable(){return this.model.pending_invitation&&this.memberId&&!this.resentSuccess}isAdmin(){return"admin"===this.form.value.access}reset(){this.form.reset(),this.show=!1,this.jobTitle=null,this.loading=!0,this.showChange?.emit(this.show)}updateMember(){var m=this;return(0,t.Z)(function*(){if(m.memberId)if(m.form.value.is_admin=!!m.form.value.is_admin,m.form.valid)try{m.loading=!0;const y={job_title:m.jobTitle,emails:m.form.controls.email.value,is_admin:m.isAdmin()};(yield m.api.update(m.memberId,y)).done&&(m.reset(),m.onCreateOrUpdate?.emit(0)),m.loading=!1}catch(y){(0,d.tu)(y),m.loading=!1}else m.app.displayErrorsOf(m.form)})()}createMember(){var m=this;return(0,t.Z)(function*(){if(m.form.value.is_admin=!!m.form.value.is_admin,m.form.valid)try{m.loading=!0;const y={job_title:m.jobTitle,emails:m.form.controls.email.value.map(P=>P.trim()),is_admin:m.isAdmin()},T=yield m.api.create(y);T.done?(m.reset(),m.onCreateOrUpdate?.emit(1)):m.onMoreSeatsNeeded?.emit(T.body),m.loading=!1}catch(y){(0,d.tu)(y),m.loading=!1}else m.app.displayErrorsOf(m.form)})()}}return(X=at).\u0275fac=function(m){return new(m||X)(n.Y36(et.B),n.Y36(l.qu),n.Y36(V.z),n.Y36(st.e))},X.\u0275cmp=n.Xpm({type:X,selectors:[["worklenz-team-members-form"]],inputs:{memberId:"memberId",show:"show"},outputs:{showChange:"showChange",onCreateOrUpdate:"onCreateOrUpdate",onCancel:"onCancel",onMoreSeatsNeeded:"onMoreSeatsNeeded"},standalone:!0,features:[n.jDz],decls:4,vars:4,consts:[[3,"nzVisible","nzClosable","nzTitle","nzPlacement","nzOnClose","nzVisibleChange"],[4,"nzDrawerContent"],["titleTemplate",""],[3,"nzSpinning"],["nz-form","",3,"formGroup","nzLayout","submit"],[4,"ngIf"],["emailsNote",""],[3,"title","placeholder","loadingChange","titleChange",4,"ngIf"],["nz-tooltip","","nzRequired","",3,"nzSpan","nzTooltipTitle"],[3,"nzSpan"],[3,"formControlName"],["nzValue","admin","nzLabel","Admin"],["nzValue","member","nzLabel","Member"],["nz-button","","nzBlock","","nzType","primary","type","submit",3,"nzLoading"],["nz-button","","nzBlock","","nzType","dashed","class","mt-2","type","button",3,"disabled","click",4,"ngIf"],["class","mb-0 mt-3","nz-typography","","nzType","secondary",4,"ngIf"],["class","mb-0","nz-typography","","nzType","secondary",4,"ngIf"],["nzRequired","",3,"nzSpan","nzTooltipTitle"],[3,"nzSpan","nzExtra"],["nzMode","tags",3,"nzNotFoundContent","nzPlaceHolder","formControlName"],["nz-typography","","nzType","secondary",2,"font-size","12px"],[3,"title","placeholder","loadingChange","titleChange"],["nz-button","","nzBlock","","nzType","dashed","type","button",1,"mt-2",3,"disabled","click"],["nz-typography","","nzType","secondary",1,"mb-0","mt-3"],["nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-typography","","nzType","secondary",1,"mb-0"],[1,"d-flex","align-items-center"],["class","me-2",3,"nzSize","nzText","background-color","nzSrc",4,"ngIf"],[1,"d-block"],["nz-typography","","nzType","secondary"],[1,"me-2",3,"nzSize","nzText","nzSrc"]],template:function(m,y){if(1&m&&(n.TgZ(0,"nz-drawer",0),n.NdJ("nzOnClose",function(){return y.handleCancel()})("nzVisibleChange",function(P){return y.show=P})("nzVisibleChange",function(P){return y.visibilityChange(P)}),n.YNc(1,q,19,14,"ng-container",1),n.qZA(),n.YNc(2,K,7,3,"ng-template",null,2,n.W1O)),2&m){const T=n.MAs(3);n.Q6J("nzVisible",y.show)("nzClosable",!0)("nzTitle",T)("nzPlacement","right")}},dependencies:[r.LV,r.Ip,r.Vq,b.BL,b.Vz,b.SQ,W.j,W.W,Y,Z.Rt,Z.Dz,M.ZJ,M.ZU,Q.sL,Q.ix,G.w,U.dQ,w.cg,w.SY,F.O5,e.U5,tt.t3,tt.SK,e.Lr,e.Nx,e.iK,e.Fd,l.UX,l._Y,l.JJ,l.JL,l.sg,l.u,nt.d,F.uU]}),at})()},8689:(gt,ot,o)=>{o.d(ot,{g:()=>l});var t=o(78645),n=o(65879);let l=(()=>{var d;class L{constructor(){this.newMemberCreatedSbj$=new t.x}get onNewMemberCreated(){return this.newMemberCreatedSbj$.asObservable()}emitNewMemberCreated(){this.newMemberCreatedSbj$.next()}}return(d=L).\u0275fac=function(b){return new(b||d)},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),L})()},59780:(gt,ot,o)=>{o.d(ot,{T:()=>L});var t=o(65879),n=o(32333),l=o(35420);let d=(()=>{var r;class b{constructor(N,F){this.auth=N,this.router=F}canActivate(N,F){const H="projects"===N.routeConfig?.path;return!!(this.auth.getCurrentSession()?.owner||this.auth.getCurrentSession()?.is_admin||H)||this.router.navigate(["/worklenz"])}}return(r=b).\u0275fac=function(N){return new(N||r)(t.LFG(n.e),t.LFG(l.F0))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),b})();const L=(r,b)=>(0,t.f3M)(d).canActivate(r,b)},34849:(gt,ot,o)=>{o.d(ot,{SX:()=>l,bk:()=>n,in:()=>t});var t=function(d){return d.DELETED="deleted",d.PAUSED="paused",d.ACTIVE="active",d.PASTDUE="past_due",d.TRIALING="trialing",d.LIFE_TIME_DEAL="life_time_deal",d.FREE="free",d.LOCAL="LOCAL",d}(t||{}),n=function(d){return d.FREE="FREE",d.ANNUAL="ANNUAL",d.MONTHLY="MONTHLY",d}(n||{}),l=function(d){return d.FREE="FREE",d.STARTUP="STARTUP",d.BUSINESS="BUSINESS",d.ENTERPRISE="ENTERPRISE",d}(l||{})},34302:(gt,ot,o)=>{o.d(ot,{d:()=>d});var t=o(16676),n=o.n(t),l=o(65879);let d=(()=>{var L;class r{transform(W){return W&&n()(W).fromNow()}}return(L=r).\u0275fac=function(W){return new(W||L)},L.\u0275pipe=l.Yjl({name:"fromNow",type:L,pure:!0,standalone:!0}),r})()},23627:(gt,ot,o)=>{o.d(ot,{j:()=>L});var t=o(26857),n=o(69649),l=o(65879),d=o(69862);let L=(()=>{var r;class b extends t.P{constructor(N){super(),this.http=N,this.root=`${this.API_BASE_URL}/billing`}upgradeToPaidPlan(N,F){return this._get(this.http,`${this.root}/upgrade-to-paid-plan${(0,n.UK)({plan:N,seatCount:F})}`)}purchaseMoreSeats(N){return this._post(this.http,`${this.root}/purchase-more-seats`,{seatCount:N})}getDirectPayObject(N){return this._get(this.http,`${this.root}/get-direct-pay-data${(0,n.UK)({seatCount:N})}`)}saveTransactionData(N){return this._post(this.http,`${this.root}/save-transaction-data`,N)}getCardList(){return this._get(this.http,`${this.root}/get-card-list`)}contactUs(N){return this._get(this.http,`${this.root}/contact-us${(0,n.UK)({contactNo:N})}`)}}return(r=b).\u0275fac=function(N){return new(N||r)(l.LFG(d.eN))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),b})()},3278:(gt,ot,o)=>{o.d(ot,{i:()=>r});var t=o(10708),n=o(26857),l=o(69649),d=o(65879),L=o(69862);let r=(()=>{var b;class W extends n.P{constructor(F){super(),this.http=F,this.root=`${this.API_BASE_URL}/job-titles`}create(F){return this._post(this.http,this.root,F)}get(F,H,e,it,lt){const tt=encodeURIComponent(lt||""),_t=`${this.root}${(0,l.UK)({index:F,size:H,field:e,order:it,search:tt})}`;return this._get(this.http,_t)}getById(F){return this._get(this.http,`${this.root}/${F}`)}update(F,H){return this._put(this.http,`${this.root}/${F}`,H)}delete(F){return(0,t.n)(this.http.delete(`${this.root}/${F}`))}}return(b=W).\u0275fac=function(F){return new(F||b)(d.LFG(L.eN))},b.\u0275prov=d.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),W})()},16849:(gt,ot,o)=>{o.d(ot,{G:()=>d});var t=o(26857),n=o(65879),l=o(69862);let d=(()=>{var L;class r extends t.P{constructor(W){super(),this.http=W,this.root=`${this.API_BASE_URL}/settings`}get(){return this._get(this.http,`${this.root}/profile`)}update(W){return this._put(this.http,`${this.root}/profile`,W)}getNotificationSettings(){return this._get(this.http,`${this.root}/notifications`)}updateNotificationSettings(W){return this._put(this.http,`${this.root}/notifications`,W)}setupAccount(W){return this._post(this.http,`${this.root}/setup`,W)}updateTeamName(W,N){return this._put(this.http,`${this.root}/team-name/${W}`,N)}}return(L=r).\u0275fac=function(W){return new(W||L)(n.LFG(l.eN))},L.\u0275prov=n.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),r})()},45538:(gt,ot,o)=>{o.d(ot,{B:()=>r});var t=o(10708),n=o(26857),l=o(69649),d=o(65879),L=o(69862);let r=(()=>{var b;class W extends n.P{constructor(F){super(),this.http=F,this.root=`${this.API_BASE_URL}/team-members`}create(F){return this._post(this.http,this.root,F)}get(F,H,e,it,lt,tt=!1){const _t=encodeURIComponent(lt||""),pt=`${this.root}${(0,l.UK)({index:F,size:H,field:e,order:it,search:_t,all:tt})}`;return this._get(this.http,pt)}getById(F){return this._get(this.http,`${this.root}/${F}`)}getAll(F=null){const H=(0,l.UK)({project:F});return this._get(this.http,`${this.root}/all${H}`)}update(F,H){return this._put(this.http,`${this.root}/${F}`,H)}delete(F,H){const e=(0,l.UK)({email:H});return(0,t.n)(this.http.delete(`${this.root}/${F}${e}`))}getTeamMembersByProjectId(F){return this._get(this.http,`${this.root}/project/${F}`)}resendInvitation(F){return this._put(this.http,`${this.root}/resend-invitation`,{id:F})}toggleMemberActiveStatus(F,H,e){const it=(0,l.UK)({active:H,email:e});return this._get(this.http,`${this.root}/deactivate/${F}${it}`)}addTeamMember(F,H){return this._put(this.http,`${this.root}/add-member/${F}`,H)}}return(b=W).\u0275fac=function(F){return new(F||b)(d.LFG(L.eN))},b.\u0275prov=d.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),W})()},83916:(gt,ot,o)=>{o.d(ot,{S:()=>L});var t=o(26857),n=o(10708),l=o(65879),d=o(69862);let L=(()=>{var r;class b extends t.P{constructor(N){super(),this.http=N,this.root=`${this.API_BASE_URL}/teams`}create(N){return this._post(this.http,this.root,N)}get(){return this._get(this.http,this.root)}getInvites(){return this._get(this.http,`${this.root}/invites`)}getById(N){return this._get(this.http,`${this.root}/${N}`)}update(N,F){return this._put(this.http,`${this.root}/${N}`,F)}setName(N){return this._put(this.http,`${this.root}/pik-name`,{name:N})}activate(N){return this._put(this.http,`${this.root}/activate`,{id:N})}accept(N){return this._put(this.http,this.root,N)}delete(N){return(0,n.n)(this.http.delete(`${this.root}/${N}`))}}return(r=b).\u0275fac=function(N){return new(N||r)(l.LFG(d.eN))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),b})()},72042:(gt,ot,o)=>{o.d(ot,{h:()=>l});var t=o(59556),n=o(65879);let l=(()=>{var d;class L{constructor(){this.CLIENTS_MENU="clients",this.JOB_TITLES_MENU="job-titles",this.TEAMS_MENU="teams",this.LABELS_MENU="labels",this.TASK_STATUSES_MENU="task-statuses",this.prefix="worklenz.pinned-tab",this.TASK_TEMPLATES_MENU="task-templates"}isPinned(b){return!!localStorage.getItem(`${this.prefix}.${b}`)}toggle(b){this.isPinned(b)?this.unpin(b):this.pin(b),(0,t.IR)()}pin(b){localStorage.setItem(`${this.prefix}.${b}`,"1")}unpin(b){localStorage.removeItem(`${this.prefix}.${b}`)}}return(d=L).\u0275fac=function(b){return new(b||d)},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),L})()},85080:(gt,ot,o)=>{o.d(ot,{g:()=>d});var t=o(65619),n=o(97328),l=o(65879);let d=(()=>{var L;class r{constructor(){this._countsUpdateSbj$=new t.X(0),this._clickSbj$=new n.t,this.settings={},this.count=0}get onCountsUpdate$(){return this._countsUpdateSbj$.asObservable()}get onNotificationClick(){return this._clickSbj$.asObservable()}emitCountsUpdate(){this._countsUpdateSbj$.next(0)}emitNotificationClick(W){this._clickSbj$.next(W)}}return(L=r).\u0275fac=function(W){return new(W||L)},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),r})()},94409:(gt,ot,o)=>{o.d(ot,{$:()=>d});var t=o(78645),n=o(97328),l=o(65879);let d=(()=>{var L;class r{constructor(){this._socketConnectSbj$=new t.x,this._socketDisconnectSbj$=new t.x,this._socketLoginSbj$=new n.t}get onSocketLoginSuccess$(){return this._socketLoginSbj$.asObservable()}get onSocketConnect$(){return this._socketConnectSbj$.asObservable()}get onSocketDisconnect$(){return this._socketDisconnectSbj$.asObservable()}emitSocketLoginSuccess(){this._socketLoginSbj$.next()}emitSocketConnect(){this._socketConnectSbj$.next()}emitSocketDisconnect(){return this._socketDisconnectSbj$.next()}}return(L=r).\u0275fac=function(W){return new(W||L)},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),r})()},59556:(gt,ot,o)=>{o.d(ot,{Bk:()=>N,IR:()=>it,MK:()=>_t,Xk:()=>F,hQ:()=>tt,mT:()=>lt,xt:()=>e});const t="worklenz.events.profile_update",n="worklenz.tasks.update",l="worklenz.tasks.update",d="worklenz.menu.update",L="worklenz.status.update",b="worklenz.profile.avatar_change",W="worklenz.task_comments.create";function N(){document.dispatchEvent(new Event(t))}function F(){document.dispatchEvent(new Event(n))}function e(){document.dispatchEvent(new Event(l))}function it(){document.dispatchEvent(new Event(d))}function lt(){document.dispatchEvent(new Event(L))}function tt(){document.dispatchEvent(new Event(b))}function _t(){document.dispatchEvent(new Event(W))}},94489:(gt,ot,o)=>{o.d(ot,{C:()=>t});var t=function(n){return n[n.LOGIN=0]="LOGIN",n[n.LOGOUT=1]="LOGOUT",n[n.INVITATIONS_UPDATE=2]="INVITATIONS_UPDATE",n[n.NOTIFICATIONS_UPDATE=3]="NOTIFICATIONS_UPDATE",n[n.TEAM_MEMBER_REMOVED=4]="TEAM_MEMBER_REMOVED",n[n.TASK_COMMENTS_UPDATED=5]="TASK_COMMENTS_UPDATED",n[n.QUICK_TASK=6]="QUICK_TASK",n[n.QUICK_ASSIGNEES_UPDATE=7]="QUICK_ASSIGNEES_UPDATE",n[n.TASK_STATUS_CHANGE=8]="TASK_STATUS_CHANGE",n[n.TASK_PRIORITY_CHANGE=9]="TASK_PRIORITY_CHANGE",n[n.TASK_NAME_CHANGE=10]="TASK_NAME_CHANGE",n[n.TASK_LABELS_CHANGE=11]="TASK_LABELS_CHANGE",n[n.CREATE_LABEL=12]="CREATE_LABEL",n[n.TASK_END_DATE_CHANGE=13]="TASK_END_DATE_CHANGE",n[n.TASK_START_DATE_CHANGE=14]="TASK_START_DATE_CHANGE",n[n.TASK_TIME_ESTIMATION_CHANGE=15]="TASK_TIME_ESTIMATION_CHANGE",n[n.TASK_DESCRIPTION_CHANGE=16]="TASK_DESCRIPTION_CHANGE",n[n.GET_TASK_PROGRESS=17]="GET_TASK_PROGRESS",n[n.TASK_TIMER_START=18]="TASK_TIMER_START",n[n.TASK_TIMER_STOP=19]="TASK_TIMER_STOP",n[n.TASK_SORT_ORDER_CHANGE=20]="TASK_SORT_ORDER_CHANGE",n[n.JOIN_OR_LEAVE_PROJECT_ROOM=21]="JOIN_OR_LEAVE_PROJECT_ROOM",n[n.PROJECT_UPDATES_AVAILABLE=22]="PROJECT_UPDATES_AVAILABLE",n[n.TASK_SUBSCRIBERS_CHANGE=23]="TASK_SUBSCRIBERS_CHANGE",n[n.PROJECT_SUBSCRIBERS_CHANGE=24]="PROJECT_SUBSCRIBERS_CHANGE",n[n.TASK_PHASE_CHANGE=25]="TASK_PHASE_CHANGE",n[n.ROADMAP_SORT_ORDER_CHANGE=26]="ROADMAP_SORT_ORDER_CHANGE",n[n.PHASE_START_DATE_CHANGE=27]="PHASE_START_DATE_CHANGE",n[n.PHASE_END_DATE_CHANGE=28]="PHASE_END_DATE_CHANGE",n[n.NEW_PROJECT_COMMENT_RECEIVED=29]="NEW_PROJECT_COMMENT_RECEIVED",n[n.PROJECT_HEALTH_CHANGE=30]="PROJECT_HEALTH_CHANGE",n[n.PROJECT_START_DATE_CHANGE=31]="PROJECT_START_DATE_CHANGE",n[n.PROJECT_END_DATE_CHANGE=32]="PROJECT_END_DATE_CHANGE",n[n.PROJECT_STATUS_CHANGE=33]="PROJECT_STATUS_CHANGE",n[n.PROJECT_CATEGORY_CHANGE=34]="PROJECT_CATEGORY_CHANGE",n[n.CREATE_PROJECT_CATEGORY=35]="CREATE_PROJECT_CATEGORY",n[n.PT_QUICK_TASK=36]="PT_QUICK_TASK",n[n.PT_NAME_CHANGE=37]="PT_NAME_CHANGE",n[n.PT_TASK_SORT_ORDER_CHANGE=38]="PT_TASK_SORT_ORDER_CHANGE",n[n.PT_TASK_NAME_CHANGE=39]="PT_TASK_NAME_CHANGE",n[n.PT_TASK_TIME_ESTIMATION_CHANGE=40]="PT_TASK_TIME_ESTIMATION_CHANGE",n[n.PT_TASK_DESCRIPTION_CHANGE=41]="PT_TASK_DESCRIPTION_CHANGE",n[n.PT_TASK_LABELS_CHANGE=42]="PT_TASK_LABELS_CHANGE",n[n.PT_CREATE_LABEL=43]="PT_CREATE_LABEL",n[n.PT_TASK_PHASE_CHANGE=44]="PT_TASK_PHASE_CHANGE",n[n.PT_TASK_STATUS_CHANGE=45]="PT_TASK_STATUS_CHANGE",n[n.PT_TASK_PRIORITY_CHANGE=46]="PT_TASK_PRIORITY_CHANGE",n[n.GANNT_DRAG_CHANGE=47]="GANNT_DRAG_CHANGE",n[n.SCHEDULE_MEMBER_ALLOCATION_CREATE=48]="SCHEDULE_MEMBER_ALLOCATION_CREATE",n[n.SCHEDULE_MEMBER_START_DATE_CHANGE=49]="SCHEDULE_MEMBER_START_DATE_CHANGE",n[n.SCHEDULE_MEMBER_END_DATE_CHANGE=50]="SCHEDULE_MEMBER_END_DATE_CHANGE",n[n.PROJECT_DATA_CHANGE=51]="PROJECT_DATA_CHANGE",n[n.TASK_BILLABLE_CHANGE=52]="TASK_BILLABLE_CHANGE",n[n.TASK_RECURRING_CHANGE=53]="TASK_RECURRING_CHANGE",n}(t||{})},71993:(gt,ot,o)=>{o.d(ot,{sL:()=>d});var t=o(65879),n=o(65592),l=o(59773);function d(E){E||((0,t.gHi)(d),E=(0,t.f3M)(t.ktI));const m=new n.y(y=>E.onDestroy(y.next.bind(y)));return y=>y.pipe((0,l.R)(m))}globalThis},28538:(gt,ot,o)=>{o.d(ot,{$:()=>S,j:()=>x});var t=o(97582),n=o(96814),l=o(65879),d=o(47394),L=o(97328),r=o(78645),b=o(63019),W=o(92438),N=o(59773),F=o(37398),H=o(16321),e=o(79360),it=o(8251),lt=o(54829);const tt={leading:!0,trailing:!1};var pt=o(74825);var J=o(40874),Y=o(27754),Z=o(99087),M=o(62831),Q=o(28802),w=o(49388);const nt=["fixedEl"],et=["*"];var V=function(h){return h.resize="resize",h.scroll="scroll",h.touchstart="touchstart",h.touchmove="touchmove",h.touchend="touchend",h.pageshow="pageshow",h.load="LOAD",h}(V||{});function G(h){return function st(h){return typeof window<"u"&&h===window}(h)?{top:0,left:0,bottom:0}:h.getBoundingClientRect()}const v="ant-affix";let S=(()=>{var h;class j{get target(){const R=this.nzTarget;return("string"==typeof R?this.document.querySelector(R):R)||window}constructor(R,K,dt,X,at,E,m,y,T,P){this.nzConfigService=dt,this.scrollSrv=X,this.ngZone=at,this.platform=E,this.renderer=m,this.nzResizeObserver=y,this.cdr=T,this.directionality=P,this._nzModuleName="affix",this.nzChange=new l.vpe,this.dir="ltr",this.positionChangeSubscription=d.w0.EMPTY,this.offsetChanged$=new L.t(1),this.destroy$=new r.x,this.placeholderNode=R.nativeElement,this.document=K}ngOnInit(){this.directionality.change?.pipe((0,N.R)(this.destroy$)).subscribe(R=>{this.dir=R,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(R){const{nzOffsetBottom:K,nzOffsetTop:dt,nzTarget:X}=R;(K||dt)&&this.offsetChanged$.next(),X&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const R=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,b.T)(...Object.keys(V).map(K=>(0,W.R)(this.target,K)),this.offsetChanged$.pipe((0,F.U)(()=>({}))),this.nzResizeObserver.observe(R)).pipe(function $(h,j=H.z,q=tt){const R=(0,pt.H)(h,j);return function _t(h,{leading:j,trailing:q}=tt){return(0,e.e)((R,K)=>{let dt=!1,X=null,at=null,E=!1;const m=()=>{at?.unsubscribe(),at=null,q&&(P(),E&&K.complete())},y=()=>{at=null,E&&K.complete()},T=f=>at=(0,lt.Xf)(h(f)).subscribe(new it.Q(K,m,y)),P=()=>{if(dt){dt=!1;const f=X;X=null,K.next(f),!E&&T(f)}};R.subscribe(new it.Q(K,f=>{dt=!0,X=f,(!at||at.closed)&&(j?P():T(f))},()=>{E=!0,(!(q&&dt&&at)||at.closed)&&K.complete()}))})}(()=>R,q)}(20,void 0,{trailing:!0}),(0,N.R)(this.destroy$)).subscribe(K=>this.updatePosition(K))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(!0),this.destroy$.complete()}getOffset(R,K){const dt=R.getBoundingClientRect(),X=G(K),at=this.scrollSrv.getScroll(K,!0),E=this.scrollSrv.getScroll(K,!1),m=this.document.body;return{top:dt.top-X.top+at-(m.clientTop||0),left:dt.left-X.left+E-(m.clientLeft||0),width:dt.width,height:dt.height}}setAffixStyle(R,K){const dt=this.affixStyle,X=this.target===window;if("scroll"===R.type&&dt&&K&&X||(0,Y.wU)(dt,K))return;const at=!!K,E=this.fixedEl.nativeElement;this.renderer.setStyle(E,"cssText",(0,Y.GM)(K)),this.affixStyle=K,at?E.classList.add(v):E.classList.remove(v),this.updateRtlClass(),(K&&!dt||!K&&dt)&&this.nzChange.emit(at)}setPlaceholderStyle(R){(0,Y.wU)(R,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,Y.GM)(R)),this.placeholderStyle=R)}syncPlaceholderStyle(R){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const K={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(R,{...this.affixStyle,...K}),this.setPlaceholderStyle(K)}updatePosition(R){if(!this.platform.isBrowser)return;const K=this.target;let dt=this.nzOffsetTop;const X=this.scrollSrv.getScroll(K,!0),at=this.getOffset(this.placeholderNode,K),E=this.fixedEl.nativeElement,m={width:E.offsetWidth,height:E.offsetHeight},y={top:!1,bottom:!1};"number"!=typeof dt&&"number"!=typeof this.nzOffsetBottom?(y.top=!0,dt=0):(y.top="number"==typeof dt,y.bottom="number"==typeof this.nzOffsetBottom);const T=G(K),P=K.innerHeight||K.clientHeight;if(X>=at.top-dt&&y.top){const f=at.width;this.setAffixStyle(R,{position:"fixed",top:T.top+dt,left:T.left+at.left,width:f}),this.setPlaceholderStyle({width:f,height:m.height})}else if(X<=at.top+m.height+this.nzOffsetBottom-P&&y.bottom){const f=K===window?0:window.innerHeight-T.bottom,A=at.width;this.setAffixStyle(R,{position:"fixed",bottom:f+this.nzOffsetBottom,left:T.left+at.left,width:A}),this.setPlaceholderStyle({width:A,height:at.height})}else R.type===V.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(R,{...this.affixStyle,width:this.placeholderNode.offsetWidth}):this.setAffixStyle(R),this.setPlaceholderStyle();"resize"===R.type&&this.syncPlaceholderStyle(R)}updateRtlClass(){const R=this.fixedEl.nativeElement;"rtl"===this.dir&&R.classList.contains(v)?R.classList.add(`${v}-rtl`):R.classList.remove(`${v}-rtl`)}}return(h=j).\u0275fac=function(R){return new(R||h)(l.Y36(l.SBq),l.Y36(n.K0),l.Y36(J.jY),l.Y36(Z.MF),l.Y36(l.R0b),l.Y36(M.t4),l.Y36(l.Qsj),l.Y36(Q.D3),l.Y36(l.sBO),l.Y36(w.Is,8))},h.\u0275cmp=l.Xpm({type:h,selectors:[["nz-affix"]],viewQuery:function(R,K){if(1&R&&l.Gf(nt,7),2&R){let dt;l.iGM(dt=l.CRH())&&(K.fixedEl=dt.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[l.TTD],ngContentSelectors:et,decls:3,vars:0,consts:[["fixedEl",""]],template:function(R,K){1&R&&(l.F$t(),l.TgZ(0,"div",null,0),l.Hsn(2),l.qZA())},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,J.oS)(),(0,Y.Rn)(void 0)],j.prototype,"nzOffsetTop",void 0),(0,t.gn)([(0,J.oS)(),(0,Y.Rn)(void 0)],j.prototype,"nzOffsetBottom",void 0),j})(),x=(()=>{var h;class j{}return(h=j).\u0275fac=function(R){return new(R||h)},h.\u0275mod=l.oAB({type:h}),h.\u0275inj=l.cJS({imports:[w.vT,n.ez,M.ud]}),j})()},95717:(gt,ot,o)=>{o.d(ot,{NB:()=>K,Pf:()=>at,gi:()=>E,ic:()=>m});var t=o(49388),n=o(69594),l=o(96814),d=o(65879),L=o(331),r=o(8324),b=o(20824),W=o(97582),N=o(78645),F=o(92438),H=o(47394),e=o(74911),it=o(63019),lt=o(32181),tt=o(59773),_t=o(99397),pt=o(60932),$=o(48180),J=o(94664),Y=o(27754),Z=o(36028),M=o(68484),Q=o(60095),w=o(64194);function nt(y,T){if(1&y&&(d.ynx(0),d._uU(1),d.BQk()),2&y){const P=d.oxw();d.xp6(1),d.Oqu(P.nzLabel)}}const et=[[["nz-auto-option"]]],V=["nz-auto-option"],st=["*"],G=["panel"],U=["content"];function v(y,T){}function O(y,T){1&y&&d.YNc(0,v,0,0,"ng-template")}function S(y,T){1&y&&d.Hsn(0)}function x(y,T){if(1&y&&(d.TgZ(0,"nz-auto-option",8),d._uU(1),d.qZA()),2&y){const P=T.$implicit;d.Q6J("nzValue",P)("nzLabel",P&&P.label?P.label:P),d.xp6(1),d.hij(" ",P&&P.label?P.label:P," ")}}function h(y,T){if(1&y&&d.YNc(0,x,2,3,"nz-auto-option",7),2&y){const P=d.oxw(2);d.Q6J("ngForOf",P.nzDataSource)}}function j(y,T){if(1&y){const P=d.EpF();d.TgZ(0,"div",0,1),d.NdJ("@slideMotion.done",function(A){d.CHM(P);const rt=d.oxw();return d.KtG(rt.onAnimationEvent(A))}),d.TgZ(2,"div",2)(3,"div",3),d.YNc(4,O,1,0,null,4),d.qZA()()(),d.YNc(5,S,1,0,"ng-template",null,5,d.W1O),d.YNc(7,h,1,1,"ng-template",null,6,d.W1O)}if(2&y){const P=d.MAs(6),f=d.MAs(8),A=d.oxw();d.ekj("ant-select-dropdown-hidden",!A.showPanel)("ant-select-dropdown-rtl","rtl"===A.dir),d.Q6J("ngClass",A.nzOverlayClassName)("ngStyle",A.nzOverlayStyle)("nzNoAnimation",null==A.noAnimation?null:A.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",!(null==A.noAnimation||!A.noAnimation.nzNoAnimation)),d.xp6(4),d.Q6J("ngTemplateOutlet",A.nzDataSource?f:P)}}let q=(()=>{var y;class T{constructor(){}}return(y=T).\u0275fac=function(f){return new(f||y)},y.\u0275cmp=d.Xpm({type:y,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:V,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(f,A){1&f&&(d.F$t(et),d.TgZ(0,"div",0),d.YNc(1,nt,2,1,"ng-container",1),d.qZA(),d.Hsn(2)),2&f&&(d.xp6(1),d.Q6J("nzStringTemplateOutlet",A.nzLabel))},dependencies:[r.f],encapsulation:2,changeDetection:0}),T})();class R{constructor(T,P=!1){this.source=T,this.isUserInput=P}}let K=(()=>{var y;class T{constructor(f,A,rt,mt){this.ngZone=f,this.changeDetectorRef=A,this.element=rt,this.nzAutocompleteOptgroupComponent=mt,this.nzDisabled=!1,this.selectionChange=new d.vpe,this.mouseEntered=new d.vpe,this.active=!1,this.selected=!1,this.destroy$=new N.x}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,F.R)(this.element.nativeElement,"mouseenter").pipe((0,lt.h)(()=>this.mouseEntered.observers.length>0),(0,tt.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,F.R)(this.element.nativeElement,"mousedown").pipe((0,tt.R)(this.destroy$)).subscribe(f=>f.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(f=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),f&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){(0,Y.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(f=!1){this.selectionChange.emit(new R(this,f))}}return(y=T).\u0275fac=function(f){return new(f||y)(d.Y36(d.R0b),d.Y36(d.sBO),d.Y36(d.SBq),d.Y36(q,8))},y.\u0275cmp=d.Xpm({type:y,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(f,A){1&f&&d.NdJ("click",function(){return A.selectViaInteraction()}),2&f&&(d.uIk("aria-selected",A.selected.toString())("aria-disabled",A.nzDisabled.toString()),d.ekj("ant-select-item-option-grouped",A.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",A.selected)("ant-select-item-option-active",A.active)("ant-select-item-option-disabled",A.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:st,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(f,A){1&f&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},encapsulation:2,changeDetection:0}),(0,W.gn)([(0,Y.yF)()],T.prototype,"nzDisabled",void 0),T})();const dt={provide:Q.JU,useExisting:(0,d.Gpc)(()=>at),multi:!0};let at=(()=>{var y;class T{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(f,A,rt,mt,vt,Ot){this.ngZone=f,this.elementRef=A,this.overlay=rt,this.viewContainerRef=mt,this.nzInputGroupWhitSuffixOrPrefixDirective=vt,this.document=Ot,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new N.x,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{"void"===f.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(f){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(f)))}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.elementRef.nativeElement.disabled=f,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(f){const A=f.keyCode,rt=A===Z.LH||A===Z.JH;A===Z.hY&&f.preventDefault(),!this.panelOpen||A!==Z.hY&&A!==Z.Mf?this.panelOpen&&A===Z.K5?this.nzAutocomplete.showPanel&&(f.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&rt&&this.nzAutocomplete.showPanel&&(f.stopPropagation(),f.preventDefault(),A===Z.LH?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(f){const A=f.target,rt=this.document;let mt=A.value;"number"===A.type&&(mt=""===mt?null:parseFloat(mt)),this.previousValue!==mt&&(this.previousValue=mt,this.onChange(mt),this.canOpen()&&rt.activeElement===f.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,_t.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,pt.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(f=>{this.setValueAndClose(f)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,lt.h)(f=>!this.elementRef.nativeElement.contains(f.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function X(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new M.UE(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,tt.R)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new n.X_({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const f=[new n.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new n.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(f).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const f=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==f?(this.nzAutocomplete.setActiveItem(f),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(f){const A=f.nzValue;this.setTriggerValue(f.getLabel()),this.onChange(A),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(f){const A=this.nzAutocomplete.getOption(f),rt=A?A.getLabel():f;this.elementRef.nativeElement.value=rt??"",this.nzAutocomplete.nzBackfill||(this.previousValue=rt)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const f=this.elementRef.nativeElement;return!f.readOnly&&!f.disabled}}return(y=T).\u0275fac=function(f){return new(f||y)(d.Y36(d.R0b),d.Y36(d.SBq),d.Y36(n.aV),d.Y36(d.s_b),d.Y36(b.ke,8),d.Y36(l.K0,8))},y.\u0275dir=d.lG2({type:y,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(f,A){1&f&&d.NdJ("focusin",function(){return A.handleFocus()})("blur",function(){return A.handleBlur()})("input",function(mt){return A.handleInput(mt)})("keydown",function(mt){return A.handleKeydown(mt)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[d._Bn([dt])]}),T})(),E=(()=>{var y;class T{get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}constructor(f,A,rt,mt){this.changeDetectorRef=f,this.ngZone=A,this.directionality=rt,this.noAnimation=mt,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(vt,Ot)=>vt===Ot,this.selectionChange=new d.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new N.x,this.animationStateChange=new d.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=H.w0.EMPTY,this.optionMouseEnterSubscription=H.w0.EMPTY,this.dataSourceChangeSubscription=H.w0.EMPTY,this.optionSelectionChanges=(0,e.P)(()=>this.options?(0,it.T)(...this.options.map(vt=>vt.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,$.q)(1),(0,J.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,e.P)(()=>this.options?(0,it.T)(...this.options.map(vt=>vt.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,$.q)(1),(0,J.w)(()=>this.optionMouseEnter)))}ngOnInit(){this.directionality.change?.pipe((0,tt.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(f){this.animationStateChange.emit(f)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(f){const A=this.options.get(f);A&&!A.active?(this.activeItem=A,this.activeItemIndex=f,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(f){return this.options.reduce((A,rt,mt)=>-1===A?this.compareWith(f,rt.nzValue)?mt:-1:A,-1)}getOption(f){return this.options.find(A=>this.compareWith(f,A.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(A=>{!A.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(f,A=!1){this.options.forEach(rt=>{rt!==f&&(A&&rt.deselect(),rt.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,lt.h)(f=>f.isUserInput)).subscribe(f=>{f.source.select(),f.source.setActiveStyles(),this.activeItem=f.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(f.source,!0),this.selectionChange.emit(f.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(f=>{f.setActiveStyles(),this.activeItem=f,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(f)})}}return(y=T).\u0275fac=function(f){return new(f||y)(d.Y36(d.sBO),d.Y36(d.R0b),d.Y36(t.Is,8),d.Y36(L.P,9))},y.\u0275cmp=d.Xpm({type:y,selectors:[["nz-autocomplete"]],contentQueries:function(f,A,rt){if(1&f&&d.Suo(rt,K,5),2&f){let mt;d.iGM(mt=d.CRH())&&(A.fromContentOptions=mt)}},viewQuery:function(f,A){if(1&f&&(d.Gf(d.Rgc,5),d.Gf(G,5),d.Gf(U,5),d.Gf(K,5)),2&f){let rt;d.iGM(rt=d.CRH())&&(A.template=rt.first),d.iGM(rt=d.CRH())&&(A.panel=rt.first),d.iGM(rt=d.CRH())&&(A.content=rt.first),d.iGM(rt=d.CRH())&&(A.fromDataSourceOptions=rt)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:st,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(f,A){1&f&&(d.F$t(),d.YNc(0,j,9,10,"ng-template"))},dependencies:[l.mk,l.sg,l.tP,l.PC,L.P,K],encapsulation:2,data:{animation:[w.mF]},changeDetection:0}),(0,W.gn)([(0,Y.yF)()],T.prototype,"nzDefaultActiveFirstOption",void 0),(0,W.gn)([(0,Y.yF)()],T.prototype,"nzBackfill",void 0),T})(),m=(()=>{var y;class T{}return(y=T).\u0275fac=function(f){return new(f||y)},y.\u0275mod=d.oAB({type:y}),y.\u0275inj=d.cJS({imports:[t.vT,l.ez,n.U8,r.T,L.g,b.o7]}),T})()},96928:(gt,ot,o)=>{o.d(ot,{Dz:()=>tt,Rt:()=>pt,ZM:()=>_t});var t=o(97582),n=o(65879),l=o(40874),d=o(27754),L=o(62831),r=o(96814),b=o(62595),W=o(49388);const N=["textEl"];function F($,J){if(1&$&&n._UZ(0,"span",3),2&$){const Y=n.oxw();n.Q6J("nzType",Y.nzIcon)}}function H($,J){if(1&$){const Y=n.EpF();n.TgZ(0,"img",4),n.NdJ("error",function(M){n.CHM(Y);const Q=n.oxw();return n.KtG(Q.imgError(M))}),n.qZA()}if(2&$){const Y=n.oxw();n.Q6J("src",Y.nzSrc,n.LSH),n.uIk("srcset",Y.nzSrcSet)("alt",Y.nzAlt)}}function e($,J){if(1&$&&(n.TgZ(0,"span",5,6),n._uU(2),n.qZA()),2&$){const Y=n.oxw();n.xp6(2),n.Oqu(Y.nzText)}}const it=["*"];let tt=(()=>{var $;class J{constructor(Z,M,Q,w,nt){this.nzConfigService=Z,this.elementRef=M,this.cdr=Q,this.platform=w,this.ngZone=nt,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new n.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(Z){this.nzError.emit(Z),Z.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const Z=this.textEl.nativeElement,M=Z.offsetWidth,Q=this.el.getBoundingClientRect().width,w=2*this.nzGap<Q?2*this.nzGap:8;Z.style.transform=`scale(${Q-w<M?(Q-w)/M:1}) translateX(-50%)`,Z.style.lineHeight=this.customSize||""}notifyCalc(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.calcStringSize()})})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return($=J).\u0275fac=function(Z){return new(Z||$)(n.Y36(l.jY),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(L.t4),n.Y36(n.R0b))},$.\u0275cmp=n.Xpm({type:$,selectors:[["nz-avatar"]],viewQuery:function(Z,M){if(1&Z&&n.Gf(N,5),2&Z){let Q;n.iGM(Q=n.CRH())&&(M.textEl=Q.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(Z,M){2&Z&&(n.Udp("width",M.customSize)("height",M.customSize)("line-height",M.customSize)("font-size",M.hasIcon&&M.customSize?M.nzSize/2:null,"px"),n.ekj("ant-avatar-lg","large"===M.nzSize)("ant-avatar-sm","small"===M.nzSize)("ant-avatar-square","square"===M.nzShape)("ant-avatar-circle","circle"===M.nzShape)("ant-avatar-icon",M.nzIcon)("ant-avatar-image",M.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[n.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string"],["textEl",""]],template:function(Z,M){1&Z&&(n.YNc(0,F,1,1,"span",0),n.YNc(1,H,1,3,"img",1),n.YNc(2,e,3,1,"span",2)),2&Z&&(n.Q6J("ngIf",M.nzIcon&&M.hasIcon),n.xp6(1),n.Q6J("ngIf",M.nzSrc&&M.hasSrc),n.xp6(1),n.Q6J("ngIf",M.nzText&&M.hasText))},dependencies:[r.O5,b.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,l.oS)()],J.prototype,"nzShape",void 0),(0,t.gn)([(0,l.oS)()],J.prototype,"nzSize",void 0),(0,t.gn)([(0,l.oS)(),(0,d.Rn)()],J.prototype,"nzGap",void 0),J})(),_t=(()=>{var $;class J{}return($=J).\u0275fac=function(Z){return new(Z||$)},$.\u0275cmp=n.Xpm({type:$,selectors:[["nz-avatar-group"]],hostAttrs:[1,"ant-avatar-group"],exportAs:["nzAvatarGroup"],ngContentSelectors:it,decls:1,vars:0,template:function(Z,M){1&Z&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),J})(),pt=(()=>{var $;class J{}return($=J).\u0275fac=function(Z){return new(Z||$)},$.\u0275mod=n.oAB({type:$}),$.\u0275inj=n.cJS({imports:[W.vT,r.ez,b.PV,L.ud]}),J})()},33640:(gt,ot,o)=>{o.d(ot,{mS:()=>G,x7:()=>V});var t=o(97582),n=o(65879),l=o(78645),d=o(59773),L=o(64194),r=o(40874),b=o(27754),W=o(49388),N=o(331),F=o(96814),H=o(8324),e=o(17131);function it(U,v){if(1&U&&(n.TgZ(0,"p",6),n._uU(1),n.qZA()),2&U){const O=v.$implicit,S=n.oxw(2).index,x=n.oxw(2);n.ekj("current",O===x.countArray[S]),n.xp6(1),n.hij(" ",O," ")}}function lt(U,v){if(1&U&&(n.ynx(0),n.YNc(1,it,2,3,"p",5),n.BQk()),2&U){const O=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",O.countSingleArray)}}function tt(U,v){if(1&U&&(n.TgZ(0,"span",3),n.YNc(1,lt,2,1,"ng-container",4),n.qZA()),2&U){const O=v.index,S=n.oxw(2);n.Udp("transform","translateY("+100*-S.countArray[O]+"%)"),n.Q6J("nzNoAnimation",S.noAnimation),n.xp6(1),n.Q6J("ngIf",!S.nzDot&&void 0!==S.countArray[O])}}function _t(U,v){if(1&U&&(n.ynx(0),n.YNc(1,tt,2,4,"span",2),n.BQk()),2&U){const O=n.oxw();n.xp6(1),n.Q6J("ngForOf",O.maxNumberArray)}}function pt(U,v){if(1&U&&n._uU(0),2&U){const O=n.oxw();n.hij("",O.nzOverflowCount,"+")}}function $(U,v){if(1&U&&(n.ynx(0),n._uU(1),n.BQk()),2&U){const O=n.oxw(2);n.xp6(1),n.Oqu(O.nzText)}}function J(U,v){if(1&U&&(n.ynx(0),n._UZ(1,"span",2),n.TgZ(2,"span",3),n.YNc(3,$,2,1,"ng-container",1),n.qZA(),n.BQk()),2&U){const O=n.oxw();n.xp6(1),n.Gre("ant-badge-status-dot ant-badge-status-",O.nzStatus||O.presetColor,""),n.Udp("background",!O.presetColor&&O.nzColor),n.Q6J("ngStyle",O.nzStyle),n.xp6(2),n.Q6J("nzStringTemplateOutlet",O.nzText)}}function Y(U,v){if(1&U&&n._UZ(0,"nz-badge-sup",5),2&U){const O=n.oxw(2);n.Q6J("nzOffset",O.nzOffset)("nzSize",O.nzSize)("nzTitle",O.nzTitle)("nzStyle",O.nzStyle)("nzDot",O.nzDot)("nzOverflowCount",O.nzOverflowCount)("disableAnimation",!!(O.nzStandalone||O.nzStatus||O.nzColor||null!=O.noAnimation&&O.noAnimation.nzNoAnimation))("nzCount",O.nzCount)("noAnimation",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))}}function Z(U,v){if(1&U&&(n.ynx(0),n.YNc(1,Y,1,9,"nz-badge-sup",4),n.BQk()),2&U){const O=n.oxw();n.xp6(1),n.Q6J("ngIf",O.showSup)}}const M=["*"],w=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let nt=(()=>{var U;class v{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(S){const{nzOverflowCount:x,nzCount:h}=S;h&&"number"==typeof h.currentValue&&(this.count=Math.max(0,h.currentValue),this.countArray=this.count.toString().split("").map(j=>+j)),x&&this.generateMaxNumberArray()}}return(U=v).\u0275fac=function(S){return new(S||U)},U.\u0275cmp=n.Xpm({type:U,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(S,x){2&S&&(n.uIk("title",null===x.nzTitle?"":x.nzTitle||x.nzCount),n.d8E("@.disabled",x.disableAnimation)("@zoomBadgeMotion",void 0),n.Akn(x.nzStyle),n.Udp("right",x.nzOffset&&x.nzOffset[0]?-x.nzOffset[0]:null,"px")("margin-top",x.nzOffset&&x.nzOffset[1]?x.nzOffset[1]:null,"px"),n.ekj("ant-badge-count",!x.nzDot)("ant-badge-count-sm","small"===x.nzSize)("ant-badge-dot",x.nzDot)("ant-badge-multiple-words",x.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],features:[n.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(S,x){if(1&S&&(n.YNc(0,_t,2,1,"ng-container",0),n.YNc(1,pt,1,1,"ng-template",null,1,n.W1O)),2&S){const h=n.MAs(2);n.Q6J("ngIf",x.count<=x.nzOverflowCount)("ngIfElse",h)}},dependencies:[F.sg,F.O5,N.P],encapsulation:2,data:{animation:[L.Ev]},changeDetection:0}),v})(),V=(()=>{var U;class v{constructor(S,x,h,j,q,R){this.nzConfigService=S,this.renderer=x,this.cdr=h,this.elementRef=j,this.directionality=q,this.noAnimation=R,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new l.x,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe(S=>{this.dir=S,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(S){const{nzColor:x,nzShowDot:h,nzDot:j,nzCount:q,nzShowZero:R}=S;x&&(this.presetColor=this.nzColor&&-1!==w.indexOf(this.nzColor)?this.nzColor:null),(h||j||q||R)&&(this.showSup=this.nzShowDot&&this.nzDot||"number"==typeof this.nzCount&&this.nzCount>0||"number"==typeof this.nzCount&&this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(U=v).\u0275fac=function(S){return new(S||U)(n.Y36(r.jY),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(W.Is,8),n.Y36(N.P,9))},U.\u0275cmp=n.Xpm({type:U,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(S,x){2&S&&n.ekj("ant-badge-status",x.nzStatus)("ant-badge-not-a-wrapper",!!(x.nzStandalone||x.nzStatus||x.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],features:[n.TTD],ngContentSelectors:M,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(S,x){1&S&&(n.F$t(),n.YNc(0,J,4,7,"ng-container",0),n.Hsn(1),n.YNc(2,Z,2,1,"ng-container",1)),2&S&&(n.Q6J("ngIf",x.nzStatus||x.nzColor),n.xp6(2),n.Q6J("nzStringTemplateOutlet",x.nzCount))},dependencies:[F.O5,F.PC,H.f,nt],encapsulation:2,data:{animation:[L.Ev]},changeDetection:0}),(0,t.gn)([(0,b.yF)()],v.prototype,"nzShowZero",void 0),(0,t.gn)([(0,b.yF)()],v.prototype,"nzShowDot",void 0),(0,t.gn)([(0,b.yF)()],v.prototype,"nzStandalone",void 0),(0,t.gn)([(0,b.yF)()],v.prototype,"nzDot",void 0),(0,t.gn)([(0,r.oS)()],v.prototype,"nzOverflowCount",void 0),(0,t.gn)([(0,r.oS)()],v.prototype,"nzColor",void 0),v})(),G=(()=>{var U;class v{}return(U=v).\u0275fac=function(S){return new(S||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[W.vT,F.ez,e.Q8,H.T,N.g]}),v})()},3626:(gt,ot,o)=>{o.d(ot,{Dg:()=>st,MO:()=>V,lt:()=>U});var t=o(65879),n=o(96814),l=o(8324),d=o(62787),L=o(62595),r=o(97582),b=o(35420),W=o(78645),N=o(59773),F=o(32181),H=o(27921),e=o(1608),it=o(27754),lt=o(49388),tt=o(69594),_t=o(85448);function pt(v,O){}function $(v,O){1&v&&t._UZ(0,"span",6)}function J(v,O){if(1&v&&(t.ynx(0),t.TgZ(1,"span",3),t.YNc(2,pt,0,0,"ng-template",4),t.YNc(3,$,1,0,"span",5),t.qZA(),t.BQk()),2&v){const S=t.oxw(),x=t.MAs(2);t.xp6(1),t.Q6J("nzDropdownMenu",S.nzOverlay),t.xp6(1),t.Q6J("ngTemplateOutlet",x),t.xp6(1),t.Q6J("ngIf",!!S.nzOverlay)}}function Y(v,O){1&v&&(t.TgZ(0,"span",7),t.Hsn(1),t.qZA())}function Z(v,O){if(1&v&&(t.ynx(0),t._uU(1),t.BQk()),2&v){const S=t.oxw(2);t.xp6(1),t.hij(" ",S.nzBreadCrumbComponent.nzSeparator," ")}}function M(v,O){if(1&v&&(t.TgZ(0,"span",8),t.YNc(1,Z,2,1,"ng-container",9),t.qZA()),2&v){const S=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",S.nzBreadCrumbComponent.nzSeparator)}}const Q=["*"];function w(v,O){if(1&v){const S=t.EpF();t.TgZ(0,"nz-breadcrumb-item")(1,"a",2),t.NdJ("click",function(h){const q=t.CHM(S).$implicit,R=t.oxw(2);return t.KtG(R.navigate(q.url,h))}),t._uU(2),t.qZA()()}if(2&v){const S=O.$implicit;t.xp6(1),t.uIk("href",S.url,t.LSH),t.xp6(1),t.Oqu(S.label)}}function nt(v,O){if(1&v&&(t.ynx(0),t.YNc(1,w,3,2,"nz-breadcrumb-item",1),t.BQk()),2&v){const S=t.oxw();t.xp6(1),t.Q6J("ngForOf",S.breadcrumbs)}}class et{}let V=(()=>{var v;class O{constructor(x){this.nzBreadCrumbComponent=x}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(et))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:Q,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["noMenuTpl",""],["class","ant-breadcrumb-separator",4,"ngIf"],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","down"],[1,"ant-breadcrumb-link"],[1,"ant-breadcrumb-separator"],[4,"nzStringTemplateOutlet"]],template:function(x,h){if(1&x&&(t.F$t(),t.YNc(0,J,4,3,"ng-container",0),t.YNc(1,Y,2,0,"ng-template",null,1,t.W1O),t.YNc(3,M,2,1,"span",2)),2&x){const j=t.MAs(2);t.Q6J("ngIf",!!h.nzOverlay)("ngIfElse",j),t.xp6(3),t.Q6J("ngIf",h.nzBreadCrumbComponent.nzSeparator)}},dependencies:[n.O5,n.tP,l.f,d.cm,L.Ls],encapsulation:2,changeDetection:0}),O})(),st=(()=>{var v;class O{constructor(x,h,j,q,R){this.injector=x,this.cdr=h,this.elementRef=j,this.renderer=q,this.directionality=R,this.nzAutoGenerate=!1,this.nzSeparator="/",this.nzRouteLabel="breadcrumb",this.nzRouteLabelFn=K=>K,this.breadcrumbs=[],this.dir="ltr",this.destroy$=new W.x}ngOnInit(){this.nzAutoGenerate&&this.registerRouterChange(),this.directionality.change?.pipe((0,N.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigate(x,h){h.preventDefault(),this.injector.get(b.F0).navigateByUrl(x)}registerRouterChange(){try{const x=this.injector.get(b.F0),h=this.injector.get(b.gz);x.events.pipe((0,F.h)(j=>j instanceof b.m2),(0,N.R)(this.destroy$),(0,H.O)(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(h.root),this.cdr.markForCheck()})}catch{throw new Error(`${e.Bq} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(x,h="",j=[]){const q=x.children;if(0===q.length)return j;for(const R of q)if(R.outlet===b.eC){const K=R.snapshot.url.map(at=>at.path).filter(at=>at).join("/"),dt=K?`${h}/${K}`:h,X=this.nzRouteLabelFn(R.snapshot.data[this.nzRouteLabel]);return K&&X&&j.push({label:X,params:R.snapshot.params,url:dt}),this.getBreadcrumbs(R,dt,j)}return j}prepareComponentForRtl(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(t.zs3),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(lt.Is,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-breadcrumb"]],hostAttrs:[1,"ant-breadcrumb"],inputs:{nzAutoGenerate:"nzAutoGenerate",nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn"},exportAs:["nzBreadcrumb"],features:[t._Bn([{provide:et,useExisting:v}])],ngContentSelectors:Q,decls:2,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"click"]],template:function(x,h){1&x&&(t.F$t(),t.Hsn(0),t.YNc(1,nt,2,1,"ng-container",0)),2&x&&(t.xp6(1),t.Q6J("ngIf",h.nzAutoGenerate&&h.breadcrumbs.length))},dependencies:[n.sg,n.O5,V],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,it.yF)()],O.prototype,"nzAutoGenerate",void 0),O})(),U=(()=>{var v;class O{}return(v=O).\u0275fac=function(x){return new(x||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[n.ez,l.T,tt.U8,_t.e4,d.b1,L.PV,lt.vT]}),O})()},66987:(gt,ot,o)=>{o.d(ot,{S:()=>F,g:()=>N});var t=o(97582),n=o(65879),l=o(27754),d=o(96814),L=o(8324),r=o(49388);function b(H,e){if(1&H&&(n.ynx(0),n._uU(1),n.BQk()),2&H){const it=n.oxw(2);n.xp6(1),n.Oqu(it.nzText)}}function W(H,e){if(1&H&&(n.TgZ(0,"span",1),n.YNc(1,b,2,1,"ng-container",2),n.qZA()),2&H){const it=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",it.nzText)}}let N=(()=>{var H;class e{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return(H=e).\u0275fac=function(lt){return new(lt||H)},H.\u0275cmp=n.Xpm({type:H,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(lt,tt){2<&&n.ekj("ant-divider-horizontal","horizontal"===tt.nzType)("ant-divider-vertical","vertical"===tt.nzType)("ant-divider-with-text",tt.nzText)("ant-divider-plain",tt.nzPlain)("ant-divider-with-text-left",tt.nzText&&"left"===tt.nzOrientation)("ant-divider-with-text-right",tt.nzText&&"right"===tt.nzOrientation)("ant-divider-with-text-center",tt.nzText&&"center"===tt.nzOrientation)("ant-divider-dashed",tt.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(lt,tt){1<&&n.YNc(0,W,2,1,"span",0),2<&&n.Q6J("ngIf",tt.nzText)},dependencies:[d.O5,L.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,l.yF)()],e.prototype,"nzDashed",void 0),(0,t.gn)([(0,l.yF)()],e.prototype,"nzPlain",void 0),e})(),F=(()=>{var H;class e{}return(H=e).\u0275fac=function(lt){return new(lt||H)},H.\u0275mod=n.oAB({type:H}),H.\u0275inj=n.cJS({imports:[r.vT,d.ez,L.T]}),e})()},43389:(gt,ot,o)=>{o.d(ot,{BL:()=>E,SQ:()=>h,Vz:()=>X});var t=o(97582),n=o(36028),l=o(69594),d=o(68484),L=o(96814),r=o(65879),b=o(78645),W=o(59773),N=o(40874),F=o(27754),H=o(4300),e=o(49388),it=o(62595),lt=o(8324),tt=o(331);const _t=["drawerTemplate"];function pt(T,P){if(1&T){const f=r.EpF();r.TgZ(0,"div",11),r.NdJ("click",function(){r.CHM(f);const rt=r.oxw(2);return r.KtG(rt.maskClick())}),r.qZA()}if(2&T){const f=r.oxw(2);r.Q6J("ngStyle",f.nzMaskStyle)}}function $(T,P){if(1&T&&(r.ynx(0),r._UZ(1,"span",19),r.BQk()),2&T){const f=P.$implicit;r.xp6(1),r.Q6J("nzType",f)}}function J(T,P){if(1&T){const f=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){r.CHM(f);const rt=r.oxw(3);return r.KtG(rt.closeClick())}),r.YNc(1,$,2,1,"ng-container",18),r.qZA()}if(2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("nzStringTemplateOutlet",f.nzCloseIcon)}}function Y(T,P){if(1&T&&(r.ynx(0),r._UZ(1,"div",21),r.BQk()),2&T){const f=r.oxw(4);r.xp6(1),r.Q6J("innerHTML",f.nzTitle,r.oJD)}}function Z(T,P){if(1&T&&(r.TgZ(0,"div",20),r.YNc(1,Y,2,1,"ng-container",18),r.qZA()),2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("nzStringTemplateOutlet",f.nzTitle)}}function M(T,P){if(1&T&&(r.ynx(0),r._UZ(1,"div",21),r.BQk()),2&T){const f=r.oxw(4);r.xp6(1),r.Q6J("innerHTML",f.nzExtra,r.oJD)}}function Q(T,P){if(1&T&&(r.TgZ(0,"div",22),r.YNc(1,M,2,1,"ng-container",18),r.qZA()),2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("nzStringTemplateOutlet",f.nzExtra)}}function w(T,P){if(1&T&&(r.TgZ(0,"div",12)(1,"div",13),r.YNc(2,J,2,1,"button",14),r.YNc(3,Z,2,1,"div",15),r.qZA(),r.YNc(4,Q,2,1,"div",16),r.qZA()),2&T){const f=r.oxw(2);r.ekj("ant-drawer-header-close-only",!f.nzTitle),r.xp6(2),r.Q6J("ngIf",f.nzClosable),r.xp6(1),r.Q6J("ngIf",f.nzTitle),r.xp6(1),r.Q6J("ngIf",f.nzExtra)}}function nt(T,P){}function et(T,P){1&T&&r.GkF(0)}function V(T,P){if(1&T&&(r.ynx(0),r.YNc(1,et,1,0,"ng-container",24),r.BQk()),2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("ngTemplateOutlet",f.nzContent)("ngTemplateOutletContext",f.templateContext)}}function st(T,P){if(1&T&&(r.ynx(0),r.YNc(1,V,2,2,"ng-container",23),r.BQk()),2&T){const f=r.oxw(2);r.xp6(1),r.Q6J("ngIf",f.isTemplateRef(f.nzContent))}}function G(T,P){}function U(T,P){if(1&T&&(r.ynx(0),r.YNc(1,G,0,0,"ng-template",25),r.BQk()),2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("ngTemplateOutlet",f.contentFromContentChild)}}function v(T,P){if(1&T&&r.YNc(0,U,2,1,"ng-container",23),2&T){const f=r.oxw(2);r.Q6J("ngIf",f.contentFromContentChild&&(f.isOpen||f.inAnimation))}}function O(T,P){if(1&T&&(r.ynx(0),r._UZ(1,"div",21),r.BQk()),2&T){const f=r.oxw(3);r.xp6(1),r.Q6J("innerHTML",f.nzFooter,r.oJD)}}function S(T,P){if(1&T&&(r.TgZ(0,"div",26),r.YNc(1,O,2,1,"ng-container",18),r.qZA()),2&T){const f=r.oxw(2);r.xp6(1),r.Q6J("nzStringTemplateOutlet",f.nzFooter)}}function x(T,P){if(1&T&&(r.TgZ(0,"div",1),r.YNc(1,pt,1,1,"div",2),r.TgZ(2,"div")(3,"div",3)(4,"div",4),r.YNc(5,w,5,5,"div",5),r.TgZ(6,"div",6),r.YNc(7,nt,0,0,"ng-template",7),r.YNc(8,st,2,1,"ng-container",8),r.YNc(9,v,1,1,"ng-template",null,9,r.W1O),r.qZA(),r.YNc(11,S,2,1,"div",10),r.qZA()()()()),2&T){const f=r.MAs(10),A=r.oxw();r.Udp("transform",A.offsetTransform)("transition",A.placementChanging?"none":null)("z-index",A.nzZIndex),r.ekj("ant-drawer-rtl","rtl"===A.dir)("ant-drawer-open",A.isOpen)("no-mask",!A.nzMask)("ant-drawer-top","top"===A.nzPlacement)("ant-drawer-bottom","bottom"===A.nzPlacement)("ant-drawer-right","right"===A.nzPlacement)("ant-drawer-left","left"===A.nzPlacement),r.Q6J("nzNoAnimation",A.nzNoAnimation),r.xp6(1),r.Q6J("ngIf",A.nzMask),r.xp6(1),r.Gre("ant-drawer-content-wrapper ",A.nzWrapClassName,""),r.Udp("width",A.width)("height",A.height)("transform",A.transform)("transition",A.placementChanging?"none":null),r.xp6(2),r.Udp("height",A.isLeftOrRight?"100%":null),r.xp6(1),r.Q6J("ngIf",A.nzTitle||A.nzClosable),r.xp6(1),r.Q6J("ngStyle",A.nzBodyStyle),r.xp6(2),r.Q6J("ngIf",A.nzContent)("ngIfElse",f),r.xp6(3),r.Q6J("ngIf",A.nzFooter)}}let h=(()=>{var T;class P{constructor(A){this.templateRef=A}}return(T=P).\u0275fac=function(A){return new(A||T)(r.Y36(r.Rgc))},T.\u0275dir=r.lG2({type:T,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),P})();class R{}let X=(()=>{var T;class P extends R{set nzVisible(A){this.isOpen=A}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,F.WX)(void 0===this.nzWidth?"large"===this.nzSize?736:378:this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,F.WX)(void 0===this.nzHeight?"large"===this.nzSize?736:378:this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(A){return A instanceof r.Rgc}constructor(A,rt,mt,vt,Ot,Pt,wt,Lt,Rt,Bt,Ut){super(),this.cdr=A,this.document=rt,this.nzConfigService=mt,this.renderer=vt,this.overlay=Ot,this.injector=Pt,this.changeDetectorRef=wt,this.focusTrapFactory=Lt,this.viewContainerRef=Rt,this.overlayKeyboardDispatcher=Bt,this.directionality=Ut,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzSize="default",this.nzMaskStyle={},this.nzBodyStyle={},this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new r.vpe,this.nzOnClose=new r.vpe,this.nzVisibleChange=new r.vpe,this.destroy$=new b.x,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new b.x,this.nzAfterClose=new b.x,this.nzDirection=void 0,this.dir="ltr"}ngOnInit(){this.directionality.change?.pipe((0,W.R)(this.destroy$)).subscribe(A=>{this.dir=A,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(A){const{nzPlacement:rt,nzVisible:mt}=A;mt&&(A.nzVisible.currentValue?this.open():this.close()),rt&&!rt.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(A){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(A),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof r.DyG){const A=r.zs3.create({parent:this.injector,providers:[{provide:R,useValue:this}]}),rt=new d.C5(this.nzContent,null,A),mt=this.bodyPortalOutlet.attachComponentPortal(rt);this.componentInstance=mt.instance,Object.assign(mt.instance,this.nzContentParams),mt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new d.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,W.R)(this.destroy$)).subscribe(A=>{A.keyCode===n.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,W.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}getOverlayConfig(){return new l.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return(T=P).\u0275fac=function(A){return new(A||T)(r.Y36(r.sBO),r.Y36(L.K0,8),r.Y36(N.jY),r.Y36(r.Qsj),r.Y36(l.aV),r.Y36(r.zs3),r.Y36(r.sBO),r.Y36(H.qV),r.Y36(r.s_b),r.Y36(l.Vs),r.Y36(e.Is,8))},T.\u0275cmp=r.Xpm({type:T,selectors:[["nz-drawer"]],contentQueries:function(A,rt,mt){if(1&A&&r.Suo(mt,h,7,r.Rgc),2&A){let vt;r.iGM(vt=r.CRH())&&(rt.contentFromContentChild=vt.first)}},viewQuery:function(A,rt){if(1&A&&(r.Gf(_t,7),r.Gf(d.Pl,5)),2&A){let mt;r.iGM(mt=r.CRH())&&(rt.drawerTemplate=mt.first),r.iGM(mt=r.CRH())&&(rt.bodyPortalOutlet=mt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[r.qOj,r.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["class","ant-drawer-extra",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[1,"ant-drawer-extra"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(A,rt){1&A&&r.YNc(0,x,12,40,"ng-template",null,0,r.W1O)},dependencies:[L.O5,L.tP,L.PC,d.Pl,it.Ls,lt.f,tt.P],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,F.yF)()],P.prototype,"nzClosable",void 0),(0,t.gn)([(0,N.oS)(),(0,F.yF)()],P.prototype,"nzMaskClosable",void 0),(0,t.gn)([(0,N.oS)(),(0,F.yF)()],P.prototype,"nzMask",void 0),(0,t.gn)([(0,N.oS)(),(0,F.yF)()],P.prototype,"nzCloseOnNavigation",void 0),(0,t.gn)([(0,F.yF)()],P.prototype,"nzNoAnimation",void 0),(0,t.gn)([(0,F.yF)()],P.prototype,"nzKeyboard",void 0),(0,t.gn)([(0,N.oS)()],P.prototype,"nzDirection",void 0),P})(),at=(()=>{var T;class P{}return(T=P).\u0275fac=function(A){return new(A||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({}),P})(),E=(()=>{var T;class P{}return(T=P).\u0275fac=function(A){return new(A||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[e.vT,L.ez,l.U8,d.eL,it.PV,lt.T,tt.g,at]}),P})()},60804:(gt,ot,o)=>{o.d(ot,{Xo:()=>x,gB:()=>S,p9:()=>v});var t=o(68484),n=o(65879),l=o(78645),d=o(59773),L=o(27921),r=o(40874),b=o(96814),W=o(64345),N=o(8324),F=o(49388);function H(h,j){if(1&h&&(n.ynx(0),n._UZ(1,"img",5),n.BQk()),2&h){const q=n.oxw(2);n.xp6(1),n.Q6J("src",q.nzNotFoundImage,n.LSH)("alt",q.isContentString?q.nzNotFoundContent:"empty")}}function e(h,j){if(1&h&&(n.ynx(0),n.YNc(1,H,2,2,"ng-container",4),n.BQk()),2&h){const q=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",q.nzNotFoundImage)}}function it(h,j){1&h&&n._UZ(0,"nz-empty-default")}function lt(h,j){1&h&&n._UZ(0,"nz-empty-simple")}function tt(h,j){if(1&h&&(n.ynx(0),n._uU(1),n.BQk()),2&h){const q=n.oxw(2);n.xp6(1),n.hij(" ",q.isContentString?q.nzNotFoundContent:q.locale.description," ")}}function _t(h,j){if(1&h&&(n.TgZ(0,"p",6),n.YNc(1,tt,2,1,"ng-container",4),n.qZA()),2&h){const q=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",q.nzNotFoundContent)}}function pt(h,j){if(1&h&&(n.ynx(0),n._uU(1),n.BQk()),2&h){const q=n.oxw(2);n.xp6(1),n.hij(" ",q.nzNotFoundFooter," ")}}function $(h,j){if(1&h&&(n.TgZ(0,"div",7),n.YNc(1,pt,2,1,"ng-container",4),n.qZA()),2&h){const q=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",q.nzNotFoundFooter)}}function J(h,j){1&h&&n._UZ(0,"nz-empty",6),2&h&&n.Q6J("nzNotFoundImage","simple")}function Y(h,j){1&h&&n._UZ(0,"nz-empty",7),2&h&&n.Q6J("nzNotFoundImage","simple")}function Z(h,j){1&h&&n._UZ(0,"nz-empty")}function M(h,j){if(1&h&&(n.ynx(0,2),n.YNc(1,J,1,1,"nz-empty",3),n.YNc(2,Y,1,1,"nz-empty",4),n.YNc(3,Z,1,0,"nz-empty",5),n.BQk()),2&h){const q=n.oxw();n.Q6J("ngSwitch",q.size),n.xp6(1),n.Q6J("ngSwitchCase","normal"),n.xp6(1),n.Q6J("ngSwitchCase","small")}}function Q(h,j){}function w(h,j){if(1&h&&n.YNc(0,Q,0,0,"ng-template",8),2&h){const q=n.oxw(2);n.Q6J("cdkPortalOutlet",q.contentPortal)}}function nt(h,j){if(1&h&&(n.ynx(0),n._uU(1),n.BQk()),2&h){const q=n.oxw(2);n.xp6(1),n.hij(" ",q.content," ")}}function et(h,j){if(1&h&&(n.ynx(0),n.YNc(1,w,1,1,null,1),n.YNc(2,nt,2,1,"ng-container",1),n.BQk()),2&h){const q=n.oxw();n.xp6(1),n.Q6J("ngIf","string"!==q.contentType),n.xp6(1),n.Q6J("ngIf","string"===q.contentType)}}const V=new n.OlP("nz-empty-component-name");let st=(()=>{var h;class j{}return(h=j).\u0275fac=function(R){return new(R||h)},h.\u0275cmp=n.Xpm({type:h,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(R,K){1&R&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g",1)(2,"g",2),n._UZ(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),n.qZA(),n._UZ(8,"path",8),n.TgZ(9,"g",9),n._UZ(10,"ellipse",10)(11,"path",11),n.qZA()()())},encapsulation:2,changeDetection:0}),j})(),G=(()=>{var h;class j{}return(h=j).\u0275fac=function(R){return new(R||h)},h.\u0275cmp=n.Xpm({type:h,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(R,K){1&R&&(n.O4$(),n.TgZ(0,"svg",0)(1,"g",1),n._UZ(2,"ellipse",2),n.TgZ(3,"g",3),n._UZ(4,"path",4)(5,"path",5),n.qZA()()())},encapsulation:2,changeDetection:0}),j})();const U=["default","simple"];let v=(()=>{var h;class j{constructor(R,K){this.i18n=R,this.cdr=K,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new l.x}ngOnChanges(R){const{nzNotFoundContent:K,nzNotFoundImage:dt}=R;if(K&&(this.isContentString="string"==typeof K.currentValue),dt){const X=dt.currentValue||"default";this.isImageBuildIn=U.findIndex(at=>at===X)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,d.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(h=j).\u0275fac=function(R){return new(R||h)(n.Y36(W.wi),n.Y36(n.sBO))},h.\u0275cmp=n.Xpm({type:h,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[n.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(R,K){1&R&&(n.TgZ(0,"div",0),n.YNc(1,e,2,1,"ng-container",1),n.YNc(2,it,1,0,"nz-empty-default",1),n.YNc(3,lt,1,0,"nz-empty-simple",1),n.qZA(),n.YNc(4,_t,2,1,"p",2),n.YNc(5,$,2,1,"div",3)),2&R&&(n.xp6(1),n.Q6J("ngIf",!K.isImageBuildIn),n.xp6(1),n.Q6J("ngIf",K.isImageBuildIn&&"simple"!==K.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",K.isImageBuildIn&&"simple"===K.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",null!==K.nzNotFoundContent),n.xp6(1),n.Q6J("ngIf",K.nzNotFoundFooter))},dependencies:[b.O5,N.f,st,G],encapsulation:2,changeDetection:0}),j})(),S=(()=>{var h;class j{constructor(R,K,dt,X){this.configService=R,this.viewContainerRef=K,this.cdr=dt,this.injector=X,this.contentType="string",this.size="",this.destroy$=new l.x}ngOnChanges(R){R.nzComponentName&&(this.size=function O(h){switch(h){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(R.nzComponentName.currentValue)),R.specificContent&&!R.specificContent.isFirstChange()&&(this.content=R.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const R=this.content;if("string"==typeof R)this.contentType="string";else if(R instanceof n.Rgc){const K={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.UE(R,this.viewContainerRef,K)}else if(R instanceof n.DyG){const K=n.zs3.create({parent:this.injector,providers:[{provide:V,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.C5(R,this.viewContainerRef,K)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,L.O)(!0),(0,d.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return(h=j).\u0275fac=function(R){return new(R||h)(n.Y36(r.jY),n.Y36(n.s_b),n.Y36(n.sBO),n.Y36(n.zs3))},h.\u0275cmp=n.Xpm({type:h,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[n.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(R,K){1&R&&(n.YNc(0,M,4,3,"ng-container",0),n.YNc(1,et,3,2,"ng-container",1)),2&R&&(n.Q6J("ngIf",!K.content&&null!==K.specificContent),n.xp6(1),n.Q6J("ngIf",K.content))},dependencies:[b.O5,b.RF,b.n9,b.ED,t.Pl,v],encapsulation:2,changeDetection:0}),j})(),x=(()=>{var h;class j{}return(h=j).\u0275fac=function(R){return new(R||h)},h.\u0275mod=n.oAB({type:h}),h.\u0275inj=n.cJS({imports:[F.vT,b.ez,t.eL,N.T,W.YI]}),j})()},33410:(gt,ot,o)=>{o.d(ot,{E8:()=>et,OK:()=>w,hw:()=>G,t7:()=>st,wm:()=>U});var t=o(65879),n=o(78645),l=o(59773),d=o(97582),L=o(99087),r=o(27754),b=o(73460),W=o(62831),N=o(96814),F=o(62595),H=o(49388),e=o(71088);const it=["*"],lt=["nz-sider-trigger",""];function tt(v,O){}function _t(v,O){if(1&v&&(t.ynx(0),t.YNc(1,tt,0,0,"ng-template",3),t.BQk()),2&v){const S=t.oxw(),x=t.MAs(5);t.xp6(1),t.Q6J("ngTemplateOutlet",S.nzZeroTrigger||x)}}function pt(v,O){}function $(v,O){if(1&v&&(t.ynx(0),t.YNc(1,pt,0,0,"ng-template",3),t.BQk()),2&v){const S=t.oxw(),x=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",S.nzTrigger||x)}}function J(v,O){if(1&v&&t._UZ(0,"span",5),2&v){const S=t.oxw(2);t.Q6J("nzType",S.nzCollapsed?"right":"left")}}function Y(v,O){if(1&v&&t._UZ(0,"span",5),2&v){const S=t.oxw(2);t.Q6J("nzType",S.nzCollapsed?"left":"right")}}function Z(v,O){if(1&v&&(t.YNc(0,J,1,1,"span",4),t.YNc(1,Y,1,1,"span",4)),2&v){const S=t.oxw();t.Q6J("ngIf",!S.nzReverseArrow),t.xp6(1),t.Q6J("ngIf",S.nzReverseArrow)}}function M(v,O){1&v&&t._UZ(0,"span",6)}function Q(v,O){if(1&v){const S=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(S);const h=t.oxw();return t.KtG(h.setCollapsed(!h.nzCollapsed))}),t.qZA()}if(2&v){const S=t.oxw();t.Q6J("matchBreakPoint",S.matchBreakPoint)("nzCollapsedWidth",S.nzCollapsedWidth)("nzCollapsed",S.nzCollapsed)("nzBreakpoint",S.nzBreakpoint)("nzReverseArrow",S.nzReverseArrow)("nzTrigger",S.nzTrigger)("nzZeroTrigger",S.nzZeroTrigger)("siderWidth",S.widthSetting)}}let w=(()=>{var v;class O{constructor(x,h){this.elementRef=x,this.renderer=h,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(t.SBq),t.Y36(t.Qsj))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:it,decls:1,vars:0,template:function(x,h){1&x&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),O})(),et=(()=>{var v;class O{constructor(x,h){this.elementRef=x,this.renderer=h,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(t.SBq),t.Y36(t.Qsj))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:it,decls:1,vars:0,template:function(x,h){1&x&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),O})(),V=(()=>{var v;class O{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return(v=O).\u0275fac=function(x){return new(x||v)},v.\u0275cmp=t.Xpm({type:v,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(x,h){2&x&&(t.Udp("width",h.isNormalTrigger?h.siderWidth:null),t.ekj("ant-layout-sider-trigger",h.isNormalTrigger)("ant-layout-sider-zero-width-trigger",h.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",h.isZeroTrigger&&h.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",h.isZeroTrigger&&!h.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[t.TTD],attrs:lt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(x,h){1&x&&(t.YNc(0,_t,2,1,"ng-container",0),t.YNc(1,$,2,1,"ng-container",0),t.YNc(2,Z,2,2,"ng-template",null,1,t.W1O),t.YNc(4,M,1,0,"ng-template",null,2,t.W1O)),2&x&&(t.Q6J("ngIf",h.isZeroTrigger),t.xp6(1),t.Q6J("ngIf",h.isNormalTrigger))},dependencies:[N.O5,N.tP,F.Ls],encapsulation:2,changeDetection:0}),O})(),st=(()=>{var v;class O{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,r.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(x){x!==this.nzCollapsed&&(this.nzCollapsed=x,this.nzCollapsedChange.emit(x),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}constructor(x,h,j){this.platform=x,this.cdr=h,this.breakpointService=j,this.destroy$=new n.x,this.nzMenuDirective=null,this.nzCollapsedChange=new t.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(L.ow,!0).pipe((0,l.R)(this.destroy$)).subscribe(x=>{const h=this.nzBreakpoint;h&&(0,r.ov)().subscribe(()=>{this.matchBreakPoint=!x[h],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(x){const{nzCollapsed:h,nzCollapsedWidth:j,nzWidth:q}=x;(h||j||q)&&this.updateStyleMap(),h&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(W.t4),t.Y36(t.sBO),t.Y36(L.r3))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-sider"]],contentQueries:function(x,h,j){if(1&x&&t.Suo(j,b.wO,5),2&x){let q;t.iGM(q=t.CRH())&&(h.nzMenuDirective=q.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(x,h){2&x&&(t.Udp("flex",h.flexSetting)("max-width",h.widthSetting)("min-width",h.widthSetting)("width",h.widthSetting),t.ekj("ant-layout-sider-zero-width",h.nzCollapsed&&0===h.nzCollapsedWidth)("ant-layout-sider-light","light"===h.nzTheme)("ant-layout-sider-dark","dark"===h.nzTheme)("ant-layout-sider-collapsed",h.nzCollapsed)("ant-layout-sider-has-trigger",h.nzCollapsible&&null!==h.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[t.TTD],ngContentSelectors:it,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(x,h){1&x&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,Q,1,8,"div",1)),2&x&&(t.xp6(2),t.Q6J("ngIf",h.nzCollapsible&&null!==h.nzTrigger))},dependencies:[N.O5,V],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,r.yF)()],O.prototype,"nzReverseArrow",void 0),(0,d.gn)([(0,r.yF)()],O.prototype,"nzCollapsible",void 0),(0,d.gn)([(0,r.yF)()],O.prototype,"nzCollapsed",void 0),O})(),G=(()=>{var v;class O{constructor(x){this.directionality=x,this.dir="ltr",this.destroy$=new n.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,l.R)(this.destroy$)).subscribe(x=>{this.dir=x})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(v=O).\u0275fac=function(x){return new(x||v)(t.Y36(H.Is,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-layout"]],contentQueries:function(x,h,j){if(1&x&&t.Suo(j,st,4),2&x){let q;t.iGM(q=t.CRH())&&(h.listOfNzSiderComponent=q)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(x,h){2&x&&t.ekj("ant-layout-rtl","rtl"===h.dir)("ant-layout-has-sider",h.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:it,decls:1,vars:0,template:function(x,h){1&x&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),O})(),U=(()=>{var v;class O{}return(v=O).\u0275fac=function(x){return new(x||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[H.vT,N.ez,F.PV,e.xu,W.ud]}),O})()},16976:(gt,ot,o)=>{o.d(ot,{n_:()=>It,KC:()=>Yt,nk:()=>Jt,AA:()=>z,yw:()=>Mt,Vk:()=>Zt,yi:()=>kt,Pb:()=>Dt,IO:()=>yt,Ph:()=>C});var t=o(65879),n=o(96814),l=o(96928),d=o(8324),L=o(97582),r=o(27754),b=o(78645),W=o(74911),N=o(22096),F=o(63019),H=o(65592),e=o(65619),it=o(48180),lt=o(37398),tt=o(54829),_t=o(79360),pt=o(8251);function $(i,s){return s?p=>p.pipe($((_,I)=>(0,tt.Xf)(i(_,I)).pipe((0,lt.U)((ct,ut)=>s(_,ct,I,ut))))):(0,_t.e)((p,_)=>{let I=0,ct=null,ut=!1;p.subscribe(new pt.Q(_,Ct=>{ct||(ct=new pt.Q(_,void 0,()=>{ct=null,ut&&_.complete()}),(0,tt.Xf)(i(Ct,I++)).subscribe(ct))},()=>{ut=!0,!ct&&_.complete()}))})}var J=o(27921),Y=o(59773),Z=o(99087),M=o(60804),Q=o(49388),w=o(82669),nt=o(10095);const et=["*"];function V(i,s){if(1&i&&t._UZ(0,"nz-avatar",3),2&i){const p=t.oxw();t.Q6J("nzSrc",p.nzSrc)}}function st(i,s){1&i&&t.Hsn(0,0,["*ngIf","!nzSrc"])}function G(i,s){if(1&i&&t._UZ(0,"nz-list-item-meta-avatar",3),2&i){const p=t.oxw();t.Q6J("nzSrc",p.avatarStr)}}function U(i,s){if(1&i&&(t.TgZ(0,"nz-list-item-meta-avatar"),t.GkF(1,4),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",p.avatarTpl)}}function v(i,s){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const p=t.oxw(3);t.xp6(1),t.Oqu(p.nzTitle)}}function O(i,s){if(1&i&&(t.TgZ(0,"nz-list-item-meta-title"),t.YNc(1,v,2,1,"ng-container",6),t.qZA()),2&i){const p=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",p.nzTitle)}}function S(i,s){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const p=t.oxw(3);t.xp6(1),t.Oqu(p.nzDescription)}}function x(i,s){if(1&i&&(t.TgZ(0,"nz-list-item-meta-description"),t.YNc(1,S,2,1,"ng-container",6),t.qZA()),2&i){const p=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",p.nzDescription)}}function h(i,s){if(1&i&&(t.TgZ(0,"div",5),t.YNc(1,O,2,1,"nz-list-item-meta-title",1),t.YNc(2,x,2,1,"nz-list-item-meta-description",1),t.Hsn(3,1),t.Hsn(4,2),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("ngIf",p.nzTitle&&!p.titleComponent),t.xp6(1),t.Q6J("ngIf",p.nzDescription&&!p.descriptionComponent)}}const j=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],q=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function R(i,s){1&i&&t.Hsn(0)}const K=["nz-list-item-actions",""];function dt(i,s){}function X(i,s){1&i&&t._UZ(0,"em",3)}function at(i,s){if(1&i&&(t.TgZ(0,"li"),t.YNc(1,dt,0,0,"ng-template",1),t.YNc(2,X,1,0,"em",2),t.qZA()),2&i){const p=s.$implicit,_=s.last;t.xp6(1),t.Q6J("ngTemplateOutlet",p),t.xp6(1),t.Q6J("ngIf",!_)}}function E(i,s){}const m=function(i,s){return{$implicit:i,index:s}};function y(i,s){if(1&i&&(t.ynx(0),t.YNc(1,E,0,0,"ng-template",9),t.BQk()),2&i){const p=s.$implicit,_=s.index,I=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",I.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,m,p,_))}}function T(i,s){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,y,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("ngForOf",p.nzDataSource)}}function P(i,s){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const p=t.oxw(2);t.xp6(1),t.Oqu(p.nzHeader)}}function f(i,s){if(1&i&&(t.TgZ(0,"nz-list-header"),t.YNc(1,P,2,1,"ng-container",10),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",p.nzHeader)}}function A(i,s){1&i&&t._UZ(0,"div"),2&i&&t.Udp("min-height",53,"px")}function rt(i,s){}function mt(i,s){if(1&i&&(t.TgZ(0,"div",13),t.YNc(1,rt,0,0,"ng-template",9),t.qZA()),2&i){const p=s.$implicit,_=s.index,I=t.oxw(2);t.Q6J("nzSpan",I.nzGrid.span||null)("nzXs",I.nzGrid.xs||null)("nzSm",I.nzGrid.sm||null)("nzMd",I.nzGrid.md||null)("nzLg",I.nzGrid.lg||null)("nzXl",I.nzGrid.xl||null)("nzXXl",I.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",I.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,m,p,_))}}function vt(i,s){if(1&i&&(t.TgZ(0,"div",11),t.YNc(1,mt,2,12,"div",12),t.qZA()),2&i){const p=t.oxw();t.Q6J("nzGutter",p.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",p.nzDataSource)}}function Ot(i,s){if(1&i&&t._UZ(0,"nz-list-empty",14),2&i){const p=t.oxw();t.Q6J("nzNoResult",p.nzNoResult)}}function Pt(i,s){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const p=t.oxw(2);t.xp6(1),t.Oqu(p.nzFooter)}}function wt(i,s){if(1&i&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Pt,2,1,"ng-container",10),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",p.nzFooter)}}function Lt(i,s){}function Rt(i,s){}function Bt(i,s){if(1&i&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,Rt,0,0,"ng-template",6),t.qZA()),2&i){const p=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",p.nzPagination)}}const Ut=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Gt=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function jt(i,s){if(1&i&&t._UZ(0,"ul",6),2&i){const p=t.oxw(2);t.Q6J("nzActions",p.nzActions)}}function Xt(i,s){if(1&i&&(t.YNc(0,jt,1,1,"ul",5),t.Hsn(1)),2&i){const p=t.oxw();t.Q6J("ngIf",p.nzActions&&p.nzActions.length>0)}}function qt(i,s){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const p=t.oxw(3);t.xp6(1),t.Oqu(p.nzContent)}}function te(i,s){if(1&i&&(t.ynx(0),t.YNc(1,qt,2,1,"ng-container",8),t.BQk()),2&i){const p=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",p.nzContent)}}function ee(i,s){if(1&i&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,te,2,1,"ng-container",7)),2&i){const p=t.oxw();t.xp6(2),t.Q6J("ngIf",p.nzContent)}}function ne(i,s){1&i&&t.Hsn(0,3)}function ie(i,s){}function oe(i,s){}function se(i,s){}function ae(i,s){}function re(i,s){if(1&i&&(t.YNc(0,ie,0,0,"ng-template",9),t.YNc(1,oe,0,0,"ng-template",9),t.YNc(2,se,0,0,"ng-template",9),t.YNc(3,ae,0,0,"ng-template",9)),2&i){const p=t.oxw(),_=t.MAs(3),I=t.MAs(5),ct=t.MAs(1);t.Q6J("ngTemplateOutlet",_),t.xp6(1),t.Q6J("ngTemplateOutlet",p.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",I),t.xp6(1),t.Q6J("ngTemplateOutlet",ct)}}function le(i,s){}function ce(i,s){}function pe(i,s){}function de(i,s){if(1&i&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,pe,0,0,"ng-template",9),t.qZA()),2&i){const p=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",p.nzExtra)}}function ue(i,s){}function St(i,s){if(1&i&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,le,0,0,"ng-template",9),t.YNc(3,ce,0,0,"ng-template",9),t.qZA(),t.YNc(4,de,2,1,"nz-list-item-extra",7),t.YNc(5,ue,0,0,"ng-template",9),t.BQk()),2&i){const p=t.oxw(),_=t.MAs(3),I=t.MAs(1),ct=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",_),t.xp6(1),t.Q6J("ngTemplateOutlet",I),t.xp6(1),t.Q6J("ngIf",p.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",ct)}}const _e=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Ft=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let yt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(_,I){1&_&&(t.F$t(),t.TgZ(0,"h4",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),s})(),Dt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(_,I){1&_&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),s})(),Zt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:et,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(_,I){1&_&&(t.F$t(),t.TgZ(0,"div",0),t.YNc(1,V,1,1,"nz-avatar",1),t.YNc(2,st,1,0,"ng-content",2),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngIf",I.nzSrc),t.xp6(1),t.Q6J("ngIf",!I.nzSrc))},dependencies:[n.O5,l.Dz],encapsulation:2,changeDetection:0}),s})(),kt=(()=>{var i;class s{set nzAvatar(_){_ instanceof t.Rgc?(this.avatarStr="",this.avatarTpl=_):this.avatarStr=_}constructor(_){this.elementRef=_,this.avatarStr=""}}return(i=s).\u0275fac=function(_){return new(_||i)(t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(_,I,ct){if(1&_&&(t.Suo(ct,Dt,5),t.Suo(ct,yt,5)),2&_){let ut;t.iGM(ut=t.CRH())&&(I.descriptionComponent=ut.first),t.iGM(ut=t.CRH())&&(I.titleComponent=ut.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:q,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(_,I){1&_&&(t.F$t(j),t.YNc(0,G,1,1,"nz-list-item-meta-avatar",0),t.YNc(1,U,2,1,"nz-list-item-meta-avatar",1),t.Hsn(2),t.YNc(3,h,5,2,"div",2)),2&_&&(t.Q6J("ngIf",I.avatarStr),t.xp6(1),t.Q6J("ngIf",I.avatarTpl),t.xp6(2),t.Q6J("ngIf",I.nzTitle||I.nzDescription||I.descriptionComponent||I.titleComponent))},dependencies:[n.O5,n.tP,d.f,yt,Dt,Zt],encapsulation:2,changeDetection:0}),s})(),Mt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:et,decls:1,vars:0,template:function(_,I){1&_&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),s})(),Yt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item-action"]],viewQuery:function(_,I){if(1&_&&t.Gf(t.Rgc,5),2&_){let ct;t.iGM(ct=t.CRH())&&(I.templateRef=ct.first)}},exportAs:["nzListItemAction"],ngContentSelectors:et,decls:1,vars:0,template:function(_,I){1&_&&(t.F$t(),t.YNc(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),s})(),Jt=(()=>{var i;class s{constructor(_,I,ct){this.ngZone=_,this.nzActions=[],this.actions=[],this.inputActionChanges$=new b.x,this.contentChildrenChanges$=(0,W.P)(()=>this.nzListItemActions?(0,N.of)(null):this.ngZone.onStable.pipe((0,it.q)(1),this.enterZone(),$(()=>this.nzListItemActions.changes.pipe((0,J.O)(this.nzListItemActions))))),(0,F.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,Y.R)(ct)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(ut=>ut.templateRef),I.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}enterZone(){return _=>new H.y(I=>_.subscribe({next:ct=>this.ngZone.run(()=>I.next(ct))}))}}return(i=s).\u0275fac=function(_){return new(_||i)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(Z.kn))},i.\u0275cmp=t.Xpm({type:i,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(_,I,ct){if(1&_&&t.Suo(ct,Yt,4),2&_){let ut;t.iGM(ut=t.CRH())&&(I.nzListItemActions=ut)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t._Bn([Z.kn]),t.TTD],attrs:K,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(_,I){1&_&&t.YNc(0,at,3,2,"li",0),2&_&&t.Q6J("ngForOf",I.actions)},dependencies:[n.sg,n.O5,n.tP],encapsulation:2,changeDetection:0}),s})(),bt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(_,I){1&_&&t._UZ(0,"nz-embed-empty",0),2&_&&t.Q6J("nzComponentName","list")("specificContent",I.nzNoResult)},dependencies:[M.gB],encapsulation:2,changeDetection:0}),s})(),$t=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:et,decls:1,vars:0,template:function(_,I){1&_&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),s})(),Qt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:et,decls:1,vars:0,template:function(_,I){1&_&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),s})(),Et=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:et,decls:1,vars:0,template:function(_,I){1&_&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),s})(),Wt=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275dir=t.lG2({type:i,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),s})(),It=(()=>{var i;class s{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(_){this.directionality=_,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new e.X(this.nzItemLayout),this.destroy$=new b.x}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,Y.R)(this.destroy$)).subscribe(_=>{this.dir=_})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(_){_.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return(i=s).\u0275fac=function(_){return new(_||i)(t.Y36(Q.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(_,I,ct){if(1&_&&(t.Suo(ct,Qt,5),t.Suo(ct,Et,5),t.Suo(ct,Wt,5)),2&_){let ut;t.iGM(ut=t.CRH())&&(I.nzListFooterComponent=ut.first),t.iGM(ut=t.CRH())&&(I.nzListPaginationComponent=ut.first),t.iGM(ut=t.CRH())&&(I.nzListLoadMoreDirective=ut.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(_,I){2&_&&t.ekj("ant-list-rtl","rtl"===I.dir)("ant-list-vertical","vertical"===I.nzItemLayout)("ant-list-lg","large"===I.nzSize)("ant-list-sm","small"===I.nzSize)("ant-list-split",I.nzSplit)("ant-list-bordered",I.nzBordered)("ant-list-loading",I.nzLoading)("ant-list-something-after-last-item",I.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[t.TTD],ngContentSelectors:Gt,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(_,I){if(1&_&&(t.F$t(Ut),t.YNc(0,T,3,1,"ng-template",null,0,t.W1O),t.YNc(2,f,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,A,1,2,"div",3),t.YNc(7,vt,2,2,"div",4),t.YNc(8,Ot,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,wt,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Lt,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Bt,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&_){const ct=t.MAs(1);t.xp6(2),t.Q6J("ngIf",I.nzHeader),t.xp6(2),t.Q6J("nzSpinning",I.nzLoading),t.xp6(2),t.Q6J("ngIf",I.nzLoading&&I.nzDataSource&&0===I.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",I.nzGrid&&I.nzDataSource)("ngIfElse",ct),t.xp6(1),t.Q6J("ngIf",!I.nzLoading&&I.nzDataSource&&0===I.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",I.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",I.nzLoadMore),t.xp6(2),t.Q6J("ngIf",I.nzPagination)}},dependencies:[n.sg,n.O5,n.tP,w.W,nt.t3,nt.SK,d.f,$t,Qt,Et,bt],encapsulation:2,changeDetection:0}),(0,L.gn)([(0,r.yF)()],s.prototype,"nzBordered",void 0),(0,L.gn)([(0,r.yF)()],s.prototype,"nzLoading",void 0),(0,L.gn)([(0,r.yF)()],s.prototype,"nzSplit",void 0),s})(),z=(()=>{var i;class s{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor(_,I){this.parentComp=_,this.cdr=I,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(_=>{this.itemLayout=_,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return(i=s).\u0275fac=function(_){return new(_||i)(t.Y36(It),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(_,I,ct){if(1&_&&t.Suo(ct,Mt,5),2&_){let ut;t.iGM(ut=t.CRH())&&(I.listItemExtraDirective=ut.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(_,I){2&_&&t.ekj("ant-list-item-no-flex",I.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:Ft,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(_,I){if(1&_&&(t.F$t(_e),t.YNc(0,Xt,2,1,"ng-template",null,0,t.W1O),t.YNc(2,ee,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ne,1,0,"ng-template",null,2,t.W1O),t.YNc(6,re,4,4,"ng-template",null,3,t.W1O),t.YNc(8,St,6,4,"ng-container",4)),2&_){const ct=t.MAs(7);t.xp6(8),t.Q6J("ngIf",I.isVerticalAndExtra)("ngIfElse",ct)}},dependencies:[n.O5,n.tP,d.f,Jt,Mt],encapsulation:2,changeDetection:0}),(0,L.gn)([(0,r.yF)()],s.prototype,"nzNoFlex",void 0),s})(),C=(()=>{var i;class s{}return(i=s).\u0275fac=function(_){return new(_||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[Q.vT,n.ez,w.j,nt.Jb,l.Rt,d.T,M.Xo]}),s})()},22114:(gt,ot,o)=>{o.d(ot,{KW:()=>st,wY:()=>et});var t=o(49388),n=o(96814),l=o(65879),d=o(60095),L=o(8324),r=o(64345),b=o(62595),W=o(97582),N=o(78645),F=o(59773),H=o(64194),e=o(40874),it=o(27754);const lt=["itemLabels"],tt=function(){return{"ant-segmented-thumb":!0,"ant-segmented-thumb-motion":!0}};function _t(G,U){if(1&G){const v=l.EpF();l.TgZ(0,"div",3),l.NdJ("@thumbMotion.done",function(S){l.CHM(v);const x=l.oxw();return l.KtG(x.handleThumbAnimationDone(S))}),l.qZA()}if(2&G){const v=l.oxw();l.Q6J("ngClass",l.DdM(2,tt))("@thumbMotion",v.animationState)}}function pt(G,U){if(1&G&&(l.ynx(0),l._uU(1),l.BQk()),2&G){const v=l.oxw(2).$implicit;l.xp6(1),l.hij(" ",v.label," ")}}const $=function(G,U){return{$implicit:G,index:U}};function J(G,U){if(1&G&&(l.ynx(0),l.TgZ(1,"span",9),l._UZ(2,"span",10),l.qZA(),l.TgZ(3,"span"),l.YNc(4,pt,2,1,"ng-container",11),l.qZA(),l.BQk()),2&G){const v=l.oxw(),O=v.$implicit,S=v.index,x=l.oxw();l.xp6(2),l.Q6J("nzType",O.icon),l.xp6(2),l.Q6J("nzStringTemplateOutlet",O.useTemplate&&x.nzLabelTemplate)("nzStringTemplateOutletContext",l.WLB(3,$,O,S))}}function Y(G,U){if(1&G&&(l.ynx(0),l._uU(1),l.BQk()),2&G){const v=l.oxw(2).$implicit;l.xp6(1),l.hij(" ",v.label," ")}}function Z(G,U){if(1&G&&l.YNc(0,Y,2,1,"ng-container",11),2&G){const v=l.oxw(),O=v.$implicit,S=v.index,x=l.oxw();l.Q6J("nzStringTemplateOutlet",O.useTemplate&&x.nzLabelTemplate)("nzStringTemplateOutletContext",l.WLB(2,$,O,S))}}const M=function(G,U){return{"ant-segmented-item":!0,"ant-segmented-item-selected":G,"ant-segmented-item-disabled":U}};function Q(G,U){if(1&G){const v=l.EpF();l.TgZ(0,"label",3,4),l._UZ(2,"input",5),l.TgZ(3,"div",6),l.NdJ("click",function(){const S=l.CHM(v),x=S.$implicit,h=S.index,j=l.oxw();return l.KtG(!x.disabled&&j.handleOptionClick(h))}),l.YNc(4,J,5,6,"ng-container",7),l.YNc(5,Z,1,5,"ng-template",null,8,l.W1O),l.qZA()()}if(2&G){const v=U.$implicit,O=U.index,S=l.MAs(6),x=l.oxw();l.Q6J("ngClass",l.WLB(4,M,O===x.selectedIndex,!!x.nzDisabled||v.disabled)),l.xp6(2),l.Q6J("checked",O===x.selectedIndex),l.xp6(2),l.Q6J("ngIf",v.icon)("ngIfElse",S)}}let et=(()=>{var G;class U{constructor(O,S,x){this.nzConfigService=O,this.cdr=S,this.directionality=x,this._nzModuleName="segmented",this.nzBlock=!1,this.nzDisabled=!1,this.nzOptions=[],this.nzSize="default",this.nzLabelTemplate=null,this.nzValueChange=new l.vpe,this.dir="ltr",this.selectedIndex=0,this.transitionedToIndex=-1,this.animationState=null,this.normalizedOptions=[],this.destroy$=new N.x,this.onChange=()=>{},this.onTouched=()=>{},this.directionality.change?.pipe((0,F.R)(this.destroy$)).subscribe(h=>{this.dir=h,this.cdr.detectChanges()})}ngOnChanges(O){const{nzOptions:S}=O;S&&(this.normalizedOptions=function w(G){return G.map(U=>"string"==typeof U||"number"==typeof U?{label:`${U}`,value:U}:U)}(S.currentValue))}handleOptionClick(O){this.nzDisabled||(this.changeSelectedIndex(O),this.onChange(O),this.nzValueChange.emit(O))}handleThumbAnimationDone(O){"from"===O.fromState&&(this.selectedIndex=this.transitionedToIndex,this.transitionedToIndex=-1,this.animationState=null,this.cdr.detectChanges())}writeValue(O){"number"==typeof O&&O>-1&&(this.changeSelectedIndex(O),this.cdr.markForCheck())}registerOnChange(O){this.onChange=O}registerOnTouched(O){this.onTouched=O}changeSelectedIndex(O){!this.listOfOptions||-1===this.selectedIndex||this.selectedIndex===O||(this.animationState={value:"from",params:V(this.listOfOptions.get(this.selectedIndex).nativeElement)},this.selectedIndex=-1,this.cdr.detectChanges(),this.animationState={value:"to",params:V(this.listOfOptions.get(O).nativeElement)},this.transitionedToIndex=O,this.cdr.detectChanges())}}return(G=U).\u0275fac=function(O){return new(O||G)(l.Y36(e.jY),l.Y36(l.sBO),l.Y36(t.Is,8))},G.\u0275cmp=l.Xpm({type:G,selectors:[["nz-segmented"]],viewQuery:function(O,S){if(1&O&&l.Gf(lt,5,l.SBq),2&O){let x;l.iGM(x=l.CRH())&&(S.listOfOptions=x)}},hostAttrs:[1,"ant-segmented"],hostVars:10,hostBindings:function(O,S){2&O&&l.ekj("ant-segmented-disabled",!!S.nzDisabled)("ant-segmented-rtl","rtl"===S.dir)("ant-segmented-lg","large"===S.nzSize)("ant-segmented-sm","small"===S.nzSize)("ant-segmented-block",!!S.nzBlock)},inputs:{nzBlock:"nzBlock",nzDisabled:"nzDisabled",nzOptions:"nzOptions",nzSize:"nzSize",nzLabelTemplate:"nzLabelTemplate"},outputs:{nzValueChange:"nzValueChange"},exportAs:["nzSegmented"],features:[l._Bn([{provide:d.JU,useExisting:(0,l.Gpc)(()=>G),multi:!0}]),l.TTD],decls:3,vars:2,consts:[[1,"ant-segmented-group"],[3,"ngClass",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["itemLabels",""],["type","radio",1,"ant-segmented-item-input",3,"checked"],[1,"ant-segmented-item-label",3,"click"],[4,"ngIf","ngIfElse"],["else_template",""],[1,"ant-segmented-item-icon"],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(O,S){1&O&&(l.TgZ(0,"div",0),l.YNc(1,_t,1,3,"div",1),l.YNc(2,Q,7,7,"label",2),l.qZA()),2&O&&(l.xp6(1),l.Q6J("ngIf",S.animationState),l.xp6(1),l.Q6J("ngForOf",S.normalizedOptions))},dependencies:[n.mk,n.sg,n.O5,b.Ls,L.f],encapsulation:2,data:{animation:[H.Tw]},changeDetection:0}),(0,W.gn)([(0,it.yF)()],U.prototype,"nzBlock",void 0),(0,W.gn)([(0,it.yF)()],U.prototype,"nzDisabled",void 0),(0,W.gn)([(0,e.oS)()],U.prototype,"nzSize",void 0),U})();function V(G){return{transform:G.offsetLeft,width:G.clientWidth}}let st=(()=>{var G;class U{}return(G=U).\u0275fac=function(O){return new(O||G)},G.\u0275mod=l.oAB({type:G}),G.\u0275inj=l.cJS({imports:[t.vT,n.ez,d.u5,r.YI,b.PV,L.T]}),U})()},9691:(gt,ot,o)=>{o.d(ot,{Ip:()=>kt,LV:()=>It,Vq:()=>Vt});var t=o(65879),n=o(78645),l=o(92438),d=o(65619),L=o(22096),r=o(52572),b=o(63019),W=o(70532),N=o(96814),F=o(60804),H=o(59773),e=o(27921),it=o(93997),lt=o(42460),tt=o(37398),_t=o(94664),pt=o(99087),$=o(62595),J=o(70855),Y=o(8324),Z=o(97582),M=o(27754),Q=o(36028),w=o(69594),nt=o(60095),et=o(64194),V=o(40874),st=o(85448),G=o(56879),U=o(4300),v=o(331),O=o(62831),S=o(49388),x=o(50883),h=o(64345);const j=["*"];function q(z,k){}function R(z,k){if(1&z&&t.YNc(0,q,0,0,"ng-template",4),2&z){const C=t.oxw();t.Q6J("ngTemplateOutlet",C.template)}}function K(z,k){if(1&z&&t._uU(0),2&z){const C=t.oxw();t.Oqu(C.label)}}function dt(z,k){1&z&&t._UZ(0,"span",7)}function X(z,k){if(1&z&&(t.TgZ(0,"div",5),t.YNc(1,dt,1,0,"span",6),t.qZA()),2&z){const C=t.oxw();t.xp6(1),t.Q6J("ngIf",!C.icon)("ngIfElse",C.icon)}}function at(z,k){if(1&z&&(t.ynx(0),t._uU(1),t.BQk()),2&z){const C=t.oxw();t.xp6(1),t.Oqu(C.nzLabel)}}function E(z,k){if(1&z&&(t.TgZ(0,"div",4),t._UZ(1,"nz-embed-empty",5),t.qZA()),2&z){const C=t.oxw();t.xp6(1),t.Q6J("specificContent",C.notFoundContent)}}function m(z,k){if(1&z&&t._UZ(0,"nz-option-item-group",9),2&z){const C=t.oxw().$implicit;t.Q6J("nzLabel",C.groupLabel)}}function y(z,k){if(1&z){const C=t.EpF();t.TgZ(0,"nz-option-item",10),t.NdJ("itemHover",function(s){t.CHM(C);const p=t.oxw(2);return t.KtG(p.onItemHover(s))})("itemClick",function(s){t.CHM(C);const p=t.oxw(2);return t.KtG(p.onItemClick(s))}),t.qZA()}if(2&z){const C=t.oxw().$implicit,i=t.oxw();t.Q6J("icon",i.menuItemSelectedIcon)("customContent",C.nzCustomContent)("template",C.template)("grouped",!!C.groupLabel)("disabled",C.nzDisabled)("showState","tags"===i.mode||"multiple"===i.mode)("label",C.nzLabel)("compareWith",i.compareWith)("activatedValue",i.activatedValue)("listOfSelectedValue",i.listOfSelectedValue)("value",C.nzValue)}}function T(z,k){1&z&&(t.ynx(0,6),t.YNc(1,m,1,1,"nz-option-item-group",7),t.YNc(2,y,1,11,"nz-option-item",8),t.BQk()),2&z&&(t.Q6J("ngSwitch",k.$implicit.type),t.xp6(1),t.Q6J("ngSwitchCase","group"),t.xp6(1),t.Q6J("ngSwitchCase","item"))}function P(z,k){}function f(z,k){1&z&&t.Hsn(0)}const A=["inputElement"],rt=["mirrorElement"];function mt(z,k){1&z&&t._UZ(0,"span",3,4)}function vt(z,k){if(1&z&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&z){const C=t.oxw(2);t.xp6(1),t.Oqu(C.label)}}function Ot(z,k){if(1&z&&t._uU(0),2&z){const C=t.oxw(2);t.Oqu(C.label)}}function Pt(z,k){if(1&z&&(t.ynx(0),t.YNc(1,vt,2,1,"div",2),t.YNc(2,Ot,1,1,"ng-template",null,3,t.W1O),t.BQk()),2&z){const C=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.deletable)("ngIfElse",C)}}function wt(z,k){1&z&&t._UZ(0,"span",7)}function Lt(z,k){if(1&z){const C=t.EpF();t.TgZ(0,"span",5),t.NdJ("click",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.onDelete(s))}),t.YNc(1,wt,1,0,"span",6),t.qZA()}if(2&z){const C=t.oxw();t.xp6(1),t.Q6J("ngIf",!C.removeIcon)("ngIfElse",C.removeIcon)}}const Rt=function(z){return{$implicit:z}};function Bt(z,k){if(1&z&&(t.ynx(0),t._uU(1),t.BQk()),2&z){const C=t.oxw();t.xp6(1),t.hij(" ",C.placeholder," ")}}function Ut(z,k){if(1&z&&t._UZ(0,"nz-select-item",6),2&z){const C=t.oxw(2);t.Q6J("deletable",!1)("disabled",!1)("removeIcon",C.removeIcon)("label",C.listOfTopItem[0].nzLabel)("contentTemplateOutlet",C.customTemplate)("contentTemplateOutletContext",C.listOfTopItem[0])}}function Gt(z,k){if(1&z){const C=t.EpF();t.ynx(0),t.TgZ(1,"nz-select-search",4),t.NdJ("isComposingChange",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.isComposingChange(s))})("valueChange",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.onInputValueChange(s))}),t.qZA(),t.YNc(2,Ut,1,6,"nz-select-item",5),t.BQk()}if(2&z){const C=t.oxw();t.xp6(1),t.Q6J("nzId",C.nzId)("disabled",C.disabled)("value",C.inputValue)("showInput",C.showSearch)("mirrorSync",!1)("autofocus",C.autofocus)("focusTrigger",C.open),t.xp6(1),t.Q6J("ngIf",C.isShowSingleLabel)}}function jt(z,k){if(1&z){const C=t.EpF();t.TgZ(0,"nz-select-item",9),t.NdJ("delete",function(){const p=t.CHM(C).$implicit,_=t.oxw(2);return t.KtG(_.onDeleteItem(p.contentTemplateOutletContext))}),t.qZA()}if(2&z){const C=k.$implicit,i=t.oxw(2);t.Q6J("removeIcon",i.removeIcon)("label",C.nzLabel)("disabled",C.nzDisabled||i.disabled)("contentTemplateOutlet",C.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",C.contentTemplateOutletContext)}}function Xt(z,k){if(1&z){const C=t.EpF();t.ynx(0),t.YNc(1,jt,1,6,"nz-select-item",7),t.TgZ(2,"nz-select-search",8),t.NdJ("isComposingChange",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.isComposingChange(s))})("valueChange",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.onInputValueChange(s))}),t.qZA(),t.BQk()}if(2&z){const C=t.oxw();t.xp6(1),t.Q6J("ngForOf",C.listOfSlicedItem)("ngForTrackBy",C.trackValue),t.xp6(1),t.Q6J("nzId",C.nzId)("disabled",C.disabled)("value",C.inputValue)("autofocus",C.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",C.open)}}function qt(z,k){if(1&z&&t._UZ(0,"nz-select-placeholder",10),2&z){const C=t.oxw();t.Q6J("placeholder",C.placeHolder)}}function te(z,k){1&z&&t._UZ(0,"span",1)}function ee(z,k){1&z&&t._UZ(0,"span",3)}function ne(z,k){1&z&&t._UZ(0,"span",8)}function ie(z,k){1&z&&t._UZ(0,"span",9)}function oe(z,k){if(1&z&&(t.ynx(0),t.YNc(1,ne,1,0,"span",6),t.YNc(2,ie,1,0,"span",7),t.BQk()),2&z){const C=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!C.search),t.xp6(1),t.Q6J("ngIf",C.search)}}function se(z,k){if(1&z&&t._UZ(0,"span",11),2&z){const C=t.oxw().$implicit;t.Q6J("nzType",C)}}function ae(z,k){if(1&z&&(t.ynx(0),t.YNc(1,se,1,1,"span",10),t.BQk()),2&z){const C=k.$implicit;t.xp6(1),t.Q6J("ngIf",C)}}function re(z,k){if(1&z&&t.YNc(0,ae,2,1,"ng-container",2),2&z){const C=t.oxw(2);t.Q6J("nzStringTemplateOutlet",C.suffixIcon)}}function le(z,k){if(1&z&&(t.YNc(0,oe,3,2,"ng-container",4),t.YNc(1,re,1,1,"ng-template",null,5,t.W1O)),2&z){const C=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.showArrow&&!i.suffixIcon)("ngIfElse",C)}}function ce(z,k){if(1&z&&(t.ynx(0),t._uU(1),t.BQk()),2&z){const C=t.oxw();t.xp6(1),t.Oqu(C.feedbackIcon)}}function pe(z,k){if(1&z&&t._UZ(0,"nz-form-item-feedback-icon",8),2&z){const C=t.oxw(3);t.Q6J("status",C.status)}}function de(z,k){if(1&z&&t.YNc(0,pe,1,1,"nz-form-item-feedback-icon",7),2&z){const C=t.oxw(2);t.Q6J("ngIf",C.hasFeedback&&!!C.status)}}function ue(z,k){if(1&z&&(t.TgZ(0,"nz-select-arrow",5),t.YNc(1,de,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&z){const C=t.MAs(2),i=t.oxw();t.Q6J("showArrow",i.nzShowArrow)("loading",i.nzLoading)("search",i.nzOpen&&i.nzShowSearch)("suffixIcon",i.nzSuffixIcon)("feedbackIcon",C)}}function St(z,k){if(1&z){const C=t.EpF();t.TgZ(0,"nz-select-clear",9),t.NdJ("clear",function(){t.CHM(C);const s=t.oxw();return t.KtG(s.onClearSelection())}),t.qZA()}if(2&z){const C=t.oxw();t.Q6J("clearIcon",C.nzClearIcon)}}function _e(z,k){if(1&z){const C=t.EpF();t.TgZ(0,"nz-option-container",10),t.NdJ("keydown",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.onKeyDown(s))})("itemClick",function(s){t.CHM(C);const p=t.oxw();return t.KtG(p.onItemClick(s))})("scrollToBottom",function(){t.CHM(C);const s=t.oxw();return t.KtG(s.nzScrollToBottom.emit())}),t.qZA()}if(2&z){const C=t.oxw();t.ekj("ant-select-dropdown-placement-bottomLeft","bottomLeft"===C.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===C.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===C.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===C.dropDownPosition),t.Q6J("ngStyle",C.nzDropdownStyle)("itemSize",C.nzOptionHeightPx)("maxItemLength",C.nzOptionOverflowSize)("matchWidth",C.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==C.noAnimation||!C.noAnimation.nzNoAnimation))("nzNoAnimation",null==C.noAnimation?null:C.noAnimation.nzNoAnimation)("listOfContainerItem",C.listOfContainerItem)("menuItemSelectedIcon",C.nzMenuItemSelectedIcon)("notFoundContent",C.nzNotFoundContent)("activatedValue",C.activatedValue)("listOfSelectedValue",C.listOfValue)("dropdownRender",C.nzDropdownRender)("compareWith",C.compareWith)("mode",C.nzMode)}}let Ft=(()=>{var z;class k{constructor(){this.nzLabel=null,this.changes=new n.x}ngOnChanges(){this.changes.next()}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[t.TTD],ngContentSelectors:j,decls:1,vars:0,template:function(i,s){1&i&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),k})(),yt=(()=>{var z;class k{constructor(i,s,p){this.elementRef=i,this.ngZone=s,this.destroy$=p,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new t.vpe,this.itemHover=new t.vpe}ngOnChanges(i){const{value:s,activatedValue:p,listOfSelectedValue:_}=i;(s||_)&&(this.selected=this.listOfSelectedValue.some(I=>this.compareWith(I,this.value))),(s||p)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,l.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}}return(z=k).\u0275fac=function(i){return new(i||z)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pt.kn))},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(i,s){2&i&&(t.uIk("title",s.label),t.ekj("ant-select-item-option-grouped",s.grouped)("ant-select-item-option-selected",s.selected&&!s.disabled)("ant-select-item-option-disabled",s.disabled)("ant-select-item-option-active",s.activated&&!s.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[t._Bn([pt.kn]),t.TTD],decls:5,vars:3,consts:[[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["noCustomContent",""],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(i,s){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,R,1,1,"ng-template",1),t.YNc(2,K,1,1,"ng-template",null,2,t.W1O),t.qZA(),t.YNc(4,X,2,2,"div",3)),2&i){const p=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.customContent)("ngIfElse",p),t.xp6(3),t.Q6J("ngIf",s.showState&&s.selected)}},dependencies:[N.O5,N.tP,$.Ls,J.w],encapsulation:2,changeDetection:0}),k})(),Dt=(()=>{var z;class k{constructor(){this.nzLabel=null}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,s){1&i&&t.YNc(0,at,2,1,"ng-container",0),2&i&&t.Q6J("nzStringTemplateOutlet",s.nzLabel)},dependencies:[Y.f],encapsulation:2,changeDetection:0}),k})(),Zt=(()=>{var z;class k{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new t.vpe,this.scrollToBottom=new t.vpe,this.scrolledIndex=0}onItemClick(i){this.itemClick.emit(i)}onItemHover(i){this.activatedValue=i}trackValue(i,s){return s.key}onScrolledIndexChange(i){this.scrolledIndex=i,i===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const i=this.listOfContainerItem.findIndex(s=>this.compareWith(s.key,this.activatedValue));(i<this.scrolledIndex||i>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(i||0)}ngOnChanges(i){const{listOfContainerItem:s,activatedValue:p}=i;(s||p)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-option-container"]],viewQuery:function(i,s){if(1&i&&t.Gf(W.N7,7),2&i){let p;t.iGM(p=t.CRH())&&(s.cdkVirtualScrollViewport=p.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[t.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(i,s){1&i&&(t.TgZ(0,"div"),t.YNc(1,E,2,1,"div",0),t.TgZ(2,"cdk-virtual-scroll-viewport",1),t.NdJ("scrolledIndexChange",function(_){return s.onScrolledIndexChange(_)}),t.YNc(3,T,3,3,"ng-template",2),t.qZA(),t.YNc(4,P,0,0,"ng-template",3),t.qZA()),2&i&&(t.xp6(1),t.Q6J("ngIf",0===s.listOfContainerItem.length),t.xp6(1),t.Udp("height",s.listOfContainerItem.length*s.itemSize,"px")("max-height",s.itemSize*s.maxItemLength,"px"),t.ekj("full-width",!s.matchWidth),t.Q6J("itemSize",s.itemSize)("maxBufferPx",s.itemSize*s.maxItemLength)("minBufferPx",s.itemSize*s.maxItemLength),t.xp6(1),t.Q6J("cdkVirtualForOf",s.listOfContainerItem)("cdkVirtualForTrackBy",s.trackValue)("cdkVirtualForTemplateCacheSize",0),t.xp6(1),t.Q6J("ngTemplateOutlet",s.dropdownRender))},dependencies:[N.O5,N.tP,N.RF,N.n9,W.xd,W.x0,W.N7,F.gB,yt,Dt],encapsulation:2,changeDetection:0}),k})(),kt=(()=>{var z;class k{constructor(i,s){this.nzOptionGroupComponent=i,this.destroy$=s,this.changes=new n.x,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,e.O)(!0),(0,H.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return(z=k).\u0275fac=function(i){return new(i||z)(t.Y36(Ft,8),t.Y36(pt.kn))},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-option"]],viewQuery:function(i,s){if(1&i&&t.Gf(t.Rgc,7),2&i){let p;t.iGM(p=t.CRH())&&(s.template=p.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[t._Bn([pt.kn]),t.TTD],ngContentSelectors:j,decls:1,vars:0,template:function(i,s){1&i&&(t.F$t(),t.YNc(0,f,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzDisabled",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzHide",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzCustomContent",void 0),k})(),Mt=(()=>{var z;class k{setCompositionState(i){this.isComposingChange.next(i)}onValueChange(i){this.value=i,this.valueChange.next(i),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const i=this.mirrorElement.nativeElement,s=this.elementRef.nativeElement,p=this.inputElement.nativeElement;this.renderer.removeStyle(s,"width"),this.renderer.setProperty(i,"textContent",`${p.value}\xa0`),this.renderer.setStyle(s,"width",`${i.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(i,s,p){this.elementRef=i,this.renderer=s,this.focusMonitor=p,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.vpe,this.isComposingChange=new t.vpe}ngOnChanges(i){const s=this.inputElement.nativeElement,{focusTrigger:p,showInput:_}=i;_&&(this.showInput?this.renderer.removeAttribute(s,"readonly"):this.renderer.setAttribute(s,"readonly","readonly")),p&&!0===p.currentValue&&!1===p.previousValue&&s.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return(z=k).\u0275fac=function(i){return new(i||z)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(U.tE))},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(i,s){if(1&i&&(t.Gf(A,7),t.Gf(rt,5)),2&i){let p;t.iGM(p=t.CRH())&&(s.inputElement=p.first),t.iGM(p=t.CRH())&&(s.mirrorElement=p.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[t._Bn([{provide:nt.ve,useValue:!1}]),t.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(i,s){1&i&&(t.TgZ(0,"input",0,1),t.NdJ("ngModelChange",function(_){return s.onValueChange(_)})("compositionstart",function(){return s.setCompositionState(!0)})("compositionend",function(){return s.setCompositionState(!1)}),t.qZA(),t.YNc(2,mt,2,0,"span",2)),2&i&&(t.Udp("opacity",s.showInput?null:0),t.Q6J("ngModel",s.value)("disabled",s.disabled),t.uIk("id",s.nzId)("autofocus",s.autofocus?"autofocus":null),t.xp6(2),t.Q6J("ngIf",s.mirrorSync))},dependencies:[N.O5,nt.Fj,nt.JJ,nt.On],encapsulation:2,changeDetection:0}),k})(),Yt=(()=>{var z;class k{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.vpe}onDelete(i){i.preventDefault(),i.stopPropagation(),this.disabled||this.delete.next(i)}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(i,s){2&i&&(t.uIk("title",s.label),t.ekj("ant-select-selection-item-disabled",s.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(i,s){1&i&&(t.YNc(0,Pt,4,2,"ng-container",0),t.YNc(1,Lt,2,2,"span",1)),2&i&&(t.Q6J("nzStringTemplateOutlet",s.contentTemplateOutlet)("nzStringTemplateOutletContext",t.VKq(3,Rt,s.contentTemplateOutletContext)),t.xp6(1),t.Q6J("ngIf",s.deletable&&!s.disabled))},dependencies:[N.O5,$.Ls,Y.f,J.w],encapsulation:2,changeDetection:0}),k})(),Jt=(()=>{var z;class k{constructor(){this.placeholder=null}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,s){1&i&&t.YNc(0,Bt,2,1,"ng-container",0),2&i&&t.Q6J("nzStringTemplateOutlet",s.placeholder)},dependencies:[Y.f],encapsulation:2,changeDetection:0}),k})(),bt=(()=>{var z;class k{updateTemplateVariable(){const i=0===this.listOfTopItem.length;this.isShowPlaceholder=i&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!i&&!this.isComposing&&!this.inputValue}isComposingChange(i){this.isComposing=i,this.updateTemplateVariable()}onInputValueChange(i){i!==this.inputValue&&(this.inputValue=i,this.updateTemplateVariable(),this.inputValueChange.emit(i),this.tokenSeparate(i,this.tokenSeparators))}tokenSeparate(i,s){if(i&&i.length&&s.length&&"default"!==this.mode&&((I,ct)=>{for(let ut=0;ut<ct.length;++ut)if(I.lastIndexOf(ct[ut])>0)return!0;return!1})(i,s)){const I=((I,ct)=>{const ut=new RegExp(`[${ct.join()}]`),Ct=I.split(ut).filter(ft=>ft);return[...new Set(Ct)]})(i,s);this.tokenize.next(I)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(i,s){return s.nzValue}onDeleteItem(i){!this.disabled&&!i.nzDisabled&&this.deleteItem.next(i)}constructor(i,s,p){this.elementRef=i,this.ngZone=s,this.noAnimation=p,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new t.vpe,this.inputValueChange=new t.vpe,this.deleteItem=new t.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new n.x}ngOnChanges(i){const{listOfTopItem:s,maxTagCount:p,customTemplate:_,maxTagPlaceholder:I}=i;if(s&&this.updateTemplateVariable(),s||p||_||I){const ct=this.listOfTopItem.slice(0,this.maxTagCount).map(ut=>({nzLabel:ut.nzLabel,nzValue:ut.nzValue,nzDisabled:ut.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:ut}));if(this.listOfTopItem.length>this.maxTagCount){const ut=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Ct=this.listOfTopItem.map(he=>he.nzValue),ft={nzLabel:ut,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Ct.slice(this.maxTagCount)};ct.push(ft)}this.listOfSlicedItem=ct}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,l.R)(this.elementRef.nativeElement,"click").pipe((0,H.R)(this.destroy$)).subscribe(i=>{i.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,l.R)(this.elementRef.nativeElement,"keydown").pipe((0,H.R)(this.destroy$)).subscribe(i=>{i.target instanceof HTMLInputElement&&i.keyCode===Q.ZH&&"default"!==this.mode&&!i.target.value&&this.listOfTopItem.length>0&&(i.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}}return(z=k).\u0275fac=function(i){return new(i||z)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(v.P,9))},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-top-control"]],viewQuery:function(i,s){if(1&i&&t.Gf(Mt,5),2&i){let p;t.iGM(p=t.CRH())&&(s.nzSelectSearchComponent=p.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[t.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(i,s){1&i&&(t.ynx(0,0),t.YNc(1,Gt,3,8,"ng-container",1),t.YNc(2,Xt,3,9,"ng-container",2),t.BQk(),t.YNc(3,qt,1,1,"nz-select-placeholder",3)),2&i&&(t.Q6J("ngSwitch",s.mode),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(2),t.Q6J("ngIf",s.isShowPlaceholder))},dependencies:[N.sg,N.O5,N.RF,N.n9,N.ED,J.w,Mt,Yt,Jt],encapsulation:2,changeDetection:0}),k})(),$t=(()=>{var z;class k{constructor(){this.clearIcon=null,this.clear=new t.vpe}onClick(i){i.preventDefault(),i.stopPropagation(),this.clear.emit(i)}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(i,s){1&i&&t.NdJ("click",function(_){return s.onClick(_)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(i,s){1&i&&t.YNc(0,te,1,0,"span",0),2&i&&t.Q6J("ngIf",!s.clearIcon)("ngIfElse",s.clearIcon)},dependencies:[N.O5,$.Ls,J.w],encapsulation:2,changeDetection:0}),k})(),Qt=(()=>{var z;class k{constructor(){this.loading=!1,this.search=!1,this.showArrow=!1,this.suffixIcon=null,this.feedbackIcon=null}}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(i,s){2&i&&t.ekj("ant-select-arrow-loading",s.loading)},inputs:{loading:"loading",search:"search",showArrow:"showArrow",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon"},decls:4,vars:3,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(i,s){if(1&i&&(t.YNc(0,ee,1,0,"span",0),t.YNc(1,le,3,2,"ng-template",null,1,t.W1O),t.YNc(3,ce,2,1,"ng-container",2)),2&i){const p=t.MAs(2);t.Q6J("ngIf",s.loading)("ngIfElse",p),t.xp6(3),t.Q6J("nzStringTemplateOutlet",s.feedbackIcon)}},dependencies:[N.O5,$.Ls,Y.f,J.w],encapsulation:2,changeDetection:0}),k})();const Et=(z,k)=>!(!k||!k.nzLabel)&&k.nzLabel.toString().toLowerCase().indexOf(z.toLowerCase())>-1;let Vt=(()=>{var z;class k{set nzShowArrow(i){this._nzShowArrow=i}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(i){return{nzValue:i,nzLabel:i,type:"item"}}onItemClick(i){if(this.activatedValue=i,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],i))&&this.updateListOfValue([i]),this.setOpenState(!1);else{const s=this.listOfValue.findIndex(p=>this.compareWith(p,i));if(-1!==s){const p=this.listOfValue.filter((_,I)=>I!==s);this.updateListOfValue(p)}else if(this.listOfValue.length<this.nzMaxMultipleCount){const p=[...this.listOfValue,i];this.updateListOfValue(p)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(i){const s=this.listOfValue.filter(p=>!this.compareWith(p,i.nzValue));this.updateListOfValue(s),this.clearInput()}updateListOfContainerItem(){let i=this.listOfTagAndTemplateItem.filter(_=>!_.nzHide).filter(_=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,_));if("tags"===this.nzMode&&this.searchValue){const _=this.listOfTagAndTemplateItem.find(I=>I.nzLabel===this.searchValue);if(_)this.activatedValue=_.nzValue;else{const I=this.generateTagItem(this.searchValue);i=[I,...i],this.activatedValue=I.nzValue}}const s=i.find(_=>_.nzLabel===this.searchValue)||i.find(_=>this.compareWith(_.nzValue,this.activatedValue))||i.find(_=>this.compareWith(_.nzValue,this.listOfValue[0]))||i[0];this.activatedValue=s&&s.nzValue||null;let p=[];this.isReactiveDriven?p=[...new Set(this.nzOptions.filter(_=>_.groupLabel).map(_=>_.groupLabel))]:this.listOfNzOptionGroupComponent&&(p=this.listOfNzOptionGroupComponent.map(_=>_.nzLabel)),p.forEach(_=>{const I=i.findIndex(ct=>_===ct.groupLabel);I>-1&&i.splice(I,0,{groupLabel:_,type:"group",key:_})}),this.listOfContainerItem=[...i],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(i){const p=((_,I)=>"default"===this.nzMode?_.length>0?_[0]:null:_)(i);this.value!==p&&(this.listOfValue=i,this.listOfValue$.next(i),this.value=p,this.onChange(this.value))}onTokenSeparate(i){const s=this.listOfTagAndTemplateItem.filter(p=>-1!==i.findIndex(_=>_===p.nzLabel)).map(p=>p.nzValue).filter(p=>-1===this.listOfValue.findIndex(_=>this.compareWith(_,p)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...s]);else if("tags"===this.nzMode){const p=i.filter(_=>-1===this.listOfTagAndTemplateItem.findIndex(I=>I.nzLabel===_));this.updateListOfValue([...this.listOfValue,...s,...p])}this.clearInput()}onKeyDown(i){if(this.nzDisabled)return;const s=this.listOfContainerItem.filter(_=>"item"===_.type).filter(_=>!_.nzDisabled),p=s.findIndex(_=>this.compareWith(_.nzValue,this.activatedValue));switch(i.keyCode){case Q.LH:i.preventDefault(),this.nzOpen&&s.length>0&&(this.activatedValue=s[p>0?p-1:s.length-1].nzValue);break;case Q.JH:i.preventDefault(),this.nzOpen&&s.length>0?this.activatedValue=s[p<s.length-1?p+1:0].nzValue:this.setOpenState(!0);break;case Q.K5:i.preventDefault(),this.nzOpen?(0,M.DX)(this.activatedValue)&&-1!==p&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case Q.L_:this.nzOpen||(this.setOpenState(!0),i.preventDefault());break;case Q.Mf:this.nzSelectOnTab?this.nzOpen&&(i.preventDefault(),(0,M.DX)(this.activatedValue)&&this.onItemClick(this.activatedValue)):this.setOpenState(!1);break;case Q.hY:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(i){this.nzOpen!==i&&(this.nzOpen=i,this.nzOpenChange.emit(i),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.clearInput()}onInputValueChange(i){this.searchValue=i,this.updateListOfContainerItem(),this.nzOnSearch.emit(i),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([])}onClickOutside(i){this.host.nativeElement.contains(i.target)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(i){const s=(0,st.d_)(i);this.dropDownPosition=s}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){const i=this.triggerWidth;(0,G.h)(this.requestId),this.requestId=(0,G.e)(()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,i!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,G.e)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(i,s,p,_,I,ct,ut,Ct,ft,he,ve,Ce){this.ngZone=i,this.destroy$=s,this.nzConfigService=p,this.cdr=_,this.host=I,this.renderer=ct,this.platform=ut,this.focusMonitor=Ct,this.directionality=ft,this.noAnimation=he,this.nzFormStatusService=ve,this.nzFormNoStatusService=Ce,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=Et,this.compareWith=(Te,Oe)=>Te===Oe,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.vpe,this.nzScrollToBottom=new t.vpe,this.nzOpenChange=new t.vpe,this.nzBlur=new t.vpe,this.nzFocus=new t.vpe,this.listOfValue$=new d.X([]),this.listOfTemplateItem$=new d.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(i){if(this.value!==i){this.value=i;const p=((_,I)=>null==_?[]:"default"===this.nzMode?[_]:_)(i);this.listOfValue=p,this.listOfValue$.next(p),this.cdr.markForCheck()}}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(i){const{nzOpen:s,nzDisabled:p,nzOptions:_,nzStatus:I,nzPlacement:ct}=i;if(s&&this.onOpenChange(),p&&this.nzDisabled&&this.setOpenState(!1),_){this.isReactiveDriven=!0;const Ct=(this.nzOptions||[]).map(ft=>({template:ft.label instanceof t.Rgc?ft.label:null,nzLabel:"string"==typeof ft.label||"number"==typeof ft.label?ft.label:null,nzValue:ft.value,nzDisabled:ft.disabled||!1,nzHide:ft.hide||!1,nzCustomContent:ft.label instanceof t.Rgc,groupLabel:ft.groupLabel||null,type:"item",key:ft.value}));this.listOfTemplateItem$.next(Ct)}if(I&&this.setStatusStyles(this.nzStatus,this.hasFeedback),ct){const{currentValue:ut}=ct;this.dropDownPosition=ut;const Ct=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=ut&&Ct.includes(ut)?[st.yW[ut]]:Ct.map(ft=>st.yW[ft])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,it.x)((i,s)=>i.status===s.status&&i.hasFeedback===s.hasFeedback),(0,lt.M)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,L.of)(!1)),(0,tt.U)(([{status:i,hasFeedback:s},p])=>({status:p?"":i,hasFeedback:s})),(0,H.R)(this.destroy$)).subscribe(({status:i,hasFeedback:s})=>{this.setStatusStyles(i,s)}),this.focusMonitor.monitor(this.host,!0).pipe((0,H.R)(this.destroy$)).subscribe(i=>{i?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,r.a)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,H.R)(this.destroy$)).subscribe(([i,s])=>{const p=i.filter(()=>"tags"===this.nzMode).filter(_=>-1===s.findIndex(I=>this.compareWith(I.nzValue,_))).map(_=>this.listOfTopItem.find(I=>this.compareWith(I.nzValue,_))||this.generateTagItem(_));this.listOfTagAndTemplateItem=[...s,...p],this.listOfTopItem=this.listOfValue.map(_=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(I=>this.compareWith(_,I.nzValue))).filter(_=>!!_),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,H.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,l.R)(this.host.nativeElement,"click").pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,H.R)(this.destroy$)).subscribe(i=>{i.keyCode===Q.hY&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,b.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,e.O)(!0),(0,_t.w)(()=>(0,b.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(i=>i.changes),...this.listOfNzOptionGroupComponent.map(i=>i.changes)).pipe((0,e.O)(!0))),(0,H.R)(this.destroy$)).subscribe(()=>{const i=this.listOfNzOptionComponent.toArray().map(s=>{const{template:p,nzLabel:_,nzValue:I,nzDisabled:ct,nzHide:ut,nzCustomContent:Ct,groupLabel:ft}=s;return{template:p,nzLabel:_,nzValue:I,nzDisabled:ct,nzHide:ut,nzCustomContent:Ct,groupLabel:ft,type:"item",key:I}});this.listOfTemplateItem$.next(i),this.cdr.markForCheck()})}ngOnDestroy(){(0,G.h)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(i,s){this.status=i,this.hasFeedback=s,this.cdr.markForCheck(),this.statusCls=(0,M.Zu)(this.prefixCls,i,s),Object.keys(this.statusCls).forEach(p=>{this.statusCls[p]?this.renderer.addClass(this.host.nativeElement,p):this.renderer.removeClass(this.host.nativeElement,p)})}}return(z=k).\u0275fac=function(i){return new(i||z)(t.Y36(t.R0b),t.Y36(pt.kn),t.Y36(V.jY),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(O.t4),t.Y36(U.tE),t.Y36(S.Is,8),t.Y36(v.P,9),t.Y36(x.kH,8),t.Y36(x.yW,8))},z.\u0275cmp=t.Xpm({type:z,selectors:[["nz-select"]],contentQueries:function(i,s,p){if(1&i&&(t.Suo(p,kt,5),t.Suo(p,Ft,5)),2&i){let _;t.iGM(_=t.CRH())&&(s.listOfNzOptionComponent=_),t.iGM(_=t.CRH())&&(s.listOfNzOptionGroupComponent=_)}},viewQuery:function(i,s){if(1&i&&(t.Gf(w.xu,7,t.SBq),t.Gf(w.pI,7),t.Gf(bt,7),t.Gf(Ft,7,t.SBq),t.Gf(bt,7,t.SBq)),2&i){let p;t.iGM(p=t.CRH())&&(s.originElement=p.first),t.iGM(p=t.CRH())&&(s.cdkConnectedOverlay=p.first),t.iGM(p=t.CRH())&&(s.nzSelectTopControlComponent=p.first),t.iGM(p=t.CRH())&&(s.nzOptionGroupComponentElement=p.first),t.iGM(p=t.CRH())&&(s.nzSelectTopControlComponentElement=p.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(i,s){2&i&&t.ekj("ant-select-in-form-item",!!s.nzFormStatusService)("ant-select-lg","large"===s.nzSize)("ant-select-sm","small"===s.nzSize)("ant-select-show-arrow",s.nzShowArrow)("ant-select-disabled",s.nzDisabled)("ant-select-show-search",(s.nzShowSearch||"default"!==s.nzMode)&&!s.nzDisabled)("ant-select-allow-clear",s.nzAllowClear)("ant-select-borderless",s.nzBorderless)("ant-select-open",s.nzOpen)("ant-select-focused",s.nzOpen||s.focused)("ant-select-single","default"===s.nzMode)("ant-select-multiple","default"!==s.nzMode)("ant-select-rtl","rtl"===s.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzSelectOnTab:"nzSelectOnTab",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[t._Bn([pt.kn,{provide:nt.JU,useExisting:(0,t.Gpc)(()=>z),multi:!0}]),t.TTD],decls:5,vars:25,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick","detach","positionChange"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon"],["feedbackIconTpl",""],[3,"status",4,"ngIf"],[3,"status"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(i,s){if(1&i&&(t.TgZ(0,"nz-select-top-control",0,1),t.NdJ("inputValueChange",function(_){return s.onInputValueChange(_)})("tokenize",function(_){return s.onTokenSeparate(_)})("deleteItem",function(_){return s.onItemDelete(_)})("keydown",function(_){return s.onKeyDown(_)}),t.qZA(),t.YNc(2,ue,3,5,"nz-select-arrow",2),t.YNc(3,St,1,1,"nz-select-clear",3),t.YNc(4,_e,1,23,"ng-template",4),t.NdJ("overlayOutsideClick",function(_){return s.onClickOutside(_)})("detach",function(){return s.setOpenState(!1)})("positionChange",function(_){return s.onPositionChange(_)})),2&i){const p=t.MAs(1);t.Q6J("nzId",s.nzId)("open",s.nzOpen)("disabled",s.nzDisabled)("mode",s.nzMode)("@.disabled",!(null==s.noAnimation||!s.noAnimation.nzNoAnimation))("nzNoAnimation",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("maxTagPlaceholder",s.nzMaxTagPlaceholder)("removeIcon",s.nzRemoveIcon)("placeHolder",s.nzPlaceHolder)("maxTagCount",s.nzMaxTagCount)("customTemplate",s.nzCustomTemplate)("tokenSeparators",s.nzTokenSeparators)("showSearch",s.nzShowSearch)("autofocus",s.nzAutoFocus)("listOfTopItem",s.listOfTopItem),t.xp6(2),t.Q6J("ngIf",s.nzShowArrow||s.hasFeedback&&!!s.status),t.xp6(1),t.Q6J("ngIf",s.nzAllowClear&&!s.nzDisabled&&s.listOfValue.length),t.xp6(1),t.Q6J("cdkConnectedOverlayHasBackdrop",s.nzBackdrop)("cdkConnectedOverlayMinWidth",s.nzDropdownMatchSelectWidth?null:s.triggerWidth)("cdkConnectedOverlayWidth",s.nzDropdownMatchSelectWidth?s.triggerWidth:null)("cdkConnectedOverlayOrigin",p)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",s.nzDropdownClassName)("cdkConnectedOverlayOpen",s.nzOpen)("cdkConnectedOverlayPositions",s.positions)}},dependencies:[N.O5,N.PC,w.pI,w.xu,st.hQ,v.P,J.w,x.w_,Zt,bt,$t,Qt],encapsulation:2,data:{animation:[et.mF]},changeDetection:0}),(0,Z.gn)([(0,V.oS)()],k.prototype,"nzSuffixIcon",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzAllowClear",void 0),(0,Z.gn)([(0,V.oS)(),(0,M.yF)()],k.prototype,"nzBorderless",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzShowSearch",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzLoading",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzAutoFocus",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzAutoClearSearchValue",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzServerSearch",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzDisabled",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzOpen",void 0),(0,Z.gn)([(0,M.yF)()],k.prototype,"nzSelectOnTab",void 0),(0,Z.gn)([(0,V.oS)(),(0,M.yF)()],k.prototype,"nzBackdrop",void 0),k})(),It=(()=>{var z;class k{}return(z=k).\u0275fac=function(i){return new(i||z)},z.\u0275mod=t.oAB({type:z}),z.\u0275inj=t.cJS({imports:[S.vT,N.ez,h.YI,nt.u5,O.ud,w.U8,$.PV,Y.T,F.Xo,st.e4,v.g,J.a,x.mJ,W.Cl,U.rt]}),k})()},24139:(gt,ot,o)=>{o.d(ot,{H0:()=>Q,Xw:()=>pt,ng:()=>M,yg:()=>Y});var t=o(65879),n=o(27754),l=o(96814),d=o(97582),L=o(49388);const b=["nzType","avatar"],W=["nzType","input"];function F(w,nt){if(1&w&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&w){const et=t.oxw(2);t.xp6(1),t.Q6J("nzSize",et.avatar.size||"default")("nzShape",et.avatar.shape||"circle")}}function H(w,nt){if(1&w&&t._UZ(0,"h3",7),2&w){const et=t.oxw(2);t.Udp("width",et.toCSSUnit(et.title.width))}}function e(w,nt){if(1&w&&t._UZ(0,"li"),2&w){const et=nt.index,V=t.oxw(3);t.Udp("width",V.toCSSUnit(V.widthList[et]))}}function it(w,nt){if(1&w&&(t.TgZ(0,"ul",8),t.YNc(1,e,1,2,"li",9),t.qZA()),2&w){const et=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",et.rowsList)}}function lt(w,nt){if(1&w&&(t.ynx(0),t.YNc(1,F,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,H,1,2,"h3",3),t.YNc(4,it,2,1,"ul",4),t.qZA(),t.BQk()),2&w){const et=t.oxw();t.xp6(1),t.Q6J("ngIf",!!et.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!et.nzTitle),t.xp6(1),t.Q6J("ngIf",!!et.nzParagraph)}}function tt(w,nt){1&w&&(t.ynx(0),t.Hsn(1),t.BQk())}const _t=["*"];let pt=(()=>{var w;class nt{constructor(){this.nzActive=!1,this.nzBlock=!1}}return(w=nt).\u0275fac=function(V){return new(V||w)},w.\u0275dir=t.lG2({type:w,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(V,st){2&V&&t.ekj("ant-skeleton-active",st.nzActive)("ant-skeleton-block",st.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,d.gn)([(0,n.yF)()],nt.prototype,"nzBlock",void 0),nt})(),J=(()=>{var w;class nt{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(V){if(V.nzSize&&"number"==typeof this.nzSize){const st=`${this.nzSize}px`;this.styleMap={width:st,height:st,"line-height":st}}else this.styleMap={}}}return(w=nt).\u0275fac=function(V){return new(V||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:b,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(V,st){1&V&&t._UZ(0,"span",0),2&V&&(t.ekj("ant-skeleton-avatar-square","square"===st.nzShape)("ant-skeleton-avatar-circle","circle"===st.nzShape)("ant-skeleton-avatar-lg","large"===st.nzSize)("ant-skeleton-avatar-sm","small"===st.nzSize),t.Q6J("ngStyle",st.styleMap))},dependencies:[l.PC],encapsulation:2,changeDetection:0}),nt})(),Y=(()=>{var w;class nt{constructor(){this.nzSize="default"}}return(w=nt).\u0275fac=function(V){return new(V||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["nz-skeleton-element","nzType","input"]],inputs:{nzSize:"nzSize"},attrs:W,decls:1,vars:4,consts:[[1,"ant-skeleton-input"]],template:function(V,st){1&V&&t._UZ(0,"span",0),2&V&&t.ekj("ant-skeleton-input-lg","large"===st.nzSize)("ant-skeleton-input-sm","small"===st.nzSize)},encapsulation:2,changeDetection:0}),nt})(),M=(()=>{var w;class nt{constructor(V){this.cdr=V,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(V=""){return(0,n.WX)(V)}getTitleProps(){const V=!!this.nzAvatar,st=!!this.nzParagraph;let G="";return!V&&st?G="38%":V&&st&&(G="50%"),{width:G,...this.getProps(this.nzTitle)}}getAvatarProps(){return{shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large",...this.getProps(this.nzAvatar)}}getParagraphProps(){const V=!!this.nzAvatar,st=!!this.nzTitle,G={};return(!V||!st)&&(G.width="61%"),G.rows=!V&&st?3:2,{...G,...this.getProps(this.nzParagraph)}}getProps(V){return V&&"object"==typeof V?V:{}}getWidthList(){const{width:V,rows:st}=this.paragraph;let G=[];return V&&Array.isArray(V)?G=V:V&&!Array.isArray(V)&&(G=[],G[st-1]=V),G}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(V){(V.nzTitle||V.nzAvatar||V.nzParagraph)&&this.updateProps()}}return(w=nt).\u0275fac=function(V){return new(V||w)(t.Y36(t.sBO))},w.\u0275cmp=t.Xpm({type:w,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(V,st){2&V&&t.ekj("ant-skeleton-with-avatar",!!st.nzAvatar)("ant-skeleton-active",st.nzActive)("ant-skeleton-round",!!st.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:_t,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(V,st){1&V&&(t.F$t(),t.YNc(0,lt,5,3,"ng-container",0),t.YNc(1,tt,2,0,"ng-container",0)),2&V&&(t.Q6J("ngIf",st.nzLoading),t.xp6(1),t.Q6J("ngIf",!st.nzLoading))},dependencies:[l.sg,l.O5,pt,J],encapsulation:2,changeDetection:0}),nt})(),Q=(()=>{var w;class nt{}return(w=nt).\u0275fac=function(V){return new(V||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[L.vT,l.ez]}),nt})()},92574:(gt,ot,o)=>{o.d(ot,{$1:()=>lt,NU:()=>pt,zf:()=>$});var t=o(49388),n=o(96814),l=o(65879),d=o(97582),L=o(78645),r=o(59773),b=o(40874),W=o(27754);function N(J,Y){}const F=function(J){return{$implicit:J}};function H(J,Y){if(1&J&&(l.TgZ(0,"span",4),l.YNc(1,N,0,0,"ng-template",5),l.qZA()),2&J){const Z=l.oxw(),M=Z.last,Q=Z.index,w=l.oxw();l.Udp("margin-bottom","vertical"===w.nzDirection?M?null:w.spaceSize:null,"px")("margin-right","horizontal"===w.nzDirection?M?null:w.spaceSize:null,"px"),l.xp6(1),l.Q6J("ngTemplateOutlet",w.nzSplit)("ngTemplateOutletContext",l.VKq(6,F,Q))}}function e(J,Y){if(1&J&&(l.TgZ(0,"div",1),l.GkF(1,2),l.qZA(),l.YNc(2,H,2,8,"span",3)),2&J){const Z=Y.$implicit,M=Y.last,Q=l.oxw();l.Udp("margin-bottom","vertical"===Q.nzDirection?M?null:Q.spaceSize:null,"px")("margin-right","horizontal"===Q.nzDirection?M?null:Q.spaceSize:null,"px"),l.xp6(1),l.Q6J("ngTemplateOutlet",Z),l.xp6(1),l.Q6J("ngIf",Q.nzSplit&&!M)}}const it=["*"];let lt=(()=>{var J;class Y{constructor(){}}return(J=Y).\u0275fac=function(M){return new(M||J)},J.\u0275dir=l.lG2({type:J,selectors:[["","nzSpaceItem",""]]}),Y})();const _t={small:8,middle:16,large:24};let pt=(()=>{var J;class Y{constructor(M,Q){this.nzConfigService=M,this.cdr=Q,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=_t.small,this.destroy$=new L.x}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?_t[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,r.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return(J=Y).\u0275fac=function(M){return new(M||J)(l.Y36(b.jY),l.Y36(l.sBO))},J.\u0275cmp=l.Xpm({type:J,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(M,Q,w){if(1&M&&l.Suo(w,lt,4,l.Rgc),2&M){let nt;l.iGM(nt=l.CRH())&&(Q.items=nt)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(M,Q){2&M&&(l.Udp("flex-wrap",Q.nzWrap?"wrap":null),l.ekj("ant-space-horizontal","horizontal"===Q.nzDirection)("ant-space-vertical","vertical"===Q.nzDirection)("ant-space-align-start","start"===Q.mergedAlign)("ant-space-align-end","end"===Q.mergedAlign)("ant-space-align-center","center"===Q.mergedAlign)("ant-space-align-baseline","baseline"===Q.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[l.TTD],ngContentSelectors:it,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(M,Q){1&M&&(l.F$t(),l.Hsn(0),l.YNc(1,e,3,6,"ng-template",0)),2&M&&(l.xp6(1),l.Q6J("ngForOf",Q.items))},dependencies:[n.sg,n.O5,n.tP],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,W.yF)()],Y.prototype,"nzWrap",void 0),(0,d.gn)([(0,b.oS)()],Y.prototype,"nzSize",void 0),Y})(),$=(()=>{var J;class Y{}return(J=Y).\u0275fac=function(M){return new(M||J)},J.\u0275mod=l.oAB({type:J}),J.\u0275inj=l.cJS({imports:[t.vT,n.ez]}),Y})()},55695:(gt,ot,o)=>{o.d(ot,{X:()=>lt,j:()=>it});var t=o(97582),n=o(65879),l=o(78645),d=o(59773),L=o(13324),r=o(27754),b=o(49388),W=o(96814),N=o(62595),F=o(60095);function H(tt,_t){if(1&tt){const pt=n.EpF();n.TgZ(0,"span",1),n.NdJ("click",function(J){n.CHM(pt);const Y=n.oxw();return n.KtG(Y.closeTag(J))}),n.qZA()}}const e=["*"];let it=(()=>{var tt;class _t{constructor($,J,Y,Z){this.cdr=$,this.renderer=J,this.elementRef=Y,this.directionality=Z,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new n.vpe,this.nzCheckedChange=new n.vpe,this.dir="ltr",this.destroy$=new l.x}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag($){this.nzOnClose.emit($),$.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const $=this.elementRef.nativeElement,J=new RegExp(`(ant-tag-(?:${[...L.uf,...L.Bh].join("|")}))`,"g"),Y=$.classList.toString(),Z=[];let M=J.exec(Y);for(;null!==M;)Z.push(M[1]),M=J.exec(Y);$.classList.remove(...Z)}setPresetColor(){const $=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,L.o2)(this.nzColor)||(0,L.M8)(this.nzColor)),this.isPresetColor&&$.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,d.R)(this.destroy$)).subscribe($=>{this.dir=$,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges($){const{nzColor:J}=$;J&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(tt=_t).\u0275fac=function($){return new($||tt)(n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(b.Is,8))},tt.\u0275cmp=n.Xpm({type:tt,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function($,J){1&$&&n.NdJ("click",function(){return J.updateCheckedStatus()}),2&$&&(n.Udp("background-color",J.isPresetColor?"":J.nzColor),n.ekj("ant-tag-has-color",J.nzColor&&!J.isPresetColor)("ant-tag-checkable","checkable"===J.nzMode)("ant-tag-checkable-checked",J.nzChecked)("ant-tag-rtl","rtl"===J.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[n.TTD],ngContentSelectors:e,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function($,J){1&$&&(n.F$t(),n.Hsn(0),n.YNc(1,H,1,0,"span",0)),2&$&&(n.xp6(1),n.Q6J("ngIf","closeable"===J.nzMode))},dependencies:[W.O5,N.Ls],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,r.yF)()],_t.prototype,"nzChecked",void 0),_t})(),lt=(()=>{var tt;class _t{}return(tt=_t).\u0275fac=function($){return new($||tt)},tt.\u0275mod=n.oAB({type:tt}),tt.\u0275inj=n.cJS({imports:[b.vT,W.ez,F.u5,N.PV]}),_t})()}}]); |