marketplacepos 2.4.9 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/117.4367f8afe2698e0a.js +1 -0
- package/Marketplace/{162.380fb02c77fa6ec0.js → 162.1e1c36c1ada2acc3.js} +1 -1
- package/Marketplace/{174.d9e54ac6a8d68fed.js → 174.fb88c636b62288f3.js} +1 -1
- package/Marketplace/{180.bfed0f08b5cdbbde.js → 180.dbbf0c10ee5511ad.js} +1 -1
- package/Marketplace/{25.5e00713dbd080b64.js → 25.6dd4d4cee1f4f83c.js} +1 -1
- package/Marketplace/291.304a30789207d7b4.js +1 -0
- package/Marketplace/{360.4fa1f449dc516500.js → 360.9a9cbdee19ee7208.js} +1 -1
- package/Marketplace/397.5ae6b1775c69cdc2.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +64 -1
- package/Marketplace/{463.7140b32660c473a4.js → 463.20f700792417e3ee.js} +1 -1
- package/Marketplace/{512.96a1a3c8c51a8727.js → 512.945d0618102b5e2d.js} +1 -1
- package/Marketplace/545.4cff8354a6569325.js +1 -0
- package/Marketplace/585.41532f91419a22f2.js +1 -0
- package/Marketplace/{616.fb179a9605c3e98c.js → 616.f27780a637620732.js} +1 -1
- package/Marketplace/663.dc31188909c42de4.js +1 -0
- package/Marketplace/{716.65e3e9a36c3e8be6.js → 716.8753639575454fc2.js} +1 -1
- package/Marketplace/{717.c3d108362a36e597.js → 717.de25d206cb2de0f8.js} +1 -1
- package/Marketplace/{739.82b92600f9519019.js → 739.8a763e7ab64fe945.js} +1 -1
- package/Marketplace/{832.6082371d3ebb95a0.js → 832.886dc486c5a4ff32.js} +1 -1
- package/Marketplace/{874.472e0cd7c75127ca.js → 874.89ed6b644dee8914.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.82c99b5c79f1fd9c.js +1 -0
- package/Marketplace/runtime.de37a7d67f4eed9c.js +1 -0
- package/package.json +1 -1
- package/Marketplace/32.9c83cc1dfc19e37d.js +0 -1
- package/Marketplace/369.16ffb7833f5f392e.js +0 -1
- package/Marketplace/397.5bc29c874039d3c8.js +0 -1
- package/Marketplace/585.9e916b668a91cc94.js +0 -1
- package/Marketplace/6.fc79ecc0c0a33462.js +0 -1
- package/Marketplace/main.195197d9958646d1.js +0 -1
- package/Marketplace/runtime.a82898ac8aec5312.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[291],{3154:(N,O,l)=>{l.d(O,{g:()=>D});var o=(()=>{return(C=o||(o={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",C.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",C.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",C.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",C.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",C.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",o;var C})(),h=l(9694);let D=(()=>{class C{static IsNotEmpty(d){return""!=d&&d!=C.GuidEMpty&&null!=d&&null!=d}static IsEmpty(d){return""==d||null==d||null==d||d==C.GuidEMpty}static getChannelLogoByTypeId(d){let p;switch(d){case h.x.Tokopedia:p=o.TOKOPEDIA;break;case h.x.ShopeeV2:p=o.SHOOPE;break;case h.x.WooCommerce:p=o.WOOCOMMERCE;break;case h.x.Lazada:p=o.LAZADA;break;case h.x.Tiktok:p=o.TIKTOK;break;case h.x.KalCare:p=o.KALCARE}return p}static getDaysDiff(d,p){return(p.getTime()-d.getTime())/864e5}static addDays(d,p){const c=new Date(Number(d));return c.setDate(d.getDate()-p),c}static isValidDate(d){return d instanceof Date&&!isNaN(d)}static getImageInfo(d){return new Promise((p,c)=>{let m=new Image;m.src=d,m.decode().then(()=>{p({img:d,height:m.height,width:m.width})}).catch(()=>{c(new Error(`Image load error for ${d}`))})})}static formatTitleForFromDate(d,p){let c="dd MMM";return d.getMonth()==p.getMonth()&&(c="dd"),d.getFullYear()!=p.getFullYear()&&(c="dd MMM yyyy"),c}}return C.GuidEMpty="00000000-0000-0000-0000-000000000000",C.MinDate="0001-01-01T00:00:00",C})()},9694:(N,O,l)=>{l.d(O,{x:()=>o});var o=(()=>{return(h=o||(o={}))[h.Shopee=0]="Shopee",h[h.Tokopedia=1]="Tokopedia",h[h.WooCommerce=2]="WooCommerce",h[h.None=3]="None",h[h.KalCare=4]="KalCare",h[h.ShopeeV2=5]="ShopeeV2",h[h.Tiktok=6]="Tiktok",h[h.Lazada=7]="Lazada",o;var h})()},4128:(N,O,l)=>{l.d(O,{D:()=>c});var o=l(8306),h=l(4742),D=l(8421),C=l(3269),E=l(5403),d=l(3268),p=l(1810);function c(...m){const s=(0,C.jO)(m),{args:g,keys:y}=(0,h.D)(m),A=new o.y(M=>{const{length:v}=g;if(!v)return void M.complete();const _=new Array(v);let a=v,f=v;for(let V=0;V<v;V++){let w=!1;(0,D.Xf)(g[V]).subscribe((0,E.x)(M,S=>{w||(w=!0,f--),_[V]=S},()=>a--,void 0,()=>{(!a||!w)&&(f||M.next(y?(0,p.n)(y,_):_),M.complete())}))}});return s?A.pipe((0,d.Z)(s)):A}},4968:(N,O,l)=>{l.d(O,{R:()=>s});var o=l(8421),h=l(8306),D=l(5577),C=l(1144),E=l(576),d=l(3268);const p=["addListener","removeListener"],c=["addEventListener","removeEventListener"],m=["on","off"];function s(v,_,a,f){if((0,E.m)(a)&&(f=a,a=void 0),f)return s(v,_,a).pipe((0,d.Z)(f));const[V,w]=function M(v){return(0,E.m)(v.addEventListener)&&(0,E.m)(v.removeEventListener)}(v)?c.map(S=>I=>v[S](_,I,a)):function y(v){return(0,E.m)(v.addListener)&&(0,E.m)(v.removeListener)}(v)?p.map(g(v,_)):function A(v){return(0,E.m)(v.on)&&(0,E.m)(v.off)}(v)?m.map(g(v,_)):[];if(!V&&(0,C.z)(v))return(0,D.z)(S=>s(S,_,a))((0,o.Xf)(v));if(!V)throw new TypeError("Invalid event target");return new h.y(S=>{const I=(...P)=>S.next(1<P.length?P:P[0]);return V(I),()=>w(I)})}function g(v,_){return a=>f=>v[a](_,f)}},3601:(N,O,l)=>{l.d(O,{e:()=>p});var o=l(4986),h=l(4482),D=l(8421),C=l(5403),d=l(2805);function p(c,m=o.z){return function E(c){return(0,h.e)((m,s)=>{let g=!1,y=null,A=null,M=!1;const v=()=>{if(A?.unsubscribe(),A=null,g){g=!1;const a=y;y=null,s.next(a)}M&&s.complete()},_=()=>{A=null,M&&s.complete()};m.subscribe((0,C.x)(s,a=>{g=!0,y=a,A||(0,D.Xf)(c(a)).subscribe(A=(0,C.x)(s,v,_))},()=>{M=!0,(!g||!A||A.closed)&&s.complete()}))})}(()=>(0,d.H)(c,m))}},8372:(N,O,l)=>{l.d(O,{b:()=>C});var o=l(4986),h=l(4482),D=l(5403);function C(E,d=o.z){return(0,h.e)((p,c)=>{let m=null,s=null,g=null;const y=()=>{if(m){m.unsubscribe(),m=null;const M=s;s=null,c.next(M)}};function A(){const M=g+E,v=d.now();if(v<M)return m=this.schedule(void 0,M-v),void c.add(m);y()}p.subscribe((0,D.x)(c,M=>{s=M,g=d.now(),m||(m=d.schedule(A,E),c.add(m))},()=>{y(),c.complete()},void 0,()=>{s=m=null}))})}},2722:(N,O,l)=>{l.d(O,{R:()=>E});var o=l(4482),h=l(5403),D=l(8421),C=l(5032);function E(d){return(0,o.e)((p,c)=>{(0,D.Xf)(d).subscribe((0,h.x)(c,()=>c.complete(),C.Z)),!c.closed&&p.subscribe(c)})}},6406:(N,O,l)=>{l.d(O,{Z:()=>p});var o=l(4408),h=l(727);const D={schedule(m){let s=requestAnimationFrame,g=cancelAnimationFrame;const{delegate:y}=D;y&&(s=y.requestAnimationFrame,g=y.cancelAnimationFrame);const A=s(M=>{g=void 0,m(M)});return new h.w0(()=>g?.(A))},requestAnimationFrame(...m){const{delegate:s}=D;return(s?.requestAnimationFrame||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:s}=D;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...m)},delegate:void 0};var E=l(7565);const p=new class d extends E.v{flush(s){this._active=!0;const g=this._scheduled;this._scheduled=void 0;const{actions:y}=this;let A;s=s||y.shift();do{if(A=s.execute(s.state,s.delay))break}while((s=y[0])&&s.id===g&&y.shift());if(this._active=!1,A){for(;(s=y[0])&&s.id===g&&y.shift();)s.unsubscribe();throw A}}}(class C extends o.o{constructor(s,g){super(s,g),this.scheduler=s,this.work=g}requestAsyncId(s,g,y=0){return null!==y&&y>0?super.requestAsyncId(s,g,y):(s.actions.push(this),s._scheduled||(s._scheduled=D.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,g,y=0){if(null!=y&&y>0||null==y&&this.delay>0)return super.recycleAsyncId(s,g,y);s.actions.some(A=>A.id===g)||(D.cancelAnimationFrame(g),s._scheduled=void 0)}})},3101:(N,O,l)=>{l.d(O,{E:()=>M});var o=l(4408);let D,h=1;const C={};function E(_){return _ in C&&(delete C[_],!0)}const d={setImmediate(_){const a=h++;return C[a]=!0,D||(D=Promise.resolve()),D.then(()=>E(a)&&_()),a},clearImmediate(_){E(_)}},{setImmediate:c,clearImmediate:m}=d,s={setImmediate(..._){const{delegate:a}=s;return(a?.setImmediate||c)(..._)},clearImmediate(_){const{delegate:a}=s;return(a?.clearImmediate||m)(_)},delegate:void 0};var y=l(7565);const M=new class A extends y.v{flush(a){this._active=!0;const f=this._scheduled;this._scheduled=void 0;const{actions:V}=this;let w;a=a||V.shift();do{if(w=a.execute(a.state,a.delay))break}while((a=V[0])&&a.id===f&&V.shift());if(this._active=!1,w){for(;(a=V[0])&&a.id===f&&V.shift();)a.unsubscribe();throw w}}}(class g extends o.o{constructor(a,f){super(a,f),this.scheduler=a,this.work=f}requestAsyncId(a,f,V=0){return null!==V&&V>0?super.requestAsyncId(a,f,V):(a.actions.push(this),a._scheduled||(a._scheduled=s.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,f,V=0){if(null!=V&&V>0||null==V&&this.delay>0)return super.recycleAsyncId(a,f,V);a.actions.some(w=>w.id===f)||(s.clearImmediate(f),a._scheduled=void 0)}})},4006:(N,O,l)=>{l.d(O,{Cf:()=>f,EJ:()=>ee,F:()=>Z,Fj:()=>M,JJ:()=>$e,JL:()=>qe,JU:()=>c,Kr:()=>yt,NI:()=>Q,On:()=>me,Q7:()=>te,UX:()=>gn,Wl:()=>s,YN:()=>gt,Zs:()=>Ae,_Y:()=>ut,a5:()=>B,c5:()=>De,gN:()=>F,kI:()=>S,oH:()=>ye,on:()=>Me,p4:()=>jt,sg:()=>X,u5:()=>mn,wV:()=>ge});var o=l(4650),h=l(6895),D=l(8996),C=l(4128),E=l(4004);let d=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(o.Qsj),o.Y36(o.SBq))},n.\u0275dir=o.lG2({type:n}),n})(),p=(()=>{class n extends d{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,features:[o.qOj]}),n})();const c=new o.OlP("NgValueAccessor"),m={provide:c,useExisting:(0,o.Gpc)(()=>s),multi:!0};let s=(()=>{class n extends p{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&o.NdJ("change",function(u){return r.onChange(u.target.checked)})("blur",function(){return r.onTouched()})},features:[o._Bn([m]),o.qOj]}),n})();const g={provide:c,useExisting:(0,o.Gpc)(()=>M),multi:!0},A=new o.OlP("CompositionEventMode");let M=(()=>{class n extends d{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function y(){const n=(0,h.q)()?(0,h.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(A,8))},n.\u0275dir=o.lG2({type:n,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(e,r){1&e&&o.NdJ("input",function(u){return r._handleInput(u.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(u){return r._compositionEnd(u.target.value)})},features:[o._Bn([g]),o.qOj]}),n})();function _(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function a(n){return null!=n&&"number"==typeof n.length}const f=new o.OlP("NgValidators"),V=new o.OlP("NgAsyncValidators"),w=/^(?=.{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 S{static min(t){return function I(n){return t=>{if(_(t.value)||_(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function P(n){return t=>{if(_(t.value)||_(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return Oe(t)}static requiredTrue(t){return be(t)}static email(t){return Fe(t)}static minLength(t){return function we(n){return t=>_(t.value)||!a(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function Ne(n){return t=>a(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return Se(t)}static nullValidator(t){return null}static compose(t){return Te(t)}static composeAsync(t){return ke(t)}}function Oe(n){return _(n.value)?{required:!0}:null}function be(n){return!0===n.value?null:{required:!0}}function Fe(n){return _(n.value)||w.test(n.value)?null:{email:!0}}function Se(n){if(!n)return L;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(_(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function L(n){return null}function Be(n){return null!=n}function Ge(n){return(0,o.QGY)(n)?(0,D.D)(n):n}function Ie(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function xe(n,t){return t.map(e=>e(n))}function Pe(n){return n.map(t=>function Ot(n){return!n.validate}(t)?t:e=>t.validate(e))}function Te(n){if(!n)return null;const t=n.filter(Be);return 0==t.length?null:function(e){return Ie(xe(e,t))}}function re(n){return null!=n?Te(Pe(n)):null}function ke(n){if(!n)return null;const t=n.filter(Be);return 0==t.length?null:function(e){const r=xe(e,t).map(Ge);return(0,C.D)(r).pipe((0,E.U)(Ie))}}function oe(n){return null!=n?ke(Pe(n)):null}function Re(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Ue(n){return n._rawValidators}function He(n){return n._rawAsyncValidators}function ie(n){return n?Array.isArray(n)?n:[n]:[]}function j(n,t){return Array.isArray(n)?n.includes(t):n===t}function Le(n,t){const e=ie(t);return ie(n).forEach(i=>{j(e,i)||e.push(i)}),e}function je(n,t){return ie(t).filter(e=>!j(n,e))}class We{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(t){this._rawValidators=t||[],this._composedValidatorFn=re(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=oe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class F extends We{get formDirective(){return null}get path(){return null}}class B extends We{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ye{constructor(t){this._cd=t}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 $e=(()=>{class n extends Ye{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(B,2))},n.\u0275dir=o.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&o.ekj("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[o.qOj]}),n})(),qe=(()=>{class n extends Ye{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(F,10))},n.\u0275dir=o.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&o.ekj("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[o.qOj]}),n})();const k="VALID",Y="INVALID",T="PENDING",R="DISABLED";function ue(n){return($(n)?n.validators:n)||null}function Ke(n){return Array.isArray(n)?re(n):n||null}function de(n,t){return($(t)?t.asyncValidators:n)||null}function Je(n){return Array.isArray(n)?oe(n):n||null}function $(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class Xe{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Ke(this._rawValidators),this._composedAsyncValidatorFn=Je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===k}get invalid(){return this.status===Y}get pending(){return this.status==T}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(t){this._rawValidators=t,this._composedValidatorFn=Ke(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Je(t)}addValidators(t){this.setValidators(Le(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Le(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(je(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(je(t,this._rawAsyncValidators))}hasValidator(t){return j(this._rawValidators,t)}hasAsyncValidator(t){return j(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=T,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=R,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=k,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===k||this.status===T)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?R:k}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=T,this._hasOwnPendingAsyncValidator=!0;const e=Ge(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?R:this.errors?Y:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T)?T:this._anyControlsHaveStatus(Y)?Y:k}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class ce extends Xe{constructor(t,e,r){super(ue(e),de(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function Qe(n,t,e){n._forEachChild((r,i)=>{if(void 0===e[i])throw new o.vHH(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function Ze(n,t,e){const r=n.controls;if(!(t?Object.keys(r):r).length)throw new o.vHH(1e3,"");if(!r[e])throw new o.vHH(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{const i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,u)=>{r=e(r,i,u)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function U(n,t){he(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function xt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&et(n,t)})}(n,t),function Tt(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function Pt(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&et(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function It(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function z(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),J(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function K(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function he(n,t){const e=Ue(n);null!==t.validator?n.setValidators(Re(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=He(n);null!==t.asyncValidator?n.setAsyncValidators(Re(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();K(t._rawValidators,i),K(t._rawAsyncValidators,i)}function J(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=Ue(n);if(Array.isArray(i)&&i.length>0){const u=i.filter(b=>b!==t.validator);u.length!==i.length&&(e=!0,n.setValidators(u))}}if(null!==t.asyncValidator){const i=He(n);if(Array.isArray(i)&&i.length>0){const u=i.filter(b=>b!==t.asyncValidator);u.length!==i.length&&(e=!0,n.setAsyncValidators(u))}}}const r=()=>{};return K(t._rawValidators,r),K(t._rawAsyncValidators,r),e}function et(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function tt(n,t){he(n,t)}function fe(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function rt(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function pe(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(u=>{u.constructor===M?e=u:function Ut(n){return Object.getPrototypeOf(n.constructor)===p}(u)?r=u:i=u}),i||r||e||null}const Lt={provide:F,useExisting:(0,o.Gpc)(()=>Z)},H=(()=>Promise.resolve(null))();let Z=(()=>{class n extends F{constructor(e,r){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new ce({},re(e),oe(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){H.then(()=>{const r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),U(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){H.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){H.then(()=>{const r=this._findContainer(e.path),i=new ce({});tt(i,e),r.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){H.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){H.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,rt(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(f,10),o.Y36(V,10))},n.\u0275dir=o.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,r){1&e&&o.NdJ("submit",function(u){return r.onSubmit(u)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([Lt]),o.qOj]}),n})();function ot(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function it(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Q=class extends Xe{constructor(t=null,e,r){super(ue(e),de(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=it(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ot(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ot(this._onDisabledChange,t)}_forEachChild(t){}_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(t){it(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},jt=Q,$t={provide:B,useExisting:(0,o.Gpc)(()=>me)},lt=(()=>Promise.resolve(null))();let me=(()=>{class n extends B{constructor(e,r,i,u,b){super(),this._changeDetectorRef=b,this.control=new Q,this._registered=!1,this.update=new o.vpe,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=pe(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),fe(e,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(e){this.viewModel=e,this.update.emit(e)}_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.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(e){lt.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=0!==r&&(0,o.D6c)(r);lt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function q(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(F,9),o.Y36(f,10),o.Y36(V,10),o.Y36(c,10),o.Y36(o.sBO,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([$t]),o.qOj,o.TTD]}),n})(),ut=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=o.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const qt={provide:c,useExisting:(0,o.Gpc)(()=>ge),multi:!0};let ge=(()=>{class n extends p{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&o.NdJ("input",function(u){return r.onChange(u.target.value)})("blur",function(){return r.onTouched()})},features:[o._Bn([qt]),o.qOj]}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({}),n})();const _e=new o.OlP("NgModelWithFormControlWarning"),Zt={provide:B,useExisting:(0,o.Gpc)(()=>ye)};let ye=(()=>{class n extends B{constructor(e,r,i,u){super(),this._ngModelWarningConfig=u,this.update=new o.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=pe(0,i)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const r=e.form.previousValue;r&&z(r,this,!1),U(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}fe(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&z(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(o.Y36(f,10),o.Y36(V,10),o.Y36(c,10),o.Y36(_e,8))},n.\u0275dir=o.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o._Bn([Zt]),o.qOj,o.TTD]}),n})();const Qt={provide:F,useExisting:(0,o.Gpc)(()=>X)};let X=(()=>{class n extends F{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(J(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return U(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){z(e.control||null,e,!1),function Ht(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,rt(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(z(r||null,e),(n=>n instanceof Q)(i)&&(U(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);tt(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function kt(n,t){return J(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){he(this.form,this),this._oldForm&&J(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(f,10),o.Y36(V,10))},n.\u0275dir=o.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&o.NdJ("submit",function(u){return r.onSubmit(u)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([Qt]),o.qOj,o.TTD]}),n})();const nn={provide:c,useExisting:(0,o.Gpc)(()=>ee),multi:!0};function mt(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let ee=(()=>{class n extends p{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const i=mt(this._getOptionId(e),e);this.setProperty("value",i)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function rn(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&o.NdJ("change",function(u){return r.onChange(u.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([nn]),o.qOj]}),n})(),gt=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(mt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(ee,9))},n.\u0275dir=o.lG2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const on={provide:c,useExisting:(0,o.Gpc)(()=>Ve),multi:!0};function _t(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let Ve=(()=>{class n extends p{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const i=e.map(u=>this._getOptionId(u));r=(u,b)=>{u._setSelected(i.indexOf(b.toString())>-1)}}else r=(i,u)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const i=[],u=r.selectedOptions;if(void 0!==u){const b=u;for(let G=0;G<b.length;G++){const Ee=this._getOptionValue(b[G].value);i.push(Ee)}}else{const b=r.options;for(let G=0;G<b.length;G++){const ne=b[G];if(ne.selected){const Ee=this._getOptionValue(ne.value);i.push(Ee)}}}this.value=i,e(i)}}_registerOption(e){const r=(this._idCounter++).toString();return this._optionMap.set(r,e),r}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r)._value,e))return r;return null}_getOptionValue(e){const r=function sn(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r)._value:e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,r){1&e&&o.NdJ("change",function(u){return r.onChange(u.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([on]),o.qOj]}),n})(),yt=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(_t(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(_t(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Ve,9))},n.\u0275dir=o.lG2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})(),x=(()=>{class n{constructor(){this._validator=L}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):L,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=o.lG2({type:n,features:[o.TTD]}),n})();const un={provide:f,useExisting:(0,o.Gpc)(()=>te),multi:!0},dn={provide:f,useExisting:(0,o.Gpc)(()=>Ae),multi:!0};let te=(()=>{class n extends x{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.D6c,this.createValidator=e=>Oe}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,r){2&e&&o.uIk("required",r._enabled?"":null)},inputs:{required:"required"},features:[o._Bn([un]),o.qOj]}),n})(),Ae=(()=>{class n extends te{constructor(){super(...arguments),this.createValidator=e=>be}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&o.uIk("required",r._enabled?"":null)},features:[o._Bn([dn]),o.qOj]}),n})();const cn={provide:f,useExisting:(0,o.Gpc)(()=>Me),multi:!0};let Me=(()=>{class n extends x{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=o.D6c,this.createValidator=e=>Fe}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[o._Bn([cn]),o.qOj]}),n})();const pn={provide:f,useExisting:(0,o.Gpc)(()=>De),multi:!0};let De=(()=>{class n extends x{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Se(e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=o.n5z(n)))(r||n)}}(),n.\u0275dir=o.lG2({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&o.uIk("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[o._Bn([pn]),o.qOj]}),n})(),Et=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[dt]}),n})(),mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Et]}),n})(),gn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:_e,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Et]}),n})()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[360],{4360:(E,h,e)=>{e.r(h),e.d(h,{ReportModule:()=>_});var u=e(6895),t=e(7398),i=e(4650),g=e(
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[360],{4360:(E,h,e)=>{e.r(h),e.d(h,{ReportModule:()=>_});var u=e(6895),t=e(7398),i=e(4650),g=e(6806);let M=(()=>{class n{constructor(){}}return n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["app-report"]],decls:1,vars:0,template:function(a,m){1&a&&i._UZ(0,"router-outlet")},dependencies:[g.lC],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]}),n})();var p=e(8063);const r=[{path:"",component:M,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>e.e(174).then(e.bind(e,6174)).then(n=>n.OrderModule),canActivate:[p.a]},{path:"product-statistic",loadChildren:()=>Promise.all([e.e(516),e.e(25)]).then(e.bind(e,6025)).then(n=>n.ProductStatisticModule),canActivate:[p.a]}]}];let C=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[u.ez,g.Bz.forChild(r)]}),n})();var f=e(4006),D=e(7481),R=e(5171);let _=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[u.ez,t.Z,C,f.u5,D.R,R.v,g.Bz]}),n})()},5171:(E,h,e)=>{e.d(h,{Pg:()=>n,v:()=>c});var u=e(6895),t=e(4650),i=e(4006),g=e(8277),M=e(9101),p=e(3238),r=e(9602),C=e(9549),f=e(4144),D=e(5585);function R(a,m){if(1&a){const o=t.EpF();t.ynx(0),t.TgZ(1,"mat-date-range-picker-actions")(2,"button",7),t._uU(3,"Cancel"),t.qZA(),t.TgZ(4,"button",8),t.NdJ("click",function(){t.CHM(o);const s=t.oxw();return t.KtG(s.onSelectDate())}),t._uU(5,"Search"),t.qZA()(),t.BQk()}}const _={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let n=(()=>{class a{constructor(){this.disabled=!1,this.widthClass="w-100",this.showButtonConfirm=!1,this.dateChange=new t.vpe}fromDateChange(o){let l=o?.toDate();this.from=l}toDateChange(o){if(o){let l=o.toDate();this.to=l,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-datepicker-range"]],inputs:{placeholder:"placeholder",displayToggle:"displayToggle",date:"date",disabled:"disabled",minDate:"minDate",widthClass:"widthClass",showButtonConfirm:"showButtonConfirm",from:"from",to:"to"},outputs:{dateChange:"dateChange"},features:[t._Bn([{provide:p._A,useClass:g.t7,deps:[p.Ad]},{provide:p.sG,useValue:_}])],decls:8,vars:8,consts:[["appearance","outline"],["id","dates",3,"min","rangePicker"],["matStartDate","","placeholder","Start date",3,"value","dateChange","click"],["matEndDate","","placeholder","End date",3,"value","dateChange","click"],["matPrefix","",3,"for"],["picker",""],[4,"ngIf"],["mat-button","","matDateRangePickerCancel",""],["mat-raised-button","","color","primary","matDateRangePickerApply","",3,"click"]],template:function(o,l){if(1&o){const s=t.EpF();t.TgZ(0,"mat-form-field",0)(1,"mat-date-range-input",1)(2,"input",2),t.NdJ("dateChange",function(d){return l.fromDateChange(d.value)})("click",function(){t.CHM(s);const d=t.MAs(6);return t.KtG(d.open())}),t.qZA(),t.TgZ(3,"input",3),t.NdJ("dateChange",function(d){return l.toDateChange(d.value)})("click",function(){t.CHM(s);const d=t.MAs(6);return t.KtG(d.open())}),t.qZA()(),t._UZ(4,"mat-datepicker-toggle",4),t.TgZ(5,"mat-date-range-picker",null,5),t.YNc(7,R,6,0,"ng-container",6),t.qZA()()}if(2&o){const s=t.MAs(6);t.Tol(l.widthClass),t.xp6(1),t.Q6J("min",l.minDate)("rangePicker",s),t.xp6(1),t.Q6J("value",l.from),t.xp6(1),t.Q6J("value",l.to),t.xp6(1),t.Q6J("for",s),t.xp6(3),t.Q6J("ngIf",l.showButtonConfirm)}},dependencies:[u.O5,r.nW,r.wx,r.zY,r.By,r._g,r.M5,r.dp,r.DK,C.KE,C.qo,M.lW],styles:["mat-date-range-input[_ngcontent-%COMP%]{font-size:.875rem}"]}),a})(),c=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({providers:[r.FA],imports:[u.ez,p.XK,r.FA,C.lN,D.ZU,f.c,i.u5,M.ot]}),a})()}}]);
|