dealposbarcode 25.41.1 → 25.42.0

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.
@@ -0,0 +1,2 @@
1
+ import{Z as De}from"./chunk-AVMIS4JH.js";import{$ as X,Aa as E,Ab as H,C as k,Ca as d,Da as he,E as L,Ec as b,Fc as Ce,Ha as h,I as z,Ia as B,Ja as J,Jc as ke,Kc as ve,M as G,Mb as y,N as W,O as le,Q as Y,Rb as Q,S as ce,Ua as f,V as ue,Vb as l,Wb as o,Xb as _,Za as m,_ as de,a as K,ca as j,ec as g,fa as ge,fc as p,gc as c,jc as be,nc as N,oa as Z,oc as C,pc as ee,pd as ye,qc as te,qd as _e,ra as S,s as $,ta as pe,ud as Me,wd as Pe,xa as v,xb as fe,xc as U,ya as R,zb as r,zc as me}from"./chunk-YB6XMFOT.js";var Be=t=>({"background-color":t});function He(t,s){t&1&&be(0)}function Ne(t,s){if(t&1&&c(0,"sk-cube-grid",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function Ve(t,s){if(t&1&&c(0,"sk-chasing-dots",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function Ue(t,s){if(t&1&&c(0,"sk-double-bounce",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function qe(t,s){if(t&1&&c(0,"sk-rotating-plane",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function Ae(t,s){if(t&1&&c(0,"sk-spinner-pulse",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function Ke(t,s){if(t&1&&c(0,"sk-three-bounce",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function $e(t,s){if(t&1&&c(0,"sk-wandering-cubes",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function ze(t,s){if(t&1&&c(0,"sk-wave",4),t&2){let e=C(2);l("backgroundColor",e.backgroundColor)}}function Ge(t,s){if(t&1&&(g(0,"div",1),Q(1,He,1,0,"ng-container",2)(2,Ne,1,1,"sk-cube-grid",3)(3,Ve,1,1,"sk-chasing-dots",3)(4,Ue,1,1,"sk-double-bounce",3)(5,qe,1,1,"sk-rotating-plane",3)(6,Ae,1,1,"sk-spinner-pulse",3)(7,Ke,1,1,"sk-three-bounce",3)(8,$e,1,1,"sk-wandering-cubes",3)(9,ze,1,1,"sk-wave",3),p()),t&2){let e=C();o("opacity",e.opacity),_("backdrop",e.backdrop),l("ngStyle",Ce(14,Be,e.backdrop?e.backdropBackgroundColor:"transparent")),r(),l("ngComponentOutlet",e.entryComponent),r(),l("ngIf",e.spinner===e.spinkit.skCubeGrid),r(),l("ngIf",e.spinner===e.spinkit.skChasingDots),r(),l("ngIf",e.spinner===e.spinkit.skDoubleBounce),r(),l("ngIf",e.spinner===e.spinkit.skRotatingPlane),r(),l("ngIf",e.spinner===e.spinkit.skSpinnerPulse),r(),l("ngIf",e.spinner===e.spinkit.skThreeBounce),r(),l("ngIf",e.spinner===e.spinkit.skWanderingCubes),r(),l("ngIf",e.spinner===e.spinkit.skWave)}}var M=(()=>{class t{backgroundColor;static \u0275fac=function(n){return new(n||t)};static \u0275dir=J({type:t,inputs:{backgroundColor:"backgroundColor"}})}return t})(),We=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-chasing-dots"]],standalone:!0,features:[y,b],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),Ye=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-cube-grid"]],standalone:!0,features:[y,b],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return t})(),Xe=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-double-bounce"]],standalone:!0,features:[y,b],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return t})(),Ze=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-rotating-plane"]],standalone:!0,features:[y,b],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(n,i){n&1&&c(0,"div",0),n&2&&o("background-color",i.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return t})(),Je=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-spinner-pulse"]],standalone:!0,features:[y,b],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(n,i){n&1&&c(0,"div",0),n&2&&o("background-color",i.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return t})(),Qe=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-three-bounce"]],standalone:!0,features:[y,b],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return t})(),et=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-wandering-cubes"]],standalone:!0,features:[y,b],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return t})(),tt=(()=>{class t extends M{static \u0275fac=(()=>{let e;return function(i){return(e||(e=f(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["sk-wave"]],standalone:!0,features:[y,b],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(n,i){n&1&&(g(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),p()),n&2&&(_("colored",!i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor),r(),o("background-color",i.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return t})(),we={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Le=(()=>{class t{_pendingRequests=0;_pendingRequestsStatus$=new $(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(e){this._pendingRequests=e}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(e){this._filteredMethods=e}set filteredHeaders(e){this._filteredHeaders=e}set forceByPass(e){this._forceByPass=e}shouldBypassUrl(e){return this._filteredUrlPatterns.some(n=>n.test(e))}shouldBypassMethod(e){return this._filteredMethods.some(n=>n.toUpperCase()===e.method.toUpperCase())}shouldBypassHeader(e){return this._filteredHeaders.some(n=>e.headers.has(n))}shouldBypass(e){return this._forceByPass||this.shouldBypassUrl(e.urlWithParams)||this.shouldBypassMethod(e)||this.shouldBypassHeader(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nt=(()=>{class t{pendingRequestsInterceptorConfigurer;_visibility$=new $(1);constructor(e){this.pendingRequestsInterceptorConfigurer=e}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(n){return new(n||t)(d(Le))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ct=(()=>{class t{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=we;isVisible$;visibleUntil=Date.now();backdrop=!0;backgroundColor;debounceDelay=0;entryComponent;extraDuration=0;filteredHeaders=[];filteredMethods=[];filteredUrlPatterns=[];minDuration=0;opacity=".7";backdropBackgroundColor="#f1f1f1";spinner=we.skWave;constructor(e,n){this.pendingRequestsInterceptorConfigurer=e,this.spinnerVisibility=n}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[e,n]=ue(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,i=>i);this.isVisible$=ce(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(S(()=>e.pipe(X(()=>Y(this.debounceDelay))))),e.pipe(S(()=>n.pipe(X(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(ge(),pe(i=>this.updateExpirationDelay(i)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(e=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(e)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders}updateExpirationDelay(e){e&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return Y(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}static \u0275fac=function(n){return new(n||t)(H(Le),H(nt))};static \u0275cmp=h({type:t,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},standalone:!0,features:[b],decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(n,i){n&1&&(Q(0,Ge,10,16,"div",0),ke(1,"async")),n&2&&l("ngIf",ve(1,1,i.isVisible$))},dependencies:[Ye,We,Xe,Ze,Je,Qe,et,tt,Me,ye,_e,Pe],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return t})();var q=class{constructor(s){this.icons=s}};var Oe=(()=>{class t{constructor(e){if(this.icons=e,!this.icons)throw new Error(`No icon provided. Make sure to use 'FeatherModule.pick({ ... })' when importing the module
2
+ Refer to documentation on https://github.com/michaelbazos/angular-feather`)}static pick(e){return{ngModule:t,providers:[{provide:q,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(d(q,8))},t.\u0275mod=B({type:t}),t.\u0275inj=R({}),t})();var T=class{},Se=(()=>{class t extends T{getTranslation(e){return k({})}}return t.\u0275fac=(()=>{let s;return function(n){return(s||(s=f(t)))(n||t)}})(),t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),V=class{},Te=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function O(t){return typeof t<"u"&&t!==null}function ie(t){return t&&typeof t=="object"&&!Array.isArray(t)}function je(t,s){let e=Object.assign({},t);return ie(t)&&ie(s)&&Object.keys(s).forEach(n=>{ie(s[n])?n in t?e[n]=je(t[n],s[n]):Object.assign(e,{[n]:s[n]}):Object.assign(e,{[n]:s[n]})}),e}var F=class{},Fe=(()=>{class t extends F{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,n){let i;return typeof e=="string"?i=this.interpolateString(e,n):typeof e=="function"?i=this.interpolateFunction(e,n):i=e,i}getValue(e,n){let i=typeof n=="string"?n.split("."):[n];n="";do n+=i.shift(),O(e)&&O(e[n])&&(typeof e[n]=="object"||!i.length)?(e=e[n],n=""):i.length?n+=".":e=void 0;while(i.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(i,a)=>{let u=this.getValue(n,a);return O(u)?u:i}):e}}return t.\u0275fac=(()=>{let s;return function(n){return(s||(s=f(t)))(n||t)}})(),t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),x=class{},xe=(()=>{class t extends x{compile(e,n){return e}compileTranslations(e,n){return e}}return t.\u0275fac=(()=>{let s;return function(n){return(s||(s=f(t)))(n||t)}})(),t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),A=class{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new m,this.onLangChange=new m,this.onDefaultLangChange=new m}},se=new E("USE_STORE"),re=new E("USE_DEFAULT_LANG"),oe=new E("DEFAULT_LANGUAGE"),ae=new E("USE_EXTEND"),Ie=(()=>{class t{constructor(e,n,i,a,u,P=!0,D=!1,w=!1,I){this.store=e,this.currentLoader=n,this.compiler=i,this.parser=a,this.missingTranslationHandler=u,this.useDefaultLang=P,this.isolate=D,this.extend=w,this.pending=!1,this._onTranslationChange=new m,this._onLangChange=new m,this._onDefaultLangChange=new m,this._langs=[],this._translations={},this._translationRequests={},I&&this.setDefaultLang(I)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(j(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return k(this.translations[e]);let n=this.retrieveTranslations(e);return typeof n<"u"?(this.currentLang||(this.currentLang=e),n.pipe(j(1)).subscribe(i=>{this.changeLang(e)}),n):(this.changeLang(e),k(this.translations[e]))}retrieveTranslations(e){let n;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(Z(1),j(1));return this.loadingTranslations=n.pipe(z(i=>this.compiler.compileTranslations(i,e)),Z(1),j(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?K(K({},i),this.translations[e]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),n}setTranslation(e,n,i=!1){n=this.compiler.compileTranslations(n,e),(i||this.extend)&&this.translations[e]?this.translations[e]=je(this.translations[e],n):this.translations[e]=n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{this.langs.indexOf(n)===-1&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,i){let a;if(n instanceof Array){let u={},P=!1;for(let D of n)u[D]=this.getParsedResult(e,D,i),L(u[D])&&(P=!0);if(P){let D=n.map(w=>L(u[w])?u[w]:k(u[w]));return le(D).pipe(z(w=>{let I={};return w.forEach((Re,Ee)=>{I[n[Ee]]=Re}),I}))}return u}if(e&&(a=this.parser.interpolate(this.parser.getValue(e,n),i)),typeof a>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),i)),typeof a>"u"){let u={key:n,translateService:this};typeof i<"u"&&(u.interpolateParams=i),a=this.missingTranslationHandler.handle(u)}return typeof a<"u"?a:n}get(e,n){if(!O(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(de(i=>(i=this.getParsedResult(i,e,n),L(i)?i:k(i))));{let i=this.getParsedResult(this.translations[this.currentLang],e,n);return L(i)?i:k(i)}}getStreamOnTranslationChange(e,n){if(!O(e)||!e.length)throw new Error('Parameter "key" required');return G(W(()=>this.get(e,n)),this.onTranslationChange.pipe(S(i=>{let a=this.getParsedResult(i.translations,e,n);return typeof a.subscribe=="function"?a:k(a)})))}stream(e,n){if(!O(e)||!e.length)throw new Error('Parameter "key" required');return G(W(()=>this.get(e,n)),this.onLangChange.pipe(S(i=>{let a=this.getParsedResult(i.translations,e,n);return L(a)?a:k(a)})))}instant(e,n){if(!O(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,n);if(L(i)){if(e instanceof Array){let a={};return e.forEach((u,P)=>{a[e[P]]=e[P]}),a}return e}else return i}set(e,n,i=this.currentLang){this.translations[i][e]=this.compiler.compile(n,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(d(A),d(T),d(x),d(F),d(V),d(re),d(se),d(ae),d(oe))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();var Dt=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:T,useClass:Se},e.compiler||{provide:x,useClass:xe},e.parser||{provide:F,useClass:Fe},e.missingTranslationHandler||{provide:V,useClass:Te},A,{provide:se,useValue:e.isolate},{provide:re,useValue:e.useDefaultLang},{provide:ae,useValue:e.extend},{provide:oe,useValue:e.defaultLanguage},Ie]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:T,useClass:Se},e.compiler||{provide:x,useClass:xe},e.parser||{provide:F,useClass:Fe},e.missingTranslationHandler||{provide:V,useClass:Te},{provide:se,useValue:e.isolate},{provide:re,useValue:e.useDefaultLang},{provide:ae,useValue:e.extend},{provide:oe,useValue:e.defaultLanguage},Ie]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=B({type:t}),t.\u0275inj=R({}),t})();var it=["*"],Rt=(()=>{class t{constructor(){this.title="",this.hasValid=!1,this.onClose=new m,this.onCancel=new m,this.onOK=new m,this.activeModal=he(De)}ngOnInit(){}onCancelHandler(){this.activeModal.close(),this.onCancel.emit()}onCloseHandler(){this.activeModal.close(),this.onClose.emit()}onOKHandler(){this.onOK.emit()}handleKeyboardEvent(e){e.key==="F2"&&this.onOKHandler()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-base-modal"]],hostBindings:function(n,i){n&1&&N("keydown",function(u){return i.handleKeyboardEvent(u)},!1,fe)},inputs:{title:"title",hasValid:"hasValid"},outputs:{onClose:"onClose",onCancel:"onCancel",onOK:"onOK"},standalone:!0,features:[b],ngContentSelectors:it,decls:12,vars:1,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title","font-robotoslab",2,"font-size","16px"],["aria-label","Close","type","button",1,"btn","btn-light-blue","text-primary","px-2","py-1",3,"click"],[1,"fas","fa-times"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-light-blue","btn-lg","text-primary","fw-semibold","fs-4",3,"click"]],template:function(n,i){n&1&&(ee(),g(0,"div",0)(1,"h4",1),U(2),p(),g(3,"button",2),N("click",function(){return i.onCloseHandler()}),c(4,"i",3),p()(),g(5,"div",4),te(6),p(),g(7,"div",5)(8,"button",6),N("click",function(){return i.onCancelHandler()}),U(9," Cancel "),p(),g(10,"button",6),N("click",function(){return i.onOKHandler()}),U(11," OK(F2) "),p()()),n&2&&(r(2),me(" ",i.title," "))},dependencies:[Oe],styles:[".modal-header[_ngcontent-%COMP%]{background:#89b03e;display:flex;justify-content:space-between}.modal-title[_ngcontent-%COMP%]{color:#fff}.modal-body[_ngcontent-%COMP%]{max-height:60vh}"]})}}return t})();export{nt as a,ct as b,Oe as c,Rt as d,Dt as e};
@@ -1 +1 @@
1
- import{a as q,b as v,c as G,d as J,e as K,f as Q,g as X,h as Y,i as Z}from"./chunk-GOX6X2HS.js";import"./chunk-3HVQWFM3.js";import{d as W}from"./chunk-MSLVFLMV.js";import"./chunk-ELVIF57Z.js";import{I as j,J as O,R as $,_ as V,da as U,l as P,m as z,n as B,q as N,r as H}from"./chunk-MCHSQWDB.js";import{$b as w,Ab as L,Ad as E,C as k,Da as n,Ec as f,Fc as D,Ha as p,I as y,J as F,Nc as R,Rb as u,Ub as S,Vb as r,Xa as M,Z as g,a as x,b as C,ec as l,fc as m,gc as o,nc as h,oc as b,od as A,ta as T,wb as I,zb as _}from"./chunk-YB6XMFOT.js";var se=e=>({"show-sidebar":e}),ee=(()=>{class e{constructor(i){this.router=i,this.storeService=n(v)}Logo(){this.storeService.onChangeOptions({expandLogo:!this.storeService.options().expandLogo})}ngOnInit(){this.storeService.onChangeOptions({defaultSidebar:this.storeService.options().sidebartype}),this.handleSidebar()}onResize(i){this.handleSidebar()}handleSidebar(){switch(this.storeService.onChangeOptions({innerWidth:window.innerWidth}),this.storeService.options().defaultSidebar){case"full":case"iconbar":this.storeService.options().innerWidth<1170?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;case"overlay":this.storeService.options().innerWidth<767?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}toggleSidebarType(){switch(this.storeService.options().sidebartype){case"full":case"iconbar":this.storeService.onChangeOptions({sidebartype:"mini-sidebar"});break;case"overlay":this.storeService.onChangeOptions({showMobileMenu:!this.storeService.options().showMobileMenu});break;case"mini-sidebar":this.storeService.options().defaultSidebar==="mini-sidebar"?this.storeService.onChangeOptions({sidebartype:"full"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}handleClick(i){this.storeService.onChangeOptions({showMobileMenu:i})}static{this.\u0275fac=function(a){return new(a||e)(L(B))}}static{this.\u0275cmp=p({type:e,selectors:[["app-full-layout"]],hostBindings:function(a,t){a&1&&h("resize",function(d){return t.onResize(d)},!1,I)},standalone:!0,features:[f],decls:5,vars:12,consts:[["id","main-wrapper",2,"height","100vh",3,"ngClass","dir"],[1,"left-sidebar","pt-0",3,"mouseover","mouseout"],[3,"notify","showClass"],[1,"page-wrapper","flex-grow-1","pt-0","z-0",2,"height","inherit"]],template:function(a,t){a&1&&(l(0,"div",0)(1,"aside",1),h("mouseover",function(){return t.Logo()})("mouseout",function(){return t.Logo()}),l(2,"app-vertical-sidebar",2),h("notify",function(d){return t.handleClick(d)}),m()(),l(3,"div",3),o(4,"router-outlet"),m()()),a&2&&(r("ngClass",D(10,se,t.storeService.options().showMobileMenu))("dir",t.storeService.options().dir),S("data-theme",t.storeService.options().theme)("data-layout",t.storeService.options().layout)("data-sidebartype",t.storeService.options().sidebartype)("data-sidebar-position",t.storeService.options().sidebarpos)("data-header-position",t.storeService.options().headerpos)("data-boxed-layout",t.storeService.options().boxed),_(),S("data-sidebarbg",t.storeService.options().sidebarbg),_(),r("showClass",t.storeService.options().showMobileMenu))},dependencies:[N,z,J,G,V,j,O,E,A,$]})}}return e})();function ne(e,c){e&1&&o(0,"choose-product")}function oe(e,c){if(e&1&&o(0,"app-barcode-preview",1),e&2){let i=b().$implicit;r("items",i)}}function re(e,c){if(e&1&&o(0,"app-label-preview",2),e&2){let i=b(3);r("item",i.storeService.expandProductItem()[0])}}function le(e,c){if(e&1&&u(0,oe,1,1,"app-barcode-preview",1)(1,re,1,1,"app-label-preview",2),e&2){let i=b(2);w(i.printMode==="barcode"?0:1)}}function ce(e,c){e&1&&(l(0,"app-customize-label"),u(1,le,2,1,"ng-template",null,0,R),m())}function de(e,c){e&1&&o(0,"app-print-preview")}var te=(()=>{class e{constructor(){this.storeService=n(v),this.httpService=n(U),this.destroyRef=n(M),this.routes=n(P)}get printMode(){return console.log("printMode",this.routes.snapshot.queryParamMap.get("printMode")),this.routes.snapshot.queryParamMap.get("printMode")}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}checkProtocol(i){return!!i.match(/^(https?):\/\//)}ngAfterViewInit(){let i=localStorage.getItem("Domain"),a=this.checkProtocol(i)?new URL(i).hostname:i;F([this.httpService.post("api/Config/PaperConfig",{SubDomain:a},void 0).pipe(g(t=>k({error:t}))),this.httpService.get("/API/V3/Tax",void 0,`https://${a}`).pipe(g(t=>k({error:t})))]).pipe(H(this.destroyRef),W("response"),y(([t,s])=>"error"in t||"error"in s?(console.warn("Error in one or more requests",{paperConfig:t,taxs:s}),{paperConfig:null,taxs:null}):{paperConfig:t,taxs:s}),T(({paperConfig:t,taxs:s})=>{t&&(this.storeService.onChangePaperConfig(C(x({},t),{PaperFormats:t.PaperFormats.map(d=>C(x({},d),{OutletID:null}))})),t.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(t.PaperFormats[0])),s&&this.storeService.onChangeTaxs(s)})).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=p({type:e,selectors:[["app-dashboard"]],standalone:!0,features:[f],decls:3,vars:1,consts:[["content",""],[3,"items"],[3,"item"]],template:function(a,t){if(a&1&&u(0,ne,1,0,"choose-product")(1,ce,3,0,"app-customize-label")(2,de,1,0,"app-print-preview"),a&2){let s;w((s=t.storeService.stepper$().state)===0?0:s===1?1:s===2?2:-1)}},dependencies:[q,K,X,Z,Y,Q]})}}return e})();var lt=[{path:"",children:[{path:"",component:te},{path:"v2/print-mode",loadComponent:()=>import("./chunk-LH3DQLXZ.js").then(e=>e.PrintModeSelectorComponent)},{path:"shelf",component:ee,children:[{path:"barcode",loadComponent:()=>import("./chunk-22J3JPCU.js").then(e=>e.ShelfBarcodeComponent)},{path:"price-label",loadComponent:()=>import("./chunk-3Y4PP6IW.js").then(e=>e.ShelfLabelComponent)}]}]}];export{lt as dashboardRoutes};
1
+ import{a as q,b as v,c as G,d as J,e as K,f as Q,g as X,h as Y,i as Z}from"./chunk-OPCDULBE.js";import"./chunk-FJ7FELU6.js";import{g as W}from"./chunk-OF3S7PJO.js";import"./chunk-7NBUTSCP.js";import{$ as V,I as j,J as O,R as $,ga as U,l as P,m as z,n as B,q as N,r as H}from"./chunk-AVMIS4JH.js";import{$b as w,Ab as L,Ad as E,C as k,Da as n,Ec as f,Fc as D,Ha as p,I as y,J as F,Nc as R,Rb as u,Ub as S,Vb as r,Xa as M,Z as g,a as x,b as C,ec as l,fc as m,gc as o,nc as h,oc as b,od as A,ta as T,wb as I,zb as _}from"./chunk-YB6XMFOT.js";var se=e=>({"show-sidebar":e}),ee=(()=>{class e{constructor(i){this.router=i,this.storeService=n(v)}Logo(){this.storeService.onChangeOptions({expandLogo:!this.storeService.options().expandLogo})}ngOnInit(){this.storeService.onChangeOptions({defaultSidebar:this.storeService.options().sidebartype}),this.handleSidebar()}onResize(i){this.handleSidebar()}handleSidebar(){switch(this.storeService.onChangeOptions({innerWidth:window.innerWidth}),this.storeService.options().defaultSidebar){case"full":case"iconbar":this.storeService.options().innerWidth<1170?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;case"overlay":this.storeService.options().innerWidth<767?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}toggleSidebarType(){switch(this.storeService.options().sidebartype){case"full":case"iconbar":this.storeService.onChangeOptions({sidebartype:"mini-sidebar"});break;case"overlay":this.storeService.onChangeOptions({showMobileMenu:!this.storeService.options().showMobileMenu});break;case"mini-sidebar":this.storeService.options().defaultSidebar==="mini-sidebar"?this.storeService.onChangeOptions({sidebartype:"full"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}handleClick(i){this.storeService.onChangeOptions({showMobileMenu:i})}static{this.\u0275fac=function(a){return new(a||e)(L(B))}}static{this.\u0275cmp=p({type:e,selectors:[["app-full-layout"]],hostBindings:function(a,t){a&1&&h("resize",function(d){return t.onResize(d)},!1,I)},standalone:!0,features:[f],decls:5,vars:12,consts:[["id","main-wrapper",2,"height","100vh",3,"ngClass","dir"],[1,"left-sidebar","pt-0",3,"mouseover","mouseout"],[3,"notify","showClass"],[1,"page-wrapper","flex-grow-1","pt-0","z-0",2,"height","inherit"]],template:function(a,t){a&1&&(l(0,"div",0)(1,"aside",1),h("mouseover",function(){return t.Logo()})("mouseout",function(){return t.Logo()}),l(2,"app-vertical-sidebar",2),h("notify",function(d){return t.handleClick(d)}),m()(),l(3,"div",3),o(4,"router-outlet"),m()()),a&2&&(r("ngClass",D(10,se,t.storeService.options().showMobileMenu))("dir",t.storeService.options().dir),S("data-theme",t.storeService.options().theme)("data-layout",t.storeService.options().layout)("data-sidebartype",t.storeService.options().sidebartype)("data-sidebar-position",t.storeService.options().sidebarpos)("data-header-position",t.storeService.options().headerpos)("data-boxed-layout",t.storeService.options().boxed),_(),S("data-sidebarbg",t.storeService.options().sidebarbg),_(),r("showClass",t.storeService.options().showMobileMenu))},dependencies:[N,z,J,G,V,j,O,E,A,$]})}}return e})();function ne(e,c){e&1&&o(0,"choose-product")}function oe(e,c){if(e&1&&o(0,"app-barcode-preview",1),e&2){let i=b().$implicit;r("items",i)}}function re(e,c){if(e&1&&o(0,"app-label-preview",2),e&2){let i=b(3);r("item",i.storeService.expandProductItem()[0])}}function le(e,c){if(e&1&&u(0,oe,1,1,"app-barcode-preview",1)(1,re,1,1,"app-label-preview",2),e&2){let i=b(2);w(i.printMode==="barcode"?0:1)}}function ce(e,c){e&1&&(l(0,"app-customize-label"),u(1,le,2,1,"ng-template",null,0,R),m())}function de(e,c){e&1&&o(0,"app-print-preview")}var te=(()=>{class e{constructor(){this.storeService=n(v),this.httpService=n(U),this.destroyRef=n(M),this.routes=n(P)}get printMode(){return console.log("printMode",this.routes.snapshot.queryParamMap.get("printMode")),this.routes.snapshot.queryParamMap.get("printMode")}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}checkProtocol(i){return!!i.match(/^(https?):\/\//)}ngAfterViewInit(){let i=localStorage.getItem("Domain"),a=this.checkProtocol(i)?new URL(i).hostname:i;F([this.httpService.post("api/Config/PaperConfig",{SubDomain:a},void 0).pipe(g(t=>k({error:t}))),this.httpService.get("/API/V3/Tax",void 0,`https://${a}`).pipe(g(t=>k({error:t})))]).pipe(H(this.destroyRef),W("response"),y(([t,s])=>"error"in t||"error"in s?(console.warn("Error in one or more requests",{paperConfig:t,taxs:s}),{paperConfig:null,taxs:null}):{paperConfig:t,taxs:s}),T(({paperConfig:t,taxs:s})=>{t&&(this.storeService.onChangePaperConfig(C(x({},t),{PaperFormats:t.PaperFormats.map(d=>C(x({},d),{OutletID:null}))})),t.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(t.PaperFormats[0])),s&&this.storeService.onChangeTaxs(s)})).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=p({type:e,selectors:[["app-dashboard"]],standalone:!0,features:[f],decls:3,vars:1,consts:[["content",""],[3,"items"],[3,"item"]],template:function(a,t){if(a&1&&u(0,ne,1,0,"choose-product")(1,ce,3,0,"app-customize-label")(2,de,1,0,"app-print-preview"),a&2){let s;w((s=t.storeService.stepper$().state)===0?0:s===1?1:s===2?2:-1)}},dependencies:[q,K,X,Z,Y,Q]})}}return e})();var lt=[{path:"",children:[{path:"",component:te},{path:"v2/print-mode",loadComponent:()=>import("./chunk-A6GS53BJ.js").then(e=>e.PrintModeSelectorComponent)},{path:"shelf",component:ee,children:[{path:"barcode",loadComponent:()=>import("./chunk-OWLOGNWL.js").then(e=>e.ShelfBarcodeComponent)},{path:"price-label",loadComponent:()=>import("./chunk-T4TJ6V2K.js").then(e=>e.ShelfLabelComponent)}]}]}];export{lt as dashboardRoutes};
@@ -1,2 +1,2 @@
1
- import{t as je}from"./chunk-MCHSQWDB.js";import{$b as I,Aa as Fe,Ab as d,Cb as c,Dc as Be,Ec as ie,Fc as z,Gb as xe,Gc as Ne,Ha as ee,Hc as Pe,I as Ce,Ia as Ie,Ic as Ve,Ja as w,Nc as P,Ob as te,P as W,Ra as G,Rb as v,S as Z,Sa as C,Ta as T,U as Te,Ub as oe,Va as le,Vb as y,Xb as B,Xc as Me,Y as ve,Za as S,Zc as f,_a as Ae,_b as re,_c as q,a as fe,aa as be,bb as L,cc as ae,dc as ue,ec as p,fc as _,gc as H,hc as De,hd as Re,ic as Oe,jc as ce,kc as j,nc as V,oc as a,od as He,pc as de,q as Q,qa as Se,qc as he,rc as ke,sa as M,sc as F,t as _e,ta as J,tc as R,uc as m,vc as g,vd as pe,w as Ee,wa as ye,wc as D,xa as X,xc as N,ya as we,yc as U,zb as u,zc as Le}from"./chunk-YB6XMFOT.js";var Ke=["content"],Ze=["scroll"],Je=["padding"],Qe=["*"],$=i=>({searchTerm:i});function Xe(i,s){if(i&1&&(p(0,"div",3),ce(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}function et(i,s){if(i&1&&(p(0,"div",5),ce(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}var tt=["searchInput"],it=["clearButton"],nt=(i,s,e)=>({item:i,clear:s,label:e}),st=(i,s)=>({items:i,clear:s}),lt=(i,s,e,t)=>({item:i,item$:s,index:e,searchTerm:t});function ot(i,s){if(i&1&&(p(0,"div",20),N(1),_()),i&2){let e=a(2);u(),U(e.placeholder)}}function rt(i,s){}function at(i,s){if(i&1&&v(0,ot,2,1,"ng-template",null,1,P)(2,rt,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.placeholderTemplate||e)}}function ut(i,s){if(i&1){let e=j();p(0,"span",23),V("click",function(){C(e);let n=a().$implicit,l=a(2);return T(l.unselect(n))}),N(1,"\xD7"),_(),H(2,"span",24)}if(i&2){let e=a().$implicit,t=a(2);u(2),y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function ct(i,s){}function dt(i,s){if(i&1&&(p(0,"div",22),v(1,ut,3,2,"ng-template",null,2,P)(3,ct,0,0,"ng-template",12),_()),i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-value-disabled",e.disabled),u(3),y("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Pe(4,nt,e.value,n.clearItem,e.label))}}function ht(i,s){if(i&1&&ae(0,dt,4,8,"div",21,re().trackByOption,!0),i&2){let e=a();ue(e.selectedItems)}}function pt(i,s){}function mt(i,s){if(i&1&&v(0,pt,0,0,"ng-template",12),i&2){let e=a();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Ne(2,st,e.selectedValues,e.clearItem))}}function gt(i,s){i&1&&H(0,"div",25)}function ft(i,s){}function _t(i,s){if(i&1&&v(0,gt,1,0,"ng-template",null,3,P)(2,ft,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function Et(i,s){if(i&1&&(p(0,"span",15,4)(2,"span",26),N(3,"\xD7"),_()()),i&2){let e=a();ke("title",e.clearAllText)}}function Ct(i,s){if(i&1&&H(0,"span",31),i&2){let e=a().$implicit,t=a(2);y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function Tt(i,s){}function vt(i,s){if(i&1){let e=j();p(0,"div",30),V("click",function(){let n=C(e).$implicit,l=a(2);return T(l.toggleItem(n))})("mouseover",function(){let n=C(e).$implicit,l=a(2);return T(l.onItemHover(n))}),v(1,Ct,1,2,"ng-template",null,5,P)(3,Tt,0,0,"ng-template",12),_()}if(i&2){let e=s.$implicit,t=D(2),n=a(2);B("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===n.itemsList.markedItem),oe("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),u(3),y("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",Ve(17,lt,e.value,e,e.index,n.searchTerm))}}function bt(i,s){if(i&1&&(p(0,"span")(1,"span",33),N(2),_(),N(3),_()),i&2){let e=a(3);u(2),U(e.addTagText),u(),Le('"',e.searchTerm,'"')}}function St(i,s){}function yt(i,s){if(i&1){let e=j();p(0,"div",32),V("mouseover",function(){C(e);let n=a(2);return T(n.itemsList.unmarkItem())})("click",function(){C(e);let n=a(2);return T(n.selectTag())}),v(1,bt,4,2,"ng-template",null,6,P)(3,St,0,0,"ng-template",12),_()}if(i&2){let e=D(2),t=a(2);B("ng-option-marked",!t.itemsList.markedItem),u(3),y("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",z(4,$,t.searchTerm))}}function wt(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.notFoundText)}}function Ft(i,s){}function It(i,s){if(i&1&&v(0,wt,2,1,"ng-template",null,7,P)(2,Ft,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function At(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.typeToSearchText)}}function xt(i,s){}function Dt(i,s){if(i&1&&v(0,At,2,1,"ng-template",null,8,P)(2,xt,0,0,"ng-template",19),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function Ot(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.loadingText)}}function kt(i,s){}function Lt(i,s){if(i&1&&v(0,Ot,2,1,"ng-template",null,9,P)(2,kt,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function Bt(i,s){if(i&1){let e=j();p(0,"ng-dropdown-panel",27),V("update",function(n){C(e);let l=a();return T(l.viewPortItems=n)})("scroll",function(n){C(e);let l=a();return T(l.scroll.emit(n))})("scrollToEnd",function(n){C(e);let l=a();return T(l.scrollToEnd.emit(n))})("outsideClick",function(){C(e);let n=a();return T(n.close())}),De(1),ae(2,vt,4,22,"div",28,re().trackByOption,!0),v(4,yt,4,6,"div",29),Oe(),v(5,It,3,4)(6,Dt,3,1)(7,Lt,3,4),_()}if(i&2){let e=a();B("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),u(2),ue(e.viewPortItems),u(2),I(e.showAddTag?4:-1),u(),I(e.showNoItemsFound()?5:-1),u(),I(e.showTypeToSearch()?6:-1),u(),I(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var We=/[&<>"']/g,Nt=RegExp(We.source),Pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Vt(i){return i&&Nt.test(i)?i.replace(We,s=>Pt[s]):i}function h(i){return i!=null}function Y(i){return typeof i=="object"&&h(i)}function Mt(i){return i instanceof Promise}function se(i){return i instanceof Function}var Rt=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275dir=w({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[G]})}}return i})(),Ht=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),jt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Ut=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Wt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Gt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Yt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),$t=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Kt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function Ge(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Jt={"\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 ne(i){let s=e=>Jt[e]||e;return i.replace(/[^\u0000-\u007E]/g,s)}var me=class{constructor(s,e){this._ngSelect=s,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 s=this.selectedItems.length-1;for(;s>=0;s--){let e=this.selectedItems[s];if(!e.disabled)return e}return null}setItems(s){this._items=s.map((e,t)=>this.mapItem(e,t)),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(s){if(s.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(s,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&h(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,s):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===s:e=t=>t.value===s||!t.children&&t.label&&t.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(s){let e=this.mapItem(s,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(e=>{e.selected=s&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ne(s).toLocaleLowerCase(),this.filteredItems.find(e=>ne(e.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s){this.resetFilteredItems();return}this._filteredItems=[],s=this._ngSelect.searchFn?s:ne(s).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(n)){if(t&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;e(s,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(b=>b===o.parent);this._filteredItems.push(r)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=s?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(s,e){if(!Y(s))return s;if(e.indexOf(".")===-1)return s[e];{let t=e.split("."),n=s;for(let l=0,o=t.length;l<o;++l){if(n==null)return null;n=n[t[l]]}return n}}mapItem(s,e){let t=h(s.$ngOptionLabel)?s.$ngOptionLabel:this.resolveNested(s,this._ngSelect.bindLabel),n=h(s.$ngOptionValue)?s.$ngOptionValue:s;return{index:e,label:h(t)?t.toString():"",value:n,disabled:s.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let s=this._ngSelect.multiple;for(let e of this.selectedItems){let t=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,n=h(t)?this.findItem(t):null;this._selectionModel.unselect(e,s),this._selectionModel.select(n||e,s,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(s){if(this._filteredItems.push(s),s.parent){let e=s.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(s.children)for(let e of s.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(e=>e!==s),s.parent?s.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==s))}_defaultSearchFn(s,e){return ne(e.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,e){let t=new Map;if(s.length===0)return t;if(Array.isArray(s[0].value[e])){for(let o of s){let r=(o.value[e]||[]).map((b,E)=>this.mapItem(b,E));t.set(o,r)}return t}let n=se(this._ngSelect.groupBy),l=o=>{let r=n?e(o.value):o.value[e];return h(r)?r:void 0};for(let o of s){let r=l(o),b=t.get(r);b?b.push(o):t.set(r,[o])}return t}_flatten(s){let e=se(this._ngSelect.groupBy),t=[];for(let n of Array.from(s.keys())){let l=t.length;if(n===void 0){let A=s.get(void 0)||[];t.push(...A.map(x=>(x.index=l++,x)));continue}let o=Y(n),r={label:o?"":String(n),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:Ge()},b=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,E=this._ngSelect.groupValue||(()=>o?n.value:{[b]:n}),k=s.get(n).map(A=>(A.parent=r,A.children=void 0,A.index=l++,A));r.children=k,r.value=E(n,k.map(A=>A.value)),t.push(r),t.push(...k)}return t}},O=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(O||{}),qe=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let l=this._dimensions,o=l.itemHeight*t,b=Math.max(0,e)/o*t,E=Math.min(t,Math.ceil(b)+(l.itemsPerViewport+1)),A=Math.max(0,E-l.itemsPerViewport),x=Math.min(A,Math.floor(b)),K=l.itemHeight*Math.ceil(x)-l.itemHeight*Math.min(x,n);return K=isNaN(K)?0:K,x=isNaN(x)?-1:x,E=isNaN(E)?-1:E,x-=n,x=Math.max(0,x),E+=n,E=Math.min(t,E),{topPadding:K,scrollHeight:o,start:x,end:E}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:l}=this.dimensions,o=e+t,r=n,b=r+l;return l>=o&&n===e?null:o>b?r+o-b:e<=r?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac})}}return i})(),Ue=["top","right","bottom","left"],Xt=typeof requestAnimationFrame<"u"?Ee:_e,ze=(()=>{class i{constructor(e,t,n,l,o){this._renderer=e,this._zone=t,this._panelService=n,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new S,this.scroll=new S,this.scrollToEnd=new S,this.outsideClick=new S,this._destroy$=new Q,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=l.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:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}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 t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let l;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;l=this._panelService.getScrollTo(n*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),r=t?o.offsetTop:this._lastScrollPosition;l=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,r)}h(l)&&(this._scrollablePanel.scrollTop=l)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ue.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ue.forEach(n=>{let l=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,l),this._renderer.removeClass(this._select,l)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{W(this.scrollElementRef.nativeElement,"scroll").pipe(M(this._destroy$),ve(0,Xt)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Z(W(this._document,"touchstart",{capture:!0}),W(this._document,"click",{capture:!0})).pipe(M(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),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 t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),h(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 n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let l=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,l),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,l=t.top+window.pageYOffset,o=t.height,r=e.getBoundingClientRect().height;return l+o+r>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=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(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let l=t.bottom-e.bottom;this._dropdown.style.bottom=l+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let l=e.top-t.top;this._dropdown.style.top=l+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{W(this._dropdown,"mousedown").pipe(M(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(d(xe),d(Ae),d(qe),d(L),d(Re,8))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(R(Ke,7,L),R(Ze,7,L),R(Je,7,L)),t&2){let l;m(l=g())&&(n.contentElementRef=l.first),m(l=g())&&(n.scrollElementRef=l.first),m(l=g())&&(n.paddingElementRef=l.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",f],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[te,G,ie],ngContentSelectors:Qe,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(t,n){t&1&&(de(),v(0,Xe,2,4,"div",3),p(1,"div",4,0),H(3,"div",null,1),p(5,"div",null,2),he(7),_()(),v(8,et,2,4,"div",5)),t&2&&(I(n.headerTemplate?0:-1),u(3),B("total-padding",n.virtualScroll),u(2),B("scrollable-content",n.virtualScroll&&n.items.length),u(3),I(n.footerTemplate?8:-1))},dependencies:[pe],encapsulation:2,changeDetection:0})}}return i})(),ei=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Q}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(t){return new(t||i)(d(L))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",f]},standalone:!0,features:[te,G,ie],ngContentSelectors:Qe,decls:1,vars:0,template:function(t,n){t&1&&(de(),he(0))},encapsulation:2,changeDetection:0})}}return i})();function Ye(){return new ge}var ge=class{constructor(){this._selected=[]}get value(){return this._selected}select(s,e,t){if(s.selected=!0,(!s.children||!e&&t)&&this._selected.push(s),e)if(s.parent){let n=s.parent.children.length,l=s.parent.children.filter(o=>o.selected).length;s.parent.selected=n===l}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),t&&this._activeChildren(s)?this._selected=[...this._selected.filter(n=>n.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(n=>!n.disabled)])}unselect(s,e){if(this._selected=this._selected.filter(t=>t!==s),s.selected=!1,e)if(s.parent&&s.parent.selected){let t=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...t.filter(n=>n!==s&&!n.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(s,e){for(let t of s)t.disabled||(t.selected=e)}_removeChildren(s){this._selected=[...this._selected.filter(e=>e.parent!==s),...s.children.filter(e=>e.parent===s&&e.disabled&&e.selected)]}_removeParent(s){this._selected=this._selected.filter(e=>e!==s)}_activeChildren(s){return s.children.every(e=>!e.disabled||e.selected)}},ti=(()=>{class i{constructor(){this.fixedPlaceholder=!0,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(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ii=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),$e=new Fe("ng-select-selection-model"),wi=(()=>{class i{constructor(e,t,n,l,o,r,b){this.classes=e,this.autoFocus=t,this.config=n,this._cd=r,this._console=b,this.markFirst=!0,this.fixedPlaceholder=!0,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.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 S,this.focusEvent=new S,this.changeEvent=new S,this.openEvent=new S,this.closeEvent=new S,this.searchEvent=new S,this.clearEvent=new S,this.addEvent=new S,this.removeEvent=new S,this.scroll=new S,this.scrollToEnd=new S,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ge(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Q,this._keyPress$=new Q,this._items=[],this.keyDownFn=E=>!0,this.clearItem=E=>{let k=this.selectedItems.find(A=>A.value===E);this.unselect(k)},this.trackByOption=(E,k)=>this.trackByFn?this.trackByFn(k.value):k,this._onChange=E=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new me(this,l?l():Ye()),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&&!se(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return h(this._clearSearchOnAdd)?this._clearSearchOnAdd:h(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return h(this._deselectOnClick)?this._deselectOnClick:h(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(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.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&&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=h(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),h(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(O[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let t=e.target;this.clearButton&&this.clearButton.nativeElement===t?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case O.ArrowDown:this._handleArrowDown(e);break;case O.ArrowUp:this._handleArrowUp(e);break;case O.Space:this._handleSpace(e);break;case O.Enter:this._handleEnter(e);break;case O.Tab:this._handleTab(e);break;case O.Esc:this.close(),e.preventDefault();break;case O.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case O.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.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;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Mt(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(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(t=>t.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&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=h(t)?!Y(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&h(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(l=>({$ngOptionValue:l.value,$ngOptionLabel:l.elementRef.nativeElement.innerHTML,disabled:l.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=Z(this.ngOptions.changes,this._destroy$);Z(...this.ngOptions.map(l=>l.stateChange$)).pipe(M(n)).subscribe(l=>{let o=this.itemsList.findItem(l.value);o.disabled=l.disabled,o.label=l.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Se(this.ngOptions),M(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!h(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!h(this.compareWith)&&Y(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let l=this.itemsList.findItem(n);if(l)this.itemsList.select(l);else{let o=Y(n),r=!o&&!this.bindValue;o||r?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(l={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(l,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(M(this._destroy$),J(e=>this._pressedKeys.push(e)),be(200),Te(()=>this._pressedKeys.length>0),Ce(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=fe({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let l=null;if(n.children){let o=this.groupValue?this.bindValue:this.groupBy;l=n.value[o||this.groupBy]}else l=this.itemsList.resolveNested(n.value,this.bindValue);e.push(l)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(h(e[0])?e[0]:null),this.changeEvent.emit(t[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.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 t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===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=h(this.virtualScroll)?this.virtualScroll:h(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=h(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}static{this.\u0275fac=function(t){return new(t||i)(le("class"),le("autofocus"),d(ti),d($e,8),d(L),d(Me),d(ii))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,l){if(t&1&&(F(l,Ht,5,c),F(l,jt,5,c),F(l,Ut,5,c),F(l,zt,5,c),F(l,Qt,5,c),F(l,Wt,5,c),F(l,Gt,5,c),F(l,qt,5,c),F(l,Yt,5,c),F(l,$t,5,c),F(l,Kt,5,c),F(l,Zt,5,c),F(l,ei,5)),t&2){let o;m(o=g())&&(n.optionTemplate=o.first),m(o=g())&&(n.optgroupTemplate=o.first),m(o=g())&&(n.labelTemplate=o.first),m(o=g())&&(n.multiLabelTemplate=o.first),m(o=g())&&(n.headerTemplate=o.first),m(o=g())&&(n.footerTemplate=o.first),m(o=g())&&(n.notFoundTemplate=o.first),m(o=g())&&(n.placeholderTemplate=o.first),m(o=g())&&(n.typeToSearchTemplate=o.first),m(o=g())&&(n.loadingTextTemplate=o.first),m(o=g())&&(n.tagTemplate=o.first),m(o=g())&&(n.loadingSpinnerTemplate=o.first),m(o=g())&&(n.ngOptions=o)}},viewQuery:function(t,n){if(t&1&&(R(ze,5),R(tt,7),R(it,5)),t&2){let l;m(l=g())&&(n.dropdownPanel=l.first),m(l=g())&&(n.searchInput=l.first),m(l=g())&&(n.clearButton=l.first)}},hostVars:20,hostBindings:function(t,n){t&1&&V("keydown",function(o){return n.handleKeyDown(o)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",f],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",f],closeOnSelect:[2,"closeOnSelect","closeOnSelect",f],hideSelected:[2,"hideSelected","hideSelected",f],selectOnTab:[2,"selectOnTab","selectOnTab",f],openOnEnter:[2,"openOnEnter","openOnEnter",f],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",q],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",q],virtualScroll:[2,"virtualScroll","virtualScroll",f],selectableGroup:[2,"selectableGroup","selectableGroup",f],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",f],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",f],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",q],readonly:[2,"readonly","readonly",f],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",f],minTermLength:[2,"minTermLength","minTermLength",q],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",f],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",f],addTag:"addTag",searchable:[2,"searchable","searchable",f],clearable:[2,"clearable","clearable",f],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"},standalone:!0,features:[Be([{provide:je,useExisting:ye(()=>i),multi:!0},qe]),te,G,ie],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"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",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"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",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(t,n){if(t&1){let l=j();p(0,"div",10),V("mousedown",function(r){return C(l),T(n.handleMousedown(r))}),p(1,"div",11),v(2,at,3,1)(3,ht,2,0)(4,mt,1,5,null,12),p(5,"div",13)(6,"input",14,0),V("blur",function(r){return C(l),T(n.onInputBlur(r))})("change",function(r){return C(l),T(r.stopPropagation())})("compositionend",function(){C(l);let r=D(7);return T(n.onCompositionEnd(r.value))})("compositionstart",function(){return C(l),T(n.onCompositionStart())})("focus",function(r){return C(l),T(n.onInputFocus(r))})("input",function(){C(l);let r=D(7);return T(n.filter(r.value))}),_()()(),v(8,_t,3,1)(9,Et,4,1,"span",15),p(10,"span",16),H(11,"span",17),_()(),v(12,Bt,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),u(2),I(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),u(),I((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),u(),I(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),u(2),y("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),oe("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),u(2),I(n.loading?8:-1),u(),I(n.showClear()?9:-1),u(3),I(n.isOpen?12:-1))},dependencies:[pe,Rt,ze,He],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}
2
- `],encapsulation:2,changeDetection:0})}}return i})(),Fi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=Ie({type:i})}static{this.\u0275inj=we({providers:[{provide:$e,useValue:Ye}]})}}return i})();function Di(i="emit"){return s=>s.pipe(J(e=>console.log(`${i}`,e)))}export{ei as a,wi as b,Fi as c,Di as d};
1
+ import{t as je}from"./chunk-AVMIS4JH.js";import{$b as I,Aa as Fe,Ab as d,Cb as c,Dc as Be,Ec as ie,Fc as z,Gb as xe,Gc as Ne,Ha as ee,Hc as Pe,I as Ce,Ia as Ie,Ic as Ve,Ja as w,Nc as P,Ob as te,P as W,Ra as G,Rb as v,S as Z,Sa as C,Ta as T,U as Te,Ub as oe,Va as le,Vb as y,Xb as B,Xc as Me,Y as ve,Za as S,Zc as f,_a as Ae,_b as re,_c as q,a as fe,aa as be,bb as L,cc as ae,dc as ue,ec as p,fc as _,gc as H,hc as De,hd as Re,ic as Oe,jc as ce,kc as j,nc as V,oc as a,od as He,pc as de,q as Q,qa as Se,qc as he,rc as ke,sa as M,sc as F,t as _e,ta as J,tc as R,uc as m,vc as g,vd as pe,w as Ee,wa as ye,wc as D,xa as X,xc as N,ya as we,yc as U,zb as u,zc as Le}from"./chunk-YB6XMFOT.js";var Ke=["content"],Ze=["scroll"],Je=["padding"],Qe=["*"],$=i=>({searchTerm:i});function Xe(i,s){if(i&1&&(p(0,"div",3),ce(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}function et(i,s){if(i&1&&(p(0,"div",5),ce(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}var tt=["searchInput"],it=["clearButton"],nt=(i,s,e)=>({item:i,clear:s,label:e}),st=(i,s)=>({items:i,clear:s}),lt=(i,s,e,t)=>({item:i,item$:s,index:e,searchTerm:t});function ot(i,s){if(i&1&&(p(0,"div",20),N(1),_()),i&2){let e=a(2);u(),U(e.placeholder)}}function rt(i,s){}function at(i,s){if(i&1&&v(0,ot,2,1,"ng-template",null,1,P)(2,rt,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.placeholderTemplate||e)}}function ut(i,s){if(i&1){let e=j();p(0,"span",23),V("click",function(){C(e);let n=a().$implicit,l=a(2);return T(l.unselect(n))}),N(1,"\xD7"),_(),H(2,"span",24)}if(i&2){let e=a().$implicit,t=a(2);u(2),y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function ct(i,s){}function dt(i,s){if(i&1&&(p(0,"div",22),v(1,ut,3,2,"ng-template",null,2,P)(3,ct,0,0,"ng-template",12),_()),i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-value-disabled",e.disabled),u(3),y("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Pe(4,nt,e.value,n.clearItem,e.label))}}function ht(i,s){if(i&1&&ae(0,dt,4,8,"div",21,re().trackByOption,!0),i&2){let e=a();ue(e.selectedItems)}}function pt(i,s){}function mt(i,s){if(i&1&&v(0,pt,0,0,"ng-template",12),i&2){let e=a();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Ne(2,st,e.selectedValues,e.clearItem))}}function gt(i,s){i&1&&H(0,"div",25)}function ft(i,s){}function _t(i,s){if(i&1&&v(0,gt,1,0,"ng-template",null,3,P)(2,ft,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function Et(i,s){if(i&1&&(p(0,"span",15,4)(2,"span",26),N(3,"\xD7"),_()()),i&2){let e=a();ke("title",e.clearAllText)}}function Ct(i,s){if(i&1&&H(0,"span",31),i&2){let e=a().$implicit,t=a(2);y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function Tt(i,s){}function vt(i,s){if(i&1){let e=j();p(0,"div",30),V("click",function(){let n=C(e).$implicit,l=a(2);return T(l.toggleItem(n))})("mouseover",function(){let n=C(e).$implicit,l=a(2);return T(l.onItemHover(n))}),v(1,Ct,1,2,"ng-template",null,5,P)(3,Tt,0,0,"ng-template",12),_()}if(i&2){let e=s.$implicit,t=D(2),n=a(2);B("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===n.itemsList.markedItem),oe("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),u(3),y("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",Ve(17,lt,e.value,e,e.index,n.searchTerm))}}function bt(i,s){if(i&1&&(p(0,"span")(1,"span",33),N(2),_(),N(3),_()),i&2){let e=a(3);u(2),U(e.addTagText),u(),Le('"',e.searchTerm,'"')}}function St(i,s){}function yt(i,s){if(i&1){let e=j();p(0,"div",32),V("mouseover",function(){C(e);let n=a(2);return T(n.itemsList.unmarkItem())})("click",function(){C(e);let n=a(2);return T(n.selectTag())}),v(1,bt,4,2,"ng-template",null,6,P)(3,St,0,0,"ng-template",12),_()}if(i&2){let e=D(2),t=a(2);B("ng-option-marked",!t.itemsList.markedItem),u(3),y("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",z(4,$,t.searchTerm))}}function wt(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.notFoundText)}}function Ft(i,s){}function It(i,s){if(i&1&&v(0,wt,2,1,"ng-template",null,7,P)(2,Ft,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function At(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.typeToSearchText)}}function xt(i,s){}function Dt(i,s){if(i&1&&v(0,At,2,1,"ng-template",null,8,P)(2,xt,0,0,"ng-template",19),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function Ot(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.loadingText)}}function kt(i,s){}function Lt(i,s){if(i&1&&v(0,Ot,2,1,"ng-template",null,9,P)(2,kt,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function Bt(i,s){if(i&1){let e=j();p(0,"ng-dropdown-panel",27),V("update",function(n){C(e);let l=a();return T(l.viewPortItems=n)})("scroll",function(n){C(e);let l=a();return T(l.scroll.emit(n))})("scrollToEnd",function(n){C(e);let l=a();return T(l.scrollToEnd.emit(n))})("outsideClick",function(){C(e);let n=a();return T(n.close())}),De(1),ae(2,vt,4,22,"div",28,re().trackByOption,!0),v(4,yt,4,6,"div",29),Oe(),v(5,It,3,4)(6,Dt,3,1)(7,Lt,3,4),_()}if(i&2){let e=a();B("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),u(2),ue(e.viewPortItems),u(2),I(e.showAddTag?4:-1),u(),I(e.showNoItemsFound()?5:-1),u(),I(e.showTypeToSearch()?6:-1),u(),I(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var We=/[&<>"']/g,Nt=RegExp(We.source),Pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Vt(i){return i&&Nt.test(i)?i.replace(We,s=>Pt[s]):i}function h(i){return i!=null}function Y(i){return typeof i=="object"&&h(i)}function Mt(i){return i instanceof Promise}function se(i){return i instanceof Function}var Rt=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275dir=w({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[G]})}}return i})(),Ht=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),jt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Ut=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Wt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Gt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Yt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),$t=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Kt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function Ge(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Jt={"\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 ne(i){let s=e=>Jt[e]||e;return i.replace(/[^\u0000-\u007E]/g,s)}var me=class{constructor(s,e){this._ngSelect=s,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 s=this.selectedItems.length-1;for(;s>=0;s--){let e=this.selectedItems[s];if(!e.disabled)return e}return null}setItems(s){this._items=s.map((e,t)=>this.mapItem(e,t)),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(s){if(s.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(s,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&h(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,s):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===s:e=t=>t.value===s||!t.children&&t.label&&t.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(s){let e=this.mapItem(s,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(e=>{e.selected=s&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ne(s).toLocaleLowerCase(),this.filteredItems.find(e=>ne(e.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s){this.resetFilteredItems();return}this._filteredItems=[],s=this._ngSelect.searchFn?s:ne(s).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(n)){if(t&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;e(s,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(b=>b===o.parent);this._filteredItems.push(r)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=s?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(s,e){if(!Y(s))return s;if(e.indexOf(".")===-1)return s[e];{let t=e.split("."),n=s;for(let l=0,o=t.length;l<o;++l){if(n==null)return null;n=n[t[l]]}return n}}mapItem(s,e){let t=h(s.$ngOptionLabel)?s.$ngOptionLabel:this.resolveNested(s,this._ngSelect.bindLabel),n=h(s.$ngOptionValue)?s.$ngOptionValue:s;return{index:e,label:h(t)?t.toString():"",value:n,disabled:s.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let s=this._ngSelect.multiple;for(let e of this.selectedItems){let t=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,n=h(t)?this.findItem(t):null;this._selectionModel.unselect(e,s),this._selectionModel.select(n||e,s,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}_showSelected(s){if(this._filteredItems.push(s),s.parent){let e=s.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(s.children)for(let e of s.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(e=>e!==s),s.parent?s.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==s))}_defaultSearchFn(s,e){return ne(e.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,e){let t=new Map;if(s.length===0)return t;if(Array.isArray(s[0].value[e])){for(let o of s){let r=(o.value[e]||[]).map((b,E)=>this.mapItem(b,E));t.set(o,r)}return t}let n=se(this._ngSelect.groupBy),l=o=>{let r=n?e(o.value):o.value[e];return h(r)?r:void 0};for(let o of s){let r=l(o),b=t.get(r);b?b.push(o):t.set(r,[o])}return t}_flatten(s){let e=se(this._ngSelect.groupBy),t=[];for(let n of Array.from(s.keys())){let l=t.length;if(n===void 0){let A=s.get(void 0)||[];t.push(...A.map(x=>(x.index=l++,x)));continue}let o=Y(n),r={label:o?"":String(n),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:Ge()},b=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,E=this._ngSelect.groupValue||(()=>o?n.value:{[b]:n}),k=s.get(n).map(A=>(A.parent=r,A.children=void 0,A.index=l++,A));r.children=k,r.value=E(n,k.map(A=>A.value)),t.push(r),t.push(...k)}return t}},O=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(O||{}),qe=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let l=this._dimensions,o=l.itemHeight*t,b=Math.max(0,e)/o*t,E=Math.min(t,Math.ceil(b)+(l.itemsPerViewport+1)),A=Math.max(0,E-l.itemsPerViewport),x=Math.min(A,Math.floor(b)),K=l.itemHeight*Math.ceil(x)-l.itemHeight*Math.min(x,n);return K=isNaN(K)?0:K,x=isNaN(x)?-1:x,E=isNaN(E)?-1:E,x-=n,x=Math.max(0,x),E+=n,E=Math.min(t,E),{topPadding:K,scrollHeight:o,start:x,end:E}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:l}=this.dimensions,o=e+t,r=n,b=r+l;return l>=o&&n===e?null:o>b?r+o-b:e<=r?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac})}}return i})(),Ue=["top","right","bottom","left"],Xt=typeof requestAnimationFrame<"u"?Ee:_e,ze=(()=>{class i{constructor(e,t,n,l,o){this._renderer=e,this._zone=t,this._panelService=n,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new S,this.scroll=new S,this.scrollToEnd=new S,this.outsideClick=new S,this._destroy$=new Q,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=l.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:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}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 t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let l;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;l=this._panelService.getScrollTo(n*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),r=t?o.offsetTop:this._lastScrollPosition;l=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,r)}h(l)&&(this._scrollablePanel.scrollTop=l)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ue.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ue.forEach(n=>{let l=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,l),this._renderer.removeClass(this._select,l)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{W(this.scrollElementRef.nativeElement,"scroll").pipe(M(this._destroy$),ve(0,Xt)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Z(W(this._document,"touchstart",{capture:!0}),W(this._document,"click",{capture:!0})).pipe(M(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),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 t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),h(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 n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let l=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,l),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,l=t.top+window.pageYOffset,o=t.height,r=e.getBoundingClientRect().height;return l+o+r>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=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(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let l=t.bottom-e.bottom;this._dropdown.style.bottom=l+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let l=e.top-t.top;this._dropdown.style.top=l+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{W(this._dropdown,"mousedown").pipe(M(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(d(xe),d(Ae),d(qe),d(L),d(Re,8))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(R(Ke,7,L),R(Ze,7,L),R(Je,7,L)),t&2){let l;m(l=g())&&(n.contentElementRef=l.first),m(l=g())&&(n.scrollElementRef=l.first),m(l=g())&&(n.paddingElementRef=l.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",f],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[te,G,ie],ngContentSelectors:Qe,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(t,n){t&1&&(de(),v(0,Xe,2,4,"div",3),p(1,"div",4,0),H(3,"div",null,1),p(5,"div",null,2),he(7),_()(),v(8,et,2,4,"div",5)),t&2&&(I(n.headerTemplate?0:-1),u(3),B("total-padding",n.virtualScroll),u(2),B("scrollable-content",n.virtualScroll&&n.items.length),u(3),I(n.footerTemplate?8:-1))},dependencies:[pe],encapsulation:2,changeDetection:0})}}return i})(),ei=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Q}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(t){return new(t||i)(d(L))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",f]},standalone:!0,features:[te,G,ie],ngContentSelectors:Qe,decls:1,vars:0,template:function(t,n){t&1&&(de(),he(0))},encapsulation:2,changeDetection:0})}}return i})();function Ye(){return new ge}var ge=class{constructor(){this._selected=[]}get value(){return this._selected}select(s,e,t){if(s.selected=!0,(!s.children||!e&&t)&&this._selected.push(s),e)if(s.parent){let n=s.parent.children.length,l=s.parent.children.filter(o=>o.selected).length;s.parent.selected=n===l}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),t&&this._activeChildren(s)?this._selected=[...this._selected.filter(n=>n.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(n=>!n.disabled)])}unselect(s,e){if(this._selected=this._selected.filter(t=>t!==s),s.selected=!1,e)if(s.parent&&s.parent.selected){let t=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...t.filter(n=>n!==s&&!n.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(s,e){for(let t of s)t.disabled||(t.selected=e)}_removeChildren(s){this._selected=[...this._selected.filter(e=>e.parent!==s),...s.children.filter(e=>e.parent===s&&e.disabled&&e.selected)]}_removeParent(s){this._selected=this._selected.filter(e=>e!==s)}_activeChildren(s){return s.children.every(e=>!e.disabled||e.selected)}},ti=(()=>{class i{constructor(){this.fixedPlaceholder=!0,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(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ii=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=X({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),$e=new Fe("ng-select-selection-model"),wi=(()=>{class i{constructor(e,t,n,l,o,r,b){this.classes=e,this.autoFocus=t,this.config=n,this._cd=r,this._console=b,this.markFirst=!0,this.fixedPlaceholder=!0,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.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 S,this.focusEvent=new S,this.changeEvent=new S,this.openEvent=new S,this.closeEvent=new S,this.searchEvent=new S,this.clearEvent=new S,this.addEvent=new S,this.removeEvent=new S,this.scroll=new S,this.scrollToEnd=new S,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ge(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Q,this._keyPress$=new Q,this._items=[],this.keyDownFn=E=>!0,this.clearItem=E=>{let k=this.selectedItems.find(A=>A.value===E);this.unselect(k)},this.trackByOption=(E,k)=>this.trackByFn?this.trackByFn(k.value):k,this._onChange=E=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new me(this,l?l():Ye()),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&&!se(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return h(this._clearSearchOnAdd)?this._clearSearchOnAdd:h(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return h(this._deselectOnClick)?this._deselectOnClick:h(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(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.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&&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=h(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),h(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(O[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let t=e.target;this.clearButton&&this.clearButton.nativeElement===t?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case O.ArrowDown:this._handleArrowDown(e);break;case O.ArrowUp:this._handleArrowUp(e);break;case O.Space:this._handleSpace(e);break;case O.Enter:this._handleEnter(e);break;case O.Tab:this._handleTab(e);break;case O.Esc:this.close(),e.preventDefault();break;case O.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case O.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.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;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Mt(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(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(t=>t.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&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=h(t)?!Y(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&h(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(l=>({$ngOptionValue:l.value,$ngOptionLabel:l.elementRef.nativeElement.innerHTML,disabled:l.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=Z(this.ngOptions.changes,this._destroy$);Z(...this.ngOptions.map(l=>l.stateChange$)).pipe(M(n)).subscribe(l=>{let o=this.itemsList.findItem(l.value);o.disabled=l.disabled,o.label=l.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Se(this.ngOptions),M(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!h(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!h(this.compareWith)&&Y(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let l=this.itemsList.findItem(n);if(l)this.itemsList.select(l);else{let o=Y(n),r=!o&&!this.bindValue;o||r?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(l={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(l,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(M(this._destroy$),J(e=>this._pressedKeys.push(e)),be(200),Te(()=>this._pressedKeys.length>0),Ce(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=fe({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let l=null;if(n.children){let o=this.groupValue?this.bindValue:this.groupBy;l=n.value[o||this.groupBy]}else l=this.itemsList.resolveNested(n.value,this.bindValue);e.push(l)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(h(e[0])?e[0]:null),this.changeEvent.emit(t[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.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 t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===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=h(this.virtualScroll)?this.virtualScroll:h(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=h(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}static{this.\u0275fac=function(t){return new(t||i)(le("class"),le("autofocus"),d(ti),d($e,8),d(L),d(Me),d(ii))}}static{this.\u0275cmp=ee({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,l){if(t&1&&(F(l,Ht,5,c),F(l,jt,5,c),F(l,Ut,5,c),F(l,zt,5,c),F(l,Qt,5,c),F(l,Wt,5,c),F(l,Gt,5,c),F(l,qt,5,c),F(l,Yt,5,c),F(l,$t,5,c),F(l,Kt,5,c),F(l,Zt,5,c),F(l,ei,5)),t&2){let o;m(o=g())&&(n.optionTemplate=o.first),m(o=g())&&(n.optgroupTemplate=o.first),m(o=g())&&(n.labelTemplate=o.first),m(o=g())&&(n.multiLabelTemplate=o.first),m(o=g())&&(n.headerTemplate=o.first),m(o=g())&&(n.footerTemplate=o.first),m(o=g())&&(n.notFoundTemplate=o.first),m(o=g())&&(n.placeholderTemplate=o.first),m(o=g())&&(n.typeToSearchTemplate=o.first),m(o=g())&&(n.loadingTextTemplate=o.first),m(o=g())&&(n.tagTemplate=o.first),m(o=g())&&(n.loadingSpinnerTemplate=o.first),m(o=g())&&(n.ngOptions=o)}},viewQuery:function(t,n){if(t&1&&(R(ze,5),R(tt,7),R(it,5)),t&2){let l;m(l=g())&&(n.dropdownPanel=l.first),m(l=g())&&(n.searchInput=l.first),m(l=g())&&(n.clearButton=l.first)}},hostVars:20,hostBindings:function(t,n){t&1&&V("keydown",function(o){return n.handleKeyDown(o)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",f],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",f],closeOnSelect:[2,"closeOnSelect","closeOnSelect",f],hideSelected:[2,"hideSelected","hideSelected",f],selectOnTab:[2,"selectOnTab","selectOnTab",f],openOnEnter:[2,"openOnEnter","openOnEnter",f],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",q],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",q],virtualScroll:[2,"virtualScroll","virtualScroll",f],selectableGroup:[2,"selectableGroup","selectableGroup",f],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",f],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",f],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",q],readonly:[2,"readonly","readonly",f],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",f],minTermLength:[2,"minTermLength","minTermLength",q],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",f],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",f],addTag:"addTag",searchable:[2,"searchable","searchable",f],clearable:[2,"clearable","clearable",f],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"},standalone:!0,features:[Be([{provide:je,useExisting:ye(()=>i),multi:!0},qe]),te,G,ie],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"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",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"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",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(t,n){if(t&1){let l=j();p(0,"div",10),V("mousedown",function(r){return C(l),T(n.handleMousedown(r))}),p(1,"div",11),v(2,at,3,1)(3,ht,2,0)(4,mt,1,5,null,12),p(5,"div",13)(6,"input",14,0),V("blur",function(r){return C(l),T(n.onInputBlur(r))})("change",function(r){return C(l),T(r.stopPropagation())})("compositionend",function(){C(l);let r=D(7);return T(n.onCompositionEnd(r.value))})("compositionstart",function(){return C(l),T(n.onCompositionStart())})("focus",function(r){return C(l),T(n.onInputFocus(r))})("input",function(){C(l);let r=D(7);return T(n.filter(r.value))}),_()()(),v(8,_t,3,1)(9,Et,4,1,"span",15),p(10,"span",16),H(11,"span",17),_()(),v(12,Bt,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),u(2),I(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),u(),I((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),u(),I(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),u(2),y("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),oe("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),u(2),I(n.loading?8:-1),u(),I(n.showClear()?9:-1),u(3),I(n.isOpen?12:-1))},dependencies:[pe,Rt,ze,He],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}
2
+ `],encapsulation:2,changeDetection:0})}}return i})(),Fi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=Ie({type:i})}static{this.\u0275inj=we({providers:[{provide:$e,useValue:Ye}]})}}return i})();function Di(i="emit"){return s=>s.pipe(J(e=>console.log(`${i}`,e)))}export{Ht as a,Ut as b,Qt as c,ei as d,wi as e,Fi as f,Di as g};