zohodealpos 26.3.0 → 26.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/zoho/{chunk-3REIDVP4.js → chunk-SM4MUYRP.js} +1 -1
- package/zoho/{chunk-Y23W7OTR.js → chunk-SNKXSIP4.js} +1 -1
- package/zoho/{chunk-UYKZXBWN.js → chunk-UFXJXHXV.js} +29 -29
- package/zoho/{chunk-RAUIBFNR.js → chunk-WY2IHTTK.js} +1 -1
- package/zoho/{chunk-IHJX6OKZ.js → chunk-XXMTZ2NG.js} +7 -7
- package/zoho/index.html +2 -2
- package/zoho/{main-NB5MQ2PD.js → main-ZDWJIQWC.js} +1 -1
- package/zoho/ngsw.json +13 -13
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"zohodealpos","version":"26.
|
|
1
|
+
{"name":"zohodealpos","version":"26.5.0"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ba as a,E as Fe,Fb as g,Ga as le,La as E,Na as d,Pc as ke,Ra as Ie,Sb as Se,Sc as Pe,Ua as ue,V as $,W as p,Wb as xe,X as N,Xb as ce,Y as q,Z as V,Zb as F,_ as z,_b as m,a as c,ac as de,b as f,da as K,ea as u,ia as k,j as be,kb as w,na as M,o as Ae,p as Me,qa as b,rc as Oe,s as Ee,sa as ae,sc as Ne,w as we}from"./chunk-IHJX6OKZ.js";var $e=(()=>{let e=class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(r){return new(r||e)(a(le),a(ae))},e.\u0275dir=u({type:e});let i=e;return i})(),ve=(()=>{let e=class e extends $e{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[d]});let i=e;return i})(),U=new V(""),mt={provide:U,useExisting:p(()=>vt),multi:!0},vt=(()=>{let e=class e extends ve{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&w("change",function(l){return s.onChange(l.target.checked)})("blur",function(){return s.onTouched()})},features:[g([mt]),d]});let i=e;return i})(),yt={provide:U,useExisting:p(()=>qe),multi:!0};function _t(){let i=de()?de().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ct=new V(""),qe=(()=>{let e=class e extends $e{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!_t())}writeValue(t){let r=t??"";this.setProperty("value",r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(r){return new(r||e)(a(le),a(ae),a(Ct,8))},e.\u0275dir=u({type:e,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(r,s){r&1&&w("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[g([yt]),d]});let i=e;return i})();function y(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ze(i){return i!=null&&typeof i.length=="number"}var H=new V(""),re=new V(""),Dt=/^(?=.{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])?)*$/,Te=class{static min(e){return Vt(e)}static max(e){return bt(e)}static required(e){return Ke(e)}static requiredTrue(e){return At(e)}static email(e){return Mt(e)}static minLength(e){return Et(e)}static maxLength(e){return wt(e)}static pattern(e){return Ft(e)}static nullValidator(e){return Y(e)}static compose(e){return et(e)}static composeAsync(e){return tt(e)}};function Vt(i){return e=>{if(y(e.value)||y(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n<i?{min:{min:i,actual:e.value}}:null}}function bt(i){return e=>{if(y(e.value)||y(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>i?{max:{max:i,actual:e.value}}:null}}function Ke(i){return y(i.value)?{required:!0}:null}function At(i){return i.value===!0?null:{required:!0}}function Mt(i){return y(i.value)||Dt.test(i.value)?null:{email:!0}}function Et(i){return e=>y(e.value)||!ze(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function wt(i){return e=>ze(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Ft(i){if(!i)return Y;let e,n;return typeof i=="string"?(n="",i.charAt(0)!=="^"&&(n+="^"),n+=i,i.charAt(i.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=i.toString(),e=i),t=>{if(y(t.value))return null;let r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function Y(i){return null}function Ze(i){return i!=null}function Ye(i){return Se(i)?Me(i):i}function Je(i){let e={};return i.forEach(n=>{e=n!=null?c(c({},e),n):e}),Object.keys(e).length===0?null:e}function Xe(i,e){return e.map(n=>n(i))}function It(i){return!i.validate}function Qe(i){return i.map(e=>It(e)?e:n=>e.validate(n))}function et(i){if(!i)return null;let e=i.filter(Ze);return e.length==0?null:function(n){return Je(Xe(n,e))}}function ye(i){return i!=null?et(Qe(i)):null}function tt(i){if(!i)return null;let e=i.filter(Ze);return e.length==0?null:function(n){let t=Xe(n,e).map(Ye);return we(t).pipe(Ee(Je))}}function _e(i){return i!=null?tt(Qe(i)):null}function Ge(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function it(i){return i._rawValidators}function nt(i){return i._rawAsyncValidators}function he(i){return i?Array.isArray(i)?i:[i]:[]}function J(i,e){return Array.isArray(i)?i.includes(e):i===e}function Re(i,e){let n=he(e);return he(i).forEach(r=>{J(n,r)||n.push(r)}),n}function je(i,e){return he(e).filter(n=>!J(i,n))}var X=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=ye(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=_e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},v=class extends X{get formDirective(){return null}get path(){return null}},A=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Q=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},St={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},_i=f(c({},St),{"[class.ng-submitted]":"isSubmitted"}),Ci=(()=>{let e=class e extends Q{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(a(A,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&ue("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[d]});let i=e;return i})(),Di=(()=>{let e=class e extends Q{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(a(v,10))},e.\u0275dir=u({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&ue("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[d]});let i=e;return i})();var P="VALID",Z="INVALID",I="PENDING",T="DISABLED",_=class{},ee=class extends _{constructor(e,n){super(),this.value=e,this.source=n}},R=class extends _{constructor(e,n){super(),this.pristine=e,this.source=n}},j=class extends _{constructor(e,n){super(),this.touched=e,this.source=n}},S=class extends _{constructor(e,n){super(),this.status=e,this.source=n}},fe=class extends _{constructor(e){super(),this.source=e}},pe=class extends _{constructor(e){super(),this.source=e}};function Ce(i){return(se(i)?i.validators:i)||null}function xt(i){return Array.isArray(i)?ye(i):i||null}function De(i,e){return(se(e)?e.asyncValidators:i)||null}function Ot(i){return Array.isArray(i)?_e(i):i||null}function se(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function rt(i,e,n){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new $(1e3,"");if(!t[n])throw new $(1001,"")}function st(i,e,n){i._forEachChild((t,r)=>{if(n[r]===void 0)throw new $(1002,"")})}var x=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=F(()=>this.statusReactive()),this.statusReactive=E(void 0),this._pristine=F(()=>this.pristineReactive()),this.pristineReactive=E(!0),this._touched=F(()=>this.touchedReactive()),this.touchedReactive=E(!1),this._events=new be,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(e){m(()=>this.statusReactive.set(e))}get valid(){return this.status===P}get invalid(){return this.status===Z}get pending(){return this.status==I}get disabled(){return this.status===T}get enabled(){return this.status!==T}get pristine(){return m(this.pristineReactive)}set pristine(e){m(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(e){m(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Re(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(je(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(je(e,this._rawAsyncValidators))}hasValidator(e){return J(this._rawValidators,e)}hasAsyncValidator(e){return J(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(f(c({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new j(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),n&&e.emitEvent!==!1&&this._events.next(new j(!1,t))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(f(c({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new R(!1,t))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),n&&e.emitEvent!==!1&&this._events.next(new R(!0,t))}markAsPending(e={}){this.status=I;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new S(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(f(c({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=T,this.errors=null,this._forEachChild(r=>{r.disable(f(c({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ee(this.value,t)),this._events.next(new S(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(f(c({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=P,this._forEachChild(t=>{t.enable(f(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(f(c({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===P||this.status===I)&&this._runAsyncValidator(t,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ee(this.value,n)),this._events.next(new S(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(f(c({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?T:P}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=I,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let t=Ye(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((t,r)=>t&&t._find(r),this)}getError(e,n){let t=n?this.get(n):this;return t&&t.errors?t.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new S(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,t)}_initObservables(){this.valueChanges=new b,this.statusChanges=new b}_calculateStatus(){return this._allControlsDisabled()?T:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(I)?I:this._anyControlsHaveStatus(Z)?Z:P}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new R(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new j(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){se(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=xt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}},O=class extends x{constructor(e,n,t){super(Ce(n),De(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,t={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){st(this,!0,e),Object.keys(e).forEach(t=>{rt(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(t=>{let r=this.controls[t];r&&r.patchValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((t,r)=>{t.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,t)=>(e[t]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,t)=>t._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let t=this.controls[n];t&&e(t,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,t]of Object.entries(this.controls))if(this.contains(n)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,t,r)=>((t.enabled||this.disabled)&&(n[r]=t.value),n))}_reduceChildren(e,n){let t=e;return this._forEachChild((r,s)=>{t=n(t,r,s)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var ge=class extends O{};var L=new V("CallSetDisabledState",{providedIn:"root",factory:()=>oe}),oe="always";function ot(i,e){return[...e.path,i]}function te(i,e,n=oe){Ve(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),kt(i,e),Tt(i,e),Pt(i,e),Nt(i,e)}function Be(i,e,n=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),ne(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ie(i,e){i.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Nt(i,e){if(e.valueAccessor.setDisabledState){let n=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(n),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(n)})}}function Ve(i,e){let n=it(i);e.validator!==null?i.setValidators(Ge(n,e.validator)):typeof n=="function"&&i.setValidators([n]);let t=nt(i);e.asyncValidator!==null?i.setAsyncValidators(Ge(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let r=()=>i.updateValueAndValidity();ie(e._rawValidators,r),ie(e._rawAsyncValidators,r)}function ne(i,e){let n=!1;if(i!==null){if(e.validator!==null){let r=it(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(n=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let r=nt(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(n=!0,i.setAsyncValidators(s))}}}let t=()=>{};return ie(e._rawValidators,t),ie(e._rawAsyncValidators,t),n}function kt(i,e){e.valueAccessor.registerOnChange(n=>{i._pendingValue=n,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&at(i,e)})}function Pt(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&at(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function at(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Tt(i,e){let n=(t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)};i.registerOnChange(n),e._registerOnDestroy(()=>{i._unregisterOnChange(n)})}function lt(i,e){i==null,Ve(i,e)}function Gt(i,e){return ne(i,e)}function ut(i,e){if(!i.hasOwnProperty("model"))return!1;let n=i.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function Rt(i){return Object.getPrototypeOf(i.constructor)===ve}function ct(i,e){i._syncPendingControls(),e.forEach(n=>{let t=n.control;t.updateOn==="submit"&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function dt(i,e){if(!e)return null;Array.isArray(e);let n,t,r;return e.forEach(s=>{s.constructor===qe?n=s:Rt(s)?t=s:r=s}),r||t||n||null}function jt(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}var Bt={provide:v,useExisting:p(()=>Ut)},G=Promise.resolve(),Ut=(()=>{let e=class e extends v{get submitted(){return m(this.submittedReactive)}constructor(t,r,s){super(),this.callSetDisabledState=s,this._submitted=F(()=>this.submittedReactive()),this.submittedReactive=E(!1),this._directives=new Set,this.ngSubmit=new b,this.form=new O({},ye(t),_e(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){G.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),te(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){G.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){G.then(()=>{let r=this._findContainer(t.path),s=new O({});lt(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){G.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){G.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),ct(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(r){return new(r||e)(a(H,10),a(re,10),a(L,8))},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&w("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g([Bt]),d]});let i=e;return i})();function Ue(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}function He(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var B=class extends x{constructor(e=null,n,t){super(Ce(n),De(t,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(n)&&(n.nonNullable||n.initialValueIsDefault)&&(He(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){He(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Ht=i=>i instanceof B;var Lt={provide:A,useExisting:p(()=>Wt)},Le=Promise.resolve(),Wt=(()=>{let e=class e extends A{constructor(t,r,s,o,l,W){super(),this._changeDetectorRef=l,this.callSetDisabledState=W,this.control=new B,this._registered=!1,this.name="",this.update=new b,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=dt(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ut(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){te(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()&&this.name}_updateValue(t){Le.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,s=r!==0&&ce(r);Le.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ot(t,this._parent):[t]}};e.\u0275fac=function(r){return new(r||e)(a(v,9),a(H,10),a(re,10),a(U,10),a(xe,8),a(L,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g([Lt]),d,k]});let i=e;return i})(),bi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),$t={provide:U,useExisting:p(()=>qt),multi:!0},qt=(()=>{let e=class e extends ve{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,s){r&1&&w("input",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},features:[g([$t]),d]});let i=e;return i})();var ht=new V("");var zt={provide:v,useExisting:p(()=>Kt)},Kt=(()=>{let e=class e extends v{get submitted(){return m(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,s){super(),this.callSetDisabledState=s,this._submitted=F(()=>this._submittedReactive()),this._submittedReactive=E(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new b,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ne(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let r=this.form.get(t.path);return te(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Be(t.control||null,t,!1),jt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),ct(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new fe(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new pe(this.form))}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,s=this.form.get(t.path);r!==s&&(Be(r||null,t),Ht(s)&&(te(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);lt(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let r=this.form.get(t.path);r&&Gt(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&ne(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(a(H,10),a(re,10),a(L,8))},e.\u0275dir=u({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&w("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g([zt]),d,k]});let i=e;return i})();var Zt={provide:A,useExisting:p(()=>Yt)},Yt=(()=>{let e=class e extends A{set isDisabled(t){}constructor(t,r,s,o,l){super(),this._ngModelWarningConfig=l,this._added=!1,this.name=null,this.update=new b,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=dt(this,o)}ngOnChanges(t){this._added||this._setUpControl(),ut(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(a(v,13),a(H,10),a(re,10),a(U,10),a(ht,8))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[g([Zt]),d,k]});let i=e;return i})();var Jt=(()=>{let e=class e{constructor(){this._validator=Y}ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Y,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,features:[k]});let i=e;return i})();var Xt={provide:H,useExisting:p(()=>Qt),multi:!0};var Qt=(()=>{let e=class e extends Jt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=ce,this.createValidator=t=>Ke}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&Ie("required",s._enabled?"":null)},inputs:{required:"required"},features:[g([Xt]),d]});let i=e;return i})();var ft=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({});let i=e;return i})(),me=class extends x{constructor(e,n,t){super(Ce(n),De(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,t={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(e,n={}){let t=this._adjustIndex(e);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){st(this,!1,e),e.forEach((t,r)=>{rt(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((t,r)=>{t.reset(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,t)=>t._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,t)=>{e(n,t)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function We(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var ei=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let t=new e;return t.useNonNullable=!0,t}group(t,r=null){let s=this._reduceControls(t),o={};return We(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new O(s,o)}record(t,r=null){let s=this._reduceControls(t);return new ge(s,r)}control(t,r,s){let o={};return this.useNonNullable?(We(r)?o=r:(o.validators=r,o.asyncValidators=s),new B(t,f(c({},o),{nonNullable:!0}))):new B(t,r,s)}array(t,r,s){let o=t.map(l=>this._createControl(l));return new me(o,r,s)}_reduceControls(t){let r={};return Object.keys(t).forEach(s=>{r[s]=this._createControl(t[s])}),r}_createControl(t){if(t instanceof B)return t;if(t instanceof x)return t;if(Array.isArray(t)){let r=t[0],s=t.length>1?t[1]:null,o=t.length>2?t[2]:null;return this.control(r,s,o)}else return this.control(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ai=(()=>{let e=class e extends ei{group(t,r=null){return super.group(t,r)}control(t,r,s){return super.control(t,r,s)}array(t,r,s){return super.array(t,r,s)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Mi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:L,useValue:t.callSetDisabledState??oe}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({imports:[ft]});let i=e;return i})(),Ei=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:ht,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:L,useValue:t.callSetDisabledState??oe}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({imports:[ft]});let i=e;return i})();var C=function(i){return i.SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",i.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",i.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",i.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",i.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",i.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",i}(C||{});var D=function(i){return i[i.Shopee=0]="Shopee",i[i.Tokopedia=1]="Tokopedia",i[i.WooCommerce=2]="WooCommerce",i[i.None=3]="None",i[i.KalCare=4]="KalCare",i[i.ShopeeV2=5]="ShopeeV2",i[i.Tiktok=6]="Tiktok",i[i.Lazada=7]="Lazada",i}(D||{});var h=class h{static StringFormat(e,...n){for(let t=0;t<n.length;t++)e=e.replace(`{${t}}`,n[t]);return e}static IsNotEmpty(e){return e!=""&&e!=h.GuidEmpty&&e!=null&&e!=null}static IsEmpty(e){return e==""||e==null||e==null||e==h.GuidEmpty}static FilterByID(e,n){try{let t=e.filter(r=>r.ID==n);if(t.length>0)return t[0]}catch{console.log("error filter")}return null}static DateOnly(e){return e?new Date(new Date(e).toDateString()):new Date(new Date().toDateString())}static GenerateYears(e,n,t){var r=-1;(n==null||n==null)&&(n=11),(t==null||t==null||!t)&&(r=1);for(var s=[],o=0;o<n;o++)s.push(e+o*r);return s}static lastXDays(e){let n=new Date;return new Date(new Date().setDate(n.getDate()-e))}static getChannelLogoByTypeId(e){let n;switch(e){case D.Tokopedia:n=C.TOKOPEDIA;break;case D.ShopeeV2:n=C.SHOOPE;break;case D.WooCommerce:n=C.WOOCOMMERCE;break;case D.Lazada:n=C.LAZADA;break;case D.Tiktok:n=C.TIKTOK;break;case D.KalCare:n=C.KALCARE;break}return n}static compare(e,n,t){return(e<n?-1:1)*(t?1:-1)}static Guid_NewGuid(){var e=new Date().getTime(),n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?r:r&3|8).toString(16)});return n}static numberOnly(e){let n=e.which?e.which:e.keyCode;return!(n>31&&(n<48||n>57))}static differentInDays(e,n){let t=n.getTime()-e.getTime();return Math.floor(t/(1e3*3600*24))}};h.apiBase="https://"+localStorage.getItem("Domain")+"/API/",h.GuidEmpty="00000000-0000-0000-0000-000000000000",h.DecimalMinValue="-7.922816251426434e+28",h.InputLockTimeSpan=500,h.MinDate="0001-01-01T00:00:00",h.MinTime="00:00:00",h.IntMinValue=-2147483648,h.Month=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}];var pt=h;var Bi=(()=>{let e=class e{constructor(t,r,s){this.httpService=t,this.httpClientService=r,this.toastr=s}configure2FA(t){return this.httpService.post("/api/user/setup_2fa",t)}validateCode(t,r){let s="this.authService.loginResponse?.Token",o=new Oe({"Content-Type":"application/json","Cache-Control":"no-cache"});o=o.append("Authorization","Bearer "+s);let l={ValidationCode:t,UserID:r};return this.httpClientService.post("/api/authentication/validate_2fa ",l,{headers:o}).pipe(Fe(W=>(this.toastr.error(W?.error?.Message,"Error - "+W.status),Ae)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/user/Setup_2FA",t)}};e.\u0275fac=function(r){return new(r||e)(z(Pe),z(Ne),z(ke))},e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{U as a,vt as b,qe as c,H as d,Te as e,v as f,A as g,Ci as h,Di as i,O as j,Ut as k,Wt as l,bi as m,qt as n,Kt as o,Yt as p,Qt as q,ei as r,Ai as s,Mi as t,Ei as u,pt as v,Bi as w};
|
|
1
|
+
import{Ba as a,E as Fe,Fb as g,Ga as le,La as E,Na as d,Pc as ke,Ra as Ie,Sb as Se,Sc as Pe,Ua as ue,V as $,W as p,Wb as xe,X as N,Xb as ce,Y as q,Z as V,Zb as F,_ as z,_b as m,a as c,ac as de,b as f,da as K,ea as u,ia as k,j as be,kb as w,na as M,o as Ae,p as Me,qa as b,rc as Oe,s as Ee,sa as ae,sc as Ne,w as we}from"./chunk-XXMTZ2NG.js";var $e=(()=>{let e=class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(r){return new(r||e)(a(le),a(ae))},e.\u0275dir=u({type:e});let i=e;return i})(),ve=(()=>{let e=class e extends $e{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[d]});let i=e;return i})(),U=new V(""),mt={provide:U,useExisting:p(()=>vt),multi:!0},vt=(()=>{let e=class e extends ve{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&w("change",function(l){return s.onChange(l.target.checked)})("blur",function(){return s.onTouched()})},features:[g([mt]),d]});let i=e;return i})(),yt={provide:U,useExisting:p(()=>qe),multi:!0};function _t(){let i=de()?de().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ct=new V(""),qe=(()=>{let e=class e extends $e{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!_t())}writeValue(t){let r=t??"";this.setProperty("value",r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(r){return new(r||e)(a(le),a(ae),a(Ct,8))},e.\u0275dir=u({type:e,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(r,s){r&1&&w("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[g([yt]),d]});let i=e;return i})();function y(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ze(i){return i!=null&&typeof i.length=="number"}var H=new V(""),re=new V(""),Dt=/^(?=.{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])?)*$/,Te=class{static min(e){return Vt(e)}static max(e){return bt(e)}static required(e){return Ke(e)}static requiredTrue(e){return At(e)}static email(e){return Mt(e)}static minLength(e){return Et(e)}static maxLength(e){return wt(e)}static pattern(e){return Ft(e)}static nullValidator(e){return Y(e)}static compose(e){return et(e)}static composeAsync(e){return tt(e)}};function Vt(i){return e=>{if(y(e.value)||y(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n<i?{min:{min:i,actual:e.value}}:null}}function bt(i){return e=>{if(y(e.value)||y(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>i?{max:{max:i,actual:e.value}}:null}}function Ke(i){return y(i.value)?{required:!0}:null}function At(i){return i.value===!0?null:{required:!0}}function Mt(i){return y(i.value)||Dt.test(i.value)?null:{email:!0}}function Et(i){return e=>y(e.value)||!ze(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function wt(i){return e=>ze(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Ft(i){if(!i)return Y;let e,n;return typeof i=="string"?(n="",i.charAt(0)!=="^"&&(n+="^"),n+=i,i.charAt(i.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=i.toString(),e=i),t=>{if(y(t.value))return null;let r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function Y(i){return null}function Ze(i){return i!=null}function Ye(i){return Se(i)?Me(i):i}function Je(i){let e={};return i.forEach(n=>{e=n!=null?c(c({},e),n):e}),Object.keys(e).length===0?null:e}function Xe(i,e){return e.map(n=>n(i))}function It(i){return!i.validate}function Qe(i){return i.map(e=>It(e)?e:n=>e.validate(n))}function et(i){if(!i)return null;let e=i.filter(Ze);return e.length==0?null:function(n){return Je(Xe(n,e))}}function ye(i){return i!=null?et(Qe(i)):null}function tt(i){if(!i)return null;let e=i.filter(Ze);return e.length==0?null:function(n){let t=Xe(n,e).map(Ye);return we(t).pipe(Ee(Je))}}function _e(i){return i!=null?tt(Qe(i)):null}function Ge(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function it(i){return i._rawValidators}function nt(i){return i._rawAsyncValidators}function he(i){return i?Array.isArray(i)?i:[i]:[]}function J(i,e){return Array.isArray(i)?i.includes(e):i===e}function Re(i,e){let n=he(e);return he(i).forEach(r=>{J(n,r)||n.push(r)}),n}function je(i,e){return he(e).filter(n=>!J(i,n))}var X=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=ye(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=_e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},v=class extends X{get formDirective(){return null}get path(){return null}},A=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Q=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},St={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},_i=f(c({},St),{"[class.ng-submitted]":"isSubmitted"}),Ci=(()=>{let e=class e extends Q{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(a(A,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&ue("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[d]});let i=e;return i})(),Di=(()=>{let e=class e extends Q{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(a(v,10))},e.\u0275dir=u({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&ue("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[d]});let i=e;return i})();var P="VALID",Z="INVALID",I="PENDING",T="DISABLED",_=class{},ee=class extends _{constructor(e,n){super(),this.value=e,this.source=n}},R=class extends _{constructor(e,n){super(),this.pristine=e,this.source=n}},j=class extends _{constructor(e,n){super(),this.touched=e,this.source=n}},S=class extends _{constructor(e,n){super(),this.status=e,this.source=n}},fe=class extends _{constructor(e){super(),this.source=e}},pe=class extends _{constructor(e){super(),this.source=e}};function Ce(i){return(se(i)?i.validators:i)||null}function xt(i){return Array.isArray(i)?ye(i):i||null}function De(i,e){return(se(e)?e.asyncValidators:i)||null}function Ot(i){return Array.isArray(i)?_e(i):i||null}function se(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function rt(i,e,n){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new $(1e3,"");if(!t[n])throw new $(1001,"")}function st(i,e,n){i._forEachChild((t,r)=>{if(n[r]===void 0)throw new $(1002,"")})}var x=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=F(()=>this.statusReactive()),this.statusReactive=E(void 0),this._pristine=F(()=>this.pristineReactive()),this.pristineReactive=E(!0),this._touched=F(()=>this.touchedReactive()),this.touchedReactive=E(!1),this._events=new be,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(e){m(()=>this.statusReactive.set(e))}get valid(){return this.status===P}get invalid(){return this.status===Z}get pending(){return this.status==I}get disabled(){return this.status===T}get enabled(){return this.status!==T}get pristine(){return m(this.pristineReactive)}set pristine(e){m(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(e){m(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Re(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(je(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(je(e,this._rawAsyncValidators))}hasValidator(e){return J(this._rawValidators,e)}hasAsyncValidator(e){return J(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(f(c({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new j(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),n&&e.emitEvent!==!1&&this._events.next(new j(!1,t))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(f(c({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new R(!1,t))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),n&&e.emitEvent!==!1&&this._events.next(new R(!0,t))}markAsPending(e={}){this.status=I;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new S(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(f(c({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=T,this.errors=null,this._forEachChild(r=>{r.disable(f(c({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ee(this.value,t)),this._events.next(new S(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(f(c({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=P,this._forEachChild(t=>{t.enable(f(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(f(c({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===P||this.status===I)&&this._runAsyncValidator(t,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ee(this.value,n)),this._events.next(new S(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(f(c({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?T:P}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=I,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let t=Ye(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((t,r)=>t&&t._find(r),this)}getError(e,n){let t=n?this.get(n):this;return t&&t.errors?t.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new S(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,t)}_initObservables(){this.valueChanges=new b,this.statusChanges=new b}_calculateStatus(){return this._allControlsDisabled()?T:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(I)?I:this._anyControlsHaveStatus(Z)?Z:P}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new R(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new j(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){se(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=xt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}},O=class extends x{constructor(e,n,t){super(Ce(n),De(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,t={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){st(this,!0,e),Object.keys(e).forEach(t=>{rt(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(t=>{let r=this.controls[t];r&&r.patchValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((t,r)=>{t.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,t)=>(e[t]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,t)=>t._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let t=this.controls[n];t&&e(t,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,t]of Object.entries(this.controls))if(this.contains(n)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,t,r)=>((t.enabled||this.disabled)&&(n[r]=t.value),n))}_reduceChildren(e,n){let t=e;return this._forEachChild((r,s)=>{t=n(t,r,s)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var ge=class extends O{};var L=new V("CallSetDisabledState",{providedIn:"root",factory:()=>oe}),oe="always";function ot(i,e){return[...e.path,i]}function te(i,e,n=oe){Ve(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),kt(i,e),Tt(i,e),Pt(i,e),Nt(i,e)}function Be(i,e,n=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),ne(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ie(i,e){i.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Nt(i,e){if(e.valueAccessor.setDisabledState){let n=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(n),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(n)})}}function Ve(i,e){let n=it(i);e.validator!==null?i.setValidators(Ge(n,e.validator)):typeof n=="function"&&i.setValidators([n]);let t=nt(i);e.asyncValidator!==null?i.setAsyncValidators(Ge(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let r=()=>i.updateValueAndValidity();ie(e._rawValidators,r),ie(e._rawAsyncValidators,r)}function ne(i,e){let n=!1;if(i!==null){if(e.validator!==null){let r=it(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(n=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let r=nt(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(n=!0,i.setAsyncValidators(s))}}}let t=()=>{};return ie(e._rawValidators,t),ie(e._rawAsyncValidators,t),n}function kt(i,e){e.valueAccessor.registerOnChange(n=>{i._pendingValue=n,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&at(i,e)})}function Pt(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&at(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function at(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Tt(i,e){let n=(t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)};i.registerOnChange(n),e._registerOnDestroy(()=>{i._unregisterOnChange(n)})}function lt(i,e){i==null,Ve(i,e)}function Gt(i,e){return ne(i,e)}function ut(i,e){if(!i.hasOwnProperty("model"))return!1;let n=i.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function Rt(i){return Object.getPrototypeOf(i.constructor)===ve}function ct(i,e){i._syncPendingControls(),e.forEach(n=>{let t=n.control;t.updateOn==="submit"&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function dt(i,e){if(!e)return null;Array.isArray(e);let n,t,r;return e.forEach(s=>{s.constructor===qe?n=s:Rt(s)?t=s:r=s}),r||t||n||null}function jt(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}var Bt={provide:v,useExisting:p(()=>Ut)},G=Promise.resolve(),Ut=(()=>{let e=class e extends v{get submitted(){return m(this.submittedReactive)}constructor(t,r,s){super(),this.callSetDisabledState=s,this._submitted=F(()=>this.submittedReactive()),this.submittedReactive=E(!1),this._directives=new Set,this.ngSubmit=new b,this.form=new O({},ye(t),_e(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){G.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),te(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){G.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){G.then(()=>{let r=this._findContainer(t.path),s=new O({});lt(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){G.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){G.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),ct(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(r){return new(r||e)(a(H,10),a(re,10),a(L,8))},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&w("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g([Bt]),d]});let i=e;return i})();function Ue(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}function He(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var B=class extends x{constructor(e=null,n,t){super(Ce(n),De(t,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(n)&&(n.nonNullable||n.initialValueIsDefault)&&(He(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){He(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Ht=i=>i instanceof B;var Lt={provide:A,useExisting:p(()=>Wt)},Le=Promise.resolve(),Wt=(()=>{let e=class e extends A{constructor(t,r,s,o,l,W){super(),this._changeDetectorRef=l,this.callSetDisabledState=W,this.control=new B,this._registered=!1,this.name="",this.update=new b,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=dt(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ut(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){te(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()&&this.name}_updateValue(t){Le.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,s=r!==0&&ce(r);Le.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ot(t,this._parent):[t]}};e.\u0275fac=function(r){return new(r||e)(a(v,9),a(H,10),a(re,10),a(U,10),a(xe,8),a(L,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g([Lt]),d,k]});let i=e;return i})(),bi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),$t={provide:U,useExisting:p(()=>qt),multi:!0},qt=(()=>{let e=class e extends ve{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,s){r&1&&w("input",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},features:[g([$t]),d]});let i=e;return i})();var ht=new V("");var zt={provide:v,useExisting:p(()=>Kt)},Kt=(()=>{let e=class e extends v{get submitted(){return m(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,s){super(),this.callSetDisabledState=s,this._submitted=F(()=>this._submittedReactive()),this._submittedReactive=E(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new b,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ne(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let r=this.form.get(t.path);return te(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Be(t.control||null,t,!1),jt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),ct(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new fe(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new pe(this.form))}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,s=this.form.get(t.path);r!==s&&(Be(r||null,t),Ht(s)&&(te(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);lt(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let r=this.form.get(t.path);r&&Gt(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&ne(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(a(H,10),a(re,10),a(L,8))},e.\u0275dir=u({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&w("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g([zt]),d,k]});let i=e;return i})();var Zt={provide:A,useExisting:p(()=>Yt)},Yt=(()=>{let e=class e extends A{set isDisabled(t){}constructor(t,r,s,o,l){super(),this._ngModelWarningConfig=l,this._added=!1,this.name=null,this.update=new b,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=dt(this,o)}ngOnChanges(t){this._added||this._setUpControl(),ut(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(a(v,13),a(H,10),a(re,10),a(U,10),a(ht,8))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[g([Zt]),d,k]});let i=e;return i})();var Jt=(()=>{let e=class e{constructor(){this._validator=Y}ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Y,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,features:[k]});let i=e;return i})();var Xt={provide:H,useExisting:p(()=>Qt),multi:!0};var Qt=(()=>{let e=class e extends Jt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=ce,this.createValidator=t=>Ke}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&Ie("required",s._enabled?"":null)},inputs:{required:"required"},features:[g([Xt]),d]});let i=e;return i})();var ft=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({});let i=e;return i})(),me=class extends x{constructor(e,n,t){super(Ce(n),De(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,t={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(e,n={}){let t=this._adjustIndex(e);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){st(this,!1,e),e.forEach((t,r)=>{rt(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((t,r)=>{t.reset(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,t)=>t._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,t)=>{e(n,t)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function We(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var ei=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let t=new e;return t.useNonNullable=!0,t}group(t,r=null){let s=this._reduceControls(t),o={};return We(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new O(s,o)}record(t,r=null){let s=this._reduceControls(t);return new ge(s,r)}control(t,r,s){let o={};return this.useNonNullable?(We(r)?o=r:(o.validators=r,o.asyncValidators=s),new B(t,f(c({},o),{nonNullable:!0}))):new B(t,r,s)}array(t,r,s){let o=t.map(l=>this._createControl(l));return new me(o,r,s)}_reduceControls(t){let r={};return Object.keys(t).forEach(s=>{r[s]=this._createControl(t[s])}),r}_createControl(t){if(t instanceof B)return t;if(t instanceof x)return t;if(Array.isArray(t)){let r=t[0],s=t.length>1?t[1]:null,o=t.length>2?t[2]:null;return this.control(r,s,o)}else return this.control(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ai=(()=>{let e=class e extends ei{group(t,r=null){return super.group(t,r)}control(t,r,s){return super.control(t,r,s)}array(t,r,s){return super.array(t,r,s)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=M(e)))(s||e)}})(),e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Mi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:L,useValue:t.callSetDisabledState??oe}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({imports:[ft]});let i=e;return i})(),Ei=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:ht,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:L,useValue:t.callSetDisabledState??oe}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=K({type:e}),e.\u0275inj=q({imports:[ft]});let i=e;return i})();var C=function(i){return i.SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",i.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",i.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",i.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",i.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",i.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",i}(C||{});var D=function(i){return i[i.Shopee=0]="Shopee",i[i.Tokopedia=1]="Tokopedia",i[i.WooCommerce=2]="WooCommerce",i[i.None=3]="None",i[i.KalCare=4]="KalCare",i[i.ShopeeV2=5]="ShopeeV2",i[i.Tiktok=6]="Tiktok",i[i.Lazada=7]="Lazada",i}(D||{});var h=class h{static StringFormat(e,...n){for(let t=0;t<n.length;t++)e=e.replace(`{${t}}`,n[t]);return e}static IsNotEmpty(e){return e!=""&&e!=h.GuidEmpty&&e!=null&&e!=null}static IsEmpty(e){return e==""||e==null||e==null||e==h.GuidEmpty}static FilterByID(e,n){try{let t=e.filter(r=>r.ID==n);if(t.length>0)return t[0]}catch{console.log("error filter")}return null}static DateOnly(e){return e?new Date(new Date(e).toDateString()):new Date(new Date().toDateString())}static GenerateYears(e,n,t){var r=-1;(n==null||n==null)&&(n=11),(t==null||t==null||!t)&&(r=1);for(var s=[],o=0;o<n;o++)s.push(e+o*r);return s}static lastXDays(e){let n=new Date;return new Date(new Date().setDate(n.getDate()-e))}static getChannelLogoByTypeId(e){let n;switch(e){case D.Tokopedia:n=C.TOKOPEDIA;break;case D.ShopeeV2:n=C.SHOOPE;break;case D.WooCommerce:n=C.WOOCOMMERCE;break;case D.Lazada:n=C.LAZADA;break;case D.Tiktok:n=C.TIKTOK;break;case D.KalCare:n=C.KALCARE;break}return n}static compare(e,n,t){return(e<n?-1:1)*(t?1:-1)}static Guid_NewGuid(){var e=new Date().getTime(),n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?r:r&3|8).toString(16)});return n}static numberOnly(e){let n=e.which?e.which:e.keyCode;return!(n>31&&(n<48||n>57))}static differentInDays(e,n){let t=n.getTime()-e.getTime();return Math.floor(t/(1e3*3600*24))}};h.apiBase="https://"+localStorage.getItem("Domain")+"/API/",h.GuidEmpty="00000000-0000-0000-0000-000000000000",h.DecimalMinValue="-7.922816251426434e+28",h.InputLockTimeSpan=500,h.MinDate="0001-01-01T00:00:00",h.MinTime="00:00:00",h.IntMinValue=-2147483648,h.Month=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}];var pt=h;var Bi=(()=>{let e=class e{constructor(t,r,s){this.httpService=t,this.httpClientService=r,this.toastr=s}configure2FA(t){return this.httpService.post("/api/user/setup_2fa",t)}validateCode(t,r){let s="this.authService.loginResponse?.Token",o=new Oe({"Content-Type":"application/json","Cache-Control":"no-cache"});o=o.append("Authorization","Bearer "+s);let l={ValidationCode:t,UserID:r};return this.httpClientService.post("/api/authentication/validate_2fa ",l,{headers:o}).pipe(Fe(W=>(this.toastr.error(W?.error?.Message,"Error - "+W.status),Ae)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/user/Setup_2FA",t)}};e.\u0275fac=function(r){return new(r||e)(z(Pe),z(Ne),z(ke))},e.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{U as a,vt as b,qe as c,H as d,Te as e,v as f,A as g,Ci as h,Di as i,O as j,Ut as k,Wt as l,bi as m,qt as n,Kt as o,Yt as p,Qt as q,ei as r,Ai as s,Mi as t,Ei as u,pt as v,Bi as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as s}from"./chunk-
|
|
1
|
+
import{X as s}from"./chunk-XXMTZ2NG.js";var p={production:!0,threshold:{TotalOrderInvoice:25},payment:{AvgOrder:3e4}};var u=(()=>{let e=class e{constructor(){}GetNamePOS(){let r=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(r.access_token)}ParseToken(r){try{let n=r.split(".")[0].replace("-","+").replace("_","/"),c=JSON.parse(window.atob(n)),l=r.split(".")[1].replace("-","+").replace("_","/"),o=JSON.parse(window.atob(l));return o.header=c,o}catch{return!1}}};e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{u as a,p as b};
|