marketplacepos 3.11.9 → 3.12.1

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.
Files changed (121) hide show
  1. package/Marketplace/3rdpartylicenses.txt +10 -5
  2. package/Marketplace/chunk-2GZOVNPU.js +1 -0
  3. package/Marketplace/chunk-2TP5VOFK.js +1 -0
  4. package/Marketplace/chunk-2UXFUEON.js +1 -0
  5. package/Marketplace/chunk-2Y4N4NSS.js +2 -0
  6. package/Marketplace/chunk-3LRKHZJF.js +1 -0
  7. package/Marketplace/chunk-43TMSPFC.js +1 -0
  8. package/Marketplace/chunk-4TYJR476.js +1 -0
  9. package/Marketplace/chunk-55FMAZZX.js +1 -0
  10. package/Marketplace/chunk-5WVUQE43.js +6 -0
  11. package/Marketplace/chunk-6UIQWVXV.js +1 -0
  12. package/Marketplace/chunk-6YNIQNOH.js +1 -0
  13. package/Marketplace/chunk-77JORVC2.js +8 -0
  14. package/Marketplace/{chunk-SRYGE2HW.js → chunk-7CEWM7GE.js} +1 -1
  15. package/Marketplace/chunk-7CFCIVVL.js +47 -0
  16. package/Marketplace/chunk-7GNI4BOW.js +3 -0
  17. package/Marketplace/{chunk-MK34PW5S.js → chunk-7NHG2S26.js} +1 -1
  18. package/Marketplace/chunk-7NWB2VB2.js +1 -0
  19. package/Marketplace/chunk-AAIK6JQ3.js +4 -0
  20. package/Marketplace/chunk-ACQFVAYY.js +2 -0
  21. package/Marketplace/chunk-ADY4N3OO.js +1 -0
  22. package/Marketplace/chunk-B6MUIJKS.js +1 -0
  23. package/Marketplace/chunk-BMPACBBM.js +5 -0
  24. package/Marketplace/chunk-BRTVFFDI.js +1 -0
  25. package/Marketplace/chunk-BSBYMQ7J.js +1 -0
  26. package/Marketplace/chunk-CP7VAKTQ.js +1 -0
  27. package/Marketplace/chunk-CRRJCY55.js +1 -0
  28. package/Marketplace/{chunk-BD2QQPDK.js → chunk-CVLA5R75.js} +1 -1
  29. package/Marketplace/chunk-D6DGXCGX.js +1 -0
  30. package/Marketplace/chunk-DXJFMERC.js +1 -0
  31. package/Marketplace/chunk-DZHNXVSW.js +1 -0
  32. package/Marketplace/chunk-F27ETJV7.js +1 -0
  33. package/Marketplace/chunk-F2CKDRNC.js +1 -0
  34. package/Marketplace/chunk-F5YRASNU.js +1 -0
  35. package/Marketplace/{chunk-NRVXDIHY.js → chunk-FCVAME75.js} +1 -1
  36. package/Marketplace/chunk-FX43R2N5.js +5 -0
  37. package/Marketplace/chunk-G6CZHXQI.js +1 -0
  38. package/Marketplace/chunk-GP3CFNYA.js +1 -0
  39. package/Marketplace/chunk-H5R2QBFE.js +1 -0
  40. package/Marketplace/{chunk-JM3LERUP.js → chunk-HBHGO2RV.js} +1 -1
  41. package/Marketplace/chunk-HMPT5KZP.js +1 -0
  42. package/Marketplace/chunk-HYSXRUQ5.js +1 -0
  43. package/Marketplace/{chunk-JDGPUKXR.js → chunk-HZK5WTN4.js} +1 -1
  44. package/Marketplace/chunk-IP2WADIR.js +1 -0
  45. package/Marketplace/chunk-IPX66YIX.js +1 -0
  46. package/Marketplace/chunk-JFZBHYGA.js +2 -0
  47. package/Marketplace/{chunk-KJJM4QBN.js → chunk-JHFUHCJ5.js} +1 -1
  48. package/Marketplace/chunk-KL3JQ3CH.js +1 -0
  49. package/Marketplace/chunk-L536HOP7.js +1 -0
  50. package/Marketplace/chunk-LAPVAK6T.js +4 -0
  51. package/Marketplace/chunk-LIKUREIJ.js +3 -0
  52. package/Marketplace/chunk-LIS3LB3F.js +1 -0
  53. package/Marketplace/chunk-M4VGME5L.js +1 -0
  54. package/Marketplace/chunk-MEGPKKGI.js +1 -0
  55. package/Marketplace/{chunk-PZOGC5DT.js → chunk-N23ZYP7G.js} +1 -1
  56. package/Marketplace/chunk-NNPT3RN6.js +11 -0
  57. package/Marketplace/chunk-OFRBPREK.js +1 -0
  58. package/Marketplace/chunk-OPCNZJU6.js +1 -0
  59. package/Marketplace/chunk-PIDUM6XT.js +2 -0
  60. package/Marketplace/chunk-Q62ADDQD.js +1 -0
  61. package/Marketplace/{chunk-UCO4GNIH.js → chunk-TV6HSZVQ.js} +1 -1
  62. package/Marketplace/{chunk-5LCXVQBT.js → chunk-TX43EE6N.js} +1 -1
  63. package/Marketplace/chunk-U5V35L36.js +1 -0
  64. package/Marketplace/{chunk-NSM4JDXS.js → chunk-VPYKYYBH.js} +1 -1
  65. package/Marketplace/chunk-VR4XGLLG.js +5 -0
  66. package/Marketplace/{chunk-WQ7LUTQ2.js → chunk-WJI6JIBR.js} +1 -1
  67. package/Marketplace/chunk-XCICEYUJ.js +1 -0
  68. package/Marketplace/{chunk-MSAVOLLA.js → chunk-Y4SOX2BE.js} +1 -1
  69. package/Marketplace/index.html +2 -3
  70. package/Marketplace/main-L7OPGQ22.js +1 -0
  71. package/Marketplace/polyfills-KTKZVV2N.js +2 -0
  72. package/Marketplace/styles-4NMVKKKY.css +1 -0
  73. package/package.json +1 -1
  74. package/Marketplace/chunk-2ANKQQV3.js +0 -1
  75. package/Marketplace/chunk-33GGGAPS.js +0 -1
  76. package/Marketplace/chunk-5ZUWMFL5.js +0 -1
  77. package/Marketplace/chunk-6B64VOO7.js +0 -1
  78. package/Marketplace/chunk-6DRNAUKE.js +0 -8
  79. package/Marketplace/chunk-6F6NSBIF.js +0 -1
  80. package/Marketplace/chunk-AL67KXJV.js +0 -2
  81. package/Marketplace/chunk-BMZAGAK3.js +0 -1
  82. package/Marketplace/chunk-BP2CJXCZ.js +0 -47
  83. package/Marketplace/chunk-CDTB3FEI.js +0 -2
  84. package/Marketplace/chunk-DEH6NGKQ.js +0 -1
  85. package/Marketplace/chunk-DT3B54LD.js +0 -4
  86. package/Marketplace/chunk-FNAAZA3R.js +0 -1
  87. package/Marketplace/chunk-G4YKNFZZ.js +0 -1
  88. package/Marketplace/chunk-G5LCLRIW.js +0 -1
  89. package/Marketplace/chunk-GRMIXZTT.js +0 -1
  90. package/Marketplace/chunk-GSSZWMCP.js +0 -5
  91. package/Marketplace/chunk-INNTQ5YN.js +0 -1
  92. package/Marketplace/chunk-K3G6FMDF.js +0 -1
  93. package/Marketplace/chunk-KBYAFLE5.js +0 -1
  94. package/Marketplace/chunk-KUVW5SH2.js +0 -1
  95. package/Marketplace/chunk-MSGMWJHN.js +0 -1
  96. package/Marketplace/chunk-MYMGWQRE.js +0 -6
  97. package/Marketplace/chunk-N4S3Q3EC.js +0 -1
  98. package/Marketplace/chunk-OFMNMKMG.js +0 -3
  99. package/Marketplace/chunk-PRYDCJG5.js +0 -1
  100. package/Marketplace/chunk-QKSDQVPL.js +0 -5
  101. package/Marketplace/chunk-QWNDYA65.js +0 -1
  102. package/Marketplace/chunk-RKJINSSM.js +0 -1
  103. package/Marketplace/chunk-RZKKTX4V.js +0 -5
  104. package/Marketplace/chunk-SMRE36YG.js +0 -1
  105. package/Marketplace/chunk-SP6QPE3M.js +0 -1
  106. package/Marketplace/chunk-TCC7PQV3.js +0 -1
  107. package/Marketplace/chunk-TDHJ34QP.js +0 -1
  108. package/Marketplace/chunk-TDK2QBFI.js +0 -1
  109. package/Marketplace/chunk-U5YOE633.js +0 -5
  110. package/Marketplace/chunk-UILE7H6I.js +0 -1
  111. package/Marketplace/chunk-W3EAYQL3.js +0 -1
  112. package/Marketplace/chunk-XDNW2F3I.js +0 -3
  113. package/Marketplace/chunk-YHEEVSLX.js +0 -1
  114. package/Marketplace/chunk-YNKSRONN.js +0 -2
  115. package/Marketplace/chunk-YZ67XPSX.js +0 -1
  116. package/Marketplace/chunk-ZHG47R5T.js +0 -1
  117. package/Marketplace/chunk-ZKBLXGXT.js +0 -2
  118. package/Marketplace/chunk-ZLBTBS3M.js +0 -4
  119. package/Marketplace/main-YOSC4DEC.js +0 -1
  120. package/Marketplace/polyfills-Y3W47ZLP.js +0 -2
  121. package/Marketplace/styles-STRQ65W6.css +0 -1
@@ -56,6 +56,11 @@ Package: @microsoft/signalr
56
56
  License: "MIT"
57
57
 
58
58
 
59
+ --------------------------------------------------------------------------------
60
+ Package: @dealpos-npm/ng-dealpos-library
61
+ License: "ISC"
62
+
63
+
59
64
  --------------------------------------------------------------------------------
60
65
  Package: primeng
61
66
  License: "MIT"
@@ -185,6 +190,11 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
185
190
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
186
191
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
187
192
 
193
+ --------------------------------------------------------------------------------
194
+ Package: @ng-select/ng-select
195
+ License: "MIT"
196
+
197
+
188
198
  --------------------------------------------------------------------------------
189
199
  Package: autonumeric
190
200
  License: "MIT"
@@ -218,11 +228,6 @@ Package: bigger-picture
218
228
  License: "MIT"
219
229
 
220
230
 
221
- --------------------------------------------------------------------------------
222
- Package: @ng-select/ng-select
223
- License: "MIT"
224
-
225
-
226
231
  --------------------------------------------------------------------------------
227
232
  Package: firebase
228
233
  License: "Apache-2.0"
@@ -0,0 +1 @@
1
+ import{K as E,S as T,aa as W}from"./chunk-4TYJR476.js";import{a as $,d as J}from"./chunk-F5YRASNU.js";import{Bb as f,Cb as g,Da as j,Db as v,Eb as H,Ia as x,Ja as l,Mb as K,Nb as Z,Pa as q,Xa as U,Za as C,_ as w,_a as u,aa as z,ab as I,ba as D,cb as N,fc as G,ga as R,gc as k,ha as F,hc as Y,kb as r,lb as d,mb as _,na as M,oa as h,pa as s,qa as O,qb as S,ra as V,rb as B,ta as L,tb as p,wb as X,xb as Q,ya as P,za as y}from"./chunk-77JORVC2.js";var ie=["input"],oe=["label"],ne=["*"],ae=new D("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var n=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(n||{}),re={provide:$,useExisting:w(()=>te),multi:!0},A=class{},de=0,ee=ce(),te=(()=>{let a=class a{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new A;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,c,o,m,b){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=c,this._animationMode=m,this._options=b,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new y,this.indeterminateChange=new y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=n.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(n.Indeterminate):this._transitionCheckState(this.checked?n.Checked:n.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,c=this._getAnimationTargetElement();if(!(t===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?n.Checked:n.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case n.Init:if(t===n.Checked)return this._animationClasses.uncheckedToChecked;if(t==n.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case n.Unchecked:return t===n.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case n.Checked:return t===n.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case n.Indeterminate:return t===n.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};a.\u0275fac=function(t){return new(t||a)(l(P),l(G),l(q),L("tabindex"),l(j,8),l(ae,8))},a.\u0275cmp=R({type:a,selectors:[["mat-checkbox"]],viewQuery:function(t,c){if(t&1&&(f(ie,5),f(oe,5),f(T,5)),t&2){let o;g(o=v())&&(c._inputElement=o.first),g(o=v())&&(c._labelElement=o.first),g(o=v())&&(c.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,c){t&2&&(B("id",c.id),C("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),I("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",k],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",k],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",k],disabled:[2,"disabled","disabled",k],indeterminate:[2,"indeterminate","indeterminate",k]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:J,useExisting:a,multi:!0}]),U,M,Z],ngContentSelectors:ne,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,c){if(t&1){let o=S();X(),r(0,"div",3),p("click",function(b){return h(o),s(c._preventBubblingFromLabel(b))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(o),s(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(o),s(c._onBlur())})("click",function(){return h(o),s(c._onInputClick())})("change",function(b){return h(o),s(c._onInteractionEvent(b))}),d(),_(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),_(9,"path",10),d(),V(),_(10,"div",11),d(),_(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(t&2){let o=H(2);u("labelPosition",c.labelPosition),x(4),I("mdc-checkbox--selected",c.checked),u("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),C("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),u("matRippleTrigger",o)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),u("for",c.inputId)}},dependencies:[T,W],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=a;return i})();var we=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=F({type:a}),a.\u0275inj=z({imports:[te,E,E]});let i=a;return i})();export{te as a,we as b};
@@ -0,0 +1 @@
1
+ import"./chunk-7NHG2S26.js";import{a as ve}from"./chunk-JHFUHCJ5.js";import{c as we}from"./chunk-ACQFVAYY.js";import"./chunk-CP7VAKTQ.js";import"./chunk-OFRBPREK.js";import{c as ze}from"./chunk-DXJFMERC.js";import{b as ke}from"./chunk-IP2WADIR.js";import{e as be}from"./chunk-2Y4N4NSS.js";import{a as p}from"./chunk-HZK5WTN4.js";import"./chunk-WJI6JIBR.js";import{b as Se}from"./chunk-2GZOVNPU.js";import{a as M}from"./chunk-662E5VTA.js";import{c as Te}from"./chunk-M4VGME5L.js";import{g as Pe}from"./chunk-AAIK6JQ3.js";import{a as le,b as ge,g as ue}from"./chunk-LAPVAK6T.js";import"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{a as _e,g as Oe,j as Ee,m as Ie}from"./chunk-PIDUM6XT.js";import{t as ye,u as S}from"./chunk-43TMSPFC.js";import{F as xe,K as $,u as Ce,x as Me}from"./chunk-4TYJR476.js";import{u as pe}from"./chunk-F5YRASNU.js";import{e as fe,f as he}from"./chunk-2UXFUEON.js";import{Da as q,Eb as z,Fb as g,Gb as P,Ha as Z,Hb as C,Ia as r,Ja as d,Nb as K,Oa as Y,Pa as Q,Wb as L,Xa as X,Xb as U,Ya as f,Zb as k,_a as c,aa as h,ab as O,cb as R,cc as ee,cd as me,da as v,ed as de,fb as J,fd as ce,ga as y,gc as w,gd as j,ha as u,ia as V,kb as s,la as G,lb as l,lc as te,mb as b,nb as E,nc as ie,ob as I,pc as ne,q as H,rc as ae,sc as oe,tb as B,vb as m,vc as re,wc as se,ya as W,zc as T}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var D=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[M.dashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order",Roles:[M.orderView]},{Icon:"fas fa-clipboard-list",Title:"Sync Log",Url:"/menu/sync-log",Roles:[M.orderView]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[M.channelView]},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log",Roles:[]},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/notification",Badge:!0,Roles:[]},{Icon:"fas fa-wand-magic-sparkles",Title:"What`s New",Url:`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${ge.version}`,ExternalLink:!0,CustomColor:"#ff2323",Badge:!0,Roles:[]}]}get getMenu(){return this.menus}};var je=0,De="mat-badge-content",A=new Set,$e=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],standalone:!0,features:[K],decls:0,vars:0,template:function(n,a){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color);color:var(--mat-badge-text-color);font-family:var(--mat-badge-text-font);font-weight:var(--mat-badge-text-weight);border-radius:var(--mat-badge-container-shape)}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color);color:var(--mat-badge-disabled-state-text-color)}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, unset);min-height:var(--mat-badge-small-size-container-size, unset);line-height:var(--mat-badge-legacy-small-size-container-size, var(--mat-badge-small-size-container-size));padding:var(--mat-badge-small-size-container-padding);font-size:var(--mat-badge-small-size-text-size);margin:var(--mat-badge-small-size-container-offset)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, unset);min-height:var(--mat-badge-container-size, unset);line-height:var(--mat-badge-legacy-container-size, var(--mat-badge-container-size));padding:var(--mat-badge-container-padding);font-size:var(--mat-badge-text-size);margin:var(--mat-badge-container-offset)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, unset);min-height:var(--mat-badge-large-size-container-size, unset);line-height:var(--mat-badge-legacy-large-size-container-size, var(--mat-badge-large-size-container-size));padding:var(--mat-badge-large-size-container-padding);font-size:var(--mat-badge-large-size-text-size);margin:var(--mat-badge-large-size-container-offset)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset)}"],encapsulation:2,changeDetection:0});let e=t;return e})(),Ae=(()=>{let t=class t{get color(){return this._color}set color(i){this._setColor(i),this._color=i}get content(){return this._content}set content(i){this._updateRenderedContent(i)}get description(){return this._description}set description(i){this._updateDescription(i)}constructor(i,n,a,_,Ue){this._ngZone=i,this._elementRef=n,this._ariaDescriber=a,this._renderer=_,this._animationMode=Ue,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=je++,this._isInitialized=!1,this._interactivityChecker=v(Me),this._document=v(ie);let x=v(ee);if(!A.has(x)){A.add(x);let F=te($e,{environmentInjector:v(G)});x.onDestroy(()=>{A.delete(x),A.size===0&&F.destroy()})}}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let i=this._renderer.createElement("span"),n="mat-badge-active";return i.setAttribute("id",`mat-badge-content-${this._id}`),i.setAttribute("aria-hidden","true"),i.classList.add(De),this._animationMode==="NoopAnimations"&&i.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(i),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{i.classList.add(n)})}):i.classList.add(n),i}_updateRenderedContent(i){let n=`${i??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!i||this._isHostInteractive())&&this._removeInlineDescription(),this._description=i,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,i):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(i){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),i&&n.add(`mat-badge-${i}`)}_clearExistingBadges(){let i=this._elementRef.nativeElement.querySelectorAll(`:scope > .${De}`);for(let n of Array.from(i))n!==this._badgeElement&&n.remove()}};t.\u0275fac=function(n){return new(n||t)(d(Q),d(W),d(Ce),d(Y),d(q,8))},t.\u0275dir=V({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,a){n&2&&O("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",w],disabled:[2,"matBadgeDisabled","disabled",w],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",w]},standalone:!0,features:[X]});let e=t;return e})(),Ne=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=u({type:t}),t.\u0275inj=h({imports:[xe,$,$]});let e=t;return e})();function He(e,t){if(e&1&&(E(0),s(1,"p",23),g(2),l(),I()),e&2){let o=m(3).$implicit;r(2),C(" ",o.Title," ")}}function Ve(e,t){if(e&1&&(s(0,"p"),g(1),l()),e&2){let o=m(3).$implicit;r(),P(o.Title)}}function Ge(e,t){if(e&1&&(s(0,"a",22),b(1,"i"),f(2,He,3,1,"ng-container",20)(3,Ve,2,1,"ng-template",null,1,k),l()),e&2){let o=z(4),i=m(2).$implicit;c("href",i.Url,Z),r(),R(i.Icon),r(),c("ngIf",i.Badge)("ngIfElse",o)}}function We(e,t){if(e&1&&(E(0),f(1,Ge,5,5,"a",21),I()),e&2){let o=m().$implicit;r(),c("ngxPermissionsOnly",o.Roles)}}function qe(e,t){if(e&1&&(s(0,"p",23),g(1),l()),e&2){let o=m(4).$implicit;r(),C(" ",o.Title," ")}}function Ze(e,t){if(e&1&&(s(0,"p"),g(1),l()),e&2){let o=m(4).$implicit;r(),P(o.Title)}}function Ye(e,t){if(e&1&&(E(0),f(1,qe,2,1,"p",23),L(2,"async"),f(3,Ze,2,1,"p"),I()),e&2){let o=m(4);r(),J(U(2,1,o.notifications$)!=0?1:3)}}function Qe(e,t){if(e&1&&(s(0,"p"),g(1),l()),e&2){let o=m(3).$implicit;r(),P(o.Title)}}function Xe(e,t){if(e&1&&(s(0,"a",25),b(1,"i"),f(2,Ye,4,3,"ng-container",20)(3,Qe,2,1,"ng-template",null,2,k),l()),e&2){let o=z(4),i=m(2).$implicit,n=m();c("matTooltip",n.isCollapseSidebar?i.Title:"")("routerLink",i.Url),r(),R(i.Icon),r(),c("ngIf",i.Badge)("ngIfElse",o)}}function Je(e,t){if(e&1&&f(0,Xe,5,6,"a",24),e&2){let o=m().$implicit;c("ngxPermissionsOnly",o.Roles)}}function Ke(e,t){if(e&1&&(s(0,"li",19),f(1,We,2,1,"ng-container",20)(2,Je,1,1,"ng-template",null,0,k),l()),e&2){let o=t.$implicit,i=z(3);r(),c("ngIf",o.ExternalLink)("ngIfElse",i)}}var Re=(()=>{let t=class t{constructor(i,n,a,_){this.toggleSidebarService=i,this.notificationService=n,this.decodeTokenService=a,this.authService=_,this.Menu={},this.isCollapseSidebar=!1,this.token=a.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new D().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(H(i=>i.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(i){if(i){let n,a=i.split(" ");return a.length==1?n=a[0].substring(0,2):n=a.shift().charAt(0)+a.pop().charAt(0),n}}};t.\u0275fac=function(n){return new(n||t)(d(_e),d(ve),d(le),d(ue))},t.\u0275cmp=y({type:t,selectors:[["app-menu"]],decls:23,vars:9,consts:[["DEFAULT_ROUTE",""],["NO_BADGE",""],["WITHOUT_BADGE",""],[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(n,a){n&1&&(s(0,"div",3),L(1,"async"),s(2,"div",4)(3,"button",5),B("click",function(){return a.onCallapseSidebar()}),b(4,"i",6),l(),s(5,"div",7)(6,"div",8)(7,"a",9),g(8),l(),s(9,"div",10)(10,"div",11),g(11),l(),b(12,"div",12),s(13,"a",13),B("click",function(){return a.onLogout()}),b(14,"i",14),g(15,"\xA0 "),s(16,"span"),g(17," Log Out"),l()()()()(),s(18,"div",15)(19,"ul",16),f(20,Ke,4,2,"li",17),l()()(),s(21,"div",18),b(22,"router-outlet"),l()()),n&2&&(O("nav-open",U(1,7,a.toggleState$)),r(2),c("ngClass",a.isCollapseSidebar?"collapses":""),r(2),c("ngClass",a.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),r(4),C(" ",a.storeName," "),r(3),C(" ",a.token==null?null:a.token.LID," "),r(9),c("ngForOf",a.Menu))},dependencies:[ne,ae,oe,me,de,ce,ye,Ae,fe,re],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=t;return e})();var et=[{path:"",component:Re,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("./chunk-Y4SOX2BE.js").then(e=>e.DashboardModule),canActivate:[p],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("./chunk-D6DGXCGX.js").then(e=>e.ProductModule),canActivate:[p],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("./chunk-55FMAZZX.js").then(e=>e.InventoryRoutingModule),canActivate:[p],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("./chunk-B6MUIJKS.js").then(e=>e.PriceRoutingModule),canActivate:[p],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("./chunk-7CFCIVVL.js").then(e=>e.OrdersModule),canActivate:[p],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-ADY4N3OO.js").then(e=>e.ReportModule),canActivate:[p],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("./chunk-HMPT5KZP.js").then(e=>e.LogisticModule),canActivate:[p],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("./chunk-LIKUREIJ.js").then(e=>e.ChannelsModule),canActivate:[p],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("./chunk-OPCNZJU6.js").then(e=>e.LogsModule),canActivate:[p],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("./chunk-KL3JQ3CH.js").then(e=>e.NotificationModule),canActivate:[p],data:{title:"Push Notification"}}]}],Be=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=u({type:t}),t.\u0275inj=h({imports:[j.forChild(et),j]});let e=t;return e})();var Le=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=u({type:t}),t.\u0275inj=h({imports:[T,pe,Oe,ze,Te,Pe,ke,Se,S,Ee,we,be]});let e=t;return e})();var xi=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=u({type:t}),t.\u0275inj=h({providers:[se],imports:[T,Be,Ie,S,Le,Ne,he.forChild()]});let e=t;return e})();export{xi as MenuModule};
@@ -0,0 +1 @@
1
+ import{$ as P,A as z,E as F,I as N,L as G,La as Q,N as v,R as C,Sa as X,T as j,X as V,aa as Y,ba as T,ca as d,d as f,da as S,dd as ee,fc as _,ha as Z,ia as J,m as p,n as h,na as q,q as E,s as y,t as I,w as M,za as $}from"./chunk-77JORVC2.js";import{a as g,b as A}from"./chunk-CRRJCY55.js";var u=function(s){return s.SHOOPE="https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",s.WOOCOMMERCE="https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",s.TOKOPEDIA="https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",s.TIKTOK="https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",s.LAZADA="https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png",s.KALCARE="https://res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",s.SHOPIFY="https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png",s}(u||{});var c=function(s){return s[s.Tokopedia=1]="Tokopedia",s[s.WooCommerce=2]="WooCommerce",s[s.None=3]="None",s[s.KalCare=4]="KalCare",s[s.Shopee=5]="Shopee",s[s.Tiktok=6]="Tiktok",s[s.Lazada=7]="Lazada",s[s.Shopify=8]="Shopify",s}(c||{});var fe=(()=>{let r=class r{static IsNotEmpty(e){return e!=""&&e!=r.GuidEMpty&&e!=null&&e!=null}static IsEmpty(e){return e==""||e==null||e==null||e==r.GuidEMpty}static getChannelLogoByTypeId(e){let t;switch(e){case c.Tokopedia:t=u.TOKOPEDIA;break;case c.Shopee:t=u.SHOOPE;break;case c.WooCommerce:t=u.WOOCOMMERCE;break;case c.Lazada:t=u.LAZADA;break;case c.Tiktok:t=u.TIKTOK;break;case c.KalCare:t=u.KALCARE;break;case c.Shopify:t=u.SHOPIFY;break}return t}static getChannelLogoByName(e=""){e=e.toLowerCase();let t;switch(e){case"tokopedia":t=u.TOKOPEDIA;break;case"shoppe":t=u.SHOOPE;break;case"woocommerce":t=u.WOOCOMMERCE;break;case"tiktok":t=u.TIKTOK;break;case"lazada":t=u.LAZADA;break;case"kalCare":t=u.KALCARE;break}return t}static getChannelName(e){let t;switch(e){case c.Shopee:t="Shopee";break;case c.Tokopedia:t="Tokopedia";break;case c.Lazada:t="Lazada";break;case c.Tiktok:t="Tiktok";break;case c.WooCommerce:t="WooCommerce";break;case c.KalCare:t="WooCommerce";break}return t}static assignChannelLogo(e){return e=e.map(t=>(t.logo=this.getChannelLogoByTypeId(t.TypeID),t)),e}static getCssChannelColor(e){let t;switch(e){case c.Shopee:t="#ee4d2d";break;case c.Tokopedia:t="var(--G500,#03AC0E)";break;case c.Lazada:t="#FF00B2";break;case c.Tiktok:t="black";break;case c.WooCommerce:t="#674399";break;case c.KalCare:t="rgb(128, 188, 0)";break}return t}static getDaysDiff(e,t){var i=t.getTime()-e.getTime(),n=i/(1e3*60*60*24);return n}static addDays(e,t){let i=new Date(Number(e));return i.setDate(e.getDate()-t),i}static isValidDate(e){return e instanceof Date&&!isNaN(e)}static getImageInfo(e){return new Promise((t,i)=>{let n=new Image;n.src=e,n.decode().then(()=>{t({img:e,height:n.height,width:n.width})}).catch(()=>{i(new Error(`Image load error for ${e}`))})})}static formatTitleFromDate(e,t){let i=null,n=new Date(e),o=new Date(t);return n.getDate()!=o.getDate()&&(i="dd"),n.getMonth()!=o.getMonth()&&(i="dd MMM"),n.getFullYear()!=o.getFullYear()&&(i="dd MMM yyyy"),i}static openDownloadFile(e,t){var i=window.URL.createObjectURL(e),n=document.createElement("a");n.href=i,n.download=t,n.click()}static compare(e,t,i){return(e<t?-1:1)*(i?1:-1)}static isDateExpired(e){let t=new Date,i=!1;return e.getTime()<t.getTime()&&(i=!0),i}static getTimeDifference(e){let t=new Date(e),i=new Date,n=Math.abs(t.getTime()-i.getTime()),o=1e3,a=6e4,m=60*a,x=24*m,ne=Math.floor(n/x),oe=Math.floor(n%x/m),ae=Math.floor(n%m/a),ce=Math.floor(n%a/o);return{days:ne,hours:oe,minutes:ae,seconds:ce}}static convertToReadableDate(e){let{days:t,hours:i,minutes:n,seconds:o}=r.getTimeDifference(e),a="";return t>0&&i>0&&n>0&&(a=`${t} days, ${i} hours and ${n} minutes ago`),t>0&&i>0&&n==0&&(a=`${t} days and ${i} hours ago`),t>0&&i==0&&(a=`${t} days ago`),t==0&&i>0&&n>0&&(a=`${i} hours and ${n} minutes ago`),t==0&&i>0&&n==0&&(a=`${i} hours ago`),t==0&&i==0&&n>0&&(a=`${n} minutes ago`),t==0&&i==0&&n==0&&o>0&&(a=`${o} seconds ago`),a}};r.GuidEMpty="00000000-0000-0000-0000-000000000000",r.MinDate="0001-01-01T00:00:00";let s=r;return s})();var w={REMOVE:"remove",SHOW:"show"},ie=(()=>{let r=class r{constructor(){this.strategiesSource=new f({}),this.strategies$=this.strategiesSource.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),K=new T("USE_CONFIGURATION_STORE"),L=(()=>{let r=class r{constructor(e=!1,t){this.isolate=e,this.configurationStore=t,this.strategiesSource=this.isolate?new f({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(e,t){this.strategiesSource.value[e]=t}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===w.SHOW||e===w.REMOVE}};r.\u0275fac=function(t){return new(t||r)(d(K),d(ie))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})();function l(s){return typeof s=="function"}function W(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;{let r=Object.getPrototypeOf(s);return r===null||r===Object.prototype}}function se(s){return!!s&&typeof s=="string"}function R(s){return typeof s=="boolean"}function he(s){return Object.prototype.toString.call(s)==="[object Promise]"}function D(s){return Array.isArray(s)?s.length>0:!!s}function k(s){return se(s)?[s]:s}var re=(()=>{let r=class r{constructor(){this.permissionsSource=new f({}),this.permissions$=this.permissionsSource.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),B=new T("USE_PERMISSIONS_STORE"),O=(()=>{let r=class r{constructor(e=!1,t){this.isolate=e,this.permissionsStore=t,this.permissionsSource=this.isolate?new f({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=k(e),this.hasArrayPermission(e))}loadPermissions(e,t){let i=e.reduce((n,o)=>this.reducePermission(n,o,t),{});this.permissionsSource.next(i)}addPermission(e,t){if(Array.isArray(e)){let i=e.reduce((n,o)=>this.reducePermission(n,o,t),this.permissionsSource.value);this.permissionsSource.next(i)}else{let i=this.reducePermission(this.permissionsSource.value,e,t);this.permissionsSource.next(i)}}removePermission(e){let t=g({},this.permissionsSource.value);delete t[e],this.permissionsSource.next(t)}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,t,i){return i&&l(i)?A(g({},e),{[t]:{name:t,validationFunction:i}}):A(g({},e),{[t]:{name:t}})}hasArrayPermission(e){let t=e.map(i=>{if(this.hasPermissionValidationFunction(i)){let n=this.permissionsSource.value[i].validationFunction,o=g({},this.permissionsSource.value);return h(null).pipe(E(()=>n(i,o)),j(a=>R(a)?h(a):a),F(()=>h(!1)))}return h(!!this.permissionsSource.value[i])});return p(t).pipe(I(),v(i=>i!==!1,!1),E(i=>i!==!1)).toPromise().then(i=>i)}hasPermissionValidationFunction(e){return!!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&l(this.permissionsSource.value[e].validationFunction)}};r.\u0275fac=function(t){return new(t||r)(d(B),d(re))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),b=class{constructor(){this.rolesSource=new f({}),this.roles$=this.rolesSource.asObservable()}},H=new T("USE_ROLES_STORE"),U=(()=>{let r=class r{constructor(e=!1,t,i){this.isolate=e,this.rolesStore=t,this.permissionsService=i,this.rolesSource=this.isolate?new f({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(e,t){let i=A(g({},this.rolesSource.value),{[e]:{name:e,validationFunction:t}});this.rolesSource.next(i)}addRoleWithPermissions(e,t){this.permissionsService.addPermission(t),this.addRole(e,t)}addRoles(e){Object.keys(e).forEach((t,i)=>{this.addRole(t,e[t])})}addRolesWithPermissions(e){Object.keys(e).forEach((t,i)=>{this.addRoleWithPermissions(t,e[t])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(e){let t=g({},this.rolesSource.value);delete t[e],this.rolesSource.next(t)}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=k(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([i,n])=>i||n))}hasRoleKey(e){let t=e.map(i=>{if(!!this.rolesSource.value[i]&&!!this.rolesSource.value[i].validationFunction&&l(this.rolesSource.value[i].validationFunction)&&!he(this.rolesSource.value[i].validationFunction)){let o=this.rolesSource.value[i].validationFunction,a=g({},this.rolesSource.value);return h(null).pipe(E(()=>o(i,a)),j(m=>R(m)?h(m):m),F(()=>h(!1)))}return h(!1)});return p(t).pipe(I(),v(i=>i!==!1,!1),E(i=>i!==!1)).toPromise().then(i=>i)}hasRolePermission(e,t){return p(t).pipe(y(i=>e[i]&&Array.isArray(e[i].validationFunction)?p(e[i].validationFunction).pipe(y(n=>this.permissionsService.hasPermission(n)),G(n=>n===!0)):h(!1)),v(i=>i===!0,!1)).toPromise()}};r.\u0275fac=function(t){return new(t||r)(d(H),d(b),d(O))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})(),Re=(()=>{let r=class r{constructor(){this.permissionsAuthorized=new $,this.permissionsUnauthorized=new $,this.firstMergeUnusedRun=1,this.permissionsService=S(O),this.configurationService=S(L),this.rolesService=S(U),this.viewContainer=S(X),this.changeDetector=S(_),this.templateRef=S(Q)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(e){let t=e.ngxPermissionsOnly,i=e.ngxPermissionsExcept;if(t||i){if(t&&t.firstChange||i&&i.firstChange)return;z(this.permissionsService.permissions$,this.rolesService.roles$).pipe(C(this.firstMergeUnusedRun),N(1)).subscribe(()=>{if(D(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(D(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return z(this.permissionsService.permissions$,this.rolesService.roles$).pipe(C(this.firstMergeUnusedRun)).subscribe(()=>{if(D(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(D(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,t])=>{if(e||t){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,t])=>{e||t?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(e){if(!(R(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}handleAuthorisedPermission(e){if(!(R(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}applyStrategyAccordingToStrategyType(e){if(se(e)){this.applyStrategy(e);return}if(l(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===w.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===w.REMOVE){this.viewContainer.clear();return}let t=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),t(this.templateRef)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=J({type:r,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},features:[q]});let s=r;return s})(),ue="default";var te=(()=>{let r=class r{constructor(e,t,i){this.permissionsService=e,this.rolesService=t,this.router=i}canActivate(e,t){return this.hasPermissions(e,t)}canActivateChild(e,t){return this.hasPermissions(e,t)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,t){let i=e&&e.data?e.data.permissions:{},n=this.transformPermission(i,e,t);return this.isParameterAvailable(n.except)?this.passingExceptPermissionsValidation(n,e,t):this.isParameterAvailable(n.only)?this.passingOnlyPermissionsValidation(n,e,t):!0}transformPermission(e,t,i){let n=l(e.only)?e.only(t,i):k(e.only),o=l(e.except)?e.except(t,i):k(e.except),a=e.redirectTo;return{only:n,except:o,redirectTo:a}}isParameterAvailable(e){return!!e&&e.length>0}passingExceptPermissionsValidation(e,t,i){if(e.redirectTo&&(l(e.redirectTo)||W(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let n="";return p(e.except).pipe(y(o=>M([this.permissionsService.hasPermission(o),this.rolesService.hasOnlyRoles(o)]).pipe(V(a=>{a.every(x=>x===!1)||(n=o)}))),v(o=>o.some(a=>a===!0),!1),y(o=>n?(this.handleRedirectOfFailedPermission(e,n,t,i),h(!1)):!o&&e.only?this.onlyRedirectCheck(e,t,i):h(!o))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([n,o])=>n||o?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,t,i),!1):e.only?this.checkOnlyPermissions(e,t,i):!0)}redirectToAnotherRoute(e,t,i,n){let o=l(e)?e(n,t,i):e;if(this.isRedirectionWithParameters(o)){o.navigationCommands=this.transformNavigationCommands(o.navigationCommands,t,i),o.navigationExtras=this.transformNavigationExtras(o.navigationExtras,t,i),this.router.navigate(o.navigationCommands,o.navigationExtras);return}Array.isArray(o)?this.router.navigate(o):this.router.navigate([o])}isRedirectionWithParameters(e){return W(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,t,i){return l(e)?e(t,i):e}transformNavigationExtras(e,t,i){return l(e)?e(t,i):e}onlyRedirectCheck(e,t,i){let n="";return p(e.only).pipe(y(o=>M([this.permissionsService.hasPermission(o),this.rolesService.hasOnlyRoles(o)]).pipe(V(a=>{a.every(x=>x===!1)&&(n=o)}))),v(o=>l(e.redirectTo)?o.some(a=>a===!0):o.every(a=>a===!1),!1),y(o=>l(e.redirectTo)?o?h(!0):(this.handleRedirectOfFailedPermission(e,n,t,i),h(!1)):(n&&this.handleRedirectOfFailedPermission(e,n,t,i),h(!o)))).toPromise()}handleRedirectOfFailedPermission(e,t,i,n){this.isFailedPermissionPropertyOfRedirectTo(e,t)?this.redirectToAnotherRoute(e.redirectTo[t],i,n,t):l(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,i,n,t):this.redirectToAnotherRoute(e.redirectTo[ue],i,n,t)}isFailedPermissionPropertyOfRedirectTo(e,t){return!!e.redirectTo&&e.redirectTo[t]}checkOnlyPermissions(e,t,i){let n=g({},e);return Promise.all([this.permissionsService.hasPermission(n.only),this.rolesService.hasOnlyRoles(n.only)]).then(([o,a])=>o||a?!0:(n.redirectTo&&this.redirectToAnotherRoute(n.redirectTo,t,i),!1))}passingOnlyPermissionsValidation(e,t,i){return l(e.redirectTo)||W(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,t,i):this.checkOnlyPermissions(e,t,i)}};r.\u0275fac=function(t){return new(t||r)(d(O),d(U),d(ee))},r.\u0275prov=P({token:r,factory:r.\u0275fac});let s=r;return s})();var ke=(()=>{let r=class r{static forRoot(e={}){return{ngModule:r,providers:[re,b,ie,O,te,U,L,{provide:B,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:K,useValue:e.configurationIsolate}]}}static forChild(e={}){return{ngModule:r,providers:[{provide:B,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:K,useValue:e.configurationIsolate},L,O,U,te]}}};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=Z({type:r}),r.\u0275inj=Y({});let s=r;return s})();export{u as a,c as b,fe as c,O as d,Re as e,ke as f};
@@ -0,0 +1,2 @@
1
+ import{a as Ue}from"./chunk-F5YRASNU.js";import{$ as X,A as J,Ab as I,B as Ce,Bb as R,Cb as f,D as be,Db as _,Eb as O,Fb as V,Gb as z,H as Te,Hb as Le,Ia as u,Ja as d,La as h,Mb as Be,Oa as Ae,Pa as xe,Pb as Q,Qb as Ve,Rb as Pe,S as ve,Sb as Me,V as N,X as we,Xa as te,Ya as w,Za as ie,Zb as M,_ as ye,_a as y,aa as Fe,ab as B,ba as Se,c as W,eb as oe,f as fe,fb as A,fc as Ne,ga as ee,gc as m,ha as Ie,hc as Y,i as _e,ia as S,ib as re,jb as ae,kb as g,lb as E,mb as j,na as q,nb as Oe,nc as Re,oa as b,ob as De,pa as T,pb as ue,pc as He,q as Ee,qb as U,ta as le,tb as P,uc as he,vb as c,wb as ce,x as G,xb as de,ya as L,yb as ke,za as v,zc as je}from"./chunk-77JORVC2.js";import{a as ge}from"./chunk-CRRJCY55.js";var Ke=["content"],Ze=["scroll"],Je=["padding"],We=["*"],K=n=>({searchTerm:n});function Xe(n,t){if(n&1&&(g(0,"div",3),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}function et(n,t){if(n&1&&(g(0,"div",5),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}var tt=["searchInput"],it=["clearButton"],nt=(n,t,s)=>({item:n,clear:t,label:s}),st=(n,t)=>({items:n,clear:t}),lt=(n,t,s,e)=>({item:n,item$:t,index:s,searchTerm:e});function ot(n,t){if(n&1){let s=U();g(0,"span",21),P("click",function(){b(s);let i=c().$implicit,l=c(2);return T(l.unselect(i))}),V(1,"\xD7"),E(),j(2,"span",22)}if(n&2){let s=c().$implicit,e=c(2);u(2),y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function rt(n,t){}function at(n,t){if(n&1&&(g(0,"div",20),w(1,ot,3,2,"ng-template",null,1,M)(3,rt,0,0,"ng-template",12),E()),n&2){let s=t.$implicit,e=O(2),i=c(2);B("ng-value-disabled",s.disabled),u(3),y("ngTemplateOutlet",i.labelTemplate||e)("ngTemplateOutletContext",Pe(4,nt,s.value,i.clearItem,s.label))}}function ut(n,t){if(n&1&&re(0,at,4,8,"div",19,oe().trackByOption,!0),n&2){let s=c();ae(s.selectedItems)}}function ct(n,t){}function dt(n,t){if(n&1&&w(0,ct,0,0,"ng-template",12),n&2){let s=c();y("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",Ve(2,st,s.selectedValues,s.clearItem))}}function ht(n,t){n&1&&j(0,"div",24)}function pt(n,t){}function mt(n,t){if(n&1&&w(0,ht,1,0,"ng-template",null,2,M)(2,pt,0,0,"ng-template",23),n&2){let s=O(1),e=c();u(2),y("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function gt(n,t){if(n&1&&(g(0,"span",15,3)(2,"span",25),V(3,"\xD7"),E()()),n&2){let s=c();ke("title",s.clearAllText)}}function ft(n,t){if(n&1&&j(0,"span",30),n&2){let s=c().$implicit,e=c(2);y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function _t(n,t){}function Et(n,t){if(n&1){let s=U();g(0,"div",29),P("click",function(){let i=b(s).$implicit,l=c(2);return T(l.toggleItem(i))})("mouseover",function(){let i=b(s).$implicit,l=c(2);return T(l.onItemHover(i))}),w(1,ft,1,2,"ng-template",null,4,M)(3,_t,0,0,"ng-template",12),E()}if(n&2){let s=t.$implicit,e=O(2),i=c(2);B("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),ie("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),u(3),y("ngTemplateOutlet",s.children?i.optgroupTemplate||e:i.optionTemplate||e)("ngTemplateOutletContext",Me(17,lt,s.value,s,s.index,i.searchTerm))}}function Ct(n,t){if(n&1&&(g(0,"span")(1,"span",32),V(2),E(),V(3),E()),n&2){let s=c(3);u(2),z(s.addTagText),u(),Le('"',s.searchTerm,'"')}}function bt(n,t){}function Tt(n,t){if(n&1){let s=U();g(0,"div",31),P("mouseover",function(){b(s);let i=c(2);return T(i.itemsList.unmarkItem())})("click",function(){b(s);let i=c(2);return T(i.selectTag())}),w(1,Ct,4,2,"ng-template",null,5,M)(3,bt,0,0,"ng-template",12),E()}if(n&2){let s=O(2),e=c(2);B("ng-option-marked",!e.itemsList.markedItem),u(3),y("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",Q(4,K,e.searchTerm))}}function vt(n,t){if(n&1&&(g(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.notFoundText)}}function wt(n,t){}function yt(n,t){if(n&1&&w(0,vt,2,1,"ng-template",null,6,M)(2,wt,0,0,"ng-template",12),n&2){let s=O(1),e=c(2);u(2),y("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function Ft(n,t){if(n&1&&(g(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.typeToSearchText)}}function St(n,t){}function It(n,t){if(n&1&&w(0,Ft,2,1,"ng-template",null,7,M)(2,St,0,0,"ng-template",23),n&2){let s=O(1),e=c(2);u(2),y("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function At(n,t){if(n&1&&(g(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.loadingText)}}function xt(n,t){}function Ot(n,t){if(n&1&&w(0,At,2,1,"ng-template",null,8,M)(2,xt,0,0,"ng-template",12),n&2){let s=O(1),e=c(2);u(2),y("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function Dt(n,t){if(n&1){let s=U();g(0,"ng-dropdown-panel",26),P("update",function(i){b(s);let l=c();return T(l.viewPortItems=i)})("scroll",function(i){b(s);let l=c();return T(l.scroll.emit(i))})("scrollToEnd",function(i){b(s);let l=c();return T(l.scrollToEnd.emit(i))})("outsideClick",function(){b(s);let i=c();return T(i.close())}),Oe(1),re(2,Et,4,22,"div",27,oe().trackByOption,!0),w(4,Tt,4,6,"div",28),De(),w(5,yt,3,4)(6,It,3,1)(7,Ot,3,4),E()}if(n&2){let s=c();B("ng-select-multiple",s.multiple),y("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.classes:null)("id",s.dropdownId),u(2),ae(s.viewPortItems),u(2),A(s.showAddTag?4:-1),u(),A(s.showNoItemsFound()?5:-1),u(),A(s.showTypeToSearch()?6:-1),u(),A(s.loading&&s.itemsList.filteredItems.length===0?7:-1)}}var Ge=/[&<>"']/g,kt=RegExp(Ge.source),Lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bt(n){return n&&kt.test(n)?n.replace(Ge,t=>Lt[t]):n}function p(n){return n!=null}function $(n){return typeof n=="object"&&p(n)}function Vt(n){return n instanceof Promise}function se(n){return n instanceof Function}var Pt=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Bt(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275dir=S({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[q]});let n=t;return n})(),Mt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-option-tmp",""]]});let n=t;return n})(),Nt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-optgroup-tmp",""]]});let n=t;return n})(),Rt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-label-tmp",""]]});let n=t;return n})(),Ht=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-multi-label-tmp",""]]});let n=t;return n})(),jt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-header-tmp",""]]});let n=t;return n})(),Ut=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-footer-tmp",""]]});let n=t;return n})(),zt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-notfound-tmp",""]]});let n=t;return n})(),Qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let n=t;return n})(),Wt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let n=t;return n})(),Gt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-tag-tmp",""]]});let n=t;return n})(),qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=S({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let n=t;return n})();function qe(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Yt={"\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(n){let t=s=>Yt[s]||s;return n.replace(/[^\u0000-\u007E]/g,t)}var pe=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&p(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=ne(t).toLocaleLowerCase(),this.filteredItems.find(s=>ne(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:ne(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let i of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(i)){if(e&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;s(t,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(a=>a===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(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!$(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),i=t;for(let l=0,o=e.length;l<o;++l){if(i==null)return null;i=i[e[l]]}return i}}mapItem(t,s){let e=p(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),i=p(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:s,label:p(e)?e.toString():"",value:i,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${s}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let s of this.selectedItems){let e=this._ngSelect.bindValue?this.resolveNested(s.value,this._ngSelect.bindValue):s.value,i=p(e)?this.findItem(e):null;this._selectionModel.unselect(s,t),this._selectionModel.select(i||s,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(s=>this.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return ne(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let o of t){let r=(o.value[s]||[]).map((a,x)=>this.mapItem(a,x));e.set(o,r)}return e}let i=se(this._ngSelect.groupBy),l=o=>{let r=i?s(o.value):o.value[s];return p(r)?r:void 0};for(let o of t){let r=l(o),a=e.get(r);a?a.push(o):e.set(r,[o])}return e}_flatten(t){let s=se(this._ngSelect.groupBy),e=[];for(let i of Array.from(t.keys())){let l=e.length;if(i===void 0){let F=t.get(void 0)||[];e.push(...F.map(H=>(H.index=l++,H)));continue}let o=$(i),r={label:o?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:qe()},a=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,x=this._ngSelect.groupValue||(()=>o?i.value:{[a]:i}),C=t.get(i).map(F=>(F.parent=r,F.children=void 0,F.index=l++,F));r.children=C,r.value=x(i,C.map(F=>F.value)),e.push(r),e.push(...C)}return e}},D=function(n){return n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Esc=27]="Esc",n[n.Space=32]="Space",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowDown=40]="ArrowDown",n[n.Backspace=8]="Backspace",n}(D||{}),Ye=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){let o=this._dimensions,r=o.itemHeight*i,x=Math.max(0,e)/r*i,C=Math.min(i,Math.ceil(x)+(o.itemsPerViewport+1)),H=Math.max(0,C-o.itemsPerViewport),k=Math.min(H,Math.floor(x)),Z=o.itemHeight*Math.ceil(k)-o.itemHeight*Math.min(k,l);return Z=isNaN(Z)?0:Z,k=isNaN(k)?-1:k,C=isNaN(C)?-1:C,k-=l,k=Math.max(0,k),C+=l,C=Math.min(i,C),{topPadding:Z,scrollHeight:r,start:k,end:C}}setDimensions(e,i){let l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){let{panelHeight:o}=this.dimensions,r=e+i,a=l,x=a+o;return o>=r&&l===e?null:r>x?a+r-x:e<=a?e:null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac});let n=t;return n})(),ze=["top","right","bottom","left"],$t=typeof requestAnimationFrame<"u"?_e:fe,Qe=(()=>{let t=class t{constructor(e,i,l,o,r){this._renderer=e,this._zone=i,this._panelService=l,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new v,this.scroll=new v,this.scrollToEnd=new v,this.outsideClick=new v,this._destroy$=new W,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem.index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let l=this.items.indexOf(e);if(l<0||l>=this.itemsLength)return;let o;if(this.virtualScroll){let r=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(l*r,r,this._lastScrollPosition)}else{let r=this._dropdown.querySelector(`#${e.htmlId}`),a=i?r.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(r.offsetTop,r.clientHeight,a)}p(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),ze.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){ze.forEach(l=>{let o=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{G(this.scrollElementRef.nativeElement,"scroll").pipe(N(this._destroy$),be(0,$t)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let l=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(l)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{J(G(this._document,"touchstart",{capture:!0}),G(this._document,"click",{capture:!0})).pipe(N(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),p(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 l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${l*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(l,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),l=document.documentElement.scrollTop||document.body.scrollTop,o=i.top+window.pageYOffset,r=i.height,a=e.getBoundingClientRect().height;return o+r+a>l+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(),i=this._parent.getBoundingClientRect(),l=e.left-i.left;this._dropdown.style.left=l+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.height;if(this._currentPosition==="top"){let o=i.bottom-e.bottom;this._dropdown.style.bottom=o+l+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-i.top;this._dropdown.style.top=o+l+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{G(this._dropdown,"mousedown").pipe(N(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(i){return new(i||t)(d(Ae),d(xe),d(Ye),d(L),d(Re,8))},t.\u0275cmp=ee({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){if(i&1&&(R(Ke,7,L),R(Ze,7,L),R(Je,7,L)),i&2){let o;f(o=_())&&(l.contentElementRef=o.first),f(o=_())&&(l.scrollElementRef=o.first),f(o=_())&&(l.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",m],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[te,q],ngContentSelectors:We,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,l){i&1&&(ce(),w(0,Xe,2,4,"div",3),g(1,"div",4,0),j(3,"div",null,1),g(5,"div",null,2),de(7),E()(),w(8,et,2,4,"div",5)),i&2&&(A(l.headerTemplate?0:-1),u(3),B("total-padding",l.virtualScroll),u(2),B("scrollable-content",l.virtualScroll&&l.items.length),u(3),A(l.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0});let n=t;return n})(),Kt=(()=>{let t=class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new W}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()}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275cmp=ee({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",m]},features:[te,q],ngContentSelectors:We,decls:1,vars:0,template:function(i,l){i&1&&(ce(),de(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),Zt=(()=>{let t=class t{constructor(){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"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Jt=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$e=new Se("ng-select-selection-model"),wi=(()=>{let t=class t{get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}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 p(this._clearSearchOnAdd)?this._clearSearchOnAdd:p(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return p(this._deselectOnClick)?this._deselectOnClick:p(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,l,o,r,a,x){this.classes=e,this.autoFocus=i,this.config=l,this._cd=a,this._console=x,this.markFirst=!0,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.keyDownFn=C=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new v,this.focusEvent=new v,this.changeEvent=new v,this.openEvent=new v,this.closeEvent=new v,this.searchEvent=new v,this.clearEvent=new v,this.addEvent=new v,this.removeEvent=new v,this.scroll=new v,this.scrollToEnd=new v,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=qe(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new W,this._keyPress$=new W,this._onChange=C=>{},this._onTouched=()=>{},this.clearItem=C=>{let F=this.selectedItems.find(H=>H.value===C);this.unselect(F)},this.trackByOption=(C,F)=>this.trackByFn?this.trackByFn(F.value):F,this._mergeGlobalConfig(l),this.itemsList=new pe(this,o()),this.element=r.nativeElement}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}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=p(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),p(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(D[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 i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case D.ArrowDown:this._handleArrowDown(e);break;case D.ArrowUp:this._handleArrowUp(e);break;case D.Space:this._handleSpace(e);break;case D.Enter:this._handleEnter(e);break;case D.Tab:this._handleTab(e);break;case D.Esc:this.close(),e.preventDefault();break;case D.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case D.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}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()}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))}selectTag(){let e;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=l=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);Vt(e)?e.then(l=>this.select(i(l))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=p(i)?!$(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&p(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=l=>{this.items=l.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let l=J(this.ngOptions.changes,this._destroy$);J(...this.ngOptions.map(o=>o.stateChange$)).pipe(N(l)).subscribe(o=>{let r=this.itemsList.findItem(o.value);r.disabled=o.disabled,r.label=o.label||r.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(ve(this.ngOptions),N(this._destroy$)).subscribe(l=>{this.bindLabel=this._defaultLabel,e(l),i()})}_isValidWriteValue(e){if(!p(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=l=>!p(this.compareWith)&&$(l)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=l=>{let o=this.itemsList.findItem(l);if(o)this.itemsList.select(o);else{let r=$(l),a=!r&&!this.bindValue;r||a?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:l},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(N(this._destroy$),we(e=>this._pressedKeys.push(e)),Te(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let l of Object.keys(i))e.setAttribute(l,i[l])}_updateNgModel(){let e=[];for(let l of this.selectedItems)if(this.bindValue){let o=null;if(l.children){let r=this.groupValue?this.bindValue:this.groupBy;o=l.value[r||this.groupBy]}else o=this.itemsList.resolveNested(l.value,this.bindValue);e.push(o)}else e.push(l.value);let i=this.selectedItems.map(l=>l.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(p(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}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}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,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=p(this.virtualScroll)?this.virtualScroll:p(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=p(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}};t.\u0275fac=function(i){return new(i||t)(le("class"),le("autofocus"),d(Zt),d($e),d(L),d(Ne),d(Jt))},t.\u0275cmp=ee({type:t,selectors:[["ng-select"]],contentQueries:function(i,l,o){if(i&1&&(I(o,Mt,5,h),I(o,Nt,5,h),I(o,Rt,5,h),I(o,Ht,5,h),I(o,jt,5,h),I(o,Ut,5,h),I(o,zt,5,h),I(o,Qt,5,h),I(o,Wt,5,h),I(o,Gt,5,h),I(o,qt,5,h),I(o,Kt,5)),i&2){let r;f(r=_())&&(l.optionTemplate=r.first),f(r=_())&&(l.optgroupTemplate=r.first),f(r=_())&&(l.labelTemplate=r.first),f(r=_())&&(l.multiLabelTemplate=r.first),f(r=_())&&(l.headerTemplate=r.first),f(r=_())&&(l.footerTemplate=r.first),f(r=_())&&(l.notFoundTemplate=r.first),f(r=_())&&(l.typeToSearchTemplate=r.first),f(r=_())&&(l.loadingTextTemplate=r.first),f(r=_())&&(l.tagTemplate=r.first),f(r=_())&&(l.loadingSpinnerTemplate=r.first),f(r=_())&&(l.ngOptions=r)}},viewQuery:function(i,l){if(i&1&&(R(Qe,5),R(tt,7),R(it,5)),i&2){let o;f(o=_())&&(l.dropdownPanel=o.first),f(o=_())&&(l.searchInput=o.first),f(o=_())&&(l.clearButton=o.first)}},hostVars:20,hostBindings:function(i,l){i&1&&P("keydown",function(r){return l.handleKeyDown(r)}),i&2&&B("ng-select-typeahead",l.typeahead)("ng-select-multiple",l.multiple)("ng-select-taggable",l.addTag)("ng-select-searchable",l.searchable)("ng-select-clearable",l.clearable)("ng-select-opened",l.isOpen)("ng-select",l.useDefaultClass)("ng-select-disabled",l.disabled)("ng-select-filtered",l.filtered)("ng-select-single",l.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",m],placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",m],closeOnSelect:[2,"closeOnSelect","closeOnSelect",m],hideSelected:[2,"hideSelected","hideSelected",m],selectOnTab:[2,"selectOnTab","selectOnTab",m],openOnEnter:[2,"openOnEnter","openOnEnter",m],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Y],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Y],virtualScroll:[2,"virtualScroll","virtualScroll",m],selectableGroup:[2,"selectableGroup","selectableGroup",m],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",m],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",m],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Y],readonly:[2,"readonly","readonly",m],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",m],minTermLength:[2,"minTermLength","minTermLength",Y],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",m],keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:[2,"multiple","multiple",m],addTag:"addTag",searchable:[2,"searchable","searchable",m],clearable:[2,"clearable","clearable",m],isOpen:[2,"isOpen","isOpen",m],items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Be([{provide:Ue,useExisting:ye(()=>t),multi:!0},Ye]),te,q],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["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"],[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"],[3,"ngTemplateOutlet"],[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(i,l){if(i&1){let o=U();g(0,"div",9),P("mousedown",function(a){return b(o),T(l.handleMousedown(a))}),g(1,"div",10)(2,"div",11),V(3),E(),w(4,ut,2,0)(5,dt,1,5,null,12),g(6,"div",13)(7,"input",14,0),P("input",function(){b(o);let a=O(8);return T(l.filter(a.value))})("compositionstart",function(){return b(o),T(l.onCompositionStart())})("compositionend",function(){b(o);let a=O(8);return T(l.onCompositionEnd(a.value))})("focus",function(a){return b(o),T(l.onInputFocus(a))})("blur",function(a){return b(o),T(l.onInputBlur(a))})("change",function(a){return b(o),T(a.stopPropagation())}),E()()(),w(9,mt,3,1)(10,gt,4,1,"span",15),g(11,"span",16),j(12,"span",17),E()(),w(13,Dt,8,17,"ng-dropdown-panel",18)}i&2&&(B("ng-appearance-outline",l.appearance==="outline")("ng-has-value",l.hasValue),u(3),z(l.placeholder),u(),A((!l.multiLabelTemplate||!l.multiple)&&l.selectedItems.length>0?4:-1),u(),A(l.multiple&&l.multiLabelTemplate&&l.selectedValues.length>0?5:-1),u(),ie("aria-expanded",l.isOpen)("aria-owns",l.isOpen?l.dropdownId:null),u(),y("readOnly",!l.searchable||l.itemsList.maxItemsSelected)("disabled",l.disabled)("value",l.searchTerm?l.searchTerm:""),ie("id",l.labelForId)("tabindex",l.tabIndex)("aria-activedescendant",l.isOpen?l.itemsList==null||l.itemsList.markedItem==null?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen?l.dropdownId:null),u(2),A(l.loading?9:-1),u(),A(l.showClear()?10:-1),u(3),A(l.isOpen?13:-1))},dependencies:[He,he,Qe,Pt],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:none;user-select:none;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});let n=t;return n})();function Xt(){return new me}var me=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,s,e){if(t.selected=!0,(!t.children||!s&&e)&&this._selected.push(t),s)if(t.parent){let i=t.parent.children.length,l=t.parent.children.filter(o=>o.selected).length;t.parent.selected=i===l}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),e&&this._activeChildren(t)?this._selected=[...this._selected.filter(i=>i.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(i=>!i.disabled)])}unselect(t,s){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,s)if(t.parent&&t.parent.selected){let e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(i=>i!==t&&!i.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(t,s){for(let e of t)e.disabled||(e.selected=s)}_removeChildren(t){this._selected=[...this._selected.filter(s=>s.parent!==t),...t.children.filter(s=>s.parent===t&&s.disabled&&s.selected)]}_removeParent(t){this._selected=this._selected.filter(s=>s!==t)}_activeChildren(t){return t.children.every(s=>!s.disabled||s.selected)}},yi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=Fe({providers:[{provide:$e,useValue:Xt}],imports:[je]});let n=t;return n})();export{Mt as a,Rt as b,Kt as c,wi as d,yi as e};
@@ -0,0 +1 @@
1
+ import{K as w}from"./chunk-4TYJR476.js";import{$ as M,E as N,Ec as q,Fa as d,I as T,Ja as m,M as b,Mc as G,Nb as V,P as L,X as v,Xa as z,Za as H,a as y,aa as O,ab as k,ba as E,ca as g,cb as W,da as x,ga as P,gc as Y,ha as D,n as f,nc as F,o as R,q as u,ta as U,va as I,w as A,wb as $,xb as B,ya as j}from"./chunk-77JORVC2.js";var et=["*"],S;function nt(){if(S===void 0&&(S=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&(S=r.trustedTypes.createPolicy("angular#components",{createHTML:s=>s}))}return S}function _(r){return nt()?.createHTML(r)||r}function J(r){return Error(`Unable to find icon with the name "${r}"`)}function it(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function K(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function Q(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var a=class{constructor(s,tt,t){this.url=s,this.svgText=tt,this.options=t}},ot=(()=>{let s=class s{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new a(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,i){let o=this._sanitizer.sanitize(d.HTML,n);if(!o)throw Q(n);let c=_(o);return this._addSvgIconConfig(t,e,new a("",c,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new a(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){let i=this._sanitizer.sanitize(d.HTML,e);if(!i)throw Q(e);let o=_(i);return this._addSvgIconSetConfig(t,new a("",o,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(d.RESOURCE_URL,t);if(!e)throw K(t);let n=this._cachedIconsByUrl.get(e);return n?f(C(n)):this._loadSvgIconFromConfig(new a(t,null)).pipe(v(i=>this._cachedIconsByUrl.set(e,i)),u(i=>C(i)))}getNamedSvgIcon(t,e=""){let n=X(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);let o=this._iconSetConfigs.get(e);return o?this._getSvgFromIconSetConfigs(t,o):R(J(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?f(C(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(u(e=>C(e)))}_getSvgFromIconSetConfigs(t,e){let n=this._extractIconWithNameFromAnySet(t,e);if(n)return f(n);let i=e.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(N(c=>{let h=`Loading icon set URL: ${this._sanitizer.sanitize(d.RESOURCE_URL,o.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(h)),f(null)})));return A(i).pipe(u(()=>{let o=this._extractIconWithNameFromAnySet(t,e);if(!o)throw J(t);return o}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.svgText&&i.svgText.toString().indexOf(t)>-1){let o=this._svgElementFromConfig(i),c=this._extractSvgIconFromSet(o,t,i.options);if(c)return c}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(v(e=>t.svgText=e),u(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?f(null):this._fetchIcon(t).pipe(v(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){let i=t.querySelector(`[id="${e}"]`);if(!i)return null;let o=i.cloneNode(!0);if(o.removeAttribute("id"),o.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(o,n);if(o.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(o),n);let c=this._svgElementFromString(_("<svg></svg>"));return c.appendChild(o),this._setSvgAttributes(c,n)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let e=this._svgElementFromString(_("<svg></svg>")),n=t.attributes;for(let i=0;i<n.length;i++){let{name:o,value:c}=n[i];o!=="id"&&e.setAttribute(o,c)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:n}=t,i=n?.withCredentials??!1;if(!this._httpClient)throw it();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let o=this._sanitizer.sanitize(d.RESOURCE_URL,e);if(!o)throw K(e);let c=this._inProgressUrlFetches.get(o);if(c)return c;let l=this._httpClient.get(o,{responseType:"text",withCredentials:i}).pipe(u(h=>_(h)),b(()=>this._inProgressUrlFetches.delete(o)),L());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(X(t,e),n),this}_addSvgIconSetConfig(t,e){let n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){let i=this._resolvers[n](e,t);if(i)return rt(i)?new a(i.url,null,i.options):new a(i,null)}}};s.\u0275fac=function(e){return new(e||s)(g(q,8),g(G),g(F,8),g(I))},s.\u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"});let r=s;return r})();function C(r){return r.cloneNode(!0)}function X(r,s){return r+":"+s}function rt(r){return!!(r.url&&r.options)}var st=new E("MAT_ICON_DEFAULT_OPTIONS"),ct=new E("mat-icon-location",{providedIn:"root",factory:at});function at(){let r=x(F),s=r?r.location:null;return{getPathname:()=>s?s.pathname+s.search:""}}var Z=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],lt=Z.map(r=>`[${r}]`).join(", "),ht=/^url\(['"]?#(.*?)['"]?\)$/,Tt=(()=>{let s=class s{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}constructor(t,e,n,i,o,c){this._elementRef=t,this._iconRegistry=e,this._location=i,this._errorHandler=o,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=y.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),n||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let n=t.childNodes[e];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),e.forEach(n=>t.classList.add(n)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((n,i)=>{n.forEach(o=>{i.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(lt),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)Z.forEach(o=>{let c=e[i],l=c.getAttribute(o),h=l?l.match(ht):null;if(h){let p=n.get(c);p||(p=[],n.set(c,p)),p.push({name:o,value:h[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(T(1)).subscribe(i=>this._setSvgElement(i),i=>{let o=`Error retrieving icon ${e}:${n}! ${i.message}`;this._errorHandler.handleError(new Error(o))})}}};s.\u0275fac=function(e){return new(e||s)(m(j),m(ot),U("aria-hidden"),m(ct),m(I),m(st,8))},s.\u0275cmp=P({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,n){e&2&&(H("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),W(n.color?"mat-"+n.color:""),k("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[z,V],ngContentSelectors:et,decls:1,vars:0,template:function(e,n){e&1&&($(),B(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let r=s;return r})(),bt=(()=>{let s=class s{};s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=D({type:s}),s.\u0275inj=O({imports:[w,w]});let r=s;return r})();export{Tt as a,bt as b};