@vendure/admin-ui-plugin 3.3.8-master-202507290247 → 3.3.8-master-202507300243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/admin-ui/browser/{chunk-MSXX3HS7.js → chunk-4ULQ7WB4.js} +2 -2
- package/lib/admin-ui/browser/{chunk-D6CJ66X4.js → chunk-AGEQAPOH.js} +2 -2
- package/lib/admin-ui/browser/{chunk-D6CJ66X4.js.map → chunk-AGEQAPOH.js.map} +1 -1
- package/lib/admin-ui/browser/{chunk-CUMOXB2S.js → chunk-H76XF3KV.js} +2 -2
- package/lib/admin-ui/browser/{chunk-UI3BMUWC.js → chunk-HNEG3Z7J.js} +2 -2
- package/lib/admin-ui/browser/{chunk-ES2F4Q6P.js → chunk-LZODEY4O.js} +2 -2
- package/lib/admin-ui/browser/{chunk-3NLZC7HL.js → chunk-MB26V3QK.js} +2 -2
- package/lib/admin-ui/browser/{chunk-FEIUXA6G.js → chunk-OVY2IYEW.js} +2 -2
- package/lib/admin-ui/browser/{chunk-YT3UVI67.js → chunk-RHDMSIZA.js} +2 -2
- package/lib/admin-ui/browser/{chunk-GA4C5B46.js → chunk-VQJ4FUFA.js} +2 -2
- package/lib/admin-ui/browser/{chunk-VJHNI2LD.js → chunk-ZV3KXNLB.js} +2 -2
- package/lib/admin-ui/browser/index.html +1 -1
- package/lib/admin-ui/browser/main-G3HIFF33.js +2 -0
- package/package.json +5 -5
- package/lib/admin-ui/browser/main-IZNL6D7O.js +0 -2
- /package/lib/admin-ui/browser/{chunk-MSXX3HS7.js.map → chunk-4ULQ7WB4.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-CUMOXB2S.js.map → chunk-H76XF3KV.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-UI3BMUWC.js.map → chunk-HNEG3Z7J.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-ES2F4Q6P.js.map → chunk-LZODEY4O.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-3NLZC7HL.js.map → chunk-MB26V3QK.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-FEIUXA6G.js.map → chunk-OVY2IYEW.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-YT3UVI67.js.map → chunk-RHDMSIZA.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-GA4C5B46.js.map → chunk-VQJ4FUFA.js.map} +0 -0
- /package/lib/admin-ui/browser/{chunk-VJHNI2LD.js.map → chunk-ZV3KXNLB.js.map} +0 -0
- /package/lib/admin-ui/browser/{main-IZNL6D7O.js.map → main-G3HIFF33.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$a as ri,$c as ln,$f as Le,Aa as ii,Ab as Ue,Ae as rt,Af as at,Ag as Gi,B as Re,Ba as J,Bd as fi,Bf as st,Bg as ct,Ca as d,Ce as hi,Cf as mt,D as Wt,Da as S,Dd as Ze,De as vi,Ea as f,Ed as Be,Ef as pt,Eg as ki,F as Qt,Fe as yi,Ff as ke,Ga as ze,Ge as le,H as Te,Ha as Ye,He as we,Hf as Di,I as U,Ia as Je,Id as ae,Ie as ot,Ja as Ke,Jd as Ae,Jf as Si,Jg as ye,K as yt,L as zt,La as ee,Ld as Pe,Le as de,Lg as Ni,Ma as P,Me as xi,Mf as Q,Nb as He,Nf as ue,Ob as ai,Of as _e,P as Yt,Pb as si,Pf as fe,Pg as ut,Q as xt,Qa as a,Qb as mi,Qc as pi,Qf as ge,Qg as St,Ra as l,Rc as li,Rf as Ii,S as Jt,Sa as B,T as h,Td as Dt,U as v,Ua as K,Ud as et,Ug as _t,Va as Ee,Vd as gi,Vf as Ti,Vg as Mi,W as $,Wf as Ne,Xf as lt,Ya as te,Za as G,Zf as Ce,Zg as ft,_ as r,_a as ni,_f as Me,a as k,aa as x,ab as oi,ae as O,b as be,ba as Kt,bh as Oe,c as Ot,ca as F,cd as di,ce as Ci,da as Xt,db as N,dd as L,e as pn,eh as gt,fd as ci,fg as he,g as $e,ga as Z,gd as ui,gg as Ei,h as Y,ha as _,hd as Xe,hg as Fi,i as De,id as ne,if as ce,ig as Bi,j as Vt,ja as o,jd as _i,k as $t,la as Zt,ld as A,ma as s,mg as Ai,n as E,na as p,nb as ie,ng as ve,o as Ie,oa as g,of as bi,p as Rt,pa as I,qa as T,r as Ut,sa as D,ta as y,tb as M,te as se,u as We,ua as c,ud as re,ue as me,ug as dt,vd as X,ve as pe,vg as je,w as Ht,wb as bt,wd as q,we as W,x as jt,xd as oe,xe as tt,y as Qe,ya as ei,ye as it,yg as Pi,z as qt,za as ti,zb as Fe,ze as nt,zf as Ge,zg as wi}from"./chunk-
|
|
1
|
+
import{$a as ri,$c as ln,$f as Le,Aa as ii,Ab as Ue,Ae as rt,Af as at,Ag as Gi,B as Re,Ba as J,Bd as fi,Bf as st,Bg as ct,Ca as d,Ce as hi,Cf as mt,D as Wt,Da as S,Dd as Ze,De as vi,Ea as f,Ed as Be,Ef as pt,Eg as ki,F as Qt,Fe as yi,Ff as ke,Ga as ze,Ge as le,H as Te,Ha as Ye,He as we,Hf as Di,I as U,Ia as Je,Id as ae,Ie as ot,Ja as Ke,Jd as Ae,Jf as Si,Jg as ye,K as yt,L as zt,La as ee,Ld as Pe,Le as de,Lg as Ni,Ma as P,Me as xi,Mf as Q,Nb as He,Nf as ue,Ob as ai,Of as _e,P as Yt,Pb as si,Pf as fe,Pg as ut,Q as xt,Qa as a,Qb as mi,Qc as pi,Qf as ge,Qg as St,Ra as l,Rc as li,Rf as Ii,S as Jt,Sa as B,T as h,Td as Dt,U as v,Ua as K,Ud as et,Ug as _t,Va as Ee,Vd as gi,Vf as Ti,Vg as Mi,W as $,Wf as Ne,Xf as lt,Ya as te,Za as G,Zf as Ce,Zg as ft,_ as r,_a as ni,_f as Me,a as k,aa as x,ab as oi,ae as O,b as be,ba as Kt,bh as Oe,c as Ot,ca as F,cd as di,ce as Ci,da as Xt,db as N,dd as L,e as pn,eh as gt,fd as ci,fg as he,g as $e,ga as Z,gd as ui,gg as Ei,h as Y,ha as _,hd as Xe,hg as Fi,i as De,id as ne,if as ce,ig as Bi,j as Vt,ja as o,jd as _i,k as $t,la as Zt,ld as A,ma as s,mg as Ai,n as E,na as p,nb as ie,ng as ve,o as Ie,oa as g,of as bi,p as Rt,pa as I,qa as T,r as Ut,sa as D,ta as y,tb as M,te as se,u as We,ua as c,ud as re,ue as me,ug as dt,vd as X,ve as pe,vg as je,w as Ht,wb as bt,wd as q,we as W,x as jt,xd as oe,xe as tt,y as Qe,ya as ei,ye as it,yg as Pi,z as qt,za as ti,zb as Fe,ze as nt,zf as Ge,zg as wi}from"./chunk-AGEQAPOH.js";function dn(t,m){t&1&&(I(0),g(1,"clr-icon",1),d(2),a(3,"translate"),T()),t&2&&(r(2),f(" ",l(3,1,"customer.verified")," "))}function cn(t,m){t&1&&(I(0),g(1,"clr-icon",2),d(2),a(3,"translate"),T()),t&2&&(r(2),f(" ",l(3,1,"customer.registered")," "))}function un(t,m){if(t&1&&(s(0,"vdr-chip"),_(1,dn,4,3,"ng-container",0)(2,cn,4,3,"ng-container",0),p()),t&2){let e=c();r(),o("ngIf",e.customer.user==null?null:e.customer.user.verified),r(),o("ngIf",!(e.customer.user!=null&&e.customer.user.verified))}}function _n(t,m){t&1&&(s(0,"vdr-chip"),d(1),a(2,"translate"),p()),t&2&&(r(),S(l(2,1,"customer.guest")))}var Ve=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-customer-status-label"]],inputs:{customer:"customer"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],["shape","check-circle",1,"verified-user-icon"],["shape","check-circle",1,"registered-user-icon"]],template:function(i,n){i&1&&_(0,un,3,2,"vdr-chip",0)(1,_n,3,3,"vdr-chip",0),i&2&&(o("ngIf",n.customer.user==null?null:n.customer.user.id),r(),o("ngIf",!(n.customer.user!=null&&n.customer.user.id)))},dependencies:[O,G,ce,A],styles:[`.registered-user-icon[_ngcontent-%COMP%]{color:var(--color-grey-300)}.verified-user-icon[_ngcontent-%COMP%]{color:var(--color-success-500)}
|
|
2
2
|
/*# sourceMappingURL=customer-status-label.component-GVVEEFRV.css.map */`],changeDetection:0})}}return t})();var fn=t=>["/customer/customers",t];function gn(t,m){if(t&1&&d(0),t&2){let e=m.item;f(" ",e.id," ")}}function Cn(t,m){if(t&1&&(d(0),a(1,"localeDate")),t&2){let e=m.item;f(" ",B(1,1,e.createdAt,"short")," ")}}function hn(t,m){if(t&1&&(d(0),a(1,"localeDate")),t&2){let e=m.item;f(" ",B(1,1,e.createdAt,"short")," ")}}function vn(t,m){if(t&1&&(s(0,"a",9)(1,"span"),d(2),p(),g(3,"clr-icon",10),p()),t&2){let e=m.item;o("routerLink",P(4,fn,e.id)),r(2),ze(" ",e.title," ",e.firstName," ",e.lastName," ")}}function yn(t,m){if(t&1&&g(0,"vdr-customer-status-label",11),t&2){let e=m.item;o("customer",e)}}function xn(t,m){if(t&1&&d(0),t&2){let e=m.item;f(" ",e.emailAddress," ")}}var Ct=(()=>{class t{constructor(e,i){this.router=e,this.dataService=i,this.selectedMemberIds=[],this.selectionChange=new $,this.fetchParamsChange=new $,this.filterTermControl=new fi(""),this.selectionManager=new bi({multiSelect:!0,itemsAreEqual:(n,u)=>n.id===u.id,additiveMode:!0}),this.refresh$=new Y(!0),this.destroy$=new $e}ngOnInit(){this.membersCurrentPage$=this.route.paramMap.pipe(E(i=>i.get("membersPage")),E(i=>i?+i:1),Te(1),Re()),this.membersItemsPerPage$=this.route.paramMap.pipe(E(i=>i.get("membersPerPage")),E(i=>i?+i:10),Te(10),Re());let e=this.filterTermControl.valueChanges.pipe(jt(250),zt(()=>this.setContentsPageNumber(1)),Te(""));Ie(this.membersCurrentPage$,this.membersItemsPerPage$,e,this.refresh$).pipe(yt(this.destroy$)).subscribe(([i,n,u])=>{let C=n,b=(i-1)*n;this.fetchParamsChange.emit({filterTerm:u??"",skip:b,take:C})}),this.selectionManager.setCurrentItems(this.members?.filter(i=>this.selectedMemberIds.includes(i.id))??[]),this.selectionManager.selectionChanges$.pipe(yt(this.destroy$)).subscribe(i=>{this.selectionChange.emit(i.map(n=>n.id))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setContentsPageNumber(e){this.setParam("membersPage",e)}setContentsItemsPerPage(e){this.setParam("membersPerPage",e)}refresh(){this.refresh$.next(!0)}setParam(e,i){this.router.navigate(["./",be(k({},this.route.snapshot.params),{[e]:i})],{relativeTo:this.route,queryParamsHandling:"merge"})}static{this.\u0275fac=function(i){return new(i||t)(x(Xe),x(L))}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-customer-group-member-list"]],inputs:{locationId:"locationId",members:"members",totalItems:"totalItems",route:"route",selectedMemberIds:"selectedMemberIds",activeGroup:"activeGroup"},outputs:{selectionChange:"selectionChange",fetchParamsChange:"fetchParamsChange"},standalone:!1,decls:24,vars:39,consts:[[3,"pageChange","itemsPerPageChange","id","items","itemsPerPage","totalItems","currentPage"],[3,"locationId","hostComponent","selectionManager"],[3,"searchTermControl","searchTermPlaceholder"],["id","id",3,"heading","hiddenByDefault"],["id","created-at",3,"heading","hiddenByDefault"],["id","updated-at",3,"heading","hiddenByDefault"],["id","name",3,"heading","optional"],["id","status",3,"heading","hiddenByDefault"],["id","email-address",3,"heading"],[1,"button-ghost",3,"routerLink"],["shape","arrow right"],[3,"customer"]],template:function(i,n){i&1&&(s(0,"vdr-data-table-2",0),a(1,"async"),a(2,"async"),y("pageChange",function(C){return n.setContentsPageNumber(C)})("itemsPerPageChange",function(C){return n.setContentsItemsPerPage(C)}),g(3,"vdr-bulk-action-menu",1)(4,"vdr-dt2-search",2),a(5,"translate"),s(6,"vdr-dt2-column",3),a(7,"translate"),_(8,gn,1,1,"ng-template"),p(),s(9,"vdr-dt2-column",4),a(10,"translate"),_(11,Cn,2,4,"ng-template"),p(),s(12,"vdr-dt2-column",5),a(13,"translate"),_(14,hn,2,4,"ng-template"),p(),s(15,"vdr-dt2-column",6),a(16,"translate"),_(17,vn,4,6,"ng-template"),p(),s(18,"vdr-dt2-column",7),a(19,"translate"),_(20,yn,1,1,"ng-template"),p(),s(21,"vdr-dt2-column",8),a(22,"translate"),_(23,xn,1,1,"ng-template"),p()()),i&2&&(o("id",n.locationId)("items",n.members)("itemsPerPage",l(1,21,n.membersItemsPerPage$))("totalItems",n.totalItems)("currentPage",l(2,23,n.membersCurrentPage$)),r(3),o("locationId",n.locationId)("hostComponent",n)("selectionManager",n.selectionManager),r(),o("searchTermControl",n.filterTermControl)("searchTermPlaceholder",l(5,25,"customer.search-customers-by-email")),r(2),o("heading",l(7,27,"common.id"))("hiddenByDefault",!0),r(3),o("heading",l(10,29,"common.created-at"))("hiddenByDefault",!0),r(3),o("heading",l(13,31,"common.updated-at"))("hiddenByDefault",!0),r(3),o("heading",l(16,33,"customer.name"))("optional",!1),r(3),o("heading",l(19,35,"common.status"))("hiddenByDefault",!0),r(3),o("heading",l(22,37,"customer.email-address")))},dependencies:[O,ne,Ne,he,Ce,Le,Ve,N,A,de],encapsulation:2,changeDetection:0})}}return t})();var bn=t=>({groupName:t}),Dn=t=>({count:t});function Sn(t,m){if(t&1&&(d(0),a(1,"translate")),t&2){let e=c();f(" ",B(1,1,"customer.add-customers-to-group-with-name",P(4,bn,e.group.name)),`
|
|
3
3
|
`)}}function In(t,m){if(t&1){let e=D();s(0,"button",3),y("click",function(){h(e);let n=c();return v(n.cancel())}),d(1),a(2,"translate"),p(),s(3,"button",4),y("click",function(){h(e);let n=c();return v(n.add())}),d(4),a(5,"translate"),p()}if(t&2){let e=c();r(),S(l(2,3,"common.cancel")),r(2),o("disabled",!e.selectedCustomerIds.length),r(),f(" ",B(5,5,"customer.add-customers-to-group-with-count",P(8,Dn,e.selectedCustomerIds.length))," ")}}var $i=(()=>{class t{constructor(e){this.dataService=e,this.selectedCustomerIds=[],this.fetchGroupMembers$=new Y({skip:0,take:10,filterTerm:""})}ngOnInit(){let e=this.fetchGroupMembers$.pipe(U(({skip:i,take:n,filterTerm:u})=>this.dataService.customer.getCustomerList(n,i,u).mapStream(C=>C.customers)));this.customers$=e.pipe(E(i=>i.items)),this.customersTotal$=e.pipe(E(i=>i.totalItems))}cancel(){this.resolveWith()}add(){this.resolveWith(this.selectedCustomerIds)}static{this.\u0275fac=function(i){return new(i||t)(x(L))}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-add-customer-to-group-dialog"]],standalone:!1,decls:5,vars:8,consts:[["vdrDialogTitle",""],["locationId","customer-group-members-picker-list",3,"fetchParamsChange","selectionChange","members","totalItems","route","selectedMemberIds"],["vdrDialogButtons",""],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(_(0,Sn,2,6,"ng-template",0),s(1,"vdr-customer-group-member-list",1),a(2,"async"),a(3,"async"),y("fetchParamsChange",function(C){return n.fetchGroupMembers$.next(C)})("selectionChange",function(C){return n.selectedCustomerIds=C}),p(),_(4,In,6,10,"ng-template",2)),i&2&&(r(),o("members",l(2,4,n.customers$))("totalItems",l(3,6,n.customersTotal$))("route",n.route)("selectedMemberIds",n.selectedCustomerIds))},dependencies:[me,pe,Ct,N,A],encapsulation:2,changeDetection:0})}}return t})();function Tn(t,m){if(t&1&&(s(0,"span"),d(1),p()),t&2){let e=m.ngIf;r(),f("",e,",")}}function En(t,m){if(t&1&&(s(0,"span"),d(1),p()),t&2){let e=m.ngIf;r(),f(" ",e,"")}}function Fn(t,m){if(t&1&&_(0,Tn,2,1,"span",3)(1,En,2,1,"span",3),t&2){let e,i,n=c();o("ngIf",(e=n.addressForm.get("streetLine1"))==null?null:e.value),r(),o("ngIf",(i=n.addressForm.get("countryCode"))==null?null:i.value)}}function Bn(t,m){if(t&1){let e=D();s(0,"button",4),y("click",function(){h(e);let n=c();return v(n.cancel())}),d(1),a(2,"translate"),p(),s(3,"button",5),y("click",function(){h(e);let n=c();return v(n.save())}),d(4),a(5,"translate"),p()}if(t&2){let e=c();r(),S(l(2,3,"common.cancel")),r(2),o("disabled",!e.addressForm.valid||!e.addressForm.touched),r(),f(" ",l(5,5,"common.update")," ")}}var Ri=(()=>{class t{constructor(e){this.changeDetector=e,this.availableCountries=[]}ngOnInit(){this.addressForm.valueChanges.subscribe(()=>this.changeDetector.markForCheck())}cancel(){this.resolveWith()}save(){this.resolveWith(this.addressForm)}static{this.\u0275fac=function(i){return new(i||t)(x(Ee))}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-address-detail-dialog"]],standalone:!1,decls:3,vars:3,consts:[["vdrDialogTitle",""],[3,"formGroup","availableCountries","customFields"],["vdrDialogButtons",""],[4,"ngIf"],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,n){i&1&&(_(0,Fn,2,2,"ng-template",0),g(1,"vdr-address-form",1),_(2,Bn,6,7,"ng-template",2)),i&2&&(r(),o("formGroup",n.addressForm)("availableCountries",n.availableCountries)("customFields",n.customFields))},dependencies:[G,oe,ae,me,pe,Ii,A],styles:[`clr-input-container[_ngcontent-%COMP%]{margin-bottom:12px}
|
|
4
4
|
/*# sourceMappingURL=address-detail-dialog.component-EMCAD2FV.css.map */`],changeDetection:0})}}return t})();function kn(t,m){if(t&1&&(s(0,"span",14),d(1),p()),t&2){let e=c().ngIf;r(),f("",e.streetLine1,",")}}function Nn(t,m){t&1&&(s(0,"vdr-chip",15),g(1,"clr-icon",16),d(2),a(3,"translate"),p()),t&2&&(r(2),f(" ",l(3,1,"customer.default-shipping-address")," "))}function Mn(t,m){t&1&&(s(0,"vdr-chip",15),g(1,"clr-icon",17),d(2),a(3,"translate"),p()),t&2&&(r(2),f(" ",l(3,1,"customer.default-billing-address")," "))}function Ln(t,m){if(t&1){let e=D();I(0),s(1,"button",18),y("click",function(){h(e);let n=c(2);return v(n.editAddress())}),d(2),a(3,"translate"),p(),s(4,"vdr-dropdown")(5,"button",19),d(6),a(7,"translate"),g(8,"clr-icon",20),p(),s(9,"vdr-dropdown-menu")(10,"button",21),y("click",function(){h(e);let n=c(2);return v(n.setAsDefaultShippingAddress())}),d(11),a(12,"translate"),p(),s(13,"button",21),y("click",function(){h(e);let n=c(2);return v(n.setAsDefaultBillingAddress())}),d(14),a(15,"translate"),p(),g(16,"div",22),s(17,"button",23),y("click",function(){h(e);let n=c(2);return v(n.delete())}),g(18,"clr-icon",24),d(19),a(20,"translate"),p()()(),T()}if(t&2){let e=c(2);r(2),f(" ",l(3,7,"common.edit")," "),r(4),f(" ",l(7,9,"common.more")," "),r(4),o("disabled",e.isDefaultShipping),r(),f(" ",l(12,11,"customer.set-as-default-shipping-address")," "),r(2),o("disabled",e.isDefaultBilling),r(),f(" ",l(15,13,"customer.set-as-default-billing-address")," "),r(5),f(" ",l(20,15,"common.delete")," ")}}function On(t,m){if(t&1&&(s(0,"div",1)(1,"div",2)(2,"div",3),_(3,kn,2,1,"span",4),d(4),p(),s(5,"div",5),_(6,Nn,4,3,"vdr-chip",6)(7,Mn,4,3,"vdr-chip",6),p()(),s(8,"div",7)(9,"div",8),g(10,"vdr-formatted-address",9),p()(),s(11,"div",10)(12,"div",11),g(13,"vdr-entity-info",12),_(14,Ln,21,17,"ng-container",13),p()()()),t&2){let e=m.ngIf,i=c();r(3),o("ngIf",e.streetLine1),r(),f(" ",e.countryCode," "),r(2),o("ngIf",i.isDefaultShipping),r(),o("ngIf",i.isDefaultBilling),r(3),o("address",e),r(3),o("entity",e),r(),o("ngIf",i.editable)}}var Ui=(()=>{class t{constructor(e,i){this.modalService=e,this.changeDetector=i,this.availableCountries=[],this.editable=!0,this.setAsDefaultShipping=new $,this.setAsDefaultBilling=new $,this.deleteAddress=new $,this.dataDependenciesPopulated=new Y(!1)}ngOnInit(){this.addressForm.get("streetLine1").value||this.dataDependenciesPopulated.pipe(We(i=>i),Qe(1)).subscribe(()=>{this.editAddress()})}ngOnChanges(e){this.customFields!=null&&this.availableCountries!=null&&this.dataDependenciesPopulated.next(!0)}getCountryName(e){if(!this.availableCountries)return"";let i=this.availableCountries.find(n=>n.code===e);return i?i.name:""}setAsDefaultBillingAddress(){this.setAsDefaultBilling.emit(this.addressForm.value.id),this.addressForm.markAsDirty()}setAsDefaultShippingAddress(){this.setAsDefaultShipping.emit(this.addressForm.value.id),this.addressForm.markAsDirty()}delete(){this.deleteAddress.emit(this.addressForm.value.id),this.addressForm.markAsDirty()}editAddress(){this.modalService.fromComponent(Ri,{locals:{addressForm:this.addressForm,customFields:this.customFields,availableCountries:this.availableCountries},size:"md",closable:!0}).subscribe(()=>{this.changeDetector.markForCheck()})}static{this.\u0275fac=function(i){return new(i||t)(x(W),x(Ee))}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-address-card"]],inputs:{addressForm:"addressForm",customFields:"customFields",availableCountries:"availableCountries",isDefaultBilling:"isDefaultBilling",isDefaultShipping:"isDefaultShipping",editable:"editable"},outputs:{setAsDefaultShipping:"setAsDefaultShipping",setAsDefaultBilling:"setAsDefaultBilling",deleteAddress:"deleteAddress"},standalone:!1,features:[Jt],decls:1,vars:1,consts:[["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"address-title"],["class","street-line",4,"ngIf"],[1,"default-controls"],["class","is-default p8",4,"ngIf"],[1,"card-block"],[1,"card-text"],[3,"address"],[1,"card-footer"],[1,"address-actions"],[3,"entity"],[4,"ngIf"],[1,"street-line"],[1,"is-default","p8"],["shape","truck"],["shape","credit-card"],[1,"button-small",3,"click"],["type","button","vdrDropdownTrigger","",1,"button-small"],["shape","ellipsis-vertical","size","12"],["vdrDropdownItem","",3,"click","disabled"],[1,"dropdown-divider"],["type","button","vdrDropdownItem","",3,"click"],["shape","trash",1,"is-danger"]],template:function(i,n){i&1&&_(0,On,15,7,"div",0),i&2&&o("ngIf",n.addressForm.value)},dependencies:[O,G,ce,tt,it,nt,rt,Fi,Di,A],styles:[`[_nghost-%COMP%]{display:block;max-width:360px}clr-input-container[_ngcontent-%COMP%]{margin-bottom:12px}.defaul-controls[_ngcontent-%COMP%]{display:flex}.is-default[_ngcontent-%COMP%]{margin:0;color:var(--color-success-500)}.address-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-unit)}.address-actions[_ngcontent-%COMP%] vdr-entity-info[_ngcontent-%COMP%]{margin-top:1px}
|
|
@@ -79,4 +79,4 @@ import{$a as ri,$c as ln,$f as Le,Aa as ii,Ab as Ue,Ae as rt,Af as at,Ag as Gi,B
|
|
|
79
79
|
}
|
|
80
80
|
`,sn=(()=>{class t extends _t{constructor(){super(),this.dataTableListId="customer-list",this.customFields=this.getCustomFieldConfig("Customer"),this.filters=this.createFilterCollection().addIdFilter().addDateFilters().addFilter({name:"firstName",type:{kind:"text"},label:"customer.first-name",filterField:"firstName"}).addFilter({name:"lastName",type:{kind:"text"},label:"customer.last-name",filterField:"lastName"}).addFilter({name:"emailAddress",type:{kind:"text"},label:"customer.email-address",filterField:"emailAddress"}).addCustomFieldFilters(this.customFields).connectToRoute(this.route),this.sorts=this.createSortCollection().defaultSort("createdAt","DESC").addSort({name:"createdAt"}).addSort({name:"updatedAt"}).addSort({name:"lastName"}).addSort({name:"emailAddress"}).addCustomFieldSorts(this.customFields).connectToRoute(this.route),this.configure({document:mi,getItems:e=>e.customers,setVariables:(e,i)=>({options:{skip:e,take:i,filter:k(k({},this.searchTermControl.value?{emailAddress:{contains:this.searchTermControl.value},lastName:{contains:this.searchTermControl.value},postalCode:{contains:this.searchTermControl.value}}:{}),this.filters.createFilterInput()),filterOperator:this.searchTermControl.value?bt.OR:bt.AND,sort:this.sorts.createSortInput()}}),refreshListOnChanges:[this.sorts.valueChanges,this.filters.valueChanges]})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=F({type:t,selectors:[["vdr-customer-list"]],standalone:!1,features:[Z],decls:34,vars:48,consts:[["locationId","customer-list"],["class","btn btn-primary",3,"routerLink",4,"vdrIfPermissions"],[1,"mt-2",3,"pageChange","itemsPerPageChange","visibleColumnsChange","id","items","itemsPerPage","totalItems","currentPage","filters"],["locationId","customer-list",3,"hostComponent","selectionManager"],[3,"searchTermControl","searchTermPlaceholder"],["id","id",3,"heading","hiddenByDefault"],["id","created-at",3,"heading","hiddenByDefault","sort"],["id","updated-at",3,"heading","hiddenByDefault","sort"],["id","name",3,"heading","optional","sort"],["id","status",3,"heading"],["id","email-address",3,"heading","sort"],[3,"customField","sorts",4,"ngFor","ngForOf"],[1,"btn","btn-primary",3,"routerLink"],["shape","plus"],[1,"button-ghost",3,"routerLink"],["shape","arrow right"],[3,"customer"],[3,"customField","sorts"]],template:function(i,n){i&1&&(s(0,"vdr-page-block")(1,"vdr-action-bar"),g(2,"vdr-ab-left"),s(3,"vdr-ab-right"),g(4,"vdr-action-bar-items",0),_(5,Eo,4,5,"a",1),g(6,"vdr-action-bar-dropdown-menu",0),p()()(),s(7,"vdr-data-table-2",2),a(8,"async"),a(9,"async"),a(10,"async"),a(11,"async"),y("pageChange",function(C){return n.setPageNumber(C)})("itemsPerPageChange",function(C){return n.setItemsPerPage(C)})("visibleColumnsChange",function(C){return n.setVisibleColumns(C)}),g(12,"vdr-bulk-action-menu",3)(13,"vdr-dt2-search",4),a(14,"translate"),s(15,"vdr-dt2-column",5),a(16,"translate"),_(17,Fo,1,1,"ng-template"),p(),s(18,"vdr-dt2-column",6),a(19,"translate"),_(20,Bo,2,4,"ng-template"),p(),s(21,"vdr-dt2-column",7),a(22,"translate"),_(23,Ao,2,4,"ng-template"),p(),s(24,"vdr-dt2-column",8),a(25,"translate"),_(26,Po,4,6,"ng-template"),p(),s(27,"vdr-dt2-column",9),a(28,"translate"),_(29,wo,1,1,"ng-template"),p(),s(30,"vdr-dt2-column",10),a(31,"translate"),_(32,Go,1,1,"ng-template"),p(),_(33,ko,1,2,"vdr-dt2-custom-field-column",11),p()),i&2&&(r(5),o("vdrIfPermissions","CreateCustomer"),r(2),o("id",n.dataTableListId)("items",l(8,26,n.items$))("itemsPerPage",l(9,28,n.itemsPerPage$))("totalItems",l(10,30,n.totalItems$))("currentPage",l(11,32,n.currentPage$))("filters",n.filters),r(5),o("hostComponent",n)("selectionManager",n.selectionManager),r(),o("searchTermControl",n.searchTermControl)("searchTermPlaceholder",l(14,34,"customer.search-customers-by-email-last-name-postal-code")),r(2),o("heading",l(16,36,"common.id"))("hiddenByDefault",!0),r(3),o("heading",l(19,38,"common.created-at"))("hiddenByDefault",!0)("sort",n.sorts.get("createdAt")),r(3),o("heading",l(22,40,"common.updated-at"))("hiddenByDefault",!0)("sort",n.sorts.get("updatedAt")),r(3),o("heading",l(25,42,"customer.name"))("optional",!1)("sort",n.sorts.get("lastName")),r(3),o("heading",l(28,44,"common.status")),r(3),o("heading",l(31,46,"customer.email-address"))("sort",n.sorts.get("emailAddress")),r(3),o("ngForOf",n.customFields))},dependencies:[O,te,ne,ge,_e,fe,ye,Q,ue,Ne,he,Ce,Le,Me,ve,Ve,N,A,de],styles:[`.search-input[_ngcontent-%COMP%]{margin-top:6px;min-width:300px}
|
|
81
81
|
/*# sourceMappingURL=customer-list.component-ERAUGAUO.css.map */`]})}}return t})();var mn=t=>[{path:"customers",component:je,data:{locationId:"customer-list",breadcrumb:"breadcrumb.customers"},children:t.getPageTabRoutes("customer-list")},{path:"customers/:id",component:je,data:{locationId:"customer-detail",breadcrumb:{label:"breadcrumb.customers",link:["../","customers"]}},children:t.getPageTabRoutes("customer-detail")},{path:"groups",component:je,data:{locationId:"customer-group-list",breadcrumb:"breadcrumb.customer-groups"},children:t.getPageTabRoutes("customer-group-list")},{path:"groups/:id",component:je,data:{locationId:"customer-group-detail",breadcrumb:{label:"breadcrumb.customer-groups",link:["../","groups"]}},children:t.getPageTabRoutes("customer-group-detail")}];function cs(t,m){return Mi({entity:t.entity,id:m.id,breadcrumbKey:"breadcrumb.customers",getName:e=>`${e.firstName} ${e.lastName}`,route:"customers"})}var Us=(()=>{class t{static{this.hasRegisteredTabsAndBulkActions=!1}constructor(e,i){t.hasRegisteredTabsAndBulkActions||(e.registerBulkAction(an),e.registerBulkAction(tn),e.registerBulkAction(on),i.registerPageTab({priority:0,location:"customer-list",tab:"customer.customers",route:"",component:sn}),i.registerPageTab({priority:0,location:"customer-detail",tab:"customer.customer",route:"",component:St({component:Zi,query:He,entityKey:"customer",variables:{orderListOptions:{sort:{orderPlacedAt:Ue.DESC}}},getBreadcrumbs:n=>[{label:n?`${n?.firstName} ${n?.lastName}`:"customer.create-new-customer",link:[n?.id]}]})}),i.registerPageTab({priority:0,location:"customer-group-list",tab:"customer.customer-groups",route:"",component:rn}),i.registerPageTab({priority:0,location:"customer-group-detail",tab:"customer.customer-group",route:"",component:St({component:en,query:ai,entityKey:"customerGroup",getBreadcrumbs:n=>[{label:n?n.name:"customer.create-new-customer-group",link:[n?.id]}]})}),t.hasRegisteredTabsAndBulkActions=!0)}static{this.\u0275fac=function(i){return new(i||t)(xt(Ti),xt(dt))}}static{this.\u0275mod=Xt({type:t})}static{this.\u0275inj=Yt({providers:[{provide:ui,useFactory:e=>mn(e),multi:!0,deps:[dt]}],imports:[Ni,_i.forChild([])]})}}return t})();export{$i as AddCustomerToGroupDialogComponent,Ui as AddressCardComponent,Ri as AddressDetailDialogComponent,Aa as CUSTOMER_DETAIL_QUERY,Na as CUSTOMER_GROUP_DETAIL_QUERY,ms as CUSTOMER_LIST_QUERY,Zi as CustomerDetailComponent,en as CustomerGroupDetailComponent,$a as CustomerGroupDetailDialogComponent,rn as CustomerGroupListComponent,Ct as CustomerGroupMemberListComponent,zi as CustomerHistoryComponent,ji as CustomerHistoryEntryHostComponent,sn as CustomerListComponent,Us as CustomerModule,Ve as CustomerStatusLabelComponent,Xa as GET_CUSTOMER_GROUP_LIST,Hi as SelectCustomerGroupDialogComponent,mn as createRoutes,cs as customerBreadcrumb,tn as deleteCustomerGroupsBulkAction,an as deleteCustomersBulkAction,on as removeCustomerGroupMembersBulkAction};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-4ULQ7WB4.js.map
|
|
@@ -5816,7 +5816,7 @@ JavaScript: document.querySelector('${d}').${l} = '...';
|
|
|
5816
5816
|
/*# sourceMappingURL=modal-dialog.component-Y4MYBRQC.css.map */`]})}}return n})();var Aa=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerButtonsTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(V0),x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","vdrDialogButtons",""]],standalone:!1})}}return n})();var Ba=(()=>{class n{constructor(e,i){this.modal=e,this.templateRef=i}ngOnInit(){setTimeout(()=>this.modal.registerTitleTemplate(this.templateRef))}static{this.\u0275fac=function(i){return new(i||n)(x(V0),x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","vdrDialogTitle",""]],standalone:!1})}}return n})();var o7e=()=>({});function l7e(n,t){if(n&1&&(E(0),T(1,"translate")),n&2){let e=I();te(it(1,1,e.title,e.translationVars))}}function s7e(n,t){if(n&1){let e=de();Be(0),S(1,"button",4),Z("click",function(){let a=G(e).$implicit,r=I(2);return W(r.resolveWith(a.returnValue))}),E(2),T(3,"translate"),_(),je()}if(n&2){let e=t.$implicit;f(),ve("primary",e.type==="primary")("danger",e.type==="danger"),f(),ie(" ",it(3,5,e.label,e.translationVars||gr(8,o7e))," ")}}function d7e(n,t){if(n&1&&P(0,s7e,4,9,"ng-container",3),n&2){let e=I();y("ngForOf",e.buttons)}}var hV=(()=>{class n{constructor(){this.title="",this.body="",this.translationVars={},this.buttons=[]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-simple-dialog"]],standalone:!1,decls:5,vars:4,consts:[["vdrDialogTitle",""],[2,"white-space","pre-wrap"],["vdrDialogButtons",""],[4,"ngFor","ngForOf"],[1,"button","ml-2",3,"click"]],template:function(i,a){i&1&&(P(0,l7e,2,4,"ng-template",0),S(1,"div",1),E(2),T(3,"translate"),_(),P(4,d7e,1,1,"ng-template",2)),i&2&&(f(2),te(it(3,1,a.body,a.translationVars)))},dependencies:[wt,Aa,Ba,Te],encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{class n{constructor(e){this.overlayHostService=e}fromComponent(e,i){return Un(this.overlayHostService.getHostView()).pipe(Pi(a=>{let r=a.createComponent(V0),o=r.instance;return o.childComponentType=e,o.options=i,new cn(l=>{o.closeModal=s=>{r.destroy(),l.next(s),l.complete()}})}))}dialog(e){return this.fromComponent(hV,{locals:e,size:e.size})}static{this.\u0275fac=function(i){return new(i||n)(me(v2))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var fV=class{constructor(t,e){this.config=t,this.context=e,this.hasRun$=new Xt(!1),this.data$=new Xt(void 0),this.config.recheck&&(this.subscription=this.config.recheck(this.context).subscribe(()=>this.runCheck())),this.activeAlert$=Jn([this.data$,this.hasRun$]).pipe(ae(([i,a])=>{if(!(!i||!this.config.isAlert(i,this.context)))return{id:this.config.id,runAction:()=>{a||(this.config.action(i,this.context),this.hasRun$.next(!0))},hasRun:a,label:this.config.label(i,this.context)}}))}get id(){return this.config.id}runCheck(){let t=this.config.check(this.context);t instanceof Promise?t.then(e=>this.data$.next(e)):po(t)?t.pipe(Xn(1)).subscribe(e=>this.data$.next(e)):this.data$.next(t),this.hasRun$.next(!1)}destroy(){this.subscription&&this.subscription.unsubscribe()}},P0=(()=>{class n{constructor(e,i,a,r,o){this.permissionsService=e,this.injector=i,this.dataService=a,this.notificationService=r,this.modalService=o,this.alertsMap=new Map,this.configUpdated=new ke;let l=this.configUpdated.pipe(ae(()=>[...this.alertsMap.values()]),Mn([...this.alertsMap.values()]));this.activeAlerts$=l.pipe(ot(()=>{let d=[...this.alertsMap.values()].map(u=>u.activeAlert$);return Jn(d)}),ae(s=>s.filter(sse.notNullOrUndefined)))}configureAlert(e){this.hasSufficientPermissions(e.requiredPermissions).pipe(Wl()).subscribe(i=>{i&&(this.alertsMap.set(e.id,new fV(e,this.createContext())),this.configUpdated.next())})}hasSufficientPermissions(e){return!e||e.length===0?Ee(!0):this.permissionsService.currentUserPermissions$.pipe(_n(i=>i.length>0),ae(()=>this.permissionsService.userHasPermissions(e)))}refresh(e){e?this.alertsMap.get(e)?.runCheck():this.alertsMap.forEach(i=>i.runCheck())}clearAlerts(){this.alertsMap.forEach(e=>e.destroy()),this.alertsMap.clear(),this.configUpdated.next()}createContext(){return{injector:this.injector,dataService:this.dataService,notificationService:this.notificationService,modalService:this.modalService}}static{this.\u0275fac=function(i){return new(i||n)(me(Nl),me(Wt),me(Re),me(or),me(ci))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var c7e=["*"],kn=(()=>{class n{constructor(){this.isOpen=!1,this.onOpenChangeCallbacks=[],this.manualToggle=!1}onClick(){this.manualToggle||this.toggleOpen()}toggleOpen(){this.isOpen=!this.isOpen,this.onOpenChangeCallbacks.forEach(e=>e(this.isOpen))}onOpenChange(e){this.onOpenChangeCallbacks.push(e)}setTriggerElement(e){this.trigger=e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dropdown"]],inputs:{manualToggle:"manualToggle"},standalone:!1,ngContentSelectors:c7e,decls:1,vars:0,template:function(i,a){i&1&&(Dt(),lt(0))},encapsulation:2,changeDetection:0})}}return n})();var u7e=["menu"],m7e=["*"];function p7e(n,t){if(n&1&&(S(0,"div",1),T(1,"async"),S(2,"div",2)(3,"div",3)(4,"div",4),lt(5),_()()()()),n&2){let e=I();y("dir",O(1,6,e.direction$)),f(3),ra("max-height",e.maxHeight,"px"),y("ngClass",e.customClasses),f(),y("cdkTrapFocus",!0)("cdkTrapFocusAutoCapture",!0)}}var jn=(()=>{class n{onEscapeKeydown(e){this.dropdown.isOpen&&this.overlayRef.overlayElement.contains(document.activeElement)&&this.dropdown.toggleOpen()}onArrowKey(e){if(this.dropdown.isOpen&&document.activeElement instanceof HTMLElement&&(e.key==="ArrowDown"||e.key==="ArrowUp")){let i=Array.from(this.overlayRef.overlayElement.querySelectorAll(".dropdown-item")),a=i.indexOf(document.activeElement);if(a===-1)return;e.key==="ArrowDown"&&i[(a+1)%i.length].focus(),e.key==="ArrowUp"&&i[(a-1+i.length)%i.length].focus()}}constructor(e,i,a,r,o){this.overlay=e,this.viewContainerRef=i,this.dropdown=a,this.localizationService=r,this.changeDetector=o,this.position="bottom-left",this.resizeObserver=new ResizeObserver(l=>{for(let d of l){let u=d.target.querySelector(".dropdown-content-wrapper");if(u){let{bottom:p,top:h}=u?.getBoundingClientRect();p>window.innerHeight-12&&(this.maxHeight=window.innerHeight-h-12,this.changeDetector.markForCheck()),h<12&&(this.maxHeight=p-12,this.changeDetector.markForCheck())}}})}ngOnInit(){this.direction$=this.localizationService.direction$,this.dropdown.onOpenChange(e=>{e?(this.overlayRef.attach(this.menuPortal),this.resizeObserver.observe(this.overlayRef.overlayElement)):(this.overlayRef.detach(),this.resizeObserver.unobserve(this.overlayRef.overlayElement),this.maxHeight=void 0)})}ngAfterViewInit(){this.overlayRef=this.overlay.create({hasBackdrop:!0,backdropClass:"clear-backdrop",positionStrategy:this.getPositionStrategy(),maxHeight:"70vh"}),this.menuPortal=new Zu(this.menuTemplate,this.viewContainerRef),this.backdropClickSub=this.overlayRef.backdropClick().subscribe(()=>{this.dropdown.toggleOpen()})}ngOnDestroy(){this.overlayRef&&this.overlayRef.dispose(),this.backdropClickSub&&this.backdropClickSub.unsubscribe()}getPositionStrategy(){let i={"top-left":{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},"top-right":{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},"bottom-left":{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},"bottom-right":{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}}[this.position];return this.overlay.position().flexibleConnectedTo(this.dropdown.trigger).withPositions([i,this.invertPosition(i)]).withViewportMargin(12).withPush(!0)}invertPosition(e){let i=q({},e);return i.originY=e.originY==="top"?"bottom":"top",i.overlayY=e.overlayY==="top"?"bottom":"top",i}static{this.\u0275fac=function(i){return new(i||n)(x(Tp),x(vn),x(kn),x(fp),x(dt))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-dropdown-menu"]],viewQuery:function(i,a){if(i&1&&It(u7e,7),i&2){let r;Ae(r=xe())&&(a.menuTemplate=r.first)}},hostBindings:function(i,a){i&1&&Z("keydown.escape",function(o){return a.onEscapeKeydown(o)},!1,Mm)("keydown",function(o){return a.onArrowKey(o)},!1,Mm)},inputs:{position:[0,"vdrPosition","position"],customClasses:"customClasses"},standalone:!1,ngContentSelectors:m7e,decls:2,vars:0,consts:[["menu",""],[3,"dir"],[1,"dropdown","open"],[1,"dropdown-menu",3,"ngClass"],[1,"dropdown-content-wrapper",3,"cdkTrapFocus","cdkTrapFocusAutoCapture"]],template:function(i,a){i&1&&(Dt(),P(0,p7e,6,8,"ng-template",null,0,an))},dependencies:[Ii,ls,Lu,gt],styles:[`.clear-backdrop[_ngcontent-%COMP%]{background-color:#ff69b4} .dropdown-menu{max-width:initial} .dropdown-menu .dropdown-item{display:flex;align-items:center;padding:3px 24px} .dropdown-menu .dropdown-item clr-icon{margin-inline-end:3px} .dropdown-menu .dropdown-item:focus{outline:var(--color-dropdown-item-focus-outline) solid 1px;outline-offset:1px 0}.dropdown.open[_ngcontent-%COMP%] > .dropdown-menu[_ngcontent-%COMP%]{position:relative;top:0;height:100%;overflow-y:auto}[_nghost-%COMP%]{opacity:1;transition:opacity .3s}
|
|
5817
5817
|
/*# sourceMappingURL=dropdown-menu.component-CDLNXERI.css.map */`],changeDetection:0})}}return n})();var Zn=(()=>{class n{constructor(e,i){this.dropdown=e,this.elementRef=i,e.setTriggerElement(this.elementRef)}onDropdownTriggerClick(e){this.dropdown.toggleOpen()}static{this.\u0275fac=function(i){return new(i||n)(x(kn),x(jt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","vdrDropdownTrigger",""]],hostBindings:function(i,a){i&1&&Z("click",function(o){return a.onDropdownTriggerClick(o)})},standalone:!1})}}return n})();var Da=(()=>{class n{constructor(e){this.dropdown=e}onDropdownItemClick(){return Oo(this,null,function*(){(yield this.dropdown).onClick()})}static{this.\u0275fac=function(i){return new(i||n)(x(kn))}}static{this.\u0275dir=Ne({type:n,selectors:[["","vdrDropdownItem",""]],hostVars:2,hostBindings:function(i,a){i&1&&Z("click",function(o){return a.onDropdownItemClick(o)}),i&2&&ve("dropdown-item",!0)},standalone:!1})}}return n})();var U2=(()=>{class n{constructor(){this.type="info"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-status-badge"]],inputs:{type:"type"},standalone:!1,decls:1,vars:2,consts:[[1,"status-badge"]],template:function(i,a){i&1&&H(0,"div",0),i&2&&nA(a.type)},styles:[`[_nghost-%COMP%]{display:block;position:absolute}.status-badge[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;border:1px solid var(--color-component-border-100)}.status-badge.info[_ngcontent-%COMP%]{background-color:var(--color-primary-600)}.status-badge.success[_ngcontent-%COMP%]{background-color:var(--color-success-600)}.status-badge.warning[_ngcontent-%COMP%]{background-color:var(--color-warning-600)}.status-badge.error[_ngcontent-%COMP%]{background-color:var(--color-error-600)}
|
|
5818
5818
|
/*# sourceMappingURL=status-badge.component-VYJ2QQ5W.css.map */`],changeDetection:0})}}return n})();function h7e(n,t){n&1&&H(0,"vdr-status-badge",7),n&2&&y("type","warning")}function f7e(n,t){n&1&&H(0,"clr-icon",12)}function g7e(n,t){if(n&1){let e=de();S(0,"button",10),Z("click",function(){let a=G(e).$implicit;return W(a.runAction())}),P(1,f7e,1,0,"clr-icon",11),E(2),T(3,"translate"),_()}if(n&2){let e=t.$implicit;y("disabled",e.hasRun),f(),y("ngIf",e.hasRun),f(),ie(" ",it(3,3,e.label.text,e.label.translationVars)," ")}}function v7e(n,t){if(n&1&&(Be(0),P(1,g7e,4,6,"button",9),je()),n&2){let e=I().ngIf;f(),y("ngForOf",e)}}function k7e(n,t){if(n&1&&(Be(0),P(1,v7e,2,1,"ng-container",8),je()),n&2){let e=t.ngIf;I();let i=Lt(10);f(),y("ngIf",e.length)("ngIfElse",i)}}function y7e(n,t){n&1&&(S(0,"div",13),H(1,"clr-icon",14),S(2,"span"),E(3),T(4,"translate"),_()()),n&2&&(f(3),te(O(4,1,"common.no-alerts")))}var dse=(()=>{class n{constructor(e){this.alertsService=e,this.hasAlerts$=e.activeAlerts$.pipe(ae(i=>i.filter(a=>!a.hasRun).length>0)),this.activeAlerts$=e.activeAlerts$}static{this.\u0275fac=function(i){return new(i||n)(x(P0))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-alerts"]],standalone:!1,decls:11,vars:6,consts:[["noAlerts",""],["vdrDropdownTrigger","",1,"alerts-button"],[3,"type",4,"ngIf"],[1,"user-circle"],["shape","bell","size","16"],["vdrPosition","bottom-right"],[4,"ngIf"],[3,"type"],[4,"ngIf","ngIfElse"],["vdrDropdownItem","",3,"disabled","click",4,"ngFor","ngForOf"],["vdrDropdownItem","",3,"click","disabled"],["shape","check is-success",4,"ngIf"],["shape","check is-success"],[1,"no-alerts"],["shape","check",1,"mr-1"]],template:function(i,a){i&1&&(S(0,"vdr-dropdown")(1,"button",1),P(2,h7e,1,1,"vdr-status-badge",2),T(3,"async"),S(4,"div",3),H(5,"clr-icon",4),_()(),S(6,"vdr-dropdown-menu",5),P(7,k7e,2,2,"ng-container",6),T(8,"async"),P(9,y7e,5,3,"ng-template",null,0,an),_()()),i&2&&(f(2),y("ngIf",O(3,2,a.hasAlerts$)),f(5),y("ngIf",O(8,4,a.activeAlerts$)))},dependencies:[wt,_e,Qe,kn,jn,Zn,Da,U2,gt,Te],styles:[`.alerts-button[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:space-between;border:none;font-size:var(--font-size-sm);width:100%;line-height:100%;height:40px;color:var(--color-text-100);background-color:var(--color-page-header-item-bg);border-radius:var(--border-radius-lg);cursor:pointer;padding:calc(var(--space-unit) * 1.5)}.alerts-button[_ngcontent-%COMP%]:hover{color:var(--color-text-200)}vdr-status-badge[_ngcontent-%COMP%]{position:absolute;top:9px;right:9px}.no-alerts[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;color:var(--color-text-300);font-size:var(--font-size-sm);padding:0 calc(var(--space-unit) * 1.5)}
|
|
5819
|
-
/*# sourceMappingURL=alerts.component-665M2IYK.css.map */`],changeDetection:0})}}return n})();var cse="3.3.8-master-202507290247";var S7e=["content"],_7e=["scroll"],b7e=["padding"],pse=["*"],_y=n=>({searchTerm:n});function N7e(n,t){if(n&1&&(S(0,"div",3),Ci(1,6),_()),n&2){let e=I();f(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Tn(2,_y,e.filterValue))}}function F7e(n,t){if(n&1&&(S(0,"div",5),Ci(1,6),_()),n&2){let e=I();f(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Tn(2,_y,e.filterValue))}}var D7e=["searchInput"],w7e=["clearButton"],I7e=(n,t,e)=>({item:n,clear:t,label:e}),A7e=(n,t)=>({items:n,clear:t}),x7e=(n,t,e,i)=>({item:n,item$:t,index:e,searchTerm:i});function T7e(n,t){if(n&1&&(S(0,"div",19),E(1),_()),n&2){let e=I(2);f(),te(e.placeholder)}}function E7e(n,t){}function M7e(n,t){if(n&1&&P(0,T7e,2,1,"ng-template",null,1,an)(2,E7e,0,0,"ng-template",18),n&2){let e=Lt(1),i=I();f(2),y("ngTemplateOutlet",i.placeholderTemplate||e)}}function O7e(n,t){if(n&1){let e=de();S(0,"span",22),Z("click",function(){G(e);let a=I().$implicit,r=I(2);return W(r.unselect(a))}),E(1,"\xD7"),_(),H(2,"span",23)}if(n&2){let e=I().$implicit,i=I(2);f(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function V7e(n,t){}function P7e(n,t){if(n&1&&(S(0,"div",21),P(1,O7e,3,2,"ng-template",null,2,an)(3,V7e,0,0,"ng-template",12),_()),n&2){let e=t.$implicit,i=Lt(2),a=I(2);ve("ng-value-disabled",e.disabled),f(3),y("ngTemplateOutlet",a.labelTemplate||i)("ngTemplateOutletContext",E_(4,I7e,e.value,a.clearItem,e.label))}}function L7e(n,t){if(n&1&&aA(0,P7e,4,8,"div",20,iA().trackByOption,!0),n&2){let e=I();rA(e.selectedItems)}}function R7e(n,t){}function H7e(n,t){if(n&1&&P(0,R7e,0,0,"ng-template",12),n&2){let e=I();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",vd(2,A7e,e.selectedValues,e.clearItem))}}function B7e(n,t){n&1&&H(0,"div",24)}function j7e(n,t){}function Z7e(n,t){if(n&1&&P(0,B7e,1,0,"ng-template",null,3,an)(2,j7e,0,0,"ng-template",18),n&2){let e=Lt(1),i=I();f(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function $7e(n,t){if(n&1&&Ci(0,18),n&2){let e=I(2);y("ngTemplateOutlet",e.clearButtonTemplate)}}function U7e(n,t){if(n&1&&(S(0,"span",25,4)(2,"span",26),E(3,"\xD7"),_()()),n&2){let e=I(2);oA("title",e.clearAllText),Ot("tabindex",e.tabFocusOnClearButton()?0:-1)}}function z7e(n,t){if(n&1&&P(0,$7e,1,1,"ng-container",18)(1,U7e,4,2,"span",25),n&2){let e=I();kl(e.clearButtonTemplate?0:1)}}function G7e(n,t){if(n&1&&H(0,"span",31),n&2){let e=I().$implicit,i=I(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function W7e(n,t){}function q7e(n,t){if(n&1){let e=de();S(0,"div",30),Z("click",function(){let a=G(e).$implicit,r=I(2);return W(r.toggleItem(a))})("mouseover",function(){let a=G(e).$implicit,r=I(2);return W(r.onItemHover(a))}),P(1,G7e,1,2,"ng-template",null,5,an)(3,W7e,0,0,"ng-template",12),_()}if(n&2){let e=t.$implicit,i=Lt(2),a=I(2);ve("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===a.itemsList.markedItem),Ot("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",a.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),y("ngTemplateOutlet",e.children?a.optgroupTemplate||i:a.optionTemplate||i)("ngTemplateOutletContext",M_(19,x7e,e.value,e,e.index,a.searchTerm))}}function Q7e(n,t){if(n&1&&(S(0,"span")(1,"span",33),E(2),_(),E(3),_()),n&2){let e=I(3);f(2),te(e.addTagText),f(),ie('"',e.searchTerm,'"')}}function Y7e(n,t){}function K7e(n,t){if(n&1){let e=de();S(0,"div",32),Z("mouseover",function(){G(e);let a=I(2);return W(a.itemsList.unmarkItem())})("click",function(){G(e);let a=I(2);return W(a.selectTag())}),P(1,Q7e,4,2,"ng-template",null,6,an)(3,Y7e,0,0,"ng-template",12),_()}if(n&2){let e=Lt(2),i=I(2);ve("ng-option-marked",!i.itemsList.markedItem),f(3),y("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",Tn(4,_y,i.searchTerm))}}function J7e(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.notFoundText)}}function X7e(n,t){}function eFe(n,t){if(n&1&&P(0,J7e,2,1,"ng-template",null,7,an)(2,X7e,0,0,"ng-template",12),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",Tn(2,_y,i.searchTerm))}}function tFe(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.typeToSearchText)}}function nFe(n,t){}function iFe(n,t){if(n&1&&P(0,tFe,2,1,"ng-template",null,8,an)(2,nFe,0,0,"ng-template",18),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function aFe(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.loadingText)}}function rFe(n,t){}function oFe(n,t){if(n&1&&P(0,aFe,2,1,"ng-template",null,9,an)(2,rFe,0,0,"ng-template",12),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",Tn(2,_y,i.searchTerm))}}function lFe(n,t){if(n&1){let e=de();S(0,"ng-dropdown-panel",27),Z("update",function(a){G(e);let r=I();return W(r.viewPortItems=a)})("scroll",function(a){G(e);let r=I();return W(r.scroll.emit(a))})("scrollToEnd",function(a){G(e);let r=I();return W(r.scrollToEnd.emit(a))})("outsideClick",function(){G(e);let a=I();return W(a.close())}),Be(1),aA(2,q7e,4,24,"div",28,iA().trackByOption,!0),P(4,K7e,4,6,"div",29),je(),P(5,eFe,3,4)(6,iFe,3,1)(7,oFe,3,4),_()}if(n&2){let e=I();ve("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),Ot("aria-label",e.ariaLabelDropdown),f(2),rA(e.viewPortItems),f(2),kl(e.showAddTag?4:-1),f(),kl(e.showNoItemsFound()?5:-1),f(),kl(e.showTypeToSearch()?6:-1),f(),kl(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var hse=/[&<>"']/g,sFe=RegExp(hse.source),dFe={"&":"&","<":"<",">":">",'"':""","'":"'"};function cFe(n){return n&&sFe.test(n)?n.replace(hse,t=>dFe[t]):n}function ja(n){return n!=null}function Sy(n){return typeof n=="object"&&ja(n)}function uFe(n){return n instanceof Promise}function L6(n){return n instanceof Function}var mFe=(()=>{class n{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?cFe(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(i){return new(i||n)(x(jt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[Dn]})}}return n})(),Za=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-option-tmp",""]]})}}return n})(),pFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-optgroup-tmp",""]]})}}return n})(),Tr=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-label-tmp",""]]})}}return n})(),hFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-multi-label-tmp",""]]})}}return n})(),by=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-header-tmp",""]]})}}return n})(),fFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-footer-tmp",""]]})}}return n})(),gFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-notfound-tmp",""]]})}}return n})(),vFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-placeholder-tmp",""]]})}}return n})(),kFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-typetosearch-tmp",""]]})}}return n})(),yFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-loadingtext-tmp",""]]})}}return n})(),CFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-tag-tmp",""]]})}}return n})(),SFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-loadingspinner-tmp",""]]})}}return n})(),_Fe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-clearbutton-tmp",""]]})}}return n})();function fse(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var bFe={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function P6(n){let t=e=>bFe[e]||e;return n.replace(/[^\u0000-\u007E]/g,t)}var kV=class{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((e,i)=>this.mapItem(e,i)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&ja(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return this._ngSelect.compareWith?e=i=>this._ngSelect.compareWith(i.value,t):this._ngSelect.bindValue?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===t:e=i=>i.value===t||!i.children&&i.label&&i.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(t){let e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=P6(t).toLocaleLowerCase(),this.filteredItems.find(e=>P6(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:P6(t).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(let a of Array.from(this._groups.keys())){let r=[];for(let o of this._groups.get(a)){if(i&&(o.parent&&o.parent.selected||o.selected))continue;let l=this._ngSelect.searchFn?o.value:o;e(t,l)&&r.push(o)}if(r.length>0){let[o]=r.slice(-1);if(o.parent){let l=this._items.find(s=>s===o.parent);this._filteredItems.push(l)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=t?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(t,e){if(!Sy(t))return t;if(e.indexOf(".")===-1)return t[e];{let i=e.split("."),a=t;for(let r=0,o=i.length;r<o;++r){if(a==null)return null;a=a[i[r]]}return a}}mapItem(t,e){let i=ja(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),a=ja(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:ja(i)?i.toString():"",value:a,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let e of this.selectedItems){let i=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,a=ja(i)?this.findItem(i):null;this._selectionModel.unselect(e,t),this._selectionModel.select(a||e,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let e=t.parent;this._filteredItems.find(a=>a===e)||this._filteredItems.push(e)}else if(t.children)for(let e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return P6(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){let i=new Map;if(t.length===0)return i;if(Array.isArray(t[0].value[e])){for(let o of t){let l=(o.value[e]||[]).map((s,d)=>this.mapItem(s,d));i.set(o,l)}return i}let a=L6(this._ngSelect.groupBy),r=o=>{let l=a?e(o.value):o.value[e];return ja(l)?l:void 0};for(let o of t){let l=r(o),s=i.get(l);s?s.push(o):i.set(l,[o])}return i}_flatten(t){let e=L6(this._ngSelect.groupBy),i=[];for(let a of Array.from(t.keys())){let r=i.length;if(a===void 0){let p=t.get(void 0)||[];i.push(...p.map(h=>(h.index=r++,h)));continue}let o=Sy(a),l={label:o?"":String(a),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:fse()},s=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,d=this._ngSelect.groupValue||(()=>o?a.value:{[s]:a}),u=t.get(a).map(p=>(p.parent=l,p.children=void 0,p.index=r++,p));l.children=u,l.value=d(a,u.map(p=>p.value)),i.push(l),i.push(...u)}return i}},gse=(()=>{class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,a){let r=this._dimensions,o=r.itemHeight*i,s=Math.max(0,e)/o*i,d=Math.min(i,Math.ceil(s)+(r.itemsPerViewport+1)),p=Math.max(0,d-r.itemsPerViewport),h=Math.min(p,Math.floor(s)),g=r.itemHeight*Math.ceil(h)-r.itemHeight*Math.min(h,a);return g=isNaN(g)?0:g,h=isNaN(h)?-1:h,d=isNaN(d)?-1:d,h-=a,h=Math.max(0,h),d+=a,d=Math.min(i,d),{topPadding:g,scrollHeight:o,start:h,end:d}}setDimensions(e,i){let a=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:a}}getScrollTo(e,i,a){let{panelHeight:r}=this.dimensions,o=e+i,l=a,s=l+r;return r>=o&&a===e?null:o>s?l+o-s:e<=l?e:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),use=["top","right","bottom","left"],NFe=typeof requestAnimationFrame<"u"?Zh:t4,mse=(()=>{class n{constructor(e,i,a,r,o){this._renderer=e,this._zone=i,this._panelService=a,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new Fe,this.scroll=new Fe,this.scrollToEnd=new Fe,this.outsideClick=new Fe,this._destroy$=new ke,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,a=this.markedItem.index*e;return i>a?0:a}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let a=this.items.indexOf(e);if(a<0||a>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(a*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),l=i?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,l)}ja(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),use.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){use.forEach(a=>{let r=`ng-select-${a}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Fr(this.scrollElementRef.nativeElement,"scroll").pipe(Ut(this._destroy$),Wh(0,NFe)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let a=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(a)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Ri(Fr(this._document,"touchstart",{capture:!0}),Fr(this._document,"click",{capture:!0})).pipe(Ut(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),ja(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let a=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${a*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(a,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,o=i.height,l=e.getBoundingClientRect().height;return r+o+l>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo):document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.left-i.left;this._dropdown.style.left=a+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+a+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+a+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Fr(this._dropdown,"mousedown").pipe(Ut(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(i){return new(i||n)(x(ta),x(un),x(gse),x(jt),x(Fn,8))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,a){if(i&1&&(It(S7e,7,jt),It(_7e,7,jt),It(b7e,7,jt)),i&2){let r;Ae(r=xe())&&(a.contentElementRef=r.first),Ae(r=xe())&&(a.scrollElementRef=r.first),Ae(r=xe())&&(a.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",si],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Dn],ngContentSelectors:pse,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,a){i&1&&(Dt(),P(0,N7e,2,4,"div",3),S(1,"div",4,0),H(3,"div",null,1),S(5,"div",null,2),lt(7),_()(),P(8,F7e,2,4,"div",5)),i&2&&(kl(a.headerTemplate?0:-1),f(3),ve("total-padding",a.virtualScroll),f(2),ve("scrollable-content",a.virtualScroll&&a.items.length),f(3),kl(a.footerTemplate?8:-1))},dependencies:[Ga],encapsulation:2,changeDetection:0})}}return n})(),Ny=(()=>{class n{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new ke}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(i){return new(i||n)(x(jt))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",si]},features:[Dn],ngContentSelectors:pse,decls:1,vars:0,template:function(i,a){i&1&&(Dt(),lt(0))},encapsulation:2,changeDetection:0})}}return n})(),xc=function(n){return n.Tab="Tab",n.Enter="Enter",n.Esc="Escape",n.Space=" ",n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.Backspace="Backspace",n}(xc||{});function vse(){return new yV}var yV=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,i){if(t.selected=!0,(!t.children||!e&&i)&&this._selected.push(t),e)if(t.parent){let a=t.parent.children.length,r=t.parent.children.filter(o=>o.selected).length;t.parent.selected=a===r}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),i&&this._activeChildren(t)?this._selected=[...this._selected.filter(a=>a.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(a=>!a.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(i=>i!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){let i=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...i.filter(a=>a!==t&&!a.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(t,e){for(let i of t)i.disabled||(i.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(e=>!e.disabled||e.selected)}},FFe=(()=>{class n{constructor(){this.fixedPlaceholder=!1,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),DFe=(()=>{class n{warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),z2=new Ye("ng-select-selection-model"),Ui=(()=>{class n{constructor(e,i,a,r,o,l,s){this.classes=e,this.autoFocus=i,this.config=a,this._cd=l,this._console=s,this.ariaLabelDropdown="Options List",this.markFirst=!0,this.fixedPlaceholder=!1,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.tabFocusOnClearButton=k_(!0,{transform:si}),this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new Fe,this.focusEvent=new Fe,this.changeEvent=new Fe,this.openEvent=new Fe,this.closeEvent=new Fe,this.searchEvent=new Fe,this.clearEvent=new Fe,this.addEvent=new Fe,this.removeEvent=new Fe,this.scroll=new Fe,this.scrollToEnd=new Fe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=fse(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ke,this._keyPress$=new ke,this._items=[],this.keyDownFn=d=>!0,this.clearItem=d=>{let u=this.selectedItems.find(p=>p.value===d);this.unselect(u)},this.trackByOption=(d,u)=>this.trackByFn?this.trackByFn(u.value):u,this._onChange=d=>{},this._onTouched=()=>{},this._mergeGlobalConfig(a),this.itemsList=new kV(this,r?r():vse()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!L6(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return ja(this._clearSearchOnAdd)?this._clearSearchOnAdd:ja(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return ja(this._deselectOnClick)?this._deselectOnClick:ja(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm?.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=ja(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items])),e.inputAttrs&&this._setInputAttributes()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ja(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){let i=e.key;if(Object.values(xc).includes(i)){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else i&&i.length===1&&this._keyPress$.next(i.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case xc.ArrowDown:this._handleArrowDown(e);break;case xc.ArrowUp:this._handleArrowUp(e);break;case xc.Space:this._handleSpace(e);break;case xc.Enter:this._handleEnter(e);break;case xc.Tab:this._handleTab(e);break;case xc.Esc:this.close(),e.preventDefault();break;case xc.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.key){case xc.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;L6(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=a=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(a,null):this.itemsList.addItem(a);uFe(e)?e.then(a=>this.select(i(a))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this.searchTerm=e?.label??null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ja(i)?!Sy(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ja(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=a=>{this.items=a.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let a=Ri(this.ngOptions.changes,this._destroy$);Ri(...this.ngOptions.map(r=>r.stateChange$)).pipe(Ut(a)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Mn(this.ngOptions),Ut(this._destroy$)).subscribe(a=>{this.bindLabel=this._defaultLabel,e(a),i()})}_isValidWriteValue(e){if(!ja(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=a=>!ja(this.compareWith)&&Sy(a)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(a)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(a=>i(a)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=a=>{let r=this.itemsList.findItem(a);if(r)this.itemsList.select(r);else{let o=Sy(a),l=!o&&!this.bindValue;o||l?this.itemsList.select(this.itemsList.mapItem(a,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:a},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(a=>i(a)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(Ut(this._destroy$),Bt(e=>this._pressedKeys.push(e)),aa(200),_n(()=>this._pressedKeys.length>0),ae(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=q({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let a of Object.keys(i))e.setAttribute(a,i[a])}_updateNgModel(){let e=[];for(let a of this.selectedItems)if(this.bindValue){let r=null;if(a.children){let o=this.groupValue?this.bindValue:this.groupBy;r=a.value[o||this.groupBy]}else r=this.itemsList.resolveNested(a.value,this.bindValue);e.push(r)}else e.push(a.value);let i=this.selectedItems.map(a=>a.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(ja(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClearButton())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=this.getVirtualScroll(e),this.openOnEnter=ja(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}getVirtualScroll(e){return ja(this.virtualScroll)?this.virtualScroll:this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return ja(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(i){return new(i||n)(Em("class"),Em("autofocus"),x(FFe),x(z2,8),x(jt),x(dt),x(DFe))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-select"]],contentQueries:function(i,a,r){if(i&1&&(tn(r,Za,5,Tt),tn(r,pFe,5,Tt),tn(r,Tr,5,Tt),tn(r,hFe,5,Tt),tn(r,by,5,Tt),tn(r,fFe,5,Tt),tn(r,gFe,5,Tt),tn(r,vFe,5,Tt),tn(r,kFe,5,Tt),tn(r,yFe,5,Tt),tn(r,CFe,5,Tt),tn(r,SFe,5,Tt),tn(r,_Fe,5,Tt),tn(r,Ny,5)),i&2){let o;Ae(o=xe())&&(a.optionTemplate=o.first),Ae(o=xe())&&(a.optgroupTemplate=o.first),Ae(o=xe())&&(a.labelTemplate=o.first),Ae(o=xe())&&(a.multiLabelTemplate=o.first),Ae(o=xe())&&(a.headerTemplate=o.first),Ae(o=xe())&&(a.footerTemplate=o.first),Ae(o=xe())&&(a.notFoundTemplate=o.first),Ae(o=xe())&&(a.placeholderTemplate=o.first),Ae(o=xe())&&(a.typeToSearchTemplate=o.first),Ae(o=xe())&&(a.loadingTextTemplate=o.first),Ae(o=xe())&&(a.tagTemplate=o.first),Ae(o=xe())&&(a.loadingSpinnerTemplate=o.first),Ae(o=xe())&&(a.clearButtonTemplate=o.first),Ae(o=xe())&&(a.ngOptions=o)}},viewQuery:function(i,a){if(i&1&&(It(mse,5),It(D7e,7),It(w7e,5)),i&2){let r;Ae(r=xe())&&(a.dropdownPanel=r.first),Ae(r=xe())&&(a.searchInput=r.first),Ae(r=xe())&&(a.clearButton=r.first)}},hostVars:20,hostBindings:function(i,a){i&1&&Z("keydown",function(o){return a.handleKeyDown(o)}),i&2&&ve("ng-select-typeahead",a.typeahead)("ng-select-multiple",a.multiple)("ng-select-taggable",a.addTag)("ng-select-searchable",a.searchable)("ng-select-clearable",a.clearable)("ng-select-opened",a.isOpen)("ng-select",a.useDefaultClass)("ng-select-filtered",a.filtered)("ng-select-single",a.single)("ng-select-disabled",a.disabled)},inputs:{ariaLabelDropdown:"ariaLabelDropdown",bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",si],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",si],closeOnSelect:[2,"closeOnSelect","closeOnSelect",si],hideSelected:[2,"hideSelected","hideSelected",si],selectOnTab:[2,"selectOnTab","selectOnTab",si],openOnEnter:[2,"openOnEnter","openOnEnter",si],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Pm],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Pm],virtualScroll:[2,"virtualScroll","virtualScroll",si],selectableGroup:[2,"selectableGroup","selectableGroup",si],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",si],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",si],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Pm],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],readonly:[2,"readonly","readonly",si],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",si],minTermLength:[2,"minTermLength","minTermLength",Pm],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",si],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",si],addTag:"addTag",searchable:[2,"searchable","searchable",si],clearable:[2,"clearable","clearable",si],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Mt([{provide:Oi,useExisting:Xi(()=>n),multi:!0},gse]),Dn],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,a){if(i&1){let r=de();S(0,"div",10),Z("mousedown",function(l){return G(r),W(a.handleMousedown(l))}),S(1,"div",11),P(2,M7e,3,1)(3,L7e,2,0)(4,H7e,1,5,null,12),S(5,"div",13)(6,"input",14,0),Z("blur",function(l){return G(r),W(a.onInputBlur(l))})("change",function(l){return G(r),W(l.stopPropagation())})("compositionend",function(){G(r);let l=Lt(7);return W(a.onCompositionEnd(l.value))})("compositionstart",function(){return G(r),W(a.onCompositionStart())})("focus",function(l){return G(r),W(a.onInputFocus(l))})("input",function(){G(r);let l=Lt(7);return W(a.filter(l.value))}),_()()(),P(8,Z7e,3,1)(9,z7e,2,1),S(10,"span",15),H(11,"span",16),_()(),P(12,lFe,8,18,"ng-dropdown-panel",17)}if(i&2){let r;ve("ng-appearance-outline",a.appearance==="outline")("ng-has-value",a.hasValue),f(2),kl(a.selectedItems.length===0&&!a.searchTerm||a.fixedPlaceholder?2:-1),f(),kl((!a.multiLabelTemplate||!a.multiple)&&a.selectedItems.length>0?3:-1),f(),kl(a.multiple&&a.multiLabelTemplate&&a.selectedValues.length>0?4:-1),f(2),y("disabled",a.disabled)("readOnly",!a.searchable||a.itemsList.maxItemsSelected)("value",(r=a.searchTerm)!==null&&r!==void 0?r:""),Ot("aria-activedescendant",a.isOpen?a.itemsList==null||a.itemsList.markedItem==null?null:a.itemsList.markedItem.htmlId:null)("aria-controls",a.isOpen?a.dropdownId:null)("aria-expanded",a.isOpen)("aria-label",a.ariaLabel)("id",a.labelForId)("tabindex",a.tabIndex),f(2),kl(a.loading?8:-1),f(),kl(a.showClear()?9:-1),f(3),kl(a.isOpen?12:-1)}},dependencies:[Ga,mFe,mse,Ii],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}
|
|
5819
|
+
/*# sourceMappingURL=alerts.component-665M2IYK.css.map */`],changeDetection:0})}}return n})();var cse="3.3.8-master-202507300243";var S7e=["content"],_7e=["scroll"],b7e=["padding"],pse=["*"],_y=n=>({searchTerm:n});function N7e(n,t){if(n&1&&(S(0,"div",3),Ci(1,6),_()),n&2){let e=I();f(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Tn(2,_y,e.filterValue))}}function F7e(n,t){if(n&1&&(S(0,"div",5),Ci(1,6),_()),n&2){let e=I();f(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Tn(2,_y,e.filterValue))}}var D7e=["searchInput"],w7e=["clearButton"],I7e=(n,t,e)=>({item:n,clear:t,label:e}),A7e=(n,t)=>({items:n,clear:t}),x7e=(n,t,e,i)=>({item:n,item$:t,index:e,searchTerm:i});function T7e(n,t){if(n&1&&(S(0,"div",19),E(1),_()),n&2){let e=I(2);f(),te(e.placeholder)}}function E7e(n,t){}function M7e(n,t){if(n&1&&P(0,T7e,2,1,"ng-template",null,1,an)(2,E7e,0,0,"ng-template",18),n&2){let e=Lt(1),i=I();f(2),y("ngTemplateOutlet",i.placeholderTemplate||e)}}function O7e(n,t){if(n&1){let e=de();S(0,"span",22),Z("click",function(){G(e);let a=I().$implicit,r=I(2);return W(r.unselect(a))}),E(1,"\xD7"),_(),H(2,"span",23)}if(n&2){let e=I().$implicit,i=I(2);f(2),y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function V7e(n,t){}function P7e(n,t){if(n&1&&(S(0,"div",21),P(1,O7e,3,2,"ng-template",null,2,an)(3,V7e,0,0,"ng-template",12),_()),n&2){let e=t.$implicit,i=Lt(2),a=I(2);ve("ng-value-disabled",e.disabled),f(3),y("ngTemplateOutlet",a.labelTemplate||i)("ngTemplateOutletContext",E_(4,I7e,e.value,a.clearItem,e.label))}}function L7e(n,t){if(n&1&&aA(0,P7e,4,8,"div",20,iA().trackByOption,!0),n&2){let e=I();rA(e.selectedItems)}}function R7e(n,t){}function H7e(n,t){if(n&1&&P(0,R7e,0,0,"ng-template",12),n&2){let e=I();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",vd(2,A7e,e.selectedValues,e.clearItem))}}function B7e(n,t){n&1&&H(0,"div",24)}function j7e(n,t){}function Z7e(n,t){if(n&1&&P(0,B7e,1,0,"ng-template",null,3,an)(2,j7e,0,0,"ng-template",18),n&2){let e=Lt(1),i=I();f(2),y("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function $7e(n,t){if(n&1&&Ci(0,18),n&2){let e=I(2);y("ngTemplateOutlet",e.clearButtonTemplate)}}function U7e(n,t){if(n&1&&(S(0,"span",25,4)(2,"span",26),E(3,"\xD7"),_()()),n&2){let e=I(2);oA("title",e.clearAllText),Ot("tabindex",e.tabFocusOnClearButton()?0:-1)}}function z7e(n,t){if(n&1&&P(0,$7e,1,1,"ng-container",18)(1,U7e,4,2,"span",25),n&2){let e=I();kl(e.clearButtonTemplate?0:1)}}function G7e(n,t){if(n&1&&H(0,"span",31),n&2){let e=I().$implicit,i=I(2);y("ngItemLabel",e.label)("escape",i.escapeHTML)}}function W7e(n,t){}function q7e(n,t){if(n&1){let e=de();S(0,"div",30),Z("click",function(){let a=G(e).$implicit,r=I(2);return W(r.toggleItem(a))})("mouseover",function(){let a=G(e).$implicit,r=I(2);return W(r.onItemHover(a))}),P(1,G7e,1,2,"ng-template",null,5,an)(3,W7e,0,0,"ng-template",12),_()}if(n&2){let e=t.$implicit,i=Lt(2),a=I(2);ve("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===a.itemsList.markedItem),Ot("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",a.itemsList.filteredItems.length)("aria-posinset",e.index+1),f(3),y("ngTemplateOutlet",e.children?a.optgroupTemplate||i:a.optionTemplate||i)("ngTemplateOutletContext",M_(19,x7e,e.value,e,e.index,a.searchTerm))}}function Q7e(n,t){if(n&1&&(S(0,"span")(1,"span",33),E(2),_(),E(3),_()),n&2){let e=I(3);f(2),te(e.addTagText),f(),ie('"',e.searchTerm,'"')}}function Y7e(n,t){}function K7e(n,t){if(n&1){let e=de();S(0,"div",32),Z("mouseover",function(){G(e);let a=I(2);return W(a.itemsList.unmarkItem())})("click",function(){G(e);let a=I(2);return W(a.selectTag())}),P(1,Q7e,4,2,"ng-template",null,6,an)(3,Y7e,0,0,"ng-template",12),_()}if(n&2){let e=Lt(2),i=I(2);ve("ng-option-marked",!i.itemsList.markedItem),f(3),y("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",Tn(4,_y,i.searchTerm))}}function J7e(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.notFoundText)}}function X7e(n,t){}function eFe(n,t){if(n&1&&P(0,J7e,2,1,"ng-template",null,7,an)(2,X7e,0,0,"ng-template",12),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",Tn(2,_y,i.searchTerm))}}function tFe(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.typeToSearchText)}}function nFe(n,t){}function iFe(n,t){if(n&1&&P(0,tFe,2,1,"ng-template",null,8,an)(2,nFe,0,0,"ng-template",18),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function aFe(n,t){if(n&1&&(S(0,"div",34),E(1),_()),n&2){let e=I(3);f(),te(e.loadingText)}}function rFe(n,t){}function oFe(n,t){if(n&1&&P(0,aFe,2,1,"ng-template",null,9,an)(2,rFe,0,0,"ng-template",12),n&2){let e=Lt(1),i=I(2);f(2),y("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",Tn(2,_y,i.searchTerm))}}function lFe(n,t){if(n&1){let e=de();S(0,"ng-dropdown-panel",27),Z("update",function(a){G(e);let r=I();return W(r.viewPortItems=a)})("scroll",function(a){G(e);let r=I();return W(r.scroll.emit(a))})("scrollToEnd",function(a){G(e);let r=I();return W(r.scrollToEnd.emit(a))})("outsideClick",function(){G(e);let a=I();return W(a.close())}),Be(1),aA(2,q7e,4,24,"div",28,iA().trackByOption,!0),P(4,K7e,4,6,"div",29),je(),P(5,eFe,3,4)(6,iFe,3,1)(7,oFe,3,4),_()}if(n&2){let e=I();ve("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),Ot("aria-label",e.ariaLabelDropdown),f(2),rA(e.viewPortItems),f(2),kl(e.showAddTag?4:-1),f(),kl(e.showNoItemsFound()?5:-1),f(),kl(e.showTypeToSearch()?6:-1),f(),kl(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var hse=/[&<>"']/g,sFe=RegExp(hse.source),dFe={"&":"&","<":"<",">":">",'"':""","'":"'"};function cFe(n){return n&&sFe.test(n)?n.replace(hse,t=>dFe[t]):n}function ja(n){return n!=null}function Sy(n){return typeof n=="object"&&ja(n)}function uFe(n){return n instanceof Promise}function L6(n){return n instanceof Function}var mFe=(()=>{class n{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?cFe(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(i){return new(i||n)(x(jt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[Dn]})}}return n})(),Za=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-option-tmp",""]]})}}return n})(),pFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-optgroup-tmp",""]]})}}return n})(),Tr=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-label-tmp",""]]})}}return n})(),hFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-multi-label-tmp",""]]})}}return n})(),by=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-header-tmp",""]]})}}return n})(),fFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-footer-tmp",""]]})}}return n})(),gFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-notfound-tmp",""]]})}}return n})(),vFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-placeholder-tmp",""]]})}}return n})(),kFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-typetosearch-tmp",""]]})}}return n})(),yFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-loadingtext-tmp",""]]})}}return n})(),CFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-tag-tmp",""]]})}}return n})(),SFe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-loadingspinner-tmp",""]]})}}return n})(),_Fe=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(x(Tt))}}static{this.\u0275dir=Ne({type:n,selectors:[["","ng-clearbutton-tmp",""]]})}}return n})();function fse(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var bFe={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function P6(n){let t=e=>bFe[e]||e;return n.replace(/[^\u0000-\u007E]/g,t)}var kV=class{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((e,i)=>this.mapItem(e,i)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&ja(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return this._ngSelect.compareWith?e=i=>this._ngSelect.compareWith(i.value,t):this._ngSelect.bindValue?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===t:e=i=>i.value===t||!i.children&&i.label&&i.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(t){let e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=P6(t).toLocaleLowerCase(),this.filteredItems.find(e=>P6(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:P6(t).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(let a of Array.from(this._groups.keys())){let r=[];for(let o of this._groups.get(a)){if(i&&(o.parent&&o.parent.selected||o.selected))continue;let l=this._ngSelect.searchFn?o.value:o;e(t,l)&&r.push(o)}if(r.length>0){let[o]=r.slice(-1);if(o.parent){let l=this._items.find(s=>s===o.parent);this._filteredItems.push(l)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=t?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(t,e){if(!Sy(t))return t;if(e.indexOf(".")===-1)return t[e];{let i=e.split("."),a=t;for(let r=0,o=i.length;r<o;++r){if(a==null)return null;a=a[i[r]]}return a}}mapItem(t,e){let i=ja(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),a=ja(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:ja(i)?i.toString():"",value:a,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let e of this.selectedItems){let i=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,a=ja(i)?this.findItem(i):null;this._selectionModel.unselect(e,t),this._selectionModel.select(a||e,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let e=t.parent;this._filteredItems.find(a=>a===e)||this._filteredItems.push(e)}else if(t.children)for(let e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return P6(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){let i=new Map;if(t.length===0)return i;if(Array.isArray(t[0].value[e])){for(let o of t){let l=(o.value[e]||[]).map((s,d)=>this.mapItem(s,d));i.set(o,l)}return i}let a=L6(this._ngSelect.groupBy),r=o=>{let l=a?e(o.value):o.value[e];return ja(l)?l:void 0};for(let o of t){let l=r(o),s=i.get(l);s?s.push(o):i.set(l,[o])}return i}_flatten(t){let e=L6(this._ngSelect.groupBy),i=[];for(let a of Array.from(t.keys())){let r=i.length;if(a===void 0){let p=t.get(void 0)||[];i.push(...p.map(h=>(h.index=r++,h)));continue}let o=Sy(a),l={label:o?"":String(a),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:fse()},s=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,d=this._ngSelect.groupValue||(()=>o?a.value:{[s]:a}),u=t.get(a).map(p=>(p.parent=l,p.children=void 0,p.index=r++,p));l.children=u,l.value=d(a,u.map(p=>p.value)),i.push(l),i.push(...u)}return i}},gse=(()=>{class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,a){let r=this._dimensions,o=r.itemHeight*i,s=Math.max(0,e)/o*i,d=Math.min(i,Math.ceil(s)+(r.itemsPerViewport+1)),p=Math.max(0,d-r.itemsPerViewport),h=Math.min(p,Math.floor(s)),g=r.itemHeight*Math.ceil(h)-r.itemHeight*Math.min(h,a);return g=isNaN(g)?0:g,h=isNaN(h)?-1:h,d=isNaN(d)?-1:d,h-=a,h=Math.max(0,h),d+=a,d=Math.min(i,d),{topPadding:g,scrollHeight:o,start:h,end:d}}setDimensions(e,i){let a=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:a}}getScrollTo(e,i,a){let{panelHeight:r}=this.dimensions,o=e+i,l=a,s=l+r;return r>=o&&a===e?null:o>s?l+o-s:e<=l?e:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),use=["top","right","bottom","left"],NFe=typeof requestAnimationFrame<"u"?Zh:t4,mse=(()=>{class n{constructor(e,i,a,r,o){this._renderer=e,this._zone=i,this._panelService=a,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new Fe,this.scroll=new Fe,this.scrollToEnd=new Fe,this.outsideClick=new Fe,this._destroy$=new ke,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,a=this.markedItem.index*e;return i>a?0:a}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let a=this.items.indexOf(e);if(a<0||a>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(a*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),l=i?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,l)}ja(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),use.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){use.forEach(a=>{let r=`ng-select-${a}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Fr(this.scrollElementRef.nativeElement,"scroll").pipe(Ut(this._destroy$),Wh(0,NFe)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let a=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(a)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Ri(Fr(this._document,"touchstart",{capture:!0}),Fr(this._document,"click",{capture:!0})).pipe(Ut(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),ja(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let a=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${a*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(a,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),a=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,o=i.height,l=e.getBoundingClientRect().height;return r+o+l>a+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo):document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.left-i.left;this._dropdown.style.left=a+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),a=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+a+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+a+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Fr(this._dropdown,"mousedown").pipe(Ut(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(i){return new(i||n)(x(ta),x(un),x(gse),x(jt),x(Fn,8))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,a){if(i&1&&(It(S7e,7,jt),It(_7e,7,jt),It(b7e,7,jt)),i&2){let r;Ae(r=xe())&&(a.contentElementRef=r.first),Ae(r=xe())&&(a.scrollElementRef=r.first),Ae(r=xe())&&(a.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",si],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Dn],ngContentSelectors:pse,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,a){i&1&&(Dt(),P(0,N7e,2,4,"div",3),S(1,"div",4,0),H(3,"div",null,1),S(5,"div",null,2),lt(7),_()(),P(8,F7e,2,4,"div",5)),i&2&&(kl(a.headerTemplate?0:-1),f(3),ve("total-padding",a.virtualScroll),f(2),ve("scrollable-content",a.virtualScroll&&a.items.length),f(3),kl(a.footerTemplate?8:-1))},dependencies:[Ga],encapsulation:2,changeDetection:0})}}return n})(),Ny=(()=>{class n{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new ke}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(i){return new(i||n)(x(jt))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",si]},features:[Dn],ngContentSelectors:pse,decls:1,vars:0,template:function(i,a){i&1&&(Dt(),lt(0))},encapsulation:2,changeDetection:0})}}return n})(),xc=function(n){return n.Tab="Tab",n.Enter="Enter",n.Esc="Escape",n.Space=" ",n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.Backspace="Backspace",n}(xc||{});function vse(){return new yV}var yV=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,i){if(t.selected=!0,(!t.children||!e&&i)&&this._selected.push(t),e)if(t.parent){let a=t.parent.children.length,r=t.parent.children.filter(o=>o.selected).length;t.parent.selected=a===r}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),i&&this._activeChildren(t)?this._selected=[...this._selected.filter(a=>a.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(a=>!a.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(i=>i!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){let i=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...i.filter(a=>a!==t&&!a.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(t,e){for(let i of t)i.disabled||(i.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(e=>!e.disabled||e.selected)}},FFe=(()=>{class n{constructor(){this.fixedPlaceholder=!1,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),DFe=(()=>{class n{warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),z2=new Ye("ng-select-selection-model"),Ui=(()=>{class n{constructor(e,i,a,r,o,l,s){this.classes=e,this.autoFocus=i,this.config=a,this._cd=l,this._console=s,this.ariaLabelDropdown="Options List",this.markFirst=!0,this.fixedPlaceholder=!1,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.tabFocusOnClearButton=k_(!0,{transform:si}),this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new Fe,this.focusEvent=new Fe,this.changeEvent=new Fe,this.openEvent=new Fe,this.closeEvent=new Fe,this.searchEvent=new Fe,this.clearEvent=new Fe,this.addEvent=new Fe,this.removeEvent=new Fe,this.scroll=new Fe,this.scrollToEnd=new Fe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=fse(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ke,this._keyPress$=new ke,this._items=[],this.keyDownFn=d=>!0,this.clearItem=d=>{let u=this.selectedItems.find(p=>p.value===d);this.unselect(u)},this.trackByOption=(d,u)=>this.trackByFn?this.trackByFn(u.value):u,this._onChange=d=>{},this._onTouched=()=>{},this._mergeGlobalConfig(a),this.itemsList=new kV(this,r?r():vse()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!L6(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return ja(this._clearSearchOnAdd)?this._clearSearchOnAdd:ja(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return ja(this._deselectOnClick)?this._deselectOnClick:ja(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm?.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=ja(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items])),e.inputAttrs&&this._setInputAttributes()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ja(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){let i=e.key;if(Object.values(xc).includes(i)){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else i&&i.length===1&&this._keyPress$.next(i.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case xc.ArrowDown:this._handleArrowDown(e);break;case xc.ArrowUp:this._handleArrowUp(e);break;case xc.Space:this._handleSpace(e);break;case xc.Enter:this._handleEnter(e);break;case xc.Tab:this._handleTab(e);break;case xc.Esc:this.close(),e.preventDefault();break;case xc.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.key){case xc.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;L6(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=a=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(a,null):this.itemsList.addItem(a);uFe(e)?e.then(a=>this.select(i(a))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this.searchTerm=e?.label??null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ja(i)?!Sy(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ja(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=a=>{this.items=a.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let a=Ri(this.ngOptions.changes,this._destroy$);Ri(...this.ngOptions.map(r=>r.stateChange$)).pipe(Ut(a)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Mn(this.ngOptions),Ut(this._destroy$)).subscribe(a=>{this.bindLabel=this._defaultLabel,e(a),i()})}_isValidWriteValue(e){if(!ja(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=a=>!ja(this.compareWith)&&Sy(a)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(a)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(a=>i(a)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=a=>{let r=this.itemsList.findItem(a);if(r)this.itemsList.select(r);else{let o=Sy(a),l=!o&&!this.bindValue;o||l?this.itemsList.select(this.itemsList.mapItem(a,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:a},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(a=>i(a)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(Ut(this._destroy$),Bt(e=>this._pressedKeys.push(e)),aa(200),_n(()=>this._pressedKeys.length>0),ae(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=q({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let a of Object.keys(i))e.setAttribute(a,i[a])}_updateNgModel(){let e=[];for(let a of this.selectedItems)if(this.bindValue){let r=null;if(a.children){let o=this.groupValue?this.bindValue:this.groupBy;r=a.value[o||this.groupBy]}else r=this.itemsList.resolveNested(a.value,this.bindValue);e.push(r)}else e.push(a.value);let i=this.selectedItems.map(a=>a.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(ja(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClearButton())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=this.getVirtualScroll(e),this.openOnEnter=ja(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}getVirtualScroll(e){return ja(this.virtualScroll)?this.virtualScroll:this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return ja(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(i){return new(i||n)(Em("class"),Em("autofocus"),x(FFe),x(z2,8),x(jt),x(dt),x(DFe))}}static{this.\u0275cmp=$({type:n,selectors:[["ng-select"]],contentQueries:function(i,a,r){if(i&1&&(tn(r,Za,5,Tt),tn(r,pFe,5,Tt),tn(r,Tr,5,Tt),tn(r,hFe,5,Tt),tn(r,by,5,Tt),tn(r,fFe,5,Tt),tn(r,gFe,5,Tt),tn(r,vFe,5,Tt),tn(r,kFe,5,Tt),tn(r,yFe,5,Tt),tn(r,CFe,5,Tt),tn(r,SFe,5,Tt),tn(r,_Fe,5,Tt),tn(r,Ny,5)),i&2){let o;Ae(o=xe())&&(a.optionTemplate=o.first),Ae(o=xe())&&(a.optgroupTemplate=o.first),Ae(o=xe())&&(a.labelTemplate=o.first),Ae(o=xe())&&(a.multiLabelTemplate=o.first),Ae(o=xe())&&(a.headerTemplate=o.first),Ae(o=xe())&&(a.footerTemplate=o.first),Ae(o=xe())&&(a.notFoundTemplate=o.first),Ae(o=xe())&&(a.placeholderTemplate=o.first),Ae(o=xe())&&(a.typeToSearchTemplate=o.first),Ae(o=xe())&&(a.loadingTextTemplate=o.first),Ae(o=xe())&&(a.tagTemplate=o.first),Ae(o=xe())&&(a.loadingSpinnerTemplate=o.first),Ae(o=xe())&&(a.clearButtonTemplate=o.first),Ae(o=xe())&&(a.ngOptions=o)}},viewQuery:function(i,a){if(i&1&&(It(mse,5),It(D7e,7),It(w7e,5)),i&2){let r;Ae(r=xe())&&(a.dropdownPanel=r.first),Ae(r=xe())&&(a.searchInput=r.first),Ae(r=xe())&&(a.clearButton=r.first)}},hostVars:20,hostBindings:function(i,a){i&1&&Z("keydown",function(o){return a.handleKeyDown(o)}),i&2&&ve("ng-select-typeahead",a.typeahead)("ng-select-multiple",a.multiple)("ng-select-taggable",a.addTag)("ng-select-searchable",a.searchable)("ng-select-clearable",a.clearable)("ng-select-opened",a.isOpen)("ng-select",a.useDefaultClass)("ng-select-filtered",a.filtered)("ng-select-single",a.single)("ng-select-disabled",a.disabled)},inputs:{ariaLabelDropdown:"ariaLabelDropdown",bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",si],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",si],closeOnSelect:[2,"closeOnSelect","closeOnSelect",si],hideSelected:[2,"hideSelected","hideSelected",si],selectOnTab:[2,"selectOnTab","selectOnTab",si],openOnEnter:[2,"openOnEnter","openOnEnter",si],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Pm],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Pm],virtualScroll:[2,"virtualScroll","virtualScroll",si],selectableGroup:[2,"selectableGroup","selectableGroup",si],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",si],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",si],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Pm],tabFocusOnClearButton:[1,"tabFocusOnClearButton"],readonly:[2,"readonly","readonly",si],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",si],minTermLength:[2,"minTermLength","minTermLength",Pm],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",si],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",si],addTag:"addTag",searchable:[2,"searchable","searchable",si],clearable:[2,"clearable","clearable",si],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Mt([{provide:Oi,useExisting:Xi(()=>n),multi:!0},gse]),Dn],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,a){if(i&1){let r=de();S(0,"div",10),Z("mousedown",function(l){return G(r),W(a.handleMousedown(l))}),S(1,"div",11),P(2,M7e,3,1)(3,L7e,2,0)(4,H7e,1,5,null,12),S(5,"div",13)(6,"input",14,0),Z("blur",function(l){return G(r),W(a.onInputBlur(l))})("change",function(l){return G(r),W(l.stopPropagation())})("compositionend",function(){G(r);let l=Lt(7);return W(a.onCompositionEnd(l.value))})("compositionstart",function(){return G(r),W(a.onCompositionStart())})("focus",function(l){return G(r),W(a.onInputFocus(l))})("input",function(){G(r);let l=Lt(7);return W(a.filter(l.value))}),_()()(),P(8,Z7e,3,1)(9,z7e,2,1),S(10,"span",15),H(11,"span",16),_()(),P(12,lFe,8,18,"ng-dropdown-panel",17)}if(i&2){let r;ve("ng-appearance-outline",a.appearance==="outline")("ng-has-value",a.hasValue),f(2),kl(a.selectedItems.length===0&&!a.searchTerm||a.fixedPlaceholder?2:-1),f(),kl((!a.multiLabelTemplate||!a.multiple)&&a.selectedItems.length>0?3:-1),f(),kl(a.multiple&&a.multiLabelTemplate&&a.selectedValues.length>0?4:-1),f(2),y("disabled",a.disabled)("readOnly",!a.searchable||a.itemsList.maxItemsSelected)("value",(r=a.searchTerm)!==null&&r!==void 0?r:""),Ot("aria-activedescendant",a.isOpen?a.itemsList==null||a.itemsList.markedItem==null?null:a.itemsList.markedItem.htmlId:null)("aria-controls",a.isOpen?a.dropdownId:null)("aria-expanded",a.isOpen)("aria-label",a.ariaLabel)("id",a.labelForId)("tabindex",a.tabIndex),f(2),kl(a.loading?8:-1),f(),kl(a.showClear()?9:-1),f(3),kl(a.isOpen?12:-1)}},dependencies:[Ga,mFe,mse,Ii],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}
|
|
5820
5820
|
`],encapsulation:2,changeDetection:0})}}return n})(),CV=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=rt({type:n})}static{this.\u0275inj=at({providers:[{provide:z2,useValue:vse}]})}}return n})();var Jt=(()=>{class n{constructor(e,i){this.elementRef=e,this.formControlName=i}get valid(){return!!this.formControlName&&!!this.formControlName.valid}get touched(){return!!this.formControlName&&!!this.formControlName.touched}setReadOnly(e){let i=this.elementRef.nativeElement;wFe(i)?i.disabled=e:i.readOnly=e}static{this.\u0275fac=function(i){return new(i||n)(x(jt),x(to,8))}}static{this.\u0275dir=Ne({type:n,selectors:[["input"],["textarea"],["select"],["vdr-currency-input"]],standalone:!1})}}return n})();function wFe(n){return n.hasOwnProperty("selectedIndex")}var IFe=["*"];function AFe(n,t){if(n&1&&(S(0,"label",6),E(1),_()),n&2){let e=I();y("for",e.for),f(),ie(" ",e.label," ")}}function xFe(n,t){if(n&1&&(S(0,"div",7),E(1),_()),n&2){let e=I();f(),ie(" ",e.tooltip," ")}}function TFe(n,t){if(n&1){let e=de();S(0,"button",8),T(1,"translate"),Z("click",function(){G(e);let a=I();return W(a.setReadOnly(!a.isReadOnly))}),H(2,"clr-icon",9),_()}if(n&2){let e=I();ve("enabled",!e.isReadOnly),y("title",O(1,3,"common.edit-field"))}}function EFe(n,t){if(n&1&&(S(0,"div",10),E(1),_()),n&2){let e=I();f(),te(e.getErrorMessage())}}var ao=(()=>{class n{constructor(){this.errors={},this.readOnlyToggle=!1,this.readOnlyToggleChange=new Fe,this.isReadOnly=!1}ngOnInit(){this.readOnlyToggle&&(this.isReadOnly=!0,this.setReadOnly(!0)),this.isReadOnly=this.readOnlyToggle}setReadOnly(e){this.formFieldControl.setReadOnly(e),this.isReadOnly=e,this.readOnlyToggleChange.emit(e)}getErrorMessage(){if(!this.formFieldControl||!this.formFieldControl.formControlName)return;let e=this.formFieldControl.formControlName.dirty&&this.formFieldControl.formControlName.errors;if(e){for(let i of Object.keys(e))if(this.errors[i])return this.errors[i]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-form-field"]],contentQueries:function(i,a,r){if(i&1&&tn(r,Jt,7),i&2){let o;Ae(o=xe())&&(a.formFieldControl=o.first)}},inputs:{label:"label",for:"for",tooltip:"tooltip",errors:"errors",readOnlyToggle:"readOnlyToggle"},outputs:{readOnlyToggleChange:"readOnlyToggleChange"},standalone:!1,ngContentSelectors:IFe,decls:7,vars:14,consts:[[1,"form-group"],["class","",3,"for",4,"ngIf"],["class","tooltip-text",4,"ngIf"],[1,"input-row"],["type","button","class","btn edit-button",3,"title","enabled","click",4,"ngIf"],["class","error-message",4,"ngIf"],[1,"",3,"for"],[1,"tooltip-text"],["type","button",1,"btn","edit-button",3,"click","title"],["shape","edit"],[1,"error-message"]],template:function(i,a){i&1&&(Dt(),S(0,"div",0),P(1,AFe,2,2,"label",1)(2,xFe,2,1,"div",2),S(3,"div",3),lt(4),P(5,TFe,3,5,"button",4),_(),P(6,EFe,2,1,"div",5),_()),i&2&&(ve("no-label",!a.label)("clr-error",a.formFieldControl==null||a.formFieldControl.formControlName==null?null:a.formFieldControl.formControlName.invalid),f(),y("ngIf",a.label),f(),y("ngIf",a.tooltip),f(),ve("has-toggle",a.readOnlyToggle)("readonly",a.isReadOnly)("invalid",(a.formFieldControl==null?null:a.formFieldControl.touched)&&!(a.formFieldControl!=null&&a.formFieldControl.valid)),f(2),y("ngIf",a.readOnlyToggle),f(),y("ngIf",a.getErrorMessage()))},dependencies:[Qe,$i,_e,Te],styles:[`[_nghost-%COMP%]{display:block}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:var(--color-weight-800);margin-bottom:4px;display:inline-block}.tooltip-text[_ngcontent-%COMP%]{font-size:var(--font-size-xs);line-height:var(--font-size-sm);margin-bottom:4px}.input-row[_ngcontent-%COMP%]{display:flex} .input-row input:not([type=checkbox]), .input-row select, .input-row textarea, .input-row ng-select, .input-row vdr-zone-selector, .input-row vdr-facet-value-selector, .input-row vdr-option-value-input, .input-row vdr-affixed-input, .input-row vdr-currency-input, .input-row vdr-rich-text-editor{width:100%} .input-row.readonly input:not([type=checkbox])[readonly], .input-row.readonly select[readonly], .input-row.readonly textarea[readonly], .input-row.readonly ng-select[readonly], .input-row.readonly vdr-zone-selector[readonly], .input-row.readonly vdr-facet-value-selector[readonly], .input-row.readonly vdr-option-value-input[readonly], .input-row.readonly vdr-affixed-input[readonly], .input-row.readonly vdr-currency-input[readonly], .input-row.readonly vdr-rich-text-editor[readonly]{cursor:not-allowed}.input-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not([type=checkbox]), .input-row[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .input-row[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%} .input-row.has-toggle input:not([type=checkbox]):not([type=radio]){border-start-end-radius:0!important;border-end-end-radius:0!important}.edit-button[_ngcontent-%COMP%]{border:1px solid var(--color-weight-200);border-radius:var(--border-radius-input);border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0}.edit-button.enabled[_ngcontent-%COMP%]{color:var(--color-primary-700);background-color:var(--color-primary-100)}
|
|
5821
5821
|
/*# sourceMappingURL=form-field.component-D2TPZYPL.css.map */`]})}}return n})();var MFe=["*"],$u=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-labeled-data"]],inputs:{label:"label"},standalone:!1,ngContentSelectors:MFe,decls:4,vars:1,consts:[[1,"label-title"],[1,"content"]],template:function(i,a){i&1&&(Dt(),S(0,"div",0),E(1),_(),S(2,"div",1),lt(3),_()),i&2&&(f(),te(a.label))},styles:[`[_nghost-%COMP%]{display:block;margin-bottom:6px}.label-title[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-300);line-height:12px;margin-bottom:-4px}.content[_ngcontent-%COMP%]{display:inline-block;line-height:var(--font-size-sm);margin-top:6px}
|
|
5822
5822
|
/*# sourceMappingURL=labeled-data.component-RPBCSXP2.css.map */`],changeDetection:0})}}return n})();var Tc=(()=>{class n{constructor(e,i){e&&i&&(this.subscription=e.client.uiState().mapStream(a=>a.uiState).subscribe(({language:a,locale:r})=>{this.locale=a.replace(/_/g,"-"),r&&!this.locale.includes("-")&&(this.locale+=`-${r}`),i.markForCheck()}))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}getActiveLocale(e){let a=(typeof e=="string"?e:this.locale??"en")?.replace(/_/g,"-"),r=a?.match(/^([a-zA-Z_-]+)(-[A-Z][A-Z])(-[A-Z][A-Z])$/);return r?.length?r[1]+r[3]:a}static{this.\u0275fac=function(i){return new(i||n)(me(Re),me(dt))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();var L0=(()=>{class n extends Tc{constructor(e,i){super(e,i)}transform(e,i="full",a){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid currencyCode "${e}"`;let r="",o="",l=this.getActiveLocale(a);return(i==="full"||i==="name")&&(r=new Intl.DisplayNames([l],{type:"currency"}).of(e)??""),(i==="full"||i==="symbol")&&(o=new Intl.NumberFormat(l,{style:"currency",currency:e,currencyDisplay:"symbol"}).formatToParts().find(d=>d.type==="currency")?.value||e),i==="full"?`${r} (${o})`:i==="name"?r:o}static{this.\u0275fac=function(i){return new(i||n)(x(Re,24),x(dt,24))}}static{this.\u0275pipe=xn({name:"localeCurrencyName",type:n,pure:!1,standalone:!1})}}return n})();var _V=(()=>{class n{transform(e,i){return e.slice().sort((a,r)=>{let o=i?a[i]:a,l=i?r[i]:r;return o===l?0:o==null?1:l==null?-1:o>l?1:-1})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=xn({name:"sort",type:n,pure:!0,standalone:!1})}}return n})();var qo=(()=>{class n extends Tc{constructor(e,i){super(e,i)}transform(e,...i){let[a,r]=i;if(this.locale||typeof r=="string"){let o=this.getActiveLocale(r),l=e instanceof Date?e:typeof e=="string"?new Date(e):void 0;if(l){let s=this.getOptionsForFormat(typeof a=="string"?a:"medium");return new Intl.DateTimeFormat(o,s).format(l)}}}getOptionsForFormat(e){switch(e){case"medium":return{month:"short",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};case"mediumTime":return{hour:"numeric",minute:"numeric",second:"numeric"};case"longDate":return{year:"numeric",month:"long",day:"numeric"};case"shortDate":return{day:"numeric",month:"numeric",year:"2-digit"};case"short":return{day:"numeric",month:"numeric",year:"2-digit",hour:"numeric",minute:"numeric"};default:return}}static{this.\u0275fac=function(i){return new(i||n)(x(Re,24),x(dt,24))}}static{this.\u0275pipe=xn({name:"localeDate",type:n,pure:!1,standalone:!1})}}return n})();var Mp=(()=>{class n{constructor(e){this.precision=e.serverConfig.moneyStrategyPrecision,this.precisionFactor=Math.pow(10,this.precision)}toMajorUnits(e){return e/this.precisionFactor}static{this.\u0275fac=function(i){return new(i||n)(me(eo))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Fy=(()=>{class n extends Tc{constructor(e,i,a){super(i,a),this.currencyService=e}transform(e,...i){let[a,r]=i;if(typeof e=="number"){let o=this.getActiveLocale(r),l=this.currencyService.toMajorUnits(e);try{return new Intl.NumberFormat(o,{style:"currency",currency:a,minimumFractionDigits:this.currencyService.precision,maximumFractionDigits:this.currencyService.precision}).format(l)}catch{return l.toFixed(this.currencyService.precision)}}return e}static{this.\u0275fac=function(i){return new(i||n)(x(Mp,16),x(Re,24),x(dt,24))}}static{this.\u0275pipe=xn({name:"localeCurrency",type:n,pure:!1,standalone:!1})}}return n})();var Uu=(()=>{class n extends Tc{constructor(e,i){super(e,i)}transform(e,i){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid language code "${e}"`;let a=this.getActiveLocale(i),r=Intl.DisplayNames;try{return new r([a.replace("_","-")],{type:"language"}).of(e.replace("_","-"))}catch{return e}}static{this.\u0275fac=function(i){return new(i||n)(x(Re,24),x(dt,24))}}static{this.\u0275pipe=xn({name:"localeLanguageName",type:n,pure:!1,standalone:!1})}}return n})();var bV=(()=>{class n extends Tc{constructor(e,i){super(e,i)}transform(e,i){if(e==null||e==="")return"";if(typeof e!="string")return`Invalid region code "${e}"`;let a=this.getActiveLocale(i),r=Intl.DisplayNames;try{return new r([a.replace("_","-")],{type:"region"}).of(e.replace("_","-"))}catch{return e}}static{this.\u0275fac=function(i){return new(i||n)(x(Re,24),x(dt,24))}}static{this.\u0275pipe=xn({name:"localeRegionName",type:n,pure:!1,standalone:!1})}}return n})();function PFe(n,t){n&1&&(E(0),T(1,"translate")),n&2&&te(O(1,1,"common.select-display-language"))}function LFe(n,t){n&1&&(Be(0),H(1,"div",3),je())}function RFe(n,t){if(n&1&&(S(0,"option",19),E(1),T(2,"uppercase"),T(3,"localeLanguageName"),_()),n&2){let e=t.$implicit;y("value",e),f(),Bi(" ",O(2,3,e)," (",O(3,5,e),") ")}}function HFe(n,t){if(n&1&&(E(0),T(1,"localeRegionName")),n&2){let e=t.item;Bi(" ",e," (",O(1,2,e),") ")}}function BFe(n,t){if(n&1&&(E(0),T(1,"localeRegionName")),n&2){let e=t.item;Bi(" ",e," (",O(1,2,e),") ")}}function jFe(n,t){if(n&1&&(S(0,"option",19),E(1),T(2,"uppercase"),T(3,"localeCurrencyName"),_()),n&2){let e=t.$implicit,i=I(2);y("value",e),f(),Bi(" ",O(2,3,e)," (",Vm(3,5,e,"full",i.previewLocale),") ")}}function ZFe(n,t){if(n&1){let e=de();Be(0),S(1,"div",4)(2,"div",5)(3,"vdr-form-field",6),T(4,"translate"),S(5,"select",7),ir("ngModelChange",function(a){G(e);let r=I();return fr(r.currentLanguage,a)||(r.currentLanguage=a),W(a)}),Z("ngModelChange",function(){G(e);let a=I();return W(a.updatePreviewLocale())}),P(6,RFe,4,7,"option",8),T(7,"sort"),_()(),S(8,"vdr-form-field",9),T(9,"translate"),S(10,"ng-select",10),T(11,"translate"),ir("ngModelChange",function(a){G(e);let r=I();return fr(r.currentLocale,a)||(r.currentLocale=a),W(a)}),Z("ngModelChange",function(){G(e);let a=I();return W(a.updatePreviewLocale())}),P(12,HFe,2,4,"ng-template",11)(13,BFe,2,4,"ng-template",12),_()()()(),S(14,"div",13)(15,"div",14)(16,"span",15),E(17),T(18,"translate"),_(),S(19,"strong"),E(20),T(21,"localeLanguageName"),_()(),S(22,"div",16)(23,"div",4)(24,"div",17)(25,"vdr-labeled-data",9),T(26,"translate"),E(27),T(28,"localeDate"),_(),S(29,"vdr-labeled-data",9),T(30,"translate"),E(31),T(32,"localeDate"),_()(),S(33,"div",17)(34,"select",18),ir("ngModelChange",function(a){G(e);let r=I();return fr(r.selectedCurrencyCode,a)||(r.selectedCurrencyCode=a),W(a)}),P(35,jFe,4,9,"option",8),T(36,"sort"),_()(),S(37,"div",17)(38,"vdr-labeled-data",9),T(39,"translate"),E(40),T(41,"localeCurrency"),_()()()()(),je()}if(n&2){let e=I();f(3),y("label",O(4,17,"common.language")),f(2),nr("ngModel",e.currentLanguage),f(),y("ngForOf",O(7,19,e.availableLanguages)),f(2),y("label",O(9,21,"common.locale")),f(2),y("items",e.availableLocales),nr("ngModel",e.currentLocale),y("placeholder",O(11,23,"common.browser-default")),f(7),ie("",O(18,25,"common.sample-formatting"),":"),f(3),te(it(21,27,e.previewLocale,e.previewLocale)),f(5),y("label",O(26,30,"common.medium-date")),f(2),ie(" ",Vm(28,32,e.now,"medium",e.previewLocale)," "),f(2),y("label",O(30,36,"common.short-date")),f(2),ie(" ",Vm(32,38,e.now,"short",e.previewLocale)," "),f(3),nr("ngModel",e.selectedCurrencyCode),f(),y("ngForOf",O(36,42,e.availableCurrencyCodes)),f(3),y("label",O(39,44,"common.price")),f(2),ie(" ",Vm(41,46,12345,e.selectedCurrencyCode,e.previewLocale)," ")}}function $Fe(n,t){if(n&1){let e=de();S(0,"button",20),Z("click",function(){G(e);let a=I();return W(a.cancel())}),E(1),T(2,"translate"),_(),S(3,"button",21),Z("click",function(){G(e);let a=I();return W(a.setLanguage())}),E(4),T(5,"translate"),_()}n&2&&(f(),te(O(2,2,"common.cancel")),f(3),ie(" ",O(5,4,"common.set-language")," "))}var yse=(()=>{class n{constructor(e,i){this.dataService=e,this.changeDetector=i,this.isLoading=!0,this.destroy$=new ke,this.availableLanguages=[],this.availableLocales=[],this.availableCurrencyCodes=Object.values(Wk),this.now=new Date().toISOString();let a=navigator.language.split("-");this.browserDefaultLocale=a.length===1?void 0:a[1]}ngOnInit(){this.updatePreviewLocale(),this.dataService.settings.getActiveChannel().mapStream(e=>e.activeChannel.defaultCurrencyCode).pipe(Xn(1),Ut(this.destroy$),ho(()=>{this.isLoading=!1,this.changeDetector.markForCheck()})).subscribe(e=>{this.selectedCurrencyCode=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updatePreviewLocale(){(!this.currentLocale||this.currentLocale.length===0||this.currentLocale.length===2)&&(this.previewLocale=this.createLocaleString(this.currentLanguage,this.currentLocale))}setLanguage(){this.resolveWith([this.currentLanguage,this.currentLocale?.toUpperCase()])}cancel(){this.resolveWith()}createLocaleString(e,i){return i?[e,i.toUpperCase()].join("-"):e}static{this.\u0275fac=function(i){return new(i||n)(x(Re),x(dt))}}static{this.\u0275cmp=$({type:n,selectors:[["vdr-ui-language-switcher"]],standalone:!1,decls:4,vars:2,consts:[["vdrDialogTitle",""],[4,"ngIf"],["vdrDialogButtons",""],[1,"progress","loop"],[1,"clr-row"],[1,"flex","pl-2","mb-2"],[1,"mr-2",3,"label"],["name","options",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"label"],["appendTo","body",3,"ngModelChange","items","ngModel","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"card"],[1,"card-header"],[1,"pr-1"],[1,"card-block"],[1,"clr-col-sm-4"],["name","currency",1,"currency",3,"ngModelChange","ngModel"],[3,"value"],["type","button",1,"btn",3,"click"],["type","submit",1,"btn","btn-primary",3,"click"]],template:function(i,a){i&1&&P(0,PFe,2,3,"ng-template",0)(1,LFe,2,0,"ng-container",1)(2,ZFe,42,50,"ng-container",1)(3,$Fe,6,6,"ng-template",2),i&2&&(f(),y("ngIf",a.isLoading),f(),y("ngIf",!a.isLoading))},dependencies:[wt,_e,Ar,xr,ar,Vt,Zi,Ui,Za,Tr,ao,Jt,Aa,Ba,$u,ak,Te,L0,_V,qo,Fy,Uu,bV],styles:[`select.currency[_ngcontent-%COMP%]{max-width:200px}input.locale[_ngcontent-%COMP%]{text-transform:uppercase}
|
|
@@ -6100,4 +6100,4 @@ Using (${s}) instead.`),r=s}return r}buildLayout(e){let i=[],a=[];for(let{id:r,c
|
|
|
6100
6100
|
}
|
|
6101
6101
|
${Xr}
|
|
6102
6102
|
`;function AVt(n){let t=n.unicode?n:new RegExp(n,"u");return e=>t.test(e.value)?null:{pattern:{value:e.value}}}export{q as a,Ue as b,hv as c,rd as d,Sn as e,Oo as f,ke as g,Xt as h,ka as i,Un as j,Ee as k,zh as l,md as m,ae as n,Jn as o,Pi as p,qr as q,du as r,Gl as s,Ri as t,_n as u,Vo as v,dl as w,aa as x,Xn as y,cl as z,TD as A,yi as B,ho as C,s0e as D,d0e as E,Hi as F,Yh as G,Mn as H,ot as I,c0e as J,Ut as K,Bt as L,u0e as M,Xi as N,ne as O,at as P,me as Q,Q as R,Dn as S,G as T,W as U,wi as V,Fe as W,jt as X,sYe as Y,ea as Z,f as _,Tt as $,x as aa,vn as ba,$ as ca,rt as da,Ne as ea,xn as fa,en as ga,P as ha,Ot as ia,y as ja,ra as ka,ve as la,S as ma,_ as na,H as oa,Be as pa,je as qa,Ci as ra,de as sa,Z as ta,I as ua,Dt as va,lt as wa,tn as xa,It as ya,Ae as za,xe as Aa,Lt as Ba,E as Ca,te as Da,ie as Ea,Bi as Fa,yQ as Ga,nr as Ha,fr as Ia,ir as Ja,Mt as Ka,gr as La,Tn as Ma,vd as Na,E_ as Oa,M_ as Pa,T as Qa,O as Ra,it as Sa,Vm as Ta,an as Ua,dt as Va,Ii as Wa,CA as Xa,wt as Ya,_e as Za,pc as _a,Lm as $a,nk as ab,ik as bb,Ga as cb,gt as db,Vke as eb,ak as fb,rk as gb,Pke as hb,Lke as ib,z_ as jb,mn as kb,s3e as lb,Bm as mb,z as nb,s5 as ob,Gk as pb,sSe as qb,u5 as rb,dSe as sb,cSe as tb,Eu as ub,K1 as vb,qk as wb,uSe as xb,mSe as yb,on as zb,Qk as Ab,Xst as Bb,edt as Cb,tdt as Db,ndt as Eb,idt as Fb,adt as Gb,rdt as Hb,odt as Ib,ldt as Jb,sdt as Kb,ddt as Lb,cdt as Mb,udt as Nb,mdt as Ob,pdt as Pb,hdt as Qb,fdt as Rb,gdt as Sb,vdt as Tb,kdt as Ub,ydt as Vb,Cdt as Wb,Sdt as Xb,_dt as Yb,bdt as Zb,Ndt as _b,Fdt as $b,Ddt as ac,wdt as bc,Idt as cc,Adt as dc,xdt as ec,Tdt as fc,Edt as gc,Mdt as hc,Odt as ic,Vdt as jc,Pdt as kc,Ldt as lc,Rdt as mc,Hdt as nc,Bdt as oc,jdt as pc,Zdt as qc,$dt as rc,Udt as sc,zdt as tc,Gdt as uc,Wdt as vc,qdt as wc,Qdt as xc,Ydt as yc,Kdt as zc,Jdt as Ac,Xdt as Bc,ect as Cc,tct as Dc,nct as Ec,ict as Fc,act as Gc,rct as Hc,oct as Ic,J1 as Jc,Xr as Kc,As as Lc,vct as Mc,dT as Nc,cT as Oc,mT as Pc,cee as Qc,e2 as Rc,Vct as Sc,So as Tc,gT as Uc,vT as Vc,Rte as Wc,v5 as Xc,tne as Yc,vne as Zc,bne as _c,Ca as $c,NT as ad,Lne as bd,eo as cd,Re as dd,Hr as ed,Qi as fd,f2 as gd,fa as hd,ji as id,g2 as jd,Bmt as kd,Te as ld,ZJe as md,Va as nd,P3 as od,Nl as pd,_o as qd,fp as rd,Oi as sd,bp as td,xi as ud,Cp as vd,Vt as wd,No as xd,Go as yd,y0 as zd,E2 as Ad,Ai as Bd,qa as Cd,Zi as Dd,Os as Ed,M2 as Fd,koe as Gd,vi as Hd,no as Id,iy as Jd,yoe as Kd,io as Ld,ar as Md,Ar as Nd,xr as Od,cO as Pd,ay as Qd,$5e as Rd,z5e as Sd,Noe as Td,uO as Ud,Zgt as Vd,ls as Wd,wp as Xd,V2 as Yd,Ic as Zd,ole as _d,Ip as $d,Qe as ae,Fle as be,$i as ce,T0 as de,Rs as ee,tV as fe,ky as ge,Z2 as he,iV as ie,Rle as je,aV as ke,oV as le,lV as me,Hle as ne,INe as oe,N3t as pe,I3t as qe,A3t as re,x3t as se,or as te,Aa as ue,Ba as ve,ci as we,kn as xe,jn as ye,Zn as ze,Da as Ae,cse as Be,Za as Ce,Tr as De,Ny as Ee,Ui as Fe,Jt as Ge,ao as He,$u as Ie,L0 as Je,_V as Ke,qo as Le,Fy as Me,Uu as Ne,zu as Oe,G2 as Pe,DV as Qe,wse as Re,Z6 as Se,Bs as Te,Tse as Ue,B0 as Ve,wy as We,Iy as Xe,USt as Ye,P9e as Ze,Ay as _e,jV as $e,tde as af,ide as bf,ade as cf,x_t as df,ZV as ef,Ty as ff,Op as gf,Ey as hf,lr as if,X6 as jf,Oy as kf,Vy as lf,KV as mf,JV as nf,Vp as of,Pp as pf,X2 as qf,Lp as rf,Z0 as sf,sr as tf,lP as uf,dP as vf,cP as wf,Vd as xf,hP as yf,Ly as zf,gP as Af,vP as Bf,kP as Cf,Sde as Df,Hy as Ef,jy as Ff,yP as Gf,CP as Hf,SP as If,$y as Jf,XL as Kf,aR as Lf,uh as Mf,fVe as Nf,Spe as Of,_pe as Pf,kVe as Qf,SVe as Rf,OVe as Sf,pR as Tf,hR as Uf,gR as Vf,vR as Wf,aPe as Xf,sPe as Yf,bC as Zf,NC as _f,yR as $f,t7 as ag,bR as bg,NR as cg,DR as dg,wR as eg,CRe as fg,wRe as gg,RRe as hg,BRe as ig,$Re as jg,IR as kg,URe as lg,YRe as mg,JRe as ng,n7 as og,i7 as pg,r7 as qg,Vpe as rg,o7 as sg,l7 as tg,s7 as ug,dHe as vg,AR as wg,hHe as xg,xR as yg,d7 as zg,yHe as Ag,_He as Bg,bHe as Cg,NHe as Dg,FHe as Eg,DHe as Fg,iBe as Gg,oBe as Hg,dBe as Ig,kBe as Jg,wBe as Kg,Qp as Lg,e1e as Mg,nMt as Ng,zR as Og,t1e as Pg,uMt as Qg,vMt as Rg,i1e as Sg,TBe as Tg,GMt as Ug,YMt as Vg,EBe as Wg,rOt as Xg,oOt as Yg,lOt as Zg,sOt as _g,dOt as $g,m1e as ah,mOt as bh,vOt as ch,OBe as dh,VBe as eh,cVt as fh,AVt as gh};
|
|
6103
|
-
//# sourceMappingURL=chunk-
|
|
6103
|
+
//# sourceMappingURL=chunk-AGEQAPOH.js.map
|