marketplacepos 2.7.4 → 2.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/360.35d9782330672e00.js +1 -0
- package/Marketplace/369.f3cfdd6bf33e06f5.js +1 -0
- package/Marketplace/397.bd20bd794e4994a8.js +1 -0
- package/Marketplace/587.69b186b4d297a852.js +1 -0
- package/Marketplace/643.ee45650084330291.js +1 -0
- package/Marketplace/833.552ef7db8cfcde45.js +1 -0
- package/Marketplace/{863.490933ee2cce9279.js → 863.67b36200543c45b1.js} +1 -1
- package/Marketplace/877.460b82caffdbeb26.js +1 -0
- package/Marketplace/993.f25cf4b5757f3e91.js +1 -0
- package/Marketplace/common.1ae3037cc1f5de4e.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main.26e031734fa543d6.js → main.3422662bee459aef.js} +1 -1
- package/Marketplace/{runtime.1fd3a054bc12a0de.js → runtime.0e8ee6b131e362b6.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/174.df8669b6311f928d.js +0 -1
- package/Marketplace/360.d6aa15ddc2dfdd69.js +0 -1
- package/Marketplace/369.ca96e7763e20bf72.js +0 -1
- package/Marketplace/397.defbf293e15c7185.js +0 -1
- package/Marketplace/587.2e5583c1fa20a173.js +0 -1
- package/Marketplace/628.145c54d491d3a429.js +0 -1
- package/Marketplace/643.3295801f0b4936a8.js +0 -1
- package/Marketplace/833.b0b60f1bcc7f56c1.js +0 -1
- package/Marketplace/common.8f5889e94b19f645.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[833],{3154:(z,k,p)=>{p.d(k,{g:()=>V});var e=(()=>{return(x=e||(e={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",x.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",x.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",x.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",x.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",x.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",e;var x})(),y=p(9694);class V{static IsNotEmpty(f){return""!=f&&f!=V.GuidEMpty&&null!=f&&null!=f}static IsEmpty(f){return""==f||null==f||null==f||f==V.GuidEMpty}static getChannelLogoByTypeId(f){let A;switch(f){case y.x.Tokopedia:A=e.TOKOPEDIA;break;case y.x.ShopeeV2:A=e.SHOOPE;break;case y.x.WooCommerce:A=e.WOOCOMMERCE;break;case y.x.Lazada:A=e.LAZADA;break;case y.x.Tiktok:A=e.TIKTOK;break;case y.x.KalCare:A=e.KALCARE}return A}static getDaysDiff(f,A){return(A.getTime()-f.getTime())/864e5}static addDays(f,A){const O=new Date(Number(f));return O.setDate(f.getDate()-A),O}static isValidDate(f){return f instanceof Date&&!isNaN(f)}static getImageInfo(f){return new Promise((A,O)=>{let v=new Image;v.src=f,v.decode().then(()=>{A({img:f,height:v.height,width:v.width})}).catch(()=>{O(new Error(`Image load error for ${f}`))})})}static formatTitleForFromDate(f,A){let O="dd MMM";return f.getMonth()==A.getMonth()&&(O="dd"),f.getFullYear()!=A.getFullYear()&&(O="dd MMM yyyy"),O}static openDownloadFile(f,A){var O=window.URL.createObjectURL(f),v=document.createElement("a");v.href=O,v.download=A,v.click()}}V.GuidEMpty="00000000-0000-0000-0000-000000000000",V.MinDate="0001-01-01T00:00:00"},9694:(z,k,p)=>{p.d(k,{x:()=>e});var e=(()=>{return(y=e||(e={}))[y.Shopee=0]="Shopee",y[y.Tokopedia=1]="Tokopedia",y[y.WooCommerce=2]="WooCommerce",y[y.None=3]="None",y[y.KalCare=4]="KalCare",y[y.ShopeeV2=5]="ShopeeV2",y[y.Tiktok=6]="Tiktok",y[y.Lazada=7]="Lazada",e;var y})()},4128:(z,k,p)=>{p.d(k,{D:()=>v});var e=p(9751),y=p(4742),V=p(8421),x=p(3269),f=p(5403),A=p(3268),O=p(1810);function v(...M){const m=(0,x.jO)(M),{args:T,keys:D}=(0,y.D)(M),w=new e.y(I=>{const{length:C}=T;if(!C)return void I.complete();const F=new Array(C);let g=C,E=C;for(let b=0;b<C;b++){let H=!1;(0,V.Xf)(T[b]).subscribe((0,f.x)(I,W=>{H||(H=!0,E--),F[b]=W},()=>g--,void 0,()=>{(!g||!H)&&(E||I.next(D?(0,O.n)(D,F):F),I.complete())}))}});return m?w.pipe((0,A.Z)(m)):w}},4968:(z,k,p)=>{p.d(k,{R:()=>m});var e=p(8421),y=p(9751),V=p(5577),x=p(1144),f=p(576),A=p(3268);const O=["addListener","removeListener"],v=["addEventListener","removeEventListener"],M=["on","off"];function m(C,F,g,E){if((0,f.m)(g)&&(E=g,g=void 0),E)return m(C,F,g).pipe((0,A.Z)(E));const[b,H]=function I(C){return(0,f.m)(C.addEventListener)&&(0,f.m)(C.removeEventListener)}(C)?v.map(W=>$=>C[W](F,$,g)):function D(C){return(0,f.m)(C.addListener)&&(0,f.m)(C.removeListener)}(C)?O.map(T(C,F)):function w(C){return(0,f.m)(C.on)&&(0,f.m)(C.off)}(C)?M.map(T(C,F)):[];if(!b&&(0,x.z)(C))return(0,V.z)(W=>m(W,F,g))((0,e.Xf)(C));if(!b)throw new TypeError("Invalid event target");return new y.y(W=>{const $=(...J)=>W.next(1<J.length?J:J[0]);return b($),()=>H($)})}function T(C,F){return g=>E=>C[g](F,E)}},3601:(z,k,p)=>{p.d(k,{e:()=>O});var e=p(4986),y=p(4482),V=p(8421),x=p(5403),A=p(2805);function O(v,M=e.z){return function f(v){return(0,y.e)((M,m)=>{let T=!1,D=null,w=null,I=!1;const C=()=>{if(w?.unsubscribe(),w=null,T){T=!1;const g=D;D=null,m.next(g)}I&&m.complete()},F=()=>{w=null,I&&m.complete()};M.subscribe((0,x.x)(m,g=>{T=!0,D=g,w||(0,V.Xf)(v(g)).subscribe(w=(0,x.x)(m,C,F))},()=>{I=!0,(!T||!w||w.closed)&&m.complete()}))})}(()=>(0,A.H)(v,M))}},8372:(z,k,p)=>{p.d(k,{b:()=>x});var e=p(4986),y=p(4482),V=p(5403);function x(f,A=e.z){return(0,y.e)((O,v)=>{let M=null,m=null,T=null;const D=()=>{if(M){M.unsubscribe(),M=null;const I=m;m=null,v.next(I)}};function w(){const I=T+f,C=A.now();if(C<I)return M=this.schedule(void 0,I-C),void v.add(M);D()}O.subscribe((0,V.x)(v,I=>{m=I,T=A.now(),M||(M=A.schedule(w,f),v.add(M))},()=>{D(),v.complete()},void 0,()=>{m=M=null}))})}},2722:(z,k,p)=>{p.d(k,{R:()=>f});var e=p(4482),y=p(5403),V=p(8421),x=p(5032);function f(A){return(0,e.e)((O,v)=>{(0,V.Xf)(A).subscribe((0,y.x)(v,()=>v.complete(),x.Z)),!v.closed&&O.subscribe(v)})}},6406:(z,k,p)=>{p.d(k,{Z:()=>O});var e=p(4408),y=p(727);const V={schedule(M){let m=requestAnimationFrame,T=cancelAnimationFrame;const{delegate:D}=V;D&&(m=D.requestAnimationFrame,T=D.cancelAnimationFrame);const w=m(I=>{T=void 0,M(I)});return new y.w0(()=>T?.(w))},requestAnimationFrame(...M){const{delegate:m}=V;return(m?.requestAnimationFrame||requestAnimationFrame)(...M)},cancelAnimationFrame(...M){const{delegate:m}=V;return(m?.cancelAnimationFrame||cancelAnimationFrame)(...M)},delegate:void 0};var f=p(7565);const O=new class A extends f.v{flush(m){this._active=!0;const T=this._scheduled;this._scheduled=void 0;const{actions:D}=this;let w;m=m||D.shift();do{if(w=m.execute(m.state,m.delay))break}while((m=D[0])&&m.id===T&&D.shift());if(this._active=!1,w){for(;(m=D[0])&&m.id===T&&D.shift();)m.unsubscribe();throw w}}}(class x extends e.o{constructor(m,T){super(m,T),this.scheduler=m,this.work=T}requestAsyncId(m,T,D=0){return null!==D&&D>0?super.requestAsyncId(m,T,D):(m.actions.push(this),m._scheduled||(m._scheduled=V.requestAnimationFrame(()=>m.flush(void 0))))}recycleAsyncId(m,T,D=0){if(null!=D&&D>0||null==D&&this.delay>0)return super.recycleAsyncId(m,T,D);m.actions.some(w=>w.id===T)||(V.cancelAnimationFrame(T),m._scheduled=void 0)}})},3101:(z,k,p)=>{p.d(k,{E:()=>I});var e=p(4408);let V,y=1;const x={};function f(F){return F in x&&(delete x[F],!0)}const A={setImmediate(F){const g=y++;return x[g]=!0,V||(V=Promise.resolve()),V.then(()=>f(g)&&F()),g},clearImmediate(F){f(F)}},{setImmediate:v,clearImmediate:M}=A,m={setImmediate(...F){const{delegate:g}=m;return(g?.setImmediate||v)(...F)},clearImmediate(F){const{delegate:g}=m;return(g?.clearImmediate||M)(F)},delegate:void 0};var D=p(7565);const I=new class w extends D.v{flush(g){this._active=!0;const E=this._scheduled;this._scheduled=void 0;const{actions:b}=this;let H;g=g||b.shift();do{if(H=g.execute(g.state,g.delay))break}while((g=b[0])&&g.id===E&&b.shift());if(this._active=!1,H){for(;(g=b[0])&&g.id===E&&b.shift();)g.unsubscribe();throw H}}}(class T extends e.o{constructor(g,E){super(g,E),this.scheduler=g,this.work=E}requestAsyncId(g,E,b=0){return null!==b&&b>0?super.requestAsyncId(g,E,b):(g.actions.push(this),g._scheduled||(g._scheduled=m.setImmediate(g.flush.bind(g,void 0))))}recycleAsyncId(g,E,b=0){if(null!=b&&b>0||null==b&&this.delay>0)return super.recycleAsyncId(g,E,b);g.actions.some(H=>H.id===E)||(m.clearImmediate(E),g._scheduled=void 0)}})},4006:(z,k,p)=>{p.d(k,{Cf:()=>E,EJ:()=>ze,F:()=>je,Fj:()=>I,JJ:()=>Le,JL:()=>Ge,JU:()=>v,Kr:()=>Wt,On:()=>lt,Q7:()=>$e,UX:()=>Mn,Wl:()=>m,YN:()=>Ut,Zs:()=>pt,_Y:()=>Nt,a5:()=>j,c5:()=>gt,gN:()=>L,kI:()=>W,on:()=>mt,sg:()=>Ke,u5:()=>wn,wV:()=>at});var e=p(4650),y=p(6895),V=p(8996),x=p(4128),f=p(4004);let A=(()=>{class s{constructor(t,o){this._renderer=t,this._elementRef=o,this.onChange=c=>{},this.onTouched=()=>{}}setProperty(t,o){this._renderer.setProperty(this._elementRef.nativeElement,t,o)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(e.Qsj),e.Y36(e.SBq))},s.\u0275dir=e.lG2({type:s}),s})(),O=(()=>{class s extends A{}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,features:[e.qOj]}),s})();const v=new e.OlP("NgValueAccessor"),M={provide:v,useExisting:(0,e.Gpc)(()=>m),multi:!0};let m=(()=>{class s extends O{writeValue(t){this.setProperty("checked",t)}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){1&t&&e.NdJ("change",function(_){return o.onChange(_.target.checked)})("blur",function(){return o.onTouched()})},features:[e._Bn([M]),e.qOj]}),s})();const T={provide:v,useExisting:(0,e.Gpc)(()=>I),multi:!0},w=new e.OlP("CompositionEventMode");let I=(()=>{class s extends A{constructor(t,o,c){super(t,o),this._compositionMode=c,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const s=(0,y.q)()?(0,y.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(w,8))},s.\u0275dir=e.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,o){1&t&&e.NdJ("input",function(_){return o._handleInput(_.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(_){return o._compositionEnd(_.target.value)})},features:[e._Bn([T]),e.qOj]}),s})();function F(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function g(s){return null!=s&&"number"==typeof s.length}const E=new e.OlP("NgValidators"),b=new e.OlP("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class W{static min(n){return function $(s){return n=>{if(F(n.value)||F(s))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<s?{min:{min:s,actual:n.value}}:null}}(n)}static max(n){return function J(s){return n=>{if(F(n.value)||F(s))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>s?{max:{max:s,actual:n.value}}:null}}(n)}static required(n){return ve(n)}static requiredTrue(n){return Ce(n)}static email(n){return ye(n)}static minLength(n){return function Ee(s){return n=>F(n.value)||!g(n.value)?null:n.value.length<s?{minlength:{requiredLength:s,actualLength:n.value.length}}:null}(n)}static maxLength(n){return function Ae(s){return n=>g(n.value)&&n.value.length>s?{maxlength:{requiredLength:s,actualLength:n.value.length}}:null}(n)}static pattern(n){return De(n)}static nullValidator(n){return null}static compose(n){return we(n)}static composeAsync(n){return Me(n)}}function ve(s){return F(s.value)?{required:!0}:null}function Ce(s){return!0===s.value?null:{required:!0}}function ye(s){return F(s.value)||H.test(s.value)?null:{email:!0}}function De(s){if(!s)return ie;let n,t;return"string"==typeof s?(t="","^"!==s.charAt(0)&&(t+="^"),t+=s,"$"!==s.charAt(s.length-1)&&(t+="$"),n=new RegExp(t)):(t=s.toString(),n=s),o=>{if(F(o.value))return null;const c=o.value;return n.test(c)?null:{pattern:{requiredPattern:t,actualValue:c}}}}function ie(s){return null}function be(s){return null!=s}function Te(s){return(0,e.QGY)(s)?(0,V.D)(s):s}function Fe(s){let n={};return s.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Ve(s,n){return n.map(t=>t(s))}function Oe(s){return s.map(n=>function Ze(s){return!s.validate}(n)?n:t=>n.validate(t))}function we(s){if(!s)return null;const n=s.filter(be);return 0==n.length?null:function(t){return Fe(Ve(t,n))}}function ue(s){return null!=s?we(Oe(s)):null}function Me(s){if(!s)return null;const n=s.filter(be);return 0==n.length?null:function(t){const o=Ve(t,n).map(Te);return(0,x.D)(o).pipe((0,f.U)(Fe))}}function ce(s){return null!=s?Me(Oe(s)):null}function Se(s,n){return null===s?[n]:Array.isArray(s)?[...s,n]:[s,n]}function Ie(s){return s._rawValidators}function xe(s){return s._rawAsyncValidators}function de(s){return s?Array.isArray(s)?s:[s]:[]}function se(s,n){return Array.isArray(s)?s.includes(n):s===n}function Ne(s,n){const t=de(n);return de(s).forEach(c=>{se(t,c)||t.push(c)}),t}function Be(s,n){return de(n).filter(t=>!se(s,t))}class ke{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=ue(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class L extends ke{get formDirective(){return null}get path(){return null}}class j extends ke{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pe{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Le=(()=>{class s extends Pe{constructor(t){super(t)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(j,2))},s.\u0275dir=e.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){2&t&&e.ekj("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[e.qOj]}),s})(),Ge=(()=>{class s extends Pe{constructor(t){super(t)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(L,10))},s.\u0275dir=e.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,o){2&t&&e.ekj("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[e.qOj]}),s})();const ee="VALID",q="INVALID",Q="PENDING",R="DISABLED";function le(s){return(te(s)?s.validators:s)||null}function me(s,n){return(te(n)?n.asyncValidators:s)||null}function te(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class ge{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ee}get invalid(){return this.status===q}get pending(){return this.status==Q}get disabled(){return this.status===R}get enabled(){return this.status!==R}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Ne(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Ne(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Be(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Be(n,this._rawAsyncValidators))}hasValidator(n){return se(this._rawValidators,n)}hasAsyncValidator(n){return se(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Q,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=R,this.errors=null,this._forEachChild(o=>{o.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ee,this._forEachChild(o=>{o.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ee||this.status===Q)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?R:ee}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Q,this._hasOwnPendingAsyncValidator=!0;const t=Te(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((o,c)=>o&&o._find(c),this)}getError(n,t){const o=t?this.get(t):this;return o&&o.errors?o.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?R:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Q)?Q:this._anyControlsHaveStatus(q)?q:ee}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){te(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function He(s){return Array.isArray(s)?ue(s):s||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Ue(s){return Array.isArray(s)?ce(s):s||null}(this._rawAsyncValidators)}}class fe extends ge{constructor(n,t,o){super(le(t),me(o,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,o={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,o={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function We(s,n,t){s._forEachChild((o,c)=>{if(void 0===t[c])throw new e.vHH(1002,"")})})(this,0,n),Object.keys(n).forEach(o=>{(function Ye(s,n,t){const o=s.controls;if(!(n?Object.keys(o):o).length)throw new e.vHH(1e3,"");if(!o[t])throw new e.vHH(1001,"")})(this,!0,o),this.controls[o].setValue(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(o=>{const c=this.controls[o];c&&c.patchValue(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((o,c)=>{o.reset(n[c],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,o)=>(n[o]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,o)=>!!o._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const o=this.controls[t];o&&n(o,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,o]of Object.entries(this.controls))if(this.contains(t)&&n(o))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,o,c)=>((o.enabled||this.disabled)&&(t[c]=o.value),t))}_reduceChildren(n,t){let o=n;return this._forEachChild((c,_)=>{o=t(o,c,_)}),o}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const a=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>i}),i="always";function u(s,n,t=i){P(s,n),n.valueAccessor.writeValue(s.value),(s.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(s.disabled),function K(s,n){n.valueAccessor.registerOnChange(t=>{s._pendingValue=t,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&U(s,n)})}(s,n),function ae(s,n){const t=(o,c)=>{n.valueAccessor.writeValue(o),c&&n.viewToModelUpdate(o)};s.registerOnChange(t),n._registerOnDestroy(()=>{s._unregisterOnChange(t)})}(s,n),function Y(s,n){n.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&U(s,n),"submit"!==s.updateOn&&s.markAsTouched()})}(s,n),function S(s,n){if(n.valueAccessor.setDisabledState){const t=o=>{n.valueAccessor.setDisabledState(o)};s.registerOnDisabledChange(t),n._registerOnDestroy(()=>{s._unregisterOnDisabledChange(t)})}}(s,n)}function d(s,n,t=!0){const o=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(o),n.valueAccessor.registerOnTouched(o)),B(s,n),s&&(n._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function h(s,n){s.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function P(s,n){const t=Ie(s);null!==n.validator?s.setValidators(Se(t,n.validator)):"function"==typeof t&&s.setValidators([t]);const o=xe(s);null!==n.asyncValidator?s.setAsyncValidators(Se(o,n.asyncValidator)):"function"==typeof o&&s.setAsyncValidators([o]);const c=()=>s.updateValueAndValidity();h(n._rawValidators,c),h(n._rawAsyncValidators,c)}function B(s,n){let t=!1;if(null!==s){if(null!==n.validator){const c=Ie(s);if(Array.isArray(c)&&c.length>0){const _=c.filter(G=>G!==n.validator);_.length!==c.length&&(t=!0,s.setValidators(_))}}if(null!==n.asyncValidator){const c=xe(s);if(Array.isArray(c)&&c.length>0){const _=c.filter(G=>G!==n.asyncValidator);_.length!==c.length&&(t=!0,s.setAsyncValidators(_))}}}const o=()=>{};return h(n._rawValidators,o),h(n._rawAsyncValidators,o),t}function U(s,n){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function Ft(s,n){P(s,n)}function Vt(s,n){s._syncPendingControls(),n.forEach(t=>{const o=t.control;"submit"===o.updateOn&&o._pendingChange&&(t.viewToModelUpdate(o._pendingValue),o._pendingChange=!1)})}const nn={provide:L,useExisting:(0,e.Gpc)(()=>je)},_e=(()=>Promise.resolve())();let je=(()=>{class s extends L{constructor(t,o,c){super(),this.callSetDisabledState=c,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new fe({},ue(t),ce(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_e.then(()=>{const o=this._findContainer(t.path);t.control=o.registerControl(t.name,t.control),u(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){_e.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){_e.then(()=>{const o=this._findContainer(t.path),c=new fe({});Ft(c,t),o.registerControl(t.name,c),c.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_e.then(()=>{const o=this._findContainer(t.path);o&&o.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,o){_e.then(()=>{this.form.get(t.path).setValue(o)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Vt(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(E,10),e.Y36(b,10),e.Y36(a,8))},s.\u0275dir=e.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,o){1&t&&e.NdJ("submit",function(_){return o.onSubmit(_)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([nn]),e.qOj]}),s})();function Ot(s,n){const t=s.indexOf(n);t>-1&&s.splice(t,1)}function wt(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const Mt=class extends ge{constructor(n=null,t,o){super(le(t),me(o,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),te(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=wt(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ot(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ot(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){wt(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},rn={provide:j,useExisting:(0,e.Gpc)(()=>lt)},xt=(()=>Promise.resolve())();let lt=(()=>{class s extends j{constructor(t,o,c,_,G,Z){super(),this._changeDetectorRef=G,this.callSetDisabledState=Z,this.control=new Mt,this._registered=!1,this.update=new e.vpe,this._parent=t,this._setValidators(o),this._setAsyncValidators(c),this.valueAccessor=function rt(s,n){if(!n)return null;let t,o,c;return Array.isArray(n),n.forEach(_=>{_.constructor===I?t=_:function en(s){return Object.getPrototypeOf(s.constructor)===O}(_)?o=_:c=_}),c||o||t||null}(0,_)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const o=t.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function ot(s,n){if(!s.hasOwnProperty("model"))return!1;const t=s.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){u(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){xt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const o=t.isDisabled.currentValue,c=0!==o&&(0,e.D6c)(o);xt.then(()=>{c&&!this.control.disabled?this.control.disable():!c&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function r(s,n){return[...n.path,s]}(t,this._parent):[t]}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(L,9),e.Y36(E,10),e.Y36(b,10),e.Y36(v,10),e.Y36(e.sBO,8),e.Y36(a,8))},s.\u0275dir=e.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([rn]),e.qOj,e.TTD]}),s})(),Nt=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275dir=e.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),s})();const ln={provide:v,useExisting:(0,e.Gpc)(()=>at),multi:!0};let at=(()=>{class s extends O{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=o=>{t(""==o?null:parseFloat(o))}}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,o){1&t&&e.NdJ("input",function(_){return o.onChange(_.target.value)})("blur",function(){return o.onTouched()})},features:[e._Bn([ln]),e.qOj]}),s})(),Bt=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({}),s})();const ut=new e.OlP("NgModelWithFormControlWarning"),hn={provide:L,useExisting:(0,e.Gpc)(()=>Ke)};let Ke=(()=>{class s extends L{constructor(t,o,c){super(),this.callSetDisabledState=c,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(t),this._setAsyncValidators(o)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(B(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const o=this.form.get(t.path);return u(o,t,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),o}getControl(t){return this.form.get(t.path)}removeControl(t){d(t.control||null,t,!1),function tn(s,n){const t=s.indexOf(n);t>-1&&s.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,o){this.form.get(t.path).setValue(o)}onSubmit(t){return this.submitted=!0,Vt(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const o=t.control,c=this.form.get(t.path);o!==c&&(d(o||null,t),(s=>s instanceof Mt)(c)&&(u(c,t,this.callSetDisabledState),t.control=c))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const o=this.form.get(t.path);Ft(o,t),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const o=this.form.get(t.path);o&&function Qt(s,n){return B(s,n)}(o,t)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){P(this.form,this),this._oldForm&&B(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(E,10),e.Y36(b,10),e.Y36(a,8))},s.\u0275dir=e.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(t,o){1&t&&e.NdJ("submit",function(_){return o.onSubmit(_)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([hn]),e.qOj,e.TTD]}),s})();const fn={provide:v,useExisting:(0,e.Gpc)(()=>ze),multi:!0};function Ht(s,n){return null==s?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${s}: ${n}`.slice(0,50))}let ze=(()=>{class s extends O{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const c=Ht(this._getOptionId(t),t);this.setProperty("value",c)}registerOnChange(t){this.onChange=o=>{this.value=this._getOptionValue(o),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o),t))return o;return null}_getOptionValue(t){const o=function _n(s){return s.split(":")[0]}(t);return this._optionMap.has(o)?this._optionMap.get(o):t}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,o){1&t&&e.NdJ("change",function(_){return o.onChange(_.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([fn]),e.qOj]}),s})(),Ut=(()=>{class s{constructor(t,o,c){this._element=t,this._renderer=o,this._select=c,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Ht(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ze,9))},s.\u0275dir=e.lG2({type:s,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),s})();const vn={provide:v,useExisting:(0,e.Gpc)(()=>ht),multi:!0};function Yt(s,n){return null==s?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${s}: ${n}`.slice(0,50))}let ht=(()=>{class s extends O{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let o;if(this.value=t,Array.isArray(t)){const c=t.map(_=>this._getOptionId(_));o=(_,G)=>{_._setSelected(c.indexOf(G.toString())>-1)}}else o=(c,_)=>{c._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(t){this.onChange=o=>{const c=[],_=o.selectedOptions;if(void 0!==_){const G=_;for(let Z=0;Z<G.length;Z++){const ft=this._getOptionValue(G[Z].value);c.push(ft)}}else{const G=o.options;for(let Z=0;Z<G.length;Z++){const qe=G[Z];if(qe.selected){const ft=this._getOptionValue(qe.value);c.push(ft)}}}this.value=c,t(c)}}_registerOption(t){const o=(this._idCounter++).toString();return this._optionMap.set(o,t),o}_getOptionId(t){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o)._value,t))return o;return null}_getOptionValue(t){const o=function Cn(s){return s.split(":")[0]}(t);return this._optionMap.has(o)?this._optionMap.get(o)._value:t}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,o){1&t&&e.NdJ("change",function(_){return o.onChange(_.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([vn]),e.qOj]}),s})(),Wt=(()=>{class s{constructor(t,o,c){this._element=t,this._renderer=o,this._select=c,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Yt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Yt(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ht,9))},s.\u0275dir=e.lG2({type:s,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),s})(),ne=(()=>{class s{constructor(){this._validator=ie}ngOnChanges(t){if(this.inputName in t){const o=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):ie,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275dir=e.lG2({type:s,features:[e.TTD]}),s})();const An={provide:E,useExisting:(0,e.Gpc)(()=>$e),multi:!0},Dn={provide:E,useExisting:(0,e.Gpc)(()=>pt),multi:!0};let $e=(()=>{class s extends ne{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=t=>ve}enabled(t){return t}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,o){2&t&&e.uIk("required",o._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([An]),e.qOj]}),s})(),pt=(()=>{class s extends $e{constructor(){super(...arguments),this.createValidator=t=>Ce}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&e.uIk("required",o._enabled?"":null)},features:[e._Bn([Dn]),e.qOj]}),s})();const bn={provide:E,useExisting:(0,e.Gpc)(()=>mt),multi:!0};let mt=(()=>{class s extends ne{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=e.D6c,this.createValidator=t=>ye}enabled(t){return t}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[e._Bn([bn]),e.qOj]}),s})();const Vn={provide:E,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class s extends ne{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>De(t)}}return s.\u0275fac=function(){let n;return function(o){return(n||(n=e.n5z(s)))(o||s)}}(),s.\u0275dir=e.lG2({type:s,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,o){2&t&&e.uIk("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([Vn]),e.qOj]}),s})(),Jt=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[Bt]}),s})(),wn=(()=>{class s{static withConfig(t){return{ngModule:s,providers:[{provide:a,useValue:t.callSetDisabledState??i}]}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[Jt]}),s})(),Mn=(()=>{class s{static withConfig(t){return{ngModule:s,providers:[{provide:ut,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:a,useValue:t.callSetDisabledState??i}]}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[Jt]}),s})()},8796:(z,k,p)=>{p.d(k,{A0:()=>it,ir:()=>Qe,jq:()=>te,w9:()=>fe});var e=p(4650),y=p(4006),V=p(2722),x=p(3601),f=p(8675),A=p(8505),O=p(8372),v=p(9300),M=p(4004),m=p(6406),T=p(3101),D=p(7579),w=p(4968),I=p(6451),C=p(6895);const F=["content"],g=["scroll"],E=["padding"],b=function(l){return{searchTerm:l}};function H(l,a){if(1&l&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",i.headerTemplate)("ngTemplateOutletContext",e.VKq(2,b,i.filterValue))}}function W(l,a){if(1&l&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",i.footerTemplate)("ngTemplateOutletContext",e.VKq(2,b,i.filterValue))}}const $=["*"],J=["searchInput"];function ve(l,a){if(1&l){const i=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(i);const u=e.oxw().$implicit,d=e.oxw(2);return e.KtG(d.unselect(u))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&l){const i=e.oxw().$implicit,r=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",i.label)("escape",r.escapeHTML)}}function Ce(l,a){}const ye=function(l,a,i){return{item:l,clear:a,label:i}};function Ee(l,a){if(1&l&&(e.TgZ(0,"div",12),e.YNc(1,ve,3,2,"ng-template",null,13,e.W1O),e.YNc(3,Ce,0,0,"ng-template",14),e.qZA()),2&l){const i=a.$implicit,r=e.MAs(2),u=e.oxw(2);e.ekj("ng-value-disabled",i.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",u.labelTemplate||r)("ngTemplateOutletContext",e.kEZ(4,ye,i.value,u.clearItem,i.label))}}function Ae(l,a){if(1&l&&(e.ynx(0),e.YNc(1,Ee,4,8,"div",11),e.BQk()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.selectedItems)("ngForTrackBy",i.trackByOption)}}function De(l,a){}const ie=function(l,a){return{items:l,clear:a}};function be(l,a){if(1&l&&e.YNc(0,De,0,0,"ng-template",14),2&l){const i=e.oxw();e.Q6J("ngTemplateOutlet",i.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,ie,i.selectedValues,i.clearItem))}}function Te(l,a){1&l&&e._UZ(0,"div",19)}function Fe(l,a){}function Ve(l,a){if(1&l&&(e.ynx(0),e.YNc(1,Te,1,0,"ng-template",null,17,e.W1O),e.YNc(3,Fe,0,0,"ng-template",18),e.BQk()),2&l){const i=e.MAs(2),r=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",r.loadingSpinnerTemplate||i)}}function Ze(l,a){if(1&l&&(e.TgZ(0,"span",20)(1,"span",21),e._uU(2,"\xd7"),e.qZA()()),2&l){const i=e.oxw();e.s9C("title",i.clearAllText)}}function Oe(l,a){if(1&l&&e._UZ(0,"span",27),2&l){const i=e.oxw().$implicit,r=e.oxw(2);e.Q6J("ngItemLabel",i.label)("escape",r.escapeHTML)}}function we(l,a){}const ue=function(l,a,i,r){return{item:l,item$:a,index:i,searchTerm:r}};function Me(l,a){if(1&l){const i=e.EpF();e.TgZ(0,"div",25),e.NdJ("click",function(){const d=e.CHM(i).$implicit,h=e.oxw(2);return e.KtG(h.toggleItem(d))})("mouseover",function(){const d=e.CHM(i).$implicit,h=e.oxw(2);return e.KtG(h.onItemHover(d))}),e.YNc(1,Oe,1,2,"ng-template",null,26,e.W1O),e.YNc(3,we,0,0,"ng-template",14),e.qZA()}if(2&l){const i=a.$implicit,r=e.MAs(2),u=e.oxw(2);e.ekj("ng-option-disabled",i.disabled)("ng-option-selected",i.selected)("ng-optgroup",i.children)("ng-option",!i.children)("ng-option-child",!!i.parent)("ng-option-marked",i===u.itemsList.markedItem),e.uIk("role",i.children?"group":"option")("aria-selected",i.selected)("id",null==i?null:i.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",i.children?u.optgroupTemplate||r:u.optionTemplate||r)("ngTemplateOutletContext",e.l5B(17,ue,i.value,i,i.index,u.searchTerm))}}function ce(l,a){if(1&l&&(e.TgZ(0,"span")(1,"span",30),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&l){const i=e.oxw(3);e.xp6(2),e.Oqu(i.addTagText),e.xp6(1),e.hij('"',i.searchTerm,'"')}}function Se(l,a){}function Ie(l,a){if(1&l){const i=e.EpF();e.TgZ(0,"div",28),e.NdJ("mouseover",function(){e.CHM(i);const u=e.oxw(2);return e.KtG(u.itemsList.unmarkItem())})("click",function(){e.CHM(i);const u=e.oxw(2);return e.KtG(u.selectTag())}),e.YNc(1,ce,4,2,"ng-template",null,29,e.W1O),e.YNc(3,Se,0,0,"ng-template",14),e.qZA()}if(2&l){const i=e.MAs(2),r=e.oxw(2);e.ekj("ng-option-marked",!r.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",r.tagTemplate||i)("ngTemplateOutletContext",e.VKq(4,b,r.searchTerm))}}function xe(l,a){if(1&l&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&l){const i=e.oxw(3);e.xp6(1),e.Oqu(i.notFoundText)}}function de(l,a){}function se(l,a){if(1&l&&(e.ynx(0),e.YNc(1,xe,2,1,"ng-template",null,31,e.W1O),e.YNc(3,de,0,0,"ng-template",14),e.BQk()),2&l){const i=e.MAs(2),r=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",r.notFoundTemplate||i)("ngTemplateOutletContext",e.VKq(2,b,r.searchTerm))}}function Ne(l,a){if(1&l&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&l){const i=e.oxw(3);e.xp6(1),e.Oqu(i.typeToSearchText)}}function Be(l,a){}function ke(l,a){if(1&l&&(e.ynx(0),e.YNc(1,Ne,2,1,"ng-template",null,33,e.W1O),e.YNc(3,Be,0,0,"ng-template",18),e.BQk()),2&l){const i=e.MAs(2),r=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",r.typeToSearchTemplate||i)}}function L(l,a){if(1&l&&(e.TgZ(0,"div",32),e._uU(1),e.qZA()),2&l){const i=e.oxw(3);e.xp6(1),e.Oqu(i.loadingText)}}function j(l,a){}function Pe(l,a){if(1&l&&(e.ynx(0),e.YNc(1,L,2,1,"ng-template",null,34,e.W1O),e.YNc(3,j,0,0,"ng-template",14),e.BQk()),2&l){const i=e.MAs(2),r=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",r.loadingTextTemplate||i)("ngTemplateOutletContext",e.VKq(2,b,r.searchTerm))}}function _t(l,a){if(1&l){const i=e.EpF();e.TgZ(0,"ng-dropdown-panel",22),e.NdJ("update",function(u){e.CHM(i);const d=e.oxw();return e.KtG(d.viewPortItems=u)})("scroll",function(u){e.CHM(i);const d=e.oxw();return e.KtG(d.scroll.emit(u))})("scrollToEnd",function(u){e.CHM(i);const d=e.oxw();return e.KtG(d.scrollToEnd.emit(u))})("outsideClick",function(){e.CHM(i);const u=e.oxw();return e.KtG(u.close())}),e.ynx(1),e.YNc(2,Me,4,22,"div",23),e.YNc(3,Ie,4,6,"div",24),e.BQk(),e.YNc(4,se,4,4,"ng-container",3),e.YNc(5,ke,4,1,"ng-container",3),e.YNc(6,Pe,4,4,"ng-container",3),e.qZA()}if(2&l){const i=e.oxw();e.ekj("ng-select-multiple",i.multiple),e.Q6J("virtualScroll",i.virtualScroll)("bufferAmount",i.bufferAmount)("appendTo",i.appendTo)("position",i.dropdownPosition)("headerTemplate",i.headerTemplate)("footerTemplate",i.footerTemplate)("filterValue",i.searchTerm)("items",i.itemsList.filteredItems)("markedItem",i.itemsList.markedItem)("ngClass",i.appendTo?i.classes:null)("id",i.dropdownId),e.xp6(2),e.Q6J("ngForOf",i.viewPortItems)("ngForTrackBy",i.trackByOption),e.xp6(1),e.Q6J("ngIf",i.showAddTag),e.xp6(1),e.Q6J("ngIf",i.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",i.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",i.loading&&0===i.itemsList.filteredItems.length)}}const Je=/[&<>"']/g,Le=RegExp(Je.source),Ge={"&":"&","<":"<",">":">",'"':""","'":"'"};function N(l){return null!=l}function X(l){return"object"==typeof l&&N(l)}function oe(l){return l instanceof Function}let vt=(()=>{class l{constructor(i){this.element=i,this.escape=!0}ngOnChanges(i){this.element.nativeElement.innerHTML=this.escape?function he(l){return l&&Le.test(l)?l.replace(Je,a=>Ge[a]):l}(this.ngItemLabel):this.ngItemLabel}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.SBq))},l.\u0275dir=e.lG2({type:l,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]}),l})(),Qe=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-option-tmp",""]]}),l})(),Ct=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-optgroup-tmp",""]]}),l})(),yt=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-label-tmp",""]]}),l})(),Et=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-multi-label-tmp",""]]}),l})(),At=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-header-tmp",""]]}),l})(),Dt=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-footer-tmp",""]]}),l})(),Xe=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-notfound-tmp",""]]}),l})(),Re=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-typetosearch-tmp",""]]}),l})(),et=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-loadingtext-tmp",""]]}),l})(),tt=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-tag-tmp",""]]}),l})(),nt=(()=>{class l{constructor(i){this.template=i}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Rgc))},l.\u0275dir=e.lG2({type:l,selectors:[["","ng-loadingspinner-tmp",""]]}),l})();function re(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const ee={"\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 q(l){return l.replace(/[^\u0000-\u007E]/g,i=>ee[i]||i)}class Q{constructor(a,i){this._ngSelect=a,this._selectionModel=i,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 a=this.selectedItems.length-1;for(;a>=0;a--){const i=this.selectedItems[a];if(!i.disabled)return i}return null}setItems(a){this._items=a.map((i,r)=>this.mapItem(i,r)),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(a){if(a.selected||this.maxItemsSelected)return;const i=this._ngSelect.multiple;i||this.clearSelected(),this._selectionModel.select(a,i,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(a)}unselect(a){a.selected&&(this._selectionModel.unselect(a,this._ngSelect.multiple),this._ngSelect.hideSelected&&N(a.index)&&this._ngSelect.multiple&&this._showSelected(a))}findItem(a){let i;return i=this._ngSelect.compareWith?r=>this._ngSelect.compareWith(r.value,a):this._ngSelect.bindValue?r=>!r.children&&this.resolveNested(r.value,this._ngSelect.bindValue)===a:r=>r.value===a||!r.children&&r.label&&r.label===this.resolveNested(a,this._ngSelect.bindLabel),this._items.find(r=>i(r))}addItem(a){const i=this.mapItem(a,this._items.length);return this._items.push(i),this._filteredItems.push(i),i}clearSelected(a=!1){this._selectionModel.clear(a),this._items.forEach(i=>{i.selected=a&&i.selected&&i.disabled,i.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(a){return a=q(a).toLocaleLowerCase(),this.filteredItems.find(i=>q(i.label).toLocaleLowerCase().substr(0,a.length)===a)}filter(a){if(!a)return void this.resetFilteredItems();this._filteredItems=[],a=this._ngSelect.searchFn?a:q(a).toLocaleLowerCase();const i=this._ngSelect.searchFn||this._defaultSearchFn,r=this._ngSelect.hideSelected;for(const u of Array.from(this._groups.keys())){const d=[];for(const h of this._groups.get(u))r&&(h.parent&&h.parent.selected||h.selected)||i(a,this._ngSelect.searchFn?h.value:h)&&d.push(h);if(d.length>0){const[h]=d.slice(-1);if(h.parent){const S=this._items.find(P=>P===h.parent);this._filteredItems.push(S)}this._filteredItems.push(...d)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(a=>!a.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(a){this._markedIndex=this._filteredItems.indexOf(a)}markSelectedOrDefault(a){if(0===this._filteredItems.length)return;const i=this._getLastMarkedIndex();this._markedIndex=i>-1?i:a?this.filteredItems.findIndex(r=>!r.disabled):-1}resolveNested(a,i){if(!X(a))return a;if(-1===i.indexOf("."))return a[i];{const r=i.split(".");let u=a;for(let d=0,h=r.length;d<h;++d){if(null==u)return null;u=u[r[d]]}return u}}mapItem(a,i){const r=N(a.$ngOptionLabel)?a.$ngOptionLabel:this.resolveNested(a,this._ngSelect.bindLabel),u=N(a.$ngOptionValue)?a.$ngOptionValue:a;return{index:i,label:N(r)?r.toString():"",value:u,disabled:a.disabled,htmlId:`${this._ngSelect.dropdownId}-${i}`}}mapSelectedItems(){const a=this._ngSelect.multiple;for(const i of this.selectedItems){const r=this._ngSelect.bindValue?this.resolveNested(i.value,this._ngSelect.bindValue):i.value,u=N(r)?this.findItem(r):null;this._selectionModel.unselect(i,a),this._selectionModel.select(u||i,a,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(i=>-1===this.selectedItems.indexOf(i)))}_showSelected(a){if(this._filteredItems.push(a),a.parent){const i=a.parent;this._filteredItems.find(u=>u===i)||this._filteredItems.push(i)}else if(a.children)for(const i of a.children)i.selected=!1,this._filteredItems.push(i);this._filteredItems=[...this._filteredItems.sort((i,r)=>i.index-r.index)]}_hideSelected(a){this._filteredItems=this._filteredItems.filter(i=>i!==a),a.parent?a.parent.children.every(r=>r.selected)&&(this._filteredItems=this._filteredItems.filter(r=>r!==a.parent)):a.children&&(this._filteredItems=this.filteredItems.filter(i=>i.parent!==a))}_defaultSearchFn(a,i){return q(i.label).toLocaleLowerCase().indexOf(a)>-1}_getNextItemIndex(a){return a>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(a){0===this._filteredItems.length||this._filteredItems.every(i=>i.disabled)||(this._markedIndex=this._getNextItemIndex(a),this.markedItem.disabled&&this._stepToItem(a))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const a=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&a<0?-1:Math.max(this.markedIndex,a)}_groupBy(a,i){const r=new Map;if(0===a.length)return r;if(Array.isArray(a[0].value[i])){for(const h of a){const S=(h.value[i]||[]).map((P,B)=>this.mapItem(P,B));r.set(h,S)}return r}const u=oe(this._ngSelect.groupBy),d=h=>{const S=u?i(h.value):h.value[i];return N(S)?S:void 0};for(const h of a){const S=d(h),P=r.get(S);P?P.push(h):r.set(S,[h])}return r}_flatten(a){const i=oe(this._ngSelect.groupBy),r=[];for(const u of Array.from(a.keys())){let d=r.length;if(void 0===u){const Y=a.get(void 0)||[];r.push(...Y.map(U=>(U.index=d++,U)));continue}const h=X(u),S={label:h?"":String(u),children:void 0,parent:null,index:d++,disabled:!this._ngSelect.selectableGroup,htmlId:re()},P=i?this._ngSelect.bindLabel:this._ngSelect.groupBy,B=this._ngSelect.groupValue||(()=>h?u.value:{[P]:u}),K=a.get(u).map(Y=>(Y.parent=S,Y.children=void 0,Y.index=d++,Y));S.children=K,S.value=B(u,K.map(Y=>Y.value)),r.push(S),r.push(...K)}return r}}var R=(()=>{return(l=R||(R={}))[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Esc=27]="Esc",l[l.Space=32]="Space",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowDown=40]="ArrowDown",l[l.Backspace=8]="Backspace",R;var l})();let le=(()=>{class l{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,r,u){const d=this._dimensions,h=d.itemHeight*r,P=Math.max(0,i)/h*r;let B=Math.min(r,Math.ceil(P)+(d.itemsPerViewport+1));const Y=Math.max(0,B-d.itemsPerViewport);let U=Math.min(Y,Math.floor(P)),ae=d.itemHeight*Math.ceil(U)-d.itemHeight*Math.min(U,u);return ae=isNaN(ae)?0:ae,U=isNaN(U)?-1:U,B=isNaN(B)?-1:B,U-=u,U=Math.max(0,U),B+=u,B=Math.min(r,B),{topPadding:ae,scrollHeight:h,start:U,end:B}}setDimensions(i,r){const u=Math.max(1,Math.floor(r/i));this._dimensions={itemHeight:i,panelHeight:r,itemsPerViewport:u}}getScrollTo(i,r,u){const{panelHeight:d}=this.dimensions,h=i+r,P=u+d;return d>=h&&u===i?null:h>P?u+h-P:i<=u?i:null}}return l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac}),l})();const He=["top","right","bottom","left"],me=typeof requestAnimationFrame<"u"?m.Z:T.E;let Ue=(()=>{class l{constructor(i,r,u,d,h){this._renderer=i,this._zone=r,this._panelService=u,this._document=h,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new D.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=d.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:i,panelHeight:r}=this._panelService.dimensions,u=this.markedItem.index*i;return r>u?0:u}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(i){if(i.items){const r=i.items;this._onItemsChange(r.currentValue,r.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(i,r=!1){if(!i)return;const u=this.items.indexOf(i);if(u<0||u>=this.itemsLength)return;let d;if(this.virtualScroll){const h=this._panelService.dimensions.itemHeight;d=this._panelService.getScrollTo(u*h,h,this._lastScrollPosition)}else{const h=this._dropdown.querySelector(`#${i.htmlId}`);d=this._panelService.getScrollTo(h.offsetTop,h.clientHeight,r?h.offsetTop:this._lastScrollPosition)}N(d)&&(this._scrollablePanel.scrollTop=d)}scrollToTag(){const i=this._scrollablePanel;i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),He.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){He.forEach(u=>{const d=`ng-select-${u}`;this._renderer.removeClass(this._dropdown,d),this._renderer.removeClass(this._select,d)});const r=`ng-select-${i}`;this._renderer.addClass(this._dropdown,r),this._renderer.addClass(this._select,r)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,w.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,V.R)(this._destroy$),(0,x.e)(0,me)).subscribe(i=>{const r=i.path||i.composedPath&&i.composedPath();this._onContentScrolled(r&&0!==r.length?r[0].scrollTop:i.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,I.T)((0,w.R)(this._document,"touchstart",{capture:!0}),(0,w.R)(this._document,"mousedown",{capture:!0})).pipe((0,V.R)(this._destroy$)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;const r=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&r&&r[0]&&this._select.contains(r[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(i,r){this.items=i||[],this._scrollToEndFired=!1,this.itemsLength=i.length,this.virtualScroll?this._updateItemsRange(r):(this._setVirtualHeight(),this._updateItems(r))}_updateItems(i){this.update.emit(this.items),!1!==i&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding.style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;const r=this._panelService.calculateItems(i=i||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(r.scrollHeight),this._contentPanel.style.transform=`translateY(${r.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(r.start,r.end)),this.scroll.emit({start:r.start,end:r.end})}),N(i)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[i]=this.items;return this.update.emit([i]),Promise.resolve().then(()=>{const u=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;return this._virtualPadding.style.height=u*this.itemsLength+"px",this._panelService.setDimensions(u,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(i){this._scrollToEndFired||0===i||i+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){if("auto"!==this.position)return this.position;const r=this._select.getBoundingClientRect(),u=document.documentElement.scrollTop||document.body.scrollTop;return r.top+window.pageYOffset+r.height+i.getBoundingClientRect().height>u+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(){const i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect();this._dropdown.style.left=i.left-r.left+"px",this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){const i=this._select.getBoundingClientRect(),r=this._parent.getBoundingClientRect(),u=i.height;"top"===this._currentPosition?(this._dropdown.style.bottom=r.bottom-i.bottom+u+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=i.top-r.top+u+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,w.R)(this._dropdown,"mousedown").pipe((0,V.R)(this._destroy$)).subscribe(i=>{"INPUT"!==i.target.tagName&&i.preventDefault()})})}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(le),e.Y36(e.SBq),e.Y36(C.K0,8))},l.\u0275cmp=e.Xpm({type:l,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,r){if(1&i&&(e.Gf(F,7,e.SBq),e.Gf(g,7,e.SBq),e.Gf(E,7,e.SBq)),2&i){let u;e.iGM(u=e.CRH())&&(r.contentElementRef=u.first),e.iGM(u=e.CRH())&&(r.scrollElementRef=u.first),e.iGM(u=e.CRH())&&(r.paddingElementRef=u.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:$,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(i,r){1&i&&(e.F$t(),e.YNc(0,H,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,W,2,4,"div",5)),2&i&&(e.Q6J("ngIf",r.headerTemplate),e.xp6(3),e.ekj("total-padding",r.virtualScroll),e.xp6(2),e.ekj("scrollable-content",r.virtualScroll&&r.items.length),e.xp6(3),e.Q6J("ngIf",r.footerTemplate))},dependencies:[C.O5,C.tP],encapsulation:2,changeDetection:0}),l})(),te=(()=>{class l{constructor(i){this.elementRef=i,this.stateChange$=new D.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(i){this._disabled=this._isDisabled(i)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.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()}_isDisabled(i){return null!=i&&"false"!=`${i}`}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(e.SBq))},l.\u0275cmp=e.Xpm({type:l,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:$,decls:1,vars:0,template:function(i,r){1&i&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),l})(),Ye=(()=>{class l{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"}}return l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),We=(()=>{class l{warn(i){console.warn(i)}}return l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();const ge=new e.OlP("ng-select-selection-model");let fe=(()=>{class l{constructor(i,r,u,d,h,S,P){this.classes=i,this.autoFocus=r,this.config=u,this._cd=S,this._console=P,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=B=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=re(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new D.x,this._keyPress$=new D.x,this._onChange=B=>{},this._onTouched=()=>{},this.clearItem=B=>{const K=this.selectedItems.find(Y=>Y.value===B);this.unselect(K)},this.trackByOption=(B,K)=>this.trackByFn?this.trackByFn(K.value):K,this._mergeGlobalConfig(u),this.itemsList=new Q(this,d()),this.element=h.nativeElement}get items(){return this._items}set items(i){null===i&&(i=[]),this._itemsAreUsed=!0,this._items=i}get compareWith(){return this._compareWith}set compareWith(i){if(null!=i&&!oe(i))throw Error("`compareWith` must be a function.");this._compareWith=i}get clearSearchOnAdd(){return N(this._clearSearchOnAdd)?this._clearSearchOnAdd:N(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}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}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&this._setItems(i.items.currentValue||[]),i.isOpen&&(this._manualOpen=N(i.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),N(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(i){if(R[i.which]){if(!1===this.keyDownFn(i))return;this.handleKeyCode(i)}else i.key&&1===i.key.length&&this._keyPress$.next(i.key.toLocaleLowerCase())}handleKeyCode(i){switch(i.which){case R.ArrowDown:this._handleArrowDown(i);break;case R.ArrowUp:this._handleArrowUp(i);break;case R.Space:this._handleSpace(i);break;case R.Enter:this._handleEnter(i);break;case R.Tab:this._handleTab(i);break;case R.Esc:this.close(),i.preventDefault();break;case R.Backspace:this._handleBackspace()}}handleMousedown(i){const r=i.target;"INPUT"!==r.tagName&&i.preventDefault(),r.classList.contains("ng-clear-wrapper")?this.handleClearClick():r.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():r.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(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled=i,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(i){!i||i.disabled||this.disabled||(this.multiple&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(i.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(i){i&&(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i))}selectTag(){let i;i=oe(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const r=u=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(u,null):this.itemsList.addItem(u);!function pe(l){return l instanceof Promise}(i)?i&&this.select(r(i)):i.then(u=>this.select(r(u))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const i=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(r=>r.label.toLowerCase()===i)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(r=>r.label.toLowerCase()===i))&&!this.loading}showNoItemsFound(){const i=0===this.itemsList.filteredItems.length;return(i&&!this._isTypeahead&&!this.loading||i&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=i,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(i),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(r=>r.value)}),this.open())}onInputFocus(i){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this.focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const i=this.selectedItems&&this.selectedItems[0];this.searchTerm=i&&i.label||null}_setItems(i){const r=i[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=N(r)?!X(r):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&N(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const i=u=>{this.items=u.map(d=>({$ngOptionValue:d.value,$ngOptionLabel:d.elementRef.nativeElement.innerHTML,disabled:d.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},r=()=>{const u=(0,I.T)(this.ngOptions.changes,this._destroy$);(0,I.T)(...this.ngOptions.map(d=>d.stateChange$)).pipe((0,V.R)(u)).subscribe(d=>{const h=this.itemsList.findItem(d.value);h.disabled=d.disabled,h.label=d.label||h.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,f.O)(this.ngOptions),(0,V.R)(this._destroy$)).subscribe(u=>{this.bindLabel=this._defaultLabel,i(u),r()})}_isValidWriteValue(i){if(!N(i)||this.multiple&&""===i||Array.isArray(i)&&0===i.length)return!1;const r=u=>!(!N(this.compareWith)&&X(u)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(u)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(i)?i.every(u=>r(u)):(this._console.warn("Multiple select ngModel should be array."),!1):r(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;const r=u=>{let d=this.itemsList.findItem(u);if(d)this.itemsList.select(d);else{const h=X(u);h||!h&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(u,null)):this.bindValue&&(d={[this.bindLabel]:null,[this.bindValue]:u},this.itemsList.select(this.itemsList.mapItem(d,null)))}};this.multiple?i.forEach(u=>r(u)):r(i)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,V.R)(this._destroy$),(0,A.b)(i=>this._pressedKeys.push(i)),(0,O.b)(200),(0,v.h)(()=>this._pressedKeys.length>0),(0,M.U)(()=>this._pressedKeys.join(""))).subscribe(i=>{const r=this.itemsList.findByLabel(i);r&&(this.isOpen?(this.itemsList.markItem(r),this._scrollToMarked(),this._cd.markForCheck()):this.select(r)),this._pressedKeys=[]})}_setInputAttributes(){const i=this.searchInput.nativeElement,r={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const u of Object.keys(r))i.setAttribute(u,r[u])}_updateNgModel(){const i=[];for(const u of this.selectedItems)if(this.bindValue){let d=null;d=u.children?u.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(u.value,this.bindValue),i.push(d)}else i.push(u.value);const r=this.selectedItems.map(u=>u.value);this.multiple?(this._onChange(i),this.changeEvent.emit(r)):(this._onChange(N(i[0])?i[0]:null),this.changeEvent.emit(r[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this.searchTerm=i,this._isTypeahead&&this.typeahead.next(i)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(i){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close())}_handleEnter(i){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}i.preventDefault()}_handleSpace(i){this.isOpen||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){const r=this.itemsList.markedIndex+i;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(r<0||r===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(){const i=this.searchTerm&&this.searchTerm.trim();return i&&i.length>=this.minTermLength}_mergeGlobalConfig(i){this.placeholder=this.placeholder||i.placeholder,this.notFoundText=this.notFoundText||i.notFoundText,this.typeToSearchText=this.typeToSearchText||i.typeToSearchText,this.addTagText=this.addTagText||i.addTagText,this.loadingText=this.loadingText||i.loadingText,this.clearAllText=this.clearAllText||i.clearAllText,this.virtualScroll=N(this.virtualScroll)?this.virtualScroll:!!N(i.disableVirtualScroll)&&!i.disableVirtualScroll,this.openOnEnter=N(this.openOnEnter)?this.openOnEnter:i.openOnEnter,this.appendTo=this.appendTo||i.appendTo,this.bindValue=this.bindValue||i.bindValue,this.bindLabel=this.bindLabel||i.bindLabel,this.appearance=this.appearance||i.appearance}}return l.\u0275fac=function(i){return new(i||l)(e.$8M("class"),e.$8M("autofocus"),e.Y36(Ye),e.Y36(ge),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(We))},l.\u0275cmp=e.Xpm({type:l,selectors:[["ng-select"]],contentQueries:function(i,r,u){if(1&i&&(e.Suo(u,Qe,5,e.Rgc),e.Suo(u,Ct,5,e.Rgc),e.Suo(u,yt,5,e.Rgc),e.Suo(u,Et,5,e.Rgc),e.Suo(u,At,5,e.Rgc),e.Suo(u,Dt,5,e.Rgc),e.Suo(u,Xe,5,e.Rgc),e.Suo(u,Re,5,e.Rgc),e.Suo(u,et,5,e.Rgc),e.Suo(u,tt,5,e.Rgc),e.Suo(u,nt,5,e.Rgc),e.Suo(u,te,5)),2&i){let d;e.iGM(d=e.CRH())&&(r.optionTemplate=d.first),e.iGM(d=e.CRH())&&(r.optgroupTemplate=d.first),e.iGM(d=e.CRH())&&(r.labelTemplate=d.first),e.iGM(d=e.CRH())&&(r.multiLabelTemplate=d.first),e.iGM(d=e.CRH())&&(r.headerTemplate=d.first),e.iGM(d=e.CRH())&&(r.footerTemplate=d.first),e.iGM(d=e.CRH())&&(r.notFoundTemplate=d.first),e.iGM(d=e.CRH())&&(r.typeToSearchTemplate=d.first),e.iGM(d=e.CRH())&&(r.loadingTextTemplate=d.first),e.iGM(d=e.CRH())&&(r.tagTemplate=d.first),e.iGM(d=e.CRH())&&(r.loadingSpinnerTemplate=d.first),e.iGM(d=e.CRH())&&(r.ngOptions=d)}},viewQuery:function(i,r){if(1&i&&(e.Gf(Ue,5),e.Gf(J,7)),2&i){let u;e.iGM(u=e.CRH())&&(r.dropdownPanel=u.first),e.iGM(u=e.CRH())&&(r.searchInput=u.first)}},hostVars:20,hostBindings:function(i,r){1&i&&e.NdJ("keydown",function(d){return r.handleKeyDown(d)}),2&i&&e.ekj("ng-select-typeahead",r.typeahead)("ng-select-multiple",r.multiple)("ng-select-taggable",r.addTag)("ng-select-searchable",r.searchable)("ng-select-clearable",r.clearable)("ng-select-opened",r.isOpen)("ng-select",r.useDefaultClass)("ng-select-disabled",r.disabled)("ng-select-filtered",r.filtered)("ng-select-single",r.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:y.JU,useExisting:(0,e.Gpc)(()=>l),multi:!0},le]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(i,r){if(1&i){const u=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(h){return r.handleMousedown(h)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,Ae,2,2,"ng-container",3),e.YNc(5,be,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(u);const h=e.MAs(8);return e.KtG(r.filter(h.value))})("compositionstart",function(){return r.onCompositionStart()})("compositionend",function(){e.CHM(u);const h=e.MAs(8);return e.KtG(r.onCompositionEnd(h.value))})("focus",function(h){return r.onInputFocus(h)})("blur",function(h){return r.onInputBlur(h)})("change",function(h){return h.stopPropagation()}),e.qZA()()(),e.YNc(9,Ve,4,1,"ng-container",3),e.YNc(10,Ze,3,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,_t,7,19,"ng-dropdown-panel",10)}2&i&&(e.ekj("ng-appearance-outline","outline"===r.appearance)("ng-has-value",r.hasValue),e.xp6(3),e.Oqu(r.placeholder),e.xp6(1),e.Q6J("ngIf",(!r.multiLabelTemplate||!r.multiple)&&r.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",r.multiple&&r.multiLabelTemplate&&r.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",r.isOpen)("aria-owns",r.isOpen?r.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!r.searchable||r.itemsList.maxItemsSelected)("disabled",r.disabled)("value",r.searchTerm?r.searchTerm:""),e.uIk("id",r.labelForId)("tabindex",r.tabIndex)("aria-activedescendant",r.isOpen?null==r.itemsList||null==r.itemsList.markedItem?null:r.itemsList.markedItem.htmlId:null)("aria-controls",r.isOpen?r.dropdownId:null),e.xp6(2),e.Q6J("ngIf",r.loading),e.xp6(1),e.Q6J("ngIf",r.showClear()),e.xp6(3),e.Q6J("ngIf",r.isOpen))},dependencies:[C.mk,C.sg,C.O5,C.tP,Ue,vt],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{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}@keyframes load8{0%{transform:rotate(0)}to{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;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}\n'],encapsulation:2,changeDetection:0}),l})();function bt(){return new Tt}class Tt{constructor(){this._selected=[]}get value(){return this._selected}select(a,i,r){if(a.selected=!0,(!a.children||!i&&r)&&this._selected.push(a),i)if(a.parent){const u=a.parent.children.length,d=a.parent.children.filter(h=>h.selected).length;a.parent.selected=u===d}else a.children&&(this._setChildrenSelectedState(a.children,!0),this._removeChildren(a),this._selected=r&&this._activeChildren(a)?[...this._selected.filter(u=>u.parent!==a),a]:[...this._selected,...a.children.filter(u=>!u.disabled)])}unselect(a,i){if(this._selected=this._selected.filter(r=>r!==a),a.selected=!1,i)if(a.parent&&a.parent.selected){const r=a.parent.children;this._removeParent(a.parent),this._removeChildren(a.parent),this._selected.push(...r.filter(u=>u!==a&&!u.disabled)),a.parent.selected=!1}else a.children&&(this._setChildrenSelectedState(a.children,!1),this._removeChildren(a))}clear(a){this._selected=a?this._selected.filter(i=>i.disabled):[]}_setChildrenSelectedState(a,i){for(const r of a)r.disabled||(r.selected=i)}_removeChildren(a){this._selected=[...this._selected.filter(i=>i.parent!==a),...a.children.filter(i=>i.parent===a&&i.disabled&&i.selected)]}_removeParent(a){this._selected=this._selected.filter(i=>i!==a)}_activeChildren(a){return a.children.every(i=>!i.disabled||i.selected)}}let it=(()=>{class l{}return l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({providers:[{provide:ge,useValue:bt}],imports:[C.ez]}),l})()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[592],{1290:(g,l,i)=>{i.d(l,{k:()=>r});class r{}},6732:(g,l,i)=>{i.d(l,{y:()=>o});var r=i(6895),t=i(4650);function p(a,n){if(1&a){const e=t.EpF();t.TgZ(0,"span",10),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return t.KtG(u.getTotal())}),t.TgZ(1,"i",11),t._uU(2,"?"),t.qZA()()}}function c(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.paginationTotal))}}class o{constructor(){this.get=new t.vpe,this.change=new t.vpe,this.next=new t.vpe,this.previous=new t.vpe,this.total=new t.vpe,this.hasClicked=!1}changePage(n){this.filter.PageNumber=n.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-custom-paginator"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[t.jDz],decls:16,vars:11,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3),t.ALo(4,"number"),t.ALo(5,"number"),t.YNc(6,p,3,0,"span",3),t.YNc(7,c,3,3,"span",4),t._uU(8),t.qZA()(),t.TgZ(9,"div",5)(10,"a",6),t.NdJ("click",function(){return e.PreviousPage()}),t._UZ(11,"i",7),t._uU(12," Prev"),t.qZA(),t.TgZ(13,"a",8),t.NdJ("click",function(){return e.NextPage()}),t._UZ(14,"i",9),t._uU(15," Next"),t.qZA()()()),2&n&&(t.xp6(3),t.AsE(" Showing ",t.lcZ(4,7,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",t.lcZ(5,9,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),t.xp6(3),t.Q6J("ngIf",!e.hasClicked),t.xp6(1),t.Q6J("ngIf",e.hasClicked),t.xp6(1),t.hij(" records ~ ",e.filter.PageNumber," Page "),t.xp6(2),t.Q6J("hidden",1==e.filter.PageNumber),t.xp6(3),t.Q6J("hidden",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[r.ez,r.O5,r.JJ]})},2594:(g,l,i)=>{i.d(l,{n:()=>o});var r=i(6895),t=i(4650);function p(a,n){if(1&a){const e=t.EpF();t.TgZ(0,"span",10),t.NdJ("click",function(){t.CHM(e);const u=t.oxw();return u.getTotal(),t.KtG(u.hasClicked=!0)}),t.TgZ(1,"i",11),t._uU(2,"?"),t.qZA()()}}function c(a,n){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,e.paginationTotal))}}class o{constructor(){this.get=new t.vpe,this.change=new t.vpe,this.next=new t.vpe,this.previous=new t.vpe,this.total=new t.vpe,this.hasClicked=!1}changePage(n){this.filter.PageNumber=n.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}}o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[t.jDz],decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"disabled","click"],[1,"fas","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"disabled","click"],[1,"fas","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3),t.ALo(4,"number"),t.ALo(5,"number"),t.YNc(6,p,3,0,"span",3),t.YNc(7,c,3,3,"span",4),t.qZA()(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.PreviousPage()}),t._UZ(10,"i",7),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return e.NextPage()}),t._UZ(12,"i",9),t.qZA()()()),2&n&&(t.xp6(3),t.AsE(" Showing ",t.lcZ(4,6,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",t.lcZ(5,8,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),t.xp6(3),t.Q6J("ngIf",!e.hasClicked),t.xp6(1),t.Q6J("ngIf",e.hasClicked),t.xp6(2),t.Q6J("disabled",1==e.filter.PageNumber),t.xp6(2),t.Q6J("disabled",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[r.ez,r.O5,r.JJ]})}}]);
|