marketplacepos 2.7.2 → 2.7.3
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/174.ef0e2b8b4c9d2b0b.js +1 -0
- package/Marketplace/25.43ab1ee524b9049a.js +1 -0
- package/Marketplace/277.e644e3531765ce65.js +1 -0
- package/Marketplace/291.779ede87479fb9b2.js +1 -0
- package/Marketplace/360.45dba871a275bde4.js +1 -0
- package/Marketplace/369.fe9dd78b5ae1f834.js +1 -0
- package/Marketplace/397.5668d07ae2910130.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +631 -0
- package/Marketplace/501.7645c32a140dd7f8.js +1 -0
- package/Marketplace/512.8bb0df7db698606b.js +1 -0
- package/Marketplace/516.6cbc60a45960d8fd.js +1 -0
- package/Marketplace/545.4809f373cc63f3b4.js +1 -0
- package/Marketplace/587.b913510ac1ecfe12.js +1 -0
- package/Marketplace/61.b5326b8a8507ca2b.js +1 -0
- package/Marketplace/616.ce2eff13bf85dd2a.js +1 -0
- package/Marketplace/628.161d18d5f92f87c9.js +1 -0
- package/Marketplace/643.cee753340fd82dfa.js +1 -0
- package/Marketplace/716.986295839ef23655.js +1 -0
- package/Marketplace/717.b70435564cbfa38c.js +1 -0
- package/Marketplace/72.23a9b1a59cf7bfca.js +1 -0
- package/Marketplace/739.a22c3c892afd39b9.js +1 -0
- package/Marketplace/796.f712080a257b33c0.js +1 -0
- package/Marketplace/863.73daa64a1cf098b8.js +1 -0
- package/Marketplace/874.23cc68e9ff331b03.js +1 -0
- package/Marketplace/913.c2ffbc12dd99b85d.js +1 -0
- package/Marketplace/970.7c36426f4bcc50cb.js +1 -0
- package/Marketplace/997.c2b107d851cf971c.js +1 -0
- package/Marketplace/common.8f5889e94b19f645.js +1 -0
- package/Marketplace/favicon.ico +0 -0
- package/Marketplace/index.html +22 -0
- package/Marketplace/main.f4b54c0122a625bf.js +1 -0
- package/Marketplace/polyfills.bee3c4d96e890990.js +1 -0
- package/Marketplace/runtime.aa1e68d995bcf102.js +1 -0
- package/Marketplace/scripts.b7cebc1258dbcca8.js +1 -0
- package/Marketplace/styles.ca007450064f7ae0.css +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[291],{3154:(N,b,l)=>{l.d(b,{g:()=>A});var o=(()=>{return(M=o||(o={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",M.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",M.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",M.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",M.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",M.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",o;var M})(),h=l(9694);class A{static IsNotEmpty(d){return""!=d&&d!=A.GuidEMpty&&null!=d&&null!=d}static IsEmpty(d){return""==d||null==d||null==d||d==A.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 v=new Date(Number(d));return v.setDate(d.getDate()-p),v}static isValidDate(d){return d instanceof Date&&!isNaN(d)}static getImageInfo(d){return new Promise((p,v)=>{let c=new Image;c.src=d,c.decode().then(()=>{p({img:d,height:c.height,width:c.width})}).catch(()=>{v(new Error(`Image load error for ${d}`))})})}static formatTitleForFromDate(d,p){let v="dd MMM";return d.getMonth()==p.getMonth()&&(v="dd"),d.getFullYear()!=p.getFullYear()&&(v="dd MMM yyyy"),v}static openDownloadFile(d,p){var v=window.URL.createObjectURL(d),c=document.createElement("a");c.href=v,c.download=p,c.click()}}A.GuidEMpty="00000000-0000-0000-0000-000000000000",A.MinDate="0001-01-01T00:00:00"},9694:(N,b,l)=>{l.d(b,{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,b,l)=>{l.d(b,{D:()=>c});var o=l(9751),h=l(4742),A=l(8421),M=l(3269),d=l(5403),p=l(3268),v=l(1810);function c(...V){const s=(0,M.jO)(V),{args:m,keys:_}=(0,h.D)(V),D=new o.y(E=>{const{length:y}=m;if(!y)return void E.complete();const g=new Array(y);let a=y,f=y;for(let C=0;C<y;C++){let w=!1;(0,A.Xf)(m[C]).subscribe((0,d.x)(E,S=>{w||(w=!0,f--),g[C]=S},()=>a--,void 0,()=>{(!a||!w)&&(f||E.next(_?(0,v.n)(_,g):g),E.complete())}))}});return s?D.pipe((0,p.Z)(s)):D}},4968:(N,b,l)=>{l.d(b,{R:()=>s});var o=l(8421),h=l(9751),A=l(5577),M=l(1144),d=l(576),p=l(3268);const v=["addListener","removeListener"],c=["addEventListener","removeEventListener"],V=["on","off"];function s(y,g,a,f){if((0,d.m)(a)&&(f=a,a=void 0),f)return s(y,g,a).pipe((0,p.Z)(f));const[C,w]=function E(y){return(0,d.m)(y.addEventListener)&&(0,d.m)(y.removeEventListener)}(y)?c.map(S=>P=>y[S](g,P,a)):function _(y){return(0,d.m)(y.addListener)&&(0,d.m)(y.removeListener)}(y)?v.map(m(y,g)):function D(y){return(0,d.m)(y.on)&&(0,d.m)(y.off)}(y)?V.map(m(y,g)):[];if(!C&&(0,M.z)(y))return(0,A.z)(S=>s(S,g,a))((0,o.Xf)(y));if(!C)throw new TypeError("Invalid event target");return new h.y(S=>{const P=(...x)=>S.next(1<x.length?x:x[0]);return C(P),()=>w(P)})}function m(y,g){return a=>f=>y[a](g,f)}},3601:(N,b,l)=>{l.d(b,{e:()=>v});var o=l(4986),h=l(4482),A=l(8421),M=l(5403),p=l(2805);function v(c,V=o.z){return function d(c){return(0,h.e)((V,s)=>{let m=!1,_=null,D=null,E=!1;const y=()=>{if(D?.unsubscribe(),D=null,m){m=!1;const a=_;_=null,s.next(a)}E&&s.complete()},g=()=>{D=null,E&&s.complete()};V.subscribe((0,M.x)(s,a=>{m=!0,_=a,D||(0,A.Xf)(c(a)).subscribe(D=(0,M.x)(s,y,g))},()=>{E=!0,(!m||!D||D.closed)&&s.complete()}))})}(()=>(0,p.H)(c,V))}},8372:(N,b,l)=>{l.d(b,{b:()=>M});var o=l(4986),h=l(4482),A=l(5403);function M(d,p=o.z){return(0,h.e)((v,c)=>{let V=null,s=null,m=null;const _=()=>{if(V){V.unsubscribe(),V=null;const E=s;s=null,c.next(E)}};function D(){const E=m+d,y=p.now();if(y<E)return V=this.schedule(void 0,E-y),void c.add(V);_()}v.subscribe((0,A.x)(c,E=>{s=E,m=p.now(),V||(V=p.schedule(D,d),c.add(V))},()=>{_(),c.complete()},void 0,()=>{s=V=null}))})}},2722:(N,b,l)=>{l.d(b,{R:()=>d});var o=l(4482),h=l(5403),A=l(8421),M=l(5032);function d(p){return(0,o.e)((v,c)=>{(0,A.Xf)(p).subscribe((0,h.x)(c,()=>c.complete(),M.Z)),!c.closed&&v.subscribe(c)})}},6406:(N,b,l)=>{l.d(b,{Z:()=>v});var o=l(4408),h=l(727);const A={schedule(V){let s=requestAnimationFrame,m=cancelAnimationFrame;const{delegate:_}=A;_&&(s=_.requestAnimationFrame,m=_.cancelAnimationFrame);const D=s(E=>{m=void 0,V(E)});return new h.w0(()=>m?.(D))},requestAnimationFrame(...V){const{delegate:s}=A;return(s?.requestAnimationFrame||requestAnimationFrame)(...V)},cancelAnimationFrame(...V){const{delegate:s}=A;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...V)},delegate:void 0};var d=l(7565);const v=new class p extends d.v{flush(s){this._active=!0;const m=this._scheduled;this._scheduled=void 0;const{actions:_}=this;let D;s=s||_.shift();do{if(D=s.execute(s.state,s.delay))break}while((s=_[0])&&s.id===m&&_.shift());if(this._active=!1,D){for(;(s=_[0])&&s.id===m&&_.shift();)s.unsubscribe();throw D}}}(class M extends o.o{constructor(s,m){super(s,m),this.scheduler=s,this.work=m}requestAsyncId(s,m,_=0){return null!==_&&_>0?super.requestAsyncId(s,m,_):(s.actions.push(this),s._scheduled||(s._scheduled=A.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,m,_=0){if(null!=_&&_>0||null==_&&this.delay>0)return super.recycleAsyncId(s,m,_);s.actions.some(D=>D.id===m)||(A.cancelAnimationFrame(m),s._scheduled=void 0)}})},3101:(N,b,l)=>{l.d(b,{E:()=>E});var o=l(4408);let A,h=1;const M={};function d(g){return g in M&&(delete M[g],!0)}const p={setImmediate(g){const a=h++;return M[a]=!0,A||(A=Promise.resolve()),A.then(()=>d(a)&&g()),a},clearImmediate(g){d(g)}},{setImmediate:c,clearImmediate:V}=p,s={setImmediate(...g){const{delegate:a}=s;return(a?.setImmediate||c)(...g)},clearImmediate(g){const{delegate:a}=s;return(a?.clearImmediate||V)(g)},delegate:void 0};var _=l(7565);const E=new class D extends _.v{flush(a){this._active=!0;const f=this._scheduled;this._scheduled=void 0;const{actions:C}=this;let w;a=a||C.shift();do{if(w=a.execute(a.state,a.delay))break}while((a=C[0])&&a.id===f&&C.shift());if(this._active=!1,w){for(;(a=C[0])&&a.id===f&&C.shift();)a.unsubscribe();throw w}}}(class m extends o.o{constructor(a,f){super(a,f),this.scheduler=a,this.work=f}requestAsyncId(a,f,C=0){return null!==C&&C>0?super.requestAsyncId(a,f,C):(a.actions.push(this),a._scheduled||(a._scheduled=s.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,f,C=0){if(null!=C&&C>0||null==C&&this.delay>0)return super.recycleAsyncId(a,f,C);a.actions.some(w=>w.id===f)||(s.clearImmediate(f),a._scheduled=void 0)}})},4006:(N,b,l)=>{l.d(b,{Cf:()=>f,EJ:()=>ne,F:()=>X,Fj:()=>E,JJ:()=>Ke,JL:()=>Je,JU:()=>c,Kr:()=>yt,NI:()=>ee,On:()=>ye,Q7:()=>re,UX:()=>vn,Wl:()=>s,YN:()=>gt,Zs:()=>Ee,_Y:()=>ut,a5:()=>B,c5:()=>Oe,gN:()=>F,kI:()=>S,oH:()=>Ve,on:()=>be,p4:()=>Yt,sg:()=>te,u5:()=>yn,wV:()=>ve});var o=l(4650),h=l(6895),A=l(8996),M=l(4128),d=l(4004);let p=(()=>{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})(),v=(()=>{class n extends p{}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"),V={provide:c,useExisting:(0,o.Gpc)(()=>s),multi:!0};let s=(()=>{class n extends v{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([V]),o.qOj]}),n})();const m={provide:c,useExisting:(0,o.Gpc)(()=>E),multi:!0},D=new o.OlP("CompositionEventMode");let E=(()=>{class n extends p{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _(){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(D,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([m]),o.qOj]}),n})();function g(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"),C=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 P(n){return t=>{if(g(t.value)||g(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 x(n){return t=>{if(g(t.value)||g(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 we(t)}static requiredTrue(t){return Ne(t)}static email(t){return Se(t)}static minLength(t){return function Be(n){return t=>g(t.value)||!a(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function Ie(n){return t=>a(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return Pe(t)}static nullValidator(t){return null}static compose(t){return Ue(t)}static composeAsync(t){return He(t)}}function we(n){return g(n.value)?{required:!0}:null}function Ne(n){return!0===n.value?null:{required:!0}}function Se(n){return g(n.value)||w.test(n.value)?null:{email:!0}}function Pe(n){if(!n)return j;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(g(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function j(n){return null}function Ge(n){return null!=n}function xe(n){return(0,o.QGY)(n)?(0,A.D)(n):n}function Te(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function ke(n,t){return t.map(e=>e(n))}function Re(n){return n.map(t=>function bt(n){return!n.validate}(t)?t:e=>t.validate(e))}function Ue(n){if(!n)return null;const t=n.filter(Ge);return 0==t.length?null:function(e){return Te(ke(e,t))}}function ie(n){return null!=n?Ue(Re(n)):null}function He(n){if(!n)return null;const t=n.filter(Ge);return 0==t.length?null:function(e){const r=ke(e,t).map(xe);return(0,M.D)(r).pipe((0,d.U)(Te))}}function se(n){return null!=n?He(Re(n)):null}function Le(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function je(n){return n._rawValidators}function We(n){return n._rawAsyncValidators}function ae(n){return n?Array.isArray(n)?n:[n]:[]}function W(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ye(n,t){const e=ae(t);return ae(n).forEach(i=>{W(e,i)||e.push(i)}),e}function qe(n,t){return ae(t).filter(e=>!W(n,e))}class $e{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=ie(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=se(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 $e{get formDirective(){return null}get path(){return null}}class B extends $e{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ze{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 Ke=(()=>{class n extends ze{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})(),Je=(()=>{class n extends ze{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 R="VALID",q="INVALID",T="PENDING",U="DISABLED";function ce(n){return($(n)?n.validators:n)||null}function he(n,t){return($(t)?t.asyncValidators:n)||null}function $(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class et{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._assignValidators(t),this._assignAsyncValidators(e)}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===R}get invalid(){return this.status===q}get pending(){return this.status==T}get disabled(){return this.status===U}get enabled(){return this.status!==U}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._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ye(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ye(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(qe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(qe(t,this._rawAsyncValidators))}hasValidator(t){return W(this._rawValidators,t)}hasAsyncValidator(t){return W(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=U,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=R,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===R||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()?U:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=T,this._hasOwnPendingAsyncValidator=!0;const e=xe(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()?U:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T)?T:this._anyControlsHaveStatus(q)?q:R}_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}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function It(n){return Array.isArray(n)?ie(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Pt(n){return Array.isArray(n)?se(n):n||null}(this._rawAsyncValidators)}}class fe extends et{constructor(t,e,r){super(ce(e),he(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 Xe(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 Qe(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}}const k=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>z}),z="always";function H(n,t,e=z){pe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function Tt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&tt(n,t)})}(n,t),function Rt(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 kt(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&tt(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function xt(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function J(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Q(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Z(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function pe(n,t){const e=je(n);null!==t.validator?n.setValidators(Le(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=We(n);null!==t.asyncValidator?n.setAsyncValidators(Le(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Z(t._rawValidators,i),Z(t._rawAsyncValidators,i)}function Q(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=je(n);if(Array.isArray(i)&&i.length>0){const u=i.filter(O=>O!==t.validator);u.length!==i.length&&(e=!0,n.setValidators(u))}}if(null!==t.asyncValidator){const i=We(n);if(Array.isArray(i)&&i.length>0){const u=i.filter(O=>O!==t.asyncValidator);u.length!==i.length&&(e=!0,n.setAsyncValidators(u))}}}const r=()=>{};return Z(t._rawValidators,r),Z(t._rawAsyncValidators,r),e}function tt(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function nt(n,t){pe(n,t)}function ge(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 _e(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(u=>{u.constructor===E?e=u:function Lt(n){return Object.getPrototypeOf(n.constructor)===v}(u)?r=u:i=u}),i||r||e||null}const Wt={provide:F,useExisting:(0,o.Gpc)(()=>X)},L=(()=>Promise.resolve())();let X=(()=>{class n extends F{constructor(e,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new fe({},ie(e),se(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){L.then(()=>{const r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),H(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){L.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){L.then(()=>{const r=this._findContainer(e.path),i=new fe({});nt(i,e),r.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){L.then(()=>{const r=this._findContainer(e.path);r&&r.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){L.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),"dialog"===e?.target?.method}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(C,10),o.Y36(k,8))},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([Wt]),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 ee=class extends et{constructor(t=null,e,r){super(ce(e),he(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}},Yt=ee,zt={provide:B,useExisting:(0,o.Gpc)(()=>ye)},lt=(()=>Promise.resolve())();let ye=(()=>{class n extends B{constructor(e,r,i,u,O,I){super(),this._changeDetectorRef=O,this.callSetDisabledState=I,this.control=new ee,this._registered=!1,this.update=new o.vpe,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=_e(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),ge(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(){H(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(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 K(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(C,10),o.Y36(c,10),o.Y36(o.sBO,8),o.Y36(k,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([zt]),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 Kt={provide:c,useExisting:(0,o.Gpc)(()=>ve),multi:!0};let ve=(()=>{class n extends v{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([Kt]),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 Ce=new o.OlP("NgModelWithFormControlWarning"),Xt={provide:B,useExisting:(0,o.Gpc)(()=>Ve)};let Ve=(()=>{class n extends B{set isDisabled(e){}constructor(e,r,i,u,O){super(),this._ngModelWarningConfig=u,this.callSetDisabledState=O,this.update=new o.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=_e(0,i)}ngOnChanges(e){if(this._isControlChanged(e)){const r=e.form.previousValue;r&&J(r,this,!1),H(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ge(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&J(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(C,10),o.Y36(c,10),o.Y36(Ce,8),o.Y36(k,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([Xt]),o.qOj,o.TTD]}),n})();const en={provide:F,useExisting:(0,o.Gpc)(()=>te)};let te=(()=>{class n extends F{constructor(e,r,i){super(),this.callSetDisabledState=i,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&&(Q(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 H(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){J(e.control||null,e,!1),function jt(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),"dialog"===e?.target?.method}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&&(J(r||null,e),(n=>n instanceof ee)(i)&&(H(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);nt(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function Ut(n,t){return Q(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pe(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(o.Y36(f,10),o.Y36(C,10),o.Y36(k,8))},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([en]),o.qOj,o.TTD]}),n})();const on={provide:c,useExisting:(0,o.Gpc)(()=>ne),multi:!0};function mt(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let ne=(()=>{class n extends v{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 sn(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([on]),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(ne,9))},n.\u0275dir=o.lG2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const an={provide:c,useExisting:(0,o.Gpc)(()=>Me),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 Me=(()=>{class n extends v{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,O)=>{u._setSelected(i.indexOf(O.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 O=u;for(let I=0;I<O.length;I++){const Fe=this._getOptionValue(O[I].value);i.push(Fe)}}else{const O=r.options;for(let I=0;I<O.length;I++){const oe=O[I];if(oe.selected){const Fe=this._getOptionValue(oe.value);i.push(Fe)}}}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 ln(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([an]),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(Me,9))},n.\u0275dir=o.lG2({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})(),G=(()=>{class n{constructor(){this._validator=j}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):j,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 cn={provide:f,useExisting:(0,o.Gpc)(()=>re),multi:!0},hn={provide:f,useExisting:(0,o.Gpc)(()=>Ee),multi:!0};let re=(()=>{class n extends G{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.D6c,this.createValidator=e=>we}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([cn]),o.qOj]}),n})(),Ee=(()=>{class n extends re{constructor(){super(...arguments),this.createValidator=e=>Ne}}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([hn]),o.qOj]}),n})();const fn={provide:f,useExisting:(0,o.Gpc)(()=>be),multi:!0};let be=(()=>{class n extends G{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=o.D6c,this.createValidator=e=>Se}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([fn]),o.qOj]}),n})();const gn={provide:f,useExisting:(0,o.Gpc)(()=>Oe),multi:!0};let Oe=(()=>{class n extends G{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Pe(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([gn]),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})(),yn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:k,useValue:e.callSetDisabledState??z}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Et]}),n})(),vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Ce,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:k,useValue:e.callSetDisabledState??z}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[Et]}),n})()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[360],{4360:(E,f,e)=>{e.r(f),e.d(f,{ReportModule:()=>r});var u=e(6895),t=e(7398),d=e(4650),g=e(6806);class p{constructor(){}}p.\u0275fac=function(a){return new(a||p)},p.\u0275cmp=d.Xpm({type:p,selectors:[["app-report"]],decls:1,vars:0,template:function(a,o){1&a&&d._UZ(0,"router-outlet")},dependencies:[g.lC],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]});var m=e(8063);const i=[{path:"",component:p,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>e.e(174).then(e.bind(e,6174)).then(n=>n.OrderModule),canActivate:[m.a]},{path:"product-statistic",loadChildren:()=>Promise.all([e.e(516),e.e(25)]).then(e.bind(e,6025)).then(n=>n.ProductStatisticModule),canActivate:[m.a]}]}];class l{}l.\u0275fac=function(a){return new(a||l)},l.\u0275mod=d.oAB({type:l}),l.\u0275inj=d.cJS({imports:[u.ez,g.Bz.forChild(i)]});var C=e(4006),D=e(7481),M=e(5171);class r{}r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=d.oAB({type:r}),r.\u0275inj=d.cJS({imports:[u.ez,t.Z,l,C.u5,D.R,g.Bz,M.P]})},5171:(E,f,e)=>{e.d(f,{P:()=>r});var u=e(6895),t=e(4650),d=e(4006),g=e(8277),p=e(9101),m=e(3238),i=e(9602),l=e(9549),C=e(4144);function D(n,a){if(1&n){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 h=t.oxw();return t.KtG(h.onSelectDate())}),t._uU(5,"Search"),t.qZA()(),t.BQk()}}class r{constructor(){this.disabled=!1,this.widthClass="w-100",this.showButtonConfirm=!1,this.dateChange=new t.vpe}fromDateChange(a){let o=a?.toDate();this.from=o}toDateChange(a){if(a){let o=a.toDate();this.to=o,this.showButtonConfirm||this.emitDateChange()}}emitDateChange(){this.dateChange.emit({from:this.from,to:this.to})}onSelectDate(){this.emitDateChange()}}r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=t.Xpm({type:r,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"},standalone:!0,features:[t._Bn([{provide:m._A,useClass:g.t7,deps:[m.Ad]},{provide:m.sG,useValue:{parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}}}]),t.jDz],decls:8,vars:8,consts:[["appearance","outline",1,"date-range"],["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(a,o){if(1&a){const c=t.EpF();t.TgZ(0,"mat-form-field",0)(1,"mat-date-range-input",1)(2,"input",2),t.NdJ("dateChange",function(s){return o.fromDateChange(s.value)})("click",function(){t.CHM(c);const s=t.MAs(6);return t.KtG(s.open())}),t.qZA(),t.TgZ(3,"input",3),t.NdJ("dateChange",function(s){return o.toDateChange(s.value)})("click",function(){t.CHM(c);const s=t.MAs(6);return t.KtG(s.open())}),t.qZA()(),t._UZ(4,"mat-datepicker-toggle",4),t.TgZ(5,"mat-date-range-picker",null,5),t.YNc(7,D,6,0,"ng-container",6),t.qZA()()}if(2&a){const c=t.MAs(6);t.Tol(o.widthClass),t.xp6(1),t.Q6J("min",o.minDate)("rangePicker",c),t.xp6(1),t.Q6J("value",o.from),t.xp6(1),t.Q6J("value",o.to),t.xp6(1),t.Q6J("for",c),t.xp6(3),t.Q6J("ngIf",o.showButtonConfirm)}},dependencies:[u.ez,u.O5,m.XK,i.FA,i.nW,i.wx,i.zY,i.By,i._g,i.M5,i.dp,i.DK,l.lN,l.KE,l.qo,C.c,d.u5,p.ot,p.lW],styles:["mat-form-field.date-range.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{padding-top:12px!important;padding-bottom:12px!important;min-height:45px!important;font-size:14px!important}"]})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[369],{9369:(k,O,s)=>{s.r(O),s.d(O,{LoginModule:()=>x});var f=s(6895),l=s(4006),t=s(4650),p=s(6806),v=s(1318);class m{constructor(e,o,i){this.route=e,this.http=o,this.service=i}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){this.http.post("/api/ChannelAdd/AddLazada",{Code:this.code}).subscribe(o=>{this.service.navigate(["/menu/channel"])})}}m.\u0275fac=function(e){return new(e||m)(t.Y36(p.gz),t.Y36(v.O),t.Y36(p.F0))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-lazada"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Lazada"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"button",9),t.NdJ("click",function(){return o.addChannelLazada()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(o.code))}});var y=s(3154),P=s(7185);class h{constructor(){}getBrowserName(){const e=window.navigator.userAgent.toLowerCase();switch(!0){case e.indexOf("edge")>-1||e.indexOf("edg")>-1:return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}}h.\u0275fac=function(e){return new(e||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"});var T=s(501);const _=["subdomainEl"];function S(n,e){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"div",18)(2,"div",19)(3,"form")(4,"div",20)(5,"h2",21),t._uU(6,"Sign in"),t.qZA(),t.TgZ(7,"div",22)(8,"div",23)(9,"div",24)(10,"span",25),t._UZ(11,"i",26),t.qZA(),t.TgZ(12,"input",27,28),t.NdJ("ngModelChange",function(a){t.CHM(o);const u=t.oxw();return t.KtG(u.subdomain=a)}),t.qZA()()(),t.TgZ(14,"select",29),t.NdJ("ngModelChange",function(a){t.CHM(o);const u=t.oxw();return t.KtG(u.domain=a)}),t.TgZ(15,"option",30),t._uU(16,".dealpos.co.id"),t.qZA(),t.TgZ(17,"option",31),t._uU(18,".dealpos.net"),t.qZA(),t.TgZ(19,"option",32),t._uU(20,".dealpos.com"),t.qZA()()()(),t.TgZ(21,"div",33)(22,"button",34),t.NdJ("click",function(){t.CHM(o);const a=t.oxw();return t.KtG(a.onNextState())}),t._uU(23," Next "),t.qZA()()()()(),t.BQk()}if(2&n){const o=t.oxw();t.xp6(12),t.Q6J("ngModel",o.subdomain),t.xp6(2),t.Q6J("ngModel",o.domain)}}function r(n,e){1&n&&(t.TgZ(0,"p"),t._uU(1," Username is required "),t.qZA())}function c(n,e){if(1&n&&(t.TgZ(0,"div",58),t.YNc(1,r,2,0,"p",59),t.qZA()),2&n){t.oxw();const o=t.MAs(13);t.xp6(1),t.Q6J("ngIf",o.errors.required)}}const g=function(n,e){return{"fa-eye":n,"fa-eye-slash":e}};function d(n,e){if(1&n){const o=t.EpF();t.TgZ(0,"i",60),t.NdJ("click",function(){t.CHM(o);const a=t.oxw(2);return t.KtG(a.hideShowPassword())}),t.qZA()}if(2&n){const o=t.oxw(2);t.Q6J("ngClass",t.WLB(1,g,"eye-off"==o.passwordIcon,"eye"==o.passwordIcon))}}function Z(n,e){1&n&&(t.TgZ(0,"p"),t._uU(1," Password is required "),t.qZA())}function A(n,e){if(1&n&&(t.TgZ(0,"div",58),t.YNc(1,Z,2,0,"p",59),t.qZA()),2&n){t.oxw();const o=t.MAs(19);t.xp6(1),t.Q6J("ngIf",o.errors.required)}}function U(n,e){if(1&n){const o=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",35)(3,"h2",21),t._uU(4,"Sign in"),t.qZA(),t.TgZ(5,"div",36),t._uU(6," to "),t.TgZ(7,"h6",37),t._uU(8),t.qZA(),t.TgZ(9,"i",38),t.NdJ("click",function(){t.CHM(o);const a=t.oxw();return t.KtG(a.onEditDomain())}),t.qZA()()(),t.TgZ(10,"form",39)(11,"div",40)(12,"input",41,42),t.NdJ("ngModelChange",function(a){t.CHM(o);const u=t.oxw();return t.KtG(u.username=a)}),t.qZA(),t.TgZ(14,"label",43),t._uU(15,"Username"),t.qZA(),t.YNc(16,c,2,1,"div",44),t.qZA(),t.TgZ(17,"div",45)(18,"input",46,47),t.NdJ("ngModelChange",function(a){t.CHM(o);const u=t.oxw();return t.KtG(u.password=a)}),t.qZA(),t.TgZ(20,"label",48),t._uU(21,"Password"),t.qZA(),t.YNc(22,d,1,4,"i",49),t.YNc(23,A,2,1,"div",44),t.qZA(),t.TgZ(24,"div",50)(25,"a",51),t._uU(26,"Forgot Password?"),t.qZA()(),t.TgZ(27,"div",52)(28,"button",53),t.NdJ("click",function(){t.CHM(o);const a=t.oxw();return t.KtG(a.onLogin())}),t._uU(29," Log in "),t.qZA()(),t.TgZ(30,"div",54),t._UZ(31,"hr"),t.TgZ(32,"span",55),t._uU(33,"or"),t.qZA(),t._UZ(34,"hr"),t.qZA(),t.TgZ(35,"div")(36,"button",56),t.NdJ("click",function(a){t.CHM(o);const u=t.oxw();return t.KtG(u.onLoginByGoogle(a))}),t._UZ(37,"i",57),t._uU(38," Sign In with Google "),t.qZA()()()()()}if(2&n){const o=t.MAs(13),i=t.MAs(19),a=t.oxw();t.xp6(8),t.AsE(" (",a.subdomain,"",a.domain,") "),t.xp6(4),t.Q6J("ngModel",a.username),t.xp6(4),t.Q6J("ngIf",o.invalid&&(o.dirty||o.touched)),t.xp6(2),t.Q6J("type",a.passwordType)("ngModel",a.password),t.xp6(4),t.Q6J("ngIf",""!=a.password&&"edge"!=a.browser),t.xp6(1),t.Q6J("ngIf",i.invalid&&(i.dirty||i.touched)),t.xp6(2),t.Q6J("href","https://"+a.subdomain+a.domain+"/ForgotPassword",t.LSH)}}class C{constructor(e,o,i,a,u){this._router=e,this.elementRef=o,this.toastr=i,this.checkBrowser=a,this.authService=u,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.initLogin(),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#dfeffc",this.browser=this.checkBrowser.getBrowserName()}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){this.authService.isActiveToken()&&this._router.navigate(["menu"])}onNextState(){y.g.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):(this.parseSubdomain(),this.loginState="FORM_AUTH")}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");-1!=e&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){this.authService.login({Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password}).subscribe(o=>{this.onSuccessLogin(o)})}onLoginByGoogle(e){this.authService.loginWithGoogle(e,`${this.subdomain}${this.domain}`).subscribe(i=>{this.onSuccessLogin(i)})}onSuccessLogin(e){this._router.navigate(e.Channel.length<1?["menu/channel"]:["menu"])}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}}C.\u0275fac=function(e){return new(e||C)(t.Y36(p.F0),t.Y36(t.SBq),t.Y36(P._W),t.Y36(h),t.Y36(T.e))},C.\u0275cmp=t.Xpm({type:C,selectors:[["app-login"]],viewQuery:function(e,o){if(1&e&&t.Gf(_,5),2&e){let i;t.iGM(i=t.CRH())&&(o.subdomainEl=i.first)}},decls:30,vars:8,consts:[[1,"container"],[1,"row","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["ngSrc","https://res.cloudinary.com/pos/image/upload/v1657855612/Apps/Login/Omnichannel.png","alt","integration-image",1,"img-fluid",3,"width","height"],[1,"col-12","col-md-5","order-first","order-md-last","mt-12"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-8","me-3"],["target","_blank","href","https://www.dealpos.com"],["ngSrc","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid",3,"width","height"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-8","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","w-75","rounded-end-0"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"padding-left","0px",3,"ngModel","ngModelChange"],["subdomainEl",""],["name","domainOption",1,"form-select","form-control","border-start-0","mt-4","rounded-end","rounded-start-0","domain-option",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4," DealPOS Omnichannel "),t.qZA(),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5)(7,"h1",6),t._uU(8," DealPOS Omnichannel "),t.qZA(),t.YNc(9,S,24,2,"ng-container",7),t.YNc(10,U,39,9,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"div",9)(13,"p",10),t._uU(14,"Powered by :"),t.qZA(),t.TgZ(15,"a",11),t._UZ(16,"img",12),t.qZA(),t._UZ(17,"br"),t.TgZ(18,"a",13),t._uU(19,"Version 2.7.3"),t.qZA()()()(),t.TgZ(20,"footer",14)(21,"div",15)(22,"div",16)(23,"p",10),t._uU(24,"Powered by :"),t.qZA(),t.TgZ(25,"a",11),t._UZ(26,"img",12),t.qZA()(),t.TgZ(27,"div",17)(28,"a",13),t._uU(29,"Version 2.7.3"),t.qZA()()()()),2&e){const i=t.MAs(11);t.xp6(5),t.Q6J("width",500)("height",273),t.xp6(4),t.Q6J("ngIf","FORM_DOMAIN"==o.loginState)("ngIfElse",i),t.xp6(7),t.Q6J("width",130)("height",73),t.xp6(10),t.Q6J("width",130)("height",73)}},dependencies:[f.mk,f.O5,l._Y,l.YN,l.Kr,l.Fj,l.EJ,l.JJ,l.JL,l.Q7,l.On,l.F,f.Zd],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}"]});class M{constructor(e,o,i){this.route=e,this.http=o,this.service=i}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}}M.\u0275fac=function(e){return new(e||M)(t.Y36(p.gz),t.Y36(v.O),t.Y36(p.F0))},M.\u0275cmp=t.Xpm({type:M,selectors:[["shopee-authorized"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Shopee"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your shopID is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"button",9),t.NdJ("click",function(){return o.addShopee()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(o.shopID))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});class w{constructor(e,o,i){this.route=e,this.http=o,this.service=i}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){this.http.post("/api/ChannelAdd/AddTiktok",{Code:this.code}).subscribe(o=>{this.service.navigate(["/menu/channel"])})}}w.\u0275fac=function(e){return new(e||w)(t.Y36(p.gz),t.Y36(v.O),t.Y36(p.F0))},w.\u0275cmp=t.Xpm({type:w,selectors:[["app-tiktok"]],decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA()(),t.TgZ(8,"div",7)(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Tiktok"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA()(),t.TgZ(17,"div"),t._uU(18," Your State is "),t.TgZ(19,"span",8),t._uU(20),t.qZA()(),t.TgZ(21,"button",9),t.NdJ("click",function(){return o.addChannelTiktok()}),t._UZ(22,"i",10),t._uU(23," Add to my Channel"),t.qZA()()()()()()),2&e&&(t.xp6(16),t.Oqu(o.code),t.xp6(4),t.Oqu(o.state))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});const L=[{path:"",component:C,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:M,data:{title:"Success"}},{path:"tiktok",component:w,data:{title:"Success"}},{path:"lazada",component:m,data:{title:"Success"}}];class b{}b.\u0275fac=function(e){return new(e||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[p.Bz.forChild(L),p.Bz]});var I=s(8796);class x{}x.\u0275fac=function(e){return new(e||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[f.ez,l.u5,b,I.A0]})},501:(k,O,s)=>{s.d(O,{e:()=>_});var f=s(8505),l=s(8996),t=s(4004),p=s(3900),v=s(3942),m=s(4650),y=s(1318),P=s(8002),h=s(7185),T=s(7899);class _{constructor(r,c,g,d){this.httpService=r,this.tokenDecodeService=c,this.toastrService=g,this.afAuth=d}login(r){return this.httpService.post("/api/token/Login",r).pipe((0,f.b)(c=>{this.setLocalStorage(c,r.Host,r.Username),this.validateRole()}))}loginWithGoogle(r,c){r.preventDefault();const g=new v.Z.auth.GoogleAuthProvider;return g.setCustomParameters({prompt:"select_account"}),(0,l.D)(this.afAuth.signInWithPopup(g)).pipe((0,t.U)(d=>d.credential),(0,t.U)(d=>d.idToken),(0,p.w)(d=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:d,Host:c}))),(0,f.b)(d=>{this.setLocalStorage(d,c,null),this.validateRole()}))}setLocalStorage(r,c,g){localStorage.setItem("user",JSON.stringify(r)),localStorage.setItem("Authorization",JSON.stringify({Host:c,username:g})),localStorage.setItem("Intercom",JSON.stringify(r.IntercomWidget))}validateRole(){let r="This user is lack of these following roles :",c=this.tokenDecodeService.GetRoles(),g=c.includes("Sell"),d=c.includes("SellEditor"),Z=c.includes("DelC"),A=c.includes("PayC");g||(r=`${r} <br/> Sell Create`),d||(r=`${r} <br/> Sell Editor`),Z||(r=`${r} <br/> Delivery Create`),A||(r=`${r} <br/> Payment Create`),(!g||!d||!Z||!A)&&this.toastrService.warning(r,"Warning!",{enableHtml:!0})}logout(){this.clearLocalStorage()}isActiveToken(){let r=JSON.parse(window.localStorage.getItem("user")),c=new Date;return null!=r&&(c<new Date(r.Token.expiredAt)||(this.clearLocalStorage(),!1))}getDomain(){if(!this.domain){const r=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(r).Host}return this.domain}clearLocalStorage(){localStorage.removeItem("Intercom"),localStorage.removeItem("Authorization"),localStorage.removeItem("user")}}_.\u0275fac=function(r){return new(r||_)(m.LFG(y.O),m.LFG(P.e),m.LFG(h._W),m.LFG(T.zQ))},_.\u0275prov=m.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}}]);
|