PageSourceSearch

https://www.spreadex.com/account-application2/sports/en-GB/chunk-56DJKVMX.js

js spreadex.com collected 2026-10-02 03:13:15 UTC 132,303 bytes, 4 lines download raw bytes

1import{a as Je,b as hr}from"./chunk-4BOKJDBJ.js";import{a as rr,b as $t,j as se,r as Xe,t as Wt,v as Me,w as dr}from"./chunk-4NFZSXYS.js";import{a as Zt,b as fe,c as et}from"./chunk-6VVSSWRX.js";import{b as Yt}from"./chunk-7VRV5BUA.js";import{a as ft,c as lr,h as cr,r as ur}from"./chunk-64M6PWWM.js";import{b as or,c as ar}from"./chunk-GF464EPQ.js";import{E as de,F as nr,G as sr,e as Gt,f as dt,h as Qi,i as Xi,j as Ji,n as er,t as tr,v as ir,x as jt}from"./chunk-WHNEEL5T.js";import{a as yi,e as Ut,h as qi,i as Ki,n as ht,r as be,t as ne}from"./chunk-6PK7B3WH.js";import{$ as N,$a as M,$b as Se,A as me,Bb as Vt,C as ci,Cb as wt,Cc as X,Da as Nt,Db as _e,Dc as w,E as Fi,Eb as O,Ec as Ft,Fb as H,Gb as Ve,H as Li,Hb as we,Hc as Lt,Ib as Ie,Ic as p,Jb as Wi,Jc as Fe,Mb as mi,Mc as Bt,Na as qe,Nb as It,Nc as vi,Ob as Rt,Oc as zi,Pa as T,Pc as _i,Rb as F,S as at,Sb as Zi,Tb as ie,Tc as re,U as Dt,Ua as Ne,Ub as ye,Uc as Ht,V as At,Vb as z,X as B,Xa as ut,Y as We,Z as ui,Zb as Pt,_a as Q,_b as Re,ac as gi,ba as f,bb as Bi,cc as Pe,ec as U,f as wi,fb as V,fc as Ce,gb as pi,gc as Oe,ha as Ae,hb as S,i as Ii,ia as Te,j as Ri,ja as Ze,jb as P,k as Ye,ka as Tt,la as hi,lb as Hi,ma as lt,mb as Ui,na as ze,ob as Gi,q as li,qc as x,r as te,ra as k,rb as ji,sb as $i,uc as Ke,va as di,vc as Qe,w as xt,wa as fi,wb as Z,xa as ct,xb as ge,y as Pi,ya as W,yb as ve,yc as Ot,z as Oi,za as j,zb as Yi}from"./chunk-MTJBHRHC.js";import{a as A,b as Y,e as m,f as $e,g as Et,h as kt,i as ee}from"./chunk-FLZO26M7.js";var ro=(r,t,s,e)=>f(Me).nextPageUrl()===e.url;function fr(r){return Object.fromEntries(Object.entries(r).map(([t,s])=>[s,t]))}var pe=fr(se);var _o=(()=>{let t=class t{constructor(){this.navigationService=f(Me),this.el=f(j),this.renderer=f(Q),this.router=f(jt),this.locationStrategy=f(Ut),this.activatedRoute=f(ir),this.isAnchorElement=this.el.nativeElement.tagName==="A",this.sxNavLink=p.required(),this.flow=p(),this.target=p(),this.urlTree=w(()=>this.navigationService.createUrlTreeForPage({parent:this.flow()?this.flow().toLowerCase():this.activatedRoute.snapshot.parent?.url[0].path??"/",value:this.sxNavLink().toLowerCase()})),this._updateHrefEffect=Ft(()=>{this.updateHref(this.urlTree())}),this.isAnchorElement&&this.router.events.pipe(de(),me(e=>e instanceof tr)).subscribe(()=>{this.updateHref(this.urlTree())})}updateHref(e){let i=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(e));this.renderer.setAttribute(this.el.nativeElement,"href",i)}onClick(e,i,n,o,l){return this.isAnchorElement&&(e!==0||i||n||o||l||typeof this.target()=="string"&&this.target()!=="_self")?!0:(this.navigationService.navigateByUrl(this.urlTree()),!this.isAnchorElement)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["","sxNavLink",""]],hostVars:1,hostBindings:function(i,n){i&1&&F("click",function(l){return n.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),i&2&&Z("target",n.target())},inputs:{sxNavLink:[1,"sxNavLink"],flow:[1,"flow"],target:[1,"target"]}});let r=t;return r})();function bo(){return{provide:ji,multi:!0,useFactory:pn}}function pn(){let r=f(Me);return()=>{r.initialise()}}var Mr=(()=>{let t=class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}};m(t,"\u0275fac",function(i){return new(i||t)(M(Q),M(j))}),m(t,"\u0275dir",S({type:t}));let r=t;return r})(),_t=(()=>{let t=class t extends Mr{};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,features:[P]}));let r=t;return r})(),oe=new N(""),mn={provide:oe,useExisting:B(()=>gn),multi:!0},gn=(()=>{let t=class t extends _t{writeValue(e){this.setProperty("checked",e)}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,n){i&1&&F("change",function(l){return n.onChange(l.target.checked)})("blur",function(){return n.onTouched()})},standalone:!1,features:[x([mn]),P]}));let r=t;return r})(),vn={provide:oe,useExisting:B(()=>Er),multi:!0};function _n(){let r=yi()?yi().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}var yn=new N(""),Er=(()=>{let t=class t extends Mr{_compositionMode;_composing=!1;constructor(e,i,n){super(e,i),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!_n())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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)}};m(t,"\u0275fac",function(i){return new(i||t)(M(Q),M(j),M(yn,8))}),m(t,"\u0275dir",S({type:t,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(i,n){i&1&&F("input",function(l){return n._handleInput(l.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(l){return n._compositionEnd(l.target.value)})},standalone:!1,features:[x([vn]),P]}));let r=t;return r})();function Sn(r){return r==null||kr(r)===0}function kr(r){return r==null?null:Array.isArray(r)||typeof r=="string"?r.length:r instanceof Set?r.size:null}var L=new N(""),bi=new N("");function Cn(r){return t=>{if(t.value==null||r==null)return null;let s=parseFloat(t.value);return!isNaN(s)&&s<r?{min:{min:r,actual:t.value}}:null}}function bn(r){return Sn(r.value)?{required:!0}:null}function Mn(r){return t=>{let s=t.value?.length??kr(t.value);return s!==null&&s>r?{maxlength:{requiredLength:r,actualLength:s}}:null}}function pr(r){return null}function xr(r){return r!=null}function Dr(r){return Gi(r)?Ri(r):r}function Ar(r){let t={};return r.forEach(s=>{t=s!=null?A(A({},t),s):t}),Object.keys(t).length===0?null:t}function Tr(r,t){return t.map(s=>s(r))}function En(r){return!r.validate}function Nr(r){return r.map(t=>En(t)?t:s=>t.validate(s))}function kn(r){if(!r)return null;let t=r.filter(xr);return t.length==0?null:function(s){return Ar(Tr(s,t))}}function Mi(r){return r!=null?kn(Nr(r)):null}function xn(r){if(!r)return null;let t=r.filter(xr);return t.length==0?null:function(s){let e=Tr(s,t).map(Dr);
1return xt(e).pipe(te(Ar))}}function Ei(r){return r!=null?xn(Nr(r)):null}function mr(r,t){return r===null?[t]:Array.isArray(r)?[...r,t]:[r,t]}function Dn(r){return r._rawValidators}function An(r){return r._rawAsyncValidators}function Si(r){return r?Array.isArray(r)?r:[r]:[]}function qt(r,t){return Array.isArray(r)?r.includes(t):r===t}function gr(r,t){let s=Si(t);return Si(r).forEach(i=>{qt(s,i)||s.push(i)}),s}function vr(r,t){return Si(t).filter(s=>!qt(r,s))}var Kt=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Mi(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ei(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,s){return this.control?this.control.hasError(t,s):!1}getError(t,s){return this.control?this.control.getError(t,s):null}},$=class extends Kt{name;get formDirective(){return null}get path(){return null}},He=class extends Kt{_parent=null;name=null;valueAccessor=null},Qt=class{_cd;constructor(t){this._cd=t}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}},Tn={"[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"},Zo=Y(A({},Tn),{"[class.ng-submitted]":"isSubmitted"}),zo=(()=>{let t=class t extends Qt{constructor(e){super(e)}};m(t,"\u0275fac",function(i){return new(i||t)(M(He,2))}),m(t,"\u0275dir",S({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,n){i&2&&Pe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[P]}));let r=t;return r})(),qo=(()=>{let t=class t extends Qt{constructor(e){super(e)}};m(t,"\u0275fac",function(i){return new(i||t)(M($,10))}),m(t,"\u0275dir",S({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,n){i&2&&Pe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},standalone:!1,features:[P]}));let r=t;return r})();var pt="VALID",zt="INVALID",tt="PENDING",mt="DISABLED",Ee=class{}
vendor: 13,748 bytes, line 1
1,Xt=class extends Ee{value;source;constructor(t,s){super(),this.value=t,this.source=s}},Le=class extends Ee{pristine;source;constructor(t,s){super(),this.pristine=t,this.source=s}},Be=class extends Ee{touched;source;constructor(t,s){super(),this.touched=t,this.source=s}},it=class extends Ee{status;source;constructor(t,s){super(),this.status=t,this.source=s}},Ci=class extends Ee{source;constructor(t){super(),this.source=t}},rt=class extends Ee{source;constructor(t){super(),this.source=t}};function Vr(r){return(ei(r)?r.validators:r)||null}function Nn(r){return Array.isArray(r)?Mi(r):r||null}function wr(r,t){return(ei(t)?t.asyncValidators:r)||null}function Vn(r){return Array.isArray(r)?Ei(r):r||null}function ei(r){return r!=null&&!Array.isArray(r)&&typeof r=="object"}function wn(r,t,s){let e=r.controls;if(!(t?Object.keys(e):e).length)throw new At(1e3,"");if(!e[s])throw new At(1001,"")}function In(r,t,s){r._forEachChild((e,i)=>{if(s[i]===void 0)throw new At(1002,"")})}var Jt=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,s){this._assignValidators(t),this._assignAsyncValidators(s)}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 status(){return X(this.statusReactive)}set status(t){X(()=>this.statusReactive.set(t))}_status=w(()=>this.statusReactive());statusReactive=k(void 0);get valid(){return this.status===pt}get invalid(){return this.status===zt}get pending(){return this.status==tt}get disabled(){return this.status===mt}get enabled(){return this.status!==mt}errors;get pristine(){return X(this.pristineReactive)}set pristine(t){X(()=>this.pristineReactive.set(t))}_pristine=w(()=>this.pristineReactive());pristineReactive=k(!0);get dirty(){return!this.pristine}get touched(){return X(this.touchedReactive)}set touched(t){X(()=>this.touchedReactive.set(t))}_touched=w(()=>this.touchedReactive());touchedReactive=k(!1);get untouched(){return!this.touched}_events=new wi;events=this._events.asObservable();valueChanges;statusChanges;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(gr(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(gr(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(vr(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(vr(t,this._rawAsyncValidators))}hasValidator(t){return qt(this._rawValidators,t)}hasAsyncValidator(t){return qt(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let s=this.touched===!1;this.touched=!0;let e=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Y(A({},t),{sourceControl:e})),s&&t.emitEvent!==!1&&this._events.next(new Be(!0,e))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(s=>s.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(s=>s.markAllAsTouched(t))}markAsUntouched(t={}){let s=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let e=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:e})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e),s&&t.emitEvent!==!1&&this._events.next(new Be(!1,e))}markAsDirty(t={}){let s=this.pristine===!0;this.pristine=!1;let e=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Y(A({},t),{sourceControl:e})),s&&t.emitEvent!==!1&&this._events.next(new Le(!1,e))}markAsPristine(t={}){let s=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let e=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),s&&t.emitEvent!==!1&&this._events.next(new Le(!0,e))}markAsPending(t={}){this.status=tt;let s=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new it(this.status,s)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Y(A({},t),{sourceControl:s}))}disable(t={}){let s=this._parentMarkedDirty(t.onlySelf);this.status=mt,this.errors=null,this._forEachChild(i=>{i.disable(Y(A({},t),{onlySelf:!0}))}),this._updateValue();let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xt(this.value,e)),this._events.next(new it(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Y(A({},t),{skipPristineCheck:s}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let s=this._parentMarkedDirty(t.onlySelf);this.status=pt,this._forEachChild(e=>{e.enable(Y(A({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Y(A({},t),{skipPristineCheck:s}),this),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(t,s){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},s),this._parent._updateTouched({},s))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let e=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pt||this.status===tt)&&this._runAsyncValidator(e,t.emitEvent)}let s=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xt(this.value,s)),this._events.next(new it(this.status,s)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Y(A({},t),{sourceControl:s}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(s=>s._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mt:pt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,s){if(this.asyncValidator){this.status=tt,this._hasOwnPendingAsyncValidator={emitEvent:s!==!1,shouldHaveEmitted:t!==!1};let e=Dr(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:s,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,s={}){this.errors=t,this._updateControlsErrors(s.emitEvent!==!1,this,s.shouldHaveEmitted)}get(t){let s=t;return s==null||(Array.isArray(s)||(s=s.split(".")),s.length===0)?null:s.reduce((e,i)=>e&&e._find(i),this)}getError(t,s){let e=s?this.get(s):this;return e&&e.errors?e.errors[t]:null}hasError(t,s){return!!this.getError(t,s)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,s,e){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||e)&&this._events.next(new it(this.status,s)),this._parent&&this._parent._updateControlsErrors(t,s,e)}_initObservables(){this.valueChanges=new Ne,this.statusChanges=new Ne}_calculateStatus(){return this._allControlsDisabled()?mt:this.errors?zt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tt)?tt:this._anyControlsHaveStatus(zt)?zt:pt}_anyControlsHaveStatus(t){return this._anyControls(s=>s.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,s){let e=!this._anyControlsDirty(),i=this.pristine!==e;this.pristine=e,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,s),i&&this._events.next(new Le(this.pristine,s))}_updateTouched(t={},s){this.touched=this._anyControlsTouched(),this._events.next(new Be(this.touched,s)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,s)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ei(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let s=this._parent&&this._parent.dirty;return!t&&!!s&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Nn(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Vn(this._rawAsyncValidators)}},vt=class extends Jt{constructor(t,s,e){super(Vr(s),wr(e,s)),this.controls=t,this._initObservables(),this._setUpdateStrategy(s),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,s){return this.controls[t]?this.controls[t]:(this.controls[t]=s,s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange),s)}addControl(t,s,e={}){this.registerControl(t,s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(t,s={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}setControl(t,s,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],s&&this.registerControl(t,s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,s={}){In(this,!0,t),Object.keys(t).forEach(e=>{wn(this,!0,e),this.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s)}patchValue(t,s={}){t!=null&&(Object.keys(t).forEach(e=>{let i=this.controls[e];i&&i.patchValue(t[e],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s))}reset(t={},s={}){this._forEachChild((e,i)=>{e.reset(t?t[i]:null,{onlySelf:!0,emitEvent:s.emitEvent})}),this._updatePristine(s,this),this._updateTouched(s,this),this.updateValueAndValidity(s),s?.emitEvent!==!1&&this._events.next(new rt(this))}getRawValue(){return this._reduceChildren({},(t,s,e)=>(t[e]=s.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(s,e)=>e._syncPendingControls()?!0:s);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(s=>{let e=this.controls[s];e&&t(e,s)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[s,e]of Object.entries(this.controls))if(this.contains(s)&&t(e))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(s,e,i)=>((e.enabled||this.disabled)&&(s[i]=e.value),s))}_reduceChildren(t,s){let e=t;return this._forEachChild((i,n)=>{e=s(e,i,n)}),e}_allControlsDisabled(){for(let 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}};var Ir=r=>r instanceof vt;var ki=new N("",{providedIn:"root",factory:()=>xi}),xi="always";function Rr(r,t){return[...t.path,r]}function Pr(r,t,s=xi){Or(r,t),t.valueAccessor.writeValue(r.value),(r.disabled||s==="always")&&t.valueAccessor.setDisabledState?.(r.disabled),Pn(r,t),Fn(r,t),On(r,t),Rn(r,t)}function _r(r,t){r.forEach(s=>{s.registerOnValidatorChange&&s.registerOnValidatorChange(t)})}function Rn(r,t){if(t.valueAccessor.setDisabledState){let s=e=>{t.valueAccessor.setDisabledState(e)};r.registerOnDisabledChange(s),t._registerOnDestroy(()=>{r._unregisterOnDisabledChange(s)})}}function Or(r,t){let s=Dn(r);t.validator!==null?r.setValidators(mr(s,t.validator)):typeof s=="function"&&r.setValidators([s]);let e=An(r);t.asyncValidator!==null?r.setAsyncValidators(mr(e,t.asyncValidator)):typeof e=="function"&&r.setAsyncValidators([e]);let i=()=>r.updateValueAndValidity();_r(t._rawValidators,i),_r(t._rawAsyncValidators,i)}function Pn(r,t){t.valueAccessor.registerOnChange(s=>{r._pendingValue=s,r._pendingChange=!0,r._pendingDirty=!0,r.updateOn==="change"&&Fr(r,t)})}function On(r,t){t.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,r.updateOn==="blur"&&r._pendingChange&&Fr(r,t),r.updateOn!=="submit"&&r.markAsTouched()})}function Fr(r,t){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Fn(r,t){let s=(e,i)=>{t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)};r.registerOnChange(s),t._registerOnDestroy(()=>{r._unregisterOnChange(s)})}function Ln(r,t){r==null,Or(r,t)}function Bn(r,t){if(!r.hasOwnProperty("model"))return!1;let s=r.model;return s.isFirstChange()?!0:!Object.is(t,s.currentValue)}function Hn(r){return Object.getPrototypeOf(r.constructor)===_t}function Un(r,t){r._syncPendingControls(),t.forEach(s=>{let e=s.control;e.updateOn==="submit"&&e._pendingChange&&(s.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Gn(r,t){if(!t)return null;Array.isArray(t);let s,e,i;return t.forEach(n=>
1{n.constructor===Er?s=n:Hn(n)?e=n:i=n}),i||e||s||null}var jn={provide:$,useExisting:B(()=>ke)},gt=Promise.resolve(),ke=(()=>{let t=class t extends ${callSetDisabledState;get submitted(){return X(this.submittedReactive)}_submitted=w(()=>this.submittedReactive());submittedReactive=k(!1);_directives=new Set;form;ngSubmit=new Ne;options;constructor(e,i,n){super(),this.callSetDisabledState=n,this.form=new vt({},Mi(e),Ei(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){gt.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Pr(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){gt.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){gt.then(()=>{let i=this._findContainer(e.path),n=new vt({});Ln(n,e),i.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){gt.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){gt.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Un(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ci(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}};m(t,"\u0275fac",function(i){return new(i||t)(M(L,10),M(bi,10),M(ki,8))}),m(t,"\u0275dir",S({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,n){i&1&&F("submit",function(l){return n.onSubmit(l)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[x([jn]),P]}));let r=t;return r})();function yr(r,t){let s=r.indexOf(t);s>-1&&r.splice(s,1)}function Sr(r){return typeof r=="object"&&r!==null&&Object.keys(r).length===2&&"value"in r&&"disabled"in r}var $n=class extends Jt{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,s,e){super(Vr(s),wr(e,s)),this._applyFormState(t),this._setUpdateStrategy(s),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ei(s)&&(s.nonNullable||s.initialValueIsDefault)&&(Sr(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,s={}){this.value=this._pendingValue=t,this._onChange.length&&s.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,s.emitViewToModelChange!==!1)),this.updateValueAndValidity(s)}patchValue(t,s={}){this.setValue(t,s)}reset(t=this.defaultValue,s={}){this._applyFormState(t),this.markAsPristine(s),this.markAsUntouched(s),this.setValue(this.value,s),this._pendingChange=!1,s?.emitEvent!==!1&&this._events.next(new rt(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){yr(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){yr(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Sr(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}};var Yn=(()=>{let t=class t extends ${_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Rr(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,standalone:!1,features:[P]}));let r=t;return r})();var Wn={provide:$,useExisting:B(()=>Di)},Di=(()=>{let t=class t extends Yn{name="";constructor(e,i,n){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(n)}_checkParentType(){!(this._parent instanceof t)&&this._parent instanceof ke}};m(t,"\u0275fac",function(i){return new(i||t)(M($,5),M(L,10),M(bi,10))}),m(t,"\u0275dir",S({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:[0,"ngModelGroup","name"]},exportAs:["ngModelGroup"],standalone:!1,features:[x([Wn]),P]}));let r=t;return r})(),Zn={provide:He,useExisting:B(()=>ti)},Cr=Promise.resolve(),ti=(()=>{let t=class t extends He{_changeDetectorRef;callSetDisabledState;control=new $n;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ne;
1constructor(e,i,n,o,l,d){super(),this._changeDetectorRef=l,this.callSetDisabledState=d,this._parent=e,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Gn(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Bn(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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Pr(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Cr.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,n=i!==0&&re(i);Cr.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Rr(e,this._parent):[e]}};m(t,"ngAcceptInputType_isDisabled"),m(t,"\u0275fac",function(i){return new(i||t)(M($,9),M(L,10),M(bi,10),M(oe,10),M(_i,8),M(ki,8))}),m(t,"\u0275dir",S({type:t,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"],standalone:!1,features:[x([Zn]),P,ct]}));let r=t;return r})();var Qo=(()=>{let t=class t{};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275dir",S({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1}));let r=t;return r})(),zn={provide:oe,useExisting:B(()=>qn),multi:!0},qn=(()=>{let t=class t extends _t{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,n){i&1&&F("input",function(l){return n.onChange(l.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[x([zn]),P]}));let r=t;return r})();var Kn={provide:oe,useExisting:B(()=>Br),multi:!0};function Lr(r,t){return r==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${r}: ${t}`.slice(0,50))}function Qn(r){return r.split(":")[0]}var Br=(()=>{let t=class t extends _t{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=f($i).injector;destroyRef=f(ze);cdr=f(_i);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,ut({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),n=Lr(i,e);this.setProperty("value",n)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Qn(e);return this._optionMap.has(i)?this._optionMap.get(i):e}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,n){i&1&&F("change",function(l){return n.onChange(l.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[x([Kn]),P]}));let r=t;return r})(),Xo=(()=>{let t=class t{_element;_renderer;_select;id;constructor(e,i,n){this._element=e,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Lr(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select&&this._select._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select._writeValueAfterRender())}};m(t,"\u0275fac",function(i){return new(i||t)(M(j),M(Q),M(Br,9))}),m(t,"\u0275dir",S({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1}));let r=t;return r})(),Xn={provide:oe,useExisting:B(()=>Hr),multi:!0};function br(r,t){return r==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${r}: ${t}`.slice(0,50))}function Jn(r){return r.split(":")[0]}var Hr=(()=>{let t=class t extends _t{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let n=e.map(o=>this._getOptionId(o));i=(o,l)=>{o._setSelected(n.indexOf(l.toString())>-1)}}else i=(n,o)=>{n._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let n=[],o=i.selectedOptions;if(o!==void 0){let l=o;for(let d=0;d<l.length;d++){let u=l[d],h=this._getOptionValue(u.value);n.push(h)}}else{let l=i.options;for(let d=0;d<l.length;d++){let u=l[d];if(u.selected){let h=this._getOptionValue(u.value);n.push(h)}}}this.value=n,e(n)}}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=Jn(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,n){i&1&&F("change",function(l){return n.onChange(l.target)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[x([Xn]),P]}));let r=t;return r})(),Jo=(()=>{let t=class t{_element;_renderer;_select;id;_value;constructor(e,i,n){this._element=e,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(br(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(br(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))}};m(t,"\u0275fac",function(i){return new(i||t)(M(j),M(Q),M(Hr,9))}),m(t,"\u0275dir",S({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1}));let r=t;return r})();function es(r){return typeof r=="number"?r:parseInt(r,10)}function ts(r){return typeof r=="number"?r:parseFloat(r)}var Ai=(()=>{let t=class t{_validator=pr;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):pr,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275dir",S({type:t,features:[ct]}));let r=t;return r})();var is={provide:L,useExisting:B(()=>rs),multi:!0},rs=(()=>{let t=class t extends Ai{min;inputName="min";normalizeInput=e=>ts(e);createValidator=e=>Cn(e)};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,n){i&2&&Z("min",n._enabled?n.min:null)},inputs:{min:"min"},standalone:!1,features:[x([is]),P]}));let r=t;return r})(),ns={provide:L,useExisting:B(()=>ss),multi:!0};var ss=(()=>{let t=class t extends Ai{required;inputName="required";normalizeInput=re;createValidator=e=>bn;enabled(e){return e}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,n){i&2&&Z("required",n._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[x([ns]),P]}));let r=t;return r})();var os={provide:L,useExisting:B(()=>as),multi:!0},as=(()=>{let t=class t extends Ai{maxlength;inputName="maxlength";normalizeInput=e=>es(e);createValidator=e=>Mn(e)};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275dir",S({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,n){i&2&&Z("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[x([os]),P]}));let r=t;return r})();var ls=(()=>{let t=class t{};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275mod",pi({type:t})),m(t,"\u0275inj",ui({}));let r=t;return r})();var ea=(()=>{let t=class t{static withConfig(e){return{ngModule:t,providers:[{provide:ki,useValue:e.callSetDisabledState??xi}]}}};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275mod",pi({type:t})),m(t,"\u0275inj",ui({imports:[ls]}));let r=t;return r})();var cs=["*"];function us(r,t){if(r&1&&(O(0,"sxc-error-message"),U(1),H()),r&2){let s=t.$implicit;T(),Ce(s)}}function hs(r,t){if(r&1&&(Vt(0,us,2,1,"sxc-error-message",null,Yi),z(2)),r&2){let s=ie();wt(s.controlErrors())}}var ds=Promise.resolve(),ua=(()=>{var t,s,e;let i=class i{constructor(){Et(this,t);Et(this,s);Et(this,e);this.form=f($,{optional:!1,skipSelf:!0}),this.for=p(),this.name=p(),this.fieldErrors=Bt(Je),this._trigger=k(!1),kt(this,t,w(()=>(this._trigger(),this.for()?this.for().control:this.name()===""?this.form.control:this.form.control?.get(this.name()??"")))),kt(this,s,nr($e(this,t))),kt(this,e,sr($e(this,s).pipe(at(o=>o?.events??Oi),te(o=>
1$e(this,t).call(this)),me(o=>!(!o?.dirty&&!o?.touched)),te(o=>o?.errors)),{initialValue:$e(this,t).call(this)?.errors})),this.controlErrors=w(()=>{let o=$e(this,e).call(this);if(o){let l=new Set;for(let d in o)typeof o[d]=="string"&&l.add(o[d]);return Array.from(l)}return[]})}ngOnInit(){ds.then(()=>{this._trigger.set(!0)})}};t=new WeakMap,s=new WeakMap,e=new WeakMap,i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=V({type:i,selectors:[["sx-field-errors"]],contentQueries:function(l,d,u){l&1&&Pt(u,d.fieldErrors,Je,4),l&2&&Se()},inputs:{for:[1,"for"],name:[1,"name"]},ngContentSelectors:cs,decls:1,vars:1,template:function(l,d){l&1&&(ye(),ge(0,hs,3,0)),l&2&&ve(d.controlErrors().length>0||d.fieldErrors().length>0?0:-1)},dependencies:[Je],encapsulation:2,changeDetection:0});let r=i;return r})();function fs(r,t){r&1&&(U(0),Ke(1,"sxTranslate")),r&2&&Oe(" ",Qe(1,1,"oao:formerrors","One or more fields have been filled incorrectly or remain incomplete. Please review your entries and try again.")," ")}function ps(r,t){if(r&1&&U(0),r&2){let s=ie();Oe(" ",s.customMessage()," ")}}var _a=(()=>{let t=class t{constructor(){this.customMessage=p("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sx-form-errors"]],inputs:{customMessage:[1,"customMessage"]},decls:3,vars:1,template:function(i,n){i&1&&(O(0,"sxc-error-message"),ge(1,fs,2,4)(2,ps,1,1),H()),i&2&&(T(),ve(n.customMessage()===""?1:2))},dependencies:[Je,et],encapsulation:2,changeDetection:0});let r=t;return r})();var Ma=(()=>{let t=class t{constructor(){this.el=f(j),this.ngForm=f(ke,{optional:!1,self:!0}),this.ngModels=Bt(ti);let e;ut({earlyRead:()=>{e=new FormData(this.el.nativeElement)},mixedReadWrite:()=>{},write:()=>{},read:()=>{}}),ut({write:()=>{queueMicrotask(()=>{this.ngForm.form.patchValue(Object.fromEntries(e.entries()))})}})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["form","sxFormPatch",""]],contentQueries:function(i,n,o){i&1&&Pt(o,n.ngModels,ti,4),i&2&&Se()}});let r=t;return r})();var ii=new Gt(()=>!1);var Ta=(r,t)=>()=>{let e=f(fe),i=e.getTranslation("oao:title.accountApplication","Account Application");return`${e.getTranslation(r,t)} - ${i}`};var ms=["origin"],gs=["content"],vs=(r,t)=>t.code;function _s(r,t){if(r&1&&(we(0,"a",7),U(1),Ie()),r&2){let s=t.$implicit,e=ie(2);Rt("href",e.prepare(s.code),qe)("hreflang",s.code),T(),Ce(s.name)}}function ys(r,t){if(r&1&&(we(0,"div",6),Vt(1,_s,2,3,"a",7,vs),Ie()),r&2){let s=ie();T(),wt(s.languages)}}var Ba=(()=>{let t=class t{constructor(){this.overlay=f(ur),this.vcr=f(Bi),this.destroyRef=f(ze),this.spreadexConfig=f(ne),this.location=f(qi),this.origin=Fe.required("origin"),this.content=Fe.required("content"),this.isOpen=k(!1),this.currentLanguage=t.SupportedLanguages.find(e=>e.code===this.spreadexConfig.locale)??t.SupportedLanguages[0],this.languages=t.SupportedLanguages.filter(e=>e.code!==this.spreadexConfig.locale),this.templatePortal=null,this.overlayRef=null}prepare(e){return this.location.prepareExternalUrl(`../${e}/`)}toggleDropdown(){this.overlayRef||this.createOverlayRef(),this.overlayRef.hasAttached()?this.closeDropdown():this.openDropdown()}openDropdown(){this.isOpen()||(this.overlayRef||this.createOverlayRef(),this.templatePortal??=new cr(this.content(),this.vcr),this.overlayRef?.attach(this.templatePortal),this.isOpen.set(!0))}closeDropdown(){this.isOpen()&&(this.overlayRef?.detach(),this.isOpen.set(!1))}createOverlayRef(){this.overlayRef=this.overlay.create({minWidth:this.origin().nativeElement.getBoundingClientRect().width,positionStrategy:this.overlay.position().flexibleConnectedTo(this.origin()).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}])}),this.overlayRef.keydownEvents().subscribe(e=>{e.code==="Escape"&&!lr(e)&&this.closeDropdown()}),this.overlayRef.outsidePointerEvents().subscribe(e=>{e.target!==this.origin().nativeElement&&this.closeDropdown()}),this.destroyRef.onDestroy(()=>{this.overlayRef?.dispose()})}};t.SupportedLanguages=[{code:"en-GB",name:"English"},{code:"da-DK",name:"Dansk"}],t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sx-language-selector"]],viewQuery:function(i,n){i&1&&(Re(n.origin,ms,5),Re(n.content,gs,5)),i&2&&Se(2)},decls:9,vars:1,consts:[["origin",""],["content",""],["type","button",1,"selected",3,"click"],["width","12.8","height","8.8","viewBox","0 0 16 11","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","8.10669","y","10.2155","width","1.99335","height","11.1627","transform","rotate(-135 8.10669 10.2155)","fill","var(--color-text)"],["x","9.30273","y","8.62078","width","1.99335","height","11.1627","transform","rotate(135 9.30273 8.62078)","fill","var(--color-text)"],[1,"content"],[3,"href","hreflang"]],template:function(i,n){if(i&1){let o=It();we(0,"nav")(1,"button",2,0),Zi("click",function(){return Ae(o),Te(n.toggleDropdown())}),U(3),Ze(),we(4,"svg",3),Wi(5,"rect",4)(6,"rect",5),Ie()(),Ui(7,ys,3,0,"ng-template",null,1,Ot),Ie()}i&2&&(T(3),Oe(" ",n.currentLanguage.name," "))},styles:["nav[_ngcontent-%COMP%]{display:inline-flex;font-size:12px}button[_ngcontent-%COMP%]{background:none;border:0;padding:0;cursor:pointer;color:var(--color-button-link)}a[_ngcontent-%COMP%]{font-size:12px}a[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{padding:12px 16px;min-width:100px}a[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:hover{background-color:var(--sxc-color-blue-700);color:var(--sxc-color-black)}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--sxc-color-grey-200);width:100%}"],changeDetection:0});let r=t;return r})();var Ur=[],Ss=Ur.forEach,Cs=Ur.slice;
1function Gr(r){return Ss.call(Cs.call(arguments,1),function(t){if(t)for(var s in t)r[s]===void 0&&(r[s]=t[s])}),r}function jr(r){return r?typeof r=="function"?new r:r:null}function $r(r,t,s){var e;return function(){var i=this,n=arguments,o=function(){e=null,s||r.apply(i,n)},l=s&&!e;clearTimeout(e),e=setTimeout(o,t),l&&r.apply(i,n)}}function yt(r){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(r)}function Ms(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Yr(r,t){for(var s=0;s<t.length;s++){var e=t[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,ks(e.key),e)}}function Es(r,t,s){return t&&Yr(r.prototype,t),s&&Yr(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function ks(r){var t=xs(r,"string");return yt(t)==="symbol"?t:String(t)}function xs(r,t){if(yt(r)!=="object"||r===null)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var e=s.call(r,t||"default");if(yt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Ds(){return{debounceInterval:50}}var Wr=(function(){function r(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ms(this,r),this.type="backend",this.pending=[],this.init(t,s)}return Es(r,[{key:"init",value:function(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(this.services=s,this.options=Gr(e,this.options||{},Ds()),this.debouncedLoad=$r(this.load,this.options.debounceInterval),this.options.backend&&(this.backend=this.backend||jr(this.options.backend),this.backend.init(s,this.options.backendOption,i)),this.backend&&!this.backend.readMulti)throw new Error("The wrapped backend does not support the readMulti function.")}},{key:"read",value:function(s,e,i){this.pending.push({language:s,namespace:e,callback:i}),this.debouncedLoad()}},{key:"load",value:function(){if(!(!this.backend||!this.pending.length)){var s=this.pending;this.pending=[];var e=s.reduce(function(l,d){return l.languages.indexOf(d.language)<0&&l.languages.push(d.language),l.namespaces.indexOf(d.namespace)<0&&l.namespaces.push(d.namespace),l},{languages:[],namespaces:[]}),i=function(d,u){if(d)return s.forEach(function(h){return h.callback(d,u)});s.forEach(function(h){var v=u[h.language]&&u[h.language][h.namespace];h.callback(null,v||{})})},n=this.backend.readMulti.bind(this.backend);if(n.length===2){try{var o=n(e.languages,e.namespaces);o&&typeof o.then=="function"?o.then(function(l){return i(null,l)}).catch(i):i(null,o)}catch(l){i(l)}return}n(e.languages,e.namespaces,i)}}},{key:"create",value:function(s,e,i,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(!(!this.backend||!this.backend.create)){var d=this.backend.create.bind(this.backend);if(d.length<6){try{var u;d.length===5?u=d(s,e,i,n,l):u=d(s,e,i,n),u&&typeof u.then=="function"?u.then(function(h){return o(null,h)}).catch(o):o(null,u)}catch(h){o(h)}return}d(s,e,i,n,o,l)}}}]),r})();Wr.type="backend";var Zr=Wr;var Ti=new Gt(()=>!1);var zr=(()=>{let t=class t{constructor(){this.type="backend"}init(e,i,n){this.httpClient=i.httpClient,this.baseUrl=i.baseUrl,this._services=e,this._i18nextOptions=n}read(e,i,n){this.httpClient.get(`${this.baseUrl}/translation/${e}/${i}`,{context:new dt().set(Ti,!0).set(ft,!0)}).pipe(li(2e4),ci(()=>Ye({}))).subscribe({next:o=>{n(null,o)},error:o=>{n(o,null)}})}readMulti(e,i,n){let o=e[0];this.httpClient.get(`${this.baseUrl}/translation/${o}`,{context:new dt().set(Ti,!0).set(ii,!0).set(ft,!0),params:{prefixes:i}}).pipe(li(2e4),ci(()=>Ye({}))).subscribe({next:l=>{n(null,{[o]:l})},error:l=>{n(l,null)}})}};t.type="backend";let r=t;return r})();function rl(){let r=f(ne),t=f(Ji),s=f(Nt),e=f(be);return()=>{if(Zt.isInitialized)return Promise.resolve();let i=r.locale,n=r.oaoUrl,o=e.location?.pathname.includes(r.alternateBasePath)?r.alternateBasePath:r.basePath;return Zt.use(Zr).init({lng:i,ns:[],load:"languageOnly",nonExplicitSupportedLngs:!0,fallbackLng:!1,debug:!1,partialBundledLanguages:!0,saveMissing:!1,updateMissing:!0,backend:{backend:zr,backendOption:{httpClient:t,baseUrl:ht(s)?o:n}},interpolation:{prefix:"$t{",suffix:"}"},resources:{}}).then(()=>ht(s)||!zi()&&(n.includes("http://")||n.includes("https://"))?Zt.loadNamespaces(["ui","oao"]):Promise.resolve())}}var yl={provide:$,useFactory:As,deps:[[new di,new fi,ke],[new di,new fi,Di]]};function As(r,t){return t||r||null}function ri(r,t,s,e){let i=new ar(t,ri.PATH,"post");return s&&(i.query("type",s.type,{}),i.body(s.body,"application/json")),r.request(i.build({responseType:"json",accept:"application/json",context:e})).pipe(me(n=>n instanceof Qi),te(n=>n))}ri.PATH="/Validation/ValidateForm";var Ol=(()=>{let t=class t{constructor(){this.apiService=f(or),this.formDirective=f(ke,{optional:!1,self:!0}),this.log=f(Xe),this.sxValidateForm=p.required(),this.ngSubmit=Lt(),Pi(this.formDirective.valueChanges.pipe(at(e=>this.formDirective.pristine?Ii:Ye(e)),te(()=>({submit:!1}))),this.formDirective.ngSubmit.pipe(Dt(()=>{this.formDirective.form.markAsDirty(),this.formDirective.form.markAllAsTouched()}),te(()=>({submit:!0})))).pipe(de(),Li(),Dt(e=>e.submit&&this.formDirective.form.markAsPending()),Fi(500),Dt(()=>this.formDirective.form.markAsPending()),de(),at(e=>xt({validationErrors:this.apiService.invoke(ri,{type:this.sxValidateForm(),body:this.formDirective.value},new dt().set(ii,!e.submit).set(ft,!0)),options:Ye(e)})),de()).subscribe(({validationErrors:e,options:i})=>{this.log.debug("Received validationErrors",e);let n=Object.keys(e),o=this.formDirective.form,l=!1;this.resetForm(o);for(let d of n){let u=d===""?o:o.get(d);if(!u||!u.dirty&&!u.touched)continue;l=!0;let h=e[d];this.log.debug("Setting errors for",d,h),h&&h.length>0?u.setErrors(h):u?.setErrors(null)}l||(this.resetForm(o),i.submit&&(this.log.debug("Form is valid. Restarting submission"),this.ngSubmit?.emit()))})}
1resetForm(e){e.setErrors(null),Object.keys(e.controls).forEach(i=>{let n=e.controls[i];n?.setErrors(null),Ir(n)&&this.resetForm(n)})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["form","sxValidateForm",""]],inputs:{sxValidateForm:[1,"sxValidateForm"]},outputs:{ngSubmit:"ngSubmit"}});let r=t;return r})();var Ts=["sxc-button",""],Ns=[[["svg","iconStart",""],["","sxcButtonIcon","","iconStart",""]],"*",[["svg",3,"iconStart",""],["","sxcButtonIcon","",3,"iconStart",""]]],Vs=["svg[iconStart], [sxcButtonIcon][iconStart]","*","svg:not([iconStart]), [sxcButtonIcon]:not([iconStart])"];function ws(r,t){r&1&&Ve(0,"sxc-loading-spinner")}function Is(r,t){r&1&&(z(0),z(1,1),z(2,2))}var qr=new Map([["primary",["sxc-primary-button"]],["secondary",["sxc-secondary-button"]],["tertiary",["sxc-tertiary-button"]]]),Ni=(()=>{let t=class t{constructor(){this._elementRef=f(j),this.sxcButton=p("",{alias:"sxc-button"}),this.disabled=p(void 0,{transform:re}),this.loading=p(void 0,{transform:re}),this.small=p(void 0,{transform:re}),this.medium=p(void 0,{transform:re});let e=this.getInferredAppearance(this._elementRef.nativeElement);e&&this.setAppearance(e),Ft(()=>{this.setAppearance(this.sxcButton()||this.getInferredAppearance(this._elementRef.nativeElement))})}setAppearance(e){if(e===this._appearance)return;let i=qr.get(e),n=this._appearance?qr.get(this._appearance):null,o=this._elementRef.nativeElement;n&&o.classList.remove(...n),o.classList.add(...i),this._appearance=e}getInferredAppearance(e){return e.hasAttribute("sxc-secondary-button")?"secondary":e.hasAttribute("sxc-tertiary-button")?"tertiary":"primary"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["button","sxc-button",""],["a","sxc-button",""],["button","sxc-secondary-button",""],["a","sxc-secondary-button",""],["button","sxc-tertiary-button",""],["a","sxc-tertiary-button",""],["label","sxc-button",""],["label","sxc-secondary-button",""],["label","sxc-tertiary-button",""]],hostAttrs:[1,"sxc-button"],hostVars:9,hostBindings:function(i,n){i&2&&(Z("disabled",n.disabled()?!0:null),Pe("sxc-button-loading",n.loading())("sxc-button-disabled",n.disabled())("sxc-button-small",n.small())("sxc-button-medium",n.medium()))},inputs:{sxcButton:[1,"sxc-button","sxcButton"],disabled:[1,"disabled"],loading:[1,"loading"],small:[1,"small"],medium:[1,"medium"]},exportAs:["sxcButton"],attrs:Ts,ngContentSelectors:Vs,decls:2,vars:1,template:function(i,n){i&1&&(ye(Ns),ge(0,ws,1,0,"sxc-loading-spinner")(1,Is,3,0)),i&2&&ve(n.loading()?0:1)},dependencies:[dr],styles:[`.sxc-button{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:10px;border-style:solid;border-width:1px;min-height:var(--sxc-button-min-height, 50px);width:100%;font-size:var(--sxc-button-font-size, 16px);font-weight:700;-webkit-user-select:none;user-select:none;text-decoration:none;outline:none;display:inline-flex;align-items:center;justify-content:center;position:relative;transition-property:color,background-color,border-color,opacity,fill;transition-duration:.2s}.sxc-button svg[iconStart],.sxc-button [sxcButtonIcon][iconStart]{margin-right:auto}.sxc-button>svg:not([iconStart]),.sxc-button [sxcButtonIcon]:not([iconStart]){margin-left:auto}.sxc-button:disabled,.sxc-button-disabled{cursor:default;pointer-events:none;opacity:.5}.sxc-button-small{font-size:var(--sxc-button-small-font-size, 12px);min-height:var(--sxc-button-small-min-height, 28px)}.sxc-button-medium{font-size:var(--sxc-button-medium-font-size, 14px);min-height:var(--sxc-button-medium-min-height, 34px)}.sxc-primary-button{--sxc-loading-spinner-stroke: var(--sxc-color-grey-300);padding:0 10px;color:var(--sxc-primary-button-color, var(--sxc-color-white));background-color:var(--sxc-primary-button-background-color, var(--sxc-color-blue-700));border-color:var(--sxc-primary-button-border-color, var(--sxc-color-blue-700))}@media (hover){.sxc-primary-button:hover,.sxc-primary-button:focus{opacity:.85}}.sxc-primary-button:active,.sxc-primary-button:focus:active{background-color:var(--sxc-primary-button-active-background-color, var(--sxc-color-blue-900));border-color:var(--sxc-primary-button-active-border-color, var(--sxc-color-blue-900));opacity:1}.sxc-primary-button>
1svg{fill:var(--sxc-primary-button-fill-color, var(--sxc-color-white))}.sxc-secondary-button{--sxc-loading-spinner-stroke: var(--sxc-color-grey-700);padding:0 10px;color:var(--sxc-secondary-button-color, var(--sxc-color-blue-700));background-color:var(--sxc-secondary-button-background-color, transparent);border-color:var(--sxc-secondary-button-border-color, var(--sxc-color-blue-700))}@media (hover){.sxc-secondary-button:hover,.sxc-secondary-button:focus{color:var(--sxc-secondary-button-hover-color, var(--sxc-color-white));background-color:var(--sxc-secondary-button-hover-background-color, var(--sxc-color-blue-700))}.sxc-secondary-button:hover>svg,.sxc-secondary-button:focus>svg{fill:var(--sxc-secondary-button-hover-fill-color, var(--sxc-color-white))}}.sxc-secondary-button:active,.sxc-secondary-button:focus:active{color:var(--sxc-secondary-button-active-color, var(--sxc-color-white));background-color:var(--sxc-secondary-button-active-background-color, var(--sxc-color-white));border-color:var(--sxc-secondary-button-active-border-color, var(--sxc-color-blue-900))}.sxc-secondary-button:active>svg,.sxc-secondary-button:focus:active>svg{fill:var(--sxc-secondary-button-active-fill-color, var(--sxc-color-blue-900))}.sxc-secondary-button>svg{fill:var(--sxc-secondary-button-fill-color, var(--sxc-color-blue-700))}.sxc-tertiary-button{--sxc-loading-spinner-stroke: var(--sxc-color-grey-700);padding:0 10px;color:var(--sxc-tertiary-button-color, var(--sxc-color-black));background-color:var(--sxc-tertiary-button-background-color, var(--sxc-color-grey-300));border:none}@media (hover){.sxc-tertiary-button:hover,.sxc-tertiary-button:focus{background-color:var(--sxc-tertiary-button-hover-background-color, var(--sxc-color-grey-400))}}.sxc-tertiary-button:active,.sxc-tertiary-button:focus:active{background-color:var(--sxc-tertiary-button-active-background-color, var(--sxc-color-grey-500))}.sxc-tertiary-button>svg{fill:var(--sxc-tertiary-button-fill-color, var(--sxc-color-grey-300))}
2`],encapsulation:2,changeDetection:0});let r=t;return r})(),jl=Ni;var Rs=[[["label"]],[["input"]],"*"],Ps=["label","input","*"],Kr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sxc-input"]],hostAttrs:[1,"sxc-input"],ngContentSelectors:Ps,decls:3,vars:0,template:function(i,n){i&1&&(ye(Rs),z(0),z(1,1),z(2,2))},styles:[`.sxc-input{display:flex;column-gap:15px;align-items:center;min-height:var(--sxc-input-min-height, 52px);width:100%;padding-left:20px;padding-right:20px;border-radius:10px;background-color:var(--sxc-input-background-color, var(--sxc-color-white))}.sxc-input label{max-width:150px;font-size:var(--sxc-font-size, 16px)}.sxc-input label[disabled]{color:var(--sxc-input-disabled-color, var(--sxc-color-grey-700))}.sxc-input input{align-self:stretch;flex:1;width:100%;border:none;padding-right:0;padding-left:0;font-size:var(--sxc-font-size, 16px);color:var(--sxc-input-color, var(--sxc-color-black));background-color:var(--sxc-input-background-color, var(--sxc-color-white));outline:none}.sxc-input input:is(:-webkit-autofill,:autofill){-webkit-box-shadow:0 0 0 3
20px var(--sxc-input-background-color, var(--sxc-color-white)) inset!important;-webkit-text-fill-color:var(--sxc-input-color, var(--sxc-color-black))}.sxc-input input[chrome-autofilled]{background-color:var(--sxc-input-background-color, var(--sxc-color-white))!important;color:var(--sxc-input-color, var(--sxc-color-black))!important}.sxc-input input:read-only,.sxc-input input:disabled{color:var(--sxc-input-disabled-color, var(--sxc-color-grey-700))}.sxc-input input:read-only:not(:disabled){text-align:right}.sxc-input input::placeholder{color:var(--sxc-input-placeholder-color, var(--sxc-color-grey-700))}.sxc-input input.ng-touched.ng-invalid,.sxc-input input.ng-touched.ng-invalid::placeholder{color:var(--sxc-input-invalid-placeholder-color, var(--sxc-color-red-700))}.sxc-input input.ng-touched.ng-invalid:is(:-webkit-autofill,:autofill){-webkit-text-fill-color:var(--sxc-input-invalid-placeholder-color, var(--sxc-color-red-700))}
3`],encapsulation:2,changeDetection:0});let r=t;return r})();var a=(function(r){return r.SEPARATOR="separator",r.PERCENT="percent",r.IP="IP",r.CPF_CNPJ="CPF_CNPJ",r.MONTH="M",r.MONTHS="M0",r.MINUTE="m",r.HOUR="h",r.HOURS="H",r.MINUTES="m0",r.HOURS_HOUR="Hh",r.SECONDS="s0",r.HOURS_MINUTES_SECONDS="Hh:m0:s0",r.EMAIL_MASK="A*@A*.A*",r.HOURS_MINUTES="Hh:m0",r.MINUTES_SECONDS="m0:s0",r.DAYS_MONTHS_YEARS="d0/M0/0000",r.DAYS_MONTHS="d0/M0",r.DAYS="d0",r.DAY="d",r.SECOND="s",r.LETTER_S="S",r.DOT=".",r.COMMA=",",r.CURLY_BRACKETS_LEFT="{",r.CURLY_BRACKETS_RIGHT="}",r.MINUS="-",r.OR="||",r.HASH="#",r.EMPTY_STRING="",r.SYMBOL_STAR="*",r.SYMBOL_QUESTION="?",r.SLASH="/",r.WHITE_SPACE=" ",r.NUMBER_ZERO="0",r.NUMBER_NINE="9",r.BACKSPACE="Backspace",r.DELETE="Delete",r.ARROW_LEFT="ArrowLeft",r.ARROW_UP="ArrowUp",r.DOUBLE_ZERO="00",r})(a||{}),ni=new N("ngx-mask config"),Qr=new N("new ngx-mask config"),Xr=new N("initial ngx-mask config"),Os={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showMaskTyped:!1,instantPrefix:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:!1,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:r=>r,outputTransformFn:r=>r,maskFilled:new Ne,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},Fs=[a.HOURS_MINUTES_SECONDS,a.HOURS_MINUTES,a.MINUTES_SECONDS],Ls=[a.PERCENT,a.HOURS_HOUR,a.SECONDS,a.MINUTES,a.SEPARATOR,a.DAYS_MONTHS_YEARS,a.DAYS_MONTHS,a.DAYS,a.MONTHS],Bs=(()=>{let t=class t{_config=f(ni);dropSpecialCharacters=this._config.dropSpecialCharacters;hiddenInput=this._config.hiddenInput;clearIfNotMatch=this._config.clearIfNotMatch;specialCharacters=this._config.specialCharacters;patterns=this._config.patterns;prefix=this._config.prefix;suffix=this._config.suffix;thousandSeparator=this._config.thousandSeparator;decimalMarker=this._config.decimalMarker;customPattern;showMaskTyped=this._config.showMaskTyped;placeHolderCharacter=this._config.placeHolderCharacter;validation=this._config.validation;separatorLimit=this._config.separatorLimit;allowNegativeNumbers=this._config.allowNegativeNumbers;leadZeroDateTime=this._config.leadZeroDateTime;leadZero=this._config.leadZero;apm=this._config.apm;inputTransformFn=this._config.inputTransformFn;outputTransformFn=this._config.outputTransformFn;keepCharacterPositions=this._config.keepCharacterPositions;instantPrefix=this._config.instantPrefix;triggerOnMaskChange=this._config.triggerOnMaskChange;_shift=new Set;plusOnePosition=!1;maskExpression="";actualValue="";showKeepCharacterExp="";shownMaskExpression=this._config.shownMaskExpression;deletedSpecialCharacter=!1;ipError;cpfCnpjError;applyMask(e,i,n=0,o=!1,l=!1,d=()=>{}){if(!i||typeof e!="string")return a.EMPTY_STRING;let u=0,h="",v=!1,y=!1,b=1,R=!1,c=e,_=n,le=c.slice(0,this.prefix.length)===this.prefix,ce=o&&c.length===this.prefix.length+i.length,xe=c===this.prefix+c.slice(this.prefix.length);le&&(ce||xe)&&(c=c.slice(this.prefix.length)),this.suffix&&c.length>0&&(c=this.checkAndRemoveSuffix(c)),c==="("&&this.prefix&&(c="");let q=c.toString().split(a.EMPTY_STRING);if(this.allowNegativeNumbers&&c.slice(u,u+1)===a.MINUS&&(h+=c.slice(u,u+1)),i===a.IP){let C=c.split(a.DOT);
3this.ipError=this._validIP(C),i="099.099.099.099"}let ue=[];for(let C=0;C<c.length;C++)c[C]?.match("\\d")&&ue.push(c[C]??a.EMPTY_STRING);if(i===a.CPF_CNPJ&&(this.cpfCnpjError=ue.length!==11&&ue.length!==14,ue.length>11?i="00.000.000/0000-00":i="000.000.000-00"),i.startsWith(a.PERCENT)){if(c.match("[a-z]|[A-Z]")||c.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){c=this._stripToDecimal(c);let K=this.getPrecision(i);c=this.checkInputPrecision(c,K,this.decimalMarker)}let C=typeof this.decimalMarker=="string"?this.decimalMarker:a.DOT;if(c.indexOf(C)>0&&!this.percentage(c.substring(0,c.indexOf(C)))){let K=c.substring(0,c.indexOf(C)-1);this.allowNegativeNumbers&&c.slice(u,u+1)===a.MINUS&&!l&&(K=c.substring(0,c.indexOf(C))),c=`${K}${c.substring(c.indexOf(C),c.length)}`}let g="";this.allowNegativeNumbers&&c.slice(u,u+1)===a.MINUS?g=`${a.MINUS}${c.slice(u+1,u+c.length)}`:g=c,this.percentage(g)?h=this._splitPercentZero(c):h=this._splitPercentZero(c.substring(0,c.length-1))}else if(i.startsWith(a.SEPARATOR)){(c.match("[w\u0430-\u044F\u0410-\u042F]")||c.match("[\u0401\u0451\u0410-\u044F]")||c.match("[a-z]|[A-Z]")||c.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||c.match("[^A-Za-z0-9,]"))&&(c=this._stripToDecimal(c));let C=this.getPrecision(i),g=this.decimalMarker;if(Array.isArray(this.decimalMarker)&&(this.actualValue.includes(this.decimalMarker[0])||this.actualValue.includes(this.decimalMarker[1])?g=this.actualValue.includes(this.decimalMarker[0])?this.decimalMarker[0]:this.decimalMarker[1]:g=this.decimalMarker.find(E=>E!==this.thousandSeparator)),l){let{decimalMarkerIndex:E,nonZeroIndex:D}=this._findFirstNonZeroAndDecimalIndex(c,g),he=c[0]===a.MINUS,bt=c[0]===a.NUMBER_ZERO,Mt=c[0]===g,ot=c[1]===g;(Mt&&!D||he&&ot&&!D||bt&&!E&&!D)&&(c=a.NUMBER_ZERO),E&&D&&he&&_===1&&(E<D||E>D)&&(c=a.MINUS+c.slice(D)),!E&&D&&c.length>D&&(c=he?a.MINUS+c.slice(D):c.slice(D)),E&&D&&_===0&&(E<D&&(c=c.slice(E-1)),E>D&&(c=c.slice(D)))}C===0?c=this.allowNegativeNumbers?c.length>2&&c[0]===a.MINUS&&c[1]===a.NUMBER_ZERO&&c[2]!==this.thousandSeparator&&c[2]!==a.COMMA&&c[2]!==a.DOT?"-"+c.slice(2,c.length):c[0]===a.NUMBER_ZERO&&c.length>1&&c[1]!==this.thousandSeparator&&c[1]!==a.COMMA&&c[1]!==a.DOT?c.slice(1,c.length):c:c.length>1&&c[0]===a.NUMBER_ZERO&&c[1]!==this.thousandSeparator&&c[1]!==a.COMMA&&c[1]!==a.DOT?c.slice(1,c.length):c:(c[0]===g&&c.length>1&&!l&&(c=a.NUMBER_ZERO+c.slice(0,c.length+1),this.plusOnePosition=!0),c[0]===a.NUMBER_ZERO&&c[1]!==g&&c[1]!==this.thousandSeparator&&!l&&(c=c.length>1?c.slice(0,1)+g+c.slice(1,c.length+1):c,this.plusOnePosition=!0),this.allowNegativeNumbers&&!l&&c[0]===a.MINUS&&(c[1]===g||c[1]===a.NUMBER_ZERO)&&(c=c[1]===g&&c.length>2?c.slice(0,1)+a.NUMBER_ZERO+c.slice(1,c.length):c[1]===a.NUMBER_ZERO&&c.length>2&&c[2]!==g?c.slice(0,2)+g+c.slice(2,c.length):c,this.plusOnePosition=!0));let K=this._charToRegExpExpression(this.thousandSeparator),G='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(K,"");if(Array.isArray(this.decimalMarker))for(let E of this.decimalMarker)G=G.replace(this._charToRegExpExpression(E),a.EMPTY_STRING);else G=G.replace(this._charToRegExpExpression(this.decimalMarker),"");let je=new RegExp("["+G+"]");c.match(je)&&(c=c.substring(0,c.length-1)),c=this.checkInputPrecision(c,C,this.decimalMarker);let De=c.replace(new RegExp(K,"g"),"");h=this._formatWithSeparators(De,this.thousandSeparator,this.decimalMarker,C);let ai=h.indexOf(a.COMMA)-c.indexOf(a.COMMA),J=h.length-c.length,Ct=l&&h.length<e.length-this.suffix.length&&this.separatorLimit;if((h[_-1]===this.thousandSeparator||h[_-this.prefix.length])&&this.prefix&&l)_=_-1;else if(J>0&&h[_]!==this.thousandSeparator||Ct){y=!0;let E=0;do this._shift.add(_+E),E++;while(E<J)}else h[_-1]===this.thousandSeparator||J===-4||J===-3||h[_]===this.thousandSeparator?(this._shift.clear(),this._shift.add(_-1)):ai!==0&&_>0&&!(h.indexOf(a.COMMA)>=_&&_>3)||!(h.indexOf(a.DOT)>=_&&_>3)&&J<=0?(this._shift.clear(),y=!0,b=J,_+=J,this._shift.add(_)):this._shift.clear()}else for(let C=0,g=q[0];C<q.length&&u!==i.length;C++,g=q[C]??a.EMPTY_STRING){let K=a.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(g,i[u]??a.EMPTY_STRING)&&i[u+1]===a.SYMBOL_QUESTION)h+=g,u+=2;
3else if(i[u+1]===a.SYMBOL_STAR&&v&&this._checkSymbolMask(g,i[u+2]??a.EMPTY_STRING))h+=g,u+=3,v=!1;else if(this._checkSymbolMask(g,i[u]??a.EMPTY_STRING)&&i[u+1]===a.SYMBOL_STAR&&!K)h+=g,v=!0;else if(i[u+1]===a.SYMBOL_QUESTION&&this._checkSymbolMask(g,i[u+2]??a.EMPTY_STRING))h+=g,u+=3;else if(this._checkSymbolMask(g,i[u]??a.EMPTY_STRING)){if(i[u]===a.HOURS&&(this.apm?Number(g)>9:Number(g)>2)){_=this.leadZeroDateTime?_:_+1,u+=1,this._shiftStep(u),C--,this.leadZeroDateTime&&(h+="0");continue}if(i[u]===a.HOUR&&(this.apm?h.length===1&&Number(h)>1||h==="1"&&Number(g)>2||c.slice(u-1,u).length===1&&Number(c.slice(u-1,u))>2||c.slice(u-1,u)==="1"&&Number(g)>2:h==="2"&&Number(g)>3||(h.slice(u-2,u)==="2"||h.slice(u-3,u)==="2"||h.slice(u-4,u)==="2"||h.slice(u-1,u)==="2")&&Number(g)>3&&u>10)){_=_+1,u+=1,C--;continue}if((i[u]===a.MINUTE||i[u]===a.SECOND)&&Number(g)>5){_=this.leadZeroDateTime?_:_+1,u+=1,this._shiftStep(u),C--,this.leadZeroDateTime&&(h+="0");continue}let G=31,je=c[u],De=c[u+1],ai=c[u+2],J=c[u-1],Ct=c[u-2],E=c.slice(u-3,u-1),D=c.slice(u-1,u+1),he=c.slice(u,u+2),bt=c.slice(u-2,u);if(i[u]===a.DAY){let Mt=i.slice(0,2)===a.MONTHS,ot=i.slice(0,2)===a.MONTHS&&this.specialCharacters.includes(Ct);if(Number(g)>3&&this.leadZeroDateTime||!Mt&&(Number(he)>G||Number(D)>G||this.specialCharacters.includes(De))||(ot?Number(D)>G||!this.specialCharacters.includes(je)&&this.specialCharacters.includes(ai)||this.specialCharacters.includes(je):Number(he)>G||this.specialCharacters.includes(De)&&!l)){_=this.leadZeroDateTime?_:_+1,u+=1,this._shiftStep(u),C--,this.leadZeroDateTime&&(h+="0");continue}}if(i[u]===a.MONTH){let ot=u===0&&(Number(g)>2||Number(he)>12||this.specialCharacters.includes(De)&&!l),ln=i.slice(u+2,u+3),cn=E.includes(ln)&&i.includes("d0")&&(this.specialCharacters.includes(Ct)&&Number(D)>12&&!this.specialCharacters.includes(je)||this.specialCharacters.includes(je)),un=Number(E)<=G&&!this.specialCharacters.includes(E)&&this.specialCharacters.includes(J)&&(Number(he)>12||this.specialCharacters.includes(De)),hn=Number(he)>12&&u===5||this.specialCharacters.includes(De)&&u===5,dn=Number(E)>G&&!this.specialCharacters.includes(E)&&!this.specialCharacters.includes(bt)&&Number(bt)>12&&i.includes("d0"),fn=Number(E)<=G&&!this.specialCharacters.includes(E)&&!this.specialCharacters.includes(J)&&Number(D)>12;if(Number(g)>1&&this.leadZeroDateTime||ot||cn||fn||dn||un||hn&&!this.leadZeroDateTime){_=this.leadZeroDateTime?_:_+1,u+=1,this._shiftStep(u),C--,this.leadZeroDateTime&&(h+="0");continue}}h+=g,u++}else this.specialCharacters.includes(g)&&i[u]===g?(h+=g,u++):this.specialCharacters.indexOf(i[u]??a.EMPTY_STRING)!==-1?(h+=i[u],u++,this._shiftStep(u),C--):i[u]===a.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(u):this.patterns[i[u]??a.EMPTY_STRING]&&this.patterns[i[u]??a.EMPTY_STRING]?.optional?(q[u]&&i!=="099.099.099.099"&&i!=="000.000.000-00"&&i!=="00.000.000/0000-00"&&!i.match(/^9+\.0+$/)&&!this.patterns[i[u]??a.EMPTY_STRING]?.optional&&(h+=q[u]),i.includes(a.NUMBER_NINE+a.SYMBOL_STAR)&&i.includes(a.NUMBER_ZERO+a.SYMBOL_STAR)&&u++,u++,C--):this.maskExpression[u+1]===a.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[u+2]??a.EMPTY_STRING)&&this._findSpecialChar(g)===this.maskExpression[u+2]&&v||this.maskExpression[u+1]===a.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[u+2]??a.EMPTY_STRING)&&this._findSpecialChar(g)===this.maskExpression[u+2]&&v?(u+=3,h+=g):this.showMaskTyped&&this.specialCharacters.indexOf(g)<0&&g!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(R=!0)}h[_-1]&&h.length+1===i.length&&this.specialCharacters.indexOf(i[i.length-1]??a.EMPTY_STRING)!==-1&&(h+=i[i.length-1]);let nt=_+1;for(;this._shift.has(nt);)b++,nt++;let Ue=o&&!i.startsWith(a.SEPARATOR)?u:this._shift.has(_)?b:0;R&&Ue--,d(Ue,y),b<0&&this._shift.clear();let st=!1;l&&(st=q.every(C=>this.specialCharacters.includes(C)));let Ge=`${this.prefix}${st?a.EMPTY_STRING:h}${this.showMaskTyped?"":this.suffix}`;h.length===0&&(Ge=this.instantPrefix?`${this.prefix}${h}`:`${h}`);let St=c.length===1&&this.specialCharacters.includes(i[0])&&c!==i[0];if(!this._checkSymbolMask(c,i[1])&&St)return"";if(h.includes(a.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&h===a.MINUS)return"";Ge=`${a.MINUS}${this.prefix}${h.split(a.MINUS).join(a.EMPTY_STRING)}${this.suffix}`}return Ge}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(i=>i===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[i]?.pattern&&this.patterns[i]?.pattern.test(e))??!1}_formatWithSeparators=(e,i,n,o)=>{let l=[],d="";if(Array.isArray(n)){let b=new RegExp(n.map(R=>"[\\^$.|?*+()".indexOf(R)>=0?`\\${R}`:R).join("|"));l=e.split(b),d=e.match(b)?.[0]??a.EMPTY_STRING}else l=e.split(n),d=n;let u=l.length>1?`${d}${l[1]}`:a.EMPTY_STRING,h=l[0]??a.EMPTY_STRING,v=this.separatorLimit.replace(/\s/g,a.EMPTY_STRING);v&&+v&&(h[0]===a.MINUS?h=`-${h.slice(1,h.length).slice(0,v.length)}`:h=h.slice(0,v.length));let y=/(\d+)(\d{3})/;for(;i&&y.test(h);)h=h.replace(y,"$1"+i+"$2");return typeof o>"u"?h+u:o===0?h:h+u.substring(0,o+1)};percentage=e=>{let i=e.replace(",","."),n=Number(this.allowNegativeNumbers&&e.includes(a.MINUS)?i.slice(1,e.length):i);return!isNaN(n)&&n>=0&&n<=100};getPrecision=e=>{let i=e.split(a.DOT);return i.length>1?Number(i[i.length-1]):1/0};checkAndRemoveSuffix=e=>{for(let i=this.suffix?.length-1;i>=0;i--){let n=this.suffix.substring(i,this.suffix?.length);if(e.includes(n)&&i!==this.suffix?.length-1&&(i-1<0||!e.includes(this.suffix.substring(i-1,this.suffix?.length))))return e.replace(n,a.EMPTY_STRING)}return e};checkInputPrecision=(e,i,n)=>{let o=e,l=n;if(i<1/0){if(Array.isArray(l)){let v=l.find(y=>y!==this.thousandSeparator);l=v||l[0]}let d=new RegExp(this._charToRegExpExpression(l)+`\\d{${i}}.*$`),u=o.match(d),h=(u&&u[0]?.length)??0;if(h-1>i){let v=h-1-i;o=o.substring(0,o.length-v)}i===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o};_stripToDecimal(e){return e.split(a.EMPTY_STRING).filter((i,n)=>{let o=typeof this.decimalMarker=="string"?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||o||i===a.MINUS&&n===0&&this.allowNegativeNumbers}).join(a.EMPTY_STRING)}_charToRegExpExpression(e){return e&&(e===" "?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e){this._shift.add(e+this.prefix.length||0)}_compareOrIncludes(e,i,n){return Array.isArray(i)?i.filter(o=>o!==n).includes(e):e===i}_validIP(e){return!(e.length===4&&!e.some((i,n)=>e.length!==n+1?i===a.EMPTY_STRING||Number(i)>255:i===a.EMPTY_STRING||Number(i.substring(0,3))>
3255))}_splitPercentZero(e){if(e===a.MINUS&&this.allowNegativeNumbers)return e;let i=typeof this.decimalMarker=="string"?e.indexOf(this.decimalMarker):e.indexOf(a.DOT),n=this.allowNegativeNumbers&&e.includes(a.MINUS)?"-":"";if(i===-1){let o=parseInt(n?e.slice(1,e.length):e,10);return isNaN(o)?a.EMPTY_STRING:`${n}${o}`}else{let o=parseInt(e.replace("-","").substring(0,i),10),l=e.substring(i+1),d=isNaN(o)?"":o.toString(),u=typeof this.decimalMarker=="string"?this.decimalMarker:a.DOT;return d===a.EMPTY_STRING?a.EMPTY_STRING:`${n}${d}${u}${l}`}}_findFirstNonZeroAndDecimalIndex(e,i){let n=null,o=null;for(let l=0;l<e.length;l++){let d=e[l];if(d===i&&n===null&&(n=l),d&&d>="1"&&d<="9"&&o===null&&(o=l),n!==null&&o!==null)break}return{decimalMarkerIndex:n,nonZeroIndex:o}}};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275prov",We({token:t,factory:t.\u0275fac}));let r=t;return r})(),Vi=(()=>{let t=class t extends Bs{isNumberValue=!1;maskIsShown="";selStart=null;selEnd=null;maskChanged=!1;maskExpressionArray=[];previousValue="";currentValue="";writingValue=!1;isInitialized=!1;_emitValue=!1;_start;_end;onChange=e=>{};_elementRef=f(j,{optional:!0});document=f(lt);_config=f(ni);_renderer=f(Q,{optional:!0});applyMask(e,i,n=0,o=!1,l=!1,d=()=>{}){if(!i)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():a.EMPTY_STRING,this.maskExpression===a.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||a.HASH)),this.maskExpression===a.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||a.HASH)),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let u=e&&typeof this.selStart=="number"?e[this.selStart]??a.EMPTY_STRING:a.EMPTY_STRING,h="",v=n;if((this.hiddenInput||e&&e.indexOf(a.SYMBOL_STAR)>=0)&&!this.writingValue){let c=e&&e.length===1?e.split(a.EMPTY_STRING):this.actualValue.split(a.EMPTY_STRING);l&&(c=c.slice(0,n).concat(c.slice(n+1))),this.showMaskTyped&&(e=this.removeMask(e),c=this.removeMask(c.join("")).split(a.EMPTY_STRING)),typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):e!==a.EMPTY_STRING&&c.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(e.length>c.length?c.splice(this.selStart,0,u):e.length<c.length&&(c.length-e.length===1?l?c.splice(this.selStart-1,1):c.splice(e.length-1,1):c.splice(this.selStart,this.selEnd-this.selStart))):c=[],this.showMaskTyped&&!this.hiddenInput&&(h=this.removeMask(e)),this.actualValue.length?c.length<e.length?h=this.shiftTypedSymbols(c.join(a.EMPTY_STRING)):c.length===e.length?h=c.join(a.EMPTY_STRING):h=e:h=e}if(o&&(this.hiddenInput||!this.hiddenInput)&&(h=e),l&&this.specialCharacters.indexOf(this.maskExpression[v]??a.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(h=this.currentValue),this.deletedSpecialCharacter&&v&&(this.specialCharacters.includes(this.actualValue.slice(v,v+1))?v=v+1:i.slice(v-1,v+1)!==a.MONTHS&&(v=v-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(h=this.removeMask(h)),this.maskChanged?h=e:h=h&&h.length?h:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!o&&!this.writingValue){let c=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(c),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let y=super.applyMask(h,i,v,o,l,d);if(this.actualValue=this.getActualValue(y),this.thousandSeparator===a.DOT&&this.decimalMarker===a.DOT&&(this.decimalMarker=a.COMMA),this.maskExpression.startsWith(a.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(c=>!this._compareOrIncludes(c,this.decimalMarker,this.thousandSeparator))),(y||y==="")&&(this.previousValue=this.currentValue,this.currentValue=y,this._emitValue=this.previousValue!==this.currentValue||this.previousValue===this.currentValue&&o),this._emitValue&&this.formControlResult(y),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?`${this.hideInput(y,this.maskExpression)}${this.maskIsShown.slice(y.length)}`:y;let b=y.length,R=`${this.prefix}${this.maskIsShown}${this.suffix}`;
3if(this.maskExpression.includes(a.HOURS)){let c=this._numberSkipedSymbols(y);return`${y}${R.slice(b+c)}`}else if(this.maskExpression===a.IP||this.maskExpression===a.CPF_CNPJ)return`${y}${R}`;return`${y}${R.slice(b)}`}_numberSkipedSymbols(e){let i=/(^|\D)(\d\D)/g,n=i.exec(e),o=0;for(;n!=null;)o+=1,n=i.exec(e);return o}applyValueChanges(e,i,n,o=()=>{}){let l=this._elementRef?.nativeElement;l&&(l.value=this.applyMask(l.value,this.maskExpression,e,i,n,o),l!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,i){return e.split(a.EMPTY_STRING).map((n,o)=>this.patterns&&this.patterns[i[o]??a.EMPTY_STRING]&&this.patterns[i[o]??a.EMPTY_STRING]?.symbol?this.patterns[i[o]??a.EMPTY_STRING]?.symbol:n).join(a.EMPTY_STRING)}getActualValue(e){let i=e.split(a.EMPTY_STRING).filter((n,o)=>{let l=this.maskExpression[o]??a.EMPTY_STRING;return this._checkSymbolMask(n,l)||this.specialCharacters.includes(l)&&n===l});return i.join(a.EMPTY_STRING)===e?i.join(a.EMPTY_STRING):e}shiftTypedSymbols(e){let i="";return(e&&e.split(a.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(e[l+1]??a.EMPTY_STRING)&&e[l+1]!==this.maskExpression[l+1])return i=o,e[l+1];if(i.length){let d=i;return i=a.EMPTY_STRING,d}return o})||[]).join(a.EMPTY_STRING)}numberToString(e){return!e&&e!==0||this.maskExpression.startsWith(a.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(a.SEPARATOR)&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${a.MINUS}/`,a.MINUS)}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(e){if(this.maskExpression===a.IP)return this._checkForIp(e);if(this.maskExpression===a.CPF_CNPJ)return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){let e=this._elementRef?.nativeElement;e&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(this.placeHolderCharacter,a.EMPTY_STRING).length&&(this.formElementProperty=["value",a.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([e,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,e,i))}checkDropSpecialCharAmount(e){return e.split(a.EMPTY_STRING).filter(n=>this._findDropSpecialChar(n)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if(e===a.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let n=0;n<e.length;n++){let o=e[n]??a.EMPTY_STRING;o&&o.match("\\d")&&i.push(o)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:(i.length>9&&i.length<=12,"")}_checkForCpfCnpj(e){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(e===a.HASH)return i;let o=[];for(let l=0;l<e.length;l++){let d=e[l]??a.EMPTY_STRING;d&&d.match("\\d")&&o.push(d)}return o.length<=3?i.slice(o.length,i.length):o.length>3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):o.length===11?"":o.length===12?e.length===17?n.slice(16,n.length):n.slice(15,n.length):o.length>12&&o.length<=14?n.slice(o.length+4,n.length):""}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}formControlResult(e){let i=this.outputTransformFn?this.outputTransformFn:n=>n;this.writingValue=!1,this.maskChanged=!1,!(!this.isInitialized&&this._emitValue)&&(Array.isArray(this.dropSpecialCharacters)?this.onChange(i(this._toNumber(this._checkSymbol
3s(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this.onChange(i(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))):this.onChange(i(this._toNumber(e))))}_toNumber(e){if(!this.isNumberValue||e===a.EMPTY_STRING||this.maskExpression.startsWith(a.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>14&&this.maskExpression.startsWith(a.SEPARATOR))return String(e);let i=Number(e);if(this.maskExpression.startsWith(a.SEPARATOR)&&Number.isNaN(i)){let n=String(e).replace(",",".");return Number(n)}return Number.isNaN(i)?e:i}_removeMask(e,i){return this.maskExpression.startsWith(a.PERCENT)&&e.includes(a.DOT)?e:e&&e.replace(this._regExpForRemove(i),a.EMPTY_STRING)}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,a.EMPTY_STRING):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,a.EMPTY_STRING):e}_retrieveSeparatorValue(e){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(n=>this.dropSpecialCharacters.includes(n)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&e.includes(a.WHITE_SPACE)&&this.maskExpression.includes(a.SYMBOL_STAR)&&(i=i.filter(n=>n!==a.WHITE_SPACE)),this._removeMask(e,i)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(i),a.DOT)}_checkSymbols(e){let i=e;if(i===a.EMPTY_STRING)return i;this.maskExpression.startsWith(a.PERCENT)&&this.decimalMarker===a.COMMA&&(i=i.replace(a.COMMA,a.DOT));let n=this._retrieveSeparatorPrecision(this.maskExpression),o=this.specialCharacters.length===0?this._retrieveSeparatorValue(i):this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&n?i===this.decimalMarker?null:o.length>14?String(o):this._checkPrecision(this.maskExpression,o):o}_checkPatternForSpace(){for(let e in this.patterns)if(this.patterns[e]&&this.patterns[e]?.hasOwnProperty("pattern")){let i=this.patterns[e]?.pattern.toString(),n=this.patterns[e]?.pattern;if(i?.includes(a.WHITE_SPACE)&&n?.test(this.maskExpression))return!0}return!1}_retrieveSeparatorPrecision(e){let i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){let n=this.getPrecision(e),o=i;return e.indexOf("2")>0||this.leadZero&&Number(n)>0&&Number.isFinite(n)?(this.decimalMarker===a.COMMA&&this.leadZero&&(o=o.replace(",",".")),this.leadZero?Number(o).toFixed(Number(n)):Number(o).toFixed(2)):this.numberToString(o)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split(a.EMPTY_STRING).reduce((i,n,o)=>{if(this._start=n===a.CURLY_BRACKETS_LEFT?o:this._start,n!==a.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(n)?i+n:i;this._end=o;let l=Number(e.slice(this._start+1,this._end)),d=new Array(l+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes(a.LETTER_S)){let u=e.slice(0,this._start-1);return u.includes(a.CURLY_BRACKETS_LEFT)?i+d:u+i+d}else return i+d},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};m(t,"\u0275fac",(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})()),m(t,"\u0275prov",We({token:t,factory:t.\u0275fac}));let r=t;return r})();function Hs(){let r=f(Xr),t=f(Qr);return t instanceof Function?A(A({},r),t()):A(A({},r),t)}function Jr(r){return[{provide:Qr,useValue:r},{provide:Xr,useValue:Os},{provide:ni,useFactory:Hs},Vi]}var si=(()=>{let t=class t{mask=p("");specialCharacters=p([]);patterns=p({});prefix=p("");suffix=p("");thousandSeparator=p(" ");decimalMarker=p(".");dropSpecialCharacters=p(null);hiddenInput=p(null);showMaskTyped=p(null);placeHolderCharacter=p(null);shownMaskExpression=p(null);clearIfNotMatch=p(null);validation=p(null);separatorLimit=p("");allowNegativeNumbers=p(null);leadZeroDateTime=p(null);leadZero=p(null);triggerOnMaskChange=p(null);apm=p(null);inputTransformFn=p(null);outputTransformFn=p(null);keepCharacterPositions=p(null);instantPrefix=p(null);maskFilled=Lt();_maskValue=k("");_inputValue=k("");_position=k(null);_code=k("");_maskExpressionArray=k([]);_justPasted=k(!1);_isFocused=k(!1);_isComposing=k(!1);_maskService=f(Vi,{self:!0});document=f(lt);_config=f(ni);onChange=e=>{};onTouch=()=>{};ngOnChanges(e){let{mask:i,specialCharacters:n,patterns:o,prefix:l,suffix:d,thousandSeparator:u,decimalMarker:h,dropSpecialCharacters:v,hiddenInput:y,showMaskTyped:b,placeHolderCharacter:R,shownMaskExpression:c,
3clearIfNotMatch:_,validation:le,separatorLimit:ce,allowNegativeNumbers:xe,leadZeroDateTime:q,leadZero:ue,triggerOnMaskChange:nt,apm:Ue,inputTransformFn:st,outputTransformFn:Ge,keepCharacterPositions:St,instantPrefix:C}=e;if(i&&(i.currentValue!==i.previousValue&&!i.firstChange&&(this._maskService.maskChanged=!0),i.currentValue&&i.currentValue.split(a.OR).length>1?(this._maskExpressionArray.set(i.currentValue.split(a.OR).sort((g,K)=>g.length-K.length)),this._setMask()):(this._maskExpressionArray.set([]),this._maskValue.set(i.currentValue||a.EMPTY_STRING),this._maskService.maskExpression=this._maskValue())),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.specialCharacters=n.currentValue||[]}if(xe&&(this._maskService.allowNegativeNumbers=xe.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(g=>g!==a.MINUS))),o&&o.currentValue&&(this._maskService.patterns=o.currentValue),Ue&&Ue.currentValue&&(this._maskService.apm=Ue.currentValue),C&&(this._maskService.instantPrefix=C.currentValue),l&&(this._maskService.prefix=l.currentValue),d&&(this._maskService.suffix=d.currentValue),u&&(this._maskService.thousandSeparator=u.currentValue,u.previousValue&&u.currentValue)){let g=this._maskService.decimalMarker;u.currentValue===this._maskService.decimalMarker&&(this._maskService.decimalMarker=u.currentValue===a.COMMA?a.DOT:a.COMMA),this._maskService.dropSpecialCharacters===!0&&(this._maskService.specialCharacters=this._config.specialCharacters),typeof g=="string"&&typeof this._maskService.decimalMarker=="string"&&(this._inputValue.set(this._inputValue().split(u.previousValue).join("").replace(g,this._maskService.decimalMarker)),this._maskService.actualValue=this._inputValue()),this._maskService.writingValue=!0}h&&(this._maskService.decimalMarker=h.currentValue),v&&(this._maskService.dropSpecialCharacters=v.currentValue),y&&(this._maskService.hiddenInput=y.currentValue,y.previousValue===!0&&y.currentValue===!1&&this._inputValue.set(this._maskService.actualValue)),b&&(this._maskService.showMaskTyped=b.currentValue,b.previousValue===!1&&b.currentValue===!0&&this._isFocused()&&requestAnimationFrame(()=>{this._maskService._elementRef?.nativeElement.click()})),R&&(this._maskService.placeHolderCharacter=R.currentValue),c&&(this._maskService.shownMaskExpression=c.currentValue),_&&(this._maskService.clearIfNotMatch=_.currentValue),le&&(this._maskService.validation=le.currentValue),ce&&(this._maskService.separatorLimit=ce.currentValue),q&&(this._maskService.leadZeroDateTime=q.currentValue),ue&&(this._maskService.leadZero=ue.currentValue),nt&&(this._maskService.triggerOnMaskChange=nt.currentValue),st&&(this._maskService.inputTransformFn=st.currentValue),Ge&&(this._maskService.outputTransformFn=Ge.currentValue),St&&(this._maskService.keepCharacterPositions=St.currentValue),this._applyMask()}validate({value:e}){let i=typeof e=="number"?String(e):e,n=this._maskValue();if(!this._maskService.validation||!n)return null;if(this._maskService.ipError)return this._createValidationError(i);if(this._maskService.cpfCnpjError)return this._createValidationError(i);if(n.startsWith(a.SEPARATOR)||Ls.includes(n)||this._maskService.clearIfNotMatch)return null;if(Fs.includes(n))return this._validateTime(i);if(n===a.EMAIL_MASK)return!/^[^@]+@[^@]+\.[^@]+$/.test(i)&&i?this._createValidationError(i):null;if(i&&i.length>=1){let o=0;if(n.includes(a.CURLY_BRACKETS_LEFT)&&n.includes(a.CURLY_BRACKETS_RIGHT))return n.slice(n.indexOf(a.CURLY_BRACKETS_LEFT)+1,n.indexOf(a.CURLY_BRACKETS_RIGHT))===String(i.length)?null:this._createValidationError(i);if(n.startsWith(a.PERCENT))return null;for(let l in this._maskService.patterns)if(this._maskService.patterns[l]?.optional){if(n.indexOf(l)!==n.lastIndexOf(l)){let d=n.split(a.EMPTY_STRING).filter(u=>u===l).join(a.EMPTY_STRING);o+=d.length}else n.indexOf(l)!==-1&&o++;if(n.indexOf(l)!==-1&&i.length>=n.indexOf(l)||o===n.length)return null}if(n.indexOf(a.SYMBOL_STAR)>1&&i.length<n.indexOf(a.SYMBOL_STAR)||n.indexOf(a.SYMBOL_QUESTION)>1&&i.length<n.indexOf(a.SYMBOL_QUESTION))return this._createValidationError(i);if(n.indexOf(a.SYMBOL_STAR)===-1||n.indexOf(a.SYMBOL_QUESTION)===-1){let l=n.split("*"),d=this._maskService.dropSpecialCharacters?n.length-this._maskService.checkDropSpecialCharAmount(n)-o:this.prefix()?n.length+this.prefix().length-o:n.length-o;if(l.length===1&&i.length<d)return this._createValidationError(i);if(l.length>1){let u=l[l.length-1];if(u&&this._maskService.specialCharacters.includes(u[0])&&String(i).includes(u[0]??"")&&!this.dropSpecialCharacters()){let h=e.split(u[0]);return h[h.length-1].length===u.length-1?null:this._createValidationError(i)}else return(u&&!this._maskService.specialCharacters.includes(u[0])||!u||this._maskService.dropSpecialCharacters)&&i.length>=d-1?null:this._createValidationError(i)}}if(n.indexOf(a.SYMBOL_STAR)===1||n.indexOf(a.SYMBOL_QUESTION)===1)return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted.set(!0)}onFocus(){this._isFocused.set(!0)}onModelChange(e){(e===a.EMPTY_STRING||e===null||typeof e>"u")&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(a.EMPTY_STRING))}onInput(e){if(this._maskService.isInitialized=!0,this._isComposing())return;let i=e.target,n=this._maskService.inputTransformFn?this._maskService.inputTransformFn(i.value):i.value;if(i.type!=="number")if(typeof n=="string"||typeof n=="number"){if(i.value=n.toString(),this._inputValue.set(i.value),this._setMask(),!this._maskValue()){this.onChange(i.value);return}
3let o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;if(this.showMaskTyped()&&this.keepCharacterPositions()&&this._maskService.placeHolderCharacter.length===1){let h=this.suffix(),v=this.prefix(),y=i.value.slice(o-1,o),b=v.length,R=this._maskService._checkSymbolMask(y,this._maskService.maskExpression[o-1-b]??a.EMPTY_STRING),c=this._maskService._checkSymbolMask(y,this._maskService.maskExpression[o+1-b]??a.EMPTY_STRING),_=this._maskService.selStart===this._maskService.selEnd,le=Number(this._maskService.selStart)-b,ce=Number(this._maskService.selEnd)-b,xe=this._code()===a.BACKSPACE||this._code()===a.DELETE;if(xe){if(!_)this._maskService.selStart===b?this._maskService.actualValue=`${v}${this._maskService.maskIsShown.slice(0,ce)}${this._inputValue().split(v).join("")}`:this._maskService.selStart===this._maskService.maskIsShown.length+b?this._maskService.actualValue=`${this._inputValue()}${this._maskService.maskIsShown.slice(le,ce)}`:this._maskService.actualValue=`${v}${this._inputValue().split(v).join("").slice(0,le)}${this._maskService.maskIsShown.slice(le,ce)}${this._maskService.actualValue.slice(ce+b,this._maskService.maskIsShown.length+b)}${h}`;else if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(o-b,o+1-b))&&_)if(le===1&&v)this._maskService.actualValue=`${v}${this._maskService.placeHolderCharacter}${i.value.split(v).join("").split(h).join("")}${h}`,o=o-1;else{let q=i.value.substring(0,o),ue=i.value.substring(o);this._maskService.actualValue=`${q}${this._maskService.placeHolderCharacter}${ue}`}o=this._code()===a.DELETE?o+1:o}xe||(!R&&!c&&_?o=Number(i.selectionStart)-1:this._maskService.specialCharacters.includes(i.value.slice(o,o+1))&&c&&!this._maskService.specialCharacters.includes(i.value.slice(o+1,o+2))?(this._maskService.actualValue=`${i.value.slice(0,o-1)}${i.value.slice(o,o+1)}${y}${i.value.slice(o+2)}`,o=o+1):R?i.value.length===1&&o===1?this._maskService.actualValue=`${v}${y}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${h}`:this._maskService.actualValue=`${i.value.slice(0,o-1)}${y}${i.value.slice(o+1).split(h).join("")}${h}`:v&&i.value.length===1&&o-b===1&&this._maskService._checkSymbolMask(i.value,this._maskService.maskExpression[o-1-b]??a.EMPTY_STRING)&&(this._maskService.actualValue=`${v}${i.value}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${h}`))}let l=0,d=!1;if(this._code()===a.DELETE&&a.SEPARATOR&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue().length>=this._maskService.maskExpression.length-1&&this._code()!==a.BACKSPACE&&this._maskService.maskExpression===a.DAYS_MONTHS_YEARS&&o<10){let h=this._inputValue().slice(o-1,o);i.value=this._inputValue().slice(0,o-1)+h+this._inputValue().slice(o+1)}if(this._maskService.maskExpression===a.DAYS_MONTHS_YEARS&&this.leadZeroDateTime()&&(o<3&&Number(i.value)>31&&Number(i.value)<40||o===5&&Number(i.value.slice(3,5))>12)&&(o=o+2),this._maskService.maskExpression===a.HOURS_MINUTES_SECONDS&&this.apm()&&(this._justPasted()&&i.value.slice(0,2)===a.DOUBLE_ZERO&&(i.value=i.value.slice(1,2)+i.value.slice(2,i.value.length)),i.value=i.value===a.DOUBLE_ZERO?a.NUMBER_ZERO:i.value),this._maskService.applyValueChanges(o,this._justPasted(),this._code()===a.BACKSPACE||this._code()===a.DELETE,(h,v)=>{this._justPasted.set(!1),l=h,d=v}),this._getActiveElement()!==i)return;if(this._maskService.plusOnePosition&&(o=o+1,this._maskService.plusOnePosition=!1),this._maskExpressionArray().length)if(this._code()===a.BACKSPACE){let h=this.specialCharacters().includes(this._maskService.actualValue.slice(o-1,o)),v=this._maskService.removeMask(this._inputValue())?.length===this._maskService.removeMask(this._maskService.maskExpression)?.length,y=this.specialCharacters().includes(this._maskService.actualValue.slice(o,o+1));v&&!y?o=i.selectionStart+1:o=h?o-1:o}else o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;this._position.set(this._position()===1&&this._inputValue().length===1?null:this._position());let u=this._position()?this._inputValue().length+o+l:o+(this._code()===a.BACKSPACE&&!d?0:l);u>this._getActualInputLength()&&(u=i.value===this._maskService.decimalMarker&&i.value.length===1?this._getActualInputLength()+1:this._getActualInputLength()),u<0&&(u=0),i.setSelectionRange(u,u),this._position.set(null)}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof n);else{if(!this._maskValue()){this.onChange(i.value);return}this._maskService.applyValueChanges(i.value.length,this._justPasted(),this._code()===a.BACKSPACE||this._code()===a.DELETE)}}onCompositionStart(){this._isComposing.set(!0)}onCompositionEnd(e){this._isComposing.set(!1),this._justPasted.set(!0),this.onInput(e)}onBlur(e){if(this._maskValue()){let i=e.target;if(this._maskService.leadZero&&i.value.length>0&&typeof this._maskService.decimalMarker=="string"){let n=this._maskService.maskExpression,o=this._maskService.decimalMarker,l=this._maskService.suffix,d=Number(this._maskService.maskExpression.slice(n.length-1,n.length));if(d>0){i.value=l?i.value.split(l).join(""):i.value;let u=i.value.split(o)[1];i.value=i.value.includes(o)?i.value+a.NUMBER_ZERO.repeat(d-u.length)+l:i.value+o+a.NUMBER_ZERO.repeat(d)+l,this._maskService.actualValue=i.value}}this._maskService.clearIfNotMatchFn()}this._isFocused.set(!1),this.onTouch()}onClick(e){if(!this._maskValue())return;let i=e.target,n=0,o=0;i!==null&&i.selectionStart!==null&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&e.keyCode!==38&&this._maskService.showMaskTyped&&!this.keepCharacterPositions()&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(n,o)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));let l=i&&(i.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:i.value);if(i&&i.value!==l&&(i.value=l),i&&i.type!=="number"&&(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length){let d=this._maskService.maskExpression.match(new RegExp(`^[${this._maskService.specialCharacters.map(u=>`\\${u}`).join("")}]+`))?.[0].length||0;i.selectionStart=this._maskService.prefix.length+d;return}i&&i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){if(!this._maskValue())return;if(this._isComposing()){e.key==="Enter"&&this.onCompositionEnd(e);return}this._code.set(e.code?e.code:e.key);let i=e.target;this._inputValue.set(i.value),this._setMask();let n=i.tagName.toLowerCase()==="textarea";if(i.type!=="number"){if(e.key===a.ARROW_UP&&!n&&e.preventDefault(),e.key===a.ARROW_LEFT||e.key===a.BACKSPACE||e.key===a.DELETE){if(e.key===a.BACKSPACE&&i.value.length===0&&(i.selectionStart=i.selectionEnd),e.key===a.BACKSPACE&&i.selectionStart!==0){let l=this.prefix().length,d=this.specialCharacters().length?this.specialCharacters():this._config.specialCharacters;if(l>1&&i.selectionStart<=l)i.setSelectionRange(l,i.selectionEnd);else if(this._inputValue().length!==i.selectionStart&&i.selectionStart!==1)for(;d.includes((this._inputValue()[i.selectionStart-1]??a.EMPTY_STRING).toString())&&
3(l>=1&&i.selectionStart>l||l===0);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd)}this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();let o=i.selectionStart;e.key===a.BACKSPACE&&!i.readOnly&&o===0&&i.selectionEnd===i.value.length&&i.value.length!==0&&(this._position.set(this._maskService.prefix?this._maskService.prefix.length:0),this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position()))}this.suffix()&&this.suffix().length>1&&this._inputValue().length-this.suffix().length<i.selectionStart?i.setSelectionRange(this._inputValue().length-this.suffix().length,this._inputValue().length):(e.code==="KeyA"&&e.ctrlKey||e.code==="KeyA"&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}}writeValue(e){return ee(this,null,function*(){let i=e,n=this._maskService.inputTransformFn;if(typeof i=="object"&&i!==null&&"value"in i&&("disable"in i&&this.setDisabledState(!!i.disable),i=i.value),i!==null&&(i=n?n(i):i),typeof i=="string"||typeof i=="number"||i===null||typeof i>"u"){(i===null||typeof i>"u"||i==="")&&(this._maskService.currentValue="",this._maskService.previousValue="");let o=i;if(typeof o=="number"||this._maskValue().startsWith(a.SEPARATOR)){o=String(o);let l=this._maskService.currentLocaleDecimalMarker();Array.isArray(this._maskService.decimalMarker)||(o=this._maskService.decimalMarker!==l?o.replace(l,this._maskService.decimalMarker):o),this._maskService.leadZero&&o&&this.mask()&&this.dropSpecialCharacters()!==!1&&(o=this._maskService._checkPrecision(this._maskService.maskExpression,o)),(this._maskService.decimalMarker===a.COMMA||Array.isArray(this._maskService.decimalMarker)&&this._maskService.thousandSeparator===a.DOT)&&(o=o.toString().replace(a.DOT,a.COMMA)),this.mask()?.startsWith(a.SEPARATOR)&&this.leadZero()&&requestAnimationFrame(()=>{this._maskService.applyMask(o?.toString()??"",this._maskService.maskExpression)}),this._maskService.isNumberValue=!0}(typeof o!="string"||i===null||typeof i>"u")&&(o=""),this._inputValue.set(o),this._setMask(),o&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(o,this._maskService.maskExpression)],this._maskService.writingValue=!1,this._maskService.isInitialized=!0):(this._maskService.formElementProperty=["value",o],this._maskService.isInitialized=!0),this._inputValue.set(o)}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i)})}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){let i=this.prefix().length,n=this.suffix().length,o=this._inputValue().length;e.selectionStart=Math.min(Math.max(i,e.selectionStart),o-n),e.selectionEnd=Math.min(Math.max(i,e.selectionEnd),o-n)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue()||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue(),this._maskService.maskExpression)]}_validateTime(e){let i=this._maskValue().split(a.EMPTY_STRING).filter(n=>n!==":").length;return e&&(+(e[e.length-1]??-1)==0&&e.length<i||e.length<=i-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue(),actualValue:e}}}_setMask(){this._maskExpressionArray().some(e=>{if(e.split(a.EMPTY_STRING).some(n=>this._maskService.specialCharacters.includes(n))&&this._inputValue()&&this._areAllCharactersInEachStringSame(this._maskExpressionArray())||e.includes(a.CURLY_BRACKETS_LEFT)){let n=this._maskService.removeMask(this._inputValue())?.length<=this._maskService.removeMask(e)?.length;if(n){let o=e.includes(a.CURLY_BRACKETS_LEFT)?this._maskService._repeatPatternSymbols(e):e;return this._maskValue.set(o),this._maskService.maskExpression=o,n}else{let o=this._maskExpressionArray()[this._maskExpressionArray().length-1]??a.EMPTY_STRING,l=o.includes(a.CURLY_BRACKETS_LEFT)?this._maskService._repeatPatternSymbols(o):o;this._maskValue.set(l),this._maskService.maskExpression=l}}else{let n=this._maskService.removeMask(e),o=this._maskService.removeMask(this._inputValue())?.split(a.EMPTY_STRING).every((l,d)=>{let u=n.charAt(d);return this._maskService._checkSymbolMask(l,u)});if(o||this._justPasted())return this._maskValue.set(e),this._maskService.maskExpression=e,o}})}_areAllCharactersInEachStringSame(e){let i=this._maskService.specialCharacters;function n(l){let d=new RegExp(`[${i.map(u=>`\\${u}`).join("")}]`,"g");return l.replace(d,"")}return e.map(n).every(l=>new Set(l).size===1)}};m(t,"\u0275fac",function(i){return new(i||t)}),m(t,"\u0275dir",S({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(i,n){i&1&&F("paste",function(){return n.onPaste()})("focus",function(l){return n.onFocus(l)})("ngModelChange",function(l){return n.onModelChange(l)})("input",function(l){return n.onInput(l)})("compositionstart",function(l){return n.onCompositionStart(l)})("compositionend",function(l){return n.onCompositionEnd(l)})("blur",function(l){return n.onBlur(l)})("click",function(l){return n.onClick(l)})("keydown",function(l){return n.onKeyDown(l)})},inputs:{mask:[1,"mask"],specialCharacters:[1,"specialCharacters"],patterns:[1,"patterns"],prefix:[1,"prefix"],suffix:[1,"suffix"],thousandSeparator:[1,"thousandSeparator"],decimalMarker:[1,"decimalMarker"],dropSpecialCharacters:[1,"dropSpecialCharacters"],hiddenInput:[1,"hiddenInput"],showMaskTyped:[1,"showMaskTyped"],placeHolderCharacter:[1,"placeHolderCharacter"],shownMaskExpression:[1,"shownMaskExpression"],clearIfNotMatch:[1,"clearIfNotMatch"],validation:[1,"validation"],separatorLimit:[1,"separatorLimit"],allowNegativeNumbers:[1,"allowNegativeNumbers"],leadZeroDateTime:[1,"leadZeroDateTime"],leadZero:[1,"leadZero"],triggerOnMaskChange:[1,"triggerOnMaskChange"],apm:[1,"apm"],inputTransformFn:[1,"inputTransformFn"],outputTransformFn:[1,"outputTransformFn"],keepCharacterPositions:[1,"keepCharacterPositions"],instantPrefix:[1,"instantPrefix"]},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[x([{provide:oe,useExisting:t,multi:!0},{provide:L,useExisting:t,multi:!0},Vi]),ct]}));let r=t;return r})();var Us=["dateInput"],Gs=["textInput"],ae=class ae{constructor(){this.renderer=f(Q),this.platform=f(Nt),this.injector=f(hi),this.destroyRef=f(ze),this.id=p(),this.name=p(),this.value=vi(),this.disabled=vi(!1),this.placeholder=p("DD/MM/YYYY"),this.mask=p("00/00/0000"),this.autocomplete=p("bday"),this.max=p(),this.min=p(),this.textDirective=Fe.required(si),this.dateInput=Fe.required("dateInput"),this.textInput=Fe.required("textInput"),this.valid=k(!0),this.pristine=k(!0),this.touched=k(!1)}ngOnInit(){let t=this.injector.get(He,null,{optional:!0,self:!0});t?.control?.statusChanges?.pipe(de(this.destroyRef)).subscribe(()=>{this.valid.set(!!t.control?.valid)}),t?.control?.events?.pipe(me(s=>s instanceof Le||s instanceof Be||s instanceof rt),de(this.destroyRef)).subscribe(()=>{this.pristine.set(!!t.control?.pristine),this.touched.set(!!t.control?.touched)})}writeValue(t){let s=this.dateInput().nativeElement;this.renderer.setProperty(s,"value",t),this.setValueFromDateInput()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}validate(t){let s=this.dateInput().nativeElement;return t.value===null||s===null||!s.validity||s.validity.valid?null:{max:s.validity.rangeOverflow,min:s.validity.rangeUnderflow}}onInputTouched(){this.onTouched?.()}onDateInputInteraction(t){t.stopPropagation();let s=this.setValueFromDateInput();this.onChange?.(s)}onTextInputInteraction(t){t.stopPropagation();let s=t.target,e=this.dateInput().nativeElement,i=this.getValueAsDate(s.value);this.renderer.setProperty(e,"valueAsDate",i);let n=e.value;this.value.set(n),this.onChange?.(n)}setValueFromDateInput(){let t=this.dateInput().nativeElement,s=t.valueAsDate,e=t.value,i=s===null?null:ae.DateTimeFormatter.format(s);return ht(this.platform)&&this.textDirective().writeValue(i),this.value.set(e),e}getValueAsDate(t){if(!t)return null;let s=t.split("/");if(s.length!==3)return null;let e=Date.UTC(Number.parseInt(s[2]),Number.parseInt(s[1])-1,Number.parseInt(s[0]));return Number.isNaN(e)?null:new Date(e)}};ae.DateTimeFormatter=new Intl.DateTimeFormat("en-GB",{year:"numeric",day:"numeric",month:"numeric",timeZone:"UTC"}),ae.\u0275fac=function(s){return new(s||ae)},ae.\u0275cmp=V({type:ae,selectors:[["sx-date-picker"]],viewQuery:function(s,e){s&1&&(Re(e.textDirective,si,5),Re(e.dateInput,Us,5),Re(e.textInput,Gs,5)),s&2&&Se(3)},hostVars:1,hostBindings:function(s,e){s&2&&Z("id",null)},inputs:{id:[1,"id"],name:[1,"name"],value:[1,"value"],disabled:[1,"disabled"],placeholder:[1,"placeholder"],mask:[1,"mask"],autocomplete:[1,"autocomplete"],max:[1,"max"],min:[1,"min"]},outputs:{value:"valueChange",disabled:"disabledChange"},features:[x([{provide:oe,useExisting:B(()=>ae),multi:!0},{provide:L,useExisting:B(()=>ae),multi:!0},Jr()])],decls:8,vars:24,consts:[["textInput",""],["dateInput",""],["type","text",3,"input","blur","disabled","keepCharacterPositions","mask"],["type","button"],["xmlns","http://www.w3.org/2000/svg","height","20px","viewBox","0 -960 960 960","width","20px","fill","#111","focusable","false"],["d","M216-96q-29.7 0-50.85-21.5Q144-139 144-168v-528q0-29 21.15-50.5T216-768h72v-96h72v96h240v-96h72v96h72q29.7 0 50.85 21.5Q816-725 816-696v528q0 29-21.15 50.5T744-96H216Zm0-72h528v-360H216v360Zm0-432h528v-96H216v96Zm0 0v-96 96Z"],["type","date","tabindex","-1",3,"input","blur","disabled"]],template:function(s,e){if(s&1){let i=It();O(0,"sxc-input")(1,"input",2,0),F("input",function(o){return Ae(i),Te(e.onTextInputInteraction(o))})("blur",function(){return Ae(i),Te(e.onInputTouched())}),H(),O(3,"span",3),Ze(),O(4,"svg",4),Ve(5,"path",5),H(),Tt(),O(6,"input",6,1),F("input",function(o){return Ae(i),Te(e.onDateInputInteraction(o))})("blur",function(){return Ae(i),Te(e.onInputTouched())}),H()()()}s&2&&(T(),Pe("ng-valid",e.valid())("ng-invalid",!e.valid())("ng-pristine",e.pristine())("ng-dirty",!e.pristine())("ng-touched",e.touched())("ng-untouched",!e.touched()),_e("disabled",e.disabled())("keepCharacterPositions",!0)("mask",e.mask()),Z("id",e.id())("name",e.name())("placeholder",e.placeholder())("autocomplete",e.autocomplete()),T(5),_e("disabled",e.disabled()),Z("placeholder",e.placeholder())("autocomplete",e.autocomplete())("max",e.max())("min",e.min()))},dependencies:[si,Kr],styles:["sxc-input[_ngcontent-%COMP%]{position:relative}span[_ngcontent-%COMP%]{position:absolute;right:20px;top:50%;background-color:transparent;transform:translateY(-50%);width:20px;height:20px;margin:0;border:0;padding:0;display:inline-block}input[type=date][_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:0;margin:0;border:0;opacity:0;cursor:pointer}
3svg[_ngcontent-%COMP%]{fill:var(--color-text)}svg[_ngcontent-%COMP%], input[type=date][_ngcontent-%COMP%]{position:absolute;top:0;left:0}[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}"],changeDetection:0});var en=ae;function mc(r,t){if(!(r instanceof Xi)||r.status!==400)return!1;let s=r.error?.errors;if(!s||typeof s!="object")return!1;t.markAllAsTouched();let e=!1;for(let i of Object.keys(s)){let n=i===""?t:t.get(i),o=s[i];!n||!Array.isArray(o)||o.length===0||(n.markAsDirty(),n.markAsTouched(),n.setErrors(o),e=!0)}return e}var tn=(()=>{let t=class t{constructor(){this.spreadexConfig=f(ne),this.contact=p("CustomerServiceEmail"),this.customText=p(""),this.link=w(()=>{switch(this.contact()){case"CustomerServiceEmail":return{prefix:"mailto:",contact:this.spreadexConfig.brand.email};case"CustomerServicePhone":return{prefix:"tel:",contact:this.spreadexConfig.brand.phone};case"AccountOpeningEmail":return{prefix:"mailto:",contact:this.spreadexConfig.brand.accountOpeningEmail}}}),this.text=w(()=>this.customText()!==""?this.customText():this.link().contact)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sx-contact-link"]],inputs:{contact:[1,"contact"],customText:[1,"customText"]},decls:2,vars:2,consts:[["target","_blank",3,"href"]],template:function(i,n){i&1&&(we(0,"a",0),U(1),Ie()),i&2&&(Rt("href",n.link().prefix+n.link().contact,qe),T(),Ce(n.text()))},styles:["a[_ngcontent-%COMP%]{color:var(--color-button-link)}"],changeDetection:0});let r=t;return r})();var Ec=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sx-server-error"]],decls:8,vars:4,consts:[[1,"error-summary"],[1,"icon"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true",1,""],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"],[1,"text"],["contact","CustomerServicePhone"]],template:function(i,n){i&1&&(O(0,"div",0)(1,"div",1),Ze(),O(2,"svg",2),Ve(3,"path",3),H()(),Tt(),O(4,"div",4),U(5),Ke(6,"sxTranslate"),Ve(7,"sx-contact-link",5),H()()),i&2&&(T(5),Oe(" ",Qe(6,1,"oao:servererror","It appears we are experiencing some problems processing your request. Please try again. If the problem persists, contact us on")," "))},dependencies:[tn,et],styles:[".error-summary[_ngcontent-%COMP%]{display:flex;border:1px solid #fe777d;border-radius:.75rem;padding:10px;color:#c02f37;background:#f2c9cb;margin-top:10px;align-items:center;--color-button-link: #c02f37}.icon[_ngcontent-%COMP%]{flex-basis:20%;margin-right:6px;height:40px}.icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{height:40px}.text[_ngcontent-%COMP%]{font-size:14px}"],changeDetection:0});let r=t;return r})();function js(r){return r?r.dataLayer=r.dataLayer||[]:[]}var oi=new N("sx-data-layer",{providedIn:"root",factory:()=>js(f(be))});function $s(r,t){return r?r.gtag=r.gtag||function(){t.push(arguments)}:()=>{}}var rn=new N("sx-gtag-fn",{providedIn:"root",factory:()=>$s(f(be),f(oi))});function Ys(r,t){let s=typeof navigator<"u"?navigator.onLine:!0;return typeof window<"u"&&(window.addEventListener("online",r),window.addEventListener("offline",t)),{isOnline:s,unsubscribe:()=>{typeof window<"u"&&(window.removeEventListener("online",r),window.removeEventListener("offline",t))}}}function Ws(r){let t=()=>{document.visibilityState==="hidden"&&r()};return addEventListener("visibilitychange",t),addEventListener("pagehide",r),{unsubscribe:()=>{removeEventListener("visibilitychange",t),removeEventListener("pagehide",r)}}}function Zs(r,t){return ee(this,null,function*(){if(typeof navigator<"u"&&navigator.sendBeacon){let s=JSON.stringify(t),e={type:"application/json"},i=new Blob([s],e);navigator.sendBeacon(r,i);return}yield zs(r,t,{keepalive:!0})})}function zs(e,i){return ee(this,arguments,function*(r,t,s={}){let n=JSON.stringify(t);return yield fetch(r,A({method:"POST",headers:{"Content-Type":"application/json"},body:n},s))})}var nn=class{sendEventUrl="";sendAnalyticsUrl="";appName="";eventQueue=[];_flushTimeout=5e3;MAX_BATCH_SIZE=64*1024;isOnline=!0;onlineStatusUnsubscribe;pageHiddenUnsubscribe;flushTimeoutId;isFlushing=!1;constructor(r,t){this.appName=t,r.endsWith("/")||(r+="/"),this.sendEventUrl=`${r}Events/SendEvent`,this.sendAnalyticsUrl=`${r}Events/SendAnalytics`,this.onlineStatusUnsubscribe=Ys(()=>{this.isOnline=!0,this.scheduleFlush()},()=>{this.isOnline=!1}),this.pageHiddenUnsubscribe=Ws(()=>{this.flushQueue()})}destroy(){this.onlineStatusUnsubscribe&&this.onlineStatusUnsubscribe.unsubscribe(),this.pageHiddenUnsubscribe&&this.pageHiddenUnsubscribe.unsubscribe(),this.clearFlushTimeout(),this.flushQueue()}recordEvent(r,t,s,e,i){let n=null;i!=null&&(n=JSON.stringify(i));let o={app:this.appName,category:r,action:t,label:s,url:e,data:n};this.transmitEvent(o)}recordEventAsync(r,t,s,e,i){return ee(this,null,function*(){let n=null;i!=null&&(n=JSON.stringify(i));let o={app:this.appName,category:r,action:t,label:s,url:e,data:n};return yield this.fetchEventAsync(this.sendEventUrl,o)})}transmitEvent(r){if(!!(typeof navigator<"u"&&navigator.sendBeacon)){this.trySendEventBeacon(this.sendEventUrl,r);return}this.fetchEventAsync(this.sendEventUrl,r)}fetchEventAsync(r,t){return ee(this,null,function*(){let s=[];for(let i in t)s[s.length]=encodeURIComponent(i)+"="+encodeURIComponent(t[i]!==null&&t[i]!==void 0?t[i]:"");return(yield fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},credentials:"include",body:s.join("&")})).status===200})}trySendEventBeacon(r,t){let s=new FormData;for(let e in t)t[e]!==null&&t[e]!==void 0&&s.append(e,t[e]);return navigator.sendBeacon(r,s)}recordAnalytics(r,t,s,e,i){let n=null;e!=null&&(n=JSON.stringify(e));let o={category:r,action:t,label:s,eventDate:i??new Date,data:n};this.queueEvent(o)}queueEvent(r){this.eventQueue.push(r),this.calculateQueueSize()>=this.MAX_BATCH_SIZE?this.flushQueue():this.scheduleFlush()}scheduleFlush(){this.clearFlushTimeout(),this.flushTimeoutId=setTimeout(()=>{this.flushQueue()},this._flushTimeout)}calculateQueueSize(){let r={app:this.appName,events:this.eventQueue};return JSON.stringify(r).length}flushQueue(){if(!(this.eventQueue.length===0||!this.isOnline||this.isFlushing)){this.isFlushing=!0,this.clearFlushTimeout();try{for(;this.eventQueue.length>0;){let r=this.createBatch();if(r.events.length>0){let t={app:this.appName,events:r.events};this.sendBatch(t),this.eventQueue.splice(0,r.events.length)}else break}}finally{this.isFlushing=!1}}}clearFlushTimeout(){this.flushTimeoutId&&(clearTimeout(this.flushTimeoutId),this.flushTimeoutId=void 0)}createBatch(){let r=[],t=0;t=JSON.stringify({app:this.appName,events:[]}).length;for(let e of this.eventQueue){let i=JSON.stringify(e).length+1;if(t+i<=this.MAX_BATCH_SIZE)r.push(e),t+=i;else break}return{events:r}}
3sendBatch(r){Zs(this.sendAnalyticsUrl,r).catch(t=>{console.error("Failed to send analytics batch:",t)})}};var sn=new N("sx-ga-settings",{providedIn:"root",factory:()=>({sendInitialSxAnalyticsPageLoad:!0})});function qs(r){return r.webTrackerLink&&r.webTrackApp?new nn(r.webTrackerLink,r.webTrackApp):{recordEvent:()=>{},recordEventAsync:()=>ee(null,null,function*(){return!0}),recordAnalytics:()=>{},recordAnalyticsAsync:()=>ee(null,null,function*(){return!0})}}var on=new N("sx-analytics",{providedIn:"root",factory:()=>qs(f(sn))});var an=(()=>{let t=class t{constructor(){this.gtag=f(rn),this.dataLayer=f(oi),this.sxAnalytics=f(on),this.log=f(Xe),this.document=f(lt),this.sxConfig=f(ne),this.titleService=f(er),this.layoutService=f(Yt),this.sxWindow=f(be)}sxPageLoadAsync(){let e=new Promise(n=>setTimeout(()=>n(),1e3)),i=this.sxAnalytics.recordEventAsync("Page","Load",null,this.document.location.href,{isTrading:!1,referrer:this.document.referrer,isMobile:this.layoutService.isMobile()});return Promise.race([i,e])}pageLoaded(e){setTimeout(()=>{this.sendPageLoadedToDataLayer(e)},100),setTimeout(()=>{this.sendRegistrationToDataLayer(e)},200),this.sendAppsFlyerEvent(e),this.sendCompletedAnalytics(e)}pageView(e){this.gtag("event","page_view",{page_path:e,page_title:this.titleService.getTitle(),page_location:this.document.location.href})}recordEvent(e){this.sxAnalytics.recordEvent(e.category,e.action,e.label,this.document.location.href,e.data)}sxPageLoad(){this.recordEvent({category:"Page",action:"Load",label:null,data:{isTrading:!1,referrer:this.document.referrer,isMobile:this.layoutService.isMobile()}})}sendRegistrationToDataLayer(e){let i={event:"Registration",step:e.analyticsId,registration:{}};e.applicant&&(i.registration={personID:e.applicant.personUuid,webTrackingId:e.webTrackingId,registrationStatus:e.applicant.completedPage,registrationSummary:{countryOfResidence:e.applicant.residence,nationality:e.applicant.nationality}}),this.log.debug("Adobe Analytics: "+JSON.stringify(i)),this.dataLayer.push(i)}sendPageLoadedToDataLayer(e){let i={event:"Page Loaded",page:{pageInfo:{pageName:`account-application2:sports:${e.analyticsId}`,siteDomain:document.location.host,country:document.location.host.endsWith("dk")?"dk":"gb",currency:e.applicant?.currency,language:this.sxConfig.locale,pageType:this.titleService.getTitle(),pageURL:this.document.location.href},source:this.layoutService.isMobile()?"sam":"sad",category:{siteSection:"Account Opening"}},userInfo:{email:e.applicant?.email,loginStatus:e.applicant?"Logged In":"Logged out",personID:e.applicant?.personUuid,webTrackingId:e.webTrackingId}};this.log.debug("Adobe Analytics: "+JSON.stringify(i)),this.dataLayer.push(i)}sendAppsFlyerEvent(e){if(!this.layoutService.isEmbedded())return;let i=null;switch(e.analyticsId){case Wt($t.InitialForm):i="Reg_start";break;case pe[se.FixedOddsPending]:case pe[se.FixedOddsAccepted]:i="Accounts";break;case pe[se.SpreadsAccepted]:case pe[se.Completed]:i="Accounts_Spread";break;default:i=null;break}i!==null&&this.sxWindow.parent.postMessage({type:"appsFlyerEvent",event:i},"*")}sendCompletedAnalytics(e){if(!(e.analyticsId in pe))return;let i="";switch(e.analyticsId){case pe[se.FixedOddsPending]:case pe[se.SpreadsPending]:case pe[se.ProvisionallyAccepted]:i="Pending";break;default:i="Active";break}this.recordEvent({action:"AccountOpening",category:"ApplicationCompleted",label:null,data:{user:e.applicant?.clientRef,brand:e.applicant?.brandName,accountState:i}})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var Ks=["*"];function Qs(r,t){r&1&&(U(0),Ke(1,"sxTranslate")),r&2&&Ce(Qe(1,1,"oao:visitPlatform","Visit Platform"))}function Xs(r,t){r&1&&z(0,0,null,Qs,2,4)}function Js(r,t){if(r&1&&(O(0,"button",1),mi(1,3),H()),r&2){let s=ie(),e=gi(1);_e("sxc-button",s.primary()?"primary":"secondary"),T(),_e("ngTemplateOutlet",e)}}function eo(r,t){if(r&1&&(O(0,"a",2),mi(1,3),H()),r&2){let s=ie(),e=gi(1);_e("sxc-button",s.primary()?"primary":"secondary")("href",s.url(),qe),T(),_e("ngTemplateOutlet",e)}}var _u=(()=>{let t=class t{constructor(){this.layoutService=f(Yt),this.logger=f(Xe),this.redirectService=f(hr),this.navigationService=f(Me),this.locationStrategy=f(Ut),this.router=f(jt),this.sxConfig=f(ne),this.analyticsService=f(an),this.action=p.required(),this.primary=p(!1,{transform:re}),this.url=w(()=>{let e=this.action();switch(e){case"Deposit":return this.layoutService.getDeviceSpecificUrl({desktop:this.sxConfig.homePageUrl.desktop,mobile:this.sxConfig.depositUrl.mobile});case"DepositLimit":return this.layoutService.getDeviceSpecificUrl({desktop:this.sxConfig.homePageUrl.desktop,mobile:this.sxConfig.depositLimitUrl.mobile});case"HomePage":return this.layoutService.getDeviceSpecificUrl(this.sxConfig.homePageUrl);case"UploadDocuments":return this.layoutService.getDeviceSpecificUrl(this.sxConfig.uploadDocumentsUrl);case"ActivateSpreads":{let i=this.navigationService.createUrlTreeForPage({value:Wt($t.RiskLoseMoreThanDeposit),parent:rr.Activate});return this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(i))}default:throw new Error("Action not configured? "+e)}}),this.isEmbedded=w(()=>X(()=>this.layoutService.isEmbedded())),this.isDesktop=w(()=>X(()=>this.layoutService.isDesktop()))}onClick(){switch(this.logger.debug(`redirecting to ${this.url()}`),this.action()){case"Deposit":this.handleDepositClick();break;case"DepositLimit":this.handleDepositLimitClick();break;case"HomePage":this.handleHomePageClick();break;case"UploadDocuments":this.handleUploadDocumentsClick();break;case"ActivateSpreads":this.handleActivateSpreadsClick();break;default:throw new Error("Action not configured: "+this.action())}return!0}
3sendButtonAnalytics(e){let i={category:"Button",action:e,label:null};this.analyticsService.recordEvent(i)}handleHomePageClick(){this.isEmbedded()&&(this.redirectService.closeApplication(),this.redirectService.goToHomePage(),this.redirectService.doItLater())}handleDepositClick(){this.sendButtonAnalytics("Deposit"),this.isDesktop()&&this.redirectService.openMyAccountWith(this.sxConfig.depositUrl.desktop),this.isEmbedded()&&(this.redirectService.redirectToDepositFunds(),this.redirectService.goToDepositFunds())}handleDepositLimitClick(){this.sendButtonAnalytics("DepositLimit"),this.isDesktop()&&this.redirectService.openMyAccountWith(this.sxConfig.depositLimitUrl.desktop),this.isEmbedded()&&this.redirectService.redirectToDepositLimits()}handleUploadDocumentsClick(){this.isEmbedded()&&this.redirectService.uploadDocuments()}handleActivateSpreadsClick(){this.isEmbedded()&&this.redirectService.activateSpreads()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=V({type:t,selectors:[["sx-platform-button"]],hostBindings:function(i,n){i&1&&F("click",function(l){return n.onClick(l)})},inputs:{action:[1,"action"],primary:[1,"primary"]},ngContentSelectors:Ks,decls:4,vars:1,consts:[["content",""],["type","button",3,"sxc-button"],[3,"sxc-button","href"],[3,"ngTemplateOutlet"]],template:function(i,n){i&1&&(ye(),Hi(0,Xs,2,0,"ng-template",null,0,Ot),ge(2,Js,2,2,"button",1)(3,eo,2,3,"a",2)),i&2&&(T(2),ve(n.isEmbedded()?2:3))},dependencies:[Ki,Ni,et],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0});let r=t;return r})();var Eu=(()=>{let t=class t{constructor(){this.translationService=f(fe),this.accept=p.required()}validate(e){return this.acceptValidator(this.accept())(e)}acceptValidator(e){return i=>{if(i.value===null||typeof i.value=="string")return null;let n=e.split(",");
3for(let o of i.value)if(!this.validFileTypes(o,n))return{accept:this.translationService.getTranslation("oao:fileTypeInvalid","Please upload a valid image")};return null}}validFileTypes(e,i){let n=(e.type??"").toLowerCase();return i.some(o=>this.validFileType(e.name,n,o))}validFileType(e,i,n){let o=n.trim().toLowerCase();return o.charAt(0)==="."?e.endsWith(o):o.endsWith("/*")?i===o.replace(/\/.*$/,""):i===o}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["","sxAccept",""]],inputs:{accept:[1,"accept"]},features:[x([{provide:L,useExisting:t,multi:!0}])]});let r=t;return r})();var Nu=(()=>{let t=class t{constructor(){this.translationService=f(fe),this.sxMaxSize=p.required({transform:Ht})}validate(e){return this.maxSizeValidator(this.sxMaxSize())(e)}maxSizeValidator(e){return i=>{if(i.value===null||typeof i.value=="string")return null;for(let n of i.value)if(n.size>e*1024*1024)return{maxSize:this.translationService.getTranslation("oao:filetoolarge","File size cannot exceed $t{maxSizeInMb} MB",{maxSizeInMb:e})};return null}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["","sxMaxSize",""]],inputs:{sxMaxSize:[1,"sxMaxSize"]},features:[x([{provide:L,useExisting:t,multi:!0}])]});let r=t;return r})();var Ou=(()=>{let t=class t{constructor(){this.translationService=f(fe),this.sxMinSize=p.required({transform:Ht})}validate(e){return this.minSizeValidator(this.sxMinSize())(e)}minSizeValidator(e){return i=>{if(i.value===null||typeof i.value=="string")return null;for(let n of i.value)if(n.size<e*1024)return{minSize:this.translationService.getTranslation("oao:filetoosmall","Please upload a file at least $t{minSizeInKb} KB in size",{minSizeInKb:e})};return null}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=S({type:t,selectors:[["","sxMinSize",""]],inputs:{sxMinSize:[1,"sxMinSize"]},features:[x([{provide:L,useExisting:t,multi:!0}])]});let r=t;return r})();export{sn as a,oi as b,rn as c,_o as d,ro as e,pe as f,bo as g,an as h,oe as i,gn as j,Er as k,$ as l,zo as m,qo as n,ke as o,Di as p,ti as q,Qo as r,qn as s,Br as t,Xo as u,Jo as v,rs as w,ss as x,as as y,ea as z,ua as A,_a as B,Ma as C,tn as D,Ti as E,ii as F,rl as G,Ta as H,Ba as I,Ec as J,yl as K,Ol as L,Ni as M,jl as N,_u as O,Kr as P,Jr as Q,si as R,en as S,Eu as T,Nu as U,Ou as V,mc as W};
4/**i18n:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.