vendor: 5,218 bytes, line 1
1import{$ as Jt,$a as Cc,$c as Oc,A as Ja,Aa as Wn,B as ec,Bb as _o,Bc as _t,Bd as bo,C as X,Cb as Fi,Cd as Wr,D as po,Dc as pt,Dd as $c,E as Zt,F as tc,G as Or,Ga as sc,Gb as ut,H as Lr,Ha as ac,Hb as Fe,Hc as jr,Ia as cc,Ic as $r,Ja as lc,Jc as en,Ka as dc,Kc as wt,L as mo,La as uc,Lb as Lt,Ma as pc,Mc as Fc,Na as mc,Nc as Co,Oa as hc,Oc as kc,Pa as fc,Pb as Tc,Pc as Hr,Q as bt,Qc as Kn,Rb as vo,Rc as Ac,Sa as gc,Sc as $,T as nc,Ta as _c,Tc as W,Uc as Rc,Vc as Pc,W as Te,Wb as Dn,Xa as vc,Xb as Ic,Zc as yo,_c as xo,a as Pt,aa as gn,ab as yc,b as Pr,da as St,db as fo,dd as Ur,ed as Gr,f as Ka,fa as Di,fb as Ot,fd as Lc,ga as Mi,gd as Vc,hb as Nr,hc as Vt,hd as Bc,ib as he,id as Nc,ja as ic,jb as Ye,jd as ki,kd as jc,lb as zn,lc as Ec,ma as oc,nb as xc,pb as bc,qa as ho,r as Qa,ra as Vr,rb as qn,ua as Un,ub as Sc,v as Ya,va as Gn,vb as go,vc as Dc,w as Xa,wa as _n,x as uo,xb as wc,y as ze,ya as Br,yb as dt,yd as Ai,z as Za,za as rc,zc as Mc}from"./chunk-Z6K2QFIO.js";import{$ as pe,$a as yr,$b as u,$c as $n,A as mi,Aa as Ie,Ab as xt,Ac as Ue,Ba as F,Bc as _,C as hi,Ca as E,Cc as B,D as En,Da as Be,Db as O,Dc as x,Ea as b,Eb as D,Ec as jt,Ed as Rt,Ee as Wa,F as ha,Fa as T,Fb as V,Fe as Rr,G as fa,Ga as wa,Gb as so,Gc as Oa,Gd as se,Ge as za,H as hr,Hb as re,Hd as N,He as qa,I as pn,Ib as f,Id as Va,J as G,Jd as Ba,Kb as Ma,Ke as lt,L as ga,La as _i,Lb as At,Lc as me,Le as Qe,M as _a,Ma as v,Mb as Fa,Mc as Mr,Md as et,Na as C,Nb as ka,Nd as q,Ne as ae,O as fr,Ob as Qt,Od as kr,Pc as _e,Q as gr,Qa as Pe,Qb as M,R as _r,Ra as ot,Rb as Sr,Rc as Me,Sa as Kt,Sb as Xe,Sc as Y,T as mn,Ta as oe,Tc as st,Td as Na,Ua as Vn,Ub as Ze,Uc as $t,V as le,Vc as jn,Vd as co,Wd as L,Xa as rt,Xb as wr,Xd as Ti,Y as vr,Yb as Tr,Yc as p,Yd as Ii,Za as vi,Zb as c,Zc as m,Zd as ja,_a as Ta,_b as d,_c as de,a as ve,ab as Ee,ac as w,ba as va,bb as ge,bc as yi,c as un,cc as ao,cd as ie,d as ht,db as z,dc as Ir,e as ke,ea as Ca,ec as R,ee as $a,f as Ln,fa as hn,fb as fn,fc as A,g as ui,gc as xe,gd as Yt,hd as Je,i as la,ia as ya,ib as We,ic as P,id as ee,j as In,jb as xr,jc as Er,jd as Si,k as da,kb as Bn,kc as y,kd as Ke,l as ua,la as Cr,lb as br,lc as Aa,ld as j,m as mr,ma as xa,mb as Ci,mc as l,md as Xt,n as pi,na as qt,nb as s,nc as ft,nd as at,o as Q,oa as oo,oc as gt,od as La,oe as Ha,pa as ro,pb as Ia,pc as Ra,pd as Hn,pe as Ua,qa as fi,qb as Ea,qc as He,qe as Ei,r as pa,ra as ne,rc as be,rd as ct,sc as Se,sd as Oe,tb as J,tc as Pa,u as ma,uc as xi,ud as we,v as I,va as Z,vb as Da,vc as Nn,vd as wi,w as Ce,wa as ba,wb as Ft,wc as H,x as no,xa as gi,xb as kt,xc as bi,xd as Fr,xe as Ga,ya as Mt,yb as De,yc as te,ye as lo,z as io,za as Sa,zb as g,zc as Dr,ze as Ar}from"./chunk-H64JJZ5O.js";import{a as U,b as ce}from"./chunk-5GU2RBDX.js";var Yc=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(g(De),g(z))};static \u0275dir=V({type:t})}return t})(),Zn=(()=>{class t extends Yc{static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,features:[re]})}return t})(),vt=new Be(""),wu={provide:vt,useExisting:Ie(()=>Tu),multi:!0},Tu=(()=>{class t extends Zn{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,i){n&1&&y("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[_e([wu]),re]})}return t})(),Iu={provide:vt,useExisting:Ie(()=>Mn),multi:!0};function Eu(){let t=Fr()?Fr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Du=new Be(""),Mn=(()=>{class t extends Yc{_compositionMode;_composing=!1;constructor(e,n,i){super(e,n),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Eu())}writeValue(e){let n=e??"";this.setProperty("value",n)}_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)}static \u0275fac=function(n){return new(n||t)(g(De),g(z),g(Du,8))};static \u0275dir=V({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(n,i){n&1&&y("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},standalone:!1,features:[_e([Iu]),re]})}return t})();
vendor: 9,652 bytes, line 1
1function Kr(t){return t==null||Qr(t)===0}function Qr(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Ct=new Be(""),Fn=new Be(""),Mu=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ht=class{static min(o){return Xc(o)}static max(o){return Zc(o)}static required(o){return Jc(o)}static requiredTrue(o){return el(o)}static email(o){return Fu(o)}static minLength(o){return ku(o)}static maxLength(o){return tl(o)}static pattern(o){return nl(o)}static nullValidator(o){return wo()}static compose(o){return cl(o)}static composeAsync(o){return ll(o)}};function Xc(t){return o=>{if(o.value==null||t==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<t?{min:{min:t,actual:o.value}}:null}}function Zc(t){return o=>{if(o.value==null||t==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>t?{max:{max:t,actual:o.value}}:null}}function Jc(t){return Kr(t.value)?{required:!0}:null}function el(t){return t.value===!0?null:{required:!0}}function Fu(t){return Kr(t.value)||Mu.test(t.value)?null:{email:!0}}function ku(t){return o=>{let e=o.value?.length??Qr(o.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function tl(t){return o=>{let e=o.value?.length??Qr(o.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function nl(t){if(!t)return wo;let o,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=t.toString(),o=t),n=>{if(Kr(n.value))return null;let i=n.value;return o.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function wo(t){return null}function il(t){return t!=null}function ol(t){return Ma(t)?pi(t):t}function rl(t){let o={};return t.forEach(e=>{o=e!=null?U(U({},o),e):o}),Object.keys(o).length===0?null:o}function sl(t,o){return o.map(e=>e(t))}function Au(t){return!t.validate}function al(t){return t.map(o=>Au(o)?o:e=>o.validate(e))}function cl(t){if(!t)return null;let o=t.filter(il);return o.length==0?null:function(e){return rl(sl(e,o))}}function Yr(t){return t!=null?cl(al(t)):null}function ll(t){if(!t)return null;let o=t.filter(il);return o.length==0?null:function(e){let n=sl(e,o).map(ol);return hi(n).pipe(I(rl))}}function Xr(t){return t!=null?ll(al(t)):null}function Hc(t,o){return t===null?[o]:Array.isArray(t)?[...t,o]:[t,o]}function dl(t){return t._rawValidators}function ul(t){return t._rawAsyncValidators}function zr(t){return t?Array.isArray(t)?t:[t]:[]}function To(t,o){return Array.isArray(t)?t.includes(o):t===o}function Uc(t,o){let e=zr(o);return zr(t).forEach(i=>{To(e,i)||e.push(i)}),e}function Gc(t,o){return zr(o).filter(e=>!To(t,e))}var Io=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(o){this._rawValidators=o||[],this._composedValidatorFn=Yr(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Xr(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},tt=class extends Io{name;get formDirective(){return null}get path(){return null}},Ut=class extends Io{_parent=null;name=null;valueAccessor=null},Eo=class{_cd;constructor(o){this._cd=o}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}};var Jn=(()=>{class t extends Eo{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(g(Ut,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){n&2&&te("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[re]})}return t})(),Zr=(()=>{class t extends Eo{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(g(tt,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,i){n&2&&te("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[re]})}return t})();var Ri="VALID",So="INVALID",Qn="PENDING",Pi="DISABLED",Cn=class{},Do=class extends Cn{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Li=class extends Cn{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},Vi=class extends Cn{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Yn=class extends Cn{status;source;constructor(o,e){super(),this.status=o,this.source=e}},Mo=class extends Cn{source;constructor(o){super(),this.source=o}},Bi=class extends Cn{source;constructor(o){super(),this.source=o}};function Jr(t){return(Oo(t)?t.validators:t)||null}function Ru(t){return Array.isArray(t)?Yr(t):t||null}function es(t,o){return(Oo(o)?o.asyncValidators:t)||null}function Pu(t){return Array.isArray(t)?Xr(t):t||null}function Oo(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function pl(t,o,e){let n=t.controls;if(!(o?Object.keys(n):n).length)throw new Mt(1e3,"");if(!n[e])throw new Mt(1001,"")}function ml(t,o,e){t._forEachChild((n,i)=>{if(e[i]===void 0)throw new Mt(-1002,"")})}var Xn=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return Yt(this.statusReactive)}set status(o){Yt(()=>this.statusReactive.set(o))}_status=Je(()=>this.statusReactive());statusReactive=rt(void 0);get valid(){return this.status===Ri}get invalid(){return this.status===So}get pending(){return this.status===Qn}get disabled(){return this.status===Pi}get enabled(){return this.status!==Pi}errors;get pristine(){return Yt(this.pristineReactive)}set pristine(o){Yt(()=>this.pristineReactive.set(o))}_pristine=Je(()=>this.pristineReactive());pristineReactive=rt(!0);get dirty(){return!this.pristine}get touched(){return Yt(this.touchedReactive)}set touched(o){Yt(()=>this.touchedReactive.set(o))}_touched=Je(()=>this.touchedReactive());touchedReactive=rt(!1);get untouched(){return!this.touched}_events=new ht;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(Uc(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Uc(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Gc(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Gc(o,this._rawAsyncValidators))}hasValidator(o){return To(this._rawValidators,o)}hasAsyncValidator(o){return To(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let n=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(ce(U({},o),{sourceControl:n})),e&&o.emitEvent!==!1&&this._events.next(new Vi(!0,n))}
1markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=o.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:n})}),o.onlySelf||this._parent?._updateTouched(o,n),e&&o.emitEvent!==!1&&this._events.next(new Vi(!1,n))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let n=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(ce(U({},o),{sourceControl:n})),e&&o.emitEvent!==!1&&this._events.next(new Li(!1,n))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=o.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,n),e&&o.emitEvent!==!1&&this._events.next(new Li(!0,n))}markAsPending(o={}){this.status=Qn;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Yn(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(ce(U({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Pi,this.errors=null,this._forEachChild(i=>{i.disable(ce(U({},o),{onlySelf:!0}))}),this._updateValue();let n=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Do(this.value,n)),this._events.next(new Yn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ce(U({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Ri,this._forEachChild(n=>{n.enable(ce(U({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(ce(U({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ri||this.status===Qn)&&this._runAsyncValidator(n,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Do(this.value,e)),this._events.next(new Yn(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(ce(U({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pi:Ri}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=Qn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let n=ol(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,i)=>n&&n._find(i),this)}getError(o,e){let n=e?this.get(e):this;return n?.errors?n.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,n){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||n)&&this._events.next(new Yn(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,n)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?Pi:this.errors?So:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qn)?Qn:this._anyControlsHaveStatus(So)?So:Ri}
vendor: 11,798 bytes, line 1
1_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,o.onlySelf||this._parent?._updatePristine(o,e),i&&this._events.next(new Li(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new Vi(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){Oo(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=Ru(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=Pu(this._rawAsyncValidators)}},tn=class extends Xn{constructor(o,e,n){super(Jr(e),es(n,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,n={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,n={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){ml(this,!0,o),Object.keys(o).forEach(n=>{pl(this,!0,n),this.controls[n].setValue(o[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(Object.keys(o).forEach(n=>{let i=this.controls[n];i&&i.patchValue(o[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((n,i)=>{n.reset(o?o[i]:null,ce(U({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Bi(this))}getRawValue(){return this._reduceChildren({},(o,e,n)=>(o[n]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&o(n,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&o(n))return!0;return!1}_reduceValue(){let o={};return this._reduceChildren(o,(e,n,i)=>((n.enabled||this.disabled)&&(e[i]=n.value),e))}_reduceChildren(o,e){let n=o;return this._forEachChild((i,r)=>{n=e(n,i,r)}),n}_allControlsDisabled(){for(let o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}};var hl=tn;var qr=class extends tn{};var kn=new Be("",{factory:()=>ji}),ji="always";function Lo(t,o){return[...o.path,t]}function Ni(t,o,e=ji){ts(t,o),o.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(t.disabled),Lu(t,o),Bu(t,o),Vu(t,o),Ou(t,o)}function Fo(t,o,e=!0){let n=()=>{};o?.valueAccessor?.registerOnChange(n),o?.valueAccessor?.registerOnTouched(n),Ao(t,o),t&&(o._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ko(t,o){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Ou(t,o){if(o.valueAccessor.setDisabledState){let e=n=>{o.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),o._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ts(t,o){let e=dl(t);o.validator!==null?t.setValidators(Hc(e,o.validator)):typeof e=="function"&&t.setValidators([e]);let n=ul(t);o.asyncValidator!==null?t.setAsyncValidators(Hc(n,o.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();ko(o._rawValidators,i),ko(o._rawAsyncValidators,i)}function Ao(t,o){let e=!1;if(t!==null){if(o.validator!==null){let i=dl(t);if(Array.isArray(i)&&i.length>0){let r=i.filter(a=>a!==o.validator);r.length!==i.length&&(e=!0,t.setValidators(r))}}if(o.asyncValidator!==null){let i=ul(t);if(Array.isArray(i)&&i.length>0){let r=i.filter(a=>a!==o.asyncValidator);r.length!==i.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return ko(o._rawValidators,n),ko(o._rawAsyncValidators,n),e}function Lu(t,o){o.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&fl(t,o)})}function Vu(t,o){o.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&fl(t,o),t.updateOn!=="submit"&&t.markAsTouched()})}function fl(t,o){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Bu(t,o){let e=(n,i)=>{o.valueAccessor.writeValue(n),i&&o.viewToModelUpdate(n)};t.registerOnChange(e),o._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function gl(t,o){t==null,ts(t,o)}function Nu(t,o){return Ao(t,o)}function ns(t,o){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function ju(t){return Object.getPrototypeOf(t.constructor)===Zn}function _l(t,o){t._syncPendingControls(),o.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function is(t,o){if(!o)return null;Array.isArray(o);let e,n,i;return o.forEach(r=>{r.constructor===Mn?e=r:ju(r)?n=r:i=r}),i||n||e||null}function $u(t,o){let e=t.indexOf(o);e>-1&&t.splice(e,1)}var Hu={provide:tt,useExisting:Ie(()=>Uu)},Oi=Promise.resolve(),Uu=(()=>{class t extends tt{callSetDisabledState;get submitted(){return Yt(this.submittedReactive)}_submitted=Je(()=>this.submittedReactive());submittedReactive=rt(!1);_directives=new Set;form;ngSubmit=new oe;options;constructor(e,n,i){super(),this.callSetDisabledState=i,this.form=new tn({},Yr(e),Xr(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Oi.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Ni(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Oi.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Oi.then(()=>{let n=this._findContainer(e.path),i=new tn({});gl(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Oi.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Oi.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),_l(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mo(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}static \u0275fac=function(n){return new(n||t)(g(Ct,10),g(Fn,10),g(kn,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,i){n&1&&y("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[_e([Hu]),re]})}return t})();function Wc(t,o){let e=t.indexOf(o);e>-1&&t.splice(e,1)}function zc(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var vn=class extends Xn{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,n){super(Jr(e),es(n,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Oo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(zc(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Bi(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Wc(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Wc(this._onDisabledChange,o)}_forEachChild(o){}_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(o){zc(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},Gu=vn,Wu=t=>t instanceof vn,zu=(()=>{class t extends tt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Lo(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[re]})}return t})();var qu={provide:Ut,useExisting:Ie(()=>os)},qc=Promise.resolve(),os=(()=>{class t extends Ut{_changeDetectorRef;callSetDisabledState;control=new vn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new oe;constructor(e,n,i,r,a,h){super(),this._changeDetectorRef=a,this.callSetDisabledState=h,this._parent=e,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=is(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ns(e,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){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(){Ni(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){qc.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,i=n!==0&&we(n);qc.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Lo(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(g(tt,9),g(Ct,10),g(Fn,10),g(vt,10),g(Oe,8),g(kn,8))};static \u0275dir=V({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:[_e([qu]),re,Ee]})}return t})();var rs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),Ku={provide:vt,useExisting:Ie(()=>Vo),multi:!0},Vo=(()=>{class t extends Zn{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){n&1&&y("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[_e([Ku]),re]})}return t})(),Qu={provide:vt,useExisting:Ie(()=>Xu),multi:!0};var Yu=(()=>{class t{_accessors=[];add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xu=(()=>{class t extends Zn{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=T(kn,{optional:!0})??ji;constructor(e,n,i,r){super(e,n),this._registry=i,this._injector=r}ngOnInit(){this._control=this._injector.get(Ut),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||t)(g(De),g(z),g(Yu),g(Pe))};static \u0275dir=V({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,i){n&1&&y("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[_e([Qu]),re]})}return t})();var Ro=class extends Xn{constructor(o,e,n){super(Jr(e),es(n,e)),this.controls=o,this._initOb
vendor: 10,845 bytes, line 1
1servables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){Array.isArray(o)?o.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,n={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(o,e={}){let n=this._adjustIndex(o);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,n={}){let i=this._adjustIndex(o);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){ml(this,!1,o),o.forEach((n,i)=>{pl(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((n,i)=>{n.reset(o[i],ce(U({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Bi(this))}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,n)=>{o(e,n)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(let o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}},vl=Ro;var Cl=(()=>{class t extends tt{callSetDisabledState;get submitted(){return Yt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Je(()=>this._submittedReactive());_submittedReactive=rt(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ao(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Ni(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Fo(e.control||null,e,!1),$u(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,_l(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mo(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,i=this.form.get(e.path);n!==i&&(Fo(n||null,e),Wu(i)&&(Ni(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);gl(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&Nu(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ts(this.form,this),this._oldForm&&Ao(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(g(Ct,10),g(Fn,10),g(kn,8))};static \u0275dir=V({type:t,features:[re,Ee]})}return t})();var ss=new Be(""),Zu={provide:Ut,useExisting:Ie(()=>Bo)},Bo=(()=>{class t extends Ut{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new oe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,i,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=is(this,i)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Fo(n,this,!1),Ni(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ns(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Fo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(g(Ct,10),g(Fn,10),g(vt,10),g(ss,8),g(kn,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[_e([Zu]),re,Ee]})}return t})(),Ju={provide:tt,useExisting:Ie(()=>yl)},yl=(()=>{class t extends zu{name=null;constructor(e,n,i){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(i)}_checkParentType(){bl(this._parent)}static \u0275fac=function(n){return new(n||t)(g(tt,13),g(Ct,10),g(Fn,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[_e([Ju]),re]})}return t})(),ep={provide:tt,useExisting:Ie(()=>xl)},xl=(()=>{class t extends tt{_parent;name=null;constructor(e,n,i){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(i)}ngOnInit(){bl(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Lo(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(g(tt,13),g(Ct,10),g(Fn,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[_e([ep]),re]})}return t})();function bl(t){return!(t instanceof yl)&&!(t instanceof Cl)&&!(t instanceof xl)}var tp={provide:Ut,useExisting:Ie(()=>No)},No=(()=>{class t extends Ut{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new oe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,i,r,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=is(this,r)}ngOnChanges(e){this._added||this._setUpControl(),ns(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Lo(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(g(tt,13),g(Ct,10),g(Fn,10),g(vt,10),g(ss,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[_e([tp]),re,Ee]})}return t})();var np={provide:tt,useExisting:Ie(()=>jo)},jo=(()=>{class t extends Cl{form=null;ngSubmit=new oe;get control(){return this.form}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,i){n&1&&y("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[_e([np]),re]})}return t})(),ip={provide:vt,useExisting:Ie(()=>as),multi:!0};function Sl(t,o){return t==null?`${o}`:(o&&typeof o=="object"&&(o="Object"),`${t}: ${o}`.slice(0,50))}function op(t){return t.split(":")[0]}var as=(()=>{class t extends Zn{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=T(Qt).injector;destroyRef=T(Kt);cdr=T(Oe);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Ea({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let n=this._getOptionId(e),i=Sl(n,e);this.setProperty("value",i)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=op(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,i){n&1&&y("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[_e([ip]),re]}
1)}return t})(),rp=(()=>{class t{_element;_renderer;_select;id;constructor(e,n,i){this._element=e,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Sl(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(n){return new(n||t)(g(z),g(De),g(as,9))};static \u0275dir=V({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),sp={provide:vt,useExisting:Ie(()=>wl),multi:!0};function Kc(t,o){return t==null?`${o}`:(typeof o=="string"&&(o=`'${o}'`),o&&typeof o=="object"&&(o="Object"),`${t}: ${o}`.slice(0,50))}function ap(t){return t.split(":")[0]}var wl=(()=>{class t extends Zn{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let n;if(Array.isArray(e)){let i=e.map(r=>this._getOptionId(r));n=(r,a)=>{r._setSelected(i.indexOf(a)>-1)}}else n=i=>{i._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let i=[],r=n.selectedOptions;if(r!==void 0){let a=r;for(let h=0;h<a.length;h++){let S=a[h],k=this._getOptionValue(S.value);i.push(k)}}else{let a=n.options;for(let h=0;h<a.length;h++){let S=a[h];if(S.selected){let k=this._getOptionValue(S.value);i.push(k)}}}this.value=i,e(i)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=ap(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,i){n&1&&y("change",function(a){return i.onChange(a.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[_e([sp]),re]})}return t})(),cp=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,n,i){this._element=e,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Kc(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Kc(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))}static \u0275fac=function(n){return new(n||t)(g(z),g(De),g(wl,9))};static \u0275dir=V({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function lp(t){return typeof t=="number"?t:parseInt(t,10)}function Tl(t){return typeof t=="number"?t:parseFloat(t)}var $i=(()=>{class t{_validator=wo;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):wo,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Ee]})}return t})(),dp={provide:Ct,useExisting:Ie(()=>cs),multi:!0},cs=(()=>{class t extends $i{max;inputName="max";normalizeInput=e=>Tl(e);createValidator=e=>Zc(e);static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&M("max",i._enabled?i.max:null)},inputs:{max:"max"},standalone:!1,features:[_e([dp]),re]}
1)}return t})(),up={provide:Ct,useExisting:Ie(()=>ls),multi:!0},ls=(()=>{class t extends $i{min;inputName="min";normalizeInput=e=>Tl(e);createValidator=e=>Xc(e);static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&M("min",i._enabled?i.min:null)},inputs:{min:"min"},standalone:!1,features:[_e([up]),re]})}return t})(),pp={provide:Ct,useExisting:Ie(()=>Hi),multi:!0},mp={provide:Ct,useExisting:Ie(()=>hp),multi:!0},Hi=(()=>{class t extends $i{required;inputName="required";normalizeInput=we;createValidator=e=>Jc;enabled(e){return e}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,i){n&2&&M("required",i._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[_e([pp]),re]})}return t})(),hp=(()=>{class t extends Hi{createValidator=e=>el;static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&M("required",i._enabled?"":null)},standalone:!1,features:[_e([mp]),re]})}return t})();var fp={provide:Ct,useExisting:Ie(()=>gp),multi:!0},gp=(()=>{class t extends $i{maxlength;inputName="maxlength";normalizeInput=e=>lp(e);createValidator=e=>tl(e);static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&M("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[_e([fp]),re]})}return t})(),_p={provide:Ct,useExisting:Ie(()=>ds),multi:!0},ds=(()=>{class t extends $i{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>nl(e);static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275dir=V({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&M("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[_e([_p]),re]})}return t})();var Il=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=D({type:t});static \u0275inj=E({})}return t})();function Qc(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var vp=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let i=this._reduceControls(e),r={};return Qc(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new tn(i,r)}record(e,n=null){let i=this._reduceControls(e);return new qr(i,n)}control(e,n,i){let r={};return this.useNonNullable?(Qc(n)?r=n:(r.validators=n,r.asyncValidators=i),new vn(e,ce(U({},r),{nonNullable:!0}))):new vn(e,n,i)}array(e,n,i){let r=e.map(a=>this._createControl(a));return new Ro(r,n,i)}_reduceControls(e){let n={};return Object.keys(e).forEach(i=>{n[i]=this._createControl(e[i])}),n}_createControl(e){if(e instanceof vn)return e;if(e instanceof Xn)return e;if(Array.isArray(e)){let n=e[0],i=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(n,i,r)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var El=(()=>{class t extends vp{group(e,n=null){return super.group(e,n)}control(e,n,i){return super.control(e,n,i)}array(e,n,i){return super.array(e,n,i)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})();static \u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:kn,useValue:e.callSetDisabledState??ji}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=D({type:t});static \u0275inj=E({imports:[Il]})}return t})(),mt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ss,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:kn,useValue:e.callSetDisabledState??ji}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=D({type:t});static \u0275inj=E({imports:[Il]})}return t})();var us="Service workers are disabled or not supported by this browser",ei=class{serviceWorker;worker;registration;events;constructor(o,e){if(this.serviceWorker=o,!o)this.worker=this.events=this.registration=new un(n=>n.error(new Mt(5601,!1)));else{let n=null,i=new ht;this.worker=new un(k=>(n!==null&&k.next(n),i.subscribe(K=>k.next(K))));let r=()=>{let{controller:k}=o;k!==null&&(n=k,i.next(n))};o.addEventListener("controllerchange",r),r(),this.registration=this.worker.pipe(ne(()=>
1o.getRegistration().then(k=>{if(!k)throw new Mt(5601,!1);return k})));let a=new ht;this.events=a.asObservable();let h=k=>{let{data:K}=k;K?.type&&a.next(K)};o.addEventListener("message",h),e?.get(Qt,null,{optional:!0})?.onDestroy(()=>{o.removeEventListener("controllerchange",r),o.removeEventListener("message",h)})}}postMessage(o,e){return new Promise(n=>{this.worker.pipe(le(1)).subscribe(i=>{i.postMessage(U({action:o},e)),n()})})}postMessageWithOperation(o,e,n){let i=this.waitForOperationCompleted(n),r=this.postMessage(o,e);return Promise.all([r,i]).then(([,a])=>a)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(o){let e;return typeof o=="string"?e=n=>n.type===o:e=n=>o.includes(n.type),this.events.pipe(G(e))}nextEventOfType(o){return this.eventsOfType(o).pipe(le(1))}waitForOperationCompleted(o){return new Promise((e,n)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(G(i=>i.nonce===o),le(1),I(i=>{if(i.result!==void 0)return i.result;throw new Error(i.error)})).subscribe({next:e,error:n})})}get isEnabled(){return!!this.serviceWorker}},Ml=(()=>{class t{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new ht;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=pn,this.notificationClicks=pn,this.notificationCloses=pn,this.pushSubscriptionChanges=pn,this.subscription=pn;return}this.messages=this.sw.eventsOfType("PUSH").pipe(I(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(I(i=>i.data)),this.notificationCloses=this.sw.eventsOfType("NOTIFICATION_CLOSE").pipe(I(i=>i.data)),this.pushSubscriptionChanges=this.sw.eventsOfType("PUSH_SUBSCRIPTION_CHANGE").pipe(I(i=>i.data)),this.pushManager=this.sw.registration.pipe(I(i=>i.pushManager));let n=this.pushManager.pipe(ne(i=>i.getSubscription()));this.subscription=new un(i=>{let r=n.subscribe(i),a=this.subscriptionChanges.subscribe(i);return()=>{r.unsubscribe(),a.unsubscribe()}})}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(us));let n={userVisibleOnly:!0},i=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new Uint8Array(new ArrayBuffer(i.length));for(let a=0;a<i.length;a++)r[a]=i.charCodeAt(a);return n.applicationServerKey=r,new Promise((a,h)=>{this.pushManager.pipe(ne(S=>S.subscribe(n)),le(1)).subscribe({next:S=>{this.subscriptionChanges.next(S),a(S)},error:h})})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(us));let e=n=>{if(n===null)throw new Mt(5602,!1);return n.unsubscribe().then(i=>{if(!i)throw new Mt(5603,!1);this.subscriptionChanges.next(null)})};return new Promise((n,i)=>{this.subscription.pipe(le(1),ne(e)).subscribe({next:n,error:i})})}decodeBase64(e){return atob(e)}static \u0275fac=function(n){return new(n||t)(b(ei))};static \u0275prov=F({token:t,factory:t.\u0275fac})}return t})(),Fl=(()=>{class t{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}ongoingCheckForUpdate=null;constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=pn,this.unrecoverable=pn;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(us));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let e=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e).finally(()=>{this.ongoingCheckForUpdate=null}),this.ongoingCheckForUpdate}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Mt(5601,!1));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(n){return new(n||t)(b(ei))};static \u0275prov=F({token:t,factory:t.\u0275fac})}return t})(),kl=new Be("");function yp(){let t=T(An);if(!("serviceWorker"in navigator&&t.enabled!==!1))return;let o=T(kl),e=T(Vn),n=T(Qt);e.runOutsideAngular(()=>{let i=navigator.serviceWorker,r=()=>i.controller?.postMessage({action:"INITIALIZE"});i.addEventListener("controllerchange",r),n.onDestroy(()=>{i.removeEventListener("controllerchange",r)})}),e.runOutsideAngular(()=>{let i,{registrationStrategy:r}=t;if(typeof r=="function")i=new Promise(a=>r().subscribe(()=>a()));else{let[a,...h]=(r||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":i=Promise.resolve();break;case"registerWithDelay":i=Dl(+h[0]||0);break;
1case"registerWhenStable":i=Promise.race([n.whenStable(),Dl(+h[0])]);break;default:throw new Mt(5600,!1)}}i.then(()=>{n.destroyed||navigator.serviceWorker.register(o,{scope:t.scope,updateViaCache:t.updateViaCache,type:t.type}).catch(a=>console.error(Sa(5604,!1)))})})}function Dl(t){return new Promise(o=>setTimeout(o,t))}function xp(){let t=T(An),o=T(Pe),e=!0;return new ei(e&&t.enabled!==!1?navigator.serviceWorker:void 0,o)}var An=class{enabled;updateViaCache;type;scope;registrationStrategy};function bp(t,o={}){return wa([Ml,Fl,{provide:kl,useValue:t},{provide:An,useValue:o},{provide:ei,useFactory:xp},Fa(yp)])}var Al=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[bp(e,n)]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=D({type:t});static \u0275inj=E({providers:[Ml,Fl]})}return t})();var Sp=["content"],wp=["scroll"],Tp=["padding"],Kl=["*"],Ui=t=>({searchTerm:t});function Ip(t,o){if(t&1&&(d(0,"div",3),xe(1,6),u()),t&2){let e=l();s(),c("ngTemplateOutlet",e.headerTemplate())("ngTemplateOutletContext",Y(2,Ui,e.filterValue()))}}function Ep(t,o){if(t&1&&(d(0,"div",5),xe(1,6),u()),t&2){let e=l();s(),c("ngTemplateOutlet",e.footerTemplate())("ngTemplateOutletContext",Y(2,Ui,e.filterValue()))}}var Dp=["searchInput"],Mp=["clearButton"],Fp=(t,o,e)=>({item:t,clear:o,label:e}),kp=(t,o)=>({items:t,clear:o}),Ap=(t,o,e,n)=>({item:t,item$:o,index:e,searchTerm:n});function Rp(t,o){if(t&1&&(d(0,"div",21),_(1),u()),t&2){let e=l(2);s(),B(e.placeholder()??e.config.placeholder)}}function Pp(t,o){}function Op(t,o){if(t&1&&f(0,Rp,2,1,"ng-template",null,1,ie)(2,Pp,0,0,"ng-template",20),t&2){let e=H(1),n=l();s(2),c("ngTemplateOutlet",n.placeholderTemplate()||e)}}function Lp(t,o){if(t&1){let e=P();d(0,"span",24),y("click",function(){v(e);let i=l().$implicit,r=l(2);return C(r.unselect(i))}),_(1,"\xD7"),u(),w(2,"span",25)}if(t&2){let e=l().$implicit,n=l(2);s(2),c("ngItemLabel",e.label)("escape",n.escapeHTML)}}function Vp(t,o){}function Bp(t,o){if(t&1&&(d(0,"div",23),f(1,Lp,3,2,"ng-template",null,2,ie)(3,Vp,0,0,"ng-template",12),u()),t&2){let e=o.$implicit,n=H(2),i=l(2);te("ng-value-disabled",e.disabled),s(3),c("ngTemplateOutlet",i.labelTemplate()||n)("ngTemplateOutletContext",$t(4,Fp,e.value,i.clearItem,e.label))}}function Np(t,o){if(t&1&&wr(0,Bp,4,8,"div",22,Sr().trackByOption,!0),t&2){let e=l();Tr(e.selectedItems)}}function jp(t,o){}function $p(t,o){if(t&1&&f(0,jp,0,0,"ng-template",12),t&2){let e=l();c("ngTemplateOutlet",e.multiLabelTemplate())("ngTemplateOutletContext",st(2,kp,e.selectedValues,e.clearItem))}}function Hp(t,o){t&1&&w(0,"div",26)}function Up(t,o){}function Gp(t,o){if(t&1&&f(0,Hp,1,0,"ng-template",null,3,ie)(2,Up,0,0,"ng-template",20),t&2){let e=H(1),n=l();s(2),c("ngTemplateOutlet",n.loadingSpinnerTemplate()||e)}}function Wp(t,o){if(t&1&&xe(0,20),t&2){let e=l(2);c("ngTemplateOutlet",e.clearButtonTemplate())}}function zp(t,o){t&1&&(d(0,"span",28),_(1,"\xD7"),u())}function qp(t,o){if(t&1){let e=P();d(0,"span",27,4),y("click",function(i){v(e);let r=l();return C(r.handleClearClick(i))}),Xe(2,Wp,1,1,"ng-container",20)(3,zp,2,0,"span",28),u()}if(t&2){let e=l();c("title",me(e.clearAllText()||e.config.clearAllText)),M("tabindex",e.tabFocusOnClear()?0:-1),s(2),Ze(e.clearButtonTemplate()?2:3)}}function Kp(t,o){if(t&1&&w(0,"span",33),t&2){let e=l().$implicit,n=l(2);c("ngItemLabel",e.label)("escape",n.escapeHTML)}}function Qp(t,o){}function Yp(t,o){if(t&1){let e=P();d(0,"div",32),y("click",function(){let i=v(e).$implicit,r=l(2);return C(r.toggleItem(i))})("mouseover",function(){let i=v(e).$implicit,r=l(2);return C(r.onItemHover(i))}),f(1,Kp,1,2,"ng-template",null,5,ie)(3,Qp,0,0,"ng-template",12),u()}if(t&2){let e=o.$implicit,n=H(2),i=l(2);te("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===i.itemsList.markedItem),M("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId)("aria-setsize",i.itemsList.filteredItems.length)("aria-posinset",e.index+1),s(3),c("ngTemplateOutlet",e.children?i.optgroupTemplate()||n:i.optionTemplate()||n)("ngTemplateOutletContext",jn(19,Ap,e.value,e,e.index,i.searchTerm))}}function Xp(t,o){if(t&1&&(d(0,"span")(1,"span",35),_(2),u(),_(3),u()),t&2){let e=l(3);s(2),B(e.addTagText()||e.config.addTagText),s(),x('"',e.searchTerm,'"')}}function Zp(t,o){}function Jp(t,o){if(t&1){let e=P();d(0,"div",34),y("mouseover",function(){v(e);let i=l(2);return C(i.itemsList.unmarkItem())})("click",function(){v(e);let i=l(2);return C(i.selectTag())}),f(1,Xp,4,2,"ng-template",null,6,ie)(3,Zp,0,0,"ng-template",12),u()}if(t&2){let e=H(2),n=l(2);te("ng-option-marked",!n.itemsList.markedItem),M("aria-selected",!1),s(3),c("ngTemplateOutlet",n.tagTemplate()||e)("ngTemplateOutletContext",Y(5,Ui,n.searchTerm))}}function em(t,o){if(t&1&&(d(0,"div",36),_(1),u()),t&2){let e=l(3);s(),B(e.notFoundText()??e.config.notFoundText)}}function tm(t,o){}function nm(t,o){if(t&1&&f(0,em,2,1,"ng-template",null,7,ie)(2,tm,0,0,"ng-template",12),t&2){let e=H(1),n=l(2);s(2),c("ngTemplateOutlet",n.notFoundTemplate()||e)("ngTemplateOutletContext",Y(2,Ui,n.searchTerm))}}function im(t,o){if(t&1&&(d(0,"div",36),_(1),u()),t&2){let e=l(3);s(),B(e.typeToSearchText()||e.config.typeToSearchText)}}function om(t,o){}function rm(t,o){if(t&1&&f(0,im,2,1,"ng-template",null,8,ie)(2,om,0,0,"ng-template",20),t&2){let e=H(1),n=l(2);s(2),c("ngTemplateOutlet",n.typeToSearchTemplate()||e)}}function sm(t,o){if(t&1&&(d(0,"div",36),_(1),u()),t&2){let e=l(3);s(),B(e.loadingText()||e.config.loadingText)}}function am(t,o){}function cm(t,o){if(t&1&&f(0,sm,2,1,"ng-template",null,9,ie)(2,am,0,0,"ng-template",12),t&2){let e=H(1),n=l(2);s(2),c("ngTemplateOutlet",n.loadingTextTemplate()||e)("ngTemplateOutletContext",Y(2,Ui,n.searchTerm))}}function lm(t,o){if(t&1){let e=P();d(0,"ng-dropdown-panel",29),y("update",function(i){v(e);let r=l();return C(r.viewPortItems=i)})("scroll",function(i){v(e);let r=l();return C(r.scroll.emit(i))})("scrollToEnd",function(i){v(e);let r=l();return C(r.scrollToEnd.emit(i))})("outsideClick",function(){v(e);let i=l();return C(i.close())}),R(1),wr(2,Yp,4,24,"div",30,Sr().trackByOption,!0),Xe(4,Jp,4,7,"div",31),A(),Xe(5,nm,3,4),Xe(6,rm,3,1),Xe(7,cm,3,4),u()}if(t&2){let e=l(),n=e.appendTo()||e.config.appendTo;Ue(n?e.ngClass()?e.ngClass():e.classes:null),te("ng-select-multiple",e.multiple()),c("virtualScroll",e.virtualScroll()??!e.config.disableVirtualScroll??!1)("bufferAmount",e.bufferAmount())("appendTo",n)("position",e.dropdownPosition())("outsideClickEvent",e.outsideClickEvent())("headerTemplate",e.headerTemplate())("footerTemplate",e.footerTemplate())("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("showAddTag",e.showAddTag)("markedItem",e.itemsList.markedItem)("id",e.dropdownId)("ariaLabelDropdown",e.ariaLabelDropdown()??e.config.ariaLabelDropdown)("popover",e.popover()),s(2),Tr(e.viewPortItems),s(2),Ze(e.showAddTag?4:-1),s(),Ze(e.showNoItemsFound()?5:-1),s(),Ze(e.showTypeToSearch()?6:-1),s(),Ze(e.loading()&&e.itemsList.filteredItems.length===0?7:-1)}}
1function dm(t,o){if(t&1&&_(0),t&2){let e=l();x(" ",e.notFoundText()??e.config.notFoundText," ")}}var Ql=/[&<>"']/g,um=RegExp(Ql.source),pm={"&":"&","<":"<",">":">",'"':""","'":"'"};function mm(t){return t&&um.test(t)?t.replace(Ql,o=>pm[o]):t}function Le(t){return t!=null}function Rn(t){return typeof t=="object"&&Le(t)}function hm(t){return t instanceof Promise}function Ho(t){return t instanceof Function}var fm=(()=>{class t{constructor(){this.element=T(z),this.ngItemLabel=j(),this.escape=j(!0),vi(()=>{this.element.nativeElement.innerHTML=this.escape()?mm(this.ngItemLabel()):this.ngItemLabel()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}})}}return t})(),Rl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-option-tmp",""]]})}}return t})(),Pl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-optgroup-tmp",""]]})}}return t})(),Ol=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-label-tmp",""]]})}}return t})(),Ll=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-multi-label-tmp",""]]})}}return t})(),Vl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-header-tmp",""]]})}}return t})(),Bl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-footer-tmp",""]]})}}return t})(),Nl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-notfound-tmp",""]]})}}return t})(),jl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-placeholder-tmp",""]]})}}return t})(),$l=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-typetosearch-tmp",""]]})}}return t})(),Hl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-loadingtext-tmp",""]]})}}return t})(),Ul=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-tag-tmp",""]]})}}return t})(),Gl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-loadingspinner-tmp",""]]})}}return t})(),Wl=(()=>{class t{constructor(){this.template=T(J)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","ng-clearbutton-tmp",""]]})}}return t})(),gm=(()=>{class t{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.ariaLabelDropdown="Options List",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_m=(()=>{class t{warn(e){console.warn(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Yl(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var vm={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24
1:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9
1:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function $o(t){let o=e=>vm[e]||e;
1return t.replace(/[^\u0000-\u007E]/g,o)}var ms=class{constructor(o,e){this._ngSelect=o,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let o=this.selectedItems.length-1;for(;o>=0;o--){let e=this.selectedItems[o];if(!e.disabled)return e}return null}setItems(o){this._items=o.map((n,i)=>this.mapItem(n,i));let e=this._ngSelect.groupBy();e?(this._groups=this._groupBy(this._items,e),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(o){if(o.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple();e||this.clearSelected(!1),this._selectionModel.select(o,e,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(o)}unselect(o){if(!o.selected)return;let e=this._ngSelect.multiple();this._selectionModel.unselect(o,e),this._ngSelect.hideSelected()&&Le(o.index)&&e&&this._showSelected(o)}findItem(o){let e;return this._ngSelect.compareWith()?e=n=>this._ngSelect.compareWith()(n.value,o):this._ngSelect.bindValue()?e=n=>!n.children&&this.resolveNested(n.value,this._ngSelect.bindValue())===o:e=n=>n.value===o||!n.children&&n.label&&n.label===this.resolveNested(o,this._ngSelect.bindLabel()),this._items.find(n=>e(n))}addItem(o){let e=this.mapItem(o,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(o){this._selectionModel.clear(o),this._items.forEach(e=>{e.selected=o&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(o){return o=$o(o).toLocaleLowerCase(),this.filteredItems.find(e=>$o(e.label).toLocaleLowerCase().substr(0,o.length)===o)}filter(o){if(!o){this.resetFilteredItems();return}this._filteredItems=[],o=this._ngSelect.searchFn()?o:$o(o).toLocaleLowerCase();let e=this._ngSelect.searchFn()||this._defaultSearchFn,n=this._ngSelect.hideSelected();for(let i of Array.from(this._groups.keys())){let r=[];for(let a of this._groups.get(i)){if(n&&(a.parent&&a.parent.selected||a.selected))continue;let h=this._ngSelect.searchFn()?a.value:a;e(o,h)&&r.push(a)}if(r.length>0){let[a]=r.slice(-1);if(a.parent){let h=this._items.find(S=>S===a.parent);this._filteredItems.push(h)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._filteredItems=this._items.filter(o=>!o.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(o){this._markedIndex=this._filteredItems.indexOf(o)}markSelectedOrDefault(o){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=o?this.filteredItems.findIndex(n=>!n.disabled):-1}resolveNested(o,e){if(!Rn(o))return o;if(e.indexOf(".")===-1)return o[e];{let n=e.split("."),i=o;for(let r=0,a=n.length;r<a;++r){if(i==null)return null;i=i[n[r]]}return i}}mapItem(o,e){let n=Rn(o)&&"$ngOptionLabel"in o,i=Rn(o)&&"$ngOptionValue"in o,r=n?o.$ngOptionLabel:this.resolveNested(o,this._ngSelect.bindLabel()),a=i?o.$ngOptionValue:o;return{index:e,label:Le(r)?r.toString():"",value:a,disabled:o&&o.disabled?o.disabled:!1,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){let o=this._ngSelect.multiple();for(let e of this.selectedItems){let n=this._ngSelect.bindValue(),i=n?this.resolveNested(e.value,n):e.value,r=Le(i),a=r?this.findItem(i):null;!a&&!r&&this._ngSelect.compareWith()&&(a=this._items.find(h=>this._ngSelect.compareWith()(h.value,e.value))),this._selectionModel.unselect(e,o),this._selectionModel.select(a||e,o,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(e=>this.selectedItems.indexOf(e)===-1))}
1_showSelected(o){if(this._filteredItems.push(o),o.parent){let e=o.parent;this._filteredItems.find(i=>i===e)||this._filteredItems.push(e)}else if(o.children)for(let e of o.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,n)=>e.index-n.index)]}_hideSelected(o){this._filteredItems=this._filteredItems.filter(e=>e!==o),o.parent?o.parent.children.every(n=>n.selected)&&(this._filteredItems=this._filteredItems.filter(n=>n!==o.parent)):o.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==o))}_defaultSearchFn(o,e){return $o(e.label).toLocaleLowerCase().indexOf(o)>-1}_getNextItemIndex(o){return o>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(o){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(o),this.markedItem.disabled&&this._stepToItem(o))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&this.markedItem===void 0)return-1;let o=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&o<0?-1:Math.max(this.markedIndex,o)}_groupBy(o,e){let n=new Map;if(o.length===0)return n;let i=o[0].value;if(i!=null&&Array.isArray(i[e])){for(let h of o){let S=(h.value?.[e]||[]).map((k,K)=>this.mapItem(k,K));n.set(h,S)}return n}let r=Ho(this._ngSelect.groupBy()),a=h=>{let S=r?e(h.value):h.value?.[e];return Le(S)?S:void 0};for(let h of o){let S=a(h),k=n.get(S);k?k.push(h):n.set(S,[h])}return n}_flatten(o){let e=Ho(this._ngSelect.groupBy()),n=[];for(let i of Array.from(o.keys())){let r=n.length;if(i===void 0){let fe=o.get(void 0)||[];n.push(...fe.map(ye=>(ye.index=r++,ye)));continue}let a=Rn(i),h={label:a?"":String(i),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup(),htmlId:Yl()},S=e?this._ngSelect.bindLabel():this._ngSelect.groupBy(),k=this._ngSelect.groupValue()||(()=>a?i.value:{[S]:i}),K=o.get(i).map(fe=>(fe.parent=h,fe.children=void 0,fe.index=r++,fe));h.children=K,h.value=k(i,K.map(fe=>fe.value)),n.push(h),n.push(...K)}return n}},Xl=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,n,i){let r=this._dimensions,a=r.itemHeight*n,S=Math.max(0,e)/a*n,k=Math.min(n,Math.ceil(S)+(r.itemsPerViewport+1)),fe=Math.max(0,k-r.itemsPerViewport),ye=Math.min(fe,Math.floor(S)),it=r.itemHeight*Math.ceil(ye)-r.itemHeight*Math.min(ye,i);return it=isNaN(it)?0:it,ye=isNaN(ye)?-1:ye,k=isNaN(k)?-1:k,ye-=i,ye=Math.max(0,ye),k+=i,k=Math.min(n,k),{topPadding:it,scrollHeight:a,start:ye,end:k}}setDimensions(e,n){let i=Math.max(1,Math.floor(n/e));this._dimensions={itemHeight:e,panelHeight:n,itemsPerViewport:i}}getScrollTo(e,n,i){let{panelHeight:r}=this.dimensions,a=e+n,h=i,S=h+r;return r>=a&&i===e?null:a>S?h+a-S:e<=h?e:null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),zl=["top","right","bottom","left"],ql=typeof requestAnimationFrame<"u"?la:ui,ps=(()=>{class t{constructor(){this.items=j([]),this.showAddTag=j(!1,{transform:we}),this.markedItem=j(void 0),this.position=j("auto"),this.appendTo=j(void 0),this.bufferAmount=j(void 0),this.virtualScroll=j(!1,{transform:we}),this.headerTemplate=j(void 0),this.footerTemplate=j(void 0),this.filterValue=j(null),this.ariaLabelDropdown=j(null),this.outsideClickEvent=j("click"),this.popover=j(!1,{transform:we}),this.update=Ke(),this.scroll=Ke(),this.scrollToEnd=Ke(),this.outsideClick=Ke(),this._renderer=T(De),this._zone=T(Vn),this._panelService=T(Xl),this._document=T(ot,{optional:!0}),this._destroyRef=T(Kt),this._dropdown=T(z).nativeElement,this.contentElementRef=Xt("content",{read:z}),this.scrollElementRef=Xt("scroll",{read:z}),this.paddingElementRef=Xt("padding",{read:z}),this._virtualPadding=Je(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=Je(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=Je(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){let{itemHeight:e,panelHeight:n}=this._panelService.dimensions,i=this.markedItem().index*e;return n>i?0:i}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener(),this._handleWindowScroll(),this._showPopoverIfNeeded()}ngOnChanges(e){if(e.items){let n=e.items;this._onItemsOrShowAddTagChange(n.currentValue,this.showAddTag(),n.firstChange)}if(e.showAddTag){let n=e.showAddTag;this._onItemsOrShowAddTagChange(this.items(),n.currentValue,n.firstChange)}}scrollTo(e,n=!1){if(!e)return;let i=this.items().indexOf(e);if(i<0||i>=this.itemsLength)return;let r;if(this.virtualScroll()){let a=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(i*a,a,this._lastScrollPosition)}else{let a=this._dropdown.querySelector(`#${e.htmlId}`),h=n?a.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(a.offsetTop,a.clientHeight,h)}Le(r)&&(this._scrollablePanel().scrollTop=r)}scrollToTag(){let e=this._scrollablePanel();e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),zl.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),(this.appendTo()||this.popover())&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){zl.forEach(i=>
1{let r=`ng-select-${i}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let n=`ng-select-${e}`;this._renderer.addClass(this._dropdown,n),this._renderer.addClass(this._select,n)}_handleScroll(){this._zone.runOutsideAngular(()=>{let e=this._scrollablePanel();e&&En(e,"scroll").pipe(Pt(this._destroyRef),fr(0,ql)).subscribe(()=>{e&&"scrollTop"in e&&this._onContentScrolled(e.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{En(this._document,this.outsideClickEvent(),{capture:!0}).pipe(Pt(this._destroyRef)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let n=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&n&&n[0]&&this._select.contains(n[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(e=[],n,i){this._scrollToEndFired=!1,this.itemsLength=e.length,n&&e.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items()),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let n=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,n),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll()&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding().style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel().scrollTop;let n=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(n.scrollHeight),this._contentPanel().style.transform=`translateY(${n.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(n.start,n.end)),this.scroll.emit({start:n.start,end:n.end})}),Le(e)&&this._lastScrollPosition===0&&(this._scrollablePanel().scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items();return this.update.emit([e]),Promise.resolve().then(()=>{let i=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding().style.height=`${i*this.itemsLength}px`;let r=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(i,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let n=this.virtualScroll()?this._virtualPadding():this._contentPanel();e+this._dropdown.clientHeight>=n.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){let n=this.position();if(n!=="auto")return n;let i=this._select.getBoundingClientRect(),r=document.documentElement.scrollTop||document.body.scrollTop,a=i.top+window.pageYOffset,h=i.height,S=e.getBoundingClientRect().height;return a+h+S>r+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),i=document.documentElement.dir==="rtl",r=e.left-n.left;if(i){let a=n.right-e.right;this._dropdown.style.right=a+"px",this._dropdown.style.left="auto"}else this._dropdown.style.left=r+"px",this._dropdown.style.right="auto";this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),r=this._select.querySelector(".ng-select-container")?.getBoundingClientRect()??e;if(this._currentPosition==="top"){let a=n.bottom-r.top;this._dropdown.style.bottom=a+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=r.bottom-n.top;this._dropdown.style.top=a+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{En(this._dropdown,"mousedown").pipe(Pt(this._destroyRef)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}_handleWindowScroll(){!this.appendTo()&&!this.popover()||this._zone.runOutsideAngular(()=>{En(this._document,"scroll",{capture:!0,passive:!0}).pipe(Pt(this._destroyRef),fr(0,ql)).subscribe(()=>{this._updateXPosition(),this._updateYPosition()})})}_showPopoverIfNeeded(){this.popover()&&typeof this._dropdown.showPopover=="function"&&(this._renderer.setAttribute(this._dropdown,"popover","manual"),this._dropdown.showPopover(),this._parent=globalThis.document.body,this._updateXPosition(),this._updateYPosition())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(n,i){n&1&&xi(i.contentElementRef,Sp,5,z)(i.scrollElementRef,wp,5,z)(i.paddingElementRef,Tp,5,z),n&2&&Nn(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"],popover:[1,"popover"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Ee],ngContentSelectors:Kl,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(ft(),Xe(0,Ip,2,4,"div",3),d(1,"div",4,0),w(3,"div",null,1),d(5,"div",null,2),gt(7),u()(),Xe(8,Ep,2,4,"div",5)),n&2&&(Ze(i.headerTemplate()?0:-1),s(),M("aria-label",i.ariaLabelDropdown()),s(2),te("total-padding",i.virtualScroll()),s(2),te("scrollable-content",i.virtualScroll()&&i.items().length),s(3),Ze(i.footerTemplate()?8:-1))},dependencies:[et],encapsulation:2,changeDetection:0})}}return t})(),Uo=(()=>{class t{constructor(){this.value=j(),this.disabled=j(!1,{transform:we}),this.elementRef=T(z),this.label=rt(""),this.isInitialized=rt(!1),Ia(()=>{let e=(this.elementRef.nativeElement.innerHTML||"").trim();e!==this.label()&&this.label.set(e)})}ngOnInit(){this.isInitialized.set(!0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:Kl,decls:1,vars:0,template:function(n,i){n&1&&(ft(),gt(0))},encapsulation:2,changeDetection:0})}}return t})(),Gt=(function(t){return t.Tab="Tab",t.Enter="Enter",t.Esc="Escape",t.Space=" ",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.Backspace="Backspace",t})(Gt||{});function Zl(){return new hs}var hs=class{constructor(){this._selected=[]}get value(){return this._selected}select(o,e,n){if(o.selected=!0,(!o.children||!e&&n)&&this._selected.push(o),e)if(o.parent){let i=o.parent.children.length,r=o.parent.children.filter(a=>a.selected).length;o.parent.selected=i===r}else o.children&&(this._setChildrenSelectedState(o.children,!0),this._removeChildren(o),n&&this._activeChildren(o)?this._selected=[...this._selected.filter(i=>i.parent!==o),o]:this._selected=[...this._selected,...o.children.filter(i=>!i.disabled)])}unselect(o,e){if(this._selected=this._selected.filter(n=>n!==o),o.selected=!1,e)if(o.parent&&o.parent.selected){let n=o.parent.children;this._removeParent(o.parent),this._removeChildren(o.parent),this._selected.push(...n.filter(i=>i!==o&&!i.disabled)),o.parent.selected=!1}else o.children&&(this._setChildrenSelectedState(o.children,!1),this._removeChildren(o))}clear(o){this._selected=o?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(o,e){for(let n of o)n.disabled||(n.selected=e)}_removeChildren(o){this._selected=[...this._selected.filter(e=>e.parent!==o),...o.children.filter(e=>e.parent===o&&e.disabled&&e.selected)]}_removeParent(o){this._selected=this._selected.filter(e=>e!==o)}_activeChildren(o){return o.children.every(e=>!e.disabled||e.selected)}},Jl=new Be("ng-select-selection-model"),Gi=(()=>{class t{constructor(){this.classes=T(new Si("class"),{optional:!0}),this.config=T(gm),this._cd=T(Oe),this._console=T(_m),this._destroyRef=T(Kt),this._disabled=rt(!1),this._ariaLabelDropdown=j(void 0,{alias:"ariaLabelDropdown"}
1),this.ariaLabelDropdown=ee(()=>this._ariaLabelDropdown()),this._ariaLabel=j(void 0,{alias:"ariaLabel"}),this.ariaLabel=ee(()=>this._ariaLabel()),this._markFirst=j(!0,{alias:"markFirst",transform:we}),this.markFirst=ee(()=>this._markFirst()),this._placeholder=j(this.config.placeholder,{alias:"placeholder"}),this.placeholder=ee(()=>this._placeholder()),this._fixedPlaceholder=j(!0,{alias:"fixedPlaceholder"}),this.fixedPlaceholder=ee(()=>this._fixedPlaceholder()),this._notFoundText=j(void 0,{alias:"notFoundText"}),this.notFoundText=ee(()=>this._notFoundText()),this._typeToSearchText=j(void 0,{alias:"typeToSearchText"}),this.typeToSearchText=ee(()=>this._typeToSearchText()),this._preventToggleOnRightClick=j(!1,{alias:"preventToggleOnRightClick"}),this.preventToggleOnRightClick=ee(()=>this._preventToggleOnRightClick()),this._addTagText=j(void 0,{alias:"addTagText"}),this.addTagText=ee(()=>this._addTagText()),this._loadingText=j(void 0,{alias:"loadingText"}),this.loadingText=ee(()=>this._loadingText()),this._clearAllText=j(void 0,{alias:"clearAllText"}),this.clearAllText=ee(()=>this._clearAllText()),this._dropdownPosition=j("auto",{alias:"dropdownPosition"}),this.dropdownPosition=ee(()=>this._dropdownPosition()),this._appendTo=j(void 0,{alias:"appendTo"}),this.appendTo=ee(()=>this._appendTo()),this._outsideClickEvent=j(this.config.outsideClickEvent,{alias:"outsideClickEvent"}),this.outsideClickEvent=ee(()=>this._outsideClickEvent()),this._loading=j(!1,{alias:"loading",transform:we}),this.loading=ee(()=>this._loading()),this._closeOnSelect=j(!0,{alias:"closeOnSelect",transform:we}),this.closeOnSelect=ee(()=>this._closeOnSelect()),this._hideSelected=j(!1,{alias:"hideSelected",transform:we}),this.hideSelected=ee(()=>this._hideSelected()),this._selectOnTab=j(!1,{alias:"selectOnTab",transform:we}),this.selectOnTab=ee(()=>this._selectOnTab()),this._openOnEnter=j(void 0,{alias:"openOnEnter",transform:we}),this.openOnEnter=ee(()=>this._openOnEnter()),this._maxSelectedItems=j(void 0,{alias:"maxSelectedItems",transform:wi}),this.maxSelectedItems=ee(()=>this._maxSelectedItems()),this._groupBy=j(void 0,{alias:"groupBy"}),this.groupBy=ee(()=>this._groupBy()),this._groupValue=j(void 0,{alias:"groupValue"}),this.groupValue=ee(()=>this._groupValue()),this._bufferAmount=j(4,{alias:"bufferAmount",transform:wi}),this.bufferAmount=ee(()=>this._bufferAmount()),this._virtualScroll=j(void 0,{alias:"virtualScroll",transform:we}),this.virtualScroll=ee(()=>this._virtualScroll()),this._selectableGroup=j(!1,{alias:"selectableGroup",transform:we}),this.selectableGroup=ee(()=>this._selectableGroup()),this._tabFocusOnClearButton=j(void 0,{alias:"tabFocusOnClearButton"}),this.tabFocusOnClearButton=ee(()=>this._tabFocusOnClearButton()),this._selectableGroupAsModel=j(!0,{alias:"selectableGroupAsModel",transform:we}),this.selectableGroupAsModel=ee(()=>this._selectableGroupAsModel()),this._searchFn=j(null,{alias:"searchFn"}),this.searchFn=ee(()=>this._searchFn()),this._trackByFn=j(null,{alias:"trackByFn"}),this.trackByFn=ee(()=>this._trackByFn()),this._clearOnBackspace=j(!0,{alias:"clearOnBackspace",transform:we}),this.clearOnBackspace=ee(()=>this._clearOnBackspace()),this._labelForId=j(null,{alias:"labelForId"}),this.labelForId=ee(()=>this._labelForId()),this._inputAttrs=j({},{alias:"inputAttrs"}),this.inputAttrs=ee(()=>this._inputAttrs()),this._tabIndex=j(void 0,{alias:"tabIndex",transform:wi}),this.tabIndex=ee(()=>this._tabIndex()),this._readonly=j(!1,{alias:"readonly",transform:we}),this.readonly=ee(()=>this._readonly()),this._searchWhileComposing=j(!0,{alias:"searchWhileComposing",transform:we}),this.searchWhileComposing=ee(()=>this._searchWhileComposing()),this._minTermLength=j(0,{alias:"minTermLength",transform:wi}),this.minTermLength=ee(()=>this._minTermLength()),this._editableSearchTerm=j(!1,{alias:"editableSearchTerm",transform:we}),this.editableSearchTerm=ee(()=>this._editableSearchTerm()),this._ngClass=j(null,{alias:"ngClass"}),this.ngClass=ee(()=>this._ngClass()),this._typeahead=j(void 0,{alias:"typeahead"}),this.typeahead=ee(()=>this._typeahead()),this._multiple=j(!1,{alias:"multiple",transform:we}),this.multiple=ee(()=>this._multiple()),this._addTag=j(!1,{alias:"addTag"}),this.addTag=ee(()=>this._addTag()),this._searchable=j(!0,{alias:"searchable",transform:we}),this.searchable=ee(()=>this._searchable()),this._clearable=j(!0,{alias:"clearable",transform:we}),this.clearable=ee(()=>this._clearable()),this._clearKeepsDisabledOptions=j(!0,{alias:"clearKeepsDisabledOptions",transform:we}
1),this.clearKeepsDisabledOptions=ee(()=>this._clearKeepsDisabledOptions()),this._deselectOnClick=j(void 0,{alias:"deselectOnClick"}),this.deselectOnClick=ee(()=>this._deselectOnClick()),this._clearSearchOnAdd=j(void 0,{alias:"clearSearchOnAdd"}),this.clearSearchOnAdd=ee(()=>this._clearSearchOnAdd()),this._compareWith=j(void 0,{alias:"compareWith",transform:r=>{if(r!=null&&!Ho(r))throw Error("`compareWith` must be a function.");return r}}),this.compareWith=ee(()=>this._compareWith()),this._keyDownFn=j(r=>!0,{alias:"keyDownFn"}),this.keyDownFn=ee(()=>this._keyDownFn()),this._popover=j(!1,{alias:"popover",transform:we}),this.popover=ee(()=>this._popover()),this.bindLabel=Hn(void 0),this.bindValue=Hn(void 0),this.appearance=Hn(void 0),this.isOpen=Hn(!1),this.items=Hn([]),this.blurEvent=Ke({alias:"blur"}),this.focusEvent=Ke({alias:"focus"}),this.changeEvent=Ke({alias:"change"}),this.openEvent=Ke({alias:"open"}),this.closeEvent=Ke({alias:"close"}),this.searchEvent=Ke({alias:"search"}),this.clearEvent=Ke({alias:"clear"}),this.addEvent=Ke({alias:"add"}),this.removeEvent=Ke({alias:"remove"}),this.scroll=Ke({alias:"scroll"}),this.scrollToEnd=Ke({alias:"scrollToEnd"}),this.disabled=Je(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=Je(()=>Le(this.clearSearchOnAdd())?this.clearSearchOnAdd():Le(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=Je(()=>Le(this.deselectOnClick())?this.deselectOnClick():Le(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=at(Rl,{read:J}),this.optgroupTemplate=at(Pl,{read:J}),this.labelTemplate=at(Ol,{read:J}),this.multiLabelTemplate=at(Ll,{read:J}),this.headerTemplate=at(Vl,{read:J}),this.footerTemplate=at(Bl,{read:J}),this.notFoundTemplate=at(Nl,{read:J}),this.placeholderTemplate=at(jl,{read:J}),this.typeToSearchTemplate=at($l,{read:J}),this.loadingTextTemplate=at(Hl,{read:J}),this.tagTemplate=at(Ul,{read:J}),this.loadingSpinnerTemplate=at(Gl,{read:J}),this.clearButtonTemplate=at(Wl,{read:J}),this.ngOptions=La(Uo,{descendants:!0}),this.dropdownPanel=Xt(Ie(()=>ps)),this.searchInput=Xt("searchInput"),this.clearButton=Xt("clearButton"),this.dropdownId=Yl(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=rt(!0),this.autoFocus=T(new Si("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTermActive=Je(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=T(Pe),this._isComposing=!1,this._keyPress$=new ht,this._pressedKeys=[],this._searchTerm=rt(null),this._validTerm=Je(()=>{let r=this._searchTerm()?.trim();return r&&r.length>=this.minTermLength()}),this.clearItem=r=>{let a=this.selectedItems.find(h=>h.value===r);this.unselect(a)},this.trackByOption=(r,a)=>this.trackByFn()?this.trackByFn()(a.value):a,this._onChange=r=>{},this._onTouched=()=>{};let e=this.config,n=T(Jl,{optional:!0}),i=T(z);this._mergeGlobalConfig(e),this.itemsList=new ms(this,n?n():Zl()),this.element=i.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(n=>n.label.toLowerCase()===e)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(n=>n.label.toLowerCase()===e))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(!1),e.items&&(this._itemsAreUsed=!0,this._setItems(e.items.currentValue||[])),e.isOpen&&(this._manualOpen=Le(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items()])),e.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Le(this.autoFocus)&&this.focus()}handleKeyDown(e){let n=e.key;if(Object.values(Gt).includes(n)){if(this.keyDownFn()(e)===!1)return;this.handleKeyCode(e)}else n&&n.length===1&&this._keyPress$.next(n.toLocaleLowerCase())}handleKeyCode(e){let n=e.target;this.clearButton()&&this.clearButton().nativeElement===n?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case Gt.ArrowDown:this._handleArrowDown(e);break;case Gt.ArrowUp:this._handleArrowUp(e);break;
1case Gt.Space:this._handleSpace(e);break;case Gt.Enter:this._handleEnter(e);break;case Gt.Tab:this._handleTab(e);break;case Gt.Esc:this.close(),e.preventDefault();break;case Gt.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){e.key===Gt.Enter&&(this.handleClearClick(),e.preventDefault())}handleMousedown(e){if(this.disabled())return;if(this.preventToggleOnRightClick()&&e.button===2)return!1;let n=e.target;if(n.tagName!=="INPUT"&&e.preventDefault(),!n.classList.contains("ng-clear-wrapper")){if(n.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}n.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(e){this.hasValue&&(this.itemsList.clearSelected(this.clearKeepsDisabledOptions()),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(!1),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(!1),this._handleWriteValue(e),this._editableSearchTermActive()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled.set(e),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTermActive()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())}toggleItem(e){!e||e.disabled||this.disabled()||(this.deselectOnClickValue()&&e.selected?this.unselect(e):this.select(e),this._editableSearchTermActive()&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAddValue()&&!this._editableSearchTermActive()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(e.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;Ho(this.addTag())?e=this.addTag()(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};let n=i=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(i,null):this.itemsList.addItem(i);hm(e)?e.then(i=>this.select(n(i))).catch(()=>{}):e&&this.select(n(e))}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this.typeahead()?.observed&&!this.loading()||e&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(e),this.typeahead()?.observed&&(this._validTerm()||this.minTermLength()===0)&&this.typeahead().next(e),this.typeahead()?.observed||(this.itemsList.filter(e),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(n=>n.value)}),this.open())}onInputFocus(e){this._focused||(this._editableSearchTermActive()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this._focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTermActive()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems?.[0];this._searchTerm.set(e?.label??null)}_setItems(e){let n=e[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=Le(n)?!Rn(n):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&Le(this.searchTerm)&&!this.t
1ypeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){vi(()=>{let e=this.ngOptions();if(e.length>0&&!e.every(i=>i.isInitialized()))return;this.bindLabel.set(this._defaultLabel);let n=e.map(i=>({$ngOptionValue:i.value(),$ngOptionLabel:i.elementRef.nativeElement.innerHTML,disabled:i.disabled()}))??[];this.items.set(n),this.itemsList.setItems(n),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),e.map(i=>({option:i,item:this.itemsList.findItem(i.value())})).filter(({item:i})=>Le(i)).forEach(({option:i,item:r})=>{r.disabled=i.disabled(),r.label=i.label()||r.label})},{injector:this._injector})}_isValidWriteValue(e){if(!Le(e)||this.multiple()&&e===""||Array.isArray(e)&&e.length===0)return!1;let n=i=>!Le(this.compareWith())&&Rn(i)&&this.bindValue()?(this._console.warn(`Setting object(${JSON.stringify(i)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple()?Array.isArray(e)?e.every(i=>n(i)):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let n=i=>{let r=this.itemsList.findItem(i);if(r)this.itemsList.select(r);else{let a=Rn(i),h=!a&&!this.bindValue();a||h?this.itemsList.select(this.itemsList.mapItem(i,null)):this.bindValue()&&(r={[this.bindLabel()]:null,[this.bindValue()]:i},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple()?e.forEach(i=>n(i)):n(e)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe(Pt(this._destroyRef),Z(e=>this._pressedKeys.push(e)),mn(200),G(()=>this._pressedKeys.length>0),I(()=>this._pressedKeys.join(""))).subscribe(e=>{let n=this.itemsList.findByLabel(e);n&&(this.isOpen()?n.disabled||(this.itemsList.markItem(n),this._scrollToMarked(),this._cd.markForCheck()):this.select(n)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput().nativeElement,n=U({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId},this.inputAttrs());for(let i of Object.keys(n))e.setAttribute(i,n[i])}_setTabFocusOnClear(){this.tabFocusOnClear.set(Le(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){let e=[];for(let i of this.selectedItems)if(this.bindValue()){let r=null;if(i.children){let a=this.groupValue()?this.bindValue():this.groupBy();r=i.value[a||this.groupBy()]}else r=this.itemsList.resolveNested(i.value,this.bindValue());e.push(r)}else e.push(i.value);let n=this.selectedItems.map(i=>i.value);this.multiple()?(this._onChange(e),this.changeEvent.emit(n)):(this._onChange(Le(e[0])?e[0]:null),this.changeEvent.emit(n[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this._searchTerm.set(e),this.typeahead()?.observed&&this.typeahead().next(e)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){let e=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&e&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(e){if(this.isOpen()===!1){if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),e.preventDefault();else if(!this.addTag())return}this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){let n=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(n)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen()||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let n=this.itemsList.markedIndex+e;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(n<0||n===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.bindValue.set(this.bindValue()||e.bindValue),this.bindLabel.set(this.bindLabel()||e.bindLabel),this.appearance.set(this.appearance()||e.appearance),this._setTabFocusOnClear()}getVirtualScroll(e){return Le(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return Le(e.disableVirtualScroll)?!e.disableVirtualScroll:!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["ng-select"]],contentQueries:function(n,i,r){n&1&&Pa(r,i.optionTemplate,Rl,5,J)(r,i.optgroupTemplate,Pl,5,J)(r,i.labelTemplate,Ol,5,J)(r,i.multiLabelTemplate,Ll,5,J)(r,i.headerTemplate,Vl,5,J)(r,i.footerTemplate,Bl,5,J)(r,i.notFoundTemplate,Nl,5,J)(r,i.placeholderTemplate,jl,5,J)(r,i.typeToSearchTemplate,$l,5,J)(r,i.loadingTextTemplate,Hl,5,J)(r,i.tagTemplate,Ul,5,J)(r,i.loadingSpinnerTemplate,Gl,5,J)(r,i.clearButtonTemplate,Wl,5,J)(r,i.ngOptions,Uo,5),n&2&&Nn(14)},viewQuery:function(n,i){n&1&&xi(i.dropdownPanel,ps,5)(i.searchInput,Dp,5)(i.clearButton,Mp,5),n&2&&Nn(3)},hostVars:20,hostBindings:function(n,i){n&1&&y("keydown",function(a){return i.handleKeyDown(a)}),n&2&&te("ng-select",!0)("ng-select-single",!i.multiple())("ng-select-typeahead",i.typeahead())("ng-select-multiple",i.multiple())("ng-select-taggable",i.addTag())("ng-select-searchable",i.searchable())("ng-select-clearable",i.clearable())("ng-select-opened",i.isOpen())("ng-select-filtered",i.filtered)("ng-select-disabled",i.disabled())},inputs:{_ariaLabelDropdown:[1,"ariaLabelDropdown","_ariaLabelDropdown"],_ariaLabel:[1,"ariaLabel","_ariaLabel"],_markFirst:[1,"markFirst","_markFirst"],_placeholder:[1,"placeholder","_placeholder"],_fixedPlaceholder:[1,"f
1ixedPlaceholder","_fixedPlaceholder"],_notFoundText:[1,"notFoundText","_notFoundText"],_typeToSearchText:[1,"typeToSearchText","_typeToSearchText"],_preventToggleOnRightClick:[1,"preventToggleOnRightClick","_preventToggleOnRightClick"],_addTagText:[1,"addTagText","_addTagText"],_loadingText:[1,"loadingText","_loadingText"],_clearAllText:[1,"clearAllText","_clearAllText"],_dropdownPosition:[1,"dropdownPosition","_dropdownPosition"],_appendTo:[1,"appendTo","_appendTo"],_outsideClickEvent:[1,"outsideClickEvent","_outsideClickEvent"],_loading:[1,"loading","_loading"],_closeOnSelect:[1,"closeOnSelect","_closeOnSelect"],_hideSelected:[1,"hideSelected","_hideSelected"],_selectOnTab:[1,"selectOnTab","_selectOnTab"],_openOnEnter:[1,"openOnEnter","_openOnEnter"],_maxSelectedItems:[1,"maxSelectedItems","_maxSelectedItems"],_groupBy:[1,"groupBy","_groupBy"],_groupValue:[1,"groupValue","_groupValue"],_bufferAmount:[1,"bufferAmount","_bufferAmount"],_virtualScroll:[1,"virtualScroll","_virtualScroll"],_selectableGroup:[1,"selectableGroup","_selectableGroup"],_tabFocusOnClearButton:[1,"tabFocusOnClearButton","_tabFocusOnClearButton"],_selectableGroupAsModel:[1,"selectableGroupAsModel","_selectableGroupAsModel"],_searchFn:[1,"searchFn","_searchFn"],_trackByFn:[1,"trackByFn","_trackByFn"],_clearOnBackspace:[1,"clearOnBackspace","_clearOnBackspace"],_labelForId:[1,"labelForId","_labelForId"],_inputAttrs:[1,"inputAttrs","_inputAttrs"],_tabIndex:[1,"tabIndex","_tabIndex"],_readonly:[1,"readonly","_readonly"],_searchWhileComposing:[1,"searchWhileComposing","_searchWhileComposing"],_minTermLength:[1,"minTermLength","_minTermLength"],_editableSearchTerm:[1,"editableSearchTerm","_editableSearchTerm"],_ngClass:[1,"ngClass","_ngClass"],_typeahead:[1,"typeahead","_typeahead"],_multiple:[1,"multiple","_multiple"],_addTag:[1,"addTag","_addTag"],_searchable:[1,"searchable","_searchable"],_clearable:[1,"clearable","_clearable"],_clearKeepsDisabledOptions:[1,"clearKeepsDisabledOptions","_clearKeepsDisabledOptions"],_deselectOnClick:[1,"deselectOnClick","_deselectOnClick"],_clearSearchOnAdd:[1,"clearSearchOnAdd","_clearSearchOnAdd"],_compareWith:[1,"compareWith","_compareWith"],_keyDownFn:[1,"keyDownFn","_keyDownFn"],_popover:[1,"popover","_popover"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[_e([{provide:vt,useExisting:Ie(()=>t),multi:!0},Xl]),Ee],decls:15,vars:22,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown","popover"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown","popover"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(n,i){if
1(n&1){let r=P();d(0,"div",10),y("mousedown",function(h){return i.handleMousedown(h)}),d(1,"div",11),Xe(2,Op,3,1),Xe(3,Np,2,0),Xe(4,$p,1,5,null,12),d(5,"div",13)(6,"input",14,0),y("blur",function(h){return i.onInputBlur(h)})("change",function(h){return h.stopPropagation()})("compositionend",function(){v(r);let h=H(7);return C(i.onCompositionEnd(h.value))})("compositionstart",function(){return i.onCompositionStart()})("focus",function(h){return i.onInputFocus(h)})("input",function(){v(r);let h=H(7);return C(i.filter(h.value))}),u()()(),Xe(8,Gp,3,1),Xe(9,qp,4,4,"span",15),d(10,"span",16),w(11,"span",17),u()(),Xe(12,lm,8,22,"ng-dropdown-panel",18),d(13,"div",19),Xe(14,dm,1,1),u()}n&2&&(te("ng-appearance-outline",i.appearance()==="outline")("ng-appearance-fill",i.appearance()==="fill")("ng-has-value",i.hasValue),s(2),Ze(i.selectedItems.length===0&&!i.searchTerm||(i.fixedPlaceholder()??i.config.fixedPlaceholder)?2:-1),s(),Ze((!i.multiLabelTemplate()||!i.multiple())&&i.selectedItems.length>0?3:-1),s(),Ze(i.multiple()&&i.multiLabelTemplate()&&i.selectedValues.length>0?4:-1),s(2),c("disabled",i.disabled())("readOnly",!i.searchable()||i.itemsList.maxItemsSelected)("value",i.searchTerm??""),M("aria-activedescendant",i.isOpen()?i.itemsList==null||i.itemsList.markedItem==null?null:i.itemsList.markedItem.htmlId:null)("aria-controls",i.isOpen()?i.dropdownId:null)("aria-expanded",i.isOpen())("aria-label",i.ariaLabel())("id",i.labelForId())("tabindex",i.tabIndex()),s(2),Ze(i.loading()?8:-1),s(),Ze(i.showClear()?9:-1),s(3),Ze(i.isOpen()?12:-1),s(2),Ze(i.isOpen()&&i.showNoItemsFound()?14:-1))},dependencies:[et,fm,ps],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;
1cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap} 2`],encapsulation:2,changeDetection:0})}}return t})(),fs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:Cm()})}}return t})();function Cm(){return[{provide:Jl,useValue:Zl}]}function ym(t,o,e,n){let i=window&&!!window.document&&window.document.documentElement,r=i&&o?window:e;if(t&&(r=t&&i&&typeof t=="string"?xm(t,e.nativeElement,n):t,!r))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return r}function xm(t,o,e){return(e?window.document:o).querySelector(t)}function gs(t){return t&&!t.firstChange}function bm(){return typeof window<"u"}var Sm={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},wm={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"},_s=class{constructor(o=!0){this.vertical=o,this.propsMap=o?Sm:wm}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}};function Tm(t,o,e){return!!(t&&o||!e&&o)}function Im({windowElement:t,axis:o}){return Em({axis:o,isWindow:Dm(t)},t)}function Em(t,o){let e=t.isWindow||o&&!o.nativeElement?o:o.nativeElement;return ce(U({},t),{container:e})}function Dm(t){return["Window","global"].some(e=>Object.prototype.toString.call(t).includes(e))}function ys(t,o){return t?o.document.documentElement:null}function ed(t,o){let e=km(o);return o.isWindow?Mm(e,t,o):Fm(e,t,o)}function Mm(t,o,e){let{axis:n,container:i,isWindow:r}=e,{offsetHeightKey:a,clientHeightKey:h}=td(n),S=t+id(ys(r,i),n,r),k=nd(o.nativeElement,r,a,h),K=Am(o.nativeElement,n,r)+k;return{height:t,scrolled:S,totalToScroll:K,isWindow:r}}function Fm(t,o,e){let{axis:n,container:i}=e,r=i[n.scrollTopKey()],a=i[n.scrollHeightKey()];return{height:t,scrolled:r,totalToScroll:a,isWindow:!1}}function td(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function km({container:t,isWindow:o,axis:e}){let{offsetHeightKey:n,clientHeightKey:i}=td(e);return nd(t,o,n,i)}function nd(t,o,e,n){if(isNaN(t[e])){let i=ys(o,t);return i?i[n]:0}else return t[e]}function Am(t,o,e){let n=o.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[n]+id(t,o,e)}function id(t,o,e){let n=o.pageYOffsetKey(),i=o.scrollTopKey(),r=o.offsetTopKey();return isNaN(window.pageYOffset)?ys(e,t)[i]:t.ownerDocument?t.ownerDocument.defaultView[n]:t[r]}function Rm(t,o={down:0,up:0},e){let n,i;if(t.totalToScroll<=0)return!1;let r=t.isWindow?t.scrolled:t.height+t.scrolled;if(e)n=(t.totalToScroll-r)/t.totalToScroll,i=(o?.down?o.down:0)/10;else{let h=t.scrolled+(t.totalToScroll-r);n=t.scrolled/h,i=(o?.up?o.up:0)/10}return n<=i}function Pm(t,o){return t<o.scrolled}function Om(t,o,e){let n=Pm(t,o);return{fire:Rm(o,e,n),scrollDown:n}}var vs=class{constructor(o){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,o)}updateScrollPosition(o){return this.lastScrollPosition=o}updateTotalToScroll(o){this.lastTotalToScroll!==o&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=o)}updateScroll(o,e){this.updateScrollPosition(o),this.updateTotalToScroll(e)}updateTriggeredFlag(o,e){e?this.triggered.down=o:this.triggered.up=o}isTriggeredScroll(o,e){return e?this.triggered.down===o:this.triggered.up===o}};function Lm(t){let{scrollContainer:o,scrollWindow:e,element:n,fromRoot:i}=t,r=Im({axis:new _s(!t.horizontal),windowElement:ym(o,e,n,i)}),a=new vs({totalToScroll:ed(n,r).totalToScroll}),h={container:r.container,throttle:t.throttle},S={up:t.upDistance,down:t.downDistance};return Vm(h).pipe(no(()=>Q(ed(n,r))),I(k=>Bm(a.lastScrollPosition,k,S)),Z(({stats:k})=>a.updateScroll(k.scrolled,k.totalToScroll)),G(({fire:k,scrollDown:K,stats:{totalToScroll:fe}})=>Tm(t.alwaysCallback,k,a.isTriggeredScroll(fe,K))),Z(({scrollDown:k,stats:{totalToScroll:K}})=>{a.updateTriggeredFlag(K,k)}),I(Nm))}function Vm(t){let o=En(t.container,"scroll");return t.throttle&&(o=o.pipe(ba(t.throttle,void 0,{leading:!0,trailing:!0}))),o}function Bm(t,o,e){let{scrollDown:n,fire:i}=Om(t,o,e);return{scrollDown:n,fire:i,stats:o}}var Cs={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Nm(t){let{scrollDown:o,stats:{scrolled:e}}=t;
2return{type:o?Cs.DOWN:Cs.UP,payload:{currentScrollPosition:e}}}var od=(()=>{class t{constructor(e,n){this.element=e,this.zone=n,this.scrolled=new oe,this.scrolledUp=new oe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:e,infiniteScrollDisabled:n,infiniteScrollDistance:i}){let r=gs(e),a=gs(n),h=gs(i),S=!a&&!this.infiniteScrollDisabled||a&&!n.currentValue||h;(r||a||h)&&(this.destroyScroller(),S&&this.setup())}ngOnDestroy(){this.destroyScroller()}setup(){bm()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=Lm({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(e=>this.handleOnScroll(e))})}handleOnScroll({type:e,payload:n}){let i=e===Cs.DOWN?this.scrolled:this.scrolledUp;jm(i)&&this.zone.run(()=>i.emit(n))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Vn))}}static{this.\u0275dir=V({type:t,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[Ee]})}}return t})();function jm(t){return t.observed}var rd=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})();var xn=["*"];function $m(t,o){if(t&1&&(R(0),w(1,"i",1),A()),t&2){let e=l();s(),c("outerHTML",e.icon,We)}}function Hm(t,o){if(t&1&&(d(0,"div",6)(1,"span"),_(2),p(3,"cxTranslate"),u()()),t&2){let e=o.$implicit;s(2),B(m(3,1,e))}}function Um(t,o){if(t&1){let e=P();d(0,"div",7)(1,"span",8),w(2,"cx-icon",9),u(),d(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"button",10),p(7,"cxTranslate"),y("click",function(){let i=v(e).index,r=l(2);return C(r.clear(r.messageType.MSG_TYPE_CONFIRMATION,i))}),w(8,"cx-icon",9),u()()}if(t&2){let e=o.$implicit,n=l(2);s(2),c("type",n.iconTypes.SUCCESS),s(2),B(m(5,5,e)),s(2),c("title",me(m(7,7,"common.close"))),s(2),c("type",n.iconTypes.CLOSE)}}function Gm(t,o){if(t&1){let e=P();d(0,"div",11)(1,"span",8),w(2,"cx-icon",9),u(),d(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"button",10),p(7,"cxTranslate"),y("click",function(){let i=v(e).index,r=l(2);return C(r.clear(r.messageType.MSG_TYPE_INFO,i))}),w(8,"cx-icon",9),u()()}if(t&2){let e=o.$implicit,n=l(2);s(2),c("type",n.iconTypes.INFO),s(2),B(m(5,5,e)),s(2),c("title",me(m(7,7,"common.close"))),s(2),c("type",n.iconTypes.CLOSE)}}function Wm(t,o){if(t&1){let e=P();d(0,"div",12)(1,"span",8),w(2,"cx-icon",9),u(),d(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"button",10),p(7,"cxTranslate"),y("click",function(){let i=v(e).index,r=l(2);return C(r.clear(r.messageType.MSG_TYPE_WARNING,i))}),w(8,"cx-icon",9),u()()}if(t&2){let e=o.$implicit,n=l(2);s(2),c("type",n.iconTypes.WARNING),s(2),B(m(5,5,e)),s(2),c("title",me(m(7,7,"common.close"))),s(2),c("type",n.iconTypes.CLOSE)}}function zm(t,o){if(t&1){let e=P();d(0,"div",13)(1,"span",8),w(2,"cx-icon",9),u(),d(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"button",10),p(7,"cxTranslate"),y("click",function(){let i=v(e).index,r=l(2);return C(r.clear(r.messageType.MSG_TYPE_ERROR,i))}),w(8,"cx-icon",9),u()()}if(t&2){let e=o.$implicit,n=l(2);s(2),c("type",n.iconTypes.ERROR),s(2),B(m(5,5,e)),s(2),c("title",me(m(7,7,"common.close"))),s(2),c("type",n.iconTypes.CLOSE)}}function qm(t,o){if(t&1&&(d(0,"div"),f(1,Hm,4,3,"div",1)(2,Um,9,9,"div",2)(3,Gm,9,9,"div",3)(4,Wm,9,9,"div",4)(5,zm,9,9,"div",5),u()),t&2){let e=o.ngIf,n=l();s(),c("ngForOf",e[n.messageType.MSG_TYPE_ASSISTIVE]),s(),c("ngForOf",e[n.messageType.MSG_TYPE_CONFIRMATION]),s(),c("ngForOf",e[n.messageType.MSG_TYPE_INFO]),s(),c("ngForOf",e[n.messageType.MSG_TYPE_WARNING]),s(),c("ngForOf",e[n.messageType.MSG_TYPE_ERROR])}}var Km=t=>({components$:t}),Qm=t=>({component:t});function Ym(t,o){if(t&1&&xe(0,4),t&2){let e=l(2).$implicit;c("cxComponentWrapper",e)}}function Xm(t,o){if(t&1){let e=P();f(0,Ym,1,1,"ng-template",3),y("loaded",function(i){v(e);let r=l(4);return C(r.isLoaded(i))})}if(t&2){let e=l().$implicit,n=l(3);c("cxOutlet",e.flexType)("cxOutletContext",Y(3,Qm,e))("cxOutletDefer",n.getComponentDeferOptions(e.flexType))}}
2function Zm(t,o){if(t&1&&(R(0),f(1,Xm,1,5,null,0),A()),t&2){let e=o.$implicit;s(),c("ngIf",e.flexType)}}function Jm(t,o){if(t&1&&f(0,Zm,2,1,"ng-container",2),t&2){let e=l(2);c("ngForOf",e.components)}}function eh(t,o){if(t&1&&f(0,Jm,1,1,"ng-template",1),t&2){let e=l();c("cxOutlet",e.position)("cxOutletContext",Y(2,Km,e.components$))}}var th=(t,o,e)=>({templateName$:t,slots$:o,section$:e});function nh(t,o){if(t&1&&(w(0,"cx-page-slot",3),p(1,"async")),t&2){let e=o.$implicit,n=l(3);c("position",e)("isPageFold",e===m(1,2,n.pageFoldSlot$))}}function ih(t,o){if(t&1&&(gt(0),f(1,nh,2,4,"cx-page-slot",2),p(2,"async")),t&2){let e=l(2);s(),c("ngForOf",m(2,1,e.slots$))}}function oh(t,o){if(t&1&&f(0,ih,3,3,"ng-template",1),t&2){let e=o.ngIf,n=l();c("cxPageTemplateStyle",e)("cxOutlet",e)("cxOutletContext",$t(3,th,n.templateName$,n.slots$,n.section$))}}function rh(t,o){if(t&1){let e=P();d(0,"div")(1,"div",1)(2,"div",2)(3,"p"),_(4),p(5,"cxTranslate"),u(),d(6,"ul")(7,"li"),_(8),p(9,"cxTranslate"),u(),d(10,"li"),_(11),p(12,"cxTranslate"),u()(),d(13,"button",3),y("click",function(){v(e);let i=l();return C(i.prompt())}),_(14),p(15,"cxTranslate"),u()()()()}t&2&&(s(4),x(" ",m(5,4,"pwa.addToHomeScreenDescription")," "),s(4),B(m(9,6,"pwa.noInstallationNeeded")),s(3),B(m(12,8,"pwa.fastAccessToApplication")),s(3),x(" ",m(15,10,"pwa.addToHomeScreen")," "))}var sh=()=>({tab:!0});function ah(t,o){if(t&1){let e=P();d(0,"button",3),y("click",function(){let i=v(e).$implicit,r=l(2);return C(r.scrollToTarget(i))}),_(1),p(2,"cxTranslate"),p(3,"cxTranslate"),u()}if(t&2){let e=o.$implicit;s(),jt(" ",m(2,2,"skipLink.skipTo")," ",m(3,4,e.i18nKey)," ")}}function ch(t,o){if(t&1&&(d(0,"div",1),f(1,ah,4,6,"button",2),u()),t&2){let e=o.ngIf;c("cxFocus",Me(2,sh)),s(),c("ngForOf",e)}}var Md=()=>({disableMouseFocus:!0});function lh(t,o){if(t&1){let e=P();d(0,"header",4),p(1,"async"),y("keydown.escape",function(){v(e);let i=l(2);return C(i.collapseMenu())})("click",function(i){v(e);let r=l(2);return C(r.collapseMenuIfClickOutside(i))}),w(2,"cx-page-layout",5)(3,"cx-page-layout",6),u(),w(4,"cx-page-slot",7)(5,"cx-global-message",8)}if(t&2){let e=l(2);te("is-expanded",m(1,4,e.isExpanded$)),c("cxFocus",e.focusConfig),s(2),c("cxSkipFocus",e.skipFocusConfig)}}function dh(t,o){t&1&&(d(0,"footer",9),w(1,"cx-page-layout",10),u()),t&2&&c("cxFocus",Me(1,Md))}function uh(t,o){t&1&&(f(0,lh,6,6,"ng-template",1),d(1,"main",2),w(2,"router-outlet"),u(),f(3,dh,2,2,"ng-template",3)),t&2&&(s(),c("cxFocus",Me(1,Md)))}function ph(t,o){if(t&1&&w(0,"source",5),t&2){let e=o.$implicit;c("media",e.media)("srcset",e.srcset),M("width",e.width)("height",e.height)}}function mh(t,o){if(t&1){let e=P();d(0,"picture"),f(1,ph,1,4,"source",3),d(2,"img",4),y("load",function(){v(e);let i=l(2);return C(i.loadHandler())})("error",function(){v(e);let i=l(2);return C(i.errorHandler())}),u()()}if(t&2){let e=l(2);s(),c("ngForOf",e.media.sources)("ngForTrackBy",e.trackByMedia),s(),c("loading",e.effectiveLoadingStrategy)("alt",e.media.alt)("title",e.media.alt)("src",e.media.src,Bn),M("fetchpriority",e.fetchPriority)("role",e.media.role)("width",e.media.width)("height",e.media.height)}}function hh(t,o){if(t&1){let e=P();d(0,"img",7),y("load",function(){v(e);let i=l(3);return C(i.loadHandler())})("error",function(){v(e);let i=l(3);return C(i.errorHandler())}),u()}if(t&2){let e=l(3);c("loading",e.effectiveLoadingStrategy)("alt",e.media.alt)("title",e.media.alt)("src",e.media.src,Bn)("srcset",e.media.srcset||e.media.src),M("fetchpriority",e.fetchPriority)("role",e.media.role)("width",e.media.width)("height",e.media.height)("sizes",e.sizesForImgElement)}}function fh(t,o){if(t&1&&f(0,hh,1,10,"img",6),t&2){let e=l(2);c("ngIf",e.media.src)}}function gh(t,o){if(t&1&&(R(0),f(1,mh,3,10,"picture",2)(2,fh,1,1,"ng-template",null,0,ie),A()),t&2){let e=H(3),n=l();s(),c("ngIf",!!(!(n.media==null||n.media.sources==null)&&n.media.sources.length)&&n.elementType!=="img")("ngIfElse",e)}}var _h=t=>({"anonymous-consent-banner-hidden":t});function vh(t,o){if(t&1){let e=P();R(0),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),_(6),p(7,"cxTranslate"),u(),d(8,"div",6),_(9),p(10,"cxTranslate"),u()(),d(11,"div",7)(12,"button",8),y("click",function(){v(e);let i=l();return C(i.viewDetails())}),_(13),p(14,"cxTranslate"),u(),d(15,"button",9),y("click",function(){v(e);let i=l();return C(i.allowAll())}),_(16),p(17,"cxTranslate"),u()()()()(),A()}if(t&2){let e=o.ngIf;s(),c("ngClass",Y(13,_h,!e)),s(5),x(" ",m(7,5,"anonymousConsents.banner.title")," "),s(3),x(" ",m(10,7,"anonymousConsents.banner.description")," "),s(4),x(" ",m(14,9,"anonymousConsents.banner.consentManagement")," "),s(3),x(" ",m(17,11,"anonymousConsents.banner.allowAll")," ")}}var Ch=["messageContainer"];function yh(t,o){if(t&1){let e=P();d(0,"button",11),y("click",function(){v(e);let i=l();return C(i.showBody=!i.showBody)}),_(1),w(2,"cx-icon",12),u()}if(t&2){let e=l();M("aria-expanded",e.showBody)("aria-label",e.accordionText),s(),x(" ",e.accordionText," "),s(),c("type",e.showBody?"CARET_UP":"CARET_DOW
2N")}}function xh(t,o){if(t&1){let e=P();d(0,"button",13),y("click",function(){v(e);let i=l();return C(i.buttonAction.emit())}),_(1),u()}if(t&2){let e=l();c("cxAtMessage",e.actionButtonMessage),s(),x(" ",e.actionButtonText," ")}}function bh(t,o){if(t&1){let e=P();d(0,"button",14),p(1,"cxTranslate"),p(2,"cxTranslate"),p(3,"cxTranslate"),y("click",function(){v(e);let i=l();return C(i.closeMessage.emit())}),w(4,"cx-icon",15),u()}if(t&2){let e=l();c("title",me(m(1,5,"common.close")))("cxAtMessage",m(2,7,"common.close")),M("aria-label",m(3,9,"common.close")),s(4),c("type",e.iconTypes.CLOSE)}}function Sh(t,o){t&1&&(d(0,"div",16),gt(1),u())}var wh=["checkboxInput"];function Th(t,o){if(t&1&&(R(0),_(1),w(2,"br"),A()),t&2){let e=l();s(),x(" ",e.consentTemplate==null?null:e.consentTemplate.name," ")}}function Ih(t,o){}function Eh(t,o){t&1&&(R(0),d(1,"abbr",8),p(2,"cxTranslate"),_(3,"*"),u(),A()),t&2&&(s(),c("title",me(m(2,2,"common.required"))))}function Dh(t,o){if(t&1&&f(0,Eh,4,4,"ng-container",5),t&2){let e=l();c("ngIf",e.showMandatory)}}function Mh(t,o){t&1&&(d(0,"div"),w(1,"cx-spinner"),u())}function Fh(t,o){t&1&&(d(0,"div",15),_(1),p(2,"cxTranslate"),w(3,"div",16),u()),t&2&&(s(),x(" ",m(2,1,"anonymousConsents.dialog.legalDescription")," "))}function kh(t,o){if(t&1){let e=P();d(0,"cx-message",17),p(1,"cxTranslate"),y("closeMessage",function(){v(e);let i=l(2);return C(i.closeMessage())}),u()}if(t&2){let e=o.ngIf;c("text",m(1,3,e.key))("type",e.type)("isVisibleCloseButton",!0)}}function Ah(t,o){if(t&1){let e=P();d(0,"div",21)(1,"cx-consent-management-form",22),y("consentChanged",function(i){v(e);let r=l(4);return C(r.onConsentChange(i))}),u()()}if(t&2){let e=o.$implicit,n=l().ngIf,i=l(3);s(),c("consentTemplate",e)("requiredConsents",i.requiredConsents)("consent",i.getCorrespondingConsent(e,n))}}function Rh(t,o){if(t&1&&(R(0),f(1,Ah,2,3,"div",20),A()),t&2){let e=l().ngIf;s(),c("ngForOf",e)}}function Ph(t,o){if(t&1&&(d(0,"div",18),f(1,Rh,2,1,"ng-container",19),p(2,"async"),u()),t&2){let e=l(2);s(),c("ngIf",m(2,1,e.consents$))}}function Oh(t,o){if(t&1){let e=P();d(0,"div",4)(1,"h3",5),_(2),p(3,"cxTranslate"),u(),d(4,"button",6),p(5,"cxTranslate"),p(6,"cxTranslate"),y("click",function(){v(e);let i=l();return C(i.close("Cross click"))}),d(7,"span",7),w(8,"cx-icon",8),u()()(),f(9,Fh,4,3,"div",9),d(10,"div",10),f(11,kh,2,5,"cx-message",11),p(12,"async"),u(),d(13,"div",12)(14,"button",13),y("click",function(){v(e);let i=l();return C(i.rejectAll())}),_(15),p(16,"cxTranslate"),u(),d(17,"button",13),y("click",function(){v(e);let i=l();return C(i.allowAll())}),_(18),p(19,"cxTranslate"),u()(),f(20,Ph,3,3,"div",14),p(21,"async")}if(t&2){let e=l();s(2),x(" ",m(3,10,"anonymousConsents.dialog.title")," "),s(2),c("title",me(m(5,12,"common.close"))),M("aria-label",m(6,14,"common.close")),s(4),c("type",e.iconTypes.CLOSE),s(),c("ngIf",e.showLegalDescription),s(2),c("ngIf",m(12,16,e.message$)),s(4),x(" ",m(16,18,"anonymousConsents.dialog.clearAll")," "),s(3),x(" ",m(19,20,"anonymousConsents.dialog.selectAll")," "),s(2),c("ngIf",m(21,22,e.templates$))}}var Lh=["open"];function Vh(t,o){if(t&1){let e=P();d(0,"button",2,0),y("click",function(){v(e);let i=l();return C(i.openDialog())}),_(2),p(3,"cxTranslate"),u()}t&2&&(s(2),x(" ",m(3,1,"anonymousConsents.dialog.title"),` 3`))}var Fd=(t,o)=>({item:t,itemIndex:o}),sd=(t,o)=>({currentSlideNumber:t,numberOfSlides:o});function Bh(t,o){if(t&1&&(d(0,"h2"),_(1),u()),t&2){let e=l(2);s(),B(e.title)}}function Nh(t,o){if(t&1){let e=P();d(0,"button",7),p(1,"cxTranslate"),p(2,"cxTranslate"),y("mousedown",function(i){v(e);let r=l(3);return C(r.onNavigationMouseDown(i))})("click",function(i){v(e);let r=l(2).ngIf,a=l();return C(a.onPreviousClick(i,r))})("keydown.arrowleft",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowright",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowup",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowdown",function(i){v(e);let r=l(3);return C(r.shareEvent(i))}),w(3,"cx-icon",8),u()}if(t&2){let e=l(3);M("aria-disabled",e.activeSlide===0)("aria-label",m(1,4,"carousel.previousSlide"))("title",m(2,6,"carousel.previousSlide")),s(3),c("type",e.previousIcon)}}function jh(t,o){if(t&1){let e=P();d(0,"button",9),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(i){v(e);let r=l(2).ngIf,a=l();return i.stopPropagation(),C(a.activeSlide===0?null:a.activeSlide=a.activeSlide-r)})("keydown.arrowleft",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowright",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowup",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowdown",function(i){v(e);let r=l(3);return C(r.shareEvent(i))}),w(3,"cx-icon",8),u()}if(t&2){let e=l(3);M("aria-disabled",e.activeSlide===0)("aria-label",m(1,4,"carousel.previousSlide"))("title",m(2,6,"carousel.previousSlide")),s(3),c("type",e.previousIcon)}}function $h(t,o){t&1&&(R(0),f(1,Nh,4,8,"button",5)(2,jh,4,8,"button",6),A(
3)),t&2&&(s(),c("cxFeature","a11yCarouselPreventNavigationFocus"),s(),c("cxFeature","!a11yCarouselPreventNavigationFocus"))}function Hh(t,o){t&1&&xe(0)}function Uh(t,o){if(t&1){let e=P();d(0,"div",13),y("keydown",function(i){v(e);let r=l(4).ngIf,a=l();return C(a.onItemKeydown(i,r))}),f(1,Hh,1,0,"ng-container",14),u()}if(t&2){let e=o.ngIf,n=l().index,i=l(2).index,r=l(2);te("active",i===r.activeSlide),s(),c("ngTemplateOutlet",r.template)("ngTemplateOutletContext",st(4,Fd,e,i+n))}}function Gh(t,o){if(t&1&&(R(0),f(1,Uh,2,7,"div",12),p(2,"async"),A()),t&2){let e=o.$implicit;s(),c("ngIf",m(2,1,e))}}function Wh(t,o){if(t&1&&(d(0,"div",11),f(1,Gh,3,3,"ng-container",3),p(2,"slice"),u()),t&2){let e=l().index,n=l().ngIf,i=l();te("active",e===i.activeSlide),s(),c("ngForOf",$n(2,4,i.items,e,e+n))("ngForTrackBy",i.trackByFn)}}function zh(t,o){if(t&1&&(R(0),f(1,Wh,3,8,"div",10),A()),t&2){let e=o.index,n=l().ngIf;s(),c("ngIf",e%n===0)}}function qh(t,o){if(t&1){let e=P();d(0,"button",17),p(1,"cxTranslate"),p(2,"cxTranslate"),y("mousedown",function(i){v(e);let r=l(3);return C(r.onNavigationMouseDown(i))})("click",function(i){v(e);let r=l(2).ngIf,a=l();return C(a.onNextClick(i,r))})("keydown.arrowleft",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowright",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowup",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowdown",function(i){v(e);let r=l(3);return C(r.shareEvent(i))}),w(3,"cx-icon",8),u()}if(t&2){let e=l(2).ngIf,n=l();M("aria-disabled",n.activeSlide>n.items.length-e-1)("aria-label",m(1,4,"carousel.nextSlide"))("title",m(2,6,"carousel.nextSlide")),s(3),c("type",n.nextIcon)}}function Kh(t,o){if(t&1){let e=P();d(0,"button",18),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(i){v(e);let r=l(2).ngIf,a=l();return i.stopPropagation(),C(a.activeSlide>a.items.length-r-1?null:a.activeSlide=a.activeSlide+r)})("keydown.arrowleft",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowright",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowup",function(i){v(e);let r=l(3);return C(r.shareEvent(i))})("keydown.arrowdown",function(i){v(e);let r=l(3);return C(r.shareEvent(i))}),w(3,"cx-icon",8),u()}if(t&2){let e=l(2).ngIf,n=l();M("aria-disabled",n.activeSlide>n.items.length-e-1)("aria-label",m(1,4,"carousel.nextSlide"))("title",m(2,6,"carousel.nextSlide")),s(3),c("type",n.nextIcon)}}function Qh(t,o){t&1&&(R(0),f(1,qh,4,8,"button",15)(2,Kh,4,8,"button",16),A()),t&2&&(s(),c("cxFeature","a11yCarouselPreventNavigationFocus"),s(),c("cxFeature","!a11yCarouselPreventNavigationFocus"))}function Yh(t,o){if(t&1){let e=P();d(0,"button",22),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(i){v(e);let r=l().index,a=l(3);return i.stopPropagation(),C(a.activeSlide=r)}),w(3,"cx-icon",23),u()}if(t&2){let e=l().index,n=l(2).ngIf,i=l();M("aria-current",e===i.activeSlide)("aria-disabled",e===i.activeSlide)("aria-label",de(1,5,"carousel.slideNumber",st(11,sd,i.getSlideNumber(n,e),n)))("title",de(2,8,"carousel.slideNumber",st(14,sd,i.getSlideNumber(n,e),n))),s(3),c("type",i.indicatorIcon)}}function Xh(t,o){if(t&1&&(R(0),f(1,Yh,4,17,"button",21),A()),t&2){let e=o.index,n=l(2).ngIf;s(),c("ngIf",e%n===0)}}function Zh(t,o){if(t&1&&(d(0,"div",19),f(1,Xh,2,1,"ng-container",20),u()),t&2){let e=l(2);s(),c("ngForOf",e.items)}}function Jh(t,o){if(t&1&&(R(0),f(1,Bh,2,1,"h2",0),d(2,"div",1),f(3,$h,3,2,"ng-container",0),d(4,"div",2),f(5,zh,2,1,"ng-container",3),u(),f(6,Qh,3,2,"ng-container",0),u(),f(7,Zh,2,1,"div",4),A()),t&2){let e=o.ngIf,n=l();s(),c("ngIf",n.title),s(),c("ngClass","size-"+e),s(),c("ngIf",e<n.items.length),s(2),c("ngForOf",n.items)("ngForTrackBy",n.trackByFn),s(),c("ngIf",e<n.items.length),s(),c("ngIf",!n.hideIndicators&&e<n.items.length)}}var e0=(t,o,e)=>({flexType:t,typeCode:o,uid:e});function t0(t,o){if(t&1&&w(0,"cx-carousel",2),t&2){let e=o.ngIf;l();let n=H(3);c("items",e)("template",n)}}function n0(t,o){if(t&1&&xe(0,3),t&2){let e=o.item;c("cxComponentWrapper",$t(1,e0,e.typeCode,e.typeCode,e==null?null:e.uid))}}function i0(t,o){if(t&1&&(R(0),_(1),A()),t&2){let e=l();s(),x(" ",e.consentTemplate==null?null:e.consentTemplate.name," ")}}function o0(t,o){if(t&1&&(d(0,"span",6),_(1),p(2,"cxTranslate"),u()),t&2){let e=l();s(),jt(" ",m(2,2,"myAccountV2Consent.dateDescription"),"",e.consentApprovedTime," ")}}var r0=(t,o,e)=>({loading:t,templateList:o,allConsentsLoading:e});function s0(t,o){if(t&1){let e=P();R(0),d(1,"div",4)(2,"button",5),y("click",function(){v(e);let i=l().ngIf,r=l(2);return C(r.rejectAll(i))}),_(3),p(4,"cxTranslate"),u(),d(5,"button",5),y("click",function(){v(e);let i=l().ngIf,r=l(2);return C(r.allowAll(i))}),_(6),p(7,"cxTranslate"),u()(),A()}if(t&2){let e=l(2).ngIf;s(2),M("aria-disabled",e.loading),s(),x(" ",m(4,4,"consentManagementForm.clearAll")," "),s(2),M("aria-disabled",e.loading),s(),x(" ",m(7,6,"consentManagementForm.selectAll")," ")}}function a0(t,o){if(t&1){let e=P();R(0),d(1,"div",4)(2,"button",6),y("click",function(){v(e);let i=l().ngIf,r=l(2);return C(r.rejectAll(i))}),_(3),p(4,"cxTranslate"),u(),d(5,"button",6),y("click",function(){v(e);let i=l().ngIf,r=l(2);return C(r.allowAll(i))}),_(6),p(7,"cxTranslate"),u()(),A()}if(t&2){let e=l(2).ngIf;s(2),c("disabled",e.loading),s(),x(" ",m(4,4,"consentManagementForm.clearAll")," "),s(2),c("disabled",e.loading),s(),x(" ",m(7,6,"consentManagementForm.selectAll")," ")}}function c0(t,o){t&1&&(d(0,"div",7),w(1,"cx-spinner"),u())}function l0(t,o){if(t&1){let e=P();d(0,"cx-consent-management-form",10),y("consentChanged",function(i){v(e);let r=l(4);return C(r.onConsentChange(i))}
3),u()}if(t&2){let e=o.$implicit,n=l(3).ngIf,i=l();c("consentTemplate",e)("requiredConsents",i.requiredConsents)("disabled",!!n.loading)}}function d0(t,o){if(t&1&&(R(0),d(1,"div",8)(2,"div",4),f(3,l0,1,3,"cx-consent-management-form",9),u()(),A()),t&2){let e=l().ngIf,n=l(2);s(3),c("ngForOf",e)("ngForTrackBy",n.trackByTemplateId)}}function u0(t,o){if(t&1&&(R(0),d(1,"div",1),f(2,s0,8,8,"ng-container",2)(3,a0,8,8,"ng-container",2),u(),f(4,c0,2,0,"div",3)(5,d0,4,2,"ng-container",0),A()),t&2){let e=o.ngIf,n=l().ngIf;s(2),c("cxFeature","a11yKeepFocusOnConsentManagementButtons"),s(),c("cxFeature","!a11yKeepFocusOnConsentManagementButtons"),s(),c("ngIf",n.allConsentsLoading||n.loading&&!(e!=null&&e.length)),s(),c("ngIf",!n.allConsentsLoading)}}function p0(t,o){if(t&1&&(R(0),f(1,u0,6,4,"ng-container",0),A()),t&2){let e=o.ngIf;s(),c("ngIf",e.templateList)}}var m0=()=>({key:"clear-all"}),h0=()=>({key:"select-all"});function f0(t,o){t&1&&(d(0,"div")(1,"div",2),w(2,"cx-spinner"),u()())}function g0(t,o){if(t&1){let e=P();d(0,"cx-my-account-v2-consent-management-form",10),y("consentChanged",function(i){v(e);let r=l(3);return C(r.onConsentChange(i))}),u()}if(t&2){let e=o.$implicit,n=l(3);c("consentTemplate",e)("requiredConsents",n.requiredConsents)}}function _0(t,o){if(t&1){let e=P();R(0),d(1,"div",4)(2,"div",5)(3,"div",6),_(4),p(5,"cxTranslate"),u(),d(6,"div",7)(7,"button",8),y("click",function(){let i=v(e).ngIf,r=l(2);return C(r.rejectAll(i))}),_(8),p(9,"cxTranslate"),u(),d(10,"button",8),y("click",function(){let i=v(e).ngIf,r=l(2);return C(r.allowAll(i))}),_(11),p(12,"cxTranslate"),u()(),f(13,g0,1,2,"cx-my-account-v2-consent-management-form",9),u()(),A()}if(t&2){let e=o.ngIf;s(4),x(" ",m(5,6,"myAccountV2Consent.header")," "),s(3),c("cxFocus",Me(12,m0)),s(),x(" ",m(9,8,"myAccountV2Consent.clearAll")," "),s(2),c("cxFocus",Me(13,h0)),s(),x(" ",m(12,10,"myAccountV2Consent.selectAll")," "),s(2),c("ngForOf",e)}}function v0(t,o){if(t&1&&(f(0,_0,14,14,"ng-container",3),p(1,"async")),t&2){let e=l();c("ngIf",m(1,1,e.templateList$))}}function C0(t,o){t&1&&xe(0)}function y0(t,o){if(t&1&&(R(0),d(1,"a",3),f(2,C0,1,0,"ng-container",4),u(),A()),t&2){let e=l(),n=H(4);s(),c("href",e.url,Bn)("tabindex",e.tabindex),M("target",e.target)("rel",e.rel)("id",e.id)("class",e.class)("style",e.style,xr)("title",e.title)("aria-label",e.ariaLabel?e.ariaLabel:null),s(),c("ngTemplateOutlet",n)}}function x0(t,o){t&1&&xe(0)}function b0(t,o){if(t&1&&(d(0,"a",5),f(1,x0,1,0,"ng-container",4),u()),t&2){let e=l(),n=H(4);c("routerLink",e.routerUrl)("queryParams",e.queryParams)("fragment",e.fragment)("target",e.target||void 0)("tabindex",e.tabindex),M("id",e.id)("class",e.class)("style",e.style,xr)("title",e.title)("aria-label",e.ariaLabel?e.ariaLabel:null),s(),c("ngTemplateOutlet",n)}}function S0(t,o){t&1&>(0)}function w0(t,o){if(t&1){let e=P();d(0,"button",5),p(1,"cxTranslate"),p(2,"cxTranslate"),y("keydown.enter",function(i){v(e);let r=l();return C(r.close(i))})("keydown.space",function(i){v(e);let r=l();return C(r.close(i))})("click",function(i){v(e);let r=l();return C(r.close(i))}),w(3,"cx-icon",6),u()}if(t&2){let e=l();c("title",me(m(1,4,"common.close"))),M("aria-label",m(2,6,"common.close")),s(3),c("type",e.iconTypes.CLOSE)}}function T0(t,o){t&1&&xe(0)}function I0(t,o){if(t&1&&(R(0),f(1,T0,1,0,"ng-container",7),A()),t&2){let e=l();s(),c("ngTemplateOutlet",e.content)}}function E0(t,o){if(t&1&&(d(0,"span"),_(1),u()),t&2){let e=l();s(),B(e.content)}}var D0=t=>[t],M0=()=>({placement:"auto",appendToBody:!0,displayCloseButton:!0});function F0(t,o){if(t&1&&_(0),t&2){let e=l();x(" ",e.content," ")}}function k0(t,o){if(t&1&&(d(0,"button",3),_(1),p(2,"cxTranslate"),u()),t&2){l();let e=H(6);c("cxPopover",e)("cxPopoverOptions",Me(5,M0)),s(),x(" ",m(2,3,"common.more")," ")}}var A0=[[["","label_container_bottom",""]]],R0=["[label_container_bottom]"],P0=(t,o,e,n)=>({content:t,truncateText:o,charactersLimit:e,class:"cx-card-label",text:n}),O0=(t,o,e,n)=>({content:t,truncateText:o,charactersLimit:e,class:"cx-card-paragraph-text",text:n}),L0=()=>({autofocus:!0});function V0(t,o){if(t&1&&(d(0,"div",15),_(1),u()),t&2){let e=l(2);c("id",e.getLabel("content-header")),s(),x(" ",e.content.header," ")}}function B0(t,o){if(t&1&&(d(0,"div",16),_(1),u()),t&2){let e=l(2);s(),x(" ",e.content.deleteMsg," ")}}function N0(t,o){if(t&1&&(d(0,"span",17),_(1),u()),t&2){let e=l(2);c("id",e.getLabel("content-title")),s(),x(" ",e.content.title," ")}}function j0(t,o){if(t&1&&(d(0,"div",18),_(1),u()),t&2){let e=l(2);s(),x(" ",e.content.textBold," ")}}function $0(t,o){t&1&&xe(0)}function H0(t,o){if(t&1&&(d(0,"div"),f(1,$0,1,0,"ng-container",19),u()),t&2){let e=o.$implicit,n=l(2),i=H(2);s(),c("ngTemplateOutlet",i)("ngTemplateOutletContext",jn(2,P0,n.content,n.truncateText,n.charactersLimit,e))}}function U0(t,o){t&1&&xe(0)}function G0(t,o){if(t&1&&(d(0,"div"),f(1,U0,1,0,"ng-container",19),u()),t&2){let e=o.$implicit,n=l(3),i=H(2);s(),c("ngTemplateOutlet",i)("ngTemplateOutletContext",jn(2,O0,n.content,n.truncateParagraphText,n.charactersLimit,e))}}function W0(t,o){if(t&1&&(d(0,"div",20)(1,"div",21),_(2),u(),f(3,G0,2,7,"div",10),u()),t&2){let e=o.$implicit;s(2),B(e.title),s(),c("ngForOf",e.text)}}function z0(t,o){if(t&1&&(d(0,"div",22),p(1,"cxTranslate"),p(2,"cxTranslate"),w(3,"cx-icon",23),u()),t&2){let e=l(2);M("aria-label",m(1,3,e.content.imgLabel??"paymentCard.credit"))("title",m(2,5,e.content.imgLabel??"paymentCard.credit")),s(3),c("type",e.content.img)}}function q0(t,o){if(t&1){let e=P();d(0,"div",24)(1,"div",25)(2,"div",26)(3,"button",27),y("click",function(){v(e);let i=l(2);return C(i.delete())}),_(4),p(5,"cxTranslate"),u()(),d(6,"div",28)(7,"button",29),p(8,"cxTranslate"),y("click",function(){v(e);let i=l(2);return C(i.cancelEdit())}),_(9),p(10,"cxTranslate"),u()()()()}t&2&&(s(2),c("cxFocus",Me(10,L0)),s(2),x(" ",m(5,4,"common.delete")," "),s(3),c("cxAtMessage",m(8,6,"assistiveMessage.actionCancelled")),s(2),x(" ",m(10,8,"common.cancel")," "))}function K0(t,o){if(t&1){let e=P();d(0,"button",37),y("click",function(){v(e);let i=l(5);return C(i.delete())}),_(1),u()}if(t&2){let e=l(2).$implicit;s(),x(" ",e.name," ")}}function Q0(t,o){if(t&1){let e=P();d(0,"button",37),y("click",function(){v(e);let i=l(5);return C(i.setDefault())}),_(1),u()}if(t&2){let e=l(2).$implicit;s(),x(" ",e.name," ")}}function Y0(t,o){if(t&1){let e=P();d(0,"button",37),y("click",function(){v(e);let i=l(5);return C(i.send())}),_(1),u()}if(t&2){let e=l(2).$implicit,n=l(3);M("aria-describedby",n.index>
3=0&&n.content.header&&!n.editMode?"content-header-"+n.index:null),s(),x(" ",e.name," ")}}function X0(t,o){if(t&1){let e=P();d(0,"button",37),y("click",function(){v(e);let i=l(5);return C(i.edit())}),_(1),u()}if(t&2){let e=l(2).$implicit;s(),x(" ",e.name," ")}}function Z0(t,o){if(t&1&&(R(0,35),f(1,K0,2,1,"button",36)(2,Q0,2,1,"button",36)(3,Y0,2,2,"button",36)(4,X0,2,1,"button",36),A()),t&2){let e=l().$implicit;c("ngSwitch",e.event),s(),c("ngSwitchCase","delete"),s(),c("ngSwitchCase","default"),s(),c("ngSwitchCase","send"),s(),c("ngSwitchCase","edit")}}function J0(t,o){if(t&1&&(d(0,"cx-generic-link",38),p(1,"cxTranslate"),_(2),u()),t&2){let e=l().$implicit;c("url",e.link)("ariaLabel",e.ariaLabel?m(1,4,e.ariaLabel):void 0)("target",e.target??null),s(2),B(e.name)}}function ef(t,o){if(t&1&&(d(0,"div",32)(1,"div"),f(2,Z0,5,5,"ng-container",33)(3,J0,3,6,"cx-generic-link",34),u()()),t&2){let e=o.$implicit,n=l(3);s(2),c("ngIf",n.isCardAction(e)),s(),c("ngIf",n.isCardLinkAction(e))}}function tf(t,o){if(t&1&&(d(0,"div",30),f(1,ef,4,2,"div",31),u()),t&2){let e=l(2);s(),c("ngForOf",e.content.actions)}}function nf(t,o){if(t&1&&(d(0,"div",2),f(1,V0,2,2,"div",3),d(2,"div",4),f(3,B0,2,1,"div",5)(4,N0,2,2,"span",6),d(5,"div",7)(6,"div",8),f(7,j0,2,1,"div",9)(8,H0,2,7,"div",10)(9,W0,4,2,"div",11),gt(10),u(),f(11,z0,4,7,"div",12),u(),f(12,q0,11,11,"div",13)(13,tf,2,1,"div",14),u()()),t&2){let e=l();te("cx-card-border",e.border)("cx-card-fit-to-container",e.fitToContainer),c("tabindex",e.border?0:-1),M("role",e.role)("aria-labelledby",e.isHeaderVisible?e.getLabel("content-header"):null)("aria-describedby",e.ariaDescribedBy),s(),c("ngIf",e.isHeaderVisible),s(),te("cx-card-delete",e.editMode),s(),c("ngIf",e.editMode),s(),c("ngIf",e.content.title),s(),c("id",e.getLabel("cx-card-container")),s(2),c("ngIf",e.content.textBold),s(),c("ngForOf",e.content.text),s(),c("ngForOf",e.content.paragraphs)("ngForTrackBy",e.trackByIndex),s(2),c("ngIf",e.content.img),s(),c("ngIf",e.editMode),s(),c("ngIf",e.content.actions&&!e.editMode)}}function of(t,o){if(t&1&&(d(0,"div",41),_(1),u()),t&2){let e=l(),n=e.content,i=e.class,r=e.text;Ue(i),c("ngClass",n.customClass),s(),x(" ",r," ")}}function rf(t,o){if(t&1&&w(0,"cx-truncate-text-popover",42),t&2){let e=l(),n=e.content,i=e.charactersLimit,r=e.class,a=e.text;c("charactersLimit",i)("content",a)("customClass",n.customClass||r)}}function sf(t,o){if(t&1&&f(0,of,2,4,"div",39)(1,rf,1,3,"cx-truncate-text-popover",40),t&2){let e=o.truncateText;c("ngIf",!e),s(),c("ngIf",e)}}function af(t,o){if(t&1&&(d(0,"h2"),_(1),u()),t&2){let e=l(2);s(),B(e.title)}}function cf(t,o){t&1&&xe(0)}function lf(t,o){if(t&1){let e=P();d(0,"div",16),y("keydown",function(i){v(e);let r=l(3);return C(r.onItemKeydown(i))})("focusin",function(i){v(e);let r=l(3);return C(r.onItemFocusIn(i))}),f(1,cf,1,0,"ng-container",17),u()}if(t&2){let e=o.ngIf,n=l().index,i=l(2);s(),c("ngTemplateOutlet",i.template)("ngTemplateOutletContext",st(2,Fd,e,n))}}function df(t,o){if(t&1&&(R(0),f(1,lf,2,5,"div",15),p(2,"async"),A()),t&2){let e=o.$implicit;s(),c("ngIf",m(2,1,e))}}function uf(t,o){if(t&1){let e=P();R(0,5,0),f(2,af,2,1,"h2",6),d(3,"div",7)(4,"button",8),p(5,"async"),p(6,"async"),p(7,"cxTranslate"),p(8,"cxTranslate"),y("click",function(i){v(e);let r=H(1);return i.stopPropagation(),C(r.scrollBackward())}),w(9,"cx-icon",9),u(),d(10,"div",10,1),w(12,"span",11,2),f(14,df,3,3,"ng-container",12),w(15,"span",13,3),u(),d(17,"button",14),p(18,"async"),p(19,"async"),p(20,"cxTranslate"),p(21,"cxTranslate"),y("click",function(i){v(e);let r=H(1);return i.stopPropagation(),C(r.scrollForward())}),w(22,"cx-icon",9),u()(),A()}if(t&2){let e=H(1),n=H(11),i=H(13),r=H(16),a=l();c("scrollingArea",n)("scrollingAreaStart",i)("scrollingAreaEnd",r),s(2),c("ngIf",a.title),s(2),te("scroll-possible",m(5,18,e.isScrollNeeded$)),M("aria-disabled",m(6,20,e.isScrollStart$))("aria-label",m(7,22,"carousel.scrollBackward"))("title",m(8,24,"carousel.scrollBackward")),s(5),c("type",a.previousIcon),s(5),c("ngForOf",a.items)("ngForTrackBy",a.trackByFn),s(3),te("scroll-possible",m(18,26,e.isScrollNeeded$)),M("aria-disabled",m(19,28,e.isScrollEnd$))("aria-label",m(20,30,"carousel.scrollForward"))("title",m(21,32,"carousel.scrollForward")),s(5),c("type",a.nextIcon)}}var pf=(t,o)=>[t,o];function mf(t,o){if(t&1&&(d(0,"p"),_(1),p(2,"cxTranslate"),u()),t&2){let e=o.$implicit,n=l(3);s(),x(" ",de(2,1,st(4,pf,n.prefix+"."+e[0],n.fallbackPrefix+"."+e[0]),n.getTranslationParams(e[1]))," ")}}function hf(t,o){if(t&1&&(R(0),f(1,mf,3,7,"p",1),A()),t&2){let e=l().ngIf;s(),c("ngForOf",e)}}
3function ff(t,o){if(t&1&&(R(0),f(1,hf,2,1,"ng-container",0),A()),t&2){let e=l();s(),c("ngIf",!e.hidden)}}var gf=(t,o,e)=>({label:t,max:o,min:e}),_f=["fileInput"];function vf(t,o){if(t&1){let e=P();d(0,"button",5),p(1,"cxTranslate"),y("click",function(){v(e),l();let i=H(1);return C(i.click())}),gt(2),u()}t&2&&M("aria-label",m(1,1,"common.selectFile"))}function Cf(t,o){t&1&&xe(0)}function yf(t,o){if(t&1){let e=P();d(0,"button",6),y("click",function(){v(e),l();let i=H(1);return C(i.click())}),f(1,Cf,1,0,"ng-container",7),u()}if(t&2){let e=l();s(),c("ngTemplateOutlet",e.customButton)}}function xf(t,o){if(t&1&&(d(0,"p"),_(1),u()),t&2){let e=o.$implicit;s(),x(" ",e==null?null:e.name,` 4`)}}function bf(t,o){if(t&1){let e=P();d(0,"button",1),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l();return C(i.toggle())}),d(3,"span",2),w(4,"cx-icon",3),u()()}if(t&2){let e=l();M("aria-label",m(1,4,e.state.ariaLabel))("title",m(2,6,e.state.ariaLabel))("aria-pressed",e.state.inputType===e.showState.inputType),s(4),c("type",e.state.icon)}}function Sf(t,o){if(t&1){let e=P();d(0,"button",1),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l();return C(i.toggle())}),d(3,"span",2),w(4,"cx-icon",3),u()()}if(t&2){let e=l();M("aria-label",m(1,4,"passwordVisibility.togglePassword"))("title",m(2,6,"passwordVisibility.togglePassword"))("aria-pressed",e.state.inputType===e.showState.inputType),s(4),c("type",e.state.icon)}}var wf=["qty"],Tf=()=>({key:"decrement"}),If=()=>({key:"qty"}),Ef=()=>({key:"increment"}),Df=()=>({key:"sorting",focusTargetSelector:"[role=combobox]",clearOnRestore:!0}),Mf=(t,o)=>({ariaLabel:t,ariaControls:o});function Ff(t,o){if(t&1&&(d(0,"ng-option",3),_(1),u()),t&2){let e=o.$implicit,n=l();c("value",e.code),s(),B(e.name?e.name:n.sortLabels&&e.code?n.sortLabels[e.code]:"")}}var ai=t=>({key:t});function kf(t,o){if(t&1){let e=P();d(0,"a",1),p(1,"async"),p(2,"async"),y("click",function(){let i=v(e).$implicit,r=l();return C(r.pageChange(i))}),_(3),u()}if(t&2){let e=o.$implicit,n=o.index,i=l();Ue(e.type),te("disabled",i.isInactive(e))("current",i.isCurrent(e)),c("routerLink",i.pageRoute)("queryParams",i.getQueryParams(e))("tabindex",i.isInactive(e)?-1:0)("cxFocus",Y(19,ai,i.paginationID+n.toString())),M("aria-current",i.isCurrent(e))("aria-disabled",i.isInactive(e))("aria-label",m(1,15,i.getAriaLabel$(e)))("title",m(2,17,i.getAriaLabel$(e))),s(3),x(" ",e.label,` 5`)}}function Af(t,o){if(t&1&&(R(0),d(1,"div"),_(2),p(3,"cxTranslate"),u(),w(4,"div",1),d(5,"div"),_(6),p(7,"cxTranslate"),u(),A()),t&2){let e=l();s(2),jt("",e.totalResults," ",m(3,6,"common.results")),s(4),Oa(" ",e.fromItem,"-",e.toItem," ",m(7,8,"common.of")," ",e.totalResults," ")}}function Rf(t,o){t&1&&(d(0,"div",3)(1,"div",4),_(2),p(3,"cxTranslate"),u()()),t&2&&(s(2),B(m(3,1,"spinner.loading")))}function Pf(t,o){if(t&1&&(R(0),d(1,"p"),_(2),u(),A()),t&2){let e=l(2);s(2),B(e.promotions[0].description)}}function Of(t,o){if(t&1&&(d(0,"li"),_(1),u()),t&2){let e=o.$implicit;s(),x(" ",e.description," ")}}function Lf(t,o){if(t&1&&(R(0),d(1,"ul"),f(2,Of,2,1,"li",3),u(),A()),t&2){let e=l(2);s(2),c("ngForOf",e.promotions)}}function Vf(t,o){if(t&1&&(d(0,"div",1),f(1,Pf,3,1,"ng-container",2)(2,Lf,3,1,"ng-container",2),u()),t&2){let e=l();s(),c("ngIf",e.promotions.length===1),s(),c("ngIf",e.promotions.length>1)}}function Bf(t,o){if(t&1&&(d(0,"option",7),p(1,"async"),p(2,"async"),_(3),u()),t&2){let e=o.$implicit,n=o.index,i=l(2).ngIf,r=l();c("value",me(e.isocode)),M("aria-label",m(1,5,r.ariaLabel$(e.label,n,i.length)))("selected",m(2,7,r.activeItem$)===e.isocode?"":null),s(3),x(" ",e.label," ")}}function Nf(t,o){if(t&1){let e=P();d(0,"div",3)(1,"select",4),y("change",function(i){v(e);let r=l(2);return C(r.active=i.target.value)}),f(2,Bf,4,9,"option",5),u(),w(3,"cx-icon",6),u()}if(t&2){let e=l().ngIf,n=l();s(2),c("ngForOf",e),s(),c("type",n.iconTypes.CARET_DOWN)}}function jf(t,o){if(t&1&&(d(0,"option",7),p(1,"async"),p(2,"async"),_(3),u()),t&2){let e=o.$implicit,n=o.index,i=l(2).ngIf,r=l();c("value",me(e.isocode)),M("aria-label",m(1,5,r.ariaLabel$(e.label,n,i.length)))("selected",m(2,7,r.activeItem$)===e.isocode?"":null),s(3),x(" ",e.label," ")}}
5function $f(t,o){if(t&1){let e=P();R(0),d(1,"select",4),y("change",function(i){v(e);let r=l(2);return C(r.active=i.target.value)}),f(2,jf,4,9,"option",5),u(),w(3,"cx-icon",6),A()}if(t&2){let e=l().ngIf,n=l();s(2),c("ngForOf",e),s(),c("type",n.iconTypes.CARET_DOWN)}}function Hf(t,o){if(t&1&&(d(0,"label")(1,"span"),_(2),p(3,"async"),p(4,"cxTranslate"),u(),f(5,Nf,4,2,"div",1)(6,$f,4,2,"ng-container",2),u()),t&2){let e=l();s(2),x("",m(4,5,m(3,3,e.label$)),":"),s(3),c("cxFeature","a11ySiteContextCaretClick"),s(),c("cxFeature","!a11ySiteContextCaretClick")}}var ad=t=>({rating:t}),Uf=()=>[1,2,3,4,5],Xo=t=>({count:t});function Gf(t,o){t&1&&xe(0)}function Wf(t,o){if(t&1&&(d(0,"div",2),p(1,"cxTranslate"),p(2,"cxTranslate"),f(3,Gf,1,0,"ng-container",3),u()),t&2){let e=l(),n=H(2);c("title",de(1,3,"productReview.ratedOutOf",Y(9,ad,e.rating.toFixed(1)))),M("aria-label",de(2,6,"productReview.ratedOutOf",Y(11,ad,e.rating.toFixed(1)))),s(3),c("ngTemplateOutlet",n)}}function zf(t,o){if(t&1){let e=P();d(0,"cx-icon",5),p(1,"cxTranslate"),y("mouseover",function(){let i=v(e).$implicit,r=l(2);return C(r.setRate(i))})("click",function(){let i=v(e).$implicit,r=l(2);return C(r.saveRate(i))})("keydown.space",function(){let i=v(e).$implicit,r=l(2);return C(r.saveRate(i))}),u()}if(t&2){let e=o.$implicit,n=l(2);c("type",n.icon),M("aria-current",!n.disabled&&e===n.rating)("tabindex",n.disabled?null:0)("role",n.disabled?null:"button")("aria-label",n.disabled?null:de(1,6,"productReview.addRate",Y(9,Xo,e)))("aria-hidden",n.disabled)}}function qf(t,o){t&1&&f(0,zf,2,11,"cx-icon",4),t&2&&c("ngForOf",Me(1,Uf))}function Kf(t,o){if(t&1&&_(0),t&2){let e=l().$implicit;x(" ",e," ")}}function Qf(t,o){if(t&1&&_(0),t&2){let e=l().$implicit,n=l().$implicit;x(" ",n[e]," ")}}function Yf(t,o){if(t&1&&(d(0,"tr")(1,"th"),f(2,Kf,1,1,"ng-template",4),u(),d(3,"td"),f(4,Qf,1,1,"ng-template",4),u()()),t&2){let e=o.$implicit,n=l().$implicit,i=l(3);Ue(e),s(2),c("cxOutlet",i.getHeaderOutletRef(e))("cxOutletContext",i.getHeaderOutletContext(e)),s(2),c("cxOutlet",i.getDataOutletRef(e))("cxOutletContext",i.getDataOutletContext(e,n))}}function Xf(t,o){if(t&1){let e=P();d(0,"tbody",2),y("click",function(){let i=v(e).$implicit,r=l(3);return C(r.launchItem(i))}),f(1,Yf,5,6,"tr",3),u()}if(t&2){let e=o.$implicit,n=l(3);te("is-current",n.isCurrentItem(e)),s(),c("ngForOf",n.structure.cells)}}function Zf(t,o){if(t&1&&(R(0),f(1,Xf,2,3,"tbody",1),A()),t&2){let e=l(2);s(),c("ngForOf",e.data)("ngForTrackBy",e.trackData)}}function Jf(t,o){if(t&1&&_(0),t&2){let e=l().$implicit;x(" ",e," ")}}function eg(t,o){if(t&1&&(d(0,"th",6),f(1,Jf,1,1,"ng-template",4),u()),t&2){let e=o.$implicit,n=l(3);Ue(e),s(),c("cxOutlet",n.getHeaderOutletRef(e))("cxOutletContext",n.getHeaderOutletContext(e))}}function tg(t,o){if(t&1&&_(0),t&2){let e=l().$implicit,n=l().$implicit;x(" ",n[e]," ")}}function ng(t,o){if(t&1&&(d(0,"td"),f(1,tg,1,1,"ng-template",4),u()),t&2){let e=o.$implicit,n=l().$implicit,i=l(3);Ue(e),s(),c("cxOutlet",i.getDataOutletRef(e))("cxOutletContext",i.getDataOutletContext(e,n))}}function ig(t,o){if(t&1){let e=P();d(0,"tr",2),y("click",function(){let i=v(e).$implicit,r=l(3);return C(r.launchItem(i))}),f(1,ng,2,4,"td",3),u()}if(t&2){let e=o.$implicit,n=l(3);te("is-current",n.isCurrentItem(e)),s(),c("ngForOf",n.structure.cells)}}function og(t,o){if(t&1&&(R(0),d(1,"thead")(2,"tr"),f(3,eg,2,4,"th",5),u()(),f(4,ig,2,3,"tr",1),A()),t&2){let e=l(2);s(3),c("ngForOf",e.structure.cells),s(),c("ngForOf",e.data)("ngForTrackBy",e.trackData)}}function rg(t,o){if(t&1&&_(0),t&2){let e=l().$implicit;x(" ",e," ")}}function sg(t,o){if(t&1&&_(0),t&2){let e=l().$implicit,n=l().$implicit;x(" ",e[n]," ")}}function ag(t,o){if(t&1){let e=P();d(0,"td",2),y("click",function(){let i=v(e).$implicit,r=l(4);return C(r.launchItem(i))}),f(1,sg,1,1,"ng-template",4),u()}if(t&2){let e=o.$implicit,n=l().$implicit,i=l(3);te("is-current",i.isCurrentItem(e)),s(),c("cxOutlet",i.getDataOutletRef(n))("cxOutletContext",i.getDataOutletContext(n,e))}}function cg(t,o){if(t&1&&(d(0,"tr")(1,"th",6),f(2,rg,1,1,"ng-template",4),u(),f(3,ag,2,4,"td",1),u(
5)),t&2){let e=o.$implicit,n=l(3);Ue(e),s(2),c("cxOutlet",n.getHeaderOutletRef(e))("cxOutletContext",n.getHeaderOutletContext(e)),s(),c("ngForOf",n.data)("ngForTrackBy",n.trackData)}}function lg(t,o){if(t&1&&(R(0),f(1,cg,4,6,"tr",3),A()),t&2){let e=l(2);s(),c("ngForOf",e.structure.cells)}}function dg(t,o){if(t&1&&(d(0,"table"),f(1,Zf,2,2,"ng-container",0)(2,og,5,3,"ng-container",0)(3,lg,2,1,"ng-container",0),u()),t&2){let e=l();s(),c("ngIf",e.verticalStackedLayout),s(),c("ngIf",e.verticalLayout),s(),c("ngIf",e.horizontalLayout)}}var ug=["captcha"];function pg(t,o){if(t&1&&(R(0),_(1),A()),t&2){let e=l();s(),x(" ",e.text==null?null:e.text.slice(0,e.maxLength),` 6`)}}function mg(t,o){if(t&1&&(R(0),_(1),A()),t&2){let e=l();s(),x(" ",e.text,` 7`)}}function hg(t,o){if(t&1){let e=P();d(0,"button",2),y("click",function(){v(e);let i=l();return C(i.isCollapsed=!i.isCollapsed)}),_(1),p(2,"cxTranslate"),u()}if(t&2){let e=l();M("aria-expanded",!e.isCollapsed),s(),x(" ",m(2,2,e.isCollapsed?e.readMoreI18nKey:e.readLessI18nKey),` 8`)}}function fg(t,o){if(t&1&&w(0,"p",6),t&2){let e=l(2).ngIf;c("innerHTML",e.headline,We)}}function gg(t,o){if(t&1&&w(0,"p",7),t&2){let e=l(2).ngIf;c("innerHTML",e.content,We)}}function _g(t,o){if(t&1&&(R(0),w(1,"cx-generic-link",2),f(2,fg,1,1,"p",3),w(3,"cx-media",4),p(4,"async"),f(5,gg,1,1,"p",5),A()),t&2){let e=l().ngIf,n=l().$implicit,i=l();s(),c("url",i.routerLink)("target",i.getTarget(e))("ariaLabel",i.getLinkAriaLabel(e)),M("title",e.headline?null:i.getImageAltText(e)),s(),c("ngIf",e.headline),s(),c("container",i.getImage(e))("elementType","picture")("fetchPriority",m(4,9,n.fetchPriority$)),s(2),c("ngIf",e.content)}}function vg(t,o){if(t&1&&w(0,"p",6),t&2){let e=l(2).ngIf;c("innerHTML",e.headline,We)}}function Cg(t,o){if(t&1&&w(0,"p",7),t&2){let e=l(2).ngIf;c("innerHTML",e.content,We)}}function yg(t,o){if(t&1&&(R(0),d(1,"div",8),f(2,vg,1,1,"p",3),w(3,"cx-media",4),p(4,"async"),f(5,Cg,1,1,"p",5),u(),A()),t&2){let e=l().ngIf,n=l().$implicit,i=l();s(2),c("ngIf",e.headline),s(),c("container",i.getImage(e))("elementType","picture")("fetchPriority",m(4,5,n.fetchPriority$)),s(2),c("ngIf",e.content)}}function xg(t,o){if(t&1&&(R(0),f(1,_g,6,11,"ng-container",1)(2,yg,6,7,"ng-container",1),A()),t&2){let e=l(2);s(),c("ngIf",e.routerLink),s(),c("ngIf",!e.routerLink)}}function bg(t,o){if(t&1&&(R(0),f(1,xg,3,2,"ng-container",1),p(2,"async"),A()),t&2){let e=l();s(),c("ngIf",m(2,1,e.data$))}}function Sg(t,o){if(t&1&&(d(0,"cx-generic-link",1),_(1),u()),t&2){let e=o.ngIf,n=l();Dr(e.styleAttributes),c("url",e.url??"")("target",n.getTarget(e)),s(),B(e.linkName)}}function wg(t,o){if(t&1&&(w(0,"div",1),p(1,"cxSupplementHashAnchors")),t&2){let e=o.ngIf,n=l();c("innerHTML",n.bypassSecurityTrustHtml(m(1,1,e.content)),We)}}function Tg(t,o){if(t&1&&(R(0),d(1,"div",1)(2,"a",2)(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"span",3),w(7,"cx-icon",4),u()()(),A()),t&2){let e=o.ngIf,n=l();s(2),c("href",n.url,Bn),s(2),B(n.addPdfExtension((e==null?null:e.title)||(e==null||e.pdfFile==null?null:e.pdfFile.altText)||m(5,3,"pdf.defaultTitle"))),s(3),c("type","PDF_FILE")}}var Ig=t=>({focusOnEscape:t});function Eg(t,o){if(t&1&&xe(0,2),t&2){let e=l();c("ngTemplateOutlet",e.tab.content)}}var Dg=["tabHeader"],Ps=()=>({}),kd=t=>({tabNum:t});function Mg(t,o){if(t&1&&(d(0,"span",7),_(1),u()),t&2){let e=l().index,n=l(2);s(),x(" ",n.isOpen(e)?"\u2013":"+"," ")}}function Fg(t,o){if(t&1&&xe(0,8),t&2){let e=l().index;l();let n=H(6);c("ngTemplateOutlet",n)("ngTemplateOutletContext",Y(2,kd,e))}}function kg(t,o){if(t&1){let e=P();R(0),d(1,"button",4,1),y("click",function(){let i=v(e).index,r=l().ngIf,a=l();return C(a.select(i,r))})("keydown",function(i){let r=v(e).index,a=l().ngIf,h=l();return C(h.handleKeydownEvent(r,h.tabs,a,i))}),_(3),p(4,"cxTranslate"),f(5,Mg,2,1,"span",5),u(),f(6,Fg,1,4,"ng-container",6),A()}if(t&2){let e=o.$implicit,n=o.index,i=l().ngIf,r=l();s(),te("active",r.isOpen(n)),c("disabled",r.disabled),M("role",i===r.TAB_MODE.ACCORDIAN?"button":"tab")("aria-selected",i===r.TAB_MODE.ACCORDIAN?null:r.isOpen(n))("aria-expanded",i===r.TAB_MODE.TAB?null:r.isOpen(n))("aria-controls",r.isOpen(n)?"section-"+n:null)("tabindex",r.getTabIndex(n,i))("id",e.id)("title",r.getTitle(i,n)),s(2),x(" ",e.headerKey?de(4,13,e.headerKey,e.headerParams||Me(16,Ps)):e.header," "),s(2),c("ngIf",i===r.TAB_MODE.ACCORDIAN),s(),c("ngIf",i===r.TAB_MODE.ACCORDIAN)}}function Ag(t,o){if(t&1&&xe(0,8),t&2){let e=o.index;l(2);let n=H(6);c("ngTemplateOutlet",n)("ngTemplateOutletContext",Y(2,kd,e))}}function Rg(t,o){if(t&1&&(R(0),f(1,Ag,1,4,"ng-container",9),A()),t&2){let e=l(2);s(),c("ngForOf",e.tabs)}}
8function Pg(t,o){if(t&1&&w(0,"cx-tab-panel",11),t&2){let e=l().tabNum,n=l().ngIf,i=l();c("tab",i.tabs[e])("mode",n)}}function Og(t,o){if(t&1&&f(0,Pg,1,2,"cx-tab-panel",10),t&2){let e=o.tabNum,n=l(2);c("ngIf",n.isOpen(e))}}function Lg(t,o){if(t&1&&(R(0),d(1,"div"),p(2,"cxTranslate"),f(3,kg,7,17,"ng-container",3),u(),f(4,Rg,2,1,"ng-container",2)(5,Og,1,1,"ng-template",null,0,ie),A()),t&2){let e=o.ngIf,n=l();s(),Ue(e.toLowerCase()),M("role",e===n.TAB_MODE.ACCORDIAN?null:"tablist")("aria-label",m(2,6,n.config.label)),s(2),c("ngForOf",n.tabs),s(),c("ngIf",e===n.TAB_MODE.TAB)}}var Vg=["tabRef"];function Bg(t,o){if(t&1){let e=P();R(0,5),y("cxComponentRef",function(i){v(e);let r=l().$implicit,a=l(2);return C(a.tabCompLoaded(i,r.uid))}),A()}if(t&2){let e=l().$implicit;c("cxComponentWrapper",e)}}function Ng(t,o){if(t&1&&f(0,Bg,1,1,"ng-template",4,0,ie),t&2){let e=o.$implicit;c("cxOutlet",e.flexType)}}function jg(t,o){if(t&1&&(R(0),d(1,"cx-tab",2),p(2,"async"),p(3,"async"),f(4,Ng,2,1,null,3),u(),A()),t&2){let e=o.ngIf,n=l();s(),c("tabs",m(2,3,n.tabs$))("config",m(3,5,n.tabConfig$)),s(3),c("ngForOf",e)}}function $g(t,o){if(t&1&&(d(0,"a",5),_(1),u()),t&2){let e=l().ngIf,n=l();c("routerLink",n.routerLink),s(),B(e.overlayTitle)}}function Hg(t,o){if(t&1&&(w(0,"video",6),p(1,"cxTranslate")),t&2){let e=l().ngIf,n=l();bi("height",e.videoContainerHeight,"px"),c("poster",n.thumbnail==null?null:n.thumbnail.src)("loop",n.loop)("autoplay",n.autoPlay)("muted",n.mute)("src",n.source,Bn),M("aria-label",m(1,8,"player.label"))}}function Ug(t,o){if(t&1&&(d(0,"div",2),f(1,$g,2,2,"a",3)(2,Hg,2,10,"video",4),u()),t&2){let e=o.ngIf,n=l();s(),c("ngIf",e.overlayTitle),s(),c("ngIf",n.source)}}function Gg(t,o){t&1&&(d(0,"div",7),w(1,"cx-spinner"),u())}var Ad=["element"],Wg=()=>["/my-account/notification-preference"];function zg(t,o){if(t&1){let e=P();d(0,"div",20)(1,"cx-coupon-card",21),y("notificationChanged",function(i){v(e);let r=l(4);return C(r.notificationChange(i))}),u()()}if(t&2){let e=o.$implicit,n=l(4);s(),c("coupon",e)("couponSubscriptionLoading$",n.couponSubscriptionLoading$)}}function qg(t,o){t&1&&w(0,"div",22)}function Kg(t,o){if(t&1){let e=P();d(0,"label",22)(1,"span"),_(2),p(3,"cxTranslate"),u(),d(4,"cx-sorting",23),p(5,"cxTranslate"),p(6,"async"),p(7,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(4);return C(r.sortChange(i))}),u()()}if(t&2){let e=l(4);s(2),B(m(3,7,"myCoupons.sortBy")),s(2),c("placeholder",me(m(5,9,"myCoupons.sortBy")))("sortOptions",e.sortOptions)("sortLabels",m(6,11,e.sortLabels))("selectedOption",e.sort)("ariaLabel",m(7,13,"myCoupons.sortCoupons"))}}function Qg(t,o){if(t&1){let e=P();R(0),d(1,"div",6)(2,"label",7)(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"cx-sorting",8),p(7,"async"),p(8,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(3);return C(r.sortChange(i))}),u()(),d(9,"div",9)(10,"cx-pagination",10),y("viewPageEvent",function(i){v(e);let r=l(3);return C(r.pageChange(i))}),u()()(),d(11,"div",11),f(12,zg,2,2,"div",12),u(),d(13,"div",13),f(14,qg,1,0,"div",14)(15,Kg,8,15,"label",14),d(16,"div",15)(17,"cx-pagination",16),y("viewPageEvent",function(i){v(e);let r=l(3);return C(r.pageChange(i))}),u()()(),d(18,"div",17)(19,"span"),w(20,"cx-icon",18),_(21),p(22,"cxTranslate"),d(23,"a",19),_(24),p(25,"cxTranslate"),u(),_(26),p(27,"cxTranslate"),u()(),A()}if(t&2){let e=l().ngIf,n=l(2);s(4),B(m(5,15,"myCoupons.sortBy")),s(2),c("sortOptions",n.sortOptions)("sortLabels",m(7,17,n.sortLabels))("selectedOption",n.sort)("ariaLabel",m(8,19,"myCoupons.sortCoupons")),s(4),c("pagination",n.pagination),s(2),c("ngForOf",e.coupons),s(2),c("cxFeature","showSortFieldsOnlyAtTop"),s(),c("cxFeature","!showSortFieldsOnlyAtTop"),s(2),c("pagination",n.pagination),s(3),c("type",n.iconTypes.INFO),s(),x(" ",m(22,21,"myCoupons.notesPreffix")),s(2),c("routerLink",Me(27,Wg)),s(),B(m(25,23,"myCoupons.notesLink")),s(2),B(m(27,25,"myCoupons.notesSuffix"))}}function Yg(t,o){if(t&1&&(R(0),d(1,"div",5)(2,"h2"),_(3),p(4,"cxTranslate"),u()(),f(5,Qg,28,28,"ng-container",3),A()),t&2){let e=o.ngIf;l();let n=H(4);s(3),x(" ",m(4,3,"myCoupons.myCoupons")," "),s(2),c("ngIf",e.pagination&&e.pagination.totalCount&&e.pagination.totalCount>0)("ngIfElse",n)}}function Xg(t,o){t&1&&(d(0,"section")(1,"p",24),_(2),p(3,"cxTranslate"),u()()),t&2&&(s(2),x(" ",m(3,1,"myCoupons.noCouponsMessage")," "))}function Zg(t,o){if(t&1&&(R(0),f(1,Yg,6,5,"ng-container",4),p(2,"async"),f(3,Xg,4,3,"ng-template",null,1,ie),A()),t&2){let e=l();s(),c("ngIf",m(2,1,e.couponResult$))}}function Jg(t,o){t&1&&(d(0,"div",25),w(1,"cx-spinner"),u())}var Wi=t=>({label:t}),an=t=>({cxRoute:"product",params:t}),e_=t=>({code:t}),t_=t=>({expirationDate:t});function n_(t,o){if(t&1&&(d(0,"div",40)(1,"a",41),p(2,"cxUrl"),_(3),u()()),t&2){let e=l().ngIf;s(),c("routerLink",m(2,2,Y(4,an,e))),s(2),x(" ",e.name," ")}}function i_(t,o){if(t&1&&(d(0,"div",42)(1,"span"),_(2),p(3,"cxTranslate"),u()()),t&2){let e=l().ngIf;s(2),B(de(3,1,"myInterests.productId",Y(4,e_,e.code)))}}
8function o_(t,o){if(t&1&&(d(0,"div",44)(1,"div",45),_(2),u(),d(3,"div",46),_(4),u()()),t&2){let e=o.$implicit;s(2),x(" ",e.name," "),s(2),x(" ",e.value," ")}}function r_(t,o){if(t&1&&(R(0),f(1,o_,5,2,"div",43),A()),t&2){let e=o.$implicit;s(),c("ngForOf",e.selected==null?null:e.selected.variantOptionQualifiers)}}function s_(t,o){t&1&&(d(0,"div",44)(1,"div",47),_(2),p(3,"cxTranslate"),u()()),t&2&&(s(2),x(" ",m(3,1,"myInterests.outOfStock")," "))}function a_(t,o){if(t&1&&(d(0,"div",48)(1,"span",49),_(2),p(3,"cxTranslate"),u(),d(4,"span",50),_(5),p(6,"cxDate"),p(7,"cxTranslate"),u()()),t&2){let e=o.$implicit;s(2),x(" ",m(3,2,"myInterests."+e.interestType)," "),s(3),x(" ",de(7,6,"myInterests.expirationDate",Y(9,t_,m(6,4,e.expirationDate)))," ")}}function c_(t,o){if(t&1){let e=P();R(0),d(1,"td",23)(2,"div",24)(3,"div",25)(4,"a",26),p(5,"cxUrl"),w(6,"cx-media",27),u()(),d(7,"div",28)(8,"div",29)(9,"div"),f(10,n_,4,6,"div",30)(11,i_,4,6,"div",31)(12,r_,2,1,"ng-container",32)(13,s_,4,3,"div",33),u()()()()(),d(14,"td",23)(15,"div",34)(16,"div",35),_(17),p(18,"cxTranslate"),u(),d(19,"span"),_(20),u()()(),d(21,"td",23)(22,"div",36)(23,"div",35),_(24),p(25,"cxTranslate"),u(),f(26,a_,8,11,"div",37),u()(),d(27,"td",23)(28,"div",38)(29,"button",39),p(30,"cxTranslate"),p(31,"async"),y("click",function(){v(e);let i=l().$implicit,r=l(4);return C(r.removeInterest(i))}),_(32),p(33,"cxTranslate"),u()()(),A()}if(t&2){let e=o.ngIf,n=l().$implicit,i=l(4);s(4),c("routerLink",m(5,13,Y(25,an,e))),s(2),c("container",e.images==null?null:e.images.PRIMARY),s(4),c("ngIf",e.name),s(),c("ngIf",e.code),s(),c("ngForOf",e.baseOptions),s(),c("ngIf",(e.stock==null?null:e.stock.stockLevelStatus)==="outOfStock"),s(4),x(" ",m(18,15,"myInterests.price")," "),s(3),B(e.price==null?null:e.price.formattedValue),s(4),x(" ",m(25,17,"myInterests.notifications")," "),s(2),c("ngForOf",n.productInterestEntry),s(3),c("cxAtMessage",m(30,19,"myInterests.itemRemoved"))("disabled",m(31,21,i.isRemoveDisabled$)),s(3),x(" ",m(33,23,"myInterests.remove")," ")}}function l_(t,o){if(t&1&&(d(0,"tr",21),f(1,c_,34,27,"ng-container",22),p(2,"async"),u()),t&2){let e=o.$implicit;s(),c("ngIf",m(2,1,e.product$))}}function d_(t,o){if(t&1){let e=P();R(0),d(1,"div",8)(2,"label",9)(3,"span"),_(4),p(5,"cxTranslate"),u(),d(6,"cx-sorting",10),p(7,"cxTranslate"),p(8,"async"),p(9,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(3);return C(r.sortChange(i))}),u()(),d(10,"div",11)(11,"cx-pagination",12),y("viewPageEvent",function(i){v(e);let r=l(3);return C(r.pageChange(i))}),u()()(),d(12,"table",13)(13,"caption",14),_(14),p(15,"cxTranslate"),u(),d(16,"thead",15)(17,"tr")(18,"th"),_(19),p(20,"cxTranslate"),u(),d(21,"th"),_(22),p(23,"cxTranslate"),u(),d(24,"th"),_(25),p(26,"cxTranslate"),u(),d(27,"th"),_(28),p(29,"cxTranslate"),u()()(),d(30,"tbody"),f(31,l_,3,3,"tr",16),u()(),d(32,"div",17)(33,"label",18)(34,"span"),_(35),p(36,"cxTranslate"),u(),d(37,"cx-sorting",10),p(38,"cxTranslate"),p(39,"async"),p(40,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(3);return C(r.sortChange(i))}),u()(),d(41,"div",19)(42,"cx-pagination",20),y("viewPageEvent",function(i){v(e);let r=l(3);return C(r.pageChange(i))}),u()()(),A()}if(t&2){let e=l(2).ngIf,n=l();s(4),B(m(5,22,"myInterests.sortBy")),s(2),c("placeholder",me(m(7,24,"myInterests.sortBy")))("sortOptions",n.sortOptions)("sortLabels",m(8,26,n.sortLabels))("selectedOption",n.sort)("ariaLabel",m(9,28,"myInterests.sortInterests")),s(5),c("pagination",n.pagination),s(3),x(" ",m(15,30,"myInterests.caption")," "),s(5),x(" ",m(20,32,"myInterests.item")," "),s(3),x(" ",m(23,34,"myInterests.price")," "),s(3),x(" ",m(26,36,"myInterests.notifications")," "),s(3),x(" ",m(29,38,"myInterests.actions")," "),s(3),c("ngForOf",e.results),s(4),B(m(36,40,"myInterests.sortBy")),s(2),c("placeholder",me(m(38,42,"myInterests.sortBy")))("sortOptions",n.sortOptions)("sortLabels",m(39,44,n.sortLabels))("selectedOption",n.sort)("ariaLabel",m(40,46,"myInterests.sortInterests")),s(5),c("pagination",n.pagination)}}function u_(t,o){if(t&1&&(d(0,"div",6),f(1,d_,43,48,"ng-container",7),u()),t&2){let e=l().ngIf;l();let n=H(3);s(),c("ngIf",e.pagination&&e.pagination.totalCount&&e.pagination.totalCount>0)("ngIfElse",n)}}
8function p_(t,o){if(t&1&&(d(0,"div",3)(1,"div",4)(2,"h2"),_(3),p(4,"cxTranslate"),u()(),f(5,u_,2,2,"div",5),p(6,"async"),u()),t&2){let e=l(),n=H(5);s(3),B(m(4,3,"myInterests.header")),s(2),c("ngIf",!m(6,5,e.getInterestsloading$))("ngIfElse",n)}}function m_(t,o){t&1&&(d(0,"div",51),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"myInterests.noInterests")," "))}function h_(t,o){t&1&&(d(0,"div",52),w(1,"cx-spinner"),u())}function f_(t,o){if(t&1){let e=P();d(0,"div",9)(1,"input",10),p(2,"async"),y("change",function(){v(e);let i=l().$implicit,r=l(3);return C(r.updatePreference(i))}),u(),d(3,"label",11),_(4),p(5,"cxTranslate"),u()()}if(t&2){let e=l().$implicit,n=l(3);s(),c("id",me(e.channel))("cxFocus",Y(13,ai,"notification-pref-"+e.channel))("checked",e.enabled)("disabled",m(2,9,n.isLoading$)),s(2),c("for",me(e.channel)),s(),jt(" ",m(5,11,"notificationPreference."+e.channel)," ",e.value," ")}}function g_(t,o){if(t&1&&(R(0),f(1,f_,6,15,"div",8),A()),t&2){let e=o.$implicit;s(),c("ngIf",e.visible)}}function __(t,o){if(t&1&&(d(0,"div")(1,"div",3)(2,"div",4)(3,"fieldset")(4,"legend",5),_(5),p(6,"cxTranslate"),u(),f(7,g_,2,1,"ng-container",6),u(),d(8,"p",7)(9,"strong"),_(10),p(11,"cxTranslate"),u(),_(12),p(13,"cxTranslate"),u()()()()),t&2){let e=l().ngIf;s(5),x(" ",m(6,4,"notificationPreference.message")," "),s(2),c("ngForOf",e),s(3),B(m(11,6,"notificationPreference.note")),s(2),x("",m(13,8,"notificationPreference.noteMessage")," ")}}function v_(t,o){t&1&&(d(0,"div",12),w(1,"cx-spinner"),u())}function C_(t,o){if(t&1&&(R(0),f(1,__,14,10,"div",2)(2,v_,2,0,"ng-template",null,0,ie),A()),t&2){let e=o.ngIf,n=H(3);s(),c("ngIf",e.length>0)("ngIfElse",n)}}function y_(t,o){if(t&1&&(d(0,"li"),w(1,"a",2),p(2,"cxTranslate"),p(3,"cxTranslate"),p(4,"cxTranslate"),u()),t&2){let e=o.$implicit,n=o.ngForOf,i=o.index,r=o.last;s(),c("routerLink",e.link)("innerHTML",e.label,We),M("aria-label",r?m(2,3,"common.breadcrumbsCurrentPage")+" "+e.label+(i+1)+m(3,5,"common.of")+n.length:e.label+(i+1)+m(4,7,"common.of")+n.length)}}var x_=t=>({node:t,depth:0}),b_=(t,o,e)=>({title:t,position:o,listLength:e}),Rd=t=>({title:t}),S_=(t,o,e,n)=>({node:t,depth:o,listLength:e,position:n});function w_(t,o){if(t&1){let e=P();d(0,"li",6)(1,"button",7),y("click",function(){v(e);let i=l();return C(i.back())}),w(2,"cx-icon",8),_(3),p(4,"cxTranslate"),u()()}if(t&2){let e=l();s(2),c("type",e.iconType.CARET_LEFT),s(),x(" ",m(4,2,"common.back")," ")}}function T_(t,o){t&1&&xe(0)}function I_(t,o){if(t&1&&(R(0),f(1,T_,1,0,"ng-container",9),A()),t&2){let e=o.$implicit;l();let n=H(5);s(),c("ngTemplateOutlet",n)("ngTemplateOutletContext",Y(2,x_,e))}}function E_(t,o){if(t&1){let e=P();d(0,"cx-generic-link",12),p(1,"cxTranslate"),y("click",function(){v(e);let i=l().node,r=l();return C(r.closeIfClickedTheSameLink(i))})("focus",function(){v(e);let i=l().depth,r=l();return C(i||r.reinitializeMenu())})("keydown.space",function(i){v(e);let r=l(2);return C(r.toggleOpen(i))})("keydown.esc",function(){v(e);let i=l(2);return C(i.back())}),_(2),u()}if(t&2){let e=l(),n=e.node,i=e.depth,r=e.listLength,a=e.position,h=l();Dr(n.styleAttributes),Ue(n.styleClasses),c("ariaLabel",de(1,9,"navigation.linkItemInList",$t(12,b_,n.title,a,r)))("url",n.url)("target",n.target)("tabindex",h.getTabIndex(n,i)),s(2),x(" ",n.title," ")}}function D_(t,o){if(t&1){let e=P();d(0,"cx-generic-link",16),y("click",function(){v(e);let i=l(3).node,r=l();return C(r.closeIfClickedTheSameLink(i))}),_(1),u()}if(t&2){let e=l(3).node;c("url",e.url)("target",e.target),s(),x(" ",e.title," ")}}function M_(t,o){if(t&1){let e=P();d(0,"h4",17),y("keydown.arrowDown",function(i){v(e);let r=l(4);return C(r.focusOnNode(i))})("keydown.space",function(i){v(e);let r=l(4);return C(r.onSpace(i))}),_(1),u()}if(t&2){let e=l(3).node;s(),x(" ",e.title," ")}}function F_(t,o){if(t&1&&(R(0),_(1),A()),t&2){let e=l(4).node;s(),x(" ",e.title," ")}}function k_(t,o){if(t&1){let e=P();d(0,"button",18),p(1,"cxTranslate"),y("click",function(i){v(e);let r=l(4);return C(r.toggleOpen(i))})("mouseenter",function(i){v(e);let r=l(4);return C(r.onMouseEnter(i))})("keydown.space",function(i){v(e);let r=l(4);return C(r.onSpace(i))})("keydown.enter",function(i){v(e);let r=l(4);return C(r.onSpace(i))})("keydown.esc",function(){v(e);let i=l(4);return C(i.back())})("keydown.arrowDown",function(i){v(e);let r=l(4);return C(r.focusOnNode(i))})("focus",function(){v(e);let i=l(3).depth,r=l();return C(i||r.reinitializeMenu())}),f(2,F_,2,1,"ng-container",19),w(3,"cx-icon",8),u()}if(t&2){let e=l(3).node,n=l();M("aria-haspopup",!0)("aria-expanded",!1)("aria-label",e.url?e.title:null)("aria-controls",n.transformIntoValidID(e.title))("title",de(1,7,"navigation.menuButonTitle",Y(10,Rd,e.title))),s(2),c("ngIf",!e.url),s(),c("type",n.iconType.CARET_DOW
8N)}}function A_(t,o){if(t&1&&(R(0),f(1,D_,2,3,"cx-generic-link",14)(2,M_,2,1,"h4",15),p(3,"async"),f(4,k_,4,12,"ng-template",null,3,ie),A()),t&2){let e=H(5),n=l(2),i=n.node,r=n.depth,a=l();s(),c("ngIf",i.url),s(),c("ngIf",m(3,3,a.isDesktop$)&&r)("ngIfElse",e)}}function R_(t,o){if(t&1&&(d(0,"span",21),_(1),u()),t&2){let e=l(3).node,n=l();M("tabindex",n.focusableNodeTitles?0:-1),s(),x(" ",e.title," ")}}function P_(t,o){if(t&1&&f(0,R_,2,2,"span",20),t&2){let e=l(2).node;c("ngIf",e.title)}}function O_(t,o){if(t&1&&f(0,A_,6,5,"ng-container",13)(1,P_,1,1,"ng-template",null,2,ie),t&2){let e=H(2),n=l().node,i=l();c("ngIf",i.flyout&&(n.children==null?null:n.children.length)>0)("ngIfElse",e)}}function L_(t,o){t&1&&xe(0)}function V_(t,o){if(t&1&&(R(0),f(1,L_,1,0,"ng-container",9),A()),t&2){let e=o.$implicit,n=o.index,i=l(2),r=i.node,a=i.depth;l();let h=H(5);s(),c("ngTemplateOutlet",h)("ngTemplateOutletContext",jn(2,S_,e,a+1,r.children.length,n+1))}}function B_(t,o){if(t&1&&(d(0,"div",22)(1,"ul",23),f(2,V_,2,7,"ng-container",5),u()()),t&2){let e=l().node,n=l();c("id",n.transformIntoValidID(e.title)),s(),M("depth",n.getTotalDepth(e))("wrap-after",e.children.length>n.wrapAfter?n.wrapAfter:null)("columns",n.getColumnCount(e.children.length))("aria-label",e.title),s(),c("ngForOf",e.children)}}function N_(t,o){if(t&1&&(d(0,"li"),f(1,E_,3,16,"cx-generic-link",10)(2,O_,3,2,"ng-template",null,1,ie)(4,B_,3,6,"div",11),u()),t&2){let e=o.node,n=o.depth,i=H(3),r=l();M("role",!r.flyout&&!n?"presentation":"listitem"),s(),c("ngIf",e.url&&(!e.children||(e.children==null?null:e.children.length)===0))("ngIfElse",i),s(3),c("ngIf",e.children&&e.children.length>0)}}function j_(t,o){if(t&1&&(w(0,"cx-navigation-ui",1),p(1,"async"),p(2,"cxTranslate")),t&2){let e=o.ngIf,n=l();c("node",m(1,5,n.node$))("ngClass",e.styleClass??"")("wrapAfter",+(e.wrapAfter??""))("resetMenuOnClose",e.resetMenuOnClose)("navAriaLabel",m(2,7,"navigation.categoryNavLabel"))}}function $_(t,o){if(t&1&&(w(0,"cx-navigation-ui",1),p(1,"async"),p(2,"cxTranslate")),t&2){let e=o.ngIf,n=l();c("node",e)("flyout",!1)("ngClass",m(1,4,n.styleClass$)??"")("navAriaLabel",m(2,6,"navigation.footerNavLabel"))}}var H_=["searchInput"],U_=["searchButton"],G_=t=>({maxTrendingSearches:t}),W_=t=>({query:t}),z_=t=>({cxRoute:"search",params:t}),Pd=(t,o,e)=>({search:t,searchBoxActive:o,maxRecentSearches:e});function q_(t,o){t&1&&(d(0,"span",14),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.initialDescription"),` 9`))}function K_(t,o){if(t&1&&w(0,"h3",27),t&2){let e=l(2).ngIf;c("innerHTML",e.message,We)}}function Q_(t,o){if(t&1){let e=P();d(0,"li",31)(1,"a",32),p(2,"cxHighlight"),p(3,"cxUrl"),y("keydown.arrowup",function(i){v(e);let r=l(4);return C(r.focusPreviousChild(i))})("keydown.arrowdown",function(i){v(e);let r=l(4);return C(r.focusNextChild(i))})("keydown.arrowleft",function(i){v(e);let r=l(4);return C(r.focusPreviousGroup(i))})("keydown.arrowright",function(i){v(e);let r=l(4);return C(r.focusNextGroup(i))})("keydown.enter",function(){v(e);let i=l(4);return C(i.close(!0))})("keydown.escape",function(){v(e);let i=l(4);return C(i.close(!0))})("blur",function(i){v(e);let r=l(4);return C(r.onSearchBlur(i))})("mousedown",function(i){v(e);let r=l(4);return C(r.preventDefault(i))})("click",function(){let i=v(e).$implicit,r=l(3).ngIf,a=l();return a.dispatchSuggestionEvent({freeText:a.searchInputEl==null||a.searchInputEl.nativeElement==null?null:a.searchInputEl.nativeElement.value,selectedSuggestion:i,searchSuggestions:r.suggestions??[]}),C(a.updateChosenWord(i))}),u()()}if(t&2){let e=o.$implicit,n=l(4);s(),c("innerHTML",de(2,2,e,n.searchInputEl==null||n.searchInputEl.nativeElement==null?null:n.searchInputEl.nativeElement.value),We)("routerLink",m(3,5,Y(9,z_,Y(7,W_,e))))}}function Y_(t,o){if(t&1&&(d(0,"div",28)(1,"h3"),_(2),p(3,"cxTranslate"),u(),d(4,"ul",29),p(5,"cxTranslate"),f(6,Q_,4,11,"li",30),u()()),t&2){let e=l(2).ngIf;s(2),x(" ",m(3,3,"searchBox.suggestions")," "),s(2),M("aria-label",m(5,5,"searchBox.ariaLabelSuggestions")),s(2),c("ngForOf",e.suggestions)}}function X_(t,o){}function Z_(t,o){}function J_(t,o){if(t&1&&f(0,Z_,0,0,"ng-template",21),t&2){let e=l(4);c("cxOutlet",e.searchBoxOutlets.RECENT_SEARCHES)("cxOutletContext",$t(2,Pd,(e.searchInputEl==null||e.searchInputEl.nativeElement==null?null:e.searchInputEl.nativeElement.value)??"",e.searchBoxActive,e.config.maxRecentSearches))}}function ev(t,o){if(t&1&&(R(0),f(1,J_,1,6,null,13),A()),t&2){let e=l(2).ngIf,n=l();s(),c("ngIf",n.config.recentSearches&&!n.isNoResults(e))}}function tv(t,o){}function nv(t,o){if(t&1&&f(0,tv,0,0,"ng-template",21),t&2){let e=l(4);c("cxOutlet",e.searchBoxOutlets.RECENT_SEARCHES)("cxOutletContext",$t(2,Pd,(e.searchInputEl==null||e.searchInputEl.nativeElement==null?null:e.searchInputEl.nativeElement.value)??"",e.searchBoxActive,e.config.maxRecentSearches))}}function iv(t,o){if(t&1&&(R(0),f(1,nv,1,6,null,13),A()),t&2){let e=l(3);s(),c("ngIf",e.config.recentSearches)}}function ov(t,o){t&1&&(d(0,"h3"),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.products")," "))}function rv(t,o){if(t&1){let e=P();d(0,"a",34),p(1,"cxUrl"),y("keydown.enter",function(){v(e);let i=l(4);return C(i.close(!0))})("keydown.escape",function(){v(e);let i=l(4);return C(i.close(!0))})("keydown.arrowleft",function(i){v(e);let r=l(4);return C(r.carouselEventPropagator(i))})("keydown.arrowright",function(i){v(e);let r=l(4);return C(r.carouselEventPropagator(i))})("keydown.arrowup",function(i){v(e);let r=l(4);return C(r.carouselEventPropagator(i))})("mousedown",function(i){v(e);let r=l(4);return C(r.preventDefault(i))})("click",function(){let i=v(e).item,r=l(4);return C(r.dispatchProductEvent({freeText:r.searchInputEl==null||r.searchInputEl.nativeElement==null?null:r.searchInputEl.nativeElement.value,productC
9ode:i.code}))}),w(2,"cx-media",35)(3,"h3",36),d(4,"div",37),_(5),u()(),d(6,"div",38),xe(7,39),u()}if(t&2){let e=o.item,n=l(4);te("has-media",n.config.displayProductImages),c("routerLink",m(1,7,Y(9,an,e))),s(2),c("container",e.images==null?null:e.images.PRIMARY)("alt",e.name??""),s(),c("innerHtml",e.nameHtml,We),s(2),x(" ",e.price==null?null:e.price.formattedValue," ")}}function sv(t,o){if(t&1){let e=P();R(0),d(1,"cx-carousel",33),p(2,"cxTranslate"),y("keybordEvent",function(i){v(e);let r=l(3);return C(r.carouselEventPropagator(i))}),u(),f(3,rv,8,11,"ng-template",null,2,ie),A()}if(t&2){let e=o.ngIf,n=H(4);s(),c("items",e)("template",n),M("aria-label",m(2,3,"searchBox.ariaLabelProducts"))}}function av(t,o){if(t&1&&w(0,"h3",40),t&2){let e=l(2).ngIf;c("innerHTML",e.message,We)}}function cv(t,o){t&1&&(d(0,"h3",45),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.trendingSearches")," "))}function lv(t,o){}function dv(t,o){if(t&1&&(R(0),f(1,lv,0,0,"ng-template",46),A()),t&2){let e=l(4);s(),c("cxOutlet",e.searchBoxOutlets.RECENT_SEARCHES_HEADER)}}function uv(t,o){t&1&&(d(0,"h3",47),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.recentSearches")," "))}function pv(t,o){t&1&&(d(0,"h3",48),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.products")," "))}function mv(t,o){if(t&1&&(R(0),d(1,"h3",41),_(2),p(3,"cxTranslate"),u(),f(4,cv,3,3,"h3",42)(5,dv,2,1,"ng-container",22)(6,uv,3,3,"h3",43)(7,pv,3,3,"h3",44),A()),t&2){let e=l(2).ngIf,n=l();s(2),x(" ",m(3,5,"searchBox.suggestions")," "),s(2),c("ngIf",(n.searchInputEl==null||n.searchInputEl.nativeElement==null||n.searchInputEl.nativeElement.value==null?null:n.searchInputEl.nativeElement.value.length)===0),s(),c("cxFeature","searchBoxRecentSearchesRemoval"),s(),c("cxFeature","!searchBoxRecentSearchesRemoval"),s(),c("ngIf",e.products==null?null:e.products.length)}}function hv(t,o){t&1&&(d(0,"span",14),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"searchBox.initialDescription")," "))}function fv(t,o){if(t&1&&(d(0,"div",49),_(1),p(2,"cxTranslate"),p(3,"cxTranslate"),u()),t&2){let e=l(2).ngIf;s(),jt(" ",de(2,2,"searchBox.suggestionsResult",Y(8,Xo,e.suggestions==null?null:e.suggestions.length))," ",de(3,5,"searchBox.productsResult",Y(10,Xo,e.products==null?null:e.products.length))," ")}}function gv(t,o){if(t&1){let e=P();d(0,"div",16),y("click",function(){v(e);let i=l(2);return C(i.close(!0))}),d(1,"button",17),y("keydown.arrowdown",function(i){v(e);let r=l(2);return C(r.focusPreviousGroup(i))})("click",function(){v(e);let i=l(2);return C(i.close())}),_(2),p(3,"cxTranslate"),u(),f(4,K_,1,1,"h3",18)(5,Y_,7,7,"div",19),d(6,"div",20),f(7,X_,0,0,"ng-template",21),u(),f(8,ev,2,1,"ng-container",22)(9,iv,2,1,"ng-container",22),d(10,"div",23),f(11,ov,3,3,"h3",13)(12,sv,5,5,"ng-container",13),p(13,"async"),u(),d(14,"div",24),f(15,av,1,1,"h3",25)(16,mv,8,7,"ng-container",13),d(17,"button",17),y("keydown.arrowdown",function(i){v(e);let r=l(2);return C(r.focusPreviousGroup(i))})("click",function(){v(e);let i=l(2);return C(i.close())}),_(18),p(19,"cxTranslate"),u()(),f(20,hv,3,3,"span",12)(21,fv,4,12,"div",26),u()}if(t&2){let e=l().ngIf,n=l();s(2),x(" ",m(3,18,"searchBox.closeSearchPanel")," "),s(2),c("ngIf",e.message),s(),c("ngIf",((n.searchInputEl==null||n.searchInputEl.nativeElement==null?null:n.searchInputEl.nativeElement.value)??"").length>0),s(),te("d-block",(n.searchInputEl==null||n.searchInputEl.nativeElement==null||n.searchInputEl.nativeElement.value==null?null:n.searchInputEl.nativeElement.value.length)===0),s(),c("cxOutlet",n.searchBoxOutlets.TRENDING_SEARCHES)("cxOutletContext",Y(24,G_,n.config.maxTrendingSearches)),s(),c("cxFeature","searchBoxRecentSearchesRemoval"),s(),c("cxFeature","!searchBoxRecentSearchesRemoval"),s(2),c("ngIf",e.products==null?null:e.products.length),s(),c("ngIf",m(13,20,n.items$)),s(2),te("header-panel-divider",!e.message),s(),c("ngIf",e.message),s(),c("ngIf",!e.message),s(2),x(" ",m(19,22,"searchBox.closeSearchPanel")," "),s(2),c("cxFeature","!searchBoxRecentSearchesRemoval"),s(),c("ngIf",(e.suggestions==null?null:e.suggestions.length)||(e.products==null?null:e.products.length))}}function _v(t,o){if(t&1&&(R(0),f(1,gv,22,26,"div",15),A()),t&2){let e=l();s(),c("ngIf",e.isResultsPanelVisible())}}var vv=["button"];function Cv(t,o){if(t&1){let e=P();d(0,"label",10)(1,"input",11),p(2,"async"),y("change",function(){v(e);let i=l().$implicit,r=l(3);return C(r.updatePreference(i))}
9),u(),d(3,"span",12),_(4),p(5,"cxTranslate"),u()()}if(t&2){let e=l().$implicit,n=l(3);s(),c("checked",e.enabled)("disabled",m(2,4,n.isLoading$)),s(3),jt(" ",m(5,6,"myAccountV2NotificationPreference."+e.channel)," ",e.value," ")}}function yv(t,o){if(t&1&&(R(0),f(1,Cv,6,8,"label",9),A()),t&2){let e=o.$implicit;s(),c("ngIf",e.visible)}}function xv(t,o){if(t&1&&(d(0,"div")(1,"div",3)(2,"div",4)(3,"div",5),_(4),p(5,"cxTranslate"),u(),d(6,"div",6),_(7),p(8,"cxTranslate"),u(),d(9,"div",7),f(10,yv,2,1,"ng-container",8),u(),d(11,"label")(12,"strong"),_(13),p(14,"cxTranslate"),u(),_(15),p(16,"cxTranslate"),u()()()()),t&2){let e=l().ngIf;s(4),x(" ",m(5,5,"myAccountV2NotificationPreference.header")," "),s(3),x(" ",m(8,7,"myAccountV2NotificationPreference.message")," "),s(3),c("ngForOf",e),s(3),B(m(14,9,"myAccountV2NotificationPreference.note")),s(2),x("",m(16,11,"myAccountV2NotificationPreference.noteMessage")," ")}}function bv(t,o){t&1&&(d(0,"div",13),w(1,"cx-spinner"),u())}function Sv(t,o){if(t&1&&(R(0),f(1,xv,17,13,"div",2)(2,bv,2,0,"ng-template",null,0,ie),A()),t&2){let e=o.ngIf,n=H(3);s(),c("ngIf",e.length>0)("ngIfElse",n)}}function wv(t,o){t&1&&(d(0,"div"),w(1,"cx-spinner"),u())}function Tv(t,o){if(t&1){let e=P();d(0,"div",9)(1,"div",10)(2,"cx-card",11),p(3,"async"),y("deleteCard",function(){let i=v(e).$implicit,r=l(3);return C(r.deletePaymentMethod(i))})("setDefaultCard",function(){let i=v(e).$implicit,r=l(3);return C(r.setDefaultPaymentMethod(i))})("editCard",function(){let i=v(e).$implicit,r=l(3);return C(r.setEdit(i))})("cancelCard",function(){v(e);let i=l(3);return C(i.cancelCard())}),u()()()}if(t&2){let e=o.$implicit,n=o.index,i=l(3);s(2),c("index",n)("border",!0)("fitToContainer",!0)("content",m(3,5,i.getCardContent(e)))("editMode",i.edit
9Card===e.id)}}function Iv(t,o){if(t&1&&(d(0,"div",7),f(1,Tv,4,7,"div",8),u()),t&2){let e=l().ngIf;s(),c("ngForOf",e)}}function Ev(t,o){if(t&1&&(R(0),w(1,"cx-form-required-legend"),d(2,"div",2)(3,"div",3)(4,"h2"),_(5),p(6,"cxTranslate"),u()(),d(7,"div",4)(8,"div",5),_(9),p(10,"cxTranslate"),u(),f(11,wv,2,0,"div",6),p(12,"async"),f(13,Iv,2,1,"ng-template",null,0,ie),u()(),A()),t&2){let e=H(14),n=l();s(5),x(" ",m(6,4,"paymentMethods.paymentMethods")," "),s(4),x(" ",m(10,6,"paymentMethods.newPaymentMethodsAreAddedDuringCheckout")," "),s(2),c("ngIf",m(12,8,n.loading$))("ngIfElse",e)}}function Dv(t,o){if(t&1&&(w(0,"cx-media",4),p(1,"async")),t&2){let e=o.$implicit,n=l();c("container",n.product.images==null?null:n.product.images.PRIMARY)("alt",n.product.name||n.product.summary)("fetchPriority",n.itemIndex===0?m(1,3,e.fetchPriority$):void 0)}}function Mv(t,o){if(t&1&&w(0,"cx-star-rating",10),t&2){let e=l(2);c("rating",e.product==null?null:e.product.averageRating)}}function Fv(t,o){t&1&&(d(0,"div"),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"productDetails.noReviews")," "))}function kv(t,o){if(t&1&&(d(0,"div",5),f(1,Mv,1,1,"cx-star-rating",6)(2,Fv,3,3,"div",7),u(),d(3,"div",8)(4,"div",9),p(5,"cxTranslate"),_(6),u()()),t&2){let e=l();s(),c("ngIf",e.product.averageRating),s(),c("ngIf",!e.product.averageRating),s(2),M("aria-label",m(5,4,"productDetails.productPrice")),s(2),x(" ",e.product.price==null?null:e.product.price.formattedValue," ")}}function Av(t,o){t&1&&(R(0),xe(1,11),A())}function Rv(t,o){if(t&1&&f(0,Av,2,0,"ng-container",7),t&2){let e=l();c("ngIf",!e.hideAddToCartButton)}}var Is=t=>({product:t});function Pv(t,o){if(t&1&&(w(0,"cx-media",12),p(1,"async")),t&2){let e=o.$implicit,n=l();c("container",n.product.images==null?null:n.product.images.PRIMARY)("alt",n.product.name||n.product.summary)("fetchPriority",n.itemIndex===0?m(1,3,e.fetchPriority$):void 0)}}function Ov(t,o){if(t&1&&w(0,"cx-star-rating",16),t&2){let e=l(2);c("rating",e.product==null?null:e.product.averageRating)}}function Lv(t,o){t&1&&(d(0,"div",17),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"productDetails.noReviews")," "))}function Vv(t,o){if(t&1&&(f(0,Ov,1,1,"cx-star-rating",13)(1,Lv,3,3,"div",14),d(2,"div",15),p(3,"cxTranslate"),_(4),u()),t&2){let e=l();c("ngIf",e.product.averageRating),s(),c("ngIf",!e.product.averageRating),s(),M("aria-label",m(3,4,"productDetails.productPrice")),s(2),x(" ",e.product.price==null?null:e.product.price.formattedValue," ")}}function Bv(t,o){if(t&1&&w(0,"p",18),t&2){let e=l();c("innerHTML",e.product.summary,We)}}function Nv(t,o){if(t&1&&w(0,"cx-read-more",20),t&2){let e=l(2);c("text",e.product.summary)("maxLength",e.summaryMaxLength)}}function jv(t,o){t&1&&(R(0),f(1,Nv,1,2,"cx-read-more",19),A()),t&2&&(s(),c("cxFeature","productListItemSummaryReadMore"))}function $v(t,o){t&1&&(R(0),xe(1,21),A())}function Hv(t,o){if(t&1&&f(0,$v,2,0,"ng-container",10),t&2){let e=l();c("ngIf",!e.hideAddToCartButton)}}function Uv(t,o){if(t&1&&w(0,"cx-icon",2),t&2){let e=l();c("type",e.iconTypes.GRID)}}function Gv(t,o){if(t&1&&w(0,"cx-icon",2),t&2){let e=l();c("type",e.iconTypes.LIST)}}function Wv(t,o){if(t&1&&w(0,"cx-product-grid-item",8),t&2){let e=o.$implicit,n=o.index;c("product",e)("itemIndex",n)}}function zv(t,o){if(t&1){let e=P();d(0,"div",9),y("click",function(){v(e);let i=l(2);return C(i.scrollToTop())}),_(1),p(2,"cxTranslate"),u()}t&2&&(s(),x(" ",m(2,1,"productList.backToTopBtn")," "))}function qv(t,o){if(t&1){let e=P();d(0,"div",10),y("click",function(){v(e);let i=l(2);return C(i.loadNextPage(((i.model==null||i.model.pagination==null?null:i.model.pagination.currentPage)??0)+1))}),_(1),p(2,"cxTranslate"),u()}t&2&&(s(),x(" ",m(2,1,"productList.showMoreBtn")," "))}function Kv(t,o){t&1&&(d(0,"div",11),w(1,"cx-spinner"),u())}function Qv(t,o){if(t&1){let e=P();R(0),d(1,"div",1),y("scrolled",function(){v(e);let i=l();return C(i.scrollPage(((i.model==null||i.model.pagination==null?null:i.model.pagination.currentPage)??0)+1))}),d(2,"div",2),f(3,Wv,1,2,"cx-product-grid-item",3),u(),d(4,"div",4),f(5,zv,3,3,"div",5)(6,qv,3,3,"div",6),u(),f(7,Kv,2,0,"div",7),u(),A()}if(t&2){let e=l();s(),c("infiniteScrollDistance",5)("infiniteScrollThrottle",50)("infiniteScrollDisabled",e.isMaxProducts||e.isLastPage||e.isEmpty),s(2),c("ngForOf",e.model==null?null:e.model.products),s(),c("className",!e.isLastPage&&((e.model==null||e.model.pagination==null?null:e.model.pagination.currentPage)??0)>0?"cx-double-btn-container grid-btn-padding":"cx-single-btn-container grid-btn-padding"),s(),c("ngIf",(e.isMaxProducts||e.isLastPage)&&((e.model==null||e.model.pagination==null?null:e.model.pagination.currentPage)??0)>0),s(),c("ngIf",e.isMaxProducts&&!e.isLastPage),s(),c("ngIf",e.appendProducts)}}function Yv(t,o){if(t&1&&w(0,"cx-product-list-item",13),t&2){let e=o.$implicit,n=o.index;c("product",e)("itemIndex",n)}}function Xv(t,o){if(t&1){let e=P();d(0,"div",9),y("click",function(){v(e);let i=l(2);return C(i.scrollToTop())}),_(1),p(2,"cxTranslate"),u()}t&2&&(s(),x(" ",m(2,1,"productList.backToTopBtn")," "))}
9function Zv(t,o){if(t&1){let e=P();d(0,"div",10),y("click",function(){v(e);let i=l(2);return C(i.loadNextPage(((i.model==null||i.model.pagination==null?null:i.model.pagination.currentPage)??0)+1))}),_(1),p(2,"cxTranslate"),u()}t&2&&(s(),x(" ",m(2,1,"productList.showMoreBtn")," "))}function Jv(t,o){t&1&&(d(0,"div",11),w(1,"cx-spinner"),u())}function e1(t,o){if(t&1){let e=P();R(0),d(1,"div",1),y("scrolled",function(){v(e);let i=l();return C(i.scrollPage(((i.model==null||i.model.pagination==null?null:i.model.pagination.currentPage)??0)+1))}),f(2,Yv,1,2,"cx-product-list-item",12),d(3,"div",4),f(4,Xv,3,3,"div",5)(5,Zv,3,3,"div",6),u(),f(6,Jv,2,0,"div",7),u(),A()}if(t&2){let e=l();s(),c("infiniteScrollDistance",3)("infiniteScrollThrottle",50)("infiniteScrollDisabled",e.isMaxProducts||e.isLastPage||e.isEmpty),s(),c("ngForOf",e.model==null?null:e.model.products),s(),c("className",!e.isLastPage&&((e.model==null||e.model.pagination==null?null:e.model.pagination.currentPage)??0)>0?"cx-double-btn-container":"cx-single-btn-container"),s(),c("ngIf",(e.isMaxProducts||e.isLastPage)&&((e.model==null||e.model.pagination==null?null:e.model.pagination.currentPage)??0)>0),s(),c("ngIf",e.isMaxProducts&&!e.isLastPage),s(),c("ngIf",e.appendProducts)}}function t1(t,o){if(t&1&&(d(0,"div",17)(1,"div",18),p(2,"cxTranslate"),w(3,"cx-pagination",19),u()()),t&2){let e=l(2).ngIf;s(),M("aria-label",m(2,3,"productList.productSearchPagination")),s(2),c("pagination",e.pagination)("defaultPage",0)}}function n1(t,o){if(t&1&&w(0,"cx-product-grid-item",22),t&2){let e=o.$implicit,n=o.index;c("product",e)("itemIndex",n)}}function i1(t,o){if(t&1&&(R(0),d(1,"div",5),f(2,n1,1,2,"cx-product-grid-item",21),u(),A()),t&2){let e=l(3).ngIf;s(2),c("ngForOf",e==null?null:e.products)}}function o1(t,o){if(t&1&&w(0,"cx-product-list-item",24),t&2){let e=o.$implicit,n=o.index;c("product",e)("itemIndex",n)}}function r1(t,o){if(t&1&&(R(0),f(1,o1,1,2,"cx-product-list-item",23),A()),t&2){let e=l(3).ngIf;s(),c("ngForOf",e==null?null:e.products)}}function s1(t,o){if(t&1&&(R(0),f(1,i1,3,1,"ng-container",20)(2,r1,2,1,"ng-container",20),A()),t&2){let e=l().ngIf,n=l(2);s(),c("ngIf",e===n.ViewModes.Grid),s(),c("ngIf",e===n.ViewModes.List)}}function a1(t,o){if(t&1&&w(0,"cx-product-scroll",25),t&2){let e=l().ngIf,n=l().ngIf,i=l();c("scrollConfig",i.scrollConfig)("model",n)("inputViewMode",e)}}function c1(t,o){if(t&1&&(d(0,"div",17),p(1,"cxTranslate"),d(2,"div",18),w(3,"cx-pagination",26),u()()),t&2){let e=l(2).ngIf;M("aria-label",m(1,3,"productList.productSearchPagination")),s(3),c("pagination",e.pagination)("defaultPage",0)}}function l1(t,o){if(t&1){let e=P();d(0,"div",7)(1,"div",8)(2,"div",5)(3,"label",9)(4,"span"),_(5),p(6,"cxTranslate"),u(),d(7,"cx-sorting",10),p(8,"cxTranslate"),p(9,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(2);return C(r.sortList(i))}),u()(),f(10,t1,4,5,"div",11),d(11,"div",12)(12,"cx-product-view",13),y("modeChange",function(i){v(e);let r=l(2);return C(r.setViewMode(i))}),u()()()(),d(13,"div",14),f(14,s1,3,2,"ng-container",15)(15,a1,1,3,"ng-template",null,0,ie),u(),d(17,"div",16)(18,"div",5)(19,"label",9)(20,"span"),_(21),p(22,"cxTranslate"),u(),d(23,"cx-sorting",10),p(24,"cxTranslate"),p(25,"cxTranslate"),y("sortListEvent",function(i){v(e);let r=l(2);return C(r.sortList(i))}),u()(),f(26,c1,4,5,"div",11),d(27,"div",12)(28,"cx-product-view",13),y("modeChange",function(i){v(e);let r=l(2);return C(r.setViewMode(i))}),u()()()()()}if(t&2){let e=o.ngIf,n=H(16),i=l().ngIf,r=l();s(5),B(m(6,18,"productList.sortBy")),s(2),c("placeholder",me(m(8,20,"productList.sortBy")))("sortOptions",i.sorts)("selectedOption",i.pagination==null?null:i.pagination.sort)("ariaLabel",m(9,22,"productList.sortResults")),s(3),c("ngIf",!r.isInfiniteScroll),s(2),c("mode",e),s(2),c("ngIf",!r.isInfiniteScroll)("ngIfElse",n),s(7),B(m(22,24,"productList.sortBy")),s(2),c("placeholder",me(m(24,26,"productList.sortBy")))("sortOptions",i.sorts)("selectedOption",i.pagination==null?null:i.pagination.sort)("ariaLabel",m(25,28,"productList.sortResults")),s(3),c("ngIf",!r.isInfiniteScroll),s(2),c("mode",e)}}function d1(t,o){if(t&1&&(d(0,"div",2)(1,"section",3),p(2,"cxTranslate"),d(3,"div",4)(4,"div",5),f(5,l1,29,30,"div",6),p(6,"async"),u()()()()),t&2){let e=l();s(),M("aria-label",m(2,2,"productList.productListResults")),s(4),c("ngIf",m(6,4,e.viewMode$))}}var cd=t=>({filter:t});function u1(t,o){t&1&&(d(0,"div",3),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"productList.a
9ppliedFilter")," "))}function p1(t,o){if(t&1){let e=P();d(0,"a",4),p(1,"cxTranslate"),p(2,"cxTranslate"),y("keydown.space",function(i){v(e);let r=l(2);return C(r.removeFilterWithSpacebar(i))}),d(3,"span"),_(4),u(),w(5,"cx-icon",5),u()}if(t&2){let e=o.$implicit,n=l().ngIf,i=l();c("queryParams",i.getLinkParams(e))("cxFocus",Y(12,ai,i.getFocusKey(n,e))),M("aria-label",de(1,6,"productList.activeFilter",Y(14,cd,e.facetValueName)))("title",de(2,9,"productList.activeFilter",Y(16,cd,e.facetValueName))),s(4),B(e.facetValueName),s(),c("type",i.closeIcon)}}function m1(t,o){if(t&1&&(R(0),f(1,u1,3,3,"div",1)(2,p1,6,18,"a",2),A()),t&2){let e=o.ngIf;s(),c("ngIf",e.activeFacets&&e.activeFacets.length>0),s(),c("ngForOf",e==null?null:e.activeFacets)}}var h1=["facetHeader"],f1=["facetValue"],Os=(t,o)=>({name:t,count:o}),tr=()=>({key:"moreorless"});function g1(t,o){if(t&1){let e=P();d(0,"a",6,0),p(2,"cxTranslate"),y("keydown",function(i){v(e);let r=l(2);return C(r.onKeydown(i))})("keydown.space",function(i){v(e);let r=l(2);return C(r.openLink(i))}),d(3,"span",7),_(4),d(5,"span",8),_(6),u()()()}if(t&2){let e=o.$implicit,n=l(2);te("selected",e.selected),c("queryParams",n.getLinkParams(e))("cxFocus",Y(11,ai,e.name)),M("aria-selected",e.selected)("aria-label",de(2,8,"productFacetNavigation.ariaLabelItemsAvailable",st(13,Os,e.name,e.count))),s(4),B(e.name),s(2),B(e.count)}}function _1(t,o){if(t&1){let e=P();d(0,"a",6,0),p(2,"cxTranslate"),y("keydown",function(i){v(e);let r=l(2);return C(r.onKeydown(i))})("keydown.space",function(i){v(e);let r=l(2);return C(r.openLink(i))}),d(3,"span"),_(4),d(5,"span",9),_(6),u()()()}if(t&2){let e=o.$implicit,n=l(2);te("selected",e.selected),c("queryParams",n.getLinkParams(e))("cxFocus",Y(11,ai,e.name)),M("aria-selected",e.selected)("aria-label",de(2,8,"productFacetNavigation.ariaLabelItemsAvailable",st(13,Os,e.name,e.count))),s(4),B(e.name),s(2),B(e.count)}}function v1(t,o){if(t&1){let e=P();d(0,"button",12),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(3);return C(i.decreaseVisibleValues())}),_(3),p(4,"cxTranslate"),u()}t&2&&(c("cxAtMessage",m(1,4,"productFacetNavigation.decreaseOptionsVisibility"))("cxFocus",Me(10,tr)),M("aria-label",m(2,6,"productFacetNavigation.ariaLabelShowLess")),s(3),x(" ",m(4,8,"productList.showLess")," "))}function C1(t,o){if(t&1){let e=P();d(0,"button",13),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(3);return C(i.increaseVisibleValues())}),_(3),p(4,"cxTranslate"),u()}t&2&&(c("cxAtMessage",m(1,4,"productFacetNavigation.increaseOptionsVisibility"))("cxFocus",Me(10,tr)),M("aria-label",m(2,6,"productFacetNavigation.ariaLabelShowMore")),s(3),x(" ",m(4,8,"productList.showMore")," "))}function y1(t,o){if(t&1&&(R(0),f(1,v1,5,11,"button",10)(2,C1,5,11,"button",11),A()),t&2){let e=l().ngIf,n=l();s(),c("ngIf",e.maxVisible&&e.topVisible&&e.maxVisible>e.topVisible),s(),c("ngIf",e.maxVisible&&n.facet.values&&e.maxVisible>0&&e.maxVisible<n.facet.values.length)}}function x1(t,o){if(t&1){let e=P();d(0,"button",12),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(3);return C(i.decreaseVisibleValues())}),_(3),p(4,"cxTranslate"),u()}if(t&2){let e=l(3);c("cxAtMessage",m(1,5,"productFacetNavigation.decreaseOptionsVisibility"))("cxFocus",Me(11,tr)),M("aria-controls",e.facet.name+"-list-id")("aria-label",m(2,7,"productFacetNavigation.ariaLabelShowLess")),s(3),x(" ",m(4,9,"productList.showLess")," ")}}function b1(t,o){if(t&1){let e=P();d(0,"button",13),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(3);return C(i.increaseVisibleValues())}),_(3),p(4,"cxTranslate"),u()}if(t&2){let e=l(3);c("cxAtMessage",m(1,5,"productFacetNavigation.increaseOptionsVisibility"))("cxFocus",Me(11,tr)),M("aria-controls",e.facet.name+"-list-id")("aria-label",m(2,7,"productFacetNavigation.ariaLabelShowMore")),s(3),x(" ",m(4,9,"productList.showMore")," ")}}function S1(t,o){if(t&1&&(R(0),f(1,x1,5,12,"button",10)(2,b1,5,12,"button",11),A()),t&2){let e=l().ngIf,n=l();s(),c("ngIf",e.maxVisible&&e.topVisible&&e.maxVisible>e.topVisible),s(),c("ngIf",e.maxVisible&&n.facet.values&&e.maxVisible>0&&e.maxVisible<n.facet.values.length)}}function w1(t,o){if(t&1&&(R(0),d(1,"div",2),f(2,g1,7,16,"a",3),p(3,"slice"),d(4,"div",4),f(5,_1,7,16,"a",3),p(6,"slice"),f(7,y1,3,2,"ng-container",5),u()(),f(8,S1,3,2,"ng-container",5),A()),t&2){let e=o.ngIf,n=l();s(),c("id",n.facet.name+"-list-id"),M("aria-multiselectable",n.facet.multiSelect?!0:null),s(),c("ngForOf",$n(3,6,n.facet.values,0,e.topVisible)),s(3),c("ngForOf",$n(6,10,n.facet.values,e.topVisible??0,e.maxVisible)),s(2),c("cxFeature","!a11yListSemanticsForFacets"),s(),c("cxFeature","a11yListSemanticsForFacets")}}var T1=["backToResultsBtn"],I1=["facetsRef"];function E1(t,o){if(t&1&&(w(0,"cx-facet",10),p(1,"cxTranslate")),t&2){let e=l().$implicit;
9c("facet",e),M("aria-label",de(1,2,"productFacetNavigation.ariaLabelItemsAvailable",st(5,Os,e.name,e==null||e.values==null?null:e.values.length)))}}function D1(t,o){t&1&&f(0,E1,2,8,"ng-template",null,0,ie)}function M1(t,o){if(t&1){let e=P();d(0,"div",11)(1,"button",12,1),y("click",function(){v(e);let i=l(2);return C(i.close())}),_(3),p(4,"cxTranslate"),u()()}t&2&&(s(3),x(" ",m(4,1,"productFacetNavigation.backToResults")," "))}function F1(t,o){if(t&1){let e=P();d(0,"section",3),p(1,"cxTranslate"),y("esc",function(i){v(e);let r=l();return C(r.close(i))})("click",function(i){v(e);let r=l();return C(r.block(i))}),d(2,"div",4)(3,"h4"),_(4),p(5,"cxTranslate"),u(),d(6,"button",5),p(7,"cxTranslate"),p(8,"cxTranslate"),y("click",function(){v(e);let i=l();return C(i.close())}),w(9,"cx-icon",6),u()(),w(10,"cx-tab",7),f(11,D1,2,0,null,8)(12,M1,5,3,"div",9),u()}if(t&2){let e=o.ngIf,n=l();c("cxFocus",n.isDialog?n.dialogFocusConfig:Me(20,Ps))("tabindex",-1),M("aria-label",m(1,12,"productFacetNavigation.filterBy.facet")),s(4),B(m(5,14,"productList.filterBy.label")),s(2),c("title",me(m(7,16,"common.close"))),M("aria-label",m(8,18,"common.close")),s(3),c("type",n.iconTypes.CLOSE),s(),c("tabs$",n.tabs$)("config",n.tabConfig),s(),c("ngForOf",e),s(),c("ngIf",n.isDialog)}}var k1=["trigger"];function A1(t,o){if(t&1){let e=P();d(0,"cx-facet-list",4),p(1,"async"),y("closeList",function(){v(e);let i=l();return C(i.close())}),u()}if(t&2){let e=l();te("active",m(1,5,e.isActive$))("dialog",e.hasTrigger),c("isDialog",e.hasTrigger)}}function R1(t,o){if(t&1&&(R(0),w(1,"cx-media",6),p(2,"async"),A()),t&2){let e=o.$implicit,n=l();s(),c("container",n.item.images==null?null:n.item.images.PRIMARY)("alt",n.item.name??"")("fetchPriority",n.itemIndex===0?m(2,3,e.fetchPriority$):void 0)}}function P1(t,o){if(t&1&&(w(0,"cx-carousel-scrolling",2),p(1,"async"),p(2,"async"),p(3,"cxTranslate")),t&2){let e=o.ngIf,n=l(),i=H(3);c("items",e)("title",m(1,5,n.title$))("template",i)("trackByFn",n.trackByFn),M("aria-label",de(3,9,"productCarousel.carouselLabel",Y(12,Rd,m(2,7,n.title$))))}}function O1(t,o){if(t&1&&w(0,"cx-product-carousel-item",3),t&2){let e=o.item,n=o.itemIndex;c("item",e)("itemIndex",n)}}function L1(t,o){if(t&1&&(w(0,"cx-carousel-scrolling",3),p(1,"async")),t&2){let e=l().ngIf,n=l(),i=H(3);c("title",m(1,4,n.title$))("items",e)("template",i)("trackByFn",n.trackByFn)}}function V1(t,o){if(t&1&&(R(0),f(1,L1,2,6,"cx-carousel-scrolling",2),A()),t&2){let e=o.ngIf;s(),c("ngIf",e.length)}}function B1(t,o){if(t&1&&(d(0,"a",4),p(1,"cxUrl"),w(2,"cx-media",5),d(3,"h4"),_(4),u(),d(5,"div",6),_(6),u()()),t&2){let e=o.item;c("routerLink",m(1,4,Y(6,an,e))),s(2),c("container",e.images==null?null:e.images.PRIMARY),s(2),B(e.name),s(2),B(e.price==null?null:e.price.formattedValue)}}function N1(t,o){if(t&1&&(w(0,"cx-media",3),p(1,"async")),t&2){let e=o.$implicit,n=l().ngIf;c("container",n)("fetchPriority",m(1,2,e.fetchPriority$))}}function j1(t,o){t&1&&(R(0),f(1,N1,2,4,"cx-media",2),A())}function $1(t,o){if(t&1&&w(0,"cx-carousel-scrolling",5),t&2){let e=l().ngIf,n=l(),i=H(5);c("items",e)("template",i)("trackByFn",n.trackByFn)}}function H1(t,o){if(t&1&&(R(0),f(1,$1,1,3,"cx-carousel-scrolling",4),A()),t&2){let e=o.ngIf;s(),c("ngIf",e.length)}}function U1(t,o){if(t&1){let e=P();d(0,"cx-media",6),p(1,"async"),y("focus",function(){let i=v(e).item,r=l();return C(r.openImage(i.container))}),u()}if(t&2){let e=o.item,n=l();te("is-active",m(1,3,n.isActive(e.container))),c("container",e.container)}}var Od=(t,o)=>({rating:t,count:o});function G1(t,o){if(t&1){let e=P();d(0,"button",8),p(1,"number"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(4);return C(i.showReviews())}),_(3),p(4,"cxTranslate"),u()}if(t&2){let e=l(3).ngIf;M("aria-label",de(2,5,"productSummary.showReviewsDetailed",st(10,Od,de(1,2,e==null?null:e.averageRating,"1.0-1"),e==null?null:e.numberOfReviews))),s(3),x(" ",m(4,8,"productSummary.showReviews")," ")}}function W1(t,o){if(t&1&&(R(0),f(1,G1,5,13,"button",7),A()),t&2){let e=l(2).ngIf;s(),c("ngIf",e==null?null:e.averageRating)}}function z1(t,o){if(t&1){let e=P();d(0,"button",10),p(1,"number"),p(2,"cxTranslate"),y("click",function(){v(e);let i=l(4);return C(i.showReviews())}),_(3),p(4,"cxTranslate"),u()}if(t&2){let e=l(3).ngIf;M("aria-label",de(2,5,"productSummary.showReviewsDetailed",st(10,Od,de(1,2,e==null?null:e.averageRating,"1.0-1"),e==null?null:e.numberOfReviews))),s(3),x(" ",m(4,8,"productSummary.showReviews")," ")}}function q1(t,o){if(t&1&&(R(0),f(1,z1,5,13,"button",9),p(2,"async"),A()),t&2){let e=l(3);s(),c("ngIf",m(2,1,e.areReviewsAvailable$))}}function K1(t,o){if(t&1&&(d(0,"div",3),w(1,"cx-star-rating",4),d(2,"div",5),_(3),u(),f(4,W1,2,1,"ng-container",6)(5,q1,3,3,"ng-container",6),u()),t&2){let e=l().ngIf;s(),c("rating",(e==null?null:e.averageRating)??0),s(2),x("(",e==null?null:e.numberOfReviews,")"),s(),c("cxFeature","a11yLinkBtnsToTert
9iaryBtns"),s(),c("cxFeature","!a11yLinkBtnsToTertiaryBtns")}}function Q1(t,o){t&1&&(d(0,"div",3),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"productDetails.noReviews")," "))}function Y1(t,o){if(t&1&&(R(0),f(1,K1,6,4,"div",1)(2,Q1,3,3,"div",1),d(3,"div",2),_(4),p(5,"cxTranslate"),u(),A()),t&2){let e=o.ngIf;s(),c("ngIf",e==null?null:e.averageRating),s(),c("ngIf",!(e!=null&&e.averageRating)),s(2),jt(" ",m(5,4,"productSummary.id")," ",e==null?null:e.code," ")}}function X1(t,o){if(t&1&&(R(0),w(1,"cx-promotions",2),A()),t&2){let e=l().ngIf;s(),c("promotions",e.potentialPromotions)}}function Z1(t,o){if(t&1&&(d(0,"div",3),p(1,"cxTranslate"),_(2),u()),t&2){let e=l().ngIf;M("aria-label",m(1,2,"productSummary.newItemPrice")),s(2),x(" ",e==null||e.price==null?null:e.price.formattedValue," ")}}function J1(t,o){if(t&1&&w(0,"p",4),t&2){let e=l().ngIf;c("innerHTML",e==null?null:e.summary,We)}}function eC(t,o){if(t&1&&(R(0),f(1,X1,2,1,"ng-container",0)(2,Z1,3,4,"ng-template",1)(3,J1,1,1,"ng-template",1),A()),t&2){let e=o.ngIf,n=l();s(),c("ngIf",e.potentialPromotions),s(),c("cxOutlet",n.outlets.PRICE)("cxOutletContext",Y(5,Is,e)),s(),c("cxOutlet",n.outlets.SUMMARY)("cxOutletContext",Y(7,Is,e))}}function tC(t,o){if(t&1&&(d(0,"span"),_(1),u()),t&2){let e=l(2).$implicit;s(),x(" ",e.featureUnit==null?null:e.featureUnit.symbol," ")}}function nC(t,o){if(t&1&&(d(0,"li"),_(1),f(2,tC,2,1,"span",0),u()),t&2){let e=o.$implicit,n=l().$implicit;s(),x(" ",e==null?null:e.value," "),s(),c("ngIf",n.featureUnit&&n.featureUnit.symbol&&n.featureUnit.symbol.length>0&&(n.featureUnit==null?null:n.featureUnit.unitType)!=="300")}}function iC(t,o){if(t&1&&(d(0,"tr")(1,"td"),_(2),u(),d(3,"td")(4,"ul"),f(5,nC,3,2,"li",2),u()()()),t&2){let e=o.$implicit;s(2),B(e.name),s(3),c("ngForOf",e==null?null:e.featureValues)}}function oC(t,o){if(t&1&&(d(0,"table")(1,"th")(2,"h2"),_(3),u()(),f(4,iC,6,2,"tr",2),u()),t&2){let e=o.$implicit;s(3),B(e.name),s(),c("ngForOf",e.features)}}function rC(t,o){if(t&1&&(R(0),d(1,"div",1)(2,"h2"),_(3),p(4,"cxTranslate"),u(),f(5,oC,5,2,"table",2),u(),A()),t&2){let e=o.ngIf;s(3),B(m(4,2,"productDetails.specification")),s(2),c("ngForOf",e==null?null:e.classifications)}}function sC(t,o){if(t&1&&(R(0),w(1,"div",1),A()),t&2){let e=o.ngIf;s(),c("innerHTML",e==null?null:e.description,We)}}function aC(t,o){if(t&1&&(d(0,"div",4),xe(1,5),u()),t&2){let e=l(2).$implicit;s(),c("cxComponentWrapper",e)}}function cC(t,o){if(t&1&&(R(0),f(1,aC,2,1,"ng-template",3),A()),t&2){let e=l().$implicit;s(),c("cxOutlet",e.flexType)("cxOutletContext",Me(2,Ps))}}function lC(t,o){if(t&1&&(R(0),f(1,cC,2,3,"ng-container",0),A()),t&2){let e=o.$implicit;s(),c("ngIf",e)}}function dC(t,o){if(t&1&&(R(0),f(1,lC,2,1,"ng-container",2),A()),t&2){let e=o.ngIf;s(),c("ngForOf",e)}}var uC=["titleInput"],pC=["writeReviewButton"],mC=["reviewItem"];function hC(t,o){if(t&1&&w(0,"cx-star-rating",11),t&2){let e=l(2).ngIf;c("rating",e.averageRating)}}function fC(t,o){t&1&&(d(0,"div",12),_(1),p(2,"cxTranslate"),u()),t&2&&(s(),x(" ",m(2,1,"productDetails.noReviews")," "))}function gC(t,o){if(t&1){let e=P();d(0,"li",18,2),y("keydown.arrowdown",function(i){let r=v(e).index,a=l(6);return C(a.focusNextReview(i,r))})("keydown.arrowup",function(i){let r=v(e).index,a=l(6);return C(a.focusPreviousReview(i,r))}),d(2,"div",19),_(3),u(),w(4,"cx-star-rating",20),d(5,"div",21),_(6),u(),d(7,"div",22),_(8),p(9,"cxDate"),u(),w(10,"cx-read-more",23),u()}if(t&2){let e=o.$implicit;s(3),B(e.headline),s(),c("rating",e.rating??0),s(2),x(" ",e.alias?e.alias:e.principal==null?null:e.principal.name," "),s(2),B(m(9,5,e.date)),s(2),c("text",e.comment)}}function _C(t,o){if(t&1&&(d(0,"ul",16),f(1,gC,11,7,"li",17),p(2,"slice"),u()),t&2){let e=l().ngIf,n=l(4);s(),c("ngForOf",$n(2,1,e,0,n.maxListItems))}}function vC(t,o){if(t&1&&(d(0,"div",25)(1,"div",19),_(2),u(),w(3,"cx-star-rating",20),d(4,"div",21),_(5),u(),d(6,"div",22),_(7),p(8,"cxDate"),u(),w(9,"cx-read-more",23),u()),t&2){let e=o.$implicit;s(2),B(e.headline),s(),c("rating",e.rating??0),s(2),x(" ",e.alias?e.alias:e.principal==null?null:e.principal.name," "),s(2),B(m(8,5,e.date)),s(2),c("text",e.comment)}}function CC(t,o){if(t&1&&(R(0),f(1,vC,10,7,"div",24),p(2,"slice"),A()),t&2){let e=l().ngIf,n=l(4);s(),c("ngForOf",$n(2,1,e,0,n.maxListItems))}}function yC(t,o){if(t&1){let e=P();d(0,"div")(1,"button",26),y("click",function(){v(e);let i=l().ngIf,r=l(4);return C(r.maxListItems===r.initialMaxListItems?r.maxListItems=i.length:r.maxListItems=r.initialMaxListItems)}),_(2),p(3,"cxTranslate"),u()()}if(t&2){let e=l(5);s(2),x(" ",m(3,1,e.maxListItems===e.initialMaxListItems?"productReview.more":"productReview.less")," ")}}function xC(t,o){if(t&1&&(R(0),f(1,_C,3,5,"ul",14)(2,CC,3,5,"ng-container",15)(3,yC,4,3,"div",13),A()),t&2){let e=o.ngIf,n=l(4);s(),c("cxFeature","a11yReviewsKeyboardControls"),s(),c("cxFeature","!a11yReviewsKeyboardControls"),s(),c("ngIf",e.length>n.initialMaxListItems)}}function bC(t,o){if(t&1&&(R(0),f(1,xC,4,3,"ng-container",13),p(2,"async"),A()),t&2){let e=l(3);s(),c("ngIf",m(2,1,e.reviews$))}}function SC(t,o){if(t&1){let e=P();R(0),d(1,"div",7)(2,"h3"),_(3),p(4,"cxTranslate"),u(),d(5,"button",8,1),y("click",function(){v(e);let i=l(2);return C(i.initiateWriteReview())}),_(7),p(8,"cxTranslate"),u(),f(9,hC,1,1,"cx-star-rating",9)(10,fC,3,3,"div",10),u(),f(11,bC,3,3,"ng-container",6),A()}if(t&2){let e=l().ngIf,n=H(6),i=l();s(3),B(m(4,6,"productReview.overallRating")),s(4),x(" ",m(8,8,"productReview.writeReview")," "),s(2),c("ngIf",e.averageRating),s(),c("ngIf",!e.averageRating),s(),c("ngIf",!i.isWritingReview)("ngIfElse",n)}}function wC(t,o){if(t&1){let e=P();w(0,"cx-form-required-legend"),d(1,"form",27),y("ngSubmit",function(){v(e);let i=l().ngIf,r=l();return C(r.submitReview(i))}),d(2,"div",28)(3,"label")(4,"span",29),_(5),p(6,"cxTranslate"),w(7,"cx-form-required-asterisks"),u(),w(8,"input",30,3)(10,"cx-form-errors",31),p(11,"cxTranslate"),u()(),d(12,"div",28)(13,"label")(14,"span",29),_(15),p(16,"cxTranslate"),w(17,"cx-form-required-asterisks"),u(),w(18,"textarea",32),p(19,"cxTranslate"),w(20,"cx-form-errors",33),p(21,"cxTranslate"),u()(),d(22,"div",28)(23,"label")(24,"span",29),_(25),p(26,"cxTranslate"),w(27,"cx-form-required-asterisks"),u(),d(28,"span",34),_(29),p(30,"cxTranslate"),u(),w(31,"input",35),d(32,"cx-star-rating",36),y("change",function(i){v(e);let r=l(2);return C(r.setRating(i))}
9),u(),w(33,"cx-form-errors",37),p(34,"cxTranslate"),u()(),d(35,"div",28)(36,"label")(37,"span",29),_(38),p(39,"cxTranslate"),u(),w(40,"input",38)(41,"cx-form-errors",31),p(42,"cxTranslate"),d(43,"p",39),_(44),p(45,"cxTranslate"),u()()(),d(46,"div",40)(47,"div",41)(48,"button",42),y("click",function(){v(e);let i=l(2);return C(i.cancelWriteReview())}),_(49),p(50,"cxTranslate"),u()(),d(51,"div",41)(52,"button",43),_(53),p(54,"cxTranslate"),u()()()()}if(t&2){let e,n,i,r,a=l(2);s(),c("formGroup",a.reviewForm),s(4),x("",m(6,28,"productReview.reviewTitle")," "),s(3),c("maxLength",a.maxLengthReviewTitle),M("aria-invalid",((e=a.reviewForm.get("title"))==null?null:e.touched)&&((e=a.reviewForm.get("title"))==null?null:e.invalid))("aria-errormessage","titleError"),s(2),c("translationParams",Y(55,Wi,m(11,30,"productReview.reviewTitle")))("control",a.reviewForm.get("title")),s(5),x("",m(16,32,"productReview.writeYourComments")," "),s(3),c("placeholder",m(19,34,"productReview.commentPlaceholder"))("maxLength",a.maxLengthReviewComment),M("aria-invalid",((n=a.reviewForm.get("comment"))==null?null:n.touched)&&((n=a.reviewForm.get("comment"))==null?null:n.invalid))("aria-errormessage","commentError"),s(2),c("translationParams",Y(57,Wi,m(21,36,"productReview.writeYourComments")))("control",a.reviewForm.get("comment")),s(5),x("",m(26,38,"productReview.rating")," "),s(4),B(m(30,40,"productReview.ratingRequired")),s(2),M("aria-invalid",((i=a.reviewForm.get("rating"))==null?null:i.touched)&&((i=a.reviewForm.get("rating"))==null?null:i.invalid))("aria-errormessage","ratingError"),s(),c("disabled",!1),s(),c("translationParams",Y(59,Wi,m(34,42,"productReview.rating")))("control",a.reviewForm.get("rating")),s(5),x("",m(39,44,"productReview.reviewerName")," "),s(2),c("maxLength",a.maxLengthReviewerName),s(),c("translationParams",Y(61,Wi,m(42,46,"productReview.reviewerName")))("control",a.reviewForm.get("reviewerName")),s(3),x(" ",de(45,48,"productReview.charactersLeft",Y(63,Xo,a.maxLengthReviewerName-(((r=a.reviewForm.get("reviewerName"))==null||r.value==null?null:r.value.length)??0)))," "),s(5),x(" ",m(50,51,"common.cancel")," "),s(4),x(" ",m(54,53,"common.submit")," ")}}function TC(t,o){if(t&1&&(d(0,"div",5)(1,"h2"),_(2),p(3,"cxTranslate"),u(),f(4,SC,12,10,"ng-container",6)(5,wC,55,65,"ng-template",null,0,ie),u()),t&2){let e=o.ngIf,n=H(6),i=l();s(2),jt(" ",m(3,4,"productDetails.reviews")," (",e.numberOfReviews,") "),s(2),c("ngIf",!i.isWritingReview)("ngIfElse",n)}}var Ld=()=>({cxRoute:"notificationPreference"}),IC=()=>({cxRoute:"myInterests"});function EC(t,o){if(t&1&&(d(0,"span"),_(1),u()),t&2){let e=l().$implicit;s(),B(": "+e.value)}}function DC(t,o){if(t&1&&(d(0,"p",18)(1,"span"),_(2),u(),f(3,EC,2,1,"span",19),u()),t&2){let e=o.$implicit;s(2),B(e.channel),s(),c("ngIf",e.value)}}function MC(t,o){if(t&1){let e=P();R(0),d(1,"div",8)(2,"div",9)(3,"p",10),_(4),p(5,"cxTranslate"),u(),f(6,DC,4,2,"p",11),d(7,"p",10),_(8),p(9,"cxTranslate"),u(),d(10,"p",10),_(11),p(12,"cxTranslate"),d(13,"a",12),p(14,"cxUrl"),y("click",function(){v(e);let i=l();return C(i.close("Link clicked"))}),_(15),p(16,"cxTranslate"),u(),_(17),p(18,"cxTranslate"),u(),d(19,"p",10),_(20),p(21,"cxTranslate"),d(22,"a",13),p(23,"cxUrl"),y("click",function(){v(e);let i=l();return C(i.close("Link clicked"))}),_(24),p(25,"cxTranslate"),u(),_(26),p(27,"cxTranslate"),u()()(),d(28,"div",14)(29,"div",15)(30,"div",16)(31,"button",17),y("click",function(){v(e);let i=l();return C(i.close("Button clicked"))}),_(32),p(33,"cxTranslate"),u()()()(),A()}if(t&2){let e=l();s(4),x(" ",m(5,12,"stockNotification.subscriptionDialog.notifiedPrefix")," "),s(2),c("ngForOf",e.enabledPrefs),s(2),x(" ",m(9,14,"stockNotification.subscriptionDialog.notifiedSuffix")," "),s(3),x(" ",m(12,16,"stockNotification.subscriptionDialog.manageChannelsPrefix")," "),s(2),c("routerLink",m(14,18,Me(34,Ld))),s(2),x(" ",m(16,20,"stockNotification.subscriptionDialog.manageChannelsLink")),s(2),x(" ",m(18,22,"stockNotification.subscriptionDialog.manageChannelsSuffix")," "),s(3),x(" ",m(21,24,"stockNotification.subscriptionDialog.manageSubscriptionsPrefix")," "),s(2),c("routerLink",m(23,26,Me(35,IC))),s(2),x(" ",m(25,28,"stockNotification.subscriptionDialog.manageSubscriptionsLink")),s(2),x(" ",m(27,30,"stockNotification.subscriptionDialog.manageSubscriptionsSuffix")," "),s(6),x(" ",m(33,32,"stockNotification.subscriptionDialog.okBtn")," ")}}function FC(t,o){t&1&&(d(0,"div",8)(1,"p"),_(2),p(3,"cxTranslate"),u(),d(4,"div",20)(5,"div",21),w(6,"cx-spinner"),u()()()),t&2&&(s(2),x(" ",m(3,1,"stockNotification.subscriptionDialog.subscribing")," "))}var kC=()=>({cxRoute:"login"});function AC(t,o){if(t&1){let e=P();R(0),d(1,"div",7)(2,"p"),_(3),p(4,"cxTranslate"),u()(),d(5,"button",8,3),y("click",function(){v(e);let i=l(3);return C(i.subscribe())}),_(7),p(8,"cxTranslate"),u(),A()}t&2&&(s(3),B(m(4,2,"stockNotification.getNotified")),s(4),x(" ",m(8,4,"stockNotification.notifyMe")," "))}function RC(t,o){if(t&1&&(R(0),f(1,AC,9,6,"ng-container",6),p(2,"async"),A()),t&2){let e=l(2),n=H(3);s(),c("ngIf",m(2,2,e.prefsEnabled$))("ngIfElse",n)}}function PC(t,o){if(t&1&&(R(0),f(1,RC,3,4,"ng-container",6),p(2,"async"),A()),t&2){let e=l(),n=H(5);s(),c("ngIf",!m(2,2,e.hasProductInterests$))("ngIfElse",n)}}function OC(t,o){t&1&&(R(0),d(1,"a",11),p(2,"cxUrl"),_(3),p(4,"cxTranslate"),u(),_(5),p(6,"cxTranslate"),w(7,"br"),A()),t&2&&(s(),c("routerLink",m(2,3,Me(9,kC))),s(2),x(" ",m(4,5,"miniLogin.signInRegister")),s(2),x(" ",m(6,7,"stockNotification.getNotifySuffix")))}function LC(t,o){t&1&&(_(0),p(1,"cxTranslate"),w(2,"br"),_(3),p(4,"cxTranslate"),d(5,"a",11),p(6,"cxUrl"),_(7),p(8,"cxTranslate"),u(),_(9),p(10,"cxTranslate")),t&2&&(x(" ",m(1,5,"stockNotification.getNotify")),s(3),x(" ",m(4,7,"stockNotification.activateChannelsPrefix")," "),s(2),c("routerLink",m(6,9,Me(15,Ld))),s(2),B(m(8,11,"stockNotification.channelsLink")),s(2),x("",m(10,13,"stockNotification.activateChannelsSuffix")," "))}function VC(t,o){if(t&1){let e=P();d(0,"div",9)(1,"p"),f(2,OC,8,10,"ng-container",6)(3,LC,11,16,"ng-template",null,4,ie),u()(),d(5,"button",10),y("click",function(){v(e);let i=l();return C(i.subscribe())}),_(6),p(7,"cxTranslate"),u()}if(t&2){let e=H(4),n=l();s(2),c("ngIf",n.anonymous)("ngIfElse",e),s(3),M("disabled",n.anonymous?!0:null),s(),x(" ",m(7,4,"stockNotification.notifyMe")," ")}}function BC(t,o){if(t&1){let e=P();R(0),d(1,"div",7)(2,"p"),_(3),p(4,"cxTranslate"),u()(),d(5,"button",12),y("click",function(){v(e);let i=l(2);return C(i.unsubscribe())}),_(6),p(7,"cxTranslate"),u(),A()}t&2&&(s(3),B(m(4,2,"stockNotification.notified")),s(3),x(" ",m(7,4,"stockNotification.stopNotify")," "))}function NC(t,o){if(t&1&&(f(0,BC,8,6,"ng-container",6),p(1,"async")),t&2){let e=l(),n=H(7);c("ngIf",!m(1,2,e.isRemoveInterestLoading$))("ngIfElse",n)}}function jC(t,o){t&1&&(d(0,"div",13)(1,"div",14)(2,"div",15),w(3,"cx-spinner"),u()()())}var yn=(function(t){return t.LTR="ltr",t.RTL="rtl",t})(yn||{}),$C={icon:{flipDirection:{CARET_RIGHT:yn.RTL,CARET_LEFT:yn.RTL}}},ue=(function(t){return t.ACTIVE="ACTIVE",t.ADDRESS_BOOK="ADDRESS_BOOK",t.AMEX="AMEX",t.CARET_DOW
9N="CARET_DOWN",t.CARET_LEFT="CARET_LEFT",t.CARET_RIGHT="CARET_RIGHT",t.CARET_UP="CARET_UP",t.CART="CART",t.CART_PLUS="CART_PLUS",t.CART_ARROW_DOWN="CART_ARROW_DOWN",t.CHECK="CHECK",t.CIRCLE="CIRCLE",t.CLIPBOARD_LIST="CLIPBOARD_LIST",t.CLOCK="CLOCK",t.CLOSE="CLOSE",t.COLLAPSE="COLLAPSE",t.CREDIT_CARD="CREDIT_CARD",t.DINERS_CLUB="DINERS_CLUB",t.DOWNLOAD="DOWNLOAD",t.EMPTY_HEART="EMPTY_HEART",t.ERROR="ERROR",t.EXPAND="EXPAND",t.EXPAND_ARROWS="EXPAND_ARROWS",t.EYE="EYE",t.EYE_SLASH="EYE_SLASH",t.FILE="FILE",t.FILTER="FILTER",t.GRID="GRID",t.HEART="HEART",t.INFO="INFO",t.LINK_OUT="LINK_OUT",t.LIST="LIST",t.MASTER_CARD="MASTER_CARD",t.OFF="OFF",t.ON="ON",t.ORDER="ORDER",t.PENCIL="PENCIL",t.RESET="RESET",t.REPEAT="REPEAT",t.SEARCH="SEARCH",t.SEARCH_PLUS="SEARCH_PLUS",t.SEARCH_MINUS="SEARCH_MINUS",t.SORT="SORT",t.SORT_AMOUNT_DOWN="SORT_AMOUNT_DOWN",t.SORT_AMOUNT_UP="SORT_AMOUNT_UP",t.SORT_DOWN="SORT_DOWN",t.STAR="STAR",t.SUCCESS="SUCCESS",t.TRASH="TRASH",t.USER_FRIENDS="USER_FRIENDS",t.VISA="VISA",t.WARNING="WARNING",t.HEADSET="HEADSET",t.ATTACHMENT="ATTACHMENT",t.UPLOAD="UPLOAD",t.USER="USER",t.USER_PLUS="USER_PLUS",t.ARROW_LEFT="ARROW_LEFT",t.ARROW_RIGHT="ARROW_RIGHT",t.ARROW_DOWN="ARROW_DOWN",t.ARROW_UP="ARROW_UP",t.C360_CIRCLE_USER="C360_CIRCLE_USER",t.C360_INVOICE="C360_INVOICE",t.HELP="HELP",t})(ue||{}),HC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),ti=(function(t){return t.SVG="svg",t.LINK="link",t.TEXT="text",t})(ti||{}),UC={icon:{symbols:{ACTIVE:"fas fa-check",ADDRESS_BOOK:"far fa-address-book",AMEX:"fab fa-cc-amex",CARET_DOWN:"fas fa-angle-down",CARET_LEFT:"fas fa-angle-left",CARET_RIGHT:"fas fa-angle-right",CARET_UP:"fas fa-angle-up",CART:"fas fa-shopping-cart",CART_PLUS:"fas fa-cart-plus",CART_ARROW_DOWN:"fas fa-cart-arrow-down",CHECK:"fas fa-check",CIRCLE:"fas fa-circle",CLIPBOARD_LIST:"fas fa-clipboard-list",CLOCK:"far fa-clock",CLOSE:"fas fa-times",COLLAPSE:"fas fa-minus",CREDIT_CARD:"fas fa-credit-card",DINERS_CLUB:"fab fa-cc-diners-club",DOWNLOAD:"fas fa-download",EMPTY_HEART:"far fa-heart",ERROR:"fas fa-exclamation-circle",EXPAND_ARROWS:"fas fa-expand",EXPAND:"fas fa-plus",EYE_SLASH:"fas fa-eye-slash",EYE:"fas fa-eye",FILE:"fas fa-file",FILTER:"fas fa-filter",GRID:"fas fa-th-large",HEART:"fas fa-heart",INFO:"fas fa-info-circle",LINK_OUT:"fas fa-external-link-alt",LIST:"fas fa-bars",MASTER_CARD:"fab fa-cc-mastercard",OFF:"fas fa-toggle-off",ON:"fas fa-toggle-on",ORDER:"fas fa-clipboard-list",PDF_FILE:"fas fa-file-pdf",PENCIL:"fas fa-pencil-alt",REPEAT:"fas fa-retweet",RESET:"fas fa-times-circle",SEARCH:"fas fa-search",SEARCH_PLUS:"fas fa-search-plus",SEARCH_MINUS:"fas fa-search-minus",SORT_AMOUNT_DOWN:"fas fa-sort-amount-down",SORT_AMOUNT_UP:"fas fa-sort-amount-up",SORT_DOWN:"fas fa-sort-down",SORT:"fas fa-sort",STAR:"fas fa-star",SUCCESS:"fas fa-check-circle",TRASH:"fas fa-trash",USER_FRIENDS:"fas fa-user-friends",VISA:"fab fa-cc-visa",WARNING:"fas fa-exclamation-triangle",HEADSET:"fas fa-headset",ATTACHMENT:"fas fa-paperclip",UPLOAD:"fas fa-upload",USER:"fas fa-user",USER_PLUS:"fas fa-user-plus",ARROW_LEFT:"fas fa-arrow-left",ARROW_RIGHT:"fas fa-arrow-right",ARROW_DOWN:"fas fa-arrow-down",ARROW_UP:"fas fa-arrow-up",C360_INVOICE:"fas fa-file-invoice",C360_CIRCLE_USER:"fas fa-circle-user",HELP:"far fa-circle-question"},resources:[{type:ti.LINK,url:""}]}},GC=(()=>{class t{constructor(e,n,i){this.winRef=e,this.iconConfig=n,this.sanitizer=i,this.loadedResources=[]}getHtml(e){if(this.isResourceType(e,ti.SVG)){let n=this.sanitizer.sanitize(_i.URL,this.getSvgPath(e)||null);if(n){let i=this.winRef.document.createElement("use");i.setAttribute("xlink:href",n);let r=this.winRef.document.createElement("svg");return r.appendChild(i),this.sanitizer.bypassSecurityTrustHtml(r.outerHTML)}}if(this.isResourceType(e,ti.TEXT)){let n=this.getSymbol(e);if(n){let i=this.winRef.document.createElement("div");return i.textContent=n,this.sanitizer.bypassSecurityTrustHtml(i.innerHTML)}}}getFlipDirection(e){return this.config?.flipDirection?.[e]}
9getStyleClasses(e){return this.getSymbol(e)||""}isResourceType(e,n){return this.config?.resources!==void 0&&!!this.config.resources.find(i=>i.types&&i.type===n&&i.types.includes(e))}getSvgPath(e){let n=this.config?.resources?.find(i=>i.type===ti.SVG&&i.types&&i.types.includes(e));if(n)return n.url?`${n.url}#${this.getSymbol(e)}`:`#${this.getSymbol(e)}`}addLinkResource(e){let n=this.findResource(e,ti.LINK);if(n?.url&&!this.loadedResources.includes(n.url)){this.loadedResources.push(n.url);let i=this.sanitizer.sanitize(_i.URL,n.url);if(i){let r=this.winRef.document.getElementsByTagName("head")[0],a=this.winRef.document.createElement("link");a.rel="stylesheet",a.type="text/css",a.href=i,r.appendChild(a)}}}findResource(e,n){if(!this.config?.resources)return;let i=this.config.resources.find(r=>r.type===n&&r.types&&r.types.includes(e));return i||(i=this.config.resources.find(r=>r.type===n&&!r.types||r.types&&r.types.length===0)),i}getSymbol(e){if(this.config&&this.config.symbols&&this.config.symbols[e])return this.config.symbols[e]}get config(){return this.iconConfig.icon}static{this.\u0275fac=function(n){return new(n||t)(b(Te),b(HC),b(Ei))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),je=(()=>{class t{set cxIcon(e){this.setIcon(e)}set type(e){this.setIcon(e)}constructor(e,n,i){this.iconLoader=e,this.elementRef=n,this.renderer=i}setIcon(e){!e||e===""||(this.icon=this.iconLoader.getHtml(e),this.addStyleClasses(e),this.iconLoader.addLinkResource(e),this.flipIcon(e))}flipIcon(e){let n=this.iconLoader.getFlipDirection(e);this.flipAtLtr=n===yn.LTR,this.flipAtRtl=n===yn.RTL}addStyleClasses(e){this.renderer.addClass(this.host,"cx-icon"),this.styleClasses?.forEach(n=>this.renderer.removeClass(this.host,n)),this.styleClasses=this.iconLoader.getStyleClasses(e)?.split(" "),this.styleClasses?.forEach(n=>{n!==""&&this.renderer.addClass(this.host,n)})}get host(){return this.elementRef.nativeElement}static{this.\u0275fac=function(n){return new(n||t)(g(GC),g(z),g(De))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-icon"],["","cxIcon",""]],hostVars:4,hostBindings:function(n,i){n&2&&te("flip-at-rtl",i.flipAtRtl)("flip-at-ltr",i.flipAtLtr)},inputs:{cxIcon:"cxIcon",type:"type"},ngContentSelectors:xn,decls:2,vars:1,consts:[[4,"ngIf"],[3,"outerHTML"]],template:function(n,i){n&1&&(ft(),f(0,$m,2,1,"ng-container",0),gt(1)),n&2&&c("ngIf",i.icon)},dependencies:[N],encapsulation:2})}}return t})(),Ve=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X($C),X(UC)],imports:[L]})}}return t})(),WC=(()=>{class t{constructor(e){this.globalMessageService=e,this.iconTypes=ue,this.messageType=Fe,Ye("a11yIncreaseContastGlobalMessageCloseButton")}ngOnInit(){this.messages$=this.globalMessageService.get()}clear(e,n){this.globalMessageService.remove(e,n)}static{this.\u0275fac=function(n){return new(n||t)(g(ut))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-global-message"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","cx-visually-hidden","aria-live","assertive","aria-atomic","true",4,"ngFor","ngForOf"],["class","alert alert-success",4,"ngFor","ngForOf"],["class","alert alert-info",4,"ngFor","ngForOf"],["class","alert alert-warning",4,"ngFor","ngForOf"],["class","alert alert-danger",4,"ngFor","ngForOf"],["aria-live","assertive","aria-atomic","true",1,"cx-visually-hidden"],[1,"alert","alert-success"],[1,"alert-icon"],[3,"type"],[1,"close",3,"click","title"],[1,"alert","alert-info"],[1,"alert","alert-warning"],[1,"alert","alert-danger"]],template:function(n,i){n&1&&(f(0,qm,6,5,"div",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.messages$))},dependencies:[N,se,je,q,$],encapsulation:2})}}return t})(),Vd=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,Ve,W]})}}return t})(),zC={lcpCmsComponents:{idMarker:"__cxLCP__",ids:[]}},qC=(()=>{class t{static forRoot(){return{ngModule:t,providers:[X(zC)]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),Ge=(function(t){return t.REPLACE="replace",t.BEFORE="before",t.AFTER="after",t})(Ge||{}),KC=!1,QC=!0,Ki=class{},Pn=(()=>{class t{constructor(){this.templatesRefs={[Ge.BEFORE]:new Map,[Ge.REPLACE]:new Map,[Ge.AFTER]:new Map}}add(e,n,i=Ge.REPLACE){let r=this.templatesRefs[i];if(r){let h=(r.get(e)||[]).concat([n]);r.set(e,h)}}get(e,n=Ge.REPLACE,i=KC){let a=(this.templatesRefs[n]||this.templatesRefs[Ge.REPLACE]
9).get(e);return a&&!i?a[0]:a}remove(e,n=Ge.REPLACE,i){let r=this.templatesRefs[n]||this.templatesRefs[Ge.REPLACE];this.removeValueOrAll(r,e,i)}removeValueOrAll(e,n,i){if(!i&&e.has(n))e.delete(n);else if(i&&e.has(n)){let r=e.get(n);r=r?.filter(a=>a!==i),r&&e.set(n,r)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lT=(()=>{class t{constructor(e,n){this.tpl=e,this.outletService=n}ngOnInit(){this.outletService.add(this.cxOutletRef,this.tpl,this.cxOutletPos)}ngOnDestroy(){this.outletService.remove(this.cxOutletRef,this.cxOutletPos,this.tpl)}static{this.\u0275fac=function(n){return new(n||t)(g(J),g(Pn))}}static{this.\u0275dir=V({type:t,selectors:[["","cxOutletRef",""]],inputs:{cxOutletRef:"cxOutletRef",cxOutletPos:"cxOutletPos"}})}}return t})(),Zo=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),Yi=(function(t){return t.xs="xs",t.sm="sm",t.md="md",t.lg="lg",t.xl="xl",t})(Yi||{}),ci=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),YC=(()=>{class t{constructor(e){this.config=e,this.platformId=T(fn)}isIntersected(e,n,i){return Ii(this.platformId)?Q(!1):this.intersects(e,n,i).pipe(hn(r=>r===!0))}isIntersecting(e,n,i){return Ii(this.platformId)?Q(!1):this.intersects(e,n,i)}intersects(e,n={},i){return this.createIntersectionObservable(e,n).pipe(no(r=>r),I(r=>i?i(r):r.isIntersecting),pe())}createIntersectionObservable(e,n){return new un(i=>{let a={rootMargin:this.getRootMargin(n),threshold:n.threshold},h=new IntersectionObserver(S=>{i.next(S)},a);return h.observe(e),()=>{h.disconnect()}})}getRootMargin(e={}){if(e.rootMargin)return e.rootMargin;let n=this.config;if(n.deferredLoading&&n.deferredLoading.intersectionMargin)return n.deferredLoading.intersectionMargin}static{this.\u0275fac=function(n){return new(n||t)(b(ci))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),XC=(()=>{class t{constructor(e,n,i){this.platformId=e,this.config=n,this.intersectionService=i,this.globalLoadStrategy=n.deferredLoading?.strategy??Dn.INSTANT}load(e,n){return this.shouldLoadInstantly((n||{}).deferLoading)?Q(!0):this.intersectionService.isIntersected(e,n)}shouldLoadInstantly(e){return Ii(this.platformId)||e===Dn.INSTANT||e!==Dn.DEFER&&this.globalLoadStrategy===Dn.INSTANT}static{this.\u0275fac=function(n){return new(n||t)(b(fn),b(ci),b(YC))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Bd=(()=>{class t{constructor(){this.outletRefs=new ke(new Map)}render(e){this.outletRefs.value.size!==0&&this.outletRefs.value.get(e)?.render()}register(e,n){this.outletRefs.next(this.outletRefs.value.set(e,n))}getOutletRef(e){return this.outletRefs.asObservable().pipe(I(n=>n.get(e)),G(gn))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zt=(()=>{class t{constructor(e,n,i,r,a){this.vcr=e,this.templateRef=n,this.outletService=i,this.deferLoaderService=r,this.outletRendererService=a,this.renderedTemplate=[],this.renderedComponents=new Map,this.outletContext$=new Ln(1),this.loaded=new oe(!0),this.cxComponentRefChange=new oe,this.subscription=new ve}render(){this.vcr.clear(),this.renderedTemplate=[],this.renderedComponents.clear(),this.subscription.unsubscribe(),this.subscription=new ve,this.cxOutletDefer?this.deferLoading():this.build()}ngOnChanges(e){e.cxOutlet&&(this.render(),this.outletRendererService.register(this.cxOutlet,this)),e.cxOutletContext&&this.outletContext$.next(this.cxOutletContext)}deferLoading(){this.loaded.emit(!1);let e=this.getHostElement(this.vcr.element.nativeElement);this.subscription.add(this.deferLoaderService.load(e,this.cxOutletDefer).subscribe(()=>{this.build(),this.loaded.emit(!0)}))}build(){this.buildOutlet(Ge.BEFORE),this.buildOutlet(Ge.REPLACE),this.buildOutlet(Ge.AFTER)}buildOutlet(e){let n=this.outletService.get(this.cxOutlet,e,QC);n=n?.filter(r=>!this.renderedTemplate.includes(r)),!n&&e===Ge.REPLACE&&(n=[this.templateRef]),Array.isArray(n)||(n=[n]);let i=[];
9n.forEach(r=>{let a=this.create(r,e);a&&i.push(a)}),this.renderedComponents.set(e,i)}create(e,n){if(this.renderedTemplate.push(e),e instanceof Da){let i=this.vcr.createComponent(e,void 0,this.getComponentInjector(n));return this.cxComponentRefChange.emit(i),i}else if(e instanceof J){let i=this.vcr.createEmbeddedView(e,{$implicit:this.cxOutletContext});return i.markForCheck(),this.cxComponentRefChange.emit(i),i}}getComponentInjector(e){let n={reference:this.cxOutlet,position:e,context:this.cxOutletContext,context$:this.outletContext$.asObservable()};return Pe.create({providers:[{provide:Ki,useValue:n}],parent:this.vcr.injector})}getHostElement(e){return e instanceof HTMLElement?e:this.getHostElement(e.parentNode)}ngOnDestroy(){this.subscription.unsubscribe(),this.outletContext$.complete()}static{this.\u0275fac=function(n){return new(n||t)(g(xt),g(J),g(Pn),g(XC),g(Bd))}}static{this.\u0275dir=V({type:t,selectors:[["","cxOutlet",""]],inputs:{cxOutlet:"cxOutlet",cxOutletContext:"cxOutletContext",cxOutletDefer:"cxOutletDefer",cxComponentRef:"cxComponentRef"},outputs:{loaded:"loaded",cxComponentRefChange:"cxComponentRefChange"},features:[Ee]})}}return t})(),Es=new Be("PROVIDE_OUTLET_OPTIONS");function dT(t){return{provide:Es,useValue:t,multi:!0}}function ld(t,o,e){return()=>{(t??[]).forEach(i=>{let r=o.resolveComponentFactory(i.component);e.add(i.id,r,i.position??Ge.AFTER)})}}var yt=(()=>{class t{static forRoot(){return{ngModule:t,providers:[{provide:At,useFactory:ld,deps:[[new yr,Es],Ft,Pn],multi:!0}]}}static forChild(){return{ngModule:t,providers:[{provide:rc,useFactory:ld,deps:[[new yr,Es],Ft,Pn],multi:!0}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),Jo=class extends Gn{},Ds=(()=>
9{class t extends Jo{static{this.type="ComponentCreate"}}return t})(),Nd=(()=>{class t extends Jo{static{this.type="ComponentDestroy"}}return t})(),ZC=(()=>{class t{constructor(e,n){this.configInitializer=e,this.featureModules=n,this.componentFeatureMap=new Map,this.featureInstances=new Map,this.initFeatureMap()}initFeatureMap(){this.configInitializer.getStable("featureModules").subscribe(e=>{this.featureModulesConfig=e.featureModules??{};for(let[n,i]of Object.entries(this.featureModulesConfig))if(typeof i!="string"&&i?.module&&i?.cmsComponents?.length)for(let r of i.cmsComponents)this.componentFeatureMap.set(r,n)})}hasFeatureFor(e){return this.componentFeatureMap.has(e)}getCmsMapping(e){let n=this.componentFeatureMap.get(e);return n?this.resolveFeatureInstance(n).pipe(I(i=>i.componentsMappings?.[e])):Q(void 0)}getModule(e){let n=this.componentFeatureMap.get(e);if(!n)return;let i;return this.featureInstances.get(n)?.subscribe(r=>{i=r.moduleRef}).unsubscribe(),i}resolveFeatureInstance(e){return mi(()=>(this.featureInstances.has(e)||this.featureInstances.set(e,this.featureModules.resolveFeature(e).pipe(I(n=>this.createFeatureInstance(n,e)),qt())),this.featureInstances.get(e)??In))}createFeatureInstance(e,n){let i=this.featureModulesConfig[n],r={moduleRef:e,componentsMappings:{}},a=this.resolveFeatureConfiguration(e.injector);for(let h of i.cmsComponents??[])r.componentsMappings[h]=a.cmsComponents?.[h]??{};return r}resolveFeatureConfiguration(e){let n=e.get(Za,[],{self:!0}),i=e.get(Ja,[],{self:!0});return uo({},...i??[],...n??[])}static{this.\u0275fac=function(n){return new(n||t)(b(fo),b(Oc))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),cn=(()=>{class t{constructor(e,n,i,r){this.config=e,this.platformId=n,this.featureModules=i,this.configInitializer=r,this.missingComponents=[],this.mappings={},this.mappingResolvers=new Map,this.logger=T(St),this.configInitializer.getStable("cmsComponents").subscribe(a=>{this.staticCmsConfig=U({},a.cmsComponents)})}determineMappings(e){return mi(()=>{let n=[];for(let i of e)if(!this.mappings[i]){let r=(this.staticCmsConfig??this.config.cmsComponents)?.[i];this.featureModules.hasFeatureFor(i)?n.push(this.getFeatureMappingResolver(i,r)):r&&(this.mappings[i]=r)}return n.length?hi(n).pipe(I(()=>e)):Q(e)})}getFeatureMappingResolver(e,n){if(!this.mappingResolvers.has(e)){let i=this.featureModules.getCmsMapping(e).pipe(G(Jt),Z(r=>{this.mappings[e]=uo({},r,n),this.mappingResolvers.delete(e)}),xa());this.mappingResolvers.set(e,i)}return this.mappingResolvers.get(e)}getModule(e){if(this.featureModules.hasFeatureFor(e))return this.featureModules.getModule(e)}getMapping(e){let n=this.mappings[e]??(this.staticCmsConfig??this.config.cmsComponents)?.[e];return ct()&&!n&&(this.missingComponents.includes(e)||(this.missingComponents.push(e),this.logger.warn(`No component implementation found for the CMS component type '${e}'. 10`,"Make sure you implement a component and register it in the mapper."))),n}shouldRender(e){return!(Ii(this.platformId)&&this.getMapping(e)?.disableSSR)}getDeferLoadingStrategy(e){return(this.staticCmsConfig??this.config.cmsComponents)?.[e]?.deferLoading}getChildRoutes(e){let n=[];for(let i of e)this.shouldRender(i)&&n.push(this.getMapping(i)?.childRoutes??[]);return this.standardizeChildRoutes(n)}getStaticData(e){return this.getMapping(e)?.data}standardizeChildRoutes(e){let n={children:[]};return(e||[]).forEach(i=>{Array.isArray(i)?n.children?.push(...i):(n.children?.push(...i.children||[]),i.parent&&(n.parent=i.parent))}),n}getGuards(e){let n=new Set;for(let i of e)this.getMapping(i)?.guards?.forEach(r=>n.add(r));return Array.from(n)}getI18nKeys(e){let n=new Set;for(let i of e)this.shouldRender(i)&&this.getMapping(i)?.i18nKeys?.forEach(r=>n.add(r));return Array.from(n)}static{this.\u0275fac=function(n){return new(n||t)(b(Ic),b(fn),b(ZC),b(fo))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Qi=class{},jd=(()=>{class t{constructor(e){this.handlers=e,this.logger=T(St),this.invalidMappings=new Set}resolve(e){let n=Vr(this.handlers,[e]);return ct()&&!n&&(this.invalidMappings.has(e)||(this.invalidMappings.add(e),this.logger.warn("Can't resolve handler for component mapping: ",e))),n}
10getLauncher(e,n,i,r){return this.resolve(e)?.launcher(e,n,i,r)}static{this.\u0275fac=function(n){return new(n||t)(b(Qi,8))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ni=(function(t){return t.HAS_LCP="HAS_LCP",t.NO_LCP="NO_LCP",t})(ni||{}),JC=Q(ni.NO_LCP),$d=new Be("LCP_PRESENCE",{providedIn:"root",factory:()=>JC}),Re=class{},ey=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),ty=(()=>{class t{constructor(){this.config=T(ey)}getLcpPresence(e){let n=this.config?.lcpCmsComponents?.idMarker,i=this.config?.lcpCmsComponents?.ids??[];return n&&e?.uid?.includes(n)?Q(ni.HAS_LCP):i?.length&&e?.uid&&i.includes(e?.uid)?Q(ni.HAS_LCP):Q(ni.NO_LCP)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ny=()=>({provide:$d,useFactory:()=>{let t=T(Re),o=T(ty);return t.data$.pipe(ne(e=>o.getLcpPresence(e)),pe(),qt({bufferSize:1,refCount:!0}))}}),iy=(()=>{class t{constructor(e,n){this.componentsService=e,this.cmsService=n}get(e,n){return mi(()=>{let i;return n&&(i=this.componentsService.getStaticData(n)),e?i?this.cmsService.getComponentData(e).pipe(I(r=>U(U({},i),r)),fi(i)):this.cmsService.getComponentData(e):i?Q(i):In})}static{this.\u0275fac=function(n){return new(n||t)(b(cn),b(_t))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hd=(()=>{class t{constructor(e,n){this.cmsComponentsService=e,this.injector=n}getInjector(e,n,i){let r=this.cmsComponentsService.getMapping(e)?.providers??[];return Pe.create({providers:[{provide:Re,useFactory:a=>({uid:n,data$:a.get(n,e)}),deps:[iy]},ny(),...r],parent:i??this.injector})}static{this.\u0275fac=function(n){return new(n||t)(b(cn),b(Pe))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ri=(()=>{class t{constructor(e,n,i,r,a,h,S,k){this.vcr=e,this.cmsComponentsService=n,this.injector=i,this.dynamicAttributeService=r,this.renderer=a,this.componentHandler=h,this.cmsInjector=S,this.eventService=k,this.cxComponentRef=new oe}ngOnInit(){this.cmsComponentsService.determineMappings([this.cxComponentWrapper.flexType??""]).subscribe(()=>{this.cmsComponentsService.shouldRender(this.cxComponentWrapper.flexType??"")&&this.launchComponent()})}launchComponent(){let e=this.cmsComponentsService.getMapping(this.cxComponentWrapper.flexType??"");e&&(this.launcherResource=this.componentHandler.getLauncher(e,this.vcr,this.cmsInjector.getInjector(this.cxComponentWrapper.flexType??"",this.cxComponentWrapper.uid??"",this.injector),this.cmsComponentsService.getModule(this.cxComponentWrapper.flexType??""))?.pipe(G(Jt),Z(({elementRef:n,componentRef:i})=>{this.cmpRef=i,this.cxComponentRef.emit(i),this.dispatchEvent(Ds,n),this.decorate(n),this.injector.get(Oe).markForCheck()}),Ca(()=>this.dispatchEvent(Nd))).subscribe())}dispatchEvent(e,n){let i={typeCode:this.cxComponentWrapper.typeCode,id:this.cxComponentWrapper.uid};e===Ds&&(i.host=n?.nativeElement),this.eventService.dispatch(i,e)}decorate(e){this.dynamicAttributeService.addAttributesToComponent(e.nativeElement,this.renderer,this.cxComponentWrapper)}ngOnDestroy(){this.launcherResource&&this.launcherResource.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(xt),g(cn),g(Pe),g(xo),g(De),g(jd),g(Hd),g(_n))}}static{this.\u0275dir=V({type:t,selectors:[["","cxComponentWrapper",""]],inputs:{cxComponentWrapper:"cxComponentWrapper"},outputs:{cxComponentRef:"cxComponentRef"}})}}return t})(),Ud=(()=>{class t{hasMatch(e){return typeof e.component=="function"}getPriority(){return ho.FALLBACK}launcher(e,n,i,r){return new un(a=>{let h,S=i??n.injector,k=()=>{h&&h.destroy()},K=this.getComponentFactory(S,e.component);return K&&(h=n.createComponent(K,void 0,S,void 0,r),a.next({elementRef:h.location,componentRef:h})),k})}getComponentFactory(e,n){return n?e.get(Ft).resolveComponentFactory(n):null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oy=(()=>{class t{constructor(e){this.defaultHandler=e}hasMatch(e){return typeof e.component=="function"&&this.isNotClass(e.component)}isNotClass(e){let n=e.toString().substring(0,20).replace(" ","");return n.startsWith("function()")||n.startsWith("()=>")}getPriority(){return ho.LOW}launcher(e,n,i,r){return pi(e.component()).pipe(ne(a=>this.defaultHandler.launcher(ce(U({},e),{component:a}),n,i,r)))}static{this.\u0275fac=function(n){return new(n||t)(b(Ud))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ls=(()=>{class t{constructor(e,n,i,r,a,h,S,k,K){this.data=e,this.vcr=n,this.cmsComponentsService=i,this.injector=r,this.dynamicAttributeService=a,this.renderer=h,this.componentHandler=S,this.cmsInjector=k,this.eventService=K,this.innerComponents$=this.data.data$.pipe(I(fe=>fe?.composition?.inner??[]),pe()),this.componentWrappers=[]}ngOnInit(){this.subscription=this.innerComponents$.subscribe(e=>{this.renderComponents(e)})}renderComponents(e){this.clearComponents(),e.forEach(n=>this.renderComponent(n))}renderComponent(e){let n=new ri(this.vcr,this.cmsComponentsService,this.injector,this.dynamicAttributeService,this.renderer,this.componentHandler,this.cmsInjector,this.eventService);n.cxComponentWrapper={flexType:e,uid:""},n.ngOnInit(),this.componentWrappers.push(n)}
10clearComponents(){this.componentWrappers.forEach(e=>e.ngOnDestroy()),this.componentWrappers=[]}ngOnDestroy(){this.subscription?.unsubscribe(),this.clearComponents()}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(xt),g(cn),g(Pe),g(xo),g(De),g(jd),g(Hd),g(_n))}}static{this.\u0275dir=V({type:t,selectors:[["","cxInnerComponentsHost",""]]})}}return t})(),bn=(()=>{class t{static forRoot(){return{ngModule:t,providers:[{provide:Qi,useExisting:Ud,multi:!0},{provide:Qi,useExisting:oy,multi:!0}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),Gd=(()=>{class t{constructor(e,n,i){this.cmsComponentsService=e,this.platformId=n,this.document=i,this.resolvePrerenderedSlots()}resolvePrerenderedSlots(){Ti(this.platformId)&&(this.prerenderedSlots=Array.from(this.document.querySelectorAll("cx-page-slot")).filter(e=>e.getBoundingClientRect().top<this.document.documentElement.clientHeight).map(e=>e.getAttribute("position")))}shouldNotDefer(e){return this.prerenderedSlots?.includes(e)?(this.prerenderedSlots.splice(this.prerenderedSlots.indexOf(e),1),!0):!1}getComponentDeferOptions(e,n){return e&&this.shouldNotDefer(e)?{deferLoading:Dn.INSTANT}:{deferLoading:this.cmsComponentsService.getDeferLoadingStrategy(n)}}static{this.\u0275fac=function(n){return new(n||t)(b(cn),b(fn),b(ot))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wd=(()=>{class t{set position(e){this.position$.next(e)}get position(){return this.position$.value}constructor(e,n,i,r,a,h){this.cmsService=e,this.dynamicAttributeService=n,this.renderer=i,this.elementRef=r,this.cd=a,this.pageSlotService=h,this.isPageFold=!1,this.isPending=!0,this.hasComponents=!1,this.position$=new ke(void 0),this.slot$=this.position$.pipe(G(Jt),ne(S=>this.cmsService.getContentSlot(S)),pe(this.isDistinct)),this.components$=this.slot$.pipe(I(S=>S?.components??[])),this.subscription=new ve,this.pendingComponentCount=0}ngOnInit(){this.subscription.add(this.slot$.pipe(Z(e=>this.decorate(e))).subscribe(e=>{this.components=e?.components||[],this.cd.markForCheck()}))}decorate(e){let n=this.class||"";this.lastPosition&&n.indexOf(this.lastPosition)>-1&&(n=n.replace(this.lastPosition,"")),this.position$.value&&(n+=` ${this.position$.value}`,this.lastPosition=this.position$.value),this.pending=e?.components?.length||0,this.hasComponents=e?.components?e?.components?.length>0:!1,n&&n!==this.class&&(this.class=n),e&&this.dynamicAttributeService.addAttributesToSlot(this.elementRef.nativeElement,this.renderer,e)}set pending(e){this.pendingComponentCount=e,this.isPending=this.pendingComponentCount>0}get pending(){return this.pendingComponentCount}isLoaded(e){e&&(this.pending--,this.cd.markForCheck())}getComponentDeferOptions(e){return this.pageSlotService.getComponentDeferOptions(this.position,e)}isDistinct(e,n){return!!(n.components&&e.components&&e.components.length===n.components.length&&!e.components.find((i,r)=>i.uid!==n.components?.[r].uid))}ngOnDestroy(){this.subscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(_t),g(xo),g(De),g(z),g(Oe),g(Gd))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-page-slot"],["","cx-page-slot",""]],hostVars:9,hostBindings:function(n,i){n&2&&(M("position",i.position),Ue(i.class),te("page-fold",i.isPageFold)("cx-pending",i.isPending)("has-components",i.hasComponents))},inputs:{position:"position",class:"class",isPageFold:"isPageFold",hasComponents:"hasComponents"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"cxOutlet","cxOutletContext"],[4,"ngFor","ngForOf"],[3,"loaded","cxOutlet","cxOutletContext","cxOutletDefer"],[3,"cxComponentWrapper"]],template:function(n,i){n&1&&f(0,eh,1,4,null,0),n&2&&c("ngIf",i.position)},dependencies:[N,zt,se,ri],encapsulation:2,changeDetection:0})}}return t})(),Vs=(()=>{class t{constructor(e){}static{this.\u0275fac=function(n){return new(n||t)(b(Gd))}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,yt,bn]})}}return t})();function uT(t,o,e){if(t.cellphone&&t.phone)return t.cellphone===t.phone?e+": "+t.cellphone:`${o}: ${t.phone} 11${e}: ${t.cellphone}`;if(t.cellphone)return e+": "+t.cellphone;if(t.phone)return o+": "+t.phone}var ry=(()=>{class t{constructor(){this.rendererFactory=T(kt),this.renderer2=this.rendererFactory.createRenderer(null,null),this.windowRef=T(Te)}set(e,n,i){this.windowRef.isBrowser()||this.renderer2.setAttribute(e,this.attributeFrom(n),i)}get(e,n){return e?.getAttribute(this.attributeFrom(n))??void 0}clear(e,n){this.windowRef.isBrowser()||this.renderer2.removeAttribute(e,this.attributeFrom(n))}attributeFrom(e){return`data-cx-state-transfer-${e}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dd;(function(t){function o(e,n={}){(e instanceof hl||e instanceof vl)&&Object.values(e.controls).forEac
11h(i=>{o(i,n)}),e.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}t.deepUpdateValueAndValidity=o})(dd||(dd={}));var sy=new Be("PageLayoutHandler"),Sn=(()=>{class t{constructor(e,n,i){this.winRef=e,this.layoutConfig=n,this.platform=i,this.breakpoint$=Ti(this.platform)?this.winRef.resize$.pipe(I(r=>this.getBreakpoint(r.target.innerWidth)),pe(),qt({refCount:!0,bufferSize:1})):Q(this.fallbackBreakpoint)}get breakpoints(){return this._breakpoints||(this._breakpoints=this.resolveBreakpointsFromConfig()),this._breakpoints}getSize(e){return this.getMaxSize(e)??this.getMinSize(this.breakpoints?.[this.breakpoints.indexOf(e)+1])}isDown(e){return this.breakpoint$.pipe(I(n=>this.breakpoints.slice(0,this.breakpoints.indexOf(e)+1).includes(n)))}isUp(e){return this.breakpoint$.pipe(I(n=>this.breakpoints.slice(this.breakpoints.indexOf(e)).includes(n)))}isEqual(e){return this.breakpoint$.pipe(I(n=>n===e))}get fallbackBreakpoint(){return this.breakpoints?.[0]}resolveBreakpointsFromConfig(){let e=(n,i)=>{let r=this.getMinSize(n),a=Math.max(r?r+1:0,this.getMaxSize(n)||0),h=this.getMinSize(i),S=Math.max(h?h+1:0,this.getMaxSize(i)||0);return a<S?-1:0};return Object.keys(this.config).sort(e)}getMaxSize(e){let n=this.config[e];return n?typeof n=="number"?n:n.max?n.max:null:null}getMinSize(e){return this.config[e]?.min??null}getBreakpoint(e){return this.breakpoints.find(n=>{let i=this.getSize(n);return i!==null&&e<i})??this.breakpoints?.[this.breakpoints.length-1]}get config(){return this.layoutConfig?.breakpoints||{}}static{this.\u0275fac=function(n){return new(n||t)(b(Te),b(ci),b(fn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Bs=(()=>{class t{constructor(e,n,i,r){this.cms=e,this.config=n,this.breakpointService=i,this.unifiedInjector=r,this.subscription=new ve,this.logger=T(St),this.warnLogMessages={},this.logSlots={},this.subscription.add(this.unifiedInjector.getMulti(sy).subscribe(a=>this.handlers=a))}getSlots(e){return Ce([this.page$,this.breakpointService.breakpoint$]).pipe(I(([n,i])=>{let r=n.template;return{slots:this.resolveSlots(n,e,i),pageTemplate:r,breakpoint:i}}),ne(({slots:n,pageTemplate:i,breakpoint:r})=>{let a=Q(n);for(let h of this.handlers||[])a=h.handle(a,i,e,r);return a}),pe((n,i)=>{if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}))}getPageFoldSlot(e){return this.breakpointService.breakpoint$.pipe(I(n=>{if(!this.config.layoutSlots)return;let i=this.config.layoutSlots[e],r=this.getResponsiveSlotConfig(i,"pageFold",n);return r?r.pageFold:void 0}))}resolveSlots(e,n,i){let r=this.getSlotConfig(e.template??"","slots",n,i);if(r&&r.slots){let a=e.slots?Object.keys(e.slots):[];return r.slots.filter(h=>a.includes(h))}else return n?(this.logMissingLayoutConfig(e,n),[]):(this.logMissingLayoutConfig(e),e.slots?Object.keys(e.slots):[])}get page$(){return this.cms.getCurrentPage().pipe(G(e=>!!e))}get templateName$(){return this.page$.pipe(I(e=>e.template),G(Jt))}getSlotConfig(e,n,i,r){if(!this.config.layoutSlots)return;let a=this.config.layoutSlots[e];if(i)return this.getSlotConfigForSection(e,n,i,r);if(a)return this.getResponsiveSlotConfig(a,n,r)}getSlotConfigForSection(e,n,i,r){let a=this.config.layoutSlots?.[e];if(!a||!i)return;let h=a[i]?a[i]:this.config.layoutSlots?.[i];if(!h)return;let S=this.getResponsiveSlotConfig(h,n,r);if(S.hasOwnProperty(n))return S;if(a[i].hasOwnProperty(n))return a[i];if(this.config.layoutSlots?.[i])return this.config.layoutSlots[i]}getResponsiveSlotConfig(e,n,i){let r=e;if(!e||!i)return r;if(e[i]&&e[i].hasOwnProperty(n))return e[i];let a=this.breakpointService.breakpoints;for(let h of a.slice(0,a.indexOf(i)))e[h]&&e[h].hasOwnProperty(n)&&(r=e[h]);return r}logMissingLayoutConfig(e,n){if(!ct())return;e.template&&!this.logSlots[e.template]&&(this.logger.info(`Available CMS page slots: '${(e.slots?Object.keys(e.slots):[]).join("','")}'`),this.logSlots[e.template]=!0);let i=n||e.template;i&&!this.warnLogMessages[i]&&(this.logger.warn(`No layout config found for ${i}, you can configure a 'LayoutConfig' to control the rendering of page slots.`),this.warnLogMessages[i]=!0)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(ci),b(Sn),b(Wn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zd=(()=>{class t{set setTemplate(e){e?(this.useTemplateFromInput=!0,this.addStyleClass(e)):this.useTemplateFromInput&&this.clear()}constructor(e,n,i,r){this.pageLayoutService=e,this.elementRef=n,this.templateRef=i,this.cd=r,this.directiveStateTransferService=T(ry),this.transferStateKey="page-template",this.subscription=new ve,this.currentTemplate=this.directiveStateTransferService.get(this.host,this.transferStateKey)}ngOnInit(){this.useTemplateFromInput||this.subscription.add(this.pageLayoutService.templateName$.subscribe(e=>this.addStyleClass(e)))}addStyleClass(e,n){if(this.clear(n),e){let i=n??this.host;this.currentTemplate=e,i.classList.add(this.currentTemplate),this.directiveStateTransferService.set(i,this.transferStateKey,this.currentTemplate),this.cd.markForCheck()}}clear(e){this.currentTemplate&&((e??this.host).classList?.remove(this.currentTemplate),this.cd.markForCheck())}get host(){return this.templateRef?this.templateRef.elementRef.nativeElement.parentElement:this.elementRef.nativeElement}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Bs),g(z),g(J,8),g(Oe))}}static{this.\u0275dir=V({type:t,selectors:[["","cxPageTemplateStyle",""]],inputs:{setTemplate:[0,"cxPageTemplateStyle","setTemplate"]}})}}return t})(),It=(()=>{class t{set section(e){this.section$.next(e)}constructor(e){this.pageLayoutService=e,this.section$=new ke(void 0),this.templateName$=this.pageLayoutService.templateName$,this.layoutName$=this.section$.pipe(ne(n=>n?Q(n):this.templateName$)),this.slots$=this.section$.pipe(ne(n=>this.pageLayoutService.getSlots(n))),this.pageFoldSlot$=this.templateName$.pipe(ne(n=>this.pageLayoutService.getPageFoldSlot(n)),pe()),Ye("a11yB2BRegisterComponent")}static{this.\u0275fac=function(n){return new(n||t)(g(Bs))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-page-layout"]],inputs:{section:"section"},ngContentSelectors:xn,decls:2,vars:3,consts:[[4,"ngIf"],[3,"cxPageTemplateStyle","cxOutlet","cxOutletContext"],[3,"position","isPageFold",4,"ngFor","ngForOf"],[3,"position","isPageFold"]],template:function(n,i){n&1&&(ft(),f(0,oh,1,7,null,0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.layoutName$))},dependencies:[N,zd,zt,se,Wd,q],encapsulation:2,changeDetection:0})}}return t})(),nr=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,yt,Vs]})}}return t})(),ay=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),cy={pwa:{enabled:!1,addToHomeScreen:!1}},Ns=(()=>{class t{constructor(e,n,i){this.config=e,this.globalMessageService=n,this.winRef=i,this.canPrompt=new ke(!1),this.canPrompt$=this.canPrompt.asObservable(),this.config.pwa?.addToHomeScreen&&this.init()}init(){this.winRef.nativeWindow&&(this.winRef.nativeWindow.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),this.deferredEvent=e,this.enableAddToHomeScreen()}),this.winRef.nativeWindow.addEventListener("appinstalled",()=>{this.globalMessageService.add({key:"pwa.addedToHomeScreen"},Fe.MSG_TYPE_CONFIRMATION),this.disableAddToHomeScreen(),this.deferredEvent=null}))}enableAddToHomeScreen(){this.canPrompt.next(!0)}disableAddToHomeScreen(){this.canPrompt.next(!1)}firePrompt(){this.deferredEvent&&this.deferredEvent.prompt()}static{this.\u0275fac=function(n){return new(n||t)(b(ay),b(ut),b(Te))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ly=(()=>{class t{constructor(e){this.addToHomeScreenService=e}ngOnInit(){this.canPrompt$=this.addToHomeScreenService.canPrompt$}prompt(){this.addToHomeScreenService.firePrompt()}static{this.\u0275fac=function(n){return new(n||t)(g(Ns))}}static{this.\u0275dir=V({type:t})}}return t})(),pT=(()=>{class t extends ly{constructor(e){super(e),this.addToHomeScreenService=e}static{this.\u0275fac=function(n){return new(n||t)(g(Ns))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-add-to-home-screen-banner"]],features:[re],decls:2,vars:3,consts:[[4,"ngIf"],[1,"cx-add-to-home-screen-banner"],[1,"cx-add-to-home-screen-banner-inner"],[1,"btn","btn-primary",3,"click"]],template:function(n,i){n&1&&(f(0,rh,16,12,"div",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.canPrompt$))},dependencies:[N,q,$],encapsulation:2})}}return t})();function dy(t){return{enabled:!ct()&&t.pwa?.enabled||!1}}function uy(t){return()=>t}var py=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(cy),{provide:An,useFactory:dy,deps:[ze]},{provide:At,useFactory:uy,deps:[Ns],multi:!0}],imports:[L,Al.register("ngsw-worker.js"),W]})}}return t})(),Ms=new Be("BEFORE_CMS_PAGE_GUARD",{providedIn:"root",factory:()=>[]}),js=(()=>{class t{canActivate(e,n,i){if(e.length){let r=e.map(a=>this.canActivateGuard(a,n,i));return this.composeCanActivateObservables(r)}return Q(!0)}canActivateGuard(e,n,i){if(this.isCanActivate(e))return gc(e.canActivate(n,i)).pipe(hn());throw new Error("Invalid CanActivate guard")}composeCanActivateObservables(e){return io(...e).pipe(ro(n=>n===!0),va(!0),hn())}isCanActivate(e){return e&&typeof e.canActivate=="function"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),my=(()=>{class t{constructor(){this.guards=T(Ms),this.guardsComposer=T(js)}canActivate(e,n){return this.guardsComposer.canActivate(this.guards,e,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),hy=(()=>{class t{constructor(e,n){this.router=e,this.cmsComponentsService=n,this.guardsComposer=T(js),this.unifiedInjector=T(Wn)}cmsRouteExists(e){let n=e.startsWith("/");if(!n)return!1;let i=e.substring(1);return n&&!!this.router.config.find(r=>r.data&&r.data.cxCmsRouteContext&&r.path===i)}handleCmsRoutesInGuard(e,n,i,r){if(this.cmsRouteExists(r))return!0;let a=this.cmsComponentsService.getChildRoutes(n);return a?.children?.length&&this.updateRouting(e,r,a)?(this.router.navigateByUrl(i),!1):!0}updateRouting(e,n,i){if(e.type===Zt.CONTENT_PAGE&&n.startsWith("/")&&n.length>1){let r=this.wrapCmsGuardsRecursively(i.children??[]),a={path:n.substring(1),component:It,children:r,data:uo({},i?.parent?.data??{},{cxCmsRouteContext:{type:e.type,id:n}})};return this.router.resetConfig([a,...this.router.config]),!0}return!1}wrapCmsGuardsRecursively(e){return e.map(n=>{if(n.children&&(n.children=this.wrapCmsGuardsRecursively(n.children)),n?.canActivate?.length){let i=n.canActivate.map(r=>this.wrapCmsGuard(r));return ce(U({}
11,n),{canActivate:i})}return n})}wrapCmsGuard(e){return(n,i)=>{let a=Br(this.unifiedInjector.get(e))??{canActivate:e};return this.guardsComposer.canActivate([a],n,i)}}static{this.\u0275fac=function(n){return new(n||t)(b(lt),b(cn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),fy=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(hy),i},providedIn:"root"})}}return t})(),gy=(()=>{class t{constructor(e,n,i){this.cmsComponentsService=e,this.translation=n,this.translationChunk=i}loadForComponents(e){let n=this.cmsComponentsService.getI18nKeys(e),i=new Set;for(let r of n)i.add(this.translationChunk.getChunkNameForKey(r));this.translation.loadChunks(Array.from(i))}static{this.\u0275fac=function(n){return new(n||t)(b(cn),b(pt),b(Ac))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _y(t){return t&&typeof t.canActivate=="function"}var vy=(()=>{class t{constructor(e,n){this.cmsComponentsService=e,this.unifiedInjector=n,this.guardsComposer=T(js)}cmsPageCanActivate(e,n,i){let a=this.cmsComponentsService.getGuards(e).map(h=>Br(this.unifiedInjector.get(h))).filter(_y);return this.guardsComposer.canActivate(a,n,i)}static{this.\u0275fac=function(n){return new(n||t)(b(cn),b(Wn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Cy=(()=>{class t{constructor(e,n,i,r,a,h,S){this.semanticPathService=e,this.cmsService=n,this.cmsRoutes=i,this.cmsI18n=r,this.cmsGuards=a,this.cmsComponentsService=h,this.routing=S}canActivatePage(e,n,i,r){return this.cmsService.getPageComponentTypes(e).pipe(le(1),ne(a=>this.cmsComponentsService.determineMappings(a)),ne(a=>this.cmsGuards.cmsPageCanActivate(a,i,r).pipe(gi(Q(a)))),Z(([a,h])=>{a===!0&&this.cmsI18n.loadForComponents(h)}),I(([a,h])=>{let S=n.label||e.id;return a===!0&&!i?.data?.cxCmsRouteContext?this.cmsRoutes.handleCmsRoutesInGuard(e,h,r.url,S):a}))}canActivateNotFoundPage(e,n,i){let r=this.semanticPathService.get("notFound");if(!r)return Q(!1);let a={type:Zt.CONTENT_PAGE,id:r};return this.cmsService.getPage(a).pipe(ne(h=>h?this.cmsService.getPageIndex(a).pipe(Z(S=>{this.cmsService.setPageFailIndex(e,S),this.routing.changeNextPageContext(a)}),ne(S=>this.cmsService.getPageIndex(e).pipe(G(k=>k===S))),ne(()=>this.canActivatePage(e,h,n,i))):Q(!1)))}static{this.\u0275fac=function(n){return new(n||t)(b(qn),b(_t),b(fy),b(gy),b(vy),b(cn),b(dt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wt=(()=>{class t{static{this.guardName="CmsPageGuard"}constructor(e,n,i,r,a){this.routingService=e,this.cmsService=n,this.protectedRoutesGuard=i,this.service=r,this.routingConfig=a,this.beforeCmsPageGuardService=T(my)}canActivate(e,n){return this.beforeCmsPageGuardService.canActivate(e,n).pipe(ne(i=>i===!0?this.routingService.getNextPageContext().pipe(G(Jt),le(1),ne(r=>this.cmsService.getPage(r,this.shouldReload()).pipe(hn(),ne(a=>a?this.service.canActivatePage(r,a,e,n):this.service.canActivateNotFoundPage(r,e,n))))):Q(i)))}shouldReload(){return this.routingConfig.getLoadStrategy()!==xc.ONCE}static{this.\u0275fac=function(n){return new(n||t)(b(dt),b(_t),b(Co),b(Cy),b(bc))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yy={path:"**",canActivate:[Wt],component:It};function xy(t){return()=>{t.get(lt).config.push(yy)}}var by=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[{provide:At,multi:!0,deps:[Pe],useFactory:xy}]})}}return t})(),Sy=()=>{let t=T(bt),o={routing:{routes:{home:{paths:[""]},notFound:{paths:["not-found"]},login:{paths:[t.authorizationCodeFlowByDefault?"sign-in":"login"],protected:!1,authFlow:!0},verifyToken:{paths:["login/verify-token"],protected:!1,authFlow:!0},verifyTokenForRegistration:{paths:["register/verify-token"],protected:!1,authFlow:!0},register:{paths:["login/register"],protected:!1,authFlow:!0},forgotPassword:{paths:["login/forgot-password"],protected:!1,authFlow:!0},resetPassword:{paths:["login/pw/change"],protected:!1,authFlow:!0},logout:{paths:["logout"],protected:!1,authFlow:!0},search:{paths:["search/:query"]}
11,category:{paths:["category/:categoryCode"],paramsMapping:{categoryCode:"code"}},brand:{paths:["Brands/:brandName/c/:brandCode"]},product:{paths:["product/:productCode/:name","product/:productCode"],paramsMapping:{productCode:"code"}},termsAndConditions:{paths:["terms-and-conditions"]},coupons:{paths:["my-account/coupons"]},couponClaim:{paths:["my-account/coupon/claim/:couponCode"],paramsMapping:{couponCode:"code"}},myInterests:{paths:["my-account/my-interests"]},notificationPreference:{paths:["my-account/notification-preference"]}}}};return t.authorizationCodeFlowByDefault&&((o.routing?.routes).loginForm={paths:["login"],protected:!1,authFlow:!0}),o},wy=(()=>{class t{static forRoot(){return{ngModule:t,providers:[po(Sy),{provide:Ms,useExisting:Co,multi:!0},{provide:Ms,useExisting:Tc,multi:!0}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[kc.forRoot(),by]})}}return t})(),Ty={seo:{structuredData:{disableInDevMode:!0}}},Iy=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),Ey={provide:At,multi:!0,useFactory:Dy,deps:[Te,zn]};function Dy(t,o){return()=>{o.getActive().subscribe(n=>{t.document.documentElement.lang=n.replace(/_/g,"-")})}}var qd=(()=>{class t{constructor(e,n){this.winRef=e,this.rendererFactory=n,this.document=T(ot)}setCanonicalLink(e){let n=this.winRef.document.querySelector('link[rel="canonical"]');if(!e){n?.remove();return}n?n?.setAttribute("href",e):(n=this.renderer.createElement("link"),n.rel="canonical",n.href=e,this.renderer.appendChild(this.winRef.document.head,n))}addPreconnectLink(e){if(this.document.head.querySelector(`link[rel="preconnect"][href="${e}"]`))return;let i=this.renderer.createElement("link");this.renderer.setAttribute(i,"rel","preconnect"),this.renderer.setAttribute(i,"href",e),this.document.head.insertBefore(i,this.document.head.firstChild)}get renderer(){return this.rendererFactory.createRenderer(null,null)}static{this.\u0275fac=function(n){return new(n||t)(b(Te),b(kt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),My=(()=>{class t{constructor(e,n,i,r){this.ngTitle=e,this.ngMeta=n,this.pageMetaService=i,this.pageMetaLinkService=r}init(){this.subscription=this.pageMetaService.getMeta().pipe(G(gn)).subscribe(e=>this.meta=e)}set meta(e){this.title=e.title,this.description=e.description,this.image=e.image,this.robots=e.robots,this.canonicalUrl=e.canonicalUrl}set title(e){this.ngTitle.setTitle(e||"")}set description(e){e?this.addTag({name:"description",content:e||""}):this.ngMeta.removeTag('name="description"')}set image(e){e?this.addTag({name:"og:image",content:e}):this.ngMeta.removeTag('name="og:image"')}set robots(e){e&&e.length>0&&this.addTag({name:"robots",content:e.join(", ")})}set canonicalUrl(e){this.pageMetaLinkService?.setCanonicalLink(e)}addTag(e){e.content&&this.ngMeta.updateTag(e)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(Ua),b(Ha),b(yo),b(qd))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fy=(()=>{class t{constructor(e,n,i,r){this.platformId=e,this.winRef=n,this.rendererFactory=i,this.config=r,this.renderer=this.rendererFactory.createRenderer(null,null)}build(e){e&&this.isJsonLdRequired()&&(this.getJsonLdScriptElement().textContent=this.escapeHtml(e))}isJsonLdRequired(){return!Ti(this.platformId)||ct()&&!this.config.seo?.structuredData?.disableInDevMode}getJsonLdScriptElement(){let e="json-ld",n=this.winRef.document.getElementById(e);if(!n){let i=this.renderer.createElement("script");i.id=e,i.type="application/ld+json",this.renderer.appendChild(this.winRef.document.body,i),n=i}return n}escapeHtml(e){let n=this.renderer.createElement("div");return n.textContent=JSON.stringify(e),n.innerHTML}static{this.\u0275fac=function(n){return new(n||t)(b(fn),b(Te),b(kt),b(Iy))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ky=new Be("SchemaBuilderToken");var Ay=(()=>{class t{constructor(e,n){this.scriptBuilder=e,this.builders=n,this.subscription=new ve}build(){this.scriptBuilder.isJsonLdRequired()&&this.builders&&this.subscription.add(this.collectSchemas().subscribe(e=>{this.scriptBuilder.build(e)}))}collectSchemas(){return Ce(this.builders.map(e=>e.build()))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(Fy),b(ky,8))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ry(t){return()=>{t.get(Ay).build()}}var Py=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[{provide:At,useFactory:Ry,deps:[Pe],multi:!0}],imports:[L]})}}return t})();function Oy(t){return()=>{t.get(My).init()}}var Ly=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(Ty),{provide:At,useFactory:Oy,deps:[Pe],multi:!0},Ey],imports:[Py]})}}return t})(),Vy="data-cx-focus",Kd="data-cx-focus-group",nn=(function(t){return t[t.NEXT=1]="NEXT",t[t.PREV=-1]="PREV",t})(nn||{}),Fs=(function(t){return t.start="start",t.end="end",t.both="both",t})(Fs||{}),$s=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),By=(()=>{class t{constructor(e,n){this.elementRef=e,this.service=n,this.defaultConfig={}}ngOnInit(){this.setDefaultConfiguration(),this.requiredTabindex=-1}ngOnChanges(e){}setDefaultConfiguration(){(!this.config||this.config==="")&&this.defaultConfig&&(this.config=this.defaultConfig)}get host(){return this.elementRef.nativeElement}set requiredTabindex(e){this.requiresExplicitTabIndex&&(this.tabindex=e)}get requiresExplicitTabIndex(){return this.tabindex===void 0&&["button","input","select","textarea"].indexOf(this.host.tagName.toLowerCase())===-1&&!(this.host.tagName==="A"&&(this.host.hasAttribute("href")||this.host.hasAttribute("routerlink")||this.host.getAttribute("ng-reflect-router-link")))}static{this.\u0275fac=function(n){return new(n||t)(g(z),g($s))}}static{this.\u0275dir=V({type:t,hostVars:1,hostBindings:function(n,i){n&2&&M("tabindex",i.tabindex)},inputs:{tabindex:"tabindex"},features:[Ee]})}}return t})(),Ny=(()=>{class t extends By{constructor(){super(...arguments),this.defaultConfig={disableMouseFocus:!0},this.featureToggles=T(bt),this.mouseFocus=!1}handleMousedown(){this.shouldFocusVisible&&(this.mouseFocus=!0)}handleKeydown(e){this.shouldFocusVisible&&(this.mouseFocus=!this.isNavigating(e))}get shouldFocusVisible(){return this.config?.disableMouseFocus}isNavigating(e){if(e.metaKey)return!1;if(e.code==="Tab")return!0;
11if(["INPUT","TEXTAREA"].includes(e.target.tagName)){if(this.featureToggles.a11yConsentManagementFocusPreservation){let n=e.target.type;if((e.code==="Space"||e.code==="Enter")&&(n==="checkbox"||n==="radio"))return!0}return!1}return!0}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275dir=V({type:t,hostVars:2,hostBindings:function(n,i){n&1&&y("mousedown",function(){return i.handleMousedown()})("keydown",function(a){return i.handleKeydown(a)}),n&2&&te("mouse-focus",i.mouseFocus)},features:[re]})}}return t})(),jy=(()=>{class t extends Ny{constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={block:!0},this.config={}}ngOnInit(){super.ngOnInit(),this.config.block&&(this.tabindex=-1)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g($s))}}static{this.\u0275dir=V({type:t,features:[re]})}}return t})(),xs="_g_",Qd=(()=>{class t extends $s{constructor(){super(...arguments),this.focus=new Map}get(e){return this.focus.get(e||xs)}set(e,n){e&&this.focus.set(n||xs,e)}clear(e){this.focus.delete(e||xs)}getPersistenceGroup(e,n){return n?.group?n.group:e?.getAttribute(Kd)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$y=(()=>{class t extends jy{handleFocus(e){this.service.set(this.key,this.group),e?.preventDefault(),e?.stopPropagation()}constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={},this.persistFeatureToggles=T(bt),this.config={}}ngOnInit(){super.ngOnInit(),this.attr=this.key?this.key:void 0}setDefaultConfiguration(){typeof this.config=="string"&&this.config!==""&&(this.config={key:this.config}),super.setDefaultConfiguration()}ngAfterViewInit(){this.isPersisted&&(this.persistFeatureToggles.a11yRestoreFocusOnNgSelect?(this.focusTarget.focus({preventScroll:!0}),this.config?.clearOnRestore&&this.service.clear(this.group??void 0)):this.host.focus({preventScroll:!0}))}get focusTarget(){let e=this.config?.focusTargetSelector;return(e?this.host.querySelector(e):null)??this.host}get isPersisted(){return!!this.key&&this.service.get(this.group)===this.key}get key(){return this.config?.key}get group(){return this.service.getPersistenceGroup(this.host,this.config)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Qd))}}static{this.\u0275dir=V({type:t,hostVars:1,hostBindings:function(n,i){n&1&&y("focus",function(a){return i.handleFocus(a)}),n&2&&M("data-cx-focus",i.attr)},features:[re]})}}return t})(),Yd=(()=>{class t{constructor(){this.focusableSelectors=["a[href]","button","[tabindex]","input","select","textarea"],this.focusableSelectorSuffix=":not([disabled]):not([hidden]):not([aria-hidden])"}query(e,n){return!n||n===""?[]:Array.from(e?.querySelectorAll(n))}findFirstFocusable(e,n={autofocus:!0}){let i=typeof n?.autofocus=="string"?n.autofocus:"[autofocus]";return this.query(e,i).find(r=>!this.isHidden(r))||this.findFocusable(e).find(r=>!!r)}findFocusable(e,n=!1,i=!1){let r=this.focusableSelectorSuffix;n||(r+=":not([tabindex='-1'])");let a=this.focusableSelectors.map(h=>h+=r).join(",");return this.query(e,a).filter(h=>i?!!h:!this.isHidden(h))}isHidden(e){return e.offsetParent===null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xd=(()=>{class t extends Qd{constructor(e){super(),this.selectFocusUtil=e}shouldFocus(e){return!!e?.focusOnEscape}handleEscape(e,n,i){this.shouldFocus(n)&&(e!==i.target?(e.focus({preventScroll:!0}),i.preventDefault(),i.stopPropagation()):n?.focusOnDoubleEscape&&this.selectFocusUtil.findFirstFocusable(e,{autofocus:!0})?.focus())}static{this.\u0275fac=function(n){return new(n||t)(b(Yd))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hy=(()=>{class t extends $y{handleEscape(e){this.service.shouldFocus(this.config)&&this.service.handleEscape(this.host,this.config,e),this.esc.emit(this.service.shouldFocus(this.config))}constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={focusOnEscape:!0},this.esc=new oe}ngOnInit(){this.service.shouldFocus(this.config)&&(this.requiredTabindex=-1),super.ngOnInit()}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Xd))}}static{this.\u0275dir=V({type:t,hostBindings:function(n,i){n&1&&y("keydown.escape",function(a){return i.handleEscape(a)})},outputs:{esc:"esc"},features:[re]})}}return t})(),Hs=(()=>{class t extends Xd{findFirstFocusable(e,n={autofocus:!0}){return n?.autofocus===":host"?e:this.hasPersistedFocus(e,n)?this.getPersisted(e,this.getPersistenceGroup(e,n)):this.selectFocusUtil.findFirstFocusable(e,n)||e}hasPersistedFocus(e,n){return!!this.getPersisted(e,this.getPersistenceGroup(e,n))}getPersisted(e,n){if(!this.get(n))return;let i=Array.from(e?.querySelectorAll(`[${Vy}='${this.get(n)}']`));return i.length>0?i[0]:void 0}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uy=(()=>{class t extends Hy{constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={autofocus:!0}}ngAfterViewInit(){this.shouldAutofocus&&this.handleFocus(),(!this.shouldAutofocus||this.hasPersistedFocus)&&super.ngAfterViewInit()}ngOnChanges(e){e.config?.currentValue?.refreshFocus&&(this.config.autofocus||(this.config.autofocus=!0),this.handleFocus()),super.ngOnChanges(e)}handleFocus(e){this.shouldAutofocus&&(!e?.target||e.target===this.host?this.firstFocusable?.focus():e.target.focu
11s()),super.handleFocus(e)}get hasPersistedFocus(){return this.service.hasPersistedFocus(this.host,this.config)}get shouldAutofocus(){return!!this.config?.autofocus}get firstFocusable(){return this.service.findFirstFocusable(this.host,this.config)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Hs))}}static{this.\u0275dir=V({type:t,features:[re,Ee]})}}return t})(),Zd=(()=>{class t extends Hs{moveTab(e,n,i,r){n?.tab&&((n.tab==="scroll"?this.findNextScrollable(e,n,i):this.findNext(e,n,i))?.focus(),r.preventDefault(),r.stopPropagation())}findNextScrollable(e,n,i){let r=this.getActiveChild(e,n);if(!r)return;let a=Math.round(e.scrollWidth/e.clientWidth),S=Math.round(r.offsetLeft/(e.scrollWidth/a))+i;return i===nn.NEXT&&S>=a&&(S=0),i===nn.PREV&&S<0&&(S=a-1),this.getChildren(e,n)?.find(K=>K.offsetLeft>=e.scrollWidth/a*S)}findNext(e,n,i){let r=this.getChildren(e,n),a=r?.findIndex(h=>h===this.getActiveChild(e,n));return(!a||a===-1)&&(a=0),a+=i,i===nn.NEXT&&a>=r?.length&&(a=r.length-1),i===nn.PREV&&a<0&&(a=0),r?r[a]:void 0}getActiveChild(e,n){let i=this.getPersisted(e,n?.group);if(i)return i;
11let r=this.getChildren(e,n),a=r.findIndex(h=>this.isActive(h));return(!a||a===-1)&&(a=0),r[a]}getChildren(e,n){return typeof n.tab=="string"&&n.tab!=="scroll"?this.selectFocusUtil.query(e,n.tab):this.findFocusable(e,!0)}findFocusable(e,n=!1,i=!1){return this.selectFocusUtil.findFocusable(e,n,i)}isActive(e){let n=document.activeElement,i=n?.tagName;return e===n||!!i&&!!Array.from(e.querySelectorAll(i)).find(r=>r===n)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Gy=(()=>{class t extends Uy{handleNextTab(e){this.config?.tab&&this.service.moveTab(this.host,this.config,nn.NEXT,e)}handlePreviousTab(e){this.config?.tab&&this.service.moveTab(this.host,this.config,nn.PREV,e)}constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={tab:!0},this.config={}}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Zd))}}static{this.\u0275dir=V({type:t,hostBindings:function(n,i){n&1&&y("keydown.arrowRight",function(a){return i.handleNextTab(a)})("keydown.arrowLeft",function(a){return i.handlePreviousTab(a)})},features:[re]})}}return t})(),Jd=(()=>{class t extends Zd{hasFocusableChildren(e){return this.findFocusable(e).length>0}moveFocus(e,n,i,r){let a=this.findFocusable(e),h=a.findIndex(K=>K===r.target)+i,S=n.trap||n.trapTabOnly;(h>=0&&h<a.length||h<0&&this.getTrapStart(S)||h>=a.length&&this.getTrapEnd(S))&&(h>=a.length&&(h=0),h<0&&(h=a.length-1),r.preventDefault(),r.stopPropagation(),a[h].focus())}getTrapStart(e){return e===!0||e===Fs.start}getTrapEnd(e){return e===!0||e===Fs.end}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wy=(()=>{class t extends Gy{constructor(e,n){super(e,n),this.elementRef=e,this.service=n,this.defaultConfig={trap:!0},this.config={},this.handleTrapDown=i=>{let r=i.key==="Tab";(this.config.trap||this.config.trapTabOnly&&r)&&this.moveFocus(i,nn.NEXT)},this.handleTrapUp=i=>{let r=i.key==="Tab";(this.config.trap||this.config.trapTabOnly&&r)&&this.moveFocus(i,nn.PREV)}}moveFocus(e,n){this.service.hasFocusableChildren(this.host)&&this.service.moveFocus(this.host,this.config,n,e)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Jd))}}static{this.\u0275dir=V({type:t,hostBindings:function(n,i){n&1&&y("keydown.arrowdown",function(a){return i.handleTrapDown(a)})("keydown.tab",function(a){return i.handleTrapDown(a)})("keydown.arrowup",function(a){return i.handleTrapUp(a)})("keydown.shift.tab",function(a){return i.handleTrapUp(a)})},features:[re]})}}return t})(),eu=(()=>{class t extends Jd{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zy=!0,qy=(()=>{class t extends Wy{handleEnter(e){this.shouldLock&&this.host===e.target&&(this.unlockFocus(e),e.preventDefault(),e.stopPropagation())}handleClick(e){this.shouldLock&&this.isLocked&&(this.unlockFocus(e),e.stopPropagation())}constructor(e,n,i){super(e,n),this.elementRef=e,this.service=n,this.renderer=i,this.defaultConfig={lock:!0},this.config={},this.unlock=new oe}lockFocus(){this.addTabindexToChildren(-1)}unlockFocus(e){this.unlock.emit(!0),this.addTabindexToChildren(0),e?.target===this.host&&setTimeout(()=>{super.handleFocus(e)},100)}ngOnInit(){super.ngOnInit(),this.shouldLock=this.config?.lock,this.shouldLock&&(this.tabindex=0,this.config.hasOwnProperty("autofocus")||(this.config.autofocus=!0),this.config.hasOwnProperty("focusOnEscape")||(this.config.focusOnEscape=this.config?.focusOnEscape!==!1))}ngAfterViewInit(){if(this.shouldLock){if(this.group){let e=this.group;this.service.findFocusable(this.host).forEach(n=>this.renderer.setAttribute(n,Kd,e))}this.shouldAutofocus&&this.handleFocus()}super.ngAfterViewInit()}handleFocus(e){if(this.shouldLock)if(this.shouldUnlockAfterAutofocus(e))setTimeout(()=>this.unlockFocus(e));else{setTimeout(()=>this.lockFocus()),e?.stopPropagation();return}super.handleFocus(e)}handleEscape(e){this.shouldLock&&this.service.clear(this.config.group),super.handleEscape(e)}shouldUnlockAfterAutofocus(e){return!e&&this.service.hasPersistedFocus(this.host,this.config)}addTabindexToChildren(e=0){this.shouldLock&&(this.isLocked=e===-1,(!(this.hasFocusableChildren&&e===0)||e===0)&&this.focusable.forEach(n=>this.renderer.setAttribute(n,"tabindex",e.toString())))}get hasFocusableChildren(){return this.service.hasFocusableChildren(this.host)}get focusable(){return this.service.findFocusable(this.host,this.shouldLock,zy)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(eu),g(De))}}static{this.\u0275dir=V({type:t,hostVars:4,hostBindings:function(n,i){n&1&&y("keydown.enter",function(a){return i.handleEnter(a)})("keydown.space",function(a){return i.handleEnter(a)})("click",function(a){return i.handleClick(a)}),n&2&&te("focus-lock",i.shouldLock)("is-locked",i.isLocked)},outputs:{unlock:"unlock"},features:[re]})}}return t})(),ir=(()=>{class t extends eu{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$e=(()=>{class t extends qy{constructor(e,n,i){super(e,n,i),this.elementRef=e,this.service=n,this.renderer=i,this.defaultConfig={},this.config={}}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(ir),g(De))}}static{this.\u0275dir=V({type:t,selectors:[["","cxFocus",""]],inputs:{config:[0,"cxFocus","config"]},features:[re]})}}return t})(),Ky=(()=>{class t{constructor(){this.config={isEnabled:!1},this.elementRef=T(z),this.winRef=T(Te),this.renderer=T(De)}ngOnChanges(){this.excludeFromFocus(this.config.isEnabled,this.config.activeElementSelectors)}excludeFromFocus(e,n=[]){if(!this.winRef.isBrowser())return;let i=e?"-1":"0",a=this.elementRef.nativeElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
11([tabindex="-1"]');Array.from(a||[]).forEach(h=>{let S=h;!n.some(K=>S.matches(K))&&this.isElementVisible(S)&&this.renderer.setAttribute(S,"tabindex",i)})}isElementVisible(e){let n=this.winRef.nativeWindow?.getComputedStyle(e);return n?.visibility!=="hidden"&&n?.display!=="none"&&e.offsetWidth>0&&e.offsetHeight>0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","cxSkipFocus",""]],inputs:{config:[0,"cxSkipFocus","config"]},features:[Ee]})}}return t})();var qe=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),Qy=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})();var Us=(()=>{class t{constructor(e,n){this.config=e,this.keyboardFocusService=n,this.skipLinks$=new ke([])}getSkipLinks(){return this.skipLinks$}add(e,n){let i=this.config.skipLinks?.find(r=>r.key===e);if(i){let r=this.skipLinks$.value;r.splice(this.getSkipLinkIndexInArray(e),0,{target:n,i18nKey:i.i18nKey,position:i.position,key:e}),this.skipLinks$.next(r)}}remove(e){if(this.config.skipLinks?.find(i=>i.key===e)){let i=this.skipLinks$.value;i=i.filter(r=>r.key!==e),this.skipLinks$.next(i)}}scrollToTarget(e){let n=typeof e=="string"?this.findSkipLinkByKey(e):e;if(!n)return;let i=n.target instanceof HTMLElement?n.target:n.target?.parentElement,r=this.keyboardFocusService.findFirstFocusable(i)||i,a=r?.hasAttribute("tabindex");a||r?.setAttribute("tabindex","-1"),r?.focus(),a||r?.removeAttribute("tabindex")}findSkipLinkByKey(e){return this.skipLinks$.value.find(n=>n.key===e)}getSkipLinkIndexInArray(e){let n=this.config.skipLinks?.findIndex(i=>i.key===e)??0;for(;n>0;){n--;let i=this.config.skipLinks?.[n];if(i){let a=this.skipLinks$.value.findIndex(h=>h.key===i.key);if(a>-1)return a+1}}return 0}static{this.\u0275fac=function(n){return new(n||t)(b(Qy),b(ir))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tu=(()=>{class t{constructor(e){this.skipLinkService=e,this.skipLinks$=this.skipLinkService.getSkipLinks()}scrollToTarget(e){this.skipLinkService.scrollToTarget(e)}static{this.\u0275fac=function(n){return new(n||t)(g(Us))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-skip-link"]],decls:2,vars:3,consts:[[3,"cxFocus",4,"ngIf"],[3,"cxFocus"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(n,i){n&1&&(f(0,ch,2,3,"div",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.skipLinks$))},dependencies:[N,$e,se,q,$],encapsulation:2,changeDetection:0})}}return t})(),ud={skipLinks:[{key:"cx-header",i18nKey:"skipLink.labels.header"},{key:"cx-main",i18nKey:"skipLink.labels.main"},{key:"cx-footer",i18nKey:"skipLink.labels.footer"}]},Yy=(()=>{class t{constructor(e,n){this.elementRef=e,this.skipLinkService=n}ngOnInit(){this.skipLinkService.add(this.cxSkipLink,this.elementRef.nativeElement)}ngOnDestroy(){this.skipLinkService.remove(this.cxSkipLink)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(Us))}}static{this.\u0275dir=V({type:t,selectors:[["","cxSkipLink",""]],inputs:{cxSkipLink:"cxSkipLink"}})}}return t})(),nu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(ud),{provide:At,useFactory:Xy,deps:[Ft,Pn],multi:!0}],imports:[L,W,Nr.withConfig(ud),qe]})}}return t})();function Xy(t,o){return()=>{let n=t.resolveComponentFactory(tu);o.add("cx-storefront",n,Ge.BEFORE)}}var Zy={breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:{min:1200}}},Jy={direction:{detect:!0,default:yn.LTR,rtlLanguages:["he","ar"]}},ex=(()=>{class t{constructor(e,n,i){this.configInit=e,this.languageService=n,this.winRef=i,this.startsDetecting=!1,this.subscription=new ve}initialize(){return pa(this.configInit.getStable("direction").pipe(Z(e=>{this.config=e?.direction,this.config?.detect?this.detect():this.setDirection(this.winRef.document.documentElement,this.config?.default)})))}detect(){this.startsDetecting||(this.subscription.add(this.languageService.getActive().subscribe(e=>this.setDirection(this.winRef.document.documentElement,this.getDirection(e)))),this.startsDetecting=!0)}
11setDirection(e,n){n?e.setAttribute("dir",n):e.removeAttribute("dir")}getDirection(e){return e&&this.config?.rtlLanguages?.includes(e)?yn.RTL:e&&this.config?.ltrLanguages?.includes(e)?yn.LTR:this.config?.default}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(fo),b(zn),b(Te))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function tx(t){return()=>t.initialize()}var nx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[{provide:At,multi:!0,useFactory:tx,deps:[ex]},X(Jy)]})}}return t})(),Tt=(function(t){return t.POPOVER="POPOVER",t.POPOVER_CENTER="POPOVER_CENTER",t.POPOVER_CENTER_BACKDROP="POPOVER_CENTER_BACKDROP",t.DIALOG="DIALOG",t.SIDEBAR_START="SIDEBAR_START",t.SIDEBAR_END="SIDEBAR_END",t})(Tt||{}),li=(function(t){return t.ASM="ASM",t.SKIP_LINKS="SKIP_LINKS",t.ANONYMOUS_CONSENT="ANONYMOUS_CONSENT",t.REPLENISHMENT_ORDER="REPLENISHMENT_ORDER",t.PLACE_ORDER_SPINNER="PLACE_ORDER_SPINNER",t.SUGGESTED_ADDRESSES="SUGGESTED_ADDRESSES",t.COUPON="COUPON",t.CLAIM_DIALOG="CLAIM_DIALOG",t.STOCK_NOTIFICATION="STOCK_NOTIFICATION",t})(li||{}),on=(()=>{let t=class{constructor(e,n){this.document=e,this.rendererFactory=n,this.renderedCallers=[],this.dialogClasses=["d-block","fade","modal","show"],this.popoverClasses=["cx-dialog-popover"],this.popoverCenterClasses=["cx-dialog-popover-center"],this.popoverCenterBackdropClasses=["cx-dialog-popover-center-backdrop"],this.sidebarEndClasses=["cx-sidebar-end"],this.sidebarStartClasses=["cx-sidebar-start"],this.renderer=n.createRenderer(null,null)}shouldRender(e,n){return!!n.component&&(this.renderedCallers.some(i=>i.caller===e)?!!n.multi:!0)}applyClasses(e,n){let i=[];switch(n){case Tt.DIALOG:i=this.dialogClasses,this.renderer.addClass(this.document.body,"modal-open");break;case Tt.POPOVER:i=this.popoverClasses;break;case Tt.POPOVER_CENTER:i=this.popoverCenterClasses;break;case Tt.POPOVER_CENTER_BACKDROP:i=this.popoverCenterBackdropClasses;break;case Tt.SIDEBAR_END:i=this.sidebarEndClasses;break;case Tt.SIDEBAR_START:i=this.sidebarStartClasses;break}for(let r of i)this.renderer.addClass(e.location.nativeElement,r)}remove(e,n){this.renderedCallers=this.renderedCallers.filter(i=>i.caller!==e),n?.dialogType===Tt.DIALOG&&this.renderer.removeClass(this.document.body,"modal-open")}getPriority(){return ho.LOW}};return t=da([ua(0,Ta(ot))],t),t})(),ix=(()=>{class t extends on{constructor(e,n,i){super(e,n),this.document=e,this.rendererFactory=n,this.componentFactoryResolver=i,this.logger=T(St)}render(e,n,i){if(i&&this.shouldRender(n,e)){let r=this.componentFactoryResolver.resolveComponentFactory(e.component),a=i.createComponent(r);return e?.dialogType&&this.applyClasses(a,e?.dialogType),this.renderedCallers.push({caller:n,element:i.element,component:a}),Q(a)}else ct()&&(i?this.logger.warn(`Element for ${n} already rendered. To allow multi rendering add property multi: true.`):this.logger.warn(`No view container ref provided for ${n}`))}hasMatch(e){return!!e.inline}static{this.\u0275fac=function(n){return new(n||t)(b(ot),b(kt),b(Ft))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ox=(()=>{class t extends on{constructor(e,n,i,r){super(e,n),this.document=e,this.rendererFactory=n,this.componentFactoryResolver=i,this.injector=r}get hostComponent(){return this.injector.get(Qt)?.components?.[0]}render(e,n){if(this.shouldRender(n,e)){let i=this.componentFactoryResolver.resolveComponentFactory(e.component),r=Pe.create({providers:[]}),a=i.create(r);return this.injector.get(Qt)?.attachView(a.hostView),this.renderer.appendChild(this.hostComponent?.location.nativeElement,a.location.nativeElement),e?.dialogType&&this.applyClasses(a,e?.dialogType),this.renderedCallers.push({caller:n,component:a}),Q(a)}}hasMatch(e){return!!e.inlineRoot}static{this.\u0275fac=function(n){return new(n||t)(b(ot),b(kt),b(Ft),b(Pe))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ln=(()=>{class t{get data$(){return this._dataSubject.asObservable()}constructor(e,n){this.renderStrategies=e,this.layoutConfig=n,this._dialogClose=new ke(void 0),this._dataSubject=ne
11w ke(void 0),this.logger=T(St),this.autoFocusService=T(Hs),this.renderStrategies=this.renderStrategies||[]}openDialog(e,n,i,r){let a=this.launch(e,i,r);if(a)return Ce([a,this.dialogClose]).pipe(G(([,h])=>h!==void 0),Z(([h])=>{this.focusElement(n?.nativeElement),this.clear(e),h?.destroy()}),I(([h])=>h))}launch(e,n,i){let r=this.findConfiguration(e);if(r){let a=this.getStrategy(r);if(a)return this._dialogClose.next(void 0),this._dataSubject.next(i),a.render(r,e,n)}else ct()&&this.logger.warn("No configuration provided for caller "+e)}openDialogAndSubscribe(e,n,i){this.openDialog(e,n,void 0,i)?.pipe(le(1)).subscribe()}clear(e){let n=this.findConfiguration(e);if(n){let i=this.getStrategy(n);i&&i.remove(e,n)}}get dialogClose(){return this._dialogClose.asObservable()}closeDialog(e){this._dialogClose.next(e)}focusElement(e){if(!e)return;let n=this.autoFocusService.findFirstFocusable(e)??e,i=n.hasAttribute("tabindex");i||n.setAttribute("tabindex","-1"),n.focus(),i||n.removeAttribute("tabindex")}findConfiguration(e){if(this.layoutConfig?.launch)return this.layoutConfig.launch[e]}getStrategy(e){return Vr(this.renderStrategies,[e])}static{this.\u0275fac=function(n){return new(n||t)(b(on),b(ci))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rx=(()=>{class t extends on{constructor(e,n,i,r,a){super(e,n),this.document=e,this.rendererFactory=n,this.outletService=i,this.componentFactoryResolver=r,this.outletRendererService=a}render(e,n){if(this.shouldRender(n,e)){let i=this.componentFactoryResolver.resolveComponentFactory(e.component);return this.outletService.add(e.outlet,i,e.position?e.position:Ge.BEFORE),this.outletRendererService.render(e.outlet),this.renderedCallers.push({caller:n}),this.outletRendererService.getOutletRef(e.outlet).pipe(I(r=>r.renderedComponents.get(e.position?e.position:Ge.BEFORE).reverse().find(h=>h.componentType===i.componentType)),Z(r=>{e?.dialogType&&r&&this.applyClasses(r,e?.dialogType)}))}}hasMatch(e){return!!e.outlet}remove(e,n){let i=this.componentFactoryResolver.resolveComponentFactory(n.component);this.outletService.remove(n.outlet,n.position?n.position:Ge.BEFORE,i),super.remove(e,n)}static{this.\u0275fac=function(n){return new(n||t)(b(ot),b(kt),b(Pn),b(Ft),b(Bd))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sx=(()=>{class t extends on{constructor(e,n,i){super(e,n),this.document=e,this.rendererFactory=n,this.routingService=i}render(e,n){this.routingService.go(e)}hasMatch(e){return!!e.cxRoute}static{this.\u0275fac=function(n){return new(n||t)(b(ot),b(kt),b(dt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ax=(()=>{class t{static forRoot(){return{ngModule:t,providers:[{provide:ci,useExisting:ze}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[{provide:on,useExisting:rx,multi:!0},{provide:on,useExisting:ix,multi:!0},{provide:on,useExisting:sx,multi:!0},{provide:on,useExisting:ox,multi:!0}]})}}return t})(),cx=(()=>{class t{constructor(e,n){this.config=e,this.rendererFactory=n,this.siteThemeService=T(Rc),this.subscription=new ve}init(e){this.renderer=this.rendererFactory.createRenderer(null,null),this.rootComponent=e,this.subscription.add(this.siteThemeService.getActive().subscribe(n=>this.setTheme(n)))}ngOnDestroy(){this.subscription.unsubscribe()}setTheme(e){let n=this.rootComponent.location.nativeElement;this.existingTheme&&this.renderer.removeClass(n,this.existingTheme),e&&(this.renderer.addClass(n,e),this.existingTheme=e)}static{this.\u0275fac=function(n){return new(n||t)(b(ic),b(kt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function lx(t){return e=>t.init(e)}var dx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[{provide:ka,multi:!0,useFactory:lx,deps:[cx]}]})}}return t})(),pd=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(Zy)],imports:[Zo,ax.forRoot(),nx,dx,Zo]})}}return t})();var Gs=t=>{for(let o of t)o.tabIndex=-1;requestAnimationFrame(()=>{for(let o of t)o.tabIndex=0})},iu=(function(t){return t.STOREFRONT="cx-storefront",t})(iu||{}),Ws=(()=>{class t{constructor(e){this.isExpanded=new ke(!1),e.events.pipe(G(n=>n instanceof lo)).subscribe(()=>{this.toggle(!0)})}toggle(e){e?this.isExpanded.next(!1):this.isExpanded.next(!this.isExpanded.value)}static{this.\u0275fac=function(n){return new(n||t)(b(lt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ux=(()=>{class t{handleEscape(e){this.keyboardFocusService.handleEscape(this.elementRef.nativeElement,this.keyboardFocusConfig,e)}constructor(e,n,i,r){this.hamburgerMenuService=e,this.routingService=n,this.elementRef=i,this.keyboardFocusService=r,this.focusConfig={disableMouseFocus:!0,trap:!1},this.skipFocusConfig={isEnabled:!1,activeElementSelectors:["button.cx-hamburger"]},this.isExpanded$=this.hamburgerMenuService.isExpanded,this.StorefrontOutlets=iu,this.destroyRef=T(Kt),this.document=T(ot,{optional:!0}),this.skipLinkService=T(Us,{optional:!0}),this.tabindex="-1",this.keyboardFocusConfig={focusOnEscape:!0,focusOnDoubleEscape:!0},this.featureToggles=T(bt),Ye("a11yPreventWindowsHighContrastOverride"),Ye("alignNavigationMenuWithHeader"),Ye("cdsBottomHeaderSlotAdjustPosition")}ngOnInit(){this.navigateSubscription=this.routingService.isNavigating().subscribe(e=>this.onNavigation(e)),this.isExpanded$=this.hamburgerMenuService.isExpanded.pipe(Z(e=>{e&&this.focusOnFirstNavigationItem()})),this.trapFocusOnMenuIfExpanded(),this.featureToggles.a11yPreventWindowsHighContrastOverride&&this.document?.documentElement.classList.add("cxFeat_a11yPreventWindowsHighContrastOverride")}collapseMenuIfClickOutside(e){let n=e.target;n.nodeName.toLowerCase()==="header"&&n.className.includes("is-expanded")&&this.collapseMenu()}collapseMenu(){this.hamburgerMenuService.toggle(!0)}trapFocusOnMenuIfExpanded(){this.isExpanded$.pipe(pe(),Pt(this.destroyRef)).subscribe(e=>{this.focusConfig=ce(U({},this.focusConfig),{trap:e}),this.skipFocusConfig=ce(U({},this.skipFocusConfig),{isEnabled:e})})}focusOnFirstNavigationItem(){let n=this.elementRef.nativeElement.querySelector("header cx-navigation-ui")?.querySelector('li:not(.back) button, [tabindex="0"]');n&&setTimeout(()=>n.focus())}ngOnDestroy(){this.navigateSubscription&&this.navigateSubscription.unsubscribe()}onNavigation(e){this.startNavigating=e===!0,this.stopNavigating=e===!1,this.stopNavigating&&this.document?.activeElement!==this.document?.body&&this.skipLinkService?.scrollToTarget("cx-main")}static{this.\u0275fac=function(n){return new(n||t)(g(Ws),g(dt),g(z),g(ir))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-storefront"]],viewQuery:function(n,i){if
11(n&1&&He(tu,5),n&2){let r;be(r=Se())&&(i.child=r.first)}},hostVars:5,hostBindings:function(n,i){n&1&&y("keydown.escape",function(a){return i.handleEscape(a)}),n&2&&(Er("tabIndex",i.tabindex),te("start-navigating",i.startNavigating)("stop-navigating",i.stopNavigating))},decls:1,vars:1,consts:[["cxPageTemplateStyle","",3,"cxOutlet"],["cxOutlet","cx-header"],["cxSkipLink","cx-main",3,"cxFocus"],["cxOutlet","cx-footer"],["id","cx-header","cxSkipLink","cx-header",3,"keydown.escape","click","cxFocus"],["section","header",3,"cxSkipFocus"],["section","navigation"],["position","BottomHeaderSlot",1,"cx-bottom-header-slot"],["aria-atomic","true","aria-live","assertive"],["cxSkipLink","cx-footer",3,"cxFocus"],["section","footer"]],template:function(n,i){n&1&&f(0,uh,4,2,"ng-template",0),n&2&&c("cxOutlet",i.StorefrontOutlets.STOREFRONT)},dependencies:[ae,za,It,Wd,$e,Ky,Yy,WC,zt,zd,q],encapsulation:2})}}return t})(),md=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae,Vd,yt,Zo,nr,Vs,qe,nu,ux]})}}return t})();function ou({marker:t,paramName:o,precedingParamName:e}){e=e||"param";let n=function(r){let a=px(r,({path:K})=>K===t),h=a===r.length-1;if(a===-1||h)return null;let S=a+1,k={[o]:r[S]};for(let K=0;K<a;K++)k[`${e}${K}`]=r[K];return{consumed:r.slice(0,S+1),posParams:k}};return ct()&&(n._suffixRouteConfig={marker:t,paramName:o,precedingParamName:e}),n}function px(t,o){for(let e=t.length-1;e>=0;e--)if(o(t[e]))return e;return-1}var qi=(function(t){return t.EAGER="eager",t.LAZY="lazy",t})(qi||{}),zs=(function(t){return t.HIGH="high",t.LOW="low",t.AUTO="auto",t})(zs||{}),or=(()=>{class t{constructor(e){this.config=e,this.featureToggles=T(bt),this.logger=T(St)}getMediaBasedOnHTMLElementType(e,n,i,r,a){return e!=="img"?this.getMediaForPictureElement(n,i,r,a):this.getMedia(n,i,r,a)}getMedia(e,n,i,r){if(!e)return;let a=this.getCommonMediaObject(e,n,i,r);return ce(U({},a),{srcset:this.resolveSrcSet(e,n)})}getMediaForPictureElement(e,n,i,r){if(!e)return;let a=this.getCommonMediaObject(e,n,i,r);return ce(U({},a),{sources:this.resolveSources(e,n)})}getCommonMediaObject(e,n,i,r){let a=e.url?e:this.resolveMedia(e,n
11);return U({src:this.resolveAbsoluteUrl(a?.url??""),alt:i??a?.altText,role:r??a?.role},this.getWidthAndHeight(e,n))}getWidthAndHeight(e,n){let i=e.url?e:this.resolveMedia(e,n);return{width:i?.width,height:i?.height}}get loadingStrategy(){return this.config?.imageLoadingStrategy??qi.LAZY}get sortedFormats(){let e=this.config?.mediaFormats;return!this._sortedFormats&&e&&(this._sortedFormats=Object.keys(e).map(n=>({code:n,size:e[n]})).sort((n,i)=>n.size.width&&i.size.width&&n.size.width>i.size.width?1:-1)),this._sortedFormats??[]}get sortedPictureFormats(){let e=this.config?.media?.pictureElementFormats,n=this.config?.media?.pictureFormatsOrder;return e?(!this._sortedPictureFormats&&e&&(this._sortedPictureFormats=Object.keys(e).map(i=>({code:i,mediaQuery:e[i]?.mediaQueries||""})),n&&this._sortedPictureFormats.sort((i,r)=>{let a=n.indexOf(i.code),h=n.indexOf(r.code);return(a!==-1?a:1/0)-(h!==-1?h:1/0)})),this._sortedPictureFormats??[]):[]}get reversedFormats(){return this._reversedFormats||(this._reversedFormats=this.sortedFormats.slice().reverse()),this._reversedFormats}
11resolveMedia(e,n){return e[this.resolveFormat(e,n)]}resolveFormat(e,n){return n&&e[n]?n:this.resolveBestFormat(e)||Object.keys(e)[0]}resolveBestFormat(e){return this.reversedFormats.find(n=>e.hasOwnProperty(n.code))?.code}resolveSrcSet(e,n){if(!e)return;let r=this.getFormatsUpToMaxFormat(this.sortedFormats,n).reduce((a,h)=>{let S=e[h.code];return S&&(a&&(a+=", "),a+=`${this.resolveAbsoluteUrl(S.url??"")} ${h.size.width}w`),a},"");return r===""?void 0:r}resolveSources(e,n){return e?this.getFormatsUpToMaxFormat(this.sortedPictureFormats,n).reduce((r,a)=>{let h=e[a.code];return h?.url&&r.push(U({srcset:this.resolveAbsoluteUrl(h.url),media:a.mediaQuery},this.getWidthAndHeight(h,n))),r},[]):void 0}getFormatsUpToMaxFormat(e,n){let i=e,r=i.findIndex(a=>a.code===n);return r>-1&&(i=i.slice(0,r+1)),i}resolveAbsoluteUrl(e){return!e||e.startsWith("http")||e.startsWith("//")?e:this.getBaseUrl()+e}getBaseUrl(){let e=this.config.backend?.media?.baseUrl??this.config.backend?.occ?.baseUrl??"";if(!this.featureToggles.enableMediaPrefix)return e;try{let n=this.config?.backend?.media?.prefix??"";return new URL(n,e).toString()}catch(n){return ct()?this.logger.error("Invalid media/occ baseUrl and prefix configuration",n):this.logger.warn("Invalid media/occ baseUrl and prefix configuration",n),e}}static{this.\u0275fac=function(n){return new(n||t)(b(ze))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mx=(()=>{class t{constructor(){this.pageMetaLinkService=T(qd),this.mediaService=T(or),this.windowRef=T(Te)}addPreconnectLink(){let e=this.mediaService.getBaseUrl(),n;try{n=new URL(e).origin}catch(i){n=void 0}n&&n!==this.windowRef.location.origin&&this.pageMetaLinkService.addPreconnectLink(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wn=(()=>{class t{constructor(e,n){this.routingService=e,this.productService=n,this.DEFAULT_PRODUCT_SCOPE=Vt.DETAILS}getProduct(e){return this.getCode().pipe(pe(),ne(n=>n?this.productService.get(n,e||this.DEFAULT_PRODUCT_SCOPE):Q(null)),G(Jt))}getCode(){return this.routingService.getRouterState().pipe(I(e=>e.state.params.productCode))}static{this.\u0275fac=function(n){return new(n||t)(b(dt),b(ki))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hd(t){return ec(U(U({},hx(t)),fx(t)))}function hx({componentId:t,pageSlotPosition:o}={}){let e={cmsStructure:{}};return t&&(e.cmsStructure={components:{[t]:{typeCode:t,flexType:t}}}),t&&o&&e.cmsStructure&&(e.cmsStructure.slots={[o]:{componentIds:[t]}}),e}function fx({pageTemplate:t,pageSlotPosition:o,breakpoint:e,section:n}={}){let i={};if(t&&o){let r={};e?r[e]={slots:[o]}:r.slots=[o],i.layoutSlots={[t]:r}}if(n&&o){let r={};e?r[e]={slots:[o]}:r.slots=[o],i.layoutSlots?i.layoutSlots[n]=r:i.layoutSlots={[n]:r}}return i}var Tn=(()=>{class t{constructor(e){this.mediaService=e,this.loading=this.loadingStrategy,this.elementType="img",this.loaded=new oe,this.isInitialized=!1,this.isLoading=!0,this.isMissing=!1,this.trackByMedia=(n,i)=>i.media}ngOnChanges(){this.create()}create(){this.media=this.mediaService.getMediaBasedOnHTMLElementType(this.elementType,this.container instanceof Array?this.container[0]:this.container,this.format,this.alt,this.role),this.media?.src||this.handleMissing()}loadHandler(){this.isLoading=!1,this.isInitialized=!0,this.isMissing=!1,this.loaded.emit(!0)}get loadingStrategy(){return this.mediaService.loadingStrategy===qi.LAZY?qi.LAZY:null}errorHandler(){this.handleMissing()}handleMissing(){this.isLoading=!1,this.isInitialized=!0,this.isMissing=!0,this.loaded.emit(!1)}get effectiveLoadingStrategy(){return this.fetchPriority===zs.HIGH?qi.EAGER:this.loading??this.loadingStrategy}static{this.\u0275fac=function(n){return new(n||t)(g(or))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-media"]],hostVars:6,hostBindings:function(n,i){n&2&&te("is-initialized",i.isInitialized)("is-loading",i.isLoading)("is-missing",i.isMissing)},inputs:{container:"container",format:"format",alt:"alt",role:"role",loading:"loading",fetchPriority:"fetchPriority",elementType:"elementType",sizesForImgElement:"sizesForImgElement"},outputs:{loaded:"loaded"},features:[Ee],decls:1,vars:1,consts:[["imageElementTmp",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"media","srcset",4,"ngFor","ngForOf","ngForTrackBy"],[3,"load","error","loading","alt","title","src"],[3,"media","srcset"],[3,"loading","alt","title","src","srcset","load","error",4,"ngIf"],[3,"load","error","loading","alt","title","src","srcset"]],template:function(n,i){n&1&&f(0,gh,4,2,"ng-container",1),n&2&&c("ngIf",!!i.media)},dependencies:[N,se],encapsulation:2,changeDetection:0})}}return t})();function gx(t){return()=>t.addPreconnectLink()}var Et=(()=>{class t{static forRoot(){return{ngModule:t,providers:[{provide:At,useFactory:gx,deps:[mx],multi:!0}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,he]})}}return t})(),hT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[Pc.forRoot(),ae,Vd,yt,Zo,py,nr,Ly,bn.forRoot(),Vs,nu,qe,pd,wy.forRoot(),Et.forRoot(),yt.forRoot(),qC.forRoot(),md,pd,md]})}}return t})(),_x=(()=>{class t{constructor(e,n,i){this.anonymousConsentsService=e,this.vcr=n,this.launchDialogService=i,this.subscriptions=new ve,this.bannerVisible$=this.anonymousConsentsService.isBannerVisible()}viewDetails(){this.hideBanner();
11let e=this.launchDialogService.openDialog(li.ANONYMOUS_CONSENT,void 0,this.vcr);e&&this.subscriptions.add(e.subscribe())}allowAll(){this.subscriptions.add(this.anonymousConsentsService.giveAllConsents().pipe(Z(()=>this.hideBanner())).subscribe())}hideBanner(){this.anonymousConsentsService.toggleBannerDismissed(!0)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Fi),g(xt),g(ln))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-anonymous-consent-management-banner"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"anonymous-consent-banner",3,"ngClass"],[1,"container"],[1,"row"],[1,"col-xl-7","col-lg-6","col-xs-12"],[1,"cx-banner-title"],[1,"cx-banner-description"],[1,"col-xl-5","col-lg-6","col-xs-12","cx-banner-buttons"],[1,"btn","btn-secondary",3,"click"],[1,"btn","btn-primary",3,"click"]],template:function(n,i){n&1&&(f(0,vh,18,15,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.bannerVisible$))},dependencies:[N,Rt,q,$],encapsulation:2})}}return t})();var rr=(()=>{class t{constructor(e,n,i){this.elementRef=e,this.templateRef=n,this.globalMessageService=i}get host(){return this.templateRef?this.templateRef.elementRef.nativeElement.parentElement:this.elementRef.nativeElement}handleClick(e){if(e?.preventDefault(),e?.target===this.host&&this.cxAtMessage){let n=Array.isArray(this.cxAtMessage)?this.cxAtMessage.join(` 12`):this.cxAtMessage;this.globalMessageService.get().pipe(le(1)).subscribe(i=>{i[Fe.MSG_TYPE_ASSISTIVE]&&this.globalMessageService.remove(Fe.MSG_TYPE_ASSISTIVE),this.globalMessageService.add(n,Fe.MSG_TYPE_ASSISTIVE)})}}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(J,8),g(ut))}}static{this.\u0275dir=V({type:t,selectors:[["","cxAtMessage",""]],hostBindings:function(n,i){n&1&&y("click",function(a){return i.handleClick(a)})},inputs:{cxAtMessage:"cxAtMessage"}})}}return t})(),vx=(()=>{class t{constructor(){this.showBody=!1,this.isVisibleCloseButton=!0,this.closeMessage=new oe,this.buttonAction=new oe,this.iconTypes=ue}get getCssClassesForMessage(){return{"cx-message-success":this.type===Fe.MSG_TYPE_CONFIRMATION,"cx-message-info":this.type===Fe.MSG_TYPE_INFO,"cx-message-warning":this.type===Fe.MSG_TYPE_WARNING,"cx-message-danger":this.type===Fe.MSG_TYPE_ERROR}}get getIconType(){switch(this.type){case Fe.MSG_TYPE_WARNING:return ue.WARNING;case Fe.MSG_TYPE_ERROR:return ue.ERROR;case Fe.MSG_TYPE_INFO:return ue.INFO;default:return ue.SUCCESS}}ngAfterViewInit(){(this.accordionText||this.actionButtonText)&&this.messageContainer?.nativeElement.focus()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-message"]],viewQuery:function(n,i){if(n&1&&He(Ch,5),n&2){let r;be(r=Se())&&(i.messageContainer=r.first)}},inputs:{text:"text",actionButtonText:"actionButtonText",actionButtonMessage:"actionButtonMessage",accordionText:"accordionText",showBody:"showBody",isVisibleCloseButton:"isVisibleCloseButton",type:"type"},outputs:{closeMessage:"closeMessage",buttonAction:"buttonAction"},ngContentSelectors:xn,decls:12,vars:7,consts:[["messageContainer",""],["tabindex","0",1,"cx-message",3,"ngClass"],[1,"cx-message-content"],["role","presentation",1,"cx-message-header"],["role","presentation",1,"cx-message-icon"],["role","presentation",3,"type"],[1,"cx-message-text"],["class","cx-message-accordion-button link cx-action-link","type","button",3,"click",4,"ngIf"],["class","btn btn-link cx-action-link","type","button",3,"cxAtMessage","click",4,"ngIf"],["class","close","type","button",3,"cxAtMessage","title","click",4,"ngIf"],["class","cx-message-body",4,"ngIf"],["type","button",1,"cx-message-accordion-button","link","cx-action-link",3,"click"],[1,"cx-message-accordion-icon",3,"type"],["type","button",1,"btn","btn-link","cx-action-link",3,"click","cxAtMessage"],["type","button",1,"close",3,"click","cxAtMessage","title"],[3,"type"],[1,"cx-message-body"]],template:function(n,i){n&1&&(ft(),d(0,"div",1,0)(2,"div",2)(3,"div",3)(4,"span",4),w(5,"cx-icon",5),u(),d(6,"span",6),_(7),u(),f(8,yh,3,4,"button",7)(9,xh,2,2,"button",8)(10,bh,5,11,"button",9),u(),f(11,Sh,2,0,"div",10),u()()),n&2&&(c("ngClass",i.getCssClasse
12sForMessage),s(5),c("type",i.getIconType),s(2),x(" ",i.text," "),s(),c("ngIf",i.accordionText),s(),c("ngIf",i.actionButtonText),s(),c("ngIf",i.isVisibleCloseButton),s(),c("ngIf",i.showBody||!i.accordionText))},dependencies:[Rt,je,N,rr,$],encapsulation:2})}}return t})(),qs=(()=>{class t{constructor(){this.consentGiven=!1,this.requiredConsents=[],this.disabled=!1,this.showMandatory=!1,this.consentChanged=new oe,this.hadFocus=!1,this.document=T(z).nativeElement.ownerDocument,this.featureToggles=T(bt)}ngOnInit(){this.updateConsentGiven()}ngOnChanges(e){(e.consent||e.consentTemplate)&&this.updateConsentGiven(),e.disabled?.currentValue===!0&&this.featureToggles.a11yConsentManagementFocusPreservation&&(this.hadFocus=this.checkboxInput?.nativeElement===this.document.activeElement)}ngAfterViewChecked(){this.hadFocus&&!this.disabled&&this.checkboxInput?.nativeElement&&this.featureToggles.a11yConsentManagementFocusPreservation&&(this.hadFocus=!1,this.checkboxInput.nativeElement.focus())}onConsentChange(){this.consentGiven=!this.consentGiven,this.consentChanged.emit({given:this.consentGiven,template:this.consentTemplate})}isRequired(e){return e?this.requiredConsents.includes(e):!1}updateConsentGiven(){this.consent?this.consentGiven=this.consent.consentState===Lr.GIVEN:this.consentTemplate&&this.consentTemplate.currentConsent&&(this.consentTemplate.currentConsent.consentWithdrawnDate?this.consentGiven=!1:this.consentTemplate.currentConsent.consentGivenDate&&(this.consentGiven=!0))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-consent-management-form"]],viewQuery:function(n,i){if(n&1&&He(wh,5),n&2){let r;be(r=Se())&&(i.checkboxInput=r.first)}},inputs:{consentTemplate:"consentTemplate",requiredConsents:"requiredConsents",consent:"consent",disabled:"disabled",showMandatory:"showMandatory"},outputs:{consentChanged:"consentChanged"},features:[Ee],decls:11,vars:8,consts:[["checkboxInput",""],["requiredAsterisk",""],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"change","checked","name","disabled"],[1,"form-check-label","cx-be-bold"],[4,"ngIf"],[1,"form-check-label"],[3,"ngTemplateOutlet"],["aria-hidden","true",1,"text-decoration-none","required-asterisk",3,"title"]],template:function(n,i){if(n&1&&(d(0,"div",2)(1,"label")(2,"input",3,0),y("change",function(){return i.onConsentChange()}),u(),d(4,"span",4),f(5,Th,3,1,"ng-container",5),u()(),d(6,"span",6),_(7),f(8,Ih,0,0,"ng-template",7),u()(),f(9,Dh,1,1,"ng-template",null,1,ie)),n&2){let r=H(10);te("disabled-consent",i.disabled||i.isRequired(i.consentTemplate==null?null:i.consentTemplate.id)),s(2),c("checked",i.consentGiven)("name",i.consentTemplate.id)("disabled",i.disabled||i.isRequired(i.consentTemplate==null?null:i.consentTemplate.id)),s(3),c("ngIf",i.consentTemplate==null?null:i.consentTemplate.name),s(2),x(" ",i.consentTemplate==null?null:i.consentTemplate.description," "),s(),c("ngTemplateOutlet",r)}},dependencies:[N,et,$],encapsulation:2})}}return t})(),Dt=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-spinner"]],decls:4,vars:3,consts:[["role","status",1,"loader-container"],[1,"loader"]],template:function(n,i){n&1&&(yi(0,"div",0)(1,"div",1),_(2),p(3,"cxTranslate"),ao()()),n&2&&(s(2),B(m(3,1,"spinner.loading")))},dependencies:[$],encapsulation:2})}}return t})(),Cx=(()=>{class t{handleClick(e){e.target.tagName===this.el.nativeElement.tagName&&this.close("Cross click")}constructor(e,n,i,r){this.config=e,this.anonymousConsentsService=n,this.el=i,this.launchDialogService=r,this.winRef=T(Te),this.subscriptions=new ve,this.showLegalDescription=!0,this.iconTypes=ue,this.requiredConsents=[],this.focusConfig={trap:!0,block:!0,autofocus:'input[type="checkbox"]',focusOnEscape:!0},this.globalMessageService=T(ut,{optional:!0}),this.globalMessageType=Fe,this.message$=new ht,this.config.anonymousConsents&&(this.showLegalDescription=this.config.anonymousConsents.showLegalDescriptionInDialog,this.config.anonymousConsents.requiredConsents&&(this.requiredConsents=this.config.anonymousConsents.requiredConsents))}ngOnInit(){this.templates$=this.anonymousConsentsService.getTemplates(),this.consents$=this.anonymousConsentsService.getConsents(),this.loading$=this.anonymousConsentsService.getLoadTemplatesLoading()}close(e){this.launchDialogService.closeDialog(e)}rejectAll(){this.subscriptions.add(Ce([this.templates$,this.consents$]).pipe(le(1),pe(),Z(([e,n])=>e.forEach(i=>
12{let r=this.getCorrespondingConsent(i,n);if(r&&this.anonymousConsentsService.isConsentGiven(r)){if(this.isRequiredConsent(i))return;i.id&&this.anonymousConsentsService.withdrawConsent(i.id)}}))).subscribe(()=>this.onConsentWithdrawnSuccess()))}allowAll(){this.subscriptions.add(Ce([this.templates$,this.consents$]).pipe(le(1),pe(),Z(([e,n])=>e.forEach(i=>{let r=this.getCorrespondingConsent(i,n);if(r&&(r.consentState==null||this.anonymousConsentsService.isConsentWithdrawn(r))){if(this.isRequiredConsent(i))return;i.id&&this.anonymousConsentsService.giveConsent(i.id)}}))).subscribe(()=>this.onConsentGivenSuccess()))}isRequiredConsent(e){return!!(e.id&&this.config.anonymousConsents?.requiredConsents&&this.config.anonymousConsents.requiredConsents.includes(e.id))}onConsentChange({given:e,template:n}){n.id&&(e?(this.anonymousConsentsService.giveConsent(n.id),this.onConsentGivenSuccess()):(this.anonymousConsentsService.withdrawConsent(n.id),this.onConsentWithdrawnSuccess()))}getCorrespondingConsent(e,n=[]){for(let i of n)if(e.id===i.templateCode)return i;return null}onConsentGivenSuccess(){this.selectedInput=this.winRef.document.activeElement,this.message$.next({type:Fe.MSG_TYPE_CONFIRMATION,key:"c
12onsentManagementForm.message.success.given"})}onConsentWithdrawnSuccess(){this.selectedInput=this.winRef.document.activeElement,this.message$.next({type:Fe.MSG_TYPE_CONFIRMATION,key:"consentManagementForm.message.success.withdrawn"})}closeMessage(){this.selectedInput?.focus(),this.message$.next(null)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(vo),g(Fi),g(z),g(ln))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-anonymous-consent-dialog"]],hostBindings:function(n,i){n&1&&y("click",function(a){return i.handleClick(a)})},decls:6,vars:5,consts:[["dialogBody",""],["role","dialog","aria-labelledby","dialogTitle",1,"modal-dialog","modal-dialog-centered","modal-lg","cx-anonymous-consent-dialog",3,"esc","cxFocus"],[1,"modal-content","cx-dialog-content"],[4,"ngIf","ngIfElse"],[1,"modal-header","cx-dialog-header"],["id","dialogTitle"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],["class","cx-dialog-description",4,"ngIf"],["aria-live","assertive","aria-atomic","true",1,"cx-dialog-message"],[3,"text","type","isVisibleCloseButton","closeMessage",4,"ngIf"],[1,"cx-dialog-buttons"],[1,"btn","btn-link","cx-action-link",3,"click"],["class","modal-body cx-dialog-body",4,"ngIf"],[1,"cx-dialog-description"],[1,"cx-dialog-separator","col-sm-12","d-xs-block","d-sm-block","d-md-none"],[3,"closeMessage","text","type","isVisibleCloseButton"],[1,"modal-body","cx-dialog-body"],[4,"ngIf"],["class","cx-dialog-row col-sm-12 col-md-6",4,"ngFor","ngForOf"],[1,"cx-dialog-row","col-sm-12","col-md-6"],[3,"consentChanged","consentTemplate","requiredConsents","consent"]],template:function(n,i){if(n&1&&(d(0,"div",1),y("esc",function(){return i.close("Escape clicked")}),d(1,"div",2),f(2,Mh,2,0,"div",3),p(3,"async"),f(4,Oh,22,24,"ng-template",null,0,ie),u()()),n&2){let r=H(5);c("cxFocus",i.focusConfig),s(2),c("ngIf",m(3,3,i.loading$))("ngIfElse",r)}},dependencies:[$e,N,Dt,je,vx,se,qs,q,$],encapsulation:2})}}return t})(),yx={launch:{ANONYMOUS_CONSENT:{inlineRoot:!0,component:Cx,dialogType:Tt.DIALOG}}},xx=(()=>{class t{constructor(e,n,i){this.vcr=e,this.anonymousConsentsService=n,this.launchDialogService=i,this.bannerVisible$=this.anonymousConsentsService.isBannerVisible()}
12openDialog(){let e=this.launchDialogService.openDialog(li.ANONYMOUS_CONSENT,this.openElement,this.vcr);e&&e.pipe(le(1)).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(xt),g(Fi),g(ln))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-anonymous-consent-open-dialog"]],viewQuery:function(n,i){if(n&1&&He(Lh,5),n&2){let r;be(r=Se())&&(i.openElement=r.first)}},decls:2,vars:3,consts:[["open",""],["class","btn btn-link",3,"click",4,"ngIf"],[1,"btn","btn-link",3,"click"]],template:function(n,i){n&1&&(f(0,Vh,4,3,"button",1),p(1,"async")),n&2&&c("ngIf",!m(1,1,i.bannerVisible$))},dependencies:[N,q,$],encapsulation:2})}}return t})(),fT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(yx),X({cmsComponents:{AnonymousConsentManagementBannerComponent:{component:_x,deferLoading:Dn.INSTANT},AnonymousConsentOpenDialogComponent:{component:xx}}})],imports:[L,W,qe,he]})}}return t})(),gT=(()=>{class t{handleKeydown(e){e.preventDefault(),e.target?.click()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["a","cxBtnLikeLink","",8,"btn"]],hostAttrs:["tabindex","0","role","button"],hostBindings:function(n,i){n&1&&y("keydown.Enter",function(a){return i.handleKeydown(a)})("keydown.Space",function(a){return i.handleKeydown(a)})}})}}return t})();var _T=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),vT=(()=>{class t{constructor(){this.cxDomChange=new oe,this.elementRef=T(z),this.changes=new MutationObserver(e=>{(this.cxDomChangeTargetSelector?e.filter(i=>i.target===this.elementRef.nativeElement.querySelector(this.cxDomChangeTargetSelector)):e).forEach(i=>this.cxDomChange.emit(i))}),this.changes.observe(this.elementRef.nativeElement,{subtree:!0,childList:!0})}ngOnDestroy(){this.changes.disconnect()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","cxDomChange",""]],inputs:{cxDomChangeTargetSelector:"cxDomChangeTargetSelector"},outputs:{cxDomChange:"cxDomChange"}})}}return t})(),CT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),yT=(()=>{class t{constructor(){this.el=T(z),this.renderer=T(De),this.document=T(ot)}ngOnInit(){this.tooltipEl=this.renderer.createElement("span"),this.renderer.addClass(this.tooltipEl,"cx-truncation-tooltip"),this.renderer.setAttribute(this.tooltipEl,"aria-hidden","true"),this.renderer.appendChild(this.document.body,this.tooltipEl)}show(){let e=this.el.nativeElement;if(e.scrollWidth<=e.clientWidth)return;let n=e.getBoundingClientRect();this.renderer.setProperty(this.tooltipEl,"textContent",e.value),this.renderer.setStyle(this.tooltipEl,"to
12p",`${n.top}px`),this.renderer.setStyle(this.tooltipEl,"left",`${n.left}px`),this.renderer.addClass(this.tooltipEl,"cx-truncation-tooltip--visible")}hide(){this.renderer.removeClass(this.tooltipEl,"cx-truncation-tooltip--visible")}ngOnDestroy(){this.renderer.removeChild(this.document.body,this.tooltipEl)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","cxTruncationTooltip",""]],hostAttrs:[1,"cx-truncate-with-elipsis"],hostBindings:function(n,i){n&1&&y("mouseenter",function(){return i.show()})("focus",function(){return i.show()})("mouseleave",function(){return i.hide()})("blur",function(){return i.hide()})}})}}return t})();var bx=(()=>{class t{constructor(e){this.winRef=e}getItemsPerSlide(e,n){return this.winRef.resize$.pipe(I(()=>e.clientWidth),I(i=>this.calculateItems(i,n)))}calculateItems(e,n){let i=0;if(n.endsWith("px")){let r=n.substring(0,n.length-2);i=e/r}if(n.endsWith("%")){let r=n.substring(0,n.length-1);i=e/(e*(r/100))}return Math.floor(i)||1}static{this.\u0275fac=function(n){return new(n||t)(b(Te))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ru=(()=>{class t{set setItems(e){this.items=e,this.activeSlide=0}constructor(e,n){this.el=e,this.service=n,this.keybordEvent=new ke(null),this.itemWidth="300px",this.hideIndicators=!1,this.indicatorIcon=ue.CIRCLE,this.previousIcon=ue.CARET_LEFT,this.nextIcon=ue.CARET_RIGHT,this.trackByFn=(i,r)=>r,this.logger=T(St),Ye("a11yAddPaddingToCarouselPanel")}ngOnInit(){!this.template&&ct()&&this.logger.error("No template reference provided to render the carousel items for the `cx-carousel`")}ngOnChanges(){this.size$=this.service.getItemsPerSlide(this.el.nativeElement,this.itemWidth).pipe(Z(()=>this.activeSlide=0))}onNavigationMouseDown(e){e.preventDefault()}onNextClick(e,n){e.stopPropagation();let i=this.items?.length??0;this.activeSlide<=i-n-1&&(this.activeSlide=this.activeSlide+n)}onPreviousClick(e,n){e.stopPropagation(),this.activeSlide!==0&&(this.activeSlide=this.activeSlide-n)}onItemKeydown(e,n){switch(e.key){case"ArrowRight":case"ArrowLeft":e.preventDefault(),this.focusNextPrevItem(e.target,e.key==="ArrowRight"?1:-1,n);break;case"Tab":this.skipTabForCarouselItems();break}}skipTabForCarouselItems(){let e=Array.from(this.el.nativeElement.querySelectorAll("[cxFocusableCarouselItem]"));e.length&&Gs(e)}focusNextPrevItem(e,n,i){let r=this.el.nativeElement.querySelectorAll("[cxFocusableCarouselItem]"),h=Array.from(r).indexOf(e)+n;if(h<0||h>=r.length)return;let S=r[h];h<this.activeSlide||h>=this.activeSlide+i?(this.activeSlide=h-h%i,S.addEventListener("transitionend",()=>{S.focus()},{once:!0})):S.focus()}getSlideNumber(e,n){let i=n+1;return Math.ceil(i/e)}shareEvent(e){if(!e)throw new Error("Missing Event");this.keybordEvent.next(e)}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(bx))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-carousel"]],hostAttrs:["ngSkipHydration","true"],inputs:{title:"title",setItems:[0,"items","setItems"],template:"template",itemWidth:"itemWidth",hideIndicators:"hideIndicators",indicatorIcon:"indicatorIcon",previousIcon:"previousIcon",nextIcon:"nextIcon",trackByFn:"trackByFn"},outputs:{keybordEvent:"keybordEvent"},features:[Ee],decls:2,vars:3,consts:[[4,"ngIf"],[1,"carousel-panel",3,"ngClass"],[1,"slides"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","indicators",4,"ngIf"],["class","previous",3,"mousedown","click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown",4,"cxFeature"],["class","previous",3,"click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown",4,"cxFeature"],[1,"previous",3,"mousedown","click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown"],[3,"type"],[1,"previous",3,"click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown"],["class","slide",3,"active",4,"ngIf"],[1,"slide"],["class","item",3,"active","keydown",4,"ngIf"],[1,"item",3,"keydown"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","next",3,"mousedown","click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown",4,"cxFeature"],["class","next",3,"click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown",4,"cxFeature"],[1,"next",3,"mousedown","click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown"],[1,"next",3,"click","keydown.arrowleft","keydown.arrowright","keydown.arrowup","keydown.arrowdown"],[1,"indicators"],[4,"ngFor","ngForOf"],[3,"click",4,"ngIf"],[3,"click"],["aria-hidden","true",3,"type"]],template:function(n,i){n&1&&(f(0,Jh,8,7,"ng-container",0),p(1,"async")),n&2&&c("ngIf",i.items&&i.items.length>0&&m(1,1,i.size$))},dependencies:[N,Rt,je,se,et,Ot,q,co,$],encapsulation:2,changeDetection:0})}}return t})(),Sx=(()=>{class t{constructor(e,n){this.componentData=e,this.cmsService=n,this.componentData$=this.componentData.data$.pipe(G(i=>!!i),Z(i=>this.theme=`${i.effect}-theme`)),this.items$=this.componentData$.pipe(I(i=>i.banners?.trim().split(" ")??[]),I(i=>i.map(r=>this.cmsService.getComponentData(r)))),this.theme=""}getItems(){return this.items$}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(_t))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-banner-carousel"]],hostVars:2,hostBindings:function(n,i){n&2&&Ue(i.theme)},decls:4,vars:3,consts:[["template",""],["itemWidth","100%","class","inline-navigation",3,"items","template",4,"ngIf"],["itemWidth","100%",1,"inline-navigation",3,"items","template"],[3,"cxComponentWrapper"]],template:function(n,i){n&1&&(f(0,t0,1,2,"cx-carousel",1),p(1,"async"),f(2,n0,1,5,"ng-template",null,0,ie)),n&2&&c("ngIf",m(1,1,i.getItems())
12)},dependencies:[N,ru,ri,q],encapsulation:2,changeDetection:0})}}return t})(),Xi=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),wx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[Xi,L,W,Ve,he]})}}return t})(),dn=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W]})}}return t})(),Tx=(()=>{class t extends qs{ngOnInit(){if(this.consent)this.consentGiven=this.consent.consentState===Lr.GIVEN;else if(this.consentTemplate&&this.consentTemplate.currentConsent){if(this.consentTemplate.currentConsent.consentWithdrawnDate)this.consentGiven=!1;else if(this.consentTemplate.currentConsent.consentGivenDate){this.consentGiven=!0;let e=new Date(this.consentTemplate.currentConsent.consentGivenDate);this.consentApprovedTime=`${e.getDate()}/${e.getMonth()+1}/${e.getFullYear()}`}}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275cmp=O({type:t,selectors:[["cx-my-account-v2-consent-management-form"]],features:[re],decls:10,vars:8,consts:[[1,"form-check","consent-container"],[1,""],["type","checkbox",1,"checkbox-input",3,"change","id","name","checked","disabled"],[3,"for"],[1,"name"],[4,"ngIf"],[1,"description"],["class","description",4,"ngIf"]],template:function(n,i){n&1&&(d(0,"div",0)(1,"div",1)(2,"label")(3,"input",2),y("change",function(){return i.onConsentChange()}),u(),w(4,"label",3),d(5,"span",4),f(6,i0,2,1,"ng-container",5),u(),d(7,"span",6),_(8),u(),f(9,o0,3,4,"span",7),u()()()),n&2&&(s(3),c("id",i.consentTemplate.id)("name",i.consentTemplate.id)("checked",i.consentGiven)("disabled",i.isRequired(i.consentTemplate==null?null:i.consentTemplate.id)),s(),c("for",i.consentTemplate.id),s(2),c("ngIf",i.consentTemplate==null?null:i.consentTemplate.name),s(2),x(" ",i.consentTemplate==null?null:i.consentTemplate.description," "),s(),c("ngIf",i.consentGiven))},dependencies:[N,$],encapsulation:2})}}return t})(),su=(()=>{class t{constructor(e){this.anonymousConsentsConfig=e}getRequiredConsents(e){return this.anonymousConsentsConfig?.anonymousConsents?.requiredConsents||[]}static{this.\u0275fac=function(n){return new(n||t)(b(vo))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),au=(()=>{class t{get allConsentsLoading$(){return this.allConsentsLoading.asObservable()}constructor(e,n,i,r,a,h){this.userConsentService=e,this.globalMessageService=n,this.anonymousConsentsConfig=i,this.anonymousConsentsService=r,this.authService=a,this.consentManagementComponentService=h,this.destroyRef=T(Kt),this.subscriptions=new ve,this.allConsentsLoading=new ke(!1),this.isLoading=rt(!1),this.requiredConsents=[]}ngOnInit(){this.loading$=Ce([this.userConsentService.getConsentsResultLoading(),this.userConsentService.getGiveConsentResultLoading(),this.userConsentService.getWithdrawConsentResultLoading(),this.authService.isUserLoggedIn(),this.allConsentsLoading]).pipe(I(([e,n,i,r,a])=>e||n||i||!r||a),pe(),mn(300)),this.consentListInit(),this.giveConsentInit(),this.withdrawConsentInit(),this.loading$.pipe(Pt(this.destroyRef),Z(e=>this.isLoading.set(e))).subscribe()}consentListInit(){this.templateList$=this.userConsentService.getConsents().pipe(gi(this.anonymousConsentsService.getTemplates(),this.authService.isUserLoggedIn()),G(([e,n,i])=>i),Z(([e,n])=>{this.consentsExists(e)||this.userConsentService.loadConsents()}),I(([e,n])=>(this.requiredConsents=this.consentManagementComponentService?this.consentManagementComponentService.getRequiredConsents(e):[],this.anonymousConsentsConfig.anonymousConsents&&this.anonymousConsentsConfig.anonymousConsents.consentManagementPage?this.hideAnonymousConsents(e,n):e)))}hideAnonymousConsents(e,n=[]){let i=[];return this.anonymousConsentsConfig.anonymousConsents?.consentManagementPage?.showAnonymousConsents?(this.anonymousConsentsConfig.anonymousConsents.consentManagementPage.hideConsents&&this.anonymousConsentsConfig.anonymousConsents.consentManagementPage.hideConsents.length>0&&(i=this.anonymousConsentsConfig.anonymousConsents.consentManagementPage.hideConsents),this.userConsentService.filterConsentTemplates(e,i)):(i=n.map(r=>r.id??""),this.userConsentService.filterConsentTemplates(e,i))}giveConsentInit(){this.userConsentService.resetGiveConsentProcessState(),this.subscriptions.add(this.userConsentService.getGiveConsentResultSuccess().subscribe(e=>this.onConsentGivenSuccess(e)))}withdrawConsentInit(){this.userConsentService.resetWithdrawConsentProcessState(),this.subscriptions.add(this.userConsentService.getWithdrawConsentResultLoading().pipe(ro(Boolean),gi(this.userConsentService.getWithdrawConsentResultSuccess()),I(([,e])=>e),Z(e=>{e&&this.userConsentService.loadConsents()})).subscribe(e=>this.onConsentWithdrawnSuccess(e)))}consentsExists(e){return!!e&&e.length>0}onConsentChange({given:e,template:n}
12){e&&n.id&&n.version!==void 0?this.userConsentService.giveConsent(n.id,n.version):n.currentConsent?.code&&this.userConsentService.withdrawConsent(n.currentConsent.code,n?.id)}onConsentGivenSuccess(e){e&&(this.userConsentService.resetGiveConsentProcessState(),this.globalMessageService.add({key:"consentManagementForm.message.success.given"},Fe.MSG_TYPE_CONFIRMATION))}onConsentWithdrawnSuccess(e){e&&(this.userConsentService.resetWithdrawConsentProcessState(),this.globalMessageService.add({key:"consentManagementForm.message.success.withdrawn"},Fe.MSG_TYPE_CONFIRMATION))}rejectAll(e=[]){if(this.isLoading())return;let n=[];e.forEach(i=>{if(i.currentConsent&&this.userConsentService.isConsentGiven(i.currentConsent)){if(this.isRequiredConsent(i))return;n.push(i)}}),this.allConsentsLoading.next(!0),this.subscriptions.add(this.setupWithdrawalStream(n).pipe(Z(i=>this.allConsentsLoading.next(!1))).subscribe())}setupWithdrawalStream(e=[]){return io(this.userConsentService.getWithdrawConsentResultLoading()).pipe(pe(),G(a=>!a)).pipe(Cr((a,h)=>a+1,-1)).pipe(Z(a=>{if(a<e.length){let h=e[a].currentConsent?.code,S=e[a]?.id;h&&this.userConsentService.withdrawConsent(h,S)}})).pipe(G(a=>a===e.length))}allowAll(e=[]){if(this.isLoading())return;let n=[];e.forEach(i=>{let r=i.currentConsent?.consentGivenDate,a=i.currentConsent?.consentWithdrawnDate;r&&!a||r&&a&&r>a||i.currentConsent&&this.userConsentService.isConsentWithdrawn(i.currentConsent)&&this.isRequiredConsent(i)||n.push(i)}),this.allConsentsLoading.next(!0),this.subscriptions.add(this.setupGiveStream(n).pipe(Z(i=>this.allConsentsLoading.next(!1))).subscribe())}setupGiveStream(e=[]){return io(this.userConsentService.getGiveConsentResultLoading()).pipe(pe(),G(h=>!h)).pipe(Cr((h,S)=>h+1,-1)).pipe(Z(h=>{if(h<e.length){let S=e[h];S.id&&S.version!==void 0&&this.userConsentService.giveConsent(S.id,S.version)}})).pipe(G(h=>h===e.length))}trackByTemplateId(e,n){return n.id??""}isRequiredConsent(e){return!!(e.id&&this.anonymousConsentsConfig.anonymousConsents&&this.anonymousConsentsConfig.anonymousConsents?.requiredConsents&&this.anonymousConsentsConfig.anonymousConsents.requiredConsents.includes(e.id))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.allConsentsLoading.unsubscribe(),this.userConsentService.resetGiveConsentProcessState(),this.userConsentService.resetWithdrawConsentProcessState()}static{this.\u0275fac=function(n){return new(n||t)(g(Dc),g(ut),g(vo),g(Fi),g(_o),g(su))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-consent-management"]],decls:4,vars:11,consts:[[4,"ngIf"],[1,"cx-consent-action-links"],[4,"cxFeature"],["class","cx-spinner",4,"ngIf"],[1,"col-sm-12","col-md-8","col-lg-6"],[1,"btn","btn-link","cx-action-link",3,"click"],[1,"btn","btn-link","cx-action-link",3,"click","disabled"],[1,"cx-spinner"],[1,"cx-consent-toggles"],[3,"consentTemplate","requiredConsents","disabled","consentChanged",4,"ngFor","ngForOf","ngForTrackBy"],[3,"consentChanged","consentTemplate","requiredConsents","disabled"]],template:function(n,i){n&1&&(f(0,p0,2,1,"ng-container",0),p(1,"async"),p(2,"async"),p(3,"async")),n&2&&c("ngIf",$t(7,r0,m(1,1,i.loading$),m(2,3,i.templateList$),m(3,5,i.allConsentsLoading$)))},dependencies:[N,Dt,se,qs,Ot,q,$],encapsulation:2})}}return t})();var Ix=(()=>{class t{constructor(e){this.hamburgerMenuService=e}toggle(){this.hamburgerMenuService.toggle()}get isExpanded(){return this.hamburgerMenuService.isExpanded}static{this.\u0275fac=function(n){return new(n||t)(g(Ws))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-hamburger-menu"]],decls:11,vars:21,consts:[["type","button","aria-controls","cx-header",1,"cx-hamburger",3,"click"],[1,"hamburger-box"],[1,"hamburger-inner"]],template:function(n,i){n&1&&(yi(0,"button",0),p(1,"async"),p(2,"async"),p(3,"async"),p(4,"cxTranslate"),p(5,"cxTranslate"),p(6,"async"),p(7,"cxTranslate"),p(8,"cxTranslate"),Aa("click",function(){return i.toggle()}),yi(9,"span",1),Ir(10,"span",2),ao()()),n&2&&(te("is-active",m(1,5,i.isExpanded)),M("aria-expanded",m(2,7,i.isExpanded))("aria-label",m(3,9,i.isExpanded)?m(4,11,"common.close"):m(5,13,"common.menu"))("title",m(6,15,i.isExpanded)?m(7,17,"common.close"):m(8,19,"common.menu")))},dependencies:[q,$],encapsulation:2,changeDetection:0})}}return t})(),xT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{HamburgerMenuComponent:{component:Ix}}})],imports:[L,W]})}}return t})(),Ex=(()=>{class t extends au{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275cmp=O({type:t,selectors:[["cx-my-account-v2-consent-management"]],features:[re],decls:4,vars:4,consts:[["consentManagementForm",""],[4,"ngIf","ngIfElse"],[1,"cx-spinner"],[4,"ngIf"],[1,"cx-consent-toggles"],[1,"consent-form-container"],[1,"header"],[1,"cx-consent-action-links"],[1,"btn","btn-link","cx-action-link",3,"click","cxFocus"],[3,"consentTemplate","requiredConsents","consentChanged",4,"ngFor","ngForOf"],[3,"consentChanged","consentTemplate","requiredConsents"]],template:function(n,i){if
12(n&1&&(f(0,f0,3,0,"div",1),p(1,"async"),f(2,v0,2,3,"ng-template",null,0,ie)),n&2){let r=H(3);c("ngIf",m(1,2,i.loading$))("ngIfElse",r)}},dependencies:[N,Dt,se,Tx,$e,q,$],encapsulation:2})}}return t})();var Dx=new Be("feature flag to enable enhanced UI for notification preference pages under My-Account",{providedIn:"root",factory:()=>!1}),Mx=new Be("feature flag to enable enhanced UI for Consent Management pages under My-Account",{providedIn:"root",factory:()=>!1}),Fx={cmsComponents:{ConsentManagementComponent:{component:Ex}}},kx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[su,X({cmsComponents:{ConsentManagementComponent:{component:au,guards:[Lt]}}}),po(()=>T(Mx)?Fx:{})],imports:[L,Bt,mt,dn,W,Ve,he]})}}return t})(),bT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W,Ve,dn,kx,qe,he,wx]})}}return t})(),Ax=(()=>{class t{constructor(){this.HTTP_PROTOCOL_REGEX=/^https?:\/\//i,this.MAILTO_PROTOCOL_REGEX=/^mailto:/i,this.TEL_PROTOCOL_REGEX=/^tel:/i}isExternalUrl(e){return typeof e=="string"&&(this.HTTP_PROTOCOL_REGEX.test(e)||this.MAILTO_PROTOCOL_REGEX.test(e)||this.TEL_PROTOCOL_REGEX.test(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sr=(()=>{class t{constructor(e,n){this.router=e,this.service=n,this.URL_SPLIT=/(^[^#?]*)(.*)/,this.routeParts={},this.tabindex=0}isExternalUrl(){return this.service.isExternalUrl(this.url)}get rel(){return this.target==="_blank"?"noopener":null}ngOnChanges(e){e.url&&this.setUrlParts(e.url.currentValue)}get routerUrl(){return this.routeParts.path}get queryParams(){return this.routeParts.queryParams}get fragment(){return this.routeParts.fragment??void 0}setUrlParts(e){typeof e=="string"?(e=this.getAbsoluteUrl(e),this.routeParts=this.splitUrl(e)):this.routeParts={path:e}}splitUrl(e=""){let{queryParams:n,fragment:i}=this.router.parseUrl(e),[,r]=e.match(this.URL_SPLIT)??[,""];return{path:[r??""],queryParams:n,fragment:i}}getAbsoluteUrl(e){return e.startsWith("/")?e:"/"+e}static{this.\u0275fac=function(n){return new(n||t)(g(lt),g(Ax))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-generic-link"]],inputs:{url:"url",target:"target",id:"id",class:"class",style:"style",title:"title",ariaLabel:"ariaLabel",tabindex:"tabindex"},features:[Ee],ngContentSelectors:xn,decls:5,vars:2,consts:[["isLocalUrl",""],["content",""],[4,"ngIf","ngIfElse"],[3,"href","tabindex"],[4,"ngTemplateOutlet"],[3,"routerLink","queryParams","fragment","target","tabindex"]],template:function(n,i){if(n&1&&(ft(),f(0,y0,3,10,"ng-container",2)(1,b0,2,11,"ng-template",null,0,ie)(3,S0,1,0,"ng-template",null,1,ie)),n&2){let r=H(2);c("ngIf",i.isExternalUrl())("ngIfElse",r)}},dependencies:[N,et,Qe],encapsulation:2})}}return t})(),Ae=(function(t){return t.INSIDE_CLICK="insideClick",t.OUTSIDE_CLICK="outsideClick",t.ESCAPE_KEYDOWN="escapeKeydown",t.CLOSE_BUTTON_CLICK="closeButtonClick",t.CLOSE_BUTTON_KEYDOWN="closeButtonKeydown",t.ROUTE_CHANGE="routeChange",t.OPEN="open",t.OPEN_BY_KEYBOARD="openByKeyboard",t})(Ae||{}),Rx=(()=>{class t{constructor(e){this.winRef=e}get allowedPlacements(){return["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"]}get placementSeparator(){return/\s+/}get window(){return this.winRef.nativeWindow}get document(){return this.winRef.document}getAllStyles(e){return this.window?.getComputedStyle(e)}getPositionStyleProperty(e){let n=this.getAllStyles(e);if(n)return n.position||void 0}isStaticPositioned(e){return(this.getPositionStyleProperty(e)||"static")==="static"}offsetParent(e){let n=e.offsetParent||this.document.documentElement;for(;n&&n!==this.document.documentElement&&this.isStaticPositioned(n);)n=n.offsetParent;return n||this.document.documentElement}position(e,n=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if(this.getPositionStyleProperty(e)==="fixed")i=e.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{let a=this.offsetParent(e);i=this.offset(e,!1),a!==this.document.documentElement&&(r=this.offset(a,!1)),r.top+=a.clientTop,r.left+=a.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,n&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(e,n=!0){let i=e.getBoundingClientRect(),r={top:this.window&&this.window.pageYOffset-this.document.documentElement.clientTop||0,left
12:this.window&&this.window.pageXOffset-this.document.documentElement.clientLeft||0},a={height:i.height||e.offsetHeight,width:i.width||e.offsetWidth,top:i.top+r.top,bottom:i.bottom+r.top,left:i.left+r.left,right:i.right+r.left};return n&&(a.height=Math.round(a.height),a.width=Math.round(a.width),a.top=Math.round(a.top),a.bottom=Math.round(a.bottom),a.left=Math.round(a.left),a.right=Math.round(a.right)),a}_positionElements(e,n,i,r){let[a="top",h="center"]=i.split("-"),S=r?this.offset(e,!1):this.position(e,!1),k=this.getAllStyles(n);if(k){let K=parseFloat(k.marginTop),fe=parseFloat(k.marginBottom),ye=parseFloat(k.marginLeft),it=parseFloat(k.marginRight),Nt=0,On=0;switch(a){case"top":Nt=S.top-(n.offsetHeight+K+fe);break;case"bottom":Nt=S.top+S.height;break;case"left":On=S.left-(n.offsetWidth+ye+it);break;case"right":On=S.left+S.width;break}switch(h){case"top":Nt=S.top;break;case"bottom":Nt=S.top+S.height-n.offsetHeight;break;case"left":On=S.left;break;case"right":On=S.left+S.width-n.offsetWidth;break;case"center":a==="top"||a==="bottom"?On=S.left+S.width/2-n.offsetWidth/2:Nt=S.top+S.height/2-n.offsetHeight/2;break}n.style.transform=`translate(${Math.round(On)}px, ${Math.round(Nt)}px)`;let to=n.getBoundingClientRect(),ca=this.document.documentElement,bu=this.window?.innerHeight||ca.clientHeight,Su=this.window?.innerWidth||ca.clientWidth;return to.left>=0&&to.top>=0&&to.right<=Su&&to.bottom<=bu}return!1}positionElements(e,n,i,r){let a=Array.isArray(i)?i:i.split(this.placementSeparator),h=a.findIndex(fe=>fe==="auto");h>=0&&this.allowedPlacements.forEach(fe=>{a.find(ye=>ye.search("^"+fe)!==-1)==null&&a.splice(h++,1,fe)});let S=n.style;S.position="absolute",S.top="0",S.left="0";let k="auto",K=!1;for(k of a)if(this._positionElements(e,n,k,r)){K=!0;break}return K||this._positionElements(e,n,k,r),k}getPositioningClass(e,n){let i=`${e||"top"}`;return n&&i!=="auto"&&(i=`${i} auto`),i}static{this.\u0275fac=function(n){return new(n||t)(b(Te))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Px=(()=>{class t{insideClick(){this.eventSubject.next(Ae.INSIDE_CLICK)}outsideClick(e){!this.isClickedOnPopover(e)&&!this.isClickedOnDirective(e)&&this.eventSubject.next(Ae.OUTSIDE_CLICK)}escapeKeydown(){this.eventSubject.next(Ae.ESCAPE_KEYDOWN)}isClickedOnPopover(e){return this.popoverInstance.location.nativeElement.contains(e.target)}isClickedOnDirective(e){return this.triggerElement.nativeElement.contains(e.target)}close(e){e.preventDefault(),e instanceof MouseEvent?this.eventSubject.next(Ae.CLOSE_BUTTON_CLICK):this.eventSubject.next(Ae.CLOSE_BUTTON_KEYDOWN)}triggerScrollEvent(){this.scrollEventUnlistener=this.renderer.listen(this.winRef.nativeWindow,"scroll",()=>this.positionPopover())}positionPopover(){this.popoverClass=this.positioningService.positionElements(this.triggerElement.nativeElement,this.popoverInstance.location.nativeElement,this.positioningService.getPositioningClass(this.position,this.autoPositioning),this.appendToBody),this.changeDetectionRef.markForCheck(),this.baseClass=`${this.customClass} ${this.popoverClass} opened`}ngOnInit(){this.customClass||(this.customClass="cx-popover"),this.position||(this.position="top"),this.autoPositioning===void 0&&(this.autoPositioning=!0),this.baseClass=`${this.customClass}`,this.resizeSub=this.winRef.resize$.subscribe(()=>{this.positionPopover()}),this.routeChangeSub=this.router.events.pipe(G(e=>e instanceof lo)).subscribe(()=>{this.eventSubject.next(Ae.ROUTE_CHANGE)}),this.positionOnScroll&&this.triggerScrollEvent()}isTemplate(e){return e instanceof J}isString(e){return!(e instanceof J)}ngAfterViewChecked(){this.positionPopover()}ngOnDestroy(){this.resizeSub&&this.resizeSub.unsubscribe(),this.routeChangeSub&&this.routeChangeSub.unsubscribe(),this.scrollEventUnlistener&&this.scrollEventUnlistener()}constructor(e,n,i,r,a){this.positioningService=e,this.winRef=n,this.changeDetectionRef=i,this.renderer=r,this.router=a,this.iconTypes=ue}static{this.\u0275fac=function(n){return new(n||t)(g(Rx),g(Te),g(Oe),g(De),g(lt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-popover"]],hostVars:1,hostBindings:function(n,i){n&1&&y("click",function(){return i.insideClick()})("click",function(a){return i.outsideClick(a)},Ci)("keydown.escape",function(){return i.escapeKeydown()}),n&2&&Er("className",i.baseClass)},decls:6,vars:4,consts:[[1,"arrow"],[1,"popover-body",3,"cxFocus"],[1,"cx-close-row"],["type","button","class","close",3,"title","keydown.enter","keydown.space","click",4,"ngIf"],[4,"ngIf"],["type","button",1,"close",3,"keydown.enter","keydown.space","click","title"],[3,"type"],[4,"ngTemplateOutlet"]],template:function(n,i){n&1&&(w(0,"div",0),d(1,"div",1)(2,"div",2),f(3,w0,4,8,"button",3),u(),f(4,I0,2,1,"ng-container",4)(5,E0,2,1,"span",4),u()),n&2&&(s(),c("cxFocus",i.focusConfig),s(2),c("ngIf",i.displayCloseButton),s(),c("ngIf",i.isTemplate(i.content)),s(),c("ngIf",i.isString(i.content)))},dependencies:[$e,N,je,et,$],encapsulation:2,changeDetection:0})}}return t})(),Ox=(()=>{class t{getFocusConfig(e,n){let i={};return e===Ae.OPEN_BY_KEYBOARD&&n&&(i={trap:!0,block:!0,focusOnEscape:!1,autofocus:!0}),i}setFocusOnElement(e){setTimeout(()=>{e.nativeElement.focus()},0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Lx=(()=>{class t{handlePress(e){e?.preventDefault(),e?.target===this.element.nativeElement&&!this.isOpen?this.eventSubject.next(Ae.OPEN_BY_KEYBOARD):this.isOpen&&this.eventSubject.next(Ae.CLOSE_BUTTON_KEYDOWN)}handleTab(){!this.focusConfig?.trap&&this.isOpen&&this.eventSubject.next(Ae.CLOSE_BUTTON_KEYDOWN)}handleEscape(){this.eventSubject.next(Ae.ESCAPE_KEYDOWN)}handleClick(e){e?.preventDefault(),e?.target===this.element.nativeElement&&!this.isOpen?this.eventSubject.next(Ae.OPEN):this.isOpen&&this.eventSubject.next(Ae.CLOSE_BUTTON_CLICK)}open(e){this.cxPopoverOptions?.disable||(this.isOpen=!0,this.focusConfig=this.popoverService.getFocusConfig(e,this.cxPopoverOptions?.appendToBody||!1),this.renderPopover(),this.openPopover.emit())}close(){this.isOpen=!1,this.viewContainer.clear(),this.closePopover.emit()}handlePopoverEvents(){this.eventSubject.subscribe(e=>{this.openTriggerEvents.includes(e)&&this.open(e),this.focusPopoverTriggerEvents.includes(e)&&this.popoverContainer.location.nativeElement.focus(),this.closeTriggerEvents.includes(e)&&this.close(),this.focusDirectiveTriggerEvents.includes(e)&&this.popoverService.setFocusOnElement(this.element)})}
12renderPopover(){let e=this.componentFactoryResolver.resolveComponentFactory(Px);this.popoverContainer=this.viewContainer.createComponent(e);let n=this.popoverContainer.instance;if(n){if(n.content=this.cxPopover,n.triggerElement=this.element,n.popoverInstance=this.popoverContainer,n.focusConfig=this.focusConfig,n.eventSubject=this.eventSubject,n.position=this.cxPopoverOptions?.placement,n.customClass=this.cxPopoverOptions?.class,n.appendToBody=this.cxPopoverOptions?.appendToBody,n.positionOnScroll=this.cxPopoverOptions?.positionOnScroll,n.displayCloseButton=this.cxPopoverOptions?.displayCloseButton,n.autoPositioning=this.cxPopoverOptions?.autoPositioning,this.cxPopoverOptions?.appendToBody){let i=this.winRef.document.body,r=i.firstElementChild??i;this.renderer.appendChild(r,this.popoverContainer.location.nativeElement)}this.popoverContainer.changeDetectorRef.detectChanges()}}ngOnInit(){this.handlePopoverEvents()}constructor(e,n,i,r,a,h,S){this.element=e,this.viewContainer=n,this.componentFactoryResolver=i,this.renderer=r,this.changeDetectorRef=a,this.popoverService=h,this.winRef=S,this.openPopover=new oe,this.closePopover=new oe,this.eventSubject=new ht,this.openTriggerEvents=[Ae.OPEN,Ae.OPEN_BY_KEYBOARD],this.focusPopoverTriggerEvents=[Ae.OPEN_BY_KEYBOARD],this.closeTriggerEvents=[Ae.ROUTE_CHANGE,Ae.ESCAPE_KEYDOWN,Ae.OUTSIDE_CLICK,Ae.CLOSE_BUTTON_KEYDOWN,Ae.CLOSE_BUTTON_CLICK],this.focusDirectiveTriggerEvents=[Ae.ESCAPE_KEYDOWN,Ae.CLOSE_BUTTON_KEYDOWN]}static{this.\u0275fac=function(n){return new(n||t)(g(z),g(xt),g(Ft),g(De),g(Oe),g(Ox),g(Te))}}static{this.\u0275dir=V({type:t,selectors:[["","cxPopover",""]],hostBindings:function(n,i){n&1&&y("keydown.enter",function(a){return i.handlePress(a)})("keydown.space",function(a){return i.handlePress(a)})("keydown.tab",function(){return i.handleTab()})("keydown.shift.tab",function(){return i.handleTab()})("keydown.escape",function(){return i.handleEscape()})("click",function(a){return i.handleClick(a)})},inputs:{cxPopover:"cxPopover",cxPopoverOptions:"cxPopoverOptions"},outputs:{openPopover:"openPopover",closePopover:"closePopover"}})}}return t})(),Vx=20,Bx=(()=>{class t{transform(e,n){if(!n)return e;let i="...",r=n.length>0&&n[0]&&Number.isInteger(+n[0])?n[0]:Vx;return n.length>1&&n[1]!==void 0&&(i=n[1]),e.length>r?e.substring(0,r)+i:e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=so({name:"cxTruncate",type:t,pure:!0})}}return t})(),Nx=(()=>{class t{constructor(){this.charactersLimit=100}get isTruncated(){return this.content.length>+this.charactersLimit}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-truncate-text-popover"]],inputs:{content:"content",charactersLimit:"charactersLimit",customClass:"customClass"},decls:8,vars:8,consts:[["fullText",""],[1,"truncated-text",3,"ngClass"],["class","ml-1 link cx-action-link",3,"cxPopover","cxPopoverOptions",4,"ngIf"],[1,"ml-1","link","cx-action-link",3,"cxPopover","cxPopoverOptions"]],template:function(n,i){n&1&&(R(0)(1),d(2,"span",1),_(3),p(4,"cxTruncate"),u(),A(),f(5,F0,1,1,"ng-template",null,0,ie)(7,k0,3,6,"button",2),A()),n&2&&(s(2),c("ngClass",i.customClass),s(),x(" ",de(4,3,i.content,Y(6,D0,i.charactersLimit))," "),s(4),c("ngIf",i.isTruncated))},dependencies:[Rt,N,Lx,$,Bx],encapsulation:2,changeDetection:0})}}return t})(),jx=(()=>{class t{setEditMode(){this.editMode=!0}cancelEdit(){this.editMode=!1,this.cancelCard.emit(5)}delete(){this.deleteCard.emit(1)}setDefault(){this.isDefault=!0,this.setDefaultCard.emit(2)}send(){this.sendCard.emit(3)}edit(){this.editCard.emit(4)}isCardAction(e){return e.event!==void 0}isCardLinkAction(e){return e.link!==void 0}trackByIndex(e){return e}constructor(){this.iconTypes=ue,this.deleteCard=new oe,this.setDefaultCard=new oe,this.sendCard=new oe,this.editCard=new oe,this.cancelCard=new oe,this.border=!1,this.editMode=!1,this.isDefault=!1,this.fitToContainer=!1,this.truncateText=!1,this.truncateParagraphText=!1,this.charactersLimit=100}ngOnInit(){}get isHeaderVisible(){return!!this.content?.header&&!this.editMode}get ariaDescribedBy(){return this.content&&this.content.title?`${this.getLabel("content-title")} ${this.getLabel("cx-card-container")}`:`${this.getLabel("cx-card-container")}`}getLabel(e){return e+(this.index>=0?"-"+this.index:"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-card"]],inputs:{border:"border",editMode:"editMode",isDefault:"isDefault",content:"content",fitToContainer:"fitToContainer",truncateText:"truncateText",truncateParagraphText:"truncateParagraphText",charactersLimit:"charactersLimit",index:"index",role:"role"}
12,outputs:{deleteCard:"deleteCard",setDefaultCard:"setDefaultCard",sendCard:"sendCard",editCard:"editCard",cancelCard:"cancelCard"},ngContentSelectors:R0,decls:3,vars:1,consts:[["showText",""],["class","cx-card",3,"tabindex","cx-card-border","cx-card-fit-to-container",4,"ngIf"],[1,"cx-card",3,"tabindex"],["class","card-header",3,"id",4,"ngIf"],[1,"card-body","cx-card-body"],["role","alert","class","cx-card-delete-msg",4,"ngIf"],["class","cx-card-title",3,"id",4,"ngIf"],[1,"cx-card-container",3,"id"],[1,"cx-card-label-container"],["class","cx-card-label-bold",4,"ngIf"],[4,"ngFor","ngForOf"],["class","cx-card-paragraph",4,"ngFor","ngForOf","ngForTrackBy"],["class","cx-card-img-container","role","img",4,"ngIf"],["class","row cx-card-body-delete",4,"ngIf"],["class","cx-card-actions",4,"ngIf"],[1,"card-header",3,"id"],["role","alert",1,"cx-card-delete-msg"],[1,"cx-card-title",3,"id"],[1,"cx-card-label-bold"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cx-card-paragraph"],[1,"cx-card-paragraph-title"],["role","img",1,"cx-card-img-container"],[3,"type"],[1,"row","cx-card-body-delete"],[1,"row","col-md-12"],[1,"col-md-6",3,"cxFocus"],[1,"btn","btn-block","btn-primary",3,"click"],[1,"col-md-6"],[1,"btn","btn-block","btn-secondary",3,"click","cxAtMessage"],[1,"cx-card-actions"],["class","cx-card-action-item",4,"ngFor","ngForOf"],[1,"cx-card-action-item"],[3,"ngSwitch",4,"ngIf"],[3,"url","ariaLabel","target",4,"ngIf"],[3,"ngSwitch"],["type","button","class","btn btn-tertiary",3,"click",4,"ngSwitchCase"],["type","button",1,"btn","btn-tertiary",3,"click"],[3,"url","ariaLabel","target"],[3,"class","ngClass",4,"ngIf"],[3,"charactersLimit","content","customClass",4,"ngIf"],[3,"ngClass"],[3,"charactersLimit","content","customClass"]],template:function(n,i){n&1&&(ft(A0),f(0,nf,14,21,"div",1)(1,sf,2,2,"ng-template",null,0,ie)),n&2&&c("ngIf",i.content)},dependencies:[N,se,et,je,$e,rr,Va,Ba,sr,Rt,Nx,$],encapsulation:2})}}return t})(),di=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae]})}}return t})(),$x=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae,qe,Ve,W]})}}return t})(),Hx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W,$x]})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,Xi,W,Ve,Hx,qe,he,di]})}}return t})();var Zi=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae,Ve,Et,wt,W]})}}return t})(),Ux=(()=>{class t{constructor(){this.logger=T(St),this.windowRef=T(Te),this._scrollingAreaWidth$=new ke(0),this.scrollingAreaWidth$=this._scrollingAreaWidth$.pipe(mn(300),pe()),this._isScrollStart$
12=new ke(!0),this.isScrollStart$=this._isScrollStart$.asObservable(),this._isScrollEnd$=new ke(!1),this.isScrollEnd$=this._isScrollEnd$.asObservable(),this.isScrollNeeded$=Ce([this._isScrollStart$,this._isScrollEnd$]).pipe(I(([e,n])=>!e||!n),pe())}ngOnChanges(){this.windowRef.isBrowser()&&(this.unsubscribeScrollingArea(),this.scrollingArea&&this.scrollingAreaStart&&this.scrollingAreaEnd&&this.subscribeScrollingArea())}ngOnDestroy(){this.unsubscribeScrollingArea(),this._isScrollStart$.complete(),this._isScrollEnd$.complete(),this._scrollingAreaWidth$.complete()}scrollForward(e){if(this._isScrollEnd$.value===!0)return;let n=e?.distance??this._scrollingAreaWidth$.value,i=e?.behavior??"smooth";this.scrollingArea?.scrollBy({left:n,behavior:i})}scrollBackward(e){if(this._isScrollStart$.value===!0)return;let n=e?.distance??this._scrollingAreaWidth$.value,i=e?.behavior??"smooth";this.scrollingArea?.scrollBy({left:-n,behavior:i})}subscribeScrollingArea(){if(this.scrollingArea&&(this.scrollingAreaResizeObserver=new ResizeObserver(()=>{this.scrollingArea&&this._scrollingAreaWidth$.next(this.scrollingArea.clientWidth)}),this.scrollingAreaResizeObserver.observe(this.scrollingArea),this._scrollingAreaWidth$.next(this.scrollingArea.clientWidth)),this.scrollingAreaIntersectionObserver=new IntersectionObserver(e=>{e.forEach(n=>{n.target===this.scrollingAreaStart?this._isScrollStart$.next(n.isIntersecting):n.target===this.scrollingAreaEnd&&this._isScrollEnd$.next(n.isIntersecting)})},{root:this.scrollingArea,threshold:0,rootMargin:"2px"}),!this.scrollingAreaStart||!this.scrollingAreaEnd){this.logger.error("scrollingAreaStart/End element is not available in the <cx-scrolling-carousel>.");return}this.scrollingAreaIntersectionObserver.observe(this.scrollingAreaStart),this.scrollingAreaIntersectionObserver.observe(this.scrollingAreaEnd)}unsubscribeScrollingArea(){this.windowResizeSubscription?.unsubscribe(),this.windowResizeSubscription=void 0,this.scrollingAreaResizeObserver?.disconnect(),this.scrollingAreaResizeObserver=void 0,this.scrollingAreaIntersectionObserver?.disconnect(),this.scrollingAreaIntersectionObserver=void 0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","cxHorizontalScrollingPosition",""]],inputs:{scrollingArea:"scrollingArea",scrollingAreaStart:"scrollingAreaStart",scrollingAreaEnd:"scrollingAreaEnd"},exportAs:["cxHorizontalScrollingPosition"],features:[Ee]})}}return t})(),zi=(function(t){return t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight",t.TAB="Tab",t})(zi||{}),Ks=(()=>{class t{constructor(){this.logger=T(St),this.el=T(z),this.previousIcon=ue.CARET_LEFT,this.nextIcon=ue.CARET_RIGHT,this.trackByFn=(e,n)=>n}ngOnInit(){!this.template&&ct()&&this.logger.error("No template reference provided to render the carousel items for the `cx-carousel-scrolling`")}onItemKeydown(e){switch(e.key){case zi.ARROW_RIGHT:case zi.ARROW_LEFT:e.preventDefault(),this.focusNextPrevItem(e.target,e.key===zi.ARROW_RIGHT?1:-1);break;case zi.TAB:this.skipTabForCarouselItems();break}}skipTabForCarouselItems(){let e=Array.from(this.el.nativeElement.querySelectorAll("[cxFocusableCarouselItem]"));e.length&&Gs(e)}focusNextPrevItem(e,n){let i=this.el.nativeElement.querySelectorAll("[cxFocusableCarouselItem]"),a=Array.from(i).indexOf(e)+n;if(a<0||a>=i.length)return;i[a].focus()}onItemFocusIn(e){let n=e.target;try{n&&typeof n.scrollIntoView=="function"&&n.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})}catch(i){this.logger.error("Failed to scroll carousel item into view",i)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-carousel-scrolling"]],inputs:{title:"title",items:"items",template:"template",previousIcon:"previousIcon",nextIcon:"nextIcon",trackByFn:"trackByFn"},decls:1,vars:1,consts:[["cxHorizontalScrollingPosition","cxHorizontalScrollingPosition"],["scrollingArea",""],["scrollingAreaStart",""],["scrollingAreaEnd",""],["cxHorizontalScrollingPosition","",3,"scrollingArea","scrollingAreaStart","scrollingAreaEnd",4,"ngIf"],["cxHorizontalScrollingPosition","",3,"scrollingArea","scrollingAreaStart","scrollingAreaEnd"],[4,"ngIf"],[1,"carousel-panel"],["tabindex","-1",1,"previous",3,"click"],[3,"type"],[1,"carousel-items"],[1,"carousel-items-start"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"carousel-items-end"],["tabindex","-1",1,"next",3,"click"],["class","item",3,"keydown","focusin",4,"ngIf"],[1,"item",3,"keydown","focusin"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&f(0,uf,23,34,"ng-container",4),n&2&&c("ngIf",i.items&&i.items.length>0)},dependencies:[N,Ux,je,se,et,q,$],encapsulation:2,changeDetection:0})}}return t})(),Gx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),Qs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae,Ve,Et,wt,W,Gx]})}}return t})(),Ys=(()=>{class t{constructor(e){this.ChangeDetectionRef=e,this.elementRef=T(z,{optional:!0}
12),this.ariaLiveToken=T(new Si("aria-live"),{optional:!0}),this.prefix="formErrors.labeled",this.fallbackPrefix="formErrors",this.previousTouchedState=!1,this.role=null,this.ariaLive=this.ariaLiveToken??"polite",this.atomic=!0}set control(e){e&&(this._control=e,this.errorsDetails$=e?.statusChanges.pipe(fi({}),I(()=>e.errors||{}),I(n=>Object.entries(n).filter(([i,r])=>r))))}get control(){return this._control}ngDoCheck(){this.control.touched!==this.previousTouchedState&&(this.elementRef?.nativeElement?.getAttribute("aria-live")==="polite"?setTimeout(()=>{this.previousTouchedState=this.control.touched,this.ChangeDetectionRef.markForCheck()}):(this.previousTouchedState=this.control.touched,this.ChangeDetectionRef.markForCheck()))}getTranslationParams(e){return e=Xa(e)?e:{},U(U({},e),this.translationParams)}get invalid(){return this.control?.invalid}get dirty(){return this.control?.dirty}get touched(){return this.control?.touched}get hidden(){return!(this.invalid&&(this.touched||this.dirty))}static{this.\u0275fac=function(n){return new(n||t)(g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-form-errors"]],hostVars:11,hostBindings:function(n,i){n&2&&(M("role",i.role)("aria-live",i.ariaLive)("aria-atomic",i.atomic),te("control-invalid",i.invalid)("control-dirty",i.dirty)("control-touched",i.touched)("cx-visually-hidden",i.hidden))},inputs:{prefix:"prefix",fallbackPrefix:"fallbackPrefix",translationParams:"translationParams",control:"control"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(n,i){n&1&&(f(0,ff,2,1,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.errorsDetails$))},dependencies:[N,se,q,$],encapsulation:2,changeDetection:0})}}return t})(),Wx=(()=>{class t{get placeholder(){return"yyyy-mm-dd"}get pattern(){return this.placeholder.replace("yyyy","\\d{4}").replace("mm","\\d{1,2}").replace("dd","\\d{1,2}")}isValidFormat(e,n){return new RegExp(`^${n??this.pattern}$`).test(e)}getDate(e){if(!e)return;let n=this.placeholder.replace("yyyy","").replace("mm","").replace("dd","").substring(0,1),i=e.split(n),r=this.placeholder.split(n),a=r.indexOf("yyyy"),h=r.indexOf("mm"),S=r.indexOf("dd");return new Date(Number(i[a]),Number(i[h])-1,Number(i[S]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zx=(()=>{class t{constructor(e){this.service=e,this.label="Date",this.update=new oe}change(){this.update.emit()}get placeholder(){return this.service.placeholder}get pattern(){return this.service.pattern}getDate(e){return e&&this.service.isValidFormat(e)?e:void 0}static{this.\u0275fac=function(n){return new(n||t)(g(Wx))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-date-picker"]],inputs:{control:"control",min:"min",max:"max",required:"required",label:"label"},outputs:{update:"update"},decls:5,vars:20,consts:[["type","date",1,"form-control",3,"change","formControl","placeholder","pattern"],["id","controlError","prefix","formErrors.labeled.date","fallbackPrefix","formErrors.date",3,"control","translationParams"]],template:function(n,i){n&1&&(d(0,"input",0),y("change",function(){return i.change()}),u(),w(1,"cx-form-errors",1),p(2,"cxTranslate"),p(3,"cxDate"),p(4,"cxDate")),n&2&&(c("formControl",i.control)("placeholder",i.placeholder)("pattern",i.pattern),M("min",i.min)("max",i.max)("required",i.required===!1?void 0:i.required)("aria-invalid",!i.control.untouched&&i.control.invalid)("aria-errormessage","controlError"),s(),c("control",i.control)("translationParams",$t(16,gf,m(2,10,i.label??""),m(3,12,i.getDate(i.max)),m(4,14,i.getDate(i.min)))))},dependencies:[Bt,Mn,Jn,ds,mt,Bo,Ys,$,Kn],encapsulation:2})}}return t})(),Ji=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W,he]})}}return t})(),ST=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,mt,Ji,W,he,zx]})}}return t})(),wT=(()=>{class t{constructor(){this.accept="*",this.multiple=!1,this.update=new oe,this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}selectFile(e){let n=e.target?.files,i=n&&n.length>0?n:null;this.onChangeCallback(i),this.update.emit(i)}removeFile(){this.fileInput.nativeElement.value="",this.onChangeCallback(null),this.update.emit(null)}get selectedFiles(){if(this.fileInput.nativeElement.files)return Array.from(this.fileInput.nativeElement.files)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.fileInput.nativeElement.disabled=e}writeValue(e){e instanceof FileList&&(this.fileInput.nativeElement.files=e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-file-upload"]],contentQueries:function(n,i,r){if(n&1&&Ra(r,J,5),n&2){let a;be(a=Se())&&(i.customButton=a.first)}}
12,viewQuery:function(n,i){if(n&1&&He(_f,7),n&2){let r;be(r=Se())&&(i.fileInput=r.first)}},inputs:{accept:"accept",multiple:"multiple"},outputs:{update:"update"},features:[_e([{provide:vt,useExisting:Ie(()=>t),multi:!0}])],ngContentSelectors:xn,decls:5,vars:5,consts:[["fileInput",""],["type","file","aria-hidden","true",3,"change","accept","multiple"],["class","btn btn-secondary","type","button",3,"click",4,"ngIf"],["class","link cx-action-link",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"link","cx-action-link",3,"click"],[4,"ngTemplateOutlet"]],template:function(n,i){n&1&&(ft(),d(0,"input",1,0),y("change",function(a){return i.selectFile(a)}),u(),f(2,vf,3,3,"button",2)(3,yf,2,1,"button",3)(4,xf,2,1,"p",4)),n&2&&(c("accept",i.accept)("multiple",i.multiple),s(2),c("ngIf",!i.customButton),s(),c("ngIf",i.customButton),s(),c("ngForOf",i.selectedFiles))},dependencies:[N,et,se,$],encapsulation:2})}}return t})(),TT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,mt,Ji,W,qe]})}}return t})(),qx=(()=>{class t{constructor(){this.showState={icon:ue.EYE_SLASH,inputType:"text",ariaLabel:"passwordVisibility.hidePassword"},this.hideState={icon:ue.EYE,inputType:"password",ariaLabel:"passwordVisibility.showPassword"},this.state=this.hideState}toggle(){this.state=this.state===this.hideState?this.showState:this.hideState,this.inputElement.setAttribute("type",this.state.inputType)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-password-visibility-toggle"]],inputs:{inputElement:"inputElement"},decls:2,vars:2,consts:[["type","button",3,"click",4,"cxFeature"],["type","button",3,"click"],["aria-hidden","true"],[3,"type"]],template:function(n,i){n&1&&f(0,bf,5,8,"button",0)(1,Sf,5,8,"button",0),n&2&&(c("cxFeature","!a11yPasswordVisibilityToggle"),s(),c("cxFeature","a11yPasswordVisibilityToggle"))},dependencies:[je,Ot,$],encapsulation:2,changeDetection:0})}}return t})(),Kx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),IT=(()=>{class t{constructor(e,n,i,r,a){this.winRef=e,this.config=n,this.elementRef=i,this.viewContainerRef=r,this.changeDetectorRef=a}ngAfterViewInit(){this.config.form?.passwordVisibilityToggle&&(this.wrapInput(),this.insertComponent(),this.changeDetectorRef.detectChanges())}insertComponent(){let e=this.viewContainerRef.createComponent(qx);e.instance.inputElement=this.elementRef.nativeElement,this.inputWrapper?.appendChild(e.location.nativeElement)}wrapInput(){let e=this.elementRef.nativeElement,n=e.parentNode;this.inputWrapper=this.winRef.document.createElement("div"),this.inputWrapper.setAttribute("class","cx-password-input-wrapper"),n.replaceChild(this.inputWrapper,e),this.inputWrapper.appendChild(e)}static{this.\u0275fac=function(n){return new(n||t)(g(Te),g(Kx),g(z),g(xt),g(Oe))}}static{this.\u0275dir=V({type:t,selectors:[["","cxPasswordVisibilitySwitch","","type","password"]]})}}return t})(),Qx={form:{passwordVisibilityToggle:!0}},ET=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(Qx)],imports:[L,Ve,W]})}}return t})(),ar=(()=>{class t{constructor(){this.titleTranslation="common.required"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-form-required-asterisks"]],inputs:{titleTranslation:"titleTranslation"},decls:3,vars:4,consts:[["aria-hidden","true",1,"text-decoration-none","required-asterisk",3,"title"]],template:function(n,i){n&1&&(d(0,"abbr",0),p(1,"cxTranslate"),_(2,"*"),u()),n&2&&c("title",me(m(1,2,i.titleTranslation)))},dependencies:[L,W,$],encapsulation:2,changeDetection:0})}}return t})(),cr=(()=>{class t{constructor(){this.formLegendTranslation="formLegend.required"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-form-required-legend"]],inputs:{formLegendTranslation:"formLegendTranslation"},decls:3,vars:3,consts:[[1,"form-legend"]],template:function(n,i){n&1&&(d(0,"p",0),_(1),p(2,"cxTranslate"),u()),n&2&&(s(),x(" ",m(2,1,i.formLegendTranslation),` 13`))},dependencies:[L,W,$],encapsulation:2,changeDetection:0})}}return t})(),Yx=(()=>{class t{constructor(){this.min=1,this.step=1,this.allowZero=!1,this.ariaDescribedById="",this.readonly=!1}ngOnInit(){this.sub=this.control.valueChanges.pipe(fi(this.control.value)).subscribe(e=>this.control.setValue(this.getValidCount(e),{emitEvent:!1}))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}updateValue(){this.control.setValue(+this.input.nativeElement.value),this.control.markAsDirty()}increment(){this.control.setValue(this.control.value+this.step),this.control.markAsDirty()}
13decrement(){this.control.setValue(this.control.value-this.step),this.control.markAsDirty()}getValidCount(e){return e<this.min&&!(e===0&&this.allowZero)&&(e=this.min),this.max&&e>this.max&&(e=this.max),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-item-counter"]],viewQuery:function(n,i){if(n&1&&He(wf,5),n&2){let r;be(r=Se())&&(i.input=r.first)}},hostVars:2,hostBindings:function(n,i){n&2&&te("readonly",i.readonly)},inputs:{control:"control",min:"min",max:"max",step:"step",allowZero:"allowZero",ariaDescribedById:"ariaDescribedById",readonly:"readonly"},decls:11,vars:33,consts:[["qty",""],["type","button",3,"click","tabindex","cxFocus","title"],["type","number",3,"keyup.enter","min","max","step","readonly","tabindex","formControl","cxFocus"],["type","button",3,"click","cxFocus","title"]],template:function(n,i){n&1&&(d(0,"button",1),p(1,"cxTranslate"),p(2,"cxTranslate"),y("click",function(){return i.decrement()}),_(3,` - 14`),u(),d(4,"input",2,0),p(6,"cxTranslate"),y("keyup.enter",function(){return i.updateValue()}),u(),d(7,"button",3),p(8,"cxTranslate"),p(9,"cxTranslate"),y("click",function(){return i.increment()}),_(10,` + 15`),u()),n&2&&(c("title",me(m(1,20,"itemCounter.removeOne")))("tabindex",i.control.disabled||i.control.value<=i.min?-1:0)("cxFocus",Me(30,Tf)),M("aria-disabled",i.control.disabled||i.control.value<=i.min)("aria-label",m(2,22,"itemCounter.removeOne")),s(4),c("min",i.min)("max",i.max)("step",i.step)("readonly",i.readonly)("tabindex",i.readonly?-1:0)("formControl",i.control)("cxFocus",Me(31,If)),M("aria-label",m(6,24,"itemCounter.quantity"))("aria-describedby",i.ariaDescribedById),s(3),c("title",me(m(8,26,"itemCounter.addOneMore")))("cxFocus",Me(32,Ef)),M("aria-disabled",i.control.disabled||i.control.value>=i.max)("aria-label",m(9,28,"itemCounter.addOneMore")))},dependencies:[$e,Bt,Mn,Vo,Jn,ls,cs,mt,Bo,$],encapsulation:2})}}return t})(),Xx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,mt,W,qe,he,Yx]})}}return t})(),bs="aria-label",Go="aria-hidden",Zx=(()=>{class t{onKeyUp(e){e.code==="AltLeft"&&this.selectComponent.close()}onEscape(){setTimeout(()=>{this.elementRef.nativeElement.querySelector("input").focus()})}onKeyDown(){this.featureToggles.a11yRestoreFocusOnNgSelect&&Promise.resolve().then(()=>{this.elementRef.nativeElement.closest(".mouse-focus")?.classList.remove("mouse-focus")})}constructor(e,n){this.renderer=e,this.elementRef=n,this.translationService=T(pt),this.domSanitizer=T(Ei),this.selectComponent=T(Gi),this.destroyRef=T(Kt),this.featureToggles=T(bt),this.platformId=T(fn),this.selectObserver=null,this.breakpointService=T(Sn,{optional:!0}),Ye("a11yNgSelectUnicodeCarets"),this.featureToggles.a11yVocalizeDropdownItemCount&&this.vocalizeItemCount()}ngAfterViewInit(){let e=this.elementRef.nativeElement,n=e.querySelector('[role="combobox"]');this.renderer.setAttribute(n,"role","combobox"),this.renderer.setAttribute(n,"aria-expanded","false");let i=e.querySelector(".ng-arrow-wrapper");i&&this.renderer.setAttribute(i,Go,"true");let r=Pr(this.selectComponent.openEvent).pipe(I(()=>"true")),a=Pr(this.selectComponent.closeEvent).pipe(I(()=>"false"));hr(r,a).pipe(Pt(this.destroyRef)).subscribe(K=>{this.renderer.setAttribute(n,"aria-expanded",K),k&&setTimeout(()=>{this.renderer.setAttribute(n,"aria-controls",k)})});let h=this.cxNgSelectA11y.ariaLabel,S=e.id,k=this.cxNgSelectA11y.ariaControls??S;h&&this.renderer.setAttribute(n,bs,h),k&&this.renderer.setAttribute(n,"aria-controls",k),n.readOnly&&Ti(this.platformId)&&(this.featureToggles.a11yNgSelectReadonlyInputValue?(this.setInputValue(n),this.selectObserver=new MutationObserver(()=>{this.setInputValue(n)}),this.selectObserver.observe(e,{subtree:!0,characterData:!0,childList:!0}),this.destroyRef.onDestroy(()=>this.selectObserver?.disconnect())):this.breakpointService?.isDown(Yi.md).pipe(G(Boolean),le(1)).subscribe(()=>{new MutationObserver((fe,ye)=>{this.appendValueToAriaLabel(fe,ye,n)}).observe(e,{subtree:!0,characterData:!0,childList:!0})}
15))}vocalizeItemCount(){vi(()=>{this.translationService.translate("assistiveMessage.dropdownItemCount",{count:this.selectComponent.items()?.length??0}).pipe(le(1),Pt(this.destroyRef)).subscribe(e=>{let n=this.elementRef.nativeElement.querySelector(".cx-ng-select-count")??this.createItemCountSpan();this.renderer.setProperty(n,"textContent",e)})})}createItemCountSpan(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"cx-ng-select-count"),this.renderer.addClass(e,"cx-visually-hidden"),this.renderer.setAttribute(e,Go,"true"),this.renderer.appendChild(this.elementRef.nativeElement,e);let n=(this.elementRef.nativeElement.id||"ng-select")+"-count";this.renderer.setAttribute(e,"id",n);let i=this.elementRef.nativeElement.querySelector('[role="combobox"]');return i&&this.renderer.setAttribute(i,"aria-describedby",n),this.destroyRef.onDestroy(()=>e.remove()),e}setInputValue(e){let n=this.domSanitizer.sanitize(_i.HTML,this.elementRef.nativeElement.querySelector(".ng-value-label")?.innerText);if(n){this.renderer.setProperty(e,"value",n);let i=this.elementRef.nativeElement.querySelector(".ng-value");i&&this.renderer.setAttribute(i,Go,"true")}}appendValueToAriaLabel(e,n,i){let r=this.domSanitizer.sanitize(_i.HTML,this.elementRef.nativeElement.querySelector(".ng-value-label")?.innerText);if(r){let a=i?.getAttribute(bs)||"",h=this.elementRef.nativeElement.querySelector(".ng-value");this.renderer.setAttribute(h,Go,"true"),this.renderer.setAttribute(i,bs,a+", "+r)}n.disconnect()}static{this.\u0275fac=function(n){return new(n||t)(g(De),g(z))}}static{this.\u0275dir=V({type:t,selectors:[["","cxNgSelectA11y",""]],hostBindings:function(n,i){n&1&&y("keyup",function(a){return i.onKeyUp(a)})("keydown.escape",function(){return i.onEscape()})("keydown",function(){return i.onKeyDown()})},inputs:{cxNgSelectA11y:"cxNgSelectA11y"}})}}return t})(),lr=(()=>{class t{constructor(){this.ngSelectComponent=Xt.required(Gi),this.featureToggles=T(bt),this.sortListEvent=new oe}sortList(e){if(!this.featureToggles.a11yRestoreFocusOnNgSelect){this.sortListEvent.emit(e);return}this.ngSelectComponent().element.dispatchEvent(new FocusEvent("focus")),this.sortListEvent.emit(e),requestAnimationFrame(()=>this.focusCombobox())}get selectedLabel(){if(this.selectedOption)return this.sortOptions?.find(e=>e.code===this.selectedOption)?.name??this.sortLabels?.[this.selectedOption]}focusCombobox(){this.ngSelectComponent().element.querySelector('[role="combobox"]')?.focus({preventScroll:!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-sorting"]],viewQuery:function(n,i){n&1&&xi(i.ngSelectComponent,Gi,5),n&2&&Nn()},inputs:{sortOptions:"sortOptions",ariaControls:"ariaControls",ariaLabel:"ariaLabel",selectedOption:"selectedOption",placeholder:"placeholder",sortLabels:"sortLabels"},outputs:{sortListEvent:"sortListEvent"},decls:5,vars:18,consts:[["ngSelectComponent",""],[3,"change","cxFocus","searchable","clearable","placeholder","ngModel","ariaLabelDropdown","cxNgSelectA11y"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,i){n&1&&(d(0,"ng-select",1,0),p(2,"cxTranslate"),p(3,"cxTranslate"),y("change",function(a){return i.sortList(a)}),f(4,Ff,2,2,"ng-option",2),u()),n&2&&(c("placeholder",me(i.placeholder))("ariaLabelDropdown",me(m(2,10,"common.ngSelectDropdownOptionsList")))("cxFocus",Me(14,Df))("searchable",!1)("clearable",!1)("ngModel",i.selectedOption)("cxNgSelectA11y",st(15,Mf,i.ariaLabel||m(3,12,"productList.sortResults"),i.ariaControls)),s(4),c("ngForOf",i.sortOptions))},dependencies:[Gi,Bt,Jn,os,Zx,se,Uo,$e,$],encapsulation:2,changeDetection:0})}}return t})(),Jx=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),eb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,fs,Bt,Jx,W,lr]})}}return t})(),tb={pagination:{addStart:!0,addEnd:!0}},nb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),Ne=(function(t){return t.GAP="gap",t.FIRST="first",t.LAST="last",t.PREVIOUS="previous",t.NEXT="next",t.
15START="start",t.END="end",t.PAGE="page",t})(Ne||{}),Ko=(function(t){return t.ASIDE="aside",t.BEFORE="before",t.AFTER="after",t})(Ko||{}),ib={rangeCount:3,dotsLabel:"...",startLabel:"\xAB",previousLabel:"\u2039",nextLabel:"\u203A",endLabel:"\xBB"},ob=(()=>{class t{constructor(e){this.paginationConfig=e}paginate(e,n){let i=[];return!e||e<2||(this.addPages(i,e,n),this.addDots(i,e),this.addFirstLast(i,e),this.addNavigation(i,e,n)),i}addPages(e,n,i){let r=this.getStartOfRange(n,i);if(this.config.rangeCount!==void 0&&r!==null){let a=Math.min(this.config.rangeCount,n);Array.from(Array(a)).forEach((h,S)=>{e.push({number:S+r,label:String(S+r+1),type:Ne.PAGE})})}}addDots(e,n){this.config.addDots&&(e.unshift(...this.addFirstGapToDots(e)),e.push(...this.addLastGapToDots(e,n)))}addFirstGapToDots(e){let n=e[0].number,i=Number(this.config.addFirst);if(n!==void 0&&n>i){let r=!this.config.substituteDotsForSingularPage||n!==i+1,a=this.config.addFirst&&this.config.substituteDotsForSingularPage&&i===0,h=r?Ne.GAP:a?Ne.FIRST:Ne.PAGE;return[Object.assign({label:r?this.config.dotsLabel:String(i+1),type:h},r?null:{number:i})]}else return[]}addLastGapToDots(e,n){let i=e[e.length-1].number,r=i?i+1:void 0,a=n-(Number(this.config.addLast)+1);if(r&&r<=a){let h=this.config.addLast&&this.config.substituteDotsForSingularPage&&r===a,S=r<n-Number(this.config.substituteDotsForSingularPage)-Number(this.config.addLast),k=S?Ne.GAP:h?Ne.LAST:Ne.PAGE;return[Object.assign({label:S?this.config.dotsLabel:String(r+1),type:k},S?null:{number:r})]}else return[]}addFirstLast(e,n){this.config.addFirst&&e[0].number!==0&&e.unshift({number:0,label:"1",type:Ne.FIRST}),this.config.addLast&&e[e.length-1].number!==n-1&&e.push({number:n-1,label:String(n),type:Ne.LAST})}addNavigation(e,n,i){let r=this.getBeforeLinks(i),a=this.getAfterLinks(n,i),h=this.config.navigationPosition;!h||h===Ko.ASIDE?(e.unshift(...r),e.push(...a)):(h===Ko.BEFORE&&e.unshift(...r,...a),h===Ko.AFTER&&e.push(...r,...a))}getBeforeLinks(e){let n=[];if(this.config.addStart){let i=()=>Object.assign({label:this.config.startLabel,type:Ne.START},e>0?{number:0}:null);n.push(i())}if(this.config.addPrevious){let i=()=>Object.assign({label:this.config.previousLabel,type:Ne.PREVIOUS},e>0?{number:e-1}:null);n.push(i())}return n}getAfterLinks(e,n){let i=[];if(this.config.addNext){let r=()=>Object.assign({label:this.config.nextLabel,type:Ne.NEXT},n<e-1?{number:n+1}:null);i.push(r())}if(this.config.addEnd){let r=()=>Object.assign({label:this.config.endLabel,type:Ne.END},n<e-1?{number:e-1}:null);i.push(r())}return i}getStartOfRange(e,n){if(this.config.rangeCount!==void 0){let i=this.config.rangeCount-1,r=Math.round(i/2),a=Math.max(0,n-r),h=Math.max(0,e-i-1);return Math.min(h,a)}return null}get config(){return Object.assign(ib,this.paginationConfig.pagination)}static{this.\u0275fac=function(n){return new(n||t)(b(nb))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xs=(()=>{class t{get pagination(){return this._pagination}set pagination(e){e&&(this._pagination=e,this.render(e))}constructor(e,n){this.paginationBuilder=e,this.activatedRoute=n,this.pageRoute=".",this.paginationID="pagination",this.viewPageEvent=ne
15w oe,this.pages=[],this.translationService=T(pt)}render(e){e&&(this.pages=this.paginationBuilder.paginate(e.totalPages??0,e.currentPage??0))}getAriaLabel$(e){let n=e.type;n=n===Ne.START?Ne.FIRST:n,n=n===Ne.END?Ne.LAST:n;let i=n===Ne.PAGE?`${n} ${e.label}`:`${n} ${Ne.PAGE}`;return this.translationService?Ce([this.translationService?.translate("navigation.goTo",{location:i}),this.translationService?.translate("common.selected")]).pipe(I(([r,a])=>this.isCurrent(e)?`${r}, ${a}`:r)):Q(i)}isCurrent(e){return e.type===Ne.PAGE&&e.number===this.pagination.currentPage}isInactive(e){return!e.hasOwnProperty("number")||e.number===this.pagination.currentPage}getQueryParams(e){let n=Object.assign({},this.activatedRoute.snapshot.queryParams);return this.queryParam&&e.number!==void 0&&this.pagination.totalPages!==void 0&&e.number<this.pagination.totalPages&&!this.isCurrent(e)&&(n[this.queryParam]=e.number),n[this.queryParam]===this.defaultPage&&delete n[this.queryParam],n}pageChange(e){this.viewPageEvent.emit(e.number)}static{this.\u0275fac=function(n){return new(n||t)(g(ob),g(Rr))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-pagination"]],inputs:{pageRoute:"pageRoute",queryParam:"queryParam",defaultPage:"defaultPage",pagination:"pagination",paginationID:"paginationID"},outputs:{viewPageEvent:"viewPageEvent"},decls:1,vars:1,consts:[[3,"class","disabled","current","routerLink","queryParams","tabindex","cxFocus","click",4,"ngFor","ngForOf"],[3,"click","routerLink","queryParams","tabindex","cxFocus"]],template:function(n,i){n&1&&f(0,kf,4,21,"a",0),n&2&&c("ngForOf",i.pages)},dependencies:[se,Qe,$e,q],encapsulation:2,changeDetection:0})}}return t})(),rb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(tb)],imports:[L,ae,W,he,qe]})}}return t})(),DT=(()=>{class t{get pagination(){return this._pagination}set pagination(e){this._pagination=e??{totalResults:0}}get currentPage(){return this.pagination?.currentPage??0}get pageSize(){return this.pagination?.pageSize??0}get totalResults(){return this.pagination?.totalResults??0}get fromItem(){return this.currentPage*this.pageSize+1}get toItem(){let e=(this.currentPage+1)*this.pageSize;return e>this.totalResults?this.totalResults:e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-total"]],inputs:{pagination:"pagination"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"cx-vertical-line-separator"]],template:function(n,i){n&1&&f(0,Af,8,10,"ng-container",0),n&2&&c("ngIf",i.totalResults>0)},dependencies:[N,$],encapsulation:2,changeDetection:0})}}return t})(),sb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,Bt,W]})}}return t})(),Zs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,fs,Bt,mt,Ve,rb,eb,sb]})}}return t})();var MT=(()=>{class t{constructor(){this.ariaLabel="",this.class="",this.disabled=!1,this.loading=!1,this.clickEvent=new oe}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-progress-button"]],inputs:{ariaLabel:"ariaLabel",class:"class",disabled:"disabled",loading:"loading"},outputs:{clickEvent:"clickEvent"},ngContentSelectors:xn,decls:4,vars:4,consts:[[1,"btn","btn-primary",3,"click","disabled","ngClass"],[1,"cx-progress-button-container"],["class","loader-container",4,"ngIf"],[1,"loader-container"],[1,"loader"]],template:function(n,i){n&1&&(ft(),d(0,"button",0),y("click",function(){return i.clickEvent.emit()}),d(1,"div",1),f(2,Rf,4,3,"div",2),gt(3),u()()),n&2&&(c("disabled",i.disabled||i.loading)("ngClass",i.class),M("aria-label",i.ariaLabel),s(2),c("ngIf",i.loading))},dependencies:[Rt,N,$],encapsulation:2})}}return t})(),FT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W]})}}return t})(),ks=(()=>{class t{constructor(){this.defaultHideMode=!0,this.splitViewCount=1,this._views$=new ke([])}add(e,n){let i=U({hidden:e===0?!1:this.defaultHideMode},n);this.views[e]||(this.views[e]=i,this.updateState(e,i.hidden),this._views$.next(this.views))}updateSplitView(e){e!==this.splitViewCount&&(this.splitViewCount=e,this.updateState())}getActiveView(){return this._views$.pipe(I(e=>this.getActive(e)),pe())}getViewState(e){return this._views$.pipe(I(n=>n[e]),G(n=>!!n))}remove(e){let n=this.getActive(this.views);this._views$.next(this.views.splice(0,e)),n>=e&&this.updateState(e)}get nextPosition(){return this.views.length||0}toggle(e,n){this.views[e]||this.add(e,{hidden:n??!1}),this.views[e]&&n===void 0&&!this.views[e].hidden&&e--,this.updateState(e,n===!0)}updateState(e,n){let i=[...this.views];n!==void 0&&e&&i[e]&&(i[e].hidden=n);let r=i.length-[...i].reverse().findIndex(a=>!a.hidden)-1;
15r===i.length&&(e?r=e-1:r=i.length-1),i.forEach((a,h)=>{a&&h!==e&&(a.hidden=h>r||h<r-(this.splitViewCount-1))}),this._views$.next(i)}getActive(e){let n=[...e].reverse().findIndex(r=>!r.hidden);return n===-1?0:e.length-n-1}get views(){return this._views$.value}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),kT=(()=>{class t{set hideMode(e){this.splitService.defaultHideMode=e}constructor(e,n,i){this.splitService=e,this.breakpointService=n,this.elementRef=i,this.subscription=new ve,this.lastVisibleView=1}ngOnInit(){this.subscription.add(this.splitService.getActiveView().subscribe(e=>this.lastVisibleView=e+1)),this.subscription.add(this.breakpointService.breakpoint$.subscribe(()=>{this.splitService.updateSplitView(this.splitViewCount)}))}get splitViewCount(){return Number(getComputedStyle(this.elementRef.nativeElement).getPropertyValue("--cx-max-views"))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(ks),g(Sn),g(z))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-split-view"]],hostVars:3,hostBindings:function(n,i){n&2&&(M("active-view",i.lastVisibleView),bi("--cx-active-view",i.lastVisibleView))},inputs:{hideMode:"hideMode"},features:[_e([ks])],ngContentSelectors:xn,decls:1,vars:0,template:function(n,i){n&1&&(ft(),gt(0))},encapsulation:2,changeDetection:0})}}return t})(),AT=(()=>{class t{set hidden(e){this._hidden=e,this.splitService.toggle(this.viewPosition,e)}constructor(e,n,i){this.splitService=e,this.elementRef=n,this.cd=i,this.disappeared=!0,this.hiddenChange=new oe,this.globalMessageService=T(ut)}ngOnInit(){let e=this._hidden?{hidden:this._hidden}:{};this.splitService.add(this.viewPosition,e),this.subscription=this.splitService.getViewState(this.viewPosition).pipe(vr(n=>ha(n.hidden?this.duration*1.25:0))).subscribe(n=>{this.hiddenChange.emit(n.hidden),this._hidden=n.hidden,this.disappeared=n.hidden,this.cd.markForCheck()}),this.onViewChangeShowAssistiveMessage()}toggle(e){this.splitService.toggle(this.viewPosition,e)}get viewPosition(){return Number(this.position)>=0||(this.position=this.splitService.nextPosition.toString()),Number(this.position)}get duration(){let e=getComputedStyle(this.elementRef.nativeElement).getPropertyValue("--cx-transition-duration").trim();return e.indexOf("ms")>-1?Number(e.split("ms")[0]):e.indexOf("s")>-1?Number(e.split("s")[0])*1e3:300}onViewChangeShowAssistiveMessage(){this.subscription.add(this.splitService.getActiveView().pipe(pe()).subscribe(e=>{this.viewPosition!==e||!this.viewTitle||this.globalMessageService?.add(this.viewTitle,Fe.MSG_TYPE_ASSISTIVE,500)}))}ngOnDestroy(){this.splitService.remove(this.viewPosition),this.subscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(ks),g(z),g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-view"]],hostVars:4,hostBindings:function(n,i){n&2&&(M("position",i.position)("disappeared",i.disappeared),bi("--cx-view-position",i.position))},inputs:{position:"position",hidden:"hidden",viewTitle:"viewTitle"},outputs:{hiddenChange:"hiddenChange"},ngContentSelectors:xn,decls:1,vars:0,template:function(n,i){n&1&&(ft(),gt(0))},encapsulation:2,changeDetection:0})}}return t})(),RT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae]})}}return t})(),ab=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-promotions"]],inputs:{promotions:"promotions"},decls:1,vars:1,consts:[["class","cx-promotions",4,"ngIf"],[1,"cx-promotions"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(n,i){n&1&&f(0,Vf,3,2,"div",0),n&2&&c("ngIf",i.promotions)},dependencies:[N,se],encapsulation:2,changeDetection:0})}}return t})(),cb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),er=(function(t){return t.LANGUAGE="LANGUAGE",t.CURRENCY="CURRENCY",t})(er||{}
15),lb={[Di]:"common.language",[Mi]:"common.currency"},Qo=(()=>{class t{constructor(e,n,i){this.componentData=e,this.contextServiceMap=n,this.injector=i}getItems(e){return this.getService(e).pipe(ne(n=>n.getAll()),ne(n=>this.getContext(e).pipe(ne(i=>{let r=[];for(let a of n)r.push(ce(U({},a),{label:this.getOptionLabel(a,i)}));return Q(r)}))))}getActiveItem(e){return this.getService(e).pipe(ne(n=>n.getActive()))}getLabel(e){return this.getContext(e).pipe(I(n=>{if(n)return lb[n]}))}setActive(e,n){this.getService(n).pipe(le(1)).subscribe(i=>{i.setActive(e)})}getService(e){return this.getContext(e).pipe(I(n=>n?this.getInjectedService(n):void 0),G(Jt))}getContext(e){return e?e===er.CURRENCY?Q(Mi):e===er.LANGUAGE?Q(Di):Q(e):this.componentData?this.componentData.data$.pipe(I(n=>n.context),I(n=>{switch(n){case"LANGUAGE":return Di;case"CURRENCY":return Mi;default:return n}})):Q(void 0)}getInjectedService(e){return this.injector.get(this.contextServiceMap[e],void 0)}getOptionLabel(e,n){switch(n){case Di:return e.nativeName;case Mi:return e.symbol+" "+e.isocode;default:return e.isocode}}static{this.\u0275fac=function(n){return new(n||t)(b(Re,8),b(go),b(Pe))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),As=(()=>{class t{constructor(e){this.componentService=e,this.iconTypes=ue,this.translationService=T(pt),Ye("a11ySiteContextCaretClick")}get items$(){return this.componentService.getItems(this.context)}get activeItem$(){return this.componentService.getActiveItem(this.context)}set active(e){this.componentService.setActive(e,this.context)}get label$(){return this.componentService.getLabel(this.context)}ariaLabel$(e,n,i){return this.translationService.translate("common.of").pipe(I(r=>`${e}, ${n+1} ${r} ${i}`))}static{this.\u0275fac=function(n){return new(n||t)(g(Qo))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-site-context-selector"]],inputs:{context:"context"},decls:3,vars:5,consts:[[4,"ngIf"],["class","cx-select-wrapper",4,"cxFeature"],[4,"cxFeature"],[1,"cx-select-wrapper"],[3,"change"],[3,"value",4,"ngFor","ngForOf"],["aria-hidden","true",1,"small",3,"type"],[3,"value"]],template:function(n,i){if(n&1&&(f(0,Hf,7,7,"label",0),p(1,"async"),p(2,"async")),n&2){let r;c("ngIf",((r=m(1,1,i.items$))==null?null:r.length)>1&&m(2,3,i.items$))}},dependencies:[N,se,je,W,Ot,q,$],encapsulation:2,changeDetection:0})}}return t})(),fd=(()=>{class t{constructor(){this.siteContextType=er}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-language-currency-selector"]],decls:2,vars:2,consts:[[3,"context"]],template:function(n,i){n&1&&w(0,"cx-site-context-selector",0)(1,"cx-site-context-selector",0),n&2&&(c("context",i.siteContextType.LANGUAGE),s(),c("context",i.siteContextType.CURRENCY))},dependencies:[As],encapsulation:2,changeDetection:0})}}return t})(),PT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{CMSSiteContextComponent:{component:As,providers:[{provide:Qo,useClass:Qo,deps:[Re,go,Pe]}]},LanguageCurrencyComponent:{component:fd}}}),Qo],imports:[L,ae,Mc,Ve,As,fd,W]})}}return t})();var dr=(()=>{class t{constructor(){this.initialRate=0,this.icon=ue.STAR,this.disabled=!0,this.rating=this.initialRate,this.change=new oe}setRate(e){this.disabled||(this.rating=e)}reset(){this.disabled||(this.rating=this.initialRate??0)}saveRate(e){this.disabled||(this.initialRate=e,this.setRate(e),this.change.emit(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-star-rating"]],hostAttrs:["role","group"],hostVars:3,hostBindings:function(n,i){n&1&&y("mouseout",function(){return i.reset()}),n&2&&(M("disabled",i.disabled),bi("--star-fill",i.rating))},inputs:{disabled:"disabled",rating:"rating"},outputs:{change:"change"},decls:3,vars:2,consts:[["starRating",""],["role","img",3,"title",4,"ngIf","ngIfElse"],["role","img",3,"title"],[4,"ngTemplateOutlet"],["class","star",3,"type","mouseover","click","keydown.space",4,"ngFor","ngForOf"],[1,"star",3,"mouseover","click","keydown.space","type"]],template:function(n,i){if
15(n&1&&f(0,Wf,4,13,"div",1)(1,qf,1,2,"ng-template",null,0,ie),n&2){let r=H(2);c("ngIf",i.disabled)("ngIfElse",r)}},dependencies:[N,et,se,je,$],encapsulation:2,changeDetection:0})}}return t})(),Js=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,Ve,W]})}}return t})(),db=(()=>{class t{constructor(e){this.outlet=e}get value(){return this.model[this.field]}get model(){return this.outlet?.context}get field(){return this.outlet?.context?._field}static{this.\u0275fac=function(n){return new(n||t)(g(Ki))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-table-data-cell"]],hostVars:1,hostBindings:function(n,i){n&2&&M("title",i.value)},decls:1,vars:1,template:function(n,i){n&1&&_(0),n&2&&B(i.value)},encapsulation:2,changeDetection:0})}}return t})(),ub=(()=>{class t{constructor(e){this.outlet=e}get header(){if(typeof this.fieldOptions?.label=="string")return this.fieldOptions.label}get localizedHeader(){return this.fieldOptions?.label?.i18nKey||`${this.i18nRoot}.${this.field}`}get fieldOptions(){return this.outlet?.context._options?.cells?.[this.field]}get field(){return this.outlet?.context?._field}get type(){return this.outlet?.context?._type}get i18nRoot(){return this.outlet?.context?._i18nRoot}static{this.\u0275fac=function(n){return new(n||t)(g(Ki))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-table-header-cell"]],decls:2,vars:3,template:function(n,i){n&1&&(_(0),p(1,"cxTranslate")),n&2&&B(i.header||m(1,1,i.localizedHeader))},dependencies:[$],encapsulation:2,changeDetection:0})}}return t})(),pb={tableOptions:{headerComponent:ub,dataComponent:db}},lu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),mb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L]})}}return t})(),hb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W]})}}return t})(),fb=(()=>{class t{constructor(e,n,i){this.outletService=e,this.componentFactoryResolver=n,this.config=i,this.outletRefs=new Map}add(e){e?.cells?.forEach(n=>{let i=this.getHeaderRenderer(e,n);if(i){let a=this.getHeaderOutletRef(e.type,n);this.render(a,i)}let r=this.getDataRenderer(e,n);if(r){let a=this.getDataOutletRef(e.type,n);this.render(a,r)}})}render(e,n){if(this.outletRefs.has(e))return;this.outletRefs.set(e,!0);let i=this.componentFactoryResolver.resolveComponentFactory(n);this.outletService.add(e,i)}getHeaderRenderer(e,n){return e.options?.cells?.[n]?.headerComponent||e.options?.headerComponent||this.config.tableOptions?.headerComponent}getDataRenderer(e,n){return e.options?.cells?.[n]?.dataComponent||e.options?.dataComponent||this.config.tableOptions?.dataComponent}getHeaderOutletRef(e,n){return`table.${e}.header.${n}`}getHeaderOutletContext(e,n,i,r){return{_type:e,_options:n,_field:r,_i18nRoot:i}}getDataOutletRef(e,n){return`table.${e}.data.${n}`}getDataOutletContext(e,n,i,r,a){return ce(U({},a),{_type:e,_options:n,_field:r,_i18nRoot:i})}static{this.\u0275fac=function(n){return new(n||t)(b(Pn),b(Ft),b(lu))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yo=(function(t){return t[t.VERTICAL=1]="VERTICAL",t[t.VERTICAL_STACKED=2]="VERTICAL_STACKED",t[t.HORIZONTAL=3]="HORIZONTAL",t})(Yo||{}),OT=(()=>{class t{set structure(e){this._structure=e,this.init()}get structure(){return this._structure}constructor(e){this.rendererService=e,this.featureToggles=T(bt),this.launch=new oe,this.trackData=(n,i)=>this.featureToggles.a11yCardNotificationMessage?i?.uid??JSON.stringify(i):JSON.stringify(i)}init(){this.verticalLayout=!this.layout||this.layout===Yo.VERTICAL,this.verticalStackedLayout=this.layout===Yo.VERTICAL_STACKED,this.horizontalLayout=this.layout===Yo.HORIZONTAL,this.rendererService.add(this.structure),this.addTableDebugInfo()}launchItem(e){this.launch.emit(e)}isCurrentItem(e){return!this.currentItem||!this.currentItem.value?!1:this.currentItem?.value===e?.[this.currentItem?.property]}getHeaderOutletRef(e){return this.rendererService.getHeaderOutletRef(this.type,e)}getHeaderOutletContext(e){return this.rendererService.getHeaderOutletContext(this.t
15ype,this.options,this.i18nRoot,e)}getDataOutletRef(e){return this.rendererService.getDataOutletRef(this.type,e)}getDataOutletContext(e,n){return this.rendererService.getDataOutletContext(this.type,this.options,this.i18nRoot,e,n)}addTableDebugInfo(){ct()&&this.type&&(this.tableType=this.type)}get layout(){return this.structure?.options?.layout}get type(){return this.structure?.type}get options(){return this.structure?.options}static{this.\u0275fac=function(n){return new(n||t)(g(fb))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-table"]],hostVars:7,hostBindings:function(n,i){n&2&&(M("__cx-table-type",i.tableType),te("horizontal",i.horizontalLayout)("vertical",i.verticalLayout)("vertical-stacked",i.verticalStackedLayout))},inputs:{structure:"structure",data:"data",i18nRoot:"i18nRoot",currentItem:"currentItem"},outputs:{launch:"launch"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"is-current","click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"click"],[3,"class",4,"ngFor","ngForOf"],[3,"cxOutlet","cxOutletContext"],["scope","col",3,"class",4,"ngFor","ngForOf"],["scope","col"]],template:function(n,i){n&1&&f(0,dg,4,3,"table",0),n&2&&c("ngIf",i.structure)},dependencies:[N,se,zt],encapsulation:2,changeDetection:0})}}return t})(),LT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(pb)],imports:[L,yt,hb,mb]})}}return t})(),VT=(()=>{class t{constructor(e,n){this.breakpointService=e,this.config=n,this.logger=T(St)}buildStructure(e,n){return this.hasTableConfig(e)?this.buildStructureFromConfig(e,n):this.buildRandomStructure(e)}buildStructureFromConfig(e,n){return this.breakpointService.breakpoint$.pipe(I(i=>ce(U({},this.getTableConfig(e,i,n)),{type:e})))}getTableConfig(e,n,i){if(!this.config.table?.[e])return null;let r=this.findRelevantBreakpoints(n),a=[...r].reverse().find(k=>!!this.config.table?.[e][k]?.cells),h=a&&this.config.table[e][a]?.cells||this.config.table[e].cells||i?.cells,S=U(U({},i?.options),this.config.table[e].options);return r.forEach(k=>{S=U(U(U({},S),i?.[k]?.options),this.config.table?.[e]?.[k]?.options)}),{cells:h,options:S}}buildStructureFromData(e,n){return this.logWarning(`No table configuration found to render table with type "${e}". The table header for "${e}" is generated by the help of the first data item`),n.pipe(I(i=>{let r=Object.keys(i?.[0]).map(a=>a);return{type:e,cells:r}}))}buildRandomStructure(e){return this.logWarning(`No data available for "${e}", a random structure is generated (with hidden table headers).`),Q({type:e,cells:["unknown","unknown","unknown","unknown","unknown"]})}findRelevantBreakpoints(e){let n=this.breakpointService.breakpoints.indexOf(e);return this.breakpointService.breakpoints.slice(0,n+1)}hasTableConfig(e){return!!this.config.table?.[e]}logWarning(e){ct()&&this.logger.warn(e)}static{this.\u0275fac=function(n){return new(n||t)(b(Sn),b(lu))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),du=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),BT=(()=>{class t{constructor(e,n){this.config=e,this.injector=n,this.confirmed=new oe,this.subscription=new ve}ngAfterViewInit(){if(this.config?.captchaRenderer){let e=this.injector.get(this.config.captchaRenderer);this.subscription.add(e.getCaptchaConfig().pipe(_r(n=>n?.enabled?e.renderCaptcha({element:this.captchaRef.nativeElement}):Q(null))).subscribe(()=>{this.confirmed.emit(!0)}))}}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(du),g(Pe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-captcha"]],viewQuery:function(n,i){if(n&1&&He(ug,5),n&2){let r;be(r=Se())&&(i.captchaRef=r.first)}},outputs:{confirmed:"confirmed"},decls:2,vars:0,consts:[["captcha",""]],template:function(n,i){n&1&&Ir(0,"div",null,0)},encapsulation:2,changeDetection:0})}}return t})(),gb=(()=>{class t{constructor(e,n,i,r,a){this.adapter=e,this.apiConfig=n,this.languageService=i,this.scriptLoader=r,this.baseSiteService=a,this.rendererFactory=T(kt),this.subscription=new ve,this.captchaConfigSubject$=new Ln(1),this.renderer=this.rendererFactory.createRenderer(null,null),this.initialize()}initialize(){this.subscription.add(this.fetchCaptchaConfigFromServer().subscribe(e=>{e?.enabled?(this.captchaConfig=e,this.loadResource()):this.captchaConfigSubject$.next({enabled:!1})}))}fetchCaptchaConfigFromServer(){return hi([this.languageService.getActive().pipe(le(1)),this.baseSiteService.getActive().pipe(_r(e=>this.adapter.loadBaseSite(e)),le(1))]).pipe(I(e=>e[1]?.captchaConfig))}getCaptchaConfig(){return this.captchaConfigSubject$.asObservable()}ngOnDestroy(){this.subscription.unsubscribe()}getToken(){return this.token}loadResource(){this.captchaConfigSubject$.next(this.captchaConfig)}
15static{this.\u0275fac=function(n){return new(n||t)(b(Ec),b(du),b(zn),b(_c),b(oc))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_b=(()=>{class t extends gb{createForm(){this.container=this.renderer.createElement("div"),this.renderer.addClass(this.container,"form-check"),this.checkbox=this.renderer.createElement("input"),this.renderer.setAttribute(this.checkbox,"type","checkbox"),this.renderer.addClass(this.checkbox,"mock-captcha"),this.label=this.renderer.createElement("label"),this.renderer.setProperty(this.label,"textContent","I'm not a robot"),this.renderer.appendChild(this.container,this.checkbox),this.renderer.appendChild(this.container,this.label),this.spinner=this.renderer.createElement("icon"),this.renderer.addClass(this.spinner,"fa-solid"),this.renderer.addClass(this.spinner,"fa-spinner")}initialize(){super.initialize(),this.createForm(),this.removeCheckboxListener=this.renderer.listen(this.checkbox,"change",this.onCheckBoxClicked.bind(this))}onCheckBoxClicked(){this.renderer.setProperty(this.label,"textContent",""),this.renderer.appendChild(this.container,this.spinner),this.renderer.setProperty(this.checkbox,"disabled",!0),this.renderer.setProperty(this.checkbox,"checked",!0),setTimeout(()=>{this.renderer.removeChild(this.container,this.spinner),this.retVal.next("succeed"),this.retVal.complete(),this.token="myToken",this.renderer.setProperty(this.label,"textContent","Verified")},500)}renderCaptcha(e){return e.element instanceof HTMLElement&&(this.renderer.setProperty(this.checkbox,"disabled",!1),this.renderer.setProperty(this.checkbox,"checked",!1),this.renderer.setProperty(this.label,"textContent","I'm not a robot"),this.token="",this.retVal=new ht,this.renderer.appendChild(e.element,this.container)),this.retVal.asObservable()}ngOnDestroy(){this.removeCheckboxListener&&this.removeCheckboxListener()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vb={captchaRenderer:_b},NT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(vb)],imports:[L,mt,Ji]})}}return t})();var jT=(()=>{class t{constructor(){this.CONVERT_TO_MB=1e6,this.extenstionRegEx=/\.([0-9a-z]+)(?:[\?#]|$)/i}maxSize(e){return n=>{let i={};return e&&n.value&&Array.from(n.value).forEach(({size:a,name:h})=>{if(a>e*this.CONVERT_TO_MB){let S=i.tooLarge?.invalidFiles??[];i.tooLarge={maxSize:e,invalidFiles:[...S,h]}}}),Object.keys(i).length===0?null:i}}maxEntries(e){return n=>{let i={};return e&&n.value&&Array.from(n.value).length>e&&(i.tooManyEntries={maxEntries:e}),Object.keys(i).length===0?null:i}}allowedTypes(e){return n=>{let i={};if(e&&n.value){let r=Array.from(n.value);i.fileNotAllowed=r.some(({name:a})=>!e.includes(this.getExtension(a)))}return i[Object.keys(i)?.[0]]?i:null}}getExtension(e){return(e?.match(this.extenstionRegEx)||[])[0]||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ea=(()=>{class t{constructor(){this.readMoreI18nKey="common.readMore",this.readLessI18nKey="common.readLess",this.maxLength=300,this.text="",this.showReadMore=!1,this.isCollapsed=!0}ngOnChanges(e){e.text?.currentValue?.length>this.maxLength&&(this.showReadMore=!0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-read-more"]],inputs:{readMoreI18nKey:"readMoreI18nKey",readLessI18nKey:"readLessI18nKey",maxLength:"maxLength",text:"text"},features:[Ee],decls:3,vars:3,consts:[[4,"ngIf"],["class","btn-link",3,"click",4,"ngIf"],[1,"btn-link",3,"click"]],template:function(n,i){n&1&&f(0,pg,2,1,"ng-container",0)(1,mg,2,1,"ng-container",0)(2,hg,3,4,"button",1),n&2&&(c("ngIf",i.isCollapsed),s(),c("ngIf",!i.isCollapsed),s(),c("ngIf",i.showReadMore))},dependencies:[L,N,W,$],encapsulation:2,changeDetection:0})}}return t})(),$T=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{RotatingImagesComponent:{component:Sx}}})],imports:[L,bn,Zi,Et]})}}return t})(),Cb=(()=>{class t{getFetchPriority(e){if(e===ni.HAS_LCP)return zs.HIGH}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),eo=(()=>{class t{constructor(){this.lcpPresence$=T($d),this.lcpPresenceMappingService=T(Cb),this.fetchPriority$=this.lcpPresence$.pipe(I(e=>this.lcpPresenceMappingService.getFetchPriority(e)),pe(),qt({bufferSize:1,refCount:!0})),this.templateRef=T(J),this.viewContainer=T(xt)}ngOnInit(){this.viewContainer.createEmbeddedView(this.templateRef,{$implicit:{lcpPresence$:this.lcpPresence$,fetchPriority$:this.fetchPriority$}})}static ngTemplateContextGuard(e,n){return!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=V({type:t,selectors:[["","cxLcpContext",""]]})}}return t})(),Ss=(()=>{class t{constructor(e,n,i){this.component=e,this.urlService=n,this.cmsService=i,this.data$=this.component.data$.pipe(Z(r=>{this.setRouterLink(r),this.styleClasses=r.styleClasses}))}getTarget(e){return e.external==="true"||e.external===!0?"_blank":null}setRouterLink(e){e.urlLink?this.routerLink=e.urlLink:e.contentPage?this.cmsService.getPage({id:e.contentPage,type:Zt.CONTENT_PAGE}).pipe(le(1)).subscribe(n=>{this.routerLink=n?.label}):e.product?this.routerLink=this.urlService.transform({cxRoute:"product",params:{code:e.product}}):e.category&&(this.routerLink=this.urlService.transform({cxRoute:"category",params:{code:e.category}}))}getImage(e){if(e.media)return"url"in e.media,e.media}getImageAltText(e){let n=this.getImage(e);if(n)return"url"in n?n.altText:Object.values(n)[0]?.altText}getLinkAriaLabel(e){let n=this.getImageAltText(e);return e.headline??n}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(qn),g(_t))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-banner"]],hostVars:2,hostBindings:function(n,i){n&2&&Ue(i.styleClasses)},decls:1,vars:0,consts:[[4,"cxLcpContext"],[4,"ngIf"],[3,"url","target","ariaLabel"],["class","headline",3,"innerHTML",4,"ngIf"],[3,"container","elementType","fetchPriority"],["class","content",3,"innerHTML",4,"ngIf"],[1,"headline",3,"innerHTML"],[1,"content",3,"innerHTML"],[1,"n
15o-link"]],template:function(n,i){n&1&&f(0,bg,3,3,"ng-container",0)},dependencies:[eo,N,sr,Tn,q],encapsulation:2,changeDetection:0})}}return t})(),ur=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),HT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{SimpleResponsiveBannerComponent:{component:Ss},BannerComponent:{component:Ss},SimpleBannerComponent:{component:Ss}}})],imports:[L,ae,di,Et,he,ur]})}}return t})(),yb=(()=>{class t{constructor(e){this.component=e,this.data$=this.component.data$,this.subscriptions=new ve}ngOnInit(){this.subscriptions.add(this.data$.subscribe(e=>{this.styleClasses=e?.styleClasses}))}getTarget(e){return e.target==="true"||e.target===!0?"_blank":null}ngOnDestroy(){this.subscriptions?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Re))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-link"]],hostVars:2,hostBindings:function(n,i){n&2&&Ue(i.styleClasses)},decls:2,vars:3,consts:[[3,"url","style","target",4,"ngIf"],[3,"url","target"]],template:function(n,i){n&1&&(f(0,Sg,2,5,"cx-generic-link",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.data$))},dependencies:[N,sr,q],encapsulation:2,changeDetection:0})}}return t})(),UT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{CMSLinkComponent:{component:yb}}})],imports:[L,ae,di]})}}return t})(),xb=(()=>{class t{constructor(e,n){this.renderer=e,this.winRef=n}getPath(e){return`${this.winRef.location.href?.replace(/#.*$/,"")}${e}`}transform(e=""){let n=this.renderer.createElement("template");n.innerHTML=e.trim();let i=n.content.querySelectorAll("a");return Array.from(i).forEach(r=>{let a=r.getAttribute("href");a?.indexOf("#")===0&&this.renderer.setProperty(r,"href",this.getPath(a))}),n.innerHTML}static{this.\u0275fac=function(n){return new(n||t)(g(De,16),g(Te,16))}}static{this.\u0275pipe=so({name:"cxSupplementHashAnchors",type:t,pure:!0})}}return t})(),gd=(()=>{class t{handleClick(e){if(e.target instanceof HTMLAnchorElement){let n=e.target,i=n?.getAttribute("href"),r=new URL(n.ownerDocument.URL);i&&r.host===n.host&&(e.preventDefault(),this.router.navigateByUrl(i.replace(r.origin,"")))}}constructor(e,n){this.component=e,this.router=n,this.sanitizer=T(Ei)}bypassSecurityTrustHtml(e=""){return this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(lt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-paragraph"]],hostBindings:function(n,i){n&1&&y("click",function(a){return i.handleClick(a)})},decls:2,vars:3,consts:[[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(n,i){n&1&&(f(0,wg,2,3,"div",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.component.data$))},dependencies:[N,q,xb],encapsulation:2,changeDetection:0})}}return t})(),bb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),GT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{CMSParagraphComponent:{component:gd},CMSTabParagraphComponent:{component:gd}}})],imports:[L,ae,bb]})}}return t})(),Sb=(()=>{class t{constructor(e,n){this.component=e,this.mediaService=n,this.data$=this.component.data$.pipe(Z(i=>{i?.pdfFile?.url&&(this.url=this.mediaService.getMedia(i.pdfFile)?.src)}))}addPdfExtension(e){if(!e)return"";let n=e.trim();return n.endsWith(".pdf")?n:`${n}.pdf`}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(or))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-pdf"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"pdf-container"],["target","_blank","rel","noopener noreferrer",3,"href"],["aria-hidden","true"],[3,"type"]],template:function(n,i){n&1&&(f(0,Tg,8,5,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.data$))},dependencies:[N,je,q,$],encapsulation:2,changeDetection:0})}}return t})(),WT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{PDFDocumentComponent:{component:Sb}}})],imports:[L,Ve,W]})}}return t})(),nt=(function(t){return t.TAB="TAB",t.ACCORDIAN="ACCORDIAN",t})(nt||{}),wb=(()=>{class t{constructor(){this.TAB_MODE=nt,this.mode=nt.TAB}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-tab-panel"]],inputs:{tab:"tab",mode:"mode"},decls:2,vars:8,consts:[[1,"active",3,"tabindex","cxFocus"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(d(0,"div",0),f(1,Eg,1,1,"ng-container",1),u()),n&2&&(c("tabindex",i.tab.disableBorderFocus?-1:0)("cxFocus",Y(6,Ig,!i.tab.disableBorderFocus)),M("role",i.mode===i.TAB_MODE.ACCORDIAN?"region":"tabpanel")("aria-labelledby",i.tab.
15id??null)("id",i.tab.id!==null&&i.tab.id!==void 0?"section-"+i.tab.id:null),s(),c("ngIf",i.tab.content))},dependencies:[$e,N,et],encapsulation:2})}}return t})();function _d(t,o,e=0){return t<e?o:t>o?e:t}var uu=(()=>{class t{constructor(){this.disabled=!1,this.TAB_MODE=nt,this.breakpointService=T(Sn),this.translationService=T(pt),this.cd=T(Oe),this.subscriptions=new ve}ngOnInit(){this.openTabs$=new ke(this.config?.openTabs??[]),this.mode$=this.getMode()}ngAfterViewInit(){this.subscriptions.add(this.tabs$?.subscribe(e=>{this.tabs=e,this.cd.detectChanges()}))}ngOnDestroy(){this.subscriptions.unsubscribe()}select(e,n){switch(this.focus(e),n){case nt.TAB:return this.openTabs$.next([e]);case nt.ACCORDIAN:return this.toggleTab(e)}}focus(e){this.tabHeaders.toArray()[e].nativeElement.focus()}selectOrFocus(e,n,i){switch(i.preventDefault(),n){case nt.TAB:case nt.ACCORDIAN:return this.focus(e)}}handleKeydownEvent(e,n,i,r){let h=n.length-1,S=_d(e-1,h),k=_d(e+1,h);if(!(this.config.restrictDirectionKeys&&this.shouldRestrictKeys(i,r)))switch(r.key){case"ArrowLeft":case"ArrowUp":return this.selectOrFocus(S,i,r);case"ArrowRight":case"ArrowDown":return this.selectOrFocus(k,i,r);case"Home":return this.selectOrFocus(0,i,r);case"End":return this.selectOrFocus(h,i,r)}}shouldRestrictKeys(e,n){return!!(e===nt.TAB&&["ArrowUp","ArrowDown"].includes(n.key)||e===nt.ACCORDIAN&&["ArrowLeft","ArrowRight"].includes(n.key))}isOpen(e){return this.getOpenTabs().find(n=>n===e)!==void 0}toggleTab(e){let n=this.getOpenTabs(),i=n.indexOf(e);i>-1?n.splice(i,1):n.push(e),this.openTabs$.next(n)}getTabIndex(e,n){return this.isOpen(e)||e===0&&this.getOpenTabs().length===0||n==="ACCORDIAN"?0:-1}getTitle(e,n){let i=this.tabs[n];if(e===nt.TAB)return null;let r=i.header;return i.headerKey&&this.translationService.translate(i.headerKey).pipe(le(1)).subscribe(a=>{r=a}),(this.isOpen(n)?"Collapse":"Expand")+" "+r}getOpenTabs(){return this.openTabs$.value}getMode(){return this.config.mode?Q(this.config.mode):this.config.breakpoint?this.breakpointService.isUp(this.config.breakpoint).pipe(I(e=>e?nt.TAB:nt.ACCORDIAN)):Q(nt.TAB)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-tab"]],viewQuery:function(n,i){if(n&1&&He(Dg,5),n&2){let r;be(r=Se())&&(i.tabHeaders=r)}},inputs:{tabs$:"tabs$",tabs:"tabs",config:"config",disabled:"disabled"},decls:2,vars:3,consts:[["tabPanel",""],["tabHeader",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","button",1,"tab-btn",3,"click","keydown","disabled"],["class","tab-icon","aria-hidden","true",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["aria-hidden","true",1,"tab-icon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],[3,"tab","mode",4,"ngIf"],[3,"tab","mode"]],template:function(n,i){n&1&&(f(0,Lg,7,8,"ng-container",2),p(1,"async")),n&2&&c("ngIf",m(1,1,i.mode$))},dependencies:[N,se,et,wb,q,$],encapsulation:2,changeDetection:0})}}return t})(),vd={openTabs:[0],breakpoint:Yi.md},Tb=(()=>{class t{constructor(e,n,i){this.componentData=e,this.cmsService=n,this.winRef=i,this.cdr=T(Oe),this.activeTabNum=0,this.tabTitleParams=[],this.tabConfig$=new ke(vd),this.tabTitleParams$=new ke(new Map),this.components$=this.componentData.data$.pipe(pe((r,a)=>r?.components===a?.components),Z(r=>{this.ariaLabel=`${r?.uid}.tabPanelContainerRegion`}),ne(r=>Ce((r?.components??"").split(" ").map(a=>this.cmsService.getComponentData(a).pipe(pe(),I(h=>{if(h)return h.flexType||(h=ce(U({},h),{flexType:h.typeCode})),ce(U({},h),{title:`${r.uid}.tabs.${h.uid}`})})))).pipe(Z(()=>{this.tabConfig$.next(U({label:`${r?.uid}.tabPanelContainerRegionGroup`},vd))}))))}select(e,n){if(this.activeTabNum=this.activeTabNum===e?-1:e,n&&n?.target){let r=n.target.parentNode;this.winRef?.nativeWindow?.scrollTo({left:0,top:r.offsetTop,behavior:"smooth"})}}ngOnInit(){this.cdr.markForCheck(),this.activeTabNum=this.winRef?.nativeWindow?.history?.state?.activeTab??this.activeTabNum}ngAfterViewInit(){this.children.length>0&&this.getTitleParams(this.children),this.tabs$=Ce([this.components$,this.tabRefs.changes.pipe(fi(this.tabRefs)),this.tabTitleParams$]).pipe(ne(([e,n,i])=>{let r=e.map(a=>i.get(a.uid)||Q(null));return Ce(r).pipe(I(a=>e.map((h,S)=>({headerKey:h.title,content:n.get(S),id:S,headerParams:{param:a[S]}}))))}
15)),this.cdr.detectChanges()}tabCompLoaded(e,n){if(this.tabTitleParams.push(e.instance.tabTitleParam$),n){let i=this.tabTitleParams$.getValue();i.has(n)||(i.set(n,e.instance.tabTitleParam$),this.tabTitleParams$.next(i))}}getTitleParams(e){e.forEach(n=>{this.tabTitleParams.push(n.cmpRef?.instance.tabTitleParam$??null)})}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(_t),g(Te))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-tab-paragraph-container"]],viewQuery:function(n,i){if(n&1&&He(ri,5)(Vg,5),n&2){let r;be(r=Se())&&(i.children=r),be(r=Se())&&(i.tabRefs=r)}},decls:2,vars:3,consts:[["tabRef",""],[4,"ngIf"],[3,"tabs","config"],[4,"ngFor","ngForOf"],[3,"cxOutlet"],[3,"cxComponentRef","cxComponentWrapper"]],template:function(n,i){n&1&&(f(0,jg,5,7,"ng-container",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.components$))},dependencies:[N,uu,se,zt,ri,q],encapsulation:2,changeDetection:0})}}return t})(),Ib=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,bn,yt,W,qe]})}}return t})(),pu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W,Ib]})}}return t})(),zT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{CMSTabParagraphContainer:{component:Tb}}})],imports:[L,bn,yt,W,pu,he]})}}return t})(),Eb=(()=>{class t{constructor(e,n,i,r,a){this.component=e,this.mediaService=n,this.urlService=i,this.cmsService=r,this.cd=a,this.data$=this.component.data$.pipe(pe(),Z(h=>{this.styleClasses=h.styleClasses,this.setMedia(h),this.setControls(h),this.setRouting(h)}))}setMedia(e){e.video&&(this.source=this.mediaService.getMedia(e.video)?.src),e?.containerBackground===Or.UPLOAD_RESPONSIVE_IMAGE&&e?.videoMedia?this.thumbnail=this.mediaService.getMedia(e.videoMedia):e?.thumbnailSelector===Or.UPLOAD_THUMBNAIL&&e?.thumbnail?this.thumbnail=this.mediaService.getMedia(e.thumbnail):this.thumbnail=void 0}setControls(e){this.autoPlay=e.autoPlay==="true",this.loop=e.loop==="true",this.mute=e.mute==="true"?"muted":void 0}setRouting(e){e.url?this.routerLink=e.url:e.contentPage?this.cmsService.getPage({id:e.contentPage,type:Zt.CONTENT_PAGE}).pipe(le(1)).subscribe(n=>{this.routerLink=n?.label,this.cd.markForCheck()}):e.product?this.routerLink=this.urlService.transform({cxRoute:"product",params:{code:e.product}}):e.category&&(this.routerLink=this.urlService.transform({cxRoute:"category",params:{code:e.category}}))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(or),g(qn),g(_t),g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-video"]],hostVars:2,hostBindings:function(n,i){n&2&&Ue(i.styleClasses)},decls:4,vars:4,consts:[["loading",""],["class","video-container","tabindex","-1",4,"ngIf","ngIfElse"],["tabindex","-1",1,"video-container"],[3,"routerLink",4,"ngIf"],["controls","",3,"height","poster","loop","autoplay","muted","src",4,"ngIf"],[3,"routerLink"],["controls","",3,"poster","loop","autoplay","muted","src"],[1,"cx-spinner"]],template:function(n,i){if(n&1&&(f(0,Ug,3,2,"div",1),p(1,"async"),f(2,Gg,2,0,"ng-template",null,0,ie)),n&2){let r=H(3);c("ngIf",m(1,2,i.data$))("ngIfElse",r)}},dependencies:[N,Qe,Dt,q,$],encapsulation:2,changeDetection:0})}}return t})(),qT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{VideoComponent:{component:Eb}}})],imports:[L,ae,di,Et,W,dn]})}}return t})(),mu=(()=>{class t{constructor(e,n){this.routingService=e,this.translation=n,this.RELEVANCE=":relevance",this.CUSTOMER_COUPON_CODE=":customerCouponCode:"}launchSearchPage(e){this.routingService.go({cxRoute:"search",params:{query:this.buildSearchParam(e)}},{queryParams:{couponcode:e.couponId}})}buildSearchParam(e){return e.allProductsApplicable?this.RELEVANCE:this.RELEVANCE+this.CUSTOMER_COUPON_CODE+e.couponId}getSortLabels(){return Ce([this.translation.translate("myCoupons.startDateAsc"),this.translation.translate("myCoupons.startDateDesc"),this.translation.translate("myCoupons.endDateAsc"),this.translation.translate("myCoupons.endDateDesc")]).pipe(I(([e,n,i,r])=>({byStartDateAsc:e,byStartDateDesc:n,byEndDateAsc:i,byEndDateDesc:r})))}static{this.\u0275fac=function(n){return new(n||t)(b(dt),b(pt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Db=(()=>{class t{constructor(e,n,i){this.myCouponsComponentService=e,this.launchDialogService=n,this.vcr=i,this.notificationChanged=new oe}onSubscriptionChange(){this.notificationChanged.emit({couponId:this.coupon.couponId??"",notification:!this.coupon.notificationOn})}
15readMore(){let e=this.launchDialogService.openDialog(li.COUPON,this.element,this.vcr,{coupon:this.coupon});e&&e.pipe(le(1)).subscribe()}findProducts(){this.myCouponsComponentService.launchSearchPage(this.coupon)}static{this.\u0275fac=function(n){return new(n||t)(g(mu),g(ln),g(xt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-coupon-card"]],viewQuery:function(n,i){if(n&1&&He(Ad,5),n&2){let r;be(r=Se())&&(i.element=r.first)}},inputs:{coupon:"coupon",couponSubscriptionLoading$:"couponSubscriptionLoading$"},outputs:{notificationChanged:"notificationChanged"},decls:41,vars:41,consts:[["element",""],[1,"card"],[1,"card-body","cx-card-body"],[1,"cx-coupon-data"],[1,"cx-coupon-card-row","top"],[1,"cx-coupon-card-head"],[1,"card-label-bold","cx-coupon-card-id"],[1,"cx-coupon-card-date"],[1,"cx-coupon-date"],[1,"cx-coupon-date-start"],[1,"cx-coupon-date-end"],[1,"cx-card-read-more","link","cx-action-link",3,"click"],[1,"cx-coupon-card-row","bottom"],[1,"cx-coupon-notification","form-check"],["type","checkbox",1,"form-check-input",3,"change","cxFocus","checked","disabled"],[1,"form-check-label"],[1,"cx-coupon-find-product","col-lg-6","col-md-12","col-sm-6"],[1,"btn","btn-block","btn-secondary",3,"click"]],template:function(n,i){n&1&&(d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"span",6),_(6),u(),d(7,"span"),_(8),u()(),d(9,"div"),p(10,"lowercase"),_(11),p(12,"cxTranslate"),u()(),d(13,"div",7)(14,"p"),_(15),p(16,"cxTranslate"),u(),d(17,"div",8)(18,"div",9),_(19),p(20,"cxDate"),u(),d(21,"div",10),_(22),p(23,"cxDate"),u()()(),d(24,"button",11,0),y("click",function(){return i.readMore()}),_(26),p(27,"cxTranslate"),u(),d(28,"div",12)(29,"div",13)(30,"label")(31,"input",14),p(32,"async"),p(33,"async"),y("change",function(){return i.onSubscriptionChange()}),u(),d(34,"span",15),_(35),p(36,"cxTranslate"),u()()(),d(37,"div",16)(38,"button",17),y("click",function(){return i.findProducts()}),_(39),p(40,"cxTranslate"),u()()()()()()),n&2&&(s(6),B(i.coupon==null?null:i.coupon.couponId),s(2),x(": ",i.coupon==null?null:i.coupon.name),s(),Ue(Mr("cx-coupon-status ",m(10,17,i.coupon==null?null:i.coupon.status))),s(2),x(" ",m(12,19,"myCoupons."+(i.coupon==null?null:i.coupon.status))," "),s(4),B(m(16,21,"myCoupons.effectiveTitle")),s(4),x(" ",de(20,23,i.coupon==null?null:i.coupon.startDate,"medium")," -\xA0 "),s(3),x(" ",de(23,26,i.coupon==null?null:i.coupon.endDate,"medium")," "),s(4),x(" ",m(27,29,"myCoupons.readMore")," "),s(5),te("disabled",m(32,31,i.couponSubscriptionLoading$)),c("cxFocus",Y(39,ai,"coupon-notification-"+(i.coupon==null?null:i.coupon.couponId)))("checked",i.coupon==null?null:i.coupon.notificationOn)("disabled",m(33,33,i.couponSubscriptionLoading$)),s(4),x(" ",m(36,35,"myCoupons.notification")," "),s(4),x(" ",m(40,37,"myCoupons.findProducts")," "))},dependencies:[$e,q,kr,$,Kn],encapsulation:2,changeDetection:0})}}return t})(),Cd=(()=>{class t{constructor(e,n){this.couponService=e,this.myCouponsComponentService=n,this.iconTypes=ue,this.subscriptions=new ve,this.PAGE_SIZE=10,this.sortMapping={byStartDateAsc:"startDate:asc",byStartDateDesc:"startDate:desc",byEndDateAsc:"endDate:asc",byEndDateDesc:"endDate:desc"},this.sort="byStartDateAsc",this.sortOptions=[{code:"byStartDateAsc",selected:!1},{code:"byStartDateDesc",selected:!1},{code:"byEndDateAsc",selected:!1},{code:"byEndDateDesc",selected:!1}],this.launchDialogService=T(ln),this.host=T(z),this.router=T(lt),Ye("a11yCouponNotificationChannelsLinkStyling")}ngOnInit(){this.couponResult$=this.couponService.getCustomerCoupons(this.PAGE_SIZE).pipe(Z(i=>this.pagination={currentPage:i.pagination?.page,pageSize:i.pagination?.count,totalPages:i.pagination?.totalPages,totalResults:i.pagination?.totalCount,sort:this.sort})),this.couponsLoading$=this.couponService.getCustomerCouponsLoading(),this.couponSubscriptionLoading$=Ce([this.couponService.getSubscribeCustomerCouponResultLoading(),this.couponService.getUnsubscribeCustomerCouponResultLoading()]).pipe(I(([i,r])=>i||r)),this.sortLabels=this.myCouponsComponentService.getSortLabels(),this.subscriptions.add(this.couponService.getSubscribeCustomerCouponResultError().subscribe(i=>{this.subscriptionFail(i)})),this.subscriptions.add(this.couponService.getUnsubscribeCustomerCouponResultError().subscribe(i=>{this.subscriptionFail(i)})),this.subscriptions.add(this.router.events.pipe(G(i=>i instanceof lo)).subscribe(()=>{this.launchDialogService.closeDialog("Navigation")}));
15let e=decodeURIComponent(this.getHashStr()),n=e.indexOf("#");if(n!==-1){let i=e.substring(n+1);if(i!==void 0&&i.length>0){let r=this.launchDialogService.openDialog(li.CLAIM_DIALOG,this.host,void 0,{coupon:i,pageSize:this.PAGE_SIZE});r&&this.subscriptions.add(r.pipe(le(1)).subscribe())}}}getHashStr(){return location.hash}subscriptionFail(e){e&&this.couponService.loadCustomerCoupons(this.PAGE_SIZE)}sortChange(e){this.sort=e,this.couponService.loadCustomerCoupons(this.PAGE_SIZE,this.pagination.currentPage,this.sortMapping[e])}pageChange(e){this.couponService.loadCustomerCoupons(this.PAGE_SIZE,e,this.sortMapping[this.sort])}notificationChange({couponId:e,notification:n}){n?this.couponService.subscribeCustomerCoupon(e):this.couponService.unsubscribeCustomerCoupon(e)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Ai),g(mu))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-my-coupons"]],decls:5,vars:4,consts:[["loading",""],["noCoupons",""],[1,"cx-section"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"cx-my-coupons-header"],[1,"cx-my-coupons-sort","top","row"],[1,"cx-my-coupons-form-group","form-group","col-sm-12","col-md-4","col-lg-4"],["ariaControls","coupon-deck",3,"sortListEvent","sortOptions","sortLabels","selectedOption","ariaLabel"],[1,"cx-my-coupons-pagination","cx-mycoupon-thead-mobile"],["paginationID","pagination-top",3,"viewPageEvent","pagination"],["id","coupon-deck",1,"row","cx-coupon-deck"],["class","col-md-6 cx-coupon-card",4,"ngFor","ngForOf"],[1,"cx-my-coupons-sort","bottom","row"],["class","cx-my-coupons-form-group form-group cx-mycoupon-thead-mobile col-sm-12 col-md-4 col-lg-4",4,"cxFeature"],[1,"cx-my-coupons-pagination"],["paginationID","pagination-bottom",3,"viewPageEvent","pagination"],[1,"cx-my-coupons-notes"],[3,"type"],[3,"routerLink"],[1,"col-md-6","cx-coupon-card"],[3,"notificationChanged","coupon","couponSubscriptionLoading$"],[1,"cx-my-coupons-form-group","form-group","cx-mycoupon-thead-mobile","col-sm-12","col-md-4","col-lg-4"],["ariaControls","coupon-deck",3,"sortListEvent","sortOptions","sortLabels","selectedOption","placeholder","ariaLabel"],[1,"cx-section-msg"],[1,"col-md-12","cx-coupon-spinner"]],template:function(n,i){if(n&1&&(d(0,"div",2),f(1,Zg,5,3,"ng-container",3),p(2,"async"),f(3,Jg,2,0,"ng-template",null,0,ie),u()),n&2){let r=H(4);s(),c("ngIf",!m(2,2,i.couponsLoading$))("ngIfElse",r)}},dependencies:[N,lr,Xs,se,Db,je,Qe,Dt,Ot,q,$],encapsulation:2})}}return t})(),Rs=(()=>{class t{constructor(){this.subscription=new ve,this.iconTypes=ue,this.pageSize=10,this.focusConfig={trap:!0,block:!0,autofocus:"button",focusOnEscape:!0},this.form=new tn({couponCode:new vn("",[Ht.required])}),this.couponService=T(Ai),this.routingService=T(dt),this.messageService=T(ut),this.launchDialogService=T(ln)}ngOnInit(){this.subscription.add(this.launchDialogService.data$.subscribe(e=>{e&&(this.couponCode=e.coupon,this.pageSize=e.pageSize,this.form.get("couponCode").setValue(this.couponCode))}))}onSubmit(){if(!this.form.valid){this.form.markAllAsTouched();return}let e=this.form.get("couponCode").value;e?(this.couponService.claimCustomerCoupon(e),this.subscription=this.couponService.getClaimCustomerCouponResultSuccess().subscribe(n=>{n&&this.messageService.add({key:"myCoupons.claimCustomerCoupon"},Fe.MSG_TYPE_CONFIRMATION),this.routingService.go({cxRoute:"coupons"}),this.couponService.loadCustomerCoupons(this.pageSize),this.close("Cross click")})):this.routingService.go({cxRoute:"notFound"})}ngOnDestroy(){this.subscription?.unsubscribe()}close(e){this.launchDialogService.closeDialog(e)}cancelEdit(){this.form.get("couponCode").setValue(this.couponCode)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-claim-dialog"]],decls:31,vars:35,consts:[["role","dialog","aria-labelledby","dialogTitle",1,"cx-coupon-dialog",3,"esc","cxFocus"],[1,"cx-coupon-container"],[1,"cx-dialog-header","modal-header"],["id","dialogTitle",1,"cx-dialog-title","modal
15-title"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-dialog-body","modal-body"],[1,"cx-dialog-item",3,"ngSubmit","formGroup"],[1,"label-content"],["required","true","type","text","name","couponCode","formControlName","couponCode",1,"form-control",3,"placeholder"],["id","couponCodeError",3,"translationParams","control"],[1,"cx-dialog-row"],[1,"col-md-6","cx-dialog-row--reset-button"],["role","button",1,"btn","btn-block","btn-secondary",3,"click"],[1,"col-md-6","cx-dialog-row-submit-button"],[1,"btn","btn-block","btn-primary",3,"disabled"]],template:function(n,i){if(n&1&&(d(0,"div",0),y("esc",function(){return i.close("Escape clicked")}),d(1,"div",1)(2,"div",2)(3,"h3",3),_(4),p(5,"cxTranslate"),u(),d(6,"button",4),p(7,"cxTranslate"),p(8,"cxTranslate"),y("click",function(){return i.close("Cross click")}),d(9,"span",5),w(10,"cx-icon",6),u()()(),d(11,"div",7)(12,"form",8),y("ngSubmit",function(){return i.onSubmit()}),d(13,"label")(14,"span",9),_(15),p(16,"cxTranslate"),w(17,"cx-form-required-asterisks"),u(),w(18,"input",10),p(19,"cxTranslate"),w(20,"cx-form-errors",11),p(21,"cxTranslate"),u(),d(22,"div",12)(23,"div",13)(24,"a",14),y("click",function(){return i.cancelEdit()}),_(25),p(26,"cxTranslate"),u()(),d(27,"div",15)(28,"button",16),_(29),p(30,"cxTranslate"),u()()()()()()()),n&2){let r;c("cxFocus",i.focusConfig),s(4),x(" ",m(5,17,"myCoupons.claimCoupondialogTitle")," "),s(2),c("title",me(m(7,19,"common.close"))),M("aria-label",m(8,21,"common.close")),s(4),c("type",i.iconTypes.CLOSE),s(2),c("formGroup",i.form),s(3),x("",m(16,23,"myCoupons.claimCouponCode.label")," "),s(3),c("placeholder",me(m(19,25,"myCoupons.claimCouponCode.placeholder"))),M("aria-invalid",((r=i.form.get("couponCode"))==null?null:r.touched)&&((r=i.form.get("couponCode"))==null?null:r.invalid))("aria-errormessage","couponCodeError"),s(2),c("translationParams",Y(33,Wi,m(21,27,"myCoupons.claimCouponCode.label")))("control",i.form.get("couponCode")),s(5),x(" ",m(26,29,"myCoupons.reset")," "),s(3),c("disabled",i.form.disabled),s(),x(" ",m(30,31,"myCoupons.claim")," ")}},dependencies:[$e,je,Bt,rs,Mn,Jn,Zr,Hi,mt,jo,No,ar,Ys,$],encapsulation:2,changeDetection:0})}}return t})(),Mb=(()=>{class t{handleClick(e){e.target.tagName===this.el.nativeElement.tagName&&this.close("Cross click")}constructor(e,n){this.launchDialogService=e,this.el=n,this.subscription=new ve,this.iconTypes=ue,this.focusConfig={trap:!0,block:!0,autofocus:"button",focusOnEscape:!0}}ngOnInit(){this.subscription.add(this.launchDialogService.data$.subscribe(e=>{e&&(this.coupon=e.coupon)}))}ngOnDestroy(){this.subscription?.unsubscribe()}close(e){this.launchDialogService.closeDialog(e)}static{this.\u0275fac=function(n){return new(n||t)(g(ln),g(z))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-coupon-dialog"]],hostBindings:function(n,i){n&1&&y("click",function(a){return i.handleClick(a)})},decls:37,vars:37,consts:[["role","dialog","aria-labelledby","dialogTitle",1,"modal-dialog","modal
15-dialog-centered","cx-coupon-dialog",3,"esc","cxFocus"],[1,"modal-content","cx-coupon-container"],[1,"cx-dialog-header","modal-header"],["id","dialogTitle",1,"cx-dialog-title","modal-title"],["type","button",1,"close",3,"click","title"],["aria-hidden","true"],[3,"type"],[1,"cx-dialog-body","modal-body"],[1,"cx-dialog-row"],[1,"cx-dialog-item","col-sm-12","col-md-12"],[1,"cx-coupon-card-head"],[1,"card-label-bold","cx-coupon-card-id"],[1,"cx-coupon-description"],[1,"cx-coupon-dialog-date"],[1,"cx-coupon-date"],[1,"cx-coupon-dialog-status"]],template:function(n,i){n&1&&(d(0,"div",0),y("esc",function(){return i.close("Escape clicked")}),d(1,"div",1)(2,"div",2)(3,"h3",3),_(4),p(5,"cxTranslate"),u(),d(6,"button",4),p(7,"cxTranslate"),p(8,"cxTranslate"),y("click",function(){return i.close("Cross click")}),d(9,"span",5),w(10,"cx-icon",6),u()()(),d(11,"div",7)(12,"div",8)(13,"div",9)(14,"div",10)(15,"span",11),_(16),u(),d(17,"span"),_(18),u()(),d(19,"div",12),_(20),u(),d(21,"div",13)(22,"p"),_(23),p(24,"cxTranslate"),u(),d(25,"div",14),_(26),p(27,"cxDate"),p(28,"cxDate"),u()(),d(29,"div",15)(30,"p"),_(31),p(32,"cxTranslate"),u(),d(33,"div"),p(34,"lowercase"),_(35),p(36,"cxTranslate"),u()()()()()()()),n&2&&(c("cxFocus",i.focusConfig),s(4),x(" ",m(5,17,"myCoupons.dialogTitle")," "),s(2),c("title",me(m(7,19,"common.close"))),M("aria-label",m(8,21,"common.close")),s(4),c("type",i.iconTypes.CLOSE),s(6),B(i.coupon==null?null:i.coupon.couponId),s(2),x(": ",i.coupon==null?null:i.coupon.name),s(2),B(i.coupon==null?null:i.coupon.description),s(3),B(m(24,23,"myCoupons.effectiveTitle")),s(3),jt(" ",de(27,25,i.coupon==null?null:i.coupon.startDate,"medium")," - ",de(28,28,i.coupon==null?null:i.coupon.endDate,"medium")," "),s(5),B(m(32,31,"myCoupons.status")),s(2),Ue(Mr("cx-coupon-status ",m(34,33,i.coupon==null?null:i.coupon.status))),s(2),x(" ",m(36,35,"myCoupons."+(i.coupon==null?null:i.coupon.status))," "))},dependencies:[$e,je,kr,$,Kn],encapsulation:2,changeDetection:0})}}return t})(),Fb=(()=>{class t{constructor(e,n,i){this.couponService=e,this.routingService=n,this.messageService=i}ngOnInit(){this.routingService.getRouterState().subscribe(e=>{let n=e.state.params.couponCode;n?(this.couponService.claimCustomerCoupon(n),this.subscription=this.couponService.getClaimCustomerCouponResultSuccess().subscribe(i=>{i&&this.messageService.add({key:"myCoupons.claimCustomerCoupon"},Fe.MSG_TYPE_CONFIRMATION),this.routingService.go({cxRoute:"coupons"})})):this.routingService.go({cxRoute:"notFound"})}).unsubscribe()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Ai),g(dt),g(ut))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-coupon-claim"]],decls:0,vars:0,template:function(n,i){},encapsulation:2})}}return t})(),kb={launch:{COUPON:{inlineRoot:!0,component:Mb,dialogType:Tt.DIALOG},CLAIM_DIALOG:{inlineRoot:!0,component:Rs,dialogType:Tt.DIALOG}}},KT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{MyCouponsComponent:{component:Cd,guards:[Lt]},CouponClaimComponent:{component:Fb,guards:[Lt]},ClaimDialogComponent:{component:Rs,guards:[Lt]}}}),X(kb)],imports:[L,mt,Ji,ar,cu,dn,W,ae,wt,Ve,Zs,ae.forChild([{path:null,canActivate:[Lt,Wt],component:It,data:{cxRoute:"couponClaim"}}]),qe,he,Cd,Rs]})}}return t})(),yd=(()=>{class t{constructor(e,n,i,r){this.productInterestService=e,this.translationService=n,this.productService=i,this.globalMessageService=r,this.DEFAULT_PAGE_SIZE=10,this.sortMapping={byNameAsc:"name:asc",byNameDesc:"name:desc"},this.sortChanged=!1,this.sort="byNameAsc",this.sortOptions=[{code:"byNameAsc",selected:!1},{code:"byNameDesc",selected:!1}]}ngOnInit(){this.interests$=this.productInterestService.getAndLoadProductInterests(this.DEFAULT_PAGE_SIZE).pipe(Z(e=>this.pagination={currentPage:e.pagination?.page,pageSize:e.pagination?.count,totalPages:e.pagination?.totalPages,totalResults:e.pagination?.totalCount,sort:"byNameAsc"}),Z(()=>{this.sortChanged&&(this.sortChanged=!1,this.globalMessageService?.add({key:"sorting.pageViewUpdated"},Fe.MSG_TYPE_ASSISTIVE,500))}),I(e=>ce(U({},e),{results:e.results?e.results.map(n=>ce(U({},n),{product$:this.getProduct(n)})):e.results}))),this.getInterestsloading$=this.productInterestService.getProdutInterestsLoading(),this.isRemoveDisabled$=Ce([this.getInterestsloading$,this.productInterestService.getRemoveProdutInterestLoading()]).pipe(I(([e,n])=>e||n)),this.sortLabels=this.getSortLabels()}getSortLabels(){return Ce([this.translationService.translate("myInterests.sorting.byNameAsc"),this.translationService.translate("myInterests.sorting.byNameDesc")]).pipe(I(([e,n])=>({byNameAsc:e,byNameDesc:n})))}getProduct(e){return this.productService.get(e.product?.code??"",Vt.DETAILS)}removeInterest(e){this.productInterestService.removeProdutInterest({product:e.product,productInterestEntry:e.productInterestEntry})}sortChange(e){this.sort=e,this.sortChanged=!0,this.productInterestService.loadProductInterests(this.DEFAULT_PAGE_SIZE,0,this.sortMapping[e])}pageChange(e){this.productInterestService.loadProductInterests(this.DEFAULT_PAGE_SIZE,e,this.sortMapping[this.sort])}ngOnDestroy(){this.productInterestService.clearProductInterests(),this.productInterestService.resetRemoveInterestState()}static{this.\u0275fac=function(n){return new(n||t)(g(bo),g(pt),g(ki),g(ut))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-my-interests"]],decls:6,vars:3,consts:[["noInterest",""],["loading",""],["class","container",4,"ngIf"],[1,"container"],[1,"cx-product-interests-title"],["class","cx-product-interests-body",4,"ngIf","ngIfElse"],[1,"cx-product-interests-body"],[4,"ngIf","ngIfElse"],[1,"cx-product-interests-sort","top","row"],[1,"cx-product-interests-form-group","form-group","col-sm-12","col-md-4","col-lg-4"],["ariaControl
15s","product-interests-table",3,"sortListEvent","sortOptions","sortLabels","selectedOption","placeholder","ariaLabel"],[1,"cx-product-interests-pagination","cx-product-interests-thead-mobile"],["paginationID","pagination-top",3,"viewPageEvent","pagination"],["id","product-interests-table",1,"table","cx-product-interests-table","cx-product-interests-table-list"],[1,"cx-visually-hidden"],[1,"cx-product-interests-thead-mobile","cx-product-interests-header"],["class","cx-product-interests-product-item","role","row",4,"ngFor","ngForOf"],[1,"cx-product-interests-sort","bottom","row"],[1,"cx-product-interests-form-group","cx-product-interests-thead-mobile","form-group","col-sm-12","col-md-4","col-lg-4"],[1,"cx-product-interests-pagination"],["paginationID","pagination-bottom",3,"viewPageEvent","pagination"],["role","row",1,"cx-product-interests-product-item"],[4,"ngIf"],["role","cell"],[1,"cx-product-interests-cell-wrapper"],[1,"cx-product-interests-label"],["tabindex","-1",1,"cx-product-interests-product-image-link",3,"routerLink"],["format","thumbnail",3,"container"],[1,"cx-info","col-10"],[1,"cx-info-container","row"],["class","cx-name",4,"ngIf"],["class","cx-code",4,"ngIf"],[4,"ngFor","ngForOf"],["class","cx-property",4,"ngIf"],[1,"cx-product-interests-product-price"],[1,"d-md-none","cx-product-interests-label"],[1,"cx-product-interests-subscriptions"],["class","cx-product-interests-notification",4,"ngFor","ngForOf"],[1,"cx-actions","cx-product-interests-remove-button"],["type","button",1,"cx-product-interests-remove-btn","link","cx-action-link","cx-remove-btn",3,"click","cxAtMessage","disabled"],[1,"cx-name"],[1,"cx-link","cx-product-interests-product-code-link",3,"routerLink"],[1,"cx-code"],["class","cx-property",4,"ngFor","ngForOf"],[1,"cx-property"],[1,"cx-label","cx-product-interests-variant-name"],[1,"cx-value","cx-product-interests-variant-value"],[1,"cx-label","cx-product-interests-product-stock"],[1,"cx-product-interests-notification"],[1,"cx-product-interests-type"],[1,"cx-product-interests-expiration-date"],[1,"cx-product-interests-message"],[1,"cx-spinner"]],template:function(n,i){n&1&&(f(0,p_,7,7,"div",2),p(1,"async"),f(2,m_,3,3,"ng-template",null,0,ie)(4,h_,2,0,"ng-template",null,1,ie)),n&2&&c("ngIf",m(1,1,i.interests$))},dependencies:[N,lr,Xs,se,Qe,Tn,rr,Dt,q,$,Kn,en],encapsulation:2,changeDetection:0})}}return t})(),QT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{MyInterestsComponent:{component:yd,guards:[Lt]}}})],imports:[Xi,L,W,Zs,W,wt,Et,dn,ae.forChild([{path:null,canActivate:[Lt,Wt],component:It,data:{cxRoute:"myInterests"}}]),he,yd]})}}return t})(),hu=(()=>{class t{constructor(e){this.notificationPreferenceService=e,this.preferences=[]}ngOnInit(){this.notificationPreferenceService.resetNotificationPreferences(),this.preferences$=this.notificationPreferenceService.getPreferences().pipe(Z(e=>this.preferences=e)),this.notificationPreferenceService.loadPreferences(),this.isLoading$=Ce([this.notificationPreferenceService.getPreferencesLoading(),this.notificationPreferenceService.getUpdatePreferencesResultLoading()]).pipe(I(([e,n])=>e||n))}updatePreference(e){let n=[];this.preferences.forEach(i=>{i.channel===e.channel?n.push(ce(U({},i),{enabled:!i.enabled})):n.push(i)}),this.notificationPreferenceService.updatePreferences(n)}static{this.\u0275fac=function(n){return new(n||t)(g(Wr))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-notification-preference"]],decls:2,vars:3,consts:[["loading",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"row","d-flex","justify-content-center"],[1,"col-md-8"],[1,"pref-header"],[4,"ngFor","ngForOf"],[1,"pref-note"],["class","form-check pref-channel",4,"ngIf"],[1,"form-check","pref-channel"],["role","checkbox","type","checkbox",1,"form-check-input","cx-np-checkbox",3,"change","id","cxFocus","checked","disabled"],[1,"form-check-label",3,"for"],[1,"cx-spinner"]],template:function(n,i){n&1&&(f(0,C_,4,2,"ng-container",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.preferences$))},dependencies:[N,se,Dt,$e,q,$],encapsulation:2,changeDetection:0})}}return t})(),fu=(()=>{class t{constructor(e,n){this.component=e,this.pageMetaService=n}ngOnInit(){this.setTitle()}ngAfterViewInit(){this.lastestTitle$=this.title$}setTitle(){this.title$=this.pageMetaService.getMeta().pipe(G(gn),I(e=>(e.heading||e.title)??""))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(yo))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-page-title"]],decls:3,vars:3,consts:[[1,"cx-visually-hidden"]],template:function(n,i){n&1&&(yi(0,"h1",0),_(1),p(2,"async"),ao()),n&2&&(s(),B(m(2,1,i.title$)))},dependencies:[q],encapsulation:2,changeDetection:0})}}return t})(),Ab=(()=>{class t extends fu{constructor(e,n,i){super(e,n),this.component=e,this.pageMetaService=n,this.translation=i,this.router=T(lt),this.ariaLive$=this.router.events.pipe(G(r=>r instanceof Ar),I(()=>document.activeElement!==document.body))}ngOnInit(){super.ngOnInit(),this.setCrumbs()}setCrumbs(){this.crumbs$=Ce([this.pageMetaService.getMeta(),this.translation.translate("common.home")]).pipe(I(([e,n])=>e?.breadcrumbs?e.breadcrumbs:[{label:n,link:"/"}]))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(yo),g(pt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-breadcrumb"]],features:[re],decls:10,vars:15,consts:[["tabindex","-1"],[4,"ngFor","ngForOf"],[3,"routerLink","innerHTML"]],template:function(n,i){n&1&&(d(0,"nav",0),p(1,"cxTranslate"),d(2,"ol"),p(3,"cxTranslate"),f(4,y_,5,9,"li",1),p(5,"async"),u()(),d(6,"h1"),p(7,"async"),_(8),p(9,"async"),u()),n&2&&(M("aria-label",m(1,5,"common.breadcrumbs")),s(2),M("aria-label",m(3,7,"common.breadcrumbs")),s(2),c("ngForOf",m(5,9,i.crumbs$)),s(2),M("aria-l
15ive",m(7,11,i.ariaLive$)?"polite":null),s(2),x(" ",m(9,13,i.title$),` 16`))},dependencies:[se,Qe,q,$],encapsulation:2,changeDetection:0})}}return t})(),YT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{BreadcrumbComponent:{component:Ab}}})],imports:[L,ae,jr,W,he]})}}return t})(),ws="aria-expanded",ta=(()=>{class t{onResize(){this.resize.next(void 0)}onArrow(e){this.arrowControls.next(e)}constructor(e,n,i,r,a){this.router=e,this.renderer=n,this.elemRef=i,this.hamburgerMenuService=r,this.winRef=a,this.focusableNodeTitles=!1,this.iconType=ue,this.flyout=!0,this.isOpen=!1,this.openNodes=[],this.subscriptions=new ve,this.resize=new oe,this.arrowControls=new ht,this.breakpointService=T(Sn),this.isDesktop$=this.breakpointService.isUp(Yi.lg),this.featureToggles=T(bt),this.subscriptions.add(this.router.events.pipe(G(h=>h instanceof Ar)).subscribe(()=>this.clear())),this.subscriptions.add(this.resize.pipe(mn(50)).subscribe(()=>{this.alignWrappersToRightIfStickOut()}))}ngOnInit(){this.resetMenuOnClose&&this.resetOnMenuCollapse()}resetOnMenuCollapse(){this.subscriptions.add(this.hamburgerMenuService?.isExpanded.pipe(pe(),G(Boolean)).subscribe(()=>{this.reinitializeMenu()}))}closeIfClickedTheSameLink(e){typeof e.url=="string"&&this.winRef.nativeWindow?.location.href.includes(e.url)&&(this.reinitializeMenu(),this.featureToggles?.navigationMenuCloseOnSameLinkClick?this.hamburgerMenuService.toggle(!0):this.hamburgerMenuService.toggle())}reinitializeMenu(){let e=this.elemRef.nativeElement.querySelectorAll("li.is-open:not(.back), li.is-opened");e.forEach(n=>{Array.from(n.children).filter(i=>i?.tagName==="BUTTON").forEach(i=>{this.renderer.setAttribute(i,ws,"false")})}),e.forEach(n=>{this.renderer.removeClass(n,"is-open"),this.renderer.removeClass(n,"is-opened")}),this.clear(),this.renderer.removeClass(this.elemRef.nativeElement,"is-open"),this.updateClasses()}ariaCollapseNodes(){this.openNodes.forEach(e=>{Array.from(e.children).filter(n=>n?.tagName==="BUTTON").forEach(n=>{this.renderer.setAttribute(n,ws,"false")})})}toggleOpen(e){e.type==="keydown"&&e.preventDefault(),this.ariaCollapseNodes();let n=e.currentTarget,i=n.parentNode;this.openNodes.includes(i)?e.type==="keydown"?this.back():(this.openNodes=this.openNodes.filter(r=>r!==i),this.renderer.removeClass(i,"is-open")):(this.openNodes.push(i),this.renderer.setAttribute(n,ws,"true")),this.updateClasses(),e.stopImmediatePropagation(),e.stopPropagation()}onSpace(e){this.hamburgerMenuService.isExpanded.pipe(le(1)).subscribe(n=>{if(n){this.toggleOpen(e);return}if(!this.openNodes.length){this.toggleOpen(e);return}e.preventDefault()}),this.focusOnNode(e),this.setupArrowControls()}setupArrowControls(){this.subscriptions.add(this.arrowControls.subscribe(e=>{e.preventDefault();let n=e.target.parentElement?.parentElement,i=n?.nextElementSibling?.querySelector("a"),r=n?.previousElementSibling?.querySelector("a");e.code==="ArrowDown"?i?.focus():r?.focus()}))}focusOnNode(e){e.target?.nextElementSibling?.querySelector("button, h4, a")?.focus()}back(){if(this.openNodes[this.openNodes.length-1]){this.renderer.removeClass(this.openNodes[this.openNodes.length-1],"is-open");let e=this.openNodes.pop();setTimeout(()=>{(e?.querySelector('[aria-haspopup="true"]')).focus()},0),this.updateClasses()}}clear(){this.openNodes=[],this.updateClasses()}onMouseEnter(e){this.alignWrapperToRightIfStickOut(e.currentTarget),this.focusAfterPreviousClicked(e)}getTotalDepth(e,n=0){return e.children&&e.children.length>0?Math.max(...e.children.map(i=>this.getTotalDepth(i,n+1))):n}getColumnCount(e){if(!this.wrapAfter||e<=0)return 1;let n=Math.floor(e/this.wrapAfter);return n>=1&&e%this.wrapAfter>0&&(n+=1),n}focusAfterPreviousClicked(e){let n=e.target||e.relatedTarget;return n.ownerDocument.activeElement?.matches("nav[tabindex]")&&n.parentElement?.matches(".flyout")&&n.focus(),n.ownerDocument}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}alignWrapperToRightIfStickOut(e){let n=e.querySelector(".wrapper"),i=e.closest("body");n&&(this.renderer.removeStyle(n,"margin-left"),n.offsetLeft+n.offsetWidth>i.offsetLeft+i.offsetWidth&&this.renderer.setStyle(n,"margin-left",`${e.offsetWidth-n.offsetWidth}px`))}
16alignWrappersToRightIfStickOut(){let e=this.elemRef.nativeElement.childNodes;Array.from(e).filter(n=>n.tagName==="LI").forEach(n=>this.alignWrapperToRightIfStickOut(n))}updateClasses(){this.openNodes.forEach((e,n)=>{n+1<this.openNodes.length?(this.renderer.addClass(e,"is-opened"),this.renderer.removeClass(e,"is-open")):(this.renderer.removeClass(e,"is-opened"),this.renderer.addClass(e,"is-open"))}),this.isOpen=this.openNodes.length>0}getTabIndex(e,n){return this.flyout&&n>0&&!e?.children?-1:0}transformIntoValidID(e){return e?.replace(/[^a-zA-Z0-9-_]/g,"-")||null}static{this.\u0275fac=function(n){return new(n||t)(g(lt),g(De),g(z),g(Ws),g(Te))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-navigation-ui"]],hostVars:4,hostBindings:function(n,i){n&1&&y("resize",function(){return i.onResize()},br)("keydown.ArrowUp",function(a){return i.onArrow(a)},Ci)("keydown.ArrowDown",function(a){return i.onArrow(a)},Ci),n&2&&te("flyout",i.flyout)("is-open",i.isOpen)},inputs:{node:"node",wrapAfter:"wrapAfter",resetMenuOnClose:"resetMenuOnClose",focusableNodeTitles:"focusableNodeTitles",navAriaLabel:"navAriaLabel",flyout:"flyout",isOpen:"isOpen"},decls:6,vars:4,consts:[["nav",""],["heading",""],["title",""],["dropdownHeader",""],["class","back is-open",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"back","is-open"],[3,"click"],[3,"type"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ariaLabel","url","target","style","class","tabindex","click","focus","keydown.space","keydown.esc",4,"ngIf","ngIfElse"],["class","wrapper",3,"id",4,"ngIf"],[3,"click","focus","keydown.space","keydown.esc","ariaLabel","url","target","tabindex"],[4,"ngIf","ngIfElse"],[3,"url","target","click",4,"ngIf"],["tabindex","0",3,"keydown.arrowDown","keydown.space",4,"ngIf","ngIfElse"],[3,"click","url","target"],["tabindex","0",3,"keydown.arrowDown","keydown.space"],[3,"click","mouseenter","keydown.space","keydown.enter","keydown.esc","keydown.arrowDown","focus"],[4,"ngIf"],["role","heading","aria-level","4",4,"ngIf"],["role","heading","aria-level","4"],[1,"wrapper",3,"id"],[1,"childs"]],template:function(n,i){n&1&&(d(0,"nav")(1,"ul"),f(2,w_,5,4,"li",4)(3,I_,2,4,"ng-container",5),u()(),f(4,N_,5,4,"ng-template",null,0,ie)),n&2&&(M("aria-label",i.navAriaLabel),s(),M("role",i.flyout&&((i.node==null||i.node.children==null?null:i.node.children.length)??0)>1?"list":"presentation"),s(),c("ngIf",i.flyout&&((i.node==null||i.node.children==null?null:i.node.children.length)??0)>1),s(),c("ngForOf",i.node==null?null:i.node.children))},dependencies:[N,je,se,et,sr,q,$],encapsulation:2,changeDetection:0})}}return t})(),na=(()=>{class t{constructor(e,n){this.cmsService=e,this.semanticPathService=n}createNavigation(e){return Ce([e,this.getNavigationNode(e)]).pipe(I(([n,i])=>({title:n.name,children:[i]})))}getNavigationNode(e){return e?e.pipe(G(n=>!!n),ne(n=>{let i=n.navigationNode?n.navigationNode:n;return this.cmsService.getNavigationEntryItems(i.uid??"").pipe(Z(r=>{if(r===void 0){this.loadNavigationEntryItems(i,!0);return}let a=[];this.loadNavigationEntryItems(i,!1,a);let h=Object.keys(r).map(k=>r[k].uid??""),S=a.filter(k=>k.id&&!h.includes(k.id));S.length>0&&this.cmsService.loadNavigationItems(i.uid??"",S)}),G(Boolean),I(r=>this.populateNavigationNode(i,r)??{}))})):In}loadNavigationEntryItems(e,n,i=[]){e.entries&&e.entries.length>0&&e.entries.forEach(r=>{i.push({superType:r.itemSuperType,id:r.itemId})}),e.children&&e.children.length>0&&e.children.forEach(r=>this.loadNavigationEntryItems(r,!1,i)),n&&e.uid&&this.cmsService.loadNavigationItems(e.uid,i)}populateNavigationNode(e,n){let i={};if(e.title&&(i.title=e.title),e.styleClasses&&(i.styleClasses=e.styleClasses),e.styleAttributes&&(i.styleAttributes=e.styleAttributes),e.entries&&e.entries.length>0&&this.populateLink(i,e.entries[0],n),e.children?.length>0){let r=e.children.map(a=>this.populateNavigationNode(a,n)).filter(Boolean);r.length>0&&(i.children=r)}return Object.keys(i).length===0?null:i}populateLink(e,n,i){let r=i[`${n.itemId}_${n.itemSuperType}`];if(r&&n.itemType==="CMSLinkComponent"){e.title||(e.title=r.linkName);let a=this.getLink(r);e.title&&a&&(e.url=a,(r.target==="true"||r.target===!0)&&(e.target="_blank")),r.styleClasses&&(e.styleClasses=r.styleClasses),r.styleAttributes&&(e.styleAttributes=r.styleAttributes)}}getLink(e){if(e.url)return e.url;if(e.contentPageLabelOrId)return e.contentPageLabelOrId;if(e.categoryCode)return this.semanticPathService.transform({cxRoute:"category",params:{code:e.categoryCode,name:e.name}});
16if(e.productCode)return this.semanticPathService.transform({cxRoute:"product",params:{code:e.productCode,name:e.name}})}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(qn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Rb=(()=>{class t{constructor(e,n){this.componentData=e,this.service=n,this.node$=this.service.getNavigationNode(this.componentData.data$),this.data$=this.componentData.data$}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(na))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-category-navigation"]],decls:2,vars:3,consts:[[3,"node","ngClass","wrapAfter","resetMenuOnClose","navAriaLabel",4,"ngIf"],[3,"node","ngClass","wrapAfter","resetMenuOnClose","navAriaLabel"]],template:function(n,i){n&1&&(f(0,j_,3,9,"cx-navigation-ui",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.data$))},dependencies:[N,ta,Rt,q,$],encapsulation:2,changeDetection:0})}}return t})(),Pb=(()=>{class t{constructor(e,n){this.componentData=e,this.service=n,this.node$=this.service.createNavigation(this.componentData.data$),this.name$=this.componentData.data$.pipe(I(i=>i?.navigationNode?.title)),this.styleClass$=this.componentData.data$.pipe(I(i=>i?.styleClass))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(na))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-navigation"]],decls:4,vars:9,consts:[[3,"node","ngClass","navAriaLabel"]],template:function(n,i){n&1&&(w(0,"cx-navigation-ui",0),p(1,"async"),p(2,"async"),p(3,"async")),n&2&&c("node",m(1,3,i.node$))("ngClass",m(2,5,i.styleClass$)??"")("navAriaLabel",m(3,7,i.name$))},dependencies:[ta,Rt,q],encapsulation:2,changeDetection:0})}}return t})(),gu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{NavigationComponent:{component:Pb}}})],imports:[L,ae,Ve,di,W,he]})}}return t})(),XT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{CategoryNavigationComponent:{component:Rb,data:{resetMenuOnClose:!0}}}})],imports:[L,gu,W]})}}return t})(),Ob=(()=>{class t{constructor(e,n){this.componentData=e,this.service=n,this.node$=this.service.getNavigationNode(this.componentData.data$),this.styleClass$=this.componentData.data$.pipe(I(i=>i?.styleClass))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(na))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-footer-navigation"]],decls:2,vars:3,consts:[[3,"node","flyout","ngClass","navAriaLabel",4,"ngIf"],[3,"node","flyout","ngClass","navAriaLabel"]],template:function(n,i){n&1&&(f(0,$_,3,8,"cx-navigation-ui",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.node$))},dependencies:[N,ta,Rt,q,$],encapsulation:2,changeDetection:0})}}return t})(),ZT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{FooterNavigationComponent:{component:Ob}}})],imports:[L,ae,gu,di,W]})}}return t})(),JT=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{PageTitleComponent:{component:fu}}})],imports:[L,ae,jr]})}}return t})(),Lb=(()=>{class t{transform(e,n,i=!0){if(!n)return e;if(!i){let r=e.toLowerCase().indexOf(n.toLowerCase()),a=n.length;return e.replaceAll(e.substring(r,r+a),`<span class="highlight">${e.substring(r,r+a)}</span>`)}return e.replace(n.trim(),`<span class="highlight">${n.trim()}</span>`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=so({name:"cxHighlight",type:t,pure:!0})}}return t})(),Vb=(()=>{class t extends Gn{static{this.type="SearchBoxSuggestionSelectedEvent"}}return t})(),Bb=(()=>{class t extends Gn{static{this.type="SearchBoxProductSelectedEvent"}}return t})(),xd="has-searchbox-results",Nb=(()=>{class t{constructor(e,n,i,r,a){this.searchService=e,this.routingService=n,this.translationService=i,this.winRef=r,this.eventService=a,this.chosenWord=new Ln,this.sharedEvent=new Ln,this.searchCompleted=new ke(!1),this.enableRecentSearches=!1,this.enableTrendingSearches=!1,this.currentQueryLength=0,this.hasKeywordRedirect=!1}search(e,n){if(this.hasKeywordRedirect=!1,this.currentQueryLength=e?e.length:0,this.searchCompleted.next(!1),!this.enableRecentSearches&&!this.enableTrendingSearches&&(!e||e==="")){this.clearResults();return}if(n.minCharactersBeforeRequest&&e.length<n.minCharactersBeforeRequest)return;let i=!n.displayProducts,r=!n.displaySuggestions;n.displayProducts&&this.searchService.searchWithCompletion(e,{pageSize:n.maxProducts}).subscribe(a=>{a?.type===Ur.SEARCH_PRODUCTS_SUCCESS&&a?.payload?.keywordRedirectUrl&&(this.hasKeywordRedirect=!0),i=!0,this.checkSearchCompletion(i,r)}),n.displaySuggestions&&this.searchService.searchSuggestionsWithCompletion(e,{pageSize:n.maxSuggestions}).subscribe(a=>{a?.type===Ur.GET_PRODUCT_SUGGESTIONS_SUCCESS&&a?.payload?.keywordRedirectUrl&&(this.hasKeywordRedirect=!0),r=!0,this.checkSearchCompletion(i,r)})}checkSearchCompletion(e,n){e&&n&&this.currentQueryLength>0&&this.searchCompleted.next(!0)}getResults(e){return Ce([this.getProductResults(e),this.getProductSuggestions(e),this.get
16SearchMessage(e)]).pipe(I(([n,i,r])=>({products:n?n.products:void 0,suggestions:i,message:r})),Z(n=>this.toggleBodyClass(xd,this.hasResults(n))))}clearResults(){this.searchService.clearResults(),this.toggleBodyClass(xd,!1),this.hasKeywordRedirect=!1,this.currentQueryLength=0}hasBodyClass(e){return this.winRef.document.body.classList.contains(e)}toggleBodyClass(e,n){n===void 0?this.winRef.document.body.classList.toggle(e):n?this.winRef.document.body.classList.add(e):this.winRef.document.body.classList.remove(e)}dispatchProductSelectedEvent(e){this.eventService.dispatch({freeText:e.freeText,productCode:e.productCode},Bb)}dispatchSuggestionSelectedEvent(e){this.eventService.dispatch({freeText:e.freeText,selectedSuggestion:e.selectedSuggestion,searchSuggestions:e.searchSuggestions},Vb)}hasResults(e){return!!e.products&&e.products.length>0||!!e.suggestions&&e.suggestions.length>0||!!e.message||!!e.recentSearches}getProductResults(e){return e.displayProducts?this.searchService.getResults():Q({})}getProductSuggestions(e){return e.displaySuggestions?this.searchService.getSuggestionResults().pipe(I(n=>n.map(i=>i.value).filter(Jt)),ne(n=>n.length===0?this.getExactSuggestion(e).pipe(I(i=>i?[i]:[])):Q(n))):Q([])}getExactSuggestion(e){return this.getProductResults(e).pipe(ne(n=>n.products&&n.products.length>0?this.fetchTranslation("searchBox.help.exactMatch",{term:n.freeTextSearch}):Q(void 0)))}getSearchMessage(e){return Ce([this.getProductResults(e),this.getProductSuggestions(e)]).pipe(ne(([n,i])=>n&&n.products&&n.products.length===0&&i&&i.length===0?this.fetchTranslation("searchBox.help.noMatch"):Q(void 0)))}launchSearchPage(e){this.searchCompleted.pipe(G(n=>n),le(1)).subscribe(()=>{this.hasKeywordRedirect||this.routingService.go({cxRoute:"search",params:{query:e}})})}fetchTranslation(e,n){return this.translationService.translate(e,n)}changeSelectedWord(e){this.chosenWord.next(e)}shareEvent(e){this.sharedEvent.next(e)}setTrendingSearches(e=!1){this.enableTrendingSearches=e}setRecentSearches(e=!1){this.enableRecentSearches=e}static{this.\u0275fac=function(n){return new(n||t)(b(jc),b(dt),b(pt),b(Te),b(_n))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_u=(function(t){return t.RECENT_SEARCHES="SearchBoxOutlets.RECENT_SEARCHES",t.RECENT_SEARCHES_HEADER="SearchBoxOutlets.RECENT_SEARCHES_HEADER",t.TRENDING_SEARCHES="SearchBoxOutlets.TRENDING_SEARCHES",t})(_u||{}),jb={minCharactersBeforeRequest:1,displayProducts:!0,displaySuggestions:!0,maxProducts:5,maxSuggestions:5,displayProductImages:!0,recentSearches:!0,maxRecentSearches:5,trendingSearches:!0,maxTrendingSearches:5},Wo="searchbox-is-active",$b=(()=>{class t{set queryText(e){e&&(this.updateChosenWord(e),this.search(e))}get searchBoxV2(){return!0}clickout(e){let n=e.target;this.elementRef.nativeElement.contains(n)||this.softClose()}onEscape(){(this.winRef.document.activeElement!==this.searchInputEl?.nativeElement||this.searchBoxActive)&&setTimeout(()=>{this.searchInputEl.nativeElement.focus()})}isResultsPanelVisible(){return this.searchBoxRecentSearchesRemovalEnabled?this.hasQuery:!0}getAriaControls(){return this.searchBoxRecentSearchesRemovalEnabled?this.hasQuery?"results":null:"results"}isNoResults(e){if(!e)return!1;let n=(e.suggestions?.length??0)>0,i=(e.products?.length??0)>0;return!n&&!i}get isMobile(){return this.breakpointService.isDown(Yi.sm)}constructor(e,n,i,r){this.searchBoxComponentService=e,this.componentData=n,this.winRef=i,this.routingService=r,this.elementRef=T(z),this.renderer=T(De),this.featureToggles=T(bt),this.searchBoxOutlets=_u,this.iconTypes=ue,this.searchBoxActive=!1,this.ignoreCloseEvent=!1,this.chosenWord="",this.hasQuery=!1,this.isMobileState=null,this.searchBoxRecentSearchesRemovalEnabled=this.featureToggles.searchBoxRecentSearchesRemoval,this.subscriptions=new ve,this.breakpointService=T(Sn),this.changeDetectorRef=T(Oe),this.config$=(this.componentData?.data$||Q({})).pipe(I(a=>{let h=(S,k)=>S[k]!=="false"&&S[k]!==!1;return U(ce(U(U({},jb),a),{displayProducts:h(a,"displayProducts"),displayProductImages:h(a,"displayProductImages"),displaySuggestions:h(a,"displaySuggestions")}),this.config)}),Z(a=>this.config=a)),this.results$=this.config$.pipe(ne(a=>this.searchBoxComponentService.getResults(a))),this.items$=this.results$.pipe(I(a=>a.products?.map(h=>Q(h)))),Ye("searchBoxRecentSearchesRemoval"),Ye("a11yFixSearchBoxDoubleFocus")}ngOnInit(){if(this.searchBoxRecentSearchesRemovalEnabled){let r=this.config$.subscribe();this.subscriptions.add(r);let a=this.isMobile;if(a){let h=a.subscribe(S=>this.isMobileState=S??!1);this.subscriptions.add(h)}}let e=this.routingService.getRouterState().pipe(G(r=>!r.nextState)).subscribe(r=>{r.state.context?.id==="search"&&r.state.context?.type===Zt.CONTENT_PAGE||this.updateChosenWord("")});this.subscriptions.add(e);let n=this.searchBoxComponentService.chosenWord.subscribe(r=>{this.updateChosenWord(r)});this.subscriptions.add(n);let i=this.searchBoxComponentService.sharedEvent.subscribe(r=>
16{this.propagateEvent(r)});this.subscriptions.add(i)}getTabIndex(e){return e?this.searchBoxActive?0:-1:0}search(e){if(this.searchBoxRecentSearchesRemovalEnabled){let n=e?.trim()??"";if(!n){this.hasQuery=!1,this.searchBoxComponentService.clearResults(),this.close(!0);return}this.hasQuery=!0,this.searchBoxComponentService.search(n,this.config),this.checkOuterResults(),this.open();return}this.searchBoxComponentService.search(e,this.config),this.checkOuterResults(),this.open()}open(){if(!this.searchBoxActive){if(this.searchBoxRecentSearchesRemovalEnabled){let n=(this.searchInputEl?.nativeElement?.value??"").trim();if(this.isMobileState===!1&&!n)return}this.searchBoxComponentService.toggleBodyClass(Wo,!0),this.searchBoxActive=!0,this.searchInputEl?.nativeElement.focus()}}dispatchSuggestionEvent(e){this.searchBoxComponentService.dispatchSuggestionSelectedEvent(e)}dispatchProductEvent(e){this.searchBoxComponentService.dispatchProductSelectedEvent(e)}onSearchBlur(e){this.searchBoxRecentSearchesRemovalEnabled?this.handleInputBlur(e):this.close()}handleInputBlur(e){let n=e.relatedTarget;n&&this.elementRef.nativeElement.contains(n)||this.close()}close(e=!1){setTimeout(()=>{(!this.ignoreCloseEvent&&!this.isSearchBoxFocused()||e)&&this.blurSearchBox()})}softClose(){this.searchBoxComponentService.toggleBodyClass(Wo,!1),this.searchBoxActive=!1}blurSearchBox(){this.softClose(),this.searchBoxComponentService.toggleBodyClass(Wo,!1),this.searchBoxActive=!1,this.changeDetectorRef.detectChanges(),this.searchButton?.nativeElement.focus()}isSearchBoxFocused(){return this.getResultElements().includes(this.getFocusedElement())||this.winRef.document.querySelector('input[aria-label="Search"]')===this.getFocusedElement()}checkOuterResults(){let e=this.elementRef.nativeElement.querySelector("cx-recent-searches .recent-searches"),n=this.elementRef.nativeElement.querySelector("cx-trending-searches .trending-searches"),i=this.elementRef.nativeElement.querySelector(".results");(e||n)&&this.renderer.addClass(i,"has-outer-results")}avoidReopen(e){this.searchBoxComponentService.hasBodyClass(Wo)&&(this.close(),e.preventDefault())}getResultElements(){return Array.from(this.winRef.document.querySelectorAll(".products ul:not(.hidden) > li a, .suggestions ul > li a, .recent-searches ul > li a, .trending-searches ul > li a, .carousel-panel .item.active > a, .products .carousel-panel > button:not([disabled])"))}getGroupElements(){let e=[];return e.push(Array.from(this.winRef.document.querySelectorAll(".products ul:not(.hidden) > li a"))),e.push(Array.from(this.winRef.document.querySelectorAll(".suggestions ul > li a"))),e.push(Array.from(this.winRef.document.querySelectorAll(".trending-searches-container.d-block .trending-searches ul > li a"))),e.push(Array.from(this.winRef.document.querySelectorAll(".recent-searches ul > li a"))),e.push(Array.from(this.winRef.document.querySelectorAll(".carousel-panel .item.active > a, .carousel-panel > button:not([disabled])"))),e.push(Array.from(this.winRef.document.querySelectorAll(".search-panel-close-btn"))),e.filter(n=>n.length)}getFocusedElement(){return this.winRef.document.activeElement}updateChosenWord(e){this.chosenWord=e,this.searchInputEl&&(this.searchInputEl.nativeElement.value=this.chosenWord)}getFocusedIndex(){return this.getResultElements().indexOf(this.getFocusedElement())}getFocusedGroupIndex(){return this.getGroupElements().findIndex(e=>e.indexOf(this.getFocusedElement())!==-1)??0}propagateEvent(e){if(!this.searchBoxRecentSearchesRemovalEnabled){if(e.code){this.handleKeyboardEvent(e);return}e.type==="blur"&&this.close();return}if(e.type==="blur"){this.close();return}e.code&&this.handleKeyboardEvent(e)}handleKeyboardEvent(e){switch(e.code){case"Escape":this.close(!0);break;case"Enter":this.close(!0);break;case"ArrowUp":this.focusPreviousChild(e);break;case"ArrowDown":this.focusNextChild(e);break;case"ArrowLeft":this.focusPreviousGroup(e);break;case"ArrowRight":this.focusNextGroup(e);break;default:break}}focusPreviousChild(e){e.preventDefault();let[n,i]=[this.getResultElements(),this.getFocusedIndex()];n.length&&(i<1?n[n.length-1].focus():n[i-1].focus())}focusNextChild(e){this.open(),e.preventDefault();let[n,i]=[this.getResultElements(),this.getFocusedIndex()];n.length&&(this.winRef.document.querySelector("header")?.classList.remove("mouse-focus"),i>=n.length-1?n[0].focus():n[i+1].focus())}focusPreviousGroup(e){e.preventDefault();let n=this.getGroupElements(),i=this.getFocusedGroupIndex();if(!n.length||i<0||i>=n.length||n[i].length===0)return;let a=i>0?i-1:0,h=n[a];h.length>0&&h[0].focus()}focusNextGroup(e){this.open(),e.preventDefault();let n=this.getGroupElements(),i=this.getFocusedGroupIndex();if(!n.length||i<0||i>=n.length)return;let r=i+1;for(;r<n.length&&n[r].length===0;)r++;r>=n.length&&(r=0,n[r].length===0)||n[r][0].focus()}carouselEventPropagator(e){if(!(!e||!e?.code))switch(e.code){case"ArrowRight":this.focusNextChild(e);return;
16case"ArrowLeft":{this.getGroupElements().forEach(n=>{n.indexOf(this.getFocusedElement())!==-1&&(n.indexOf(this.getFocusedElement())===0?this.focusPreviousGroup(e):this.focusPreviousChild(e))});return}case"ArrowUp":this.focusNextGroup(e);return;default:return}}launchSearchResult(e){!e||e.trim().length===0||(this.close(),this.searchBoxComponentService.launchSearchPage(e))}onEnter(e){if(!e||e.trim().length===0)return;let n=e.trim(),i=this.results$.pipe(G(r=>!!(r&&r.suggestions&&r.suggestions.length>0)),hn(),ma(1e3),gr(()=>Q({suggestions:[]}))).subscribe(r=>{let h=(r.suggestions??[]).some(S=>S.toLowerCase()===n.toLowerCase());this.close(!0),this.launchSearchResult(n),this.updateChosenWord(n),h&&setTimeout(()=>{this.updateChosenWord("")},150)});this.subscriptions.add(i)}disableClose(){this.ignoreCloseEvent=!0}preventDefault(e){e.preventDefault()}clear(e){this.disableClose(),e.value="",this.searchBoxRecentSearchesRemovalEnabled&&(this.hasQuery=!1),this.searchBoxComponentService.clearResults(),setTimeout(()=>{e.focus(),this.ignoreCloseEvent=!1})}ngOnDestroy(){this.subscriptions?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Nb),g(Re,8),g(Te),g(dt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-searchbox"]],viewQuery:function(n,i){if(n&1&&He(H_,5)(U_,5),n&2){let r;be(r=Se())&&(i.searchInputEl=r.first),be(r=Se())&&(i.searchButton=r.first)}},hostVars:2,hostBindings:function(n,i){n&1&&y("click",function(a){return i.clickout(a)},Ci)("keydown.escape",function(){return i.onEscape()}),n&2&&te("search-box-v2",i.searchBoxV2)},inputs:{config:"config",queryText:"queryText"},decls:26,vars:39,consts:[["searchInput",""],["searchButton",""],["carouselItem",""],["role","search",1,"cx-searchbox-container"],[1,"searchbox"],[1,"cx-input-label"],[1,"cx-label-inner-container"],["autocomplete","off","aria-describedby","initialDescription",3,"click","input","blur","keydown.tab","keydown.escape","keydown.enter","keydown.arrowup","keydown.arrowdown","placeholder","value"],[1,"reset",3,"click","title"],[3,"type"],["role","presentation",1,"search-icon",3,"title"],[1,"search",3,"click","title"],["id","initialDescription","class","cx-visually-hidden",4,"cxFeature"],[4,"ngIf"],["id","initialDescription",1,"cx-visually-hidden"],["class","results","id","results",3,"click",4,"ngIf"],["id","results",1,"results",3,"click"],[1,"btn","btn-tertiary","search-panel-close-btn",3,"keydown.arrowdown","click"],[3,"innerHTML",4,"ngIf"],["class","suggestions",4,"ngIf"],[1,"trending-searches-container"],[3,"cxOutlet","cxOutletContext"],[4,"cxFeature"],[1,"products"],[1,"search-panel-header"],["class","search-panel-message",3,"innerHTML",4,"ngIf"],["aria-live","assertive","class","cx-visually-hidden",4,"ngIf"],[3,"innerHTML"],[1,"suggestions"],["tabindex","0","role","listbox"],["role","option",4,"ngFor","ngForOf"],["role","option"],["role","option",3,"keydown.arrowup","keydown.arrowdown","keydown.arrowleft","keydown.arrowright","keydown.enter","keydown.escape","blur","mousedown","click","innerHTML","routerLink"],["role","region","itemWidth","160px",3,"keybordEvent","items","template"],["tabindex","0",3,"keydown.enter","keydown.escape","keydown.arrowleft","keydown.arrowright","keydown.arrowup","mousedown","click","routerLink"],["tabindex","0","format","product",3,"container","alt"],[1,"cx-product-name",3,"innerHtml"],[1,"price"],[1,"actions"],["cxInnerComponentsHost",""],[1,"search-panel-message",3,"innerHTML"],[1,"suggestions-header"],["class","trendingSearches-header",4,"ngIf"],["class","recentSearches-header",4,"cxFeature"],["class","products-header",4,"ngIf"],[1,"trendingSearches-header"],[3,"cxOutlet"],[1,"recentSearches-header"],[1,"products-header"],["aria-live","assertive",1,"cx-visually-hidden"]],template:function(n,i){if(n&1){let r=P();d(0,"div",3),p(1,"cxTranslate"),d(2,"label",4)(3,"span",5),_(4),p(5,"cxTranslate"),u(),d(6,"div",6)(7,"input",7,0),p(9,"cxTranslate"),p(10,"async"),y("click",function(){return i.open()})("input",function(){v(r);let h=H(8);return C(i.search(h.value))})("blur",function(h){return i.onSearchBlur(h)})("keydown.tab",function(){return i.close()})("keydown.escape",function(){return i.close()})("keydown.enter",function(){v(r);let h=H(8);return C(i.onEnter(h.value))})("keydown.arrowup",function(h){return i.focusPreviousChild(h)})("keydown.arrowdown",function(h){return i.focusNextChild(h)}),u(),d(11,"button",8),p(12,"cxTranslate"),p(13,"cxTranslate"),y("click",function(){v(r);let h=H(8);return C(i.clear(h))}),w(14,"cx-icon",9),u(),d(15,"div",10),p(16,"cxTranslate"),w(17,"cx-icon",9),u()(),d(18,"button",11,1),p(20,"cxTranslate"),p(21,"cxTranslate"),y("click",function(){return i.open()}),w(22,"cx-icon",9),u()()(),f(23,q_,3,3,"span",12)(24,_v,2,1,"ng-container",13),p(25,"async")}if(n&2){let r=H(8);M("aria-label",m(1,19,"searchBox.productSearch")),s(2),te("dirty",!!(r!=null&&r.value)),s(2),B(m(5,21,"common.search")),s(3),c("value",me(i.chosenWord))("placeholder",m(9,23,"searchBox.placeholder")),M("aria-controls",i.getAriaControl
16s())("tabindex",i.getTabIndex(m(10,25,i.isMobile))),s(4),c("title",m(12,27,"common.reset")),M("aria-label",m(13,29,"common.reset")),s(3),c("type",i.iconTypes.RESET),s(),c("title",m(16,31,"common.productSearchDescription")),s(2),c("type",i.iconTypes.SEARCH),s(),c("title",m(20,33,"common.productSearchDescription")),M("aria-label",m(21,35,"common.search")),s(4),c("type",i.iconTypes.SEARCH),s(),c("cxFeature","searchBoxRecentSearchesRemoval"),s(),c("ngIf",m(25,37,i.results$))}},dependencies:[je,N,se,Qe,zt,Tn,ru,Ot,q,en,$,Lb],encapsulation:2,changeDetection:0})}}return t})(),vu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})();var Hb=(()=>{class t{download(e,n){let i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("download",`${n}`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),eI=(()=>{class t{constructor(e){this.fileDownloadService=e}convert(e,n){return e.reduce((i,r)=>{let a=r.reduce((h,S)=>{h+=h!==""?n:"";let k=S.includes(n)?`"${S}"`:S;return`${h}${k}`},"");return`${i}${a}\r 17`},"")}download(e,n,i){let{fileName:r,type:a,extension:h}=i,S=this.convert(e,n),k=new Blob([S],{type:a}),K=URL.createObjectURL(k);this.fileDownloadService.download(K,`${r}.${h}`)}static{this.\u0275fac=function(n){return new(n||t)(b(Hb))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ub=(()=>{class t{loadTextFile(e){return new un(n=>{let i=new FileReader;i.readAsText(e),i.onload=()=>{n.next(i.result),n.complete()},i.onerror=r=>{i.abort(),n.error(r)}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tI=(()=>{class t{constructor(e){this.fileReaderService=e}loadFile(e,n){return this.fileReaderService.loadTextFile(e).pipe(I(i=>this.parse(i,n)))}validateFile(e,{separator:n,isDataParsable:i,maxEntries:r}){let a={};return this.fileReaderService.loadTextFile(e).pipe(Z(h=>{this.validateEmpty(h,a)}),I(h=>this.parse(h,n)),Z(h=>{this.validateNotParsable(h,a,i),this.validateTooManyEntries(h,a,r)}),gr(h=>Q(h)),I(()=>Object.keys(a).length===0?null:a))}parse(e,n,i=!0){return e.split(` 18`).map(r=>r.split(n).map(a=>a.replace(/"/g,""))).filter((r,a)=>!(i&&a===0)&&r[0]!=="")}validateEmpty(e,n){if(e.toString().length===0)throw n.empty=!0,n}validateTooManyEntries(e,n,i){if(i&&e.length>i)throw n.tooManyEntries={maxEntries:i},n}validateNotParsable(e,n,i){if(i&&!i(e))throw n.notParsable=!0,n}static{this.\u0275fac=function(n){return new(n||t)(b(Ub))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bd=class{static emailValidator(o){let e=o.value;return e&&(!e.length||e.match(sc))?null:{cxInvalidEmail:!0}}static securePasswordValidator(o){let e=o.value;return e&&(!e.length||e.match(hc))?null:{cxInvalidPassword:!0}}static minOneUpperCaseCharacterValidator(o){let e=o.value;return e&&(!e.length||e.match(ac))?null:{cxMinOneUpperCaseCharacter:!0}}static minOneDigitValidator(o){let e=o.value;return e&&(!e.length||e.match(cc))?null:{cxMinOneDigit:!0}}static minOneSpecialCharacterValidator(o){let e=o.value;return e&&(!e.length||e.match(lc))?null:{cxMinOneSpecialCharacter:!0}}static minSixCharactersLengthValidator(o){let e=o.value;return e&&(!e.length||e.match(dc))?null:{cxMinSixCharactersLength:!0}}static minEightCharactersLengthValidator(o){let e=o.value;return e&&(!e.length||e.match(uc))?null:{cxMinEightCharactersLength:!0}}static maxCharactersLengthValidator(o){let e=o.value;return e&&(!e.length||e.match(pc))?null:{cxMaxCharactersLength:!0}}static noConsecutiveCharacters(o){let e=o.value;return e&&(!e.length||e.match(mc))?{cxNoConsecutiveCharacters:!0}:null}static{this.passwordValidators=[this.minOneDigitValidator,this.minOneUpperCaseCharacterValidator,this.minOneSpecialCharacterValidator,this.minSixCharactersLengthValidator]}static{this.securePasswordValidators=[this.minOneDigitValidator,this.minOneUpperCaseCharacterValidator,this.minOneSpecialCharacterValidator,this.minEightCharactersLengthValidator,this.maxCharactersLengthValidator,this.noConsecutiveCharacters]}static starRatingEmpty(o){let e=o.value;return e>=1&&e<=5?null:{cxStarRatingEmpty:!0}}static passwordsMustMatch(o,e){return i=>Ts(i,o,e,"cxPasswordsMustMatch")}static passwordsCannotMatch(o,e){return i=>Ts(i,o,e,"cxPasswordsCannotMatch",!0)}static emailsMustMatch(o,e){return i=>
18Ts(i,o,e,"cxEmailsMustMatch")}static mustBePositive(o){return o.value>=0?null:{cxNegativeAmount:!0}}static mustEndWithLegalCharacter(o){let e=o.value;return e&&(!e.length||fc.exec(e))?null:{cxMustEndWithLegalCharacter:!0}}static noSpecialCharacters(o){let e=["/"],n=String(o.value);return e.some(r=>n.includes(r))?{cxContainsSpecialCharacters:!0}:null}static patternValidation(o){return n=>{let i={};return n.value&&n.value!==""&&!o(n.value)&&(i.pattern=!0),Object.keys(i).length===0?null:i}}static dateRange(o,e,n){return i=>{let r=i.controls[o],a=i.controls[e],h=n(r.value),S=n(a.value);return h&&S&&(r.errors?.pattern||h>S&&r.setErrors({max:!0}),a.errors?.pattern||S<h&&a.setErrors({min:!0})),null}}};function Ts(t,o,e,n,i=!1){let r=t.controls[o],a=t.controls[e];if(a.errors&&!a.errors[n])return;let h=i?r.value===a.value:r.value!==a.value;a.setErrors(h?{[n]:!0}:null)}var zo={mr:1,mrs:2,miss:3,ms:4,dr:5,rev:6};function nI(t,o){return t.code&&o.code?!zo[t.code]||!zo[o.code]?1:zo[t.code]-zo[o.code]:1}var iI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{SearchBoxComponent:{component:$b}}})],imports:[L,ae,Et,Ve,wt,W,yt,he,Zi,qe]})}}return t})(),Gb=(()=>{class t{constructor(e,n,i){this.winRef=e,this.componentData=n,this.selectFocusUtility=i,this.iconTypes=ue,this.window=this.winRef.nativeWindow,this.scrollBehavior=tc.SMOOTH,this.displayThreshold=(this.window?.innerHeight??400)/2,this.triggedByKeypress=!1}ngOnInit(){this.setConfig()}onScroll(){this.switchDisplay()}scrollToTop(e){this.window?.scrollTo({top:0,behavior:this.scrollBehavior}),this.triggedByKeypress=e?.detail===0}onFocusOut(){this.display&&this.switchDisplay()}onTab(e){let n=e,i=document.activeElement===this.button.nativeElement,r=this.window?.scrollY===0;i&&r&&n.key==="Tab"&&!n.shiftKey&&(e.preventDefault(),this.selectFocusUtility.findFirstFocusable(this.winRef.document.body,{autofocus:""})?.focus())}setConfig(){this.componentData.data$.pipe(le(1)).subscribe(e=>{this.scrollBehavior=e.scrollBehavior??this.scrollBehavior,this.displayThreshold=e.displayThreshold??this.displayThreshold})}switchDisplay(){let e=this.window&&this.window.scrollY>this.displayThreshold,n=this.button.nativeElement===document.activeElement;this.display=e||this.triggedByKeypress&&n,this.display||(this.triggedByKeypress=!1)}static{this.\u0275fac=function(n){return new(n||t)(g(Te),g(Re),g(Yd))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-scroll-to-top"]],viewQuery:function(n,i){if(n&1&&He(vv,5),n&2){let r;be(r=Se())&&(i.button=r.first)}},hostVars:2,hostBindings:function(n,i){n&1&&y("scroll",function(){return i.onScroll()},br),n&2&&te("display",i.display)},decls:6,vars:7,consts:[["button",""],[1,"cx-scroll-to-top-btn",3,"click","focusout","keydown.Tab","title"],["aria-hidden","true"],[1,"caret-up-icon",3,"type"]],template:function(n,i){n&1&&(d(0,"button",1,0),p(2,"cxTranslate"),p(3,"cxTranslate"),y("click",function(a){return i.scrollToTop(a)})("focusout",function(){return i.onFocusOut()})("keydown.Tab",function(a){return i.onTab(a)}),d(4,"span",2),w(5,"cx-icon",3),u()()),n&2&&(c("title",m(2,3,"navigation.scrollToTop")),M("aria-label",m(3,5,"navigation.scrollToTop")),s(5),c("type",i.iconTypes.CARET_UP))},dependencies:[je,$],encapsulation:2,changeDetection:0})}}return t})(),oI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ScrollToTopComponent:{component:Gb}}})],imports:[L,Ve,W]})}}return t})();var Wb=(()=>{class t extends hu{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275cmp=O({type:t,selectors:[["cx-my-account-v2-notification-preference"]],features:[re],decls:2,vars:3,consts:[["loading",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"np-row","np-flex","np-content-center"],[1,"col-md-8"],[1,"header"],[1,"pref-info"],[1,"form-check","cx-notification-channels"],[4,"ngFor","ngForOf"],["class","pref-channel",4,"ngIf"],[1,"pref-channel"],["role","checkbox","type","checkbox",1,"form-check-input","c
18x-np-checkbox",3,"change","checked","disabled"],[1,"form-check-label"],[1,"cx-spinner"]],template:function(n,i){n&1&&(f(0,Sv,4,2,"ng-container",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.preferences$))},dependencies:[N,se,Dt,q,$],encapsulation:2,changeDetection:0})}}return t})();var zb={cmsComponents:{NotificationPreferenceComponent:{component:Wb}}},rI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{NotificationPreferenceComponent:{component:hu,guards:[Lt]}}}),po(()=>T(Dx)?zb:{})],imports:[L,dn,W,he,ae.forChild([{path:null,canActivate:[Lt,Wt],component:It,data:{cxRoute:"notificationPreference"}}])]})}}return t})(),Sd=(()=>{class t{constructor(e,n,i){this.userPaymentService=e,this.translation=n,this.globalMessageService=i,this.iconTypes=ue}ngOnInit(){this.paymentMethods$=this.userPaymentService.getPaymentMethods().pipe(Z(e=>{e.length>0&&!e.find(n=>n.defaultPayment)&&this.setDefaultPaymentMethod(e[0])})),this.editCard=void 0,this.loading$=this.userPaymentService.getPaymentMethodsLoading(),this.userPaymentService.loadPaymentMethods()}getCardContent({defaultPayment:e,accountHolderName:n,expiryMonth:i,expiryYear:r,cardNumber:a,cardType:h}){return Ce([this.translation.translate("paymentCard.setAsDefault"),this.translation.translate("common.delete"),this.translation.translate("paymentCard.deleteConfirmation"),this.translation.translate("paymentCard.expires",{month:i,year:r}),this.translation.translate("paymentCard.defaultPaymentMethod")]).pipe(I(([S,k,K,fe,ye])=>{let it=[];return e||it.push({name:S,event:"default"}),it.push({name:k,event:"edit"}),{role:"application",header:e?ye:void 0,textBold:n,text:[a??"",fe],actions:it,deleteMsg:K,img:this.getCardIcon(h?.code??""),imgLabel:this.getCardIconLabel(h?.code),label:e?"paymentCard.defaultPaymentLabel":"paymentCard.additionalPaymentLabel"}}))}deletePaymentMethod(e){e.id&&(this.userPaymentService.deletePaymentMethod(e.id),this.editCard=void 0)}setEdit(e){this.editCard=e.id}cancelCard(){this.editCard=void 0}setDefaultPaymentMethod(e){this.userPaymentService.setPaymentMethodAsDefault(e.id??""),this.globalMessageService?.add({key:"paymentMessages.setAsDefaultSuccessfully"},Fe.MSG_TYPE_CONFIRMATION)}getCardIcon(e){let n;return e==="visa"?n=this.iconTypes.VISA:e==="master"||e==="mastercard_eurocard"?n=this.iconTypes.MASTER_CARD:e==="diners"?n=this.iconTypes.DINERS_CLUB:e==="amex"?n=this.iconTypes.AMEX:n=this.iconTypes.CREDIT_CARD,n}getCardIconLabel(e){let n;return e==="visa"?n="paymentCard.visa":e==="master"?n="paymentCard.master":e==="mastercard_eurocard"?n="paymentCard.masterEuro":e==="diners"?n="paymentCard.dinersClub":e==="amex"?n="paymentCard.amex":e==="switch"?n="paymentCard.switch":e==="maestro"?n="paymentCard.maestro":n="paymentCard.credit",n}static{this.\u0275fac=function(n){return new(n||t)(g($c),g(pt),g(ut))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-payment-methods"]],decls:2,vars:3,consts:[["cards",""],[4,"ngIf"],[1,"cx-payment","container"],[1,"cx-header"],[1,"cx-body"],[1,"cx-msg"],[4,"ngIf","ngIfElse"],[1,"cx-existing","row"],["class","cx-payment-card col-sm-12 col-md-12 col-lg-6",4,"ngFor","ngForOf"],[1,"cx-payment-card","col-sm-12","col-md-12","col-lg-6"],[1,"cx-payment-inner"],[3,"deleteCard","setDefaultCard","editCard","cancelCard","index","border","fitToContainer","content","editMode"]],template:function(n,i){n&1&&(f(0,Ev,15,10,"ng-container",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.paymentMethods$))},dependencies:[N,cr,Dt,se,jx,q,$],encapsulation:2})}}return t})(),sI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{AccountPaymentDetailsComponent:{component:Sd,guards:[Lt]}}})],imports:[L,cu,dn,W,he,cr,Sd]})}}return t})();var ia=(()=>{class t{constructor(e,n,i,r,a,h,S){this.productSearchService=e,this.routing=n,this.activatedRoute=i,this.currencyService=r,this.languageService=a,this.router=h,this.config=S,this.RELEVANCE_ALLCATEGORIES=":relevance:allCategories:",this.searchResults$=this.productSearchService.getResults().pipe(G(k=>Object.keys(k).length>0)),this.searchByRouting$=Ce([this.routing.getRouterState().pipe(pe((k,K)=>k.state.url===K.state.url)),...this.siteContext]).pipe(mn(0),I(([k,...
18K])=>k.state),Z(k=>{let K=this.getCriteriaFromRoute(k.params,k.queryParams);this.searchIfCriteriaHasChanged(K)})),this.model$=ga(()=>this.searchByRouting$.subscribe(),()=>this.searchResults$).pipe(qt({bufferSize:1,refCount:!0}))}searchIfCriteriaHasChanged(e){this.productSearchService.getResults().pipe(le(1)).subscribe(n=>{let i={query:n?.currentQuery?.query?.value,currentPage:n?.pagination?.currentPage,pageSize:n?.pagination?.pageSize,sortCode:n?.pagination?.sort};(r()||a()||h()||S())&&this.search(e);function r(){let k=fe(i.query,i.sortCode),K=fe(e.query,e.sortCode);return k!==K;function fe(ye,it){let Nt="relevance";return ye=ye?.replace(":"+Nt,"").replace(Nt,""),it&&(ye=ye?.replace(":"+it,"").replace(it,"")),ye}}function a(){return(i.currentPage&&i.currentPage>0?i.currentPage:void 0)?.toString()!==e.currentPage?.toString()}function h(){return i.pageSize?.toString()!==e.pageSize?.toString()}function S(){return(e.sortCode?i?.sortCode:void 0)?.toString()!==e.sortCode?.toString()}})}getCriteriaFromRoute(e,n){return{query:n.query||this.getQueryFromRouteParams(e),pageSize:n.pageSize||this.config.view?.defaultPageSize,currentPage:n.currentPage,sortCode:n.sortCode}}getQueryFromRouteParams({query:e,categoryCode:n,brandCode:i}){if(e)return e;if(n)return this.RELEVANCE_ALLCATEGORIES+n;if(i)return this.RELEVANCE_ALLCATEGORIES+i}search(e){let n=e.currentPage,i=e.pageSize,r=e.sortCode;this.productSearchService.search(e.query,Object.assign({},n&&{currentPage:n},i&&{pageSize:i},r&&{sort:r}))}getPageItems(e){this.routing.getRouterState().subscribe(n=>{let i=this.getCriteriaFromRoute(n.state.params,n.state.queryParams),r=ce(U({},i),{currentPage:e});this.search(r)}).unsubscribe()}sort(e){this.route({sortCode:e})}route(e){this.router.navigate([],{queryParams:e,queryParamsHandling:"merge",relativeTo:this.activatedRoute})}get siteContext(){return[this.languageService.getActive(),this.currencyService.getActive()]}static{this.\u0275fac=function(n){return new(n||t)(b(Gr),b(dt),b(Rr),b(Sc),b(zn),b(lt),b(vu))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Cu=(function(t){return t.INTRO="PDP.INTRO",t.PRICE="PDP.PRICE",t.SHARE="PDP.SHARE",t.SUMMARY="PDP.SUMMARY",t})(Cu||{}),oa=(function(t){return t.ITEM_ACTIONS="cx-product-list-item.actions",t.ITEM_DETAILS="cx-product-list-item.details",t})(oa||{}),pr=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),sn=(()=>{class t extends pr{constructor(){super(...arguments),this.product$=new Ln(1)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=ge(t)))(i||t)}})()}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),ra=(()=>{class t{shouldHideAddToCartButton(e){return!e.price||e.purchasable===!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yu=(()=>{class t{constructor(e){this.productListItemContextSource=e,this.productListService=T(ra),this.hideAddToCartButton=!1,this.ProductListOutlets=oa,Ye("a11yProductListItemNameMargin")}ngOnChanges(e){e?.product&&(this.hideAddToCartButton=this.productListService.shouldHideAddToCartButton(this.product),this.productListItemContextSource.product$.next(this.product))}static{this.\u0275fac=function(n){return new(n||t)(g(sn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-grid-item"]],inputs:{product:"product",itemIndex:"itemIndex"},features:[_e([sn,{provide:pr,useExisting:sn}]),Ee],decls:7,vars:13,consts:[["tabindex","-1",1,"cx-product-image-container",3,"routerLink"],["class","cx-product-image","format","product",3,"container","alt","fetchPriority",4,"cxLcpContext"],[1,"cx-product-name",3,"routerLink","innerHTML"],[3,"cxOutlet"],["format","product",1,"cx-product-image",3,"container","alt","fetchPriority"],[1,"cx-product-rating"],[3,"rating",4,"ngIf"],[4,"ngIf"],[1,"cx-product-price-container"],[1,"cx-product-price"],[3,"rating"],["cxInnerComponentsHost",""]],template:function(n,i){n&1&&(d(0,"a",0),p(1,"cxUrl"),f(2,Dv,2,5,"cx-media",1),u(),w(3,"a",2),p(4,"cxUrl"),f(5,kv,7,6,"ng-template",3)(6,Rv,1,1,"ng-template",3)),n&2&&(c("routerLink",m(1,5,Y(9,an,i.product))),s(3),c("routerLink",m(4,7,Y(11,an,i.product)))("innerHTML",i.product.nameHtml,We),s(2),c("cxOutlet",i.ProductListOutlets.ITEM_DETAILS),s(),c("cxOutlet",i.ProductListOutlets.ITEM_ACTIONS))},dependencies:[Qe,eo,Tn,zt,N,dr,Ls,q,$,en],encapsulation:2,changeDetection:0})}}return t})(),sa=(()=>{class t{constructor(e){this.productListItemContextSource=e,this.productListService=T(ra),this.hideAddToCartButton=!1,this.ProductListOutlets=oa,this.summaryMaxLength=100,Ye("productListItemSummaryReadMore"),Ye("a11yProductListItemNameMargin")}ngOnChanges(e){e?.product&&(this.hideAddToCartButton=this.hideAddToCartButton=this.productListService.shouldHideAddToCartButton(this.product),this.productListItemContextSource.product$.next(this.product))}static{this.\u0275fac=function(n){return new(n||t)(g(sn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-list-item"]],inputs:{product:"product",itemIndex:"itemIndex"},features:[_e([sn,{provide:pr,useExisting:sn}]),Ee],decls:17,vars:21,consts:[[1,"row"],[1,"col-12","col-md-4"],[1,"cx-product-image-container",3,"routerLink"],["class","cx-product-image","format","product",3,"container","alt","fetchPriority",4,"cxLcpContext"],[1,"col-12","col-md-8"],[1,"cx-product-name"],[3,"routerLink","innerHTML"],[3,"cxOutlet"],[1,"col-12","col-md-7","col-xl-7"],["class","cx-product-summary",3,"innerHTML",4,"cxFeature"],[4,"ngIf"],[1,"col-12","col-md-5","col-xl-5"],["format","product",1,"cx-product-image",3,"container","alt","fetchPriority"],[3,"rating",4,"ngIf"],["class","cx-product-no-review",4,"ngIf"],[1,"cx-product-price"],[3,"rating"],[1,"cx-product-no-review"],[1,"cx-product-summary",3,"innerHTML"],["class","text",3,"text","maxLength",4,"cxFeature"],[1,"text",3,"text","maxLength"],["cxInnerComponentsHost",""]],template:function(n,i){n&1&&(d(0,"div",0)(1,"div",1)(2,"a",2),p(3,"cxUrl"),p(4,"cxTranslate"),f(5,Pv,2,5,"cx-media",3),u()(),d(6,"div",4)(7,"h2",5),w(8,"a",6),p(9,"cxUrl"),u(),f(10,Vv,5,6,"ng-template",7),d(11,"div",0)(12,"div",8),f(13,Bv,1,1,"p",9)(14,jv,2,1,"ng-container",10),u(),d(15,"div",11),f(16,Hv,1,1,"ng-template",7),u()()()()),n&2&&(s(2),c("routerLink",m(3,8,Y(15,an,i.product))),M("aria-label",i.product.images!=null&&i.product.images.hasOwnProperty("PRIMARY")?void 0:de(4,10,"productDetails.noProductImage",Y(17,Is,i.product.name))),s(6),c("routerLink",m(9,13,Y(19,an,i.product)))("innerHTML",i.product.nameHtml,We),s(2),c("cxOutlet",i.ProductListOutlets.ITEM_DETAILS),s(3),c("cxFeature","!productListItemSummaryReadMore"),s(),c("ngIf",i.product.summary),s(2),c("cxOutlet",i.ProductListOutlets.ITEM_ACTIONS))},dependencies:[Qe,Ot,eo,Tn,zt,N,ea,dr,Ls,q,$,en],encapsulation:2,changeDetection:0})}}return t})(),rn=(function(t){return t.Grid="grid",t.List="list",t})(rn||{}),qb=(()=>{class t{constructor(){this.iconTypes=ue,this.modeChange=new oe}get buttonClass(){return`cx-product-${this.viewMode?.toLowerCase()}`}get viewMode(){return this.mode==="list"?this.iconTypes.GRID:this.iconTypes.LIST}changeMode(){let e=this.mode===rn.Grid?rn.List:rn.Grid;this.modeChange.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-view"]],inputs:{mode:"mode"},outputs:{modeChange:"modeChange"},decls:7,vars:13,consts:[["tabindex","0",1,"btn","cx-product-layout",3,"click","ngClass"],[3,"type",4,"ngIf"],[3,"type"]],template:function(n,i){n&1&&(d(0,"button",0),p(1,"cxTranslate"),p(2,"cxTranslate"),p(3,"cxTranslate"),p(4,"cxTranslate"),y("click",function(){return i.changeMode()}
18),f(5,Uv,1,1,"cx-icon",1)(6,Gv,1,1,"cx-icon",1),u()),n&2&&(c("ngClass",i.buttonClass),M("aria-label",i.viewMode===i.iconTypes.GRID?m(1,5,"productView.gridView"):i.viewMode===i.iconTypes.LIST?m(2,7,"productView.listView"):null)("title",i.viewMode===i.iconTypes.GRID?m(3,9,"productView.gridView"):i.viewMode===i.iconTypes.LIST?m(4,11,"productView.listView"):null),s(5),c("ngIf",i.viewMode===i.iconTypes.GRID),s(),c("ngIf",i.viewMode===i.iconTypes.LIST))},dependencies:[Rt,N,je,$],encapsulation:2,changeDetection:0})}}return t})(),xu=(()=>{class t{set scrollConfig(e){this.setConfig=e}set setConfig(e){this.setComponentConfigurations(e)}set setModel(e){this.infiniteScrollOperations(e)}set setViewMode(e){this.inputViewMode=e,this.viewMode?this.resetListOnViewModeChange():this.viewMode=e}constructor(e,n){this.productListComponentService=e,this.ref=n,this.subscription=new ve,this.ViewModes=rn,this.appendProducts=!1,this.resetList=!1,this.isMaxProducts=!1,this.isLastPage=!1,this.isEmpty=!1}scrollPage(e){this.appendProducts=!0,this.ref.markForCheck(),this.productListComponentService.getPageItems(e)}loadNextPage(e){this.isMaxProducts=!1,this.scrollPage(e)}scrollToTop(){window.scroll(0,0)}setComponentConfigurations(e){let n=e.view?.infiniteScroll?.showMoreButton,i=e.view?.infiniteScroll?.productLimit;this.productLimit=n?1:i}infiniteScrollOperations(e){this.appendProducts?this.model=ce(U({},e),{products:this.model.products?.concat(e.products??[])}):(this.model=e,this.maxProducts=this.productLimit),this.setConditions(),this.ref.markForCheck()}resetListOnViewModeChange(){this.scrollToTop(),this.resetList=!0,this.productListComponentService.getPageItems(0)}setConditions(){this.isEmpty=!this.model.products||this.model.products.length===0,this.isLastPage=this.model.pagination?.currentPage===(this.model.pagination?.totalPages??0)-1,this.model.products&&(this.isMaxProducts=this.productLimit!==void 0&&this.productLimit!==0&&this.model.products.length>=(this.maxProducts??0),this.isMaxProducts&&(this.maxProducts=this.model.products.length+(this.productLimit??0))),this.viewMode!==this.inputViewMode&&(this.viewMode=this.inputViewMode),this.resetList=!1,this.appendProducts=!1}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(ia),g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-scroll"]],inputs:{scrollC
18onfig:"scrollConfig",setModel:[0,"model","setModel"],setViewMode:[0,"inputViewMode","setViewMode"]},decls:2,vars:2,consts:[[4,"ngIf"],["infiniteScroll","",3,"scrolled","infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[1,"row"],["class","col-12 col-sm-6 col-md-4",3,"product","itemIndex",4,"ngFor","ngForOf"],[3,"className"],["class","btn btn-block btn-secondary",3,"click",4,"ngIf"],["class","btn btn-block btn-secondary align-btn",3,"click",4,"ngIf"],["class","cx-spinner",4,"ngIf"],[1,"col-12","col-sm-6","col-md-4",3,"product","itemIndex"],[1,"btn","btn-block","btn-secondary",3,"click"],[1,"btn","btn-block","btn-secondary","align-btn",3,"click"],[1,"cx-spinner"],["class","cx-product-search-list",3,"product","itemIndex",4,"ngFor","ngForOf"],[1,"cx-product-search-list",3,"product","itemIndex"]],template:function(n,i){n&1&&f(0,Qv,8,8,"ng-container",0)(1,e1,7,8,"ng-container",0),n&2&&(c("ngIf",i.viewMode===i.ViewModes.Grid),s(),c("ngIf",i.viewMode===i.ViewModes.List))},dependencies:[N,od,se,yu,Dt,sa,$],encapsulation:2})}}return t})(),qo=(()=>{class t{constructor(e,n,i,r){this.pageLayoutService=e,this.productListComponentService=n,this.globalMessageService=i,this.scrollConfig=r,this.subscription=new ve,this.model$=this.productListComponentService.model$,this.viewMode$=new ke(rn.Grid),this.ViewModes=rn}ngOnInit(){this.isInfiniteScroll=this.scrollConfig.view?.infiniteScroll?.active,this.subscription.add(this.pageLayoutService.templateName$.pipe(le(1)).subscribe(e=>{this.viewMode$.next(e==="ProductGridPageTemplate"?rn.Grid:rn.List)})),this.subscription.add(Ce([this.model$,this.viewMode$]).pipe(oo(1),G(([e,n])=>!!e&&!!n)).subscribe(()=>this.globalMessageService.add({key:"sorting.pageViewUpdated"},Fe.MSG_TYPE_ASSISTIVE,500)))}sortList(e){this.productListComponentService.sort(e)}setViewMode(e){this.viewMode$.next(e)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(Bs),g(ia),g(ut),g(vu))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-list"]],decls:2,vars:3,consts:[["infiniteScroll",""],["class","cx-page",4,"ngIf"],[1,"cx-page"],["tabindex","-1",1,"cx-page-section"],[1,"container"],[1,"row"],["class","col-12 col-lg-12",4,"ngIf"],[1,"col-12","col-lg-12"],[1,"cx-sorting","top"],[1,"form-group","cx-sort-dropdown","col-12","col-lg-4","mr-auto"],["ariaControls","product-results-list",3,"sortListEvent","sortOptions","selectedOption","ariaLabel","placeholder"],["class","col-auto",4,"ngIf"],[1,"col-auto","ml-auto","ml-lg-0"],[3,"modeChange","mode"],["id","product-results-list",1,"cx-product-container"],[4,"ngIf","ngIfElse"],[1,"cx-sorting","bottom"],[1,"col-auto"],[1,"cx-pagination"],["queryParam","currentPage","paginationID","pagination-top",3,"pagination","defaultPage"],[4,"ngIf"],["class","col-12 col-sm-6 col-md-4",3,"product","itemIndex",4,"ngFor","ngForOf"],[1,"col-12","col-sm-6","col-md-4",3,"product","itemIndex"],["class","cx-product-search-list",3,"product","itemIndex",4,"ngFor","ngForOf"],[1,"cx-product-search-list",3,"product","itemIndex"],[3,"scrollConfig","model","inputVie
18wMode"],["queryParam","currentPage","paginationID","pagination-bottom",3,"pagination","defaultPage"]],template:function(n,i){n&1&&(f(0,d1,7,6,"div",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.model$))},dependencies:[N,lr,Xs,qb,se,yu,sa,xu,q,$],encapsulation:2})}}return t})(),ii=(function(t){return t.EXPANDED="EXPANDED",t.COLLAPSED="COLLAPSED",t})(ii||{}),Kb=(()=>{class t{constructor(e,n){this.routing=e,this.productListComponentService=n,this.routeState$=this.routing.getRouterState().pipe(I(i=>i.state)),this.searchResult$=this.routeState$.pipe(ne(i=>this.productListComponentService.model$.pipe(G(r=>this.filterForPage(i,r)),I(r=>ce(U({},r),{breadcrumbs:this.filterBreadcrumbs(r?.breadcrumbs??[],i.params)}))))),this.facetList$=this.searchResult$.pipe(I(i=>({facets:i.facets,activeFacets:i.breadcrumbs})))}filterForPage(e,n){return n.currentQuery?.query?.value?e.context.type===Zt.CATEGORY_PAGE?n.currentQuery.query.value.indexOf(`allCategories:${e.context.id}`)>-1:e.context.type===Zt.CONTENT_PAGE&&e.context.id==="search"?n.freeTextSearch===e.params.query.split(":")[0]:!1:!1}filterBreadcrumbs(e,n){return e?e.filter(i=>!(i.facetCode==="allCategories"&&(i.facetValueCode===n.categoryCode||i.facetValueCode===n.brandCode))):[]}static{this.\u0275fac=function(n){return new(n||t)(b(dt),b(ia))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),aa=(()=>{class t{constructor(e){this.productFacetService=e,this.facetState=new Map,this.codec=new $a,this.facetList$=this.productFacetService.facetList$.pipe(Z(n=>{n.facets?.forEach(i=>this.initialize(i))}))}getState(e){return this.initialize(e),e.name?this.facetState.get(e.name)??Q({}):Q({})}getStateSnapshot(e){return this.getState(e).value}toggle(e,n){let i=this.getStateSnapshot(e),r={toggled:n?ii.COLLAPSED:ii.EXPANDED};r.toggled===ii.COLLAPSED&&(r.maxVisible=i.topVisible),this.updateState(e,r)}increaseVisibleValues(e){this.updateState(e,{maxVisible:e.values?.length})}decreaseVisibleValues(e){this.updateState(e,{maxVisible:e.topValueCount})}initialize(e){let n=e.topValueCount&&e.topValueCount>0?e.topValueCount:e.values?.length||0;e.name&&!this.hasState(e)&&this.facetState.set(e.name,new ke({topVisible:n,maxVisible:n}))}updateState(e,n){let i=U(U({},this.getStateSnapshot(e)),n);e.name&&this.facetState.get(e.name)?.next(i)}hasState(e){return e.name?this.facetState.has(e.name):!1}getLinkParams(e){return{query:this.codec.decodeValue(this.decodeUriComponentSafe(e)).replace(/\+/g," ")}}decodeUriComponentSafe(e){return e.replace(/%(?![0-9a-fA-F]{2})/g,"%25")}static{this.\u0275fac=function(n){return new(n||t)(b(Kb))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Qb=(()=>{class t{constructor(e){this.facetService=e,this.role="group",this.labelledby="cx-active-facets-groupName",this.facetList$=this.facetService.facetList$,this.closeIcon=ue.CLOSE}getLinkParams(e){return this.facetService.getLinkParams(e.removeQuery?.query?.value??"")}getFocusKey(e,n){return e.facets?.find(i=>i.values?.find(r=>r.name===n.facetValueName))?"":n.facetValueName}removeFilterWithSpacebar(e){e?.preventDefault(),e?.target?.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}static{this.\u0275fac=function(n){return new(n||t)(g(aa))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-active-facets"]],hostVars:2,hostBindings:function(n,i){n&2&&M("role",i.role)("aria-labelledby",i.labelledby)},inputs:{closeIcon:"closeIcon"},decls:2,vars:3,consts:[[4,"ngIf"],["id","cx-active-facets-groupName",4,"ngIf"],["routerLink","./","role","button",3,"queryParams","cxFocus","keydown.space",4,"ngFor","ngForOf"],["id","cx-active-facets-groupName"],["routerLink","./","role","button",3,"keydown.space","queryParams","cxFocus"],["aria-hidden","true",3,"type"]],template:function(n,i){n&1&&(f(0,m1,3,2,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.facetList$))},dependencies:[N,se,Qe,$e,je,q,$],encapsulation:2})}}return t})(),Yb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,ae,W,Ve,qe]})}}return t})(),Xb=(()=>{class t{set facet(e){this._facet=e,this.isMultiSelect=!!e.multiSelect,this.state$=this.facetService.getState(e)}get facet(){return this._facet}constructor(e,n,i){this.facetService=e,this.elementRef=n,this.cd=i,this.expandIcon=ue.EXPAND,this.collapseIcon=ue.COLLAPSE}ngAfterViewInit(){this.cd.detectChanges()}toggleGroup(e){let n=this.elementRef.nativeElement,i=this.keyboardFocus?.isLocked;this.facetService.toggle(this.facet,this.isExpanded),(!i||this.isExpanded)&&(n.focus(),e.stopPropagation())}get isExpanded(){return this.values?.first?.nativeElement.offsetParent!==null}openLink(e){e.target.click(),e.preventDefault()}increaseVisibleValues(){this.facetService.increaseVisibleValues(this.facet)}decreaseVisibleValues(){this.facetService.decreaseVisibleValues(this.facet)}getLinkParams(e){return this.facetService.getLinkParams(e.query?.query?.value??"")}onKeydown(e){let n=this.values.toArray().findIndex(i=>i.nativeElement===e.target);switch(e.key){case"ArrowDown":this.onArrowDown(e,n);break;case"ArrowUp":this.onArrowUp(e,n);break;case"Tab":this.onTabNavigation();break}}onTabNavigation(){Gs(this.values.map(e=>e.nativeElement))}
18onArrowDown(e,n){e.preventDefault(),this.values.get(n+1)?.nativeElement.focus()}onArrowUp(e,n){e.preventDefault(),this.values.get(n-1)?.nativeElement.focus()}static{this.\u0275fac=function(n){return new(n||t)(g(aa),g(z),g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-facet"]],viewQuery:function(n,i){if(n&1&&He($e,5)(h1,5)(f1,5),n&2){let r;be(r=Se())&&(i.keyboardFocus=r.first),be(r=Se())&&(i.facetHeader=r.first),be(r=Se())&&(i.values=r)}},hostVars:2,hostBindings:function(n,i){n&2&&te("multi-select",i.isMultiSelect)},inputs:{expandIcon:"expandIcon",collapseIcon:"collapseIcon",facet:"facet"},decls:2,vars:3,consts:[["facetValue",""],[4,"ngIf"],["role","listbox",3,"id"],["routerLink","./","class","value","role","option",3,"queryParams","selected","cxFocus","keydown","keydown.space",4,"ngFor","ngForOf"],["role","presentation",1,"more"],[4,"cxFeature"],["routerLink","./","role","option",1,"value",3,"keydown","keydown.space","queryParams","cxFocus"],["aria-hidden","true"],["aria-hidden","true",1,"count"],[1,"count"],["aria-expanded","true","class","cx-action-link",3,"cxAtMessage","cxFocus","click",4,"ngIf"],["aria-expanded","false","class","cx-action-link",3,"cxAtMessage","cxFocus","click",4,"ngIf"],["aria-expanded","true",1,"cx-action-link",3,"click","cxAtMessage","cxFocus"],["aria-expanded","false",1,"cx-action-link",3,"click","cxAtMessage","cxFocus"]],template:function(n,i){n&1&&(f(0,w1,9,14,"ng-container",1),p(1,"async")),n&2&&c("ngIf",m(1,1,i.state$))},dependencies:[N,se,Qe,$e,rr,Ot,q,co,$],encapsulation:2,changeDetection:0})}}return t})(),Zb=(()=>{class t{set isDialog(e){this._isDialog=e,e&&this.renderer.addClass(document.body,"modal-open")}get isDialog(){return this._isDialog}handleClick(){this.close()}constructor(e,n,i){this.facetService=e,this.elementRef=n,this.renderer=i,this.subscriptions=new ve,this.closeList=new oe,this.facetList$=this.facetService.facetList$,this.iconTypes=ue,this.dialogFocusConfig={trap:!0,block:!0,focusOnEscape:!0,autofocus:"cx-facet > button"},this.tabConfig={label:"productFacetNavigation.productFacets",mode:nt.ACCORDIAN,openTabs:[0],restrictDirectionKeys:!0},this.tabs$=new ke([]),this.focusService=T(ir,{optional:!0}),Ye("a11yFacetFilterByLabel")}ngOnInit(){this.enableFocusHandlingOnFacetListChanges(),this.updateTabs()}ngAfterViewInit(){this.updateTabs(),this.subscriptions.add(this.facetsRef.changes.pipe(G(e=>!!e)).subscribe(()=>{this.updateTabs()}))}updateTabs(){this.facetList$.pipe(le(1)).subscribe(e=>{let i=e.facets.map((r,a)=>({header:r.name,content:this.facetsRef?.get(a),disableBorderFocus:!0,id:a}));this.tabs$.next(i)})}expandFacetGroup(e,n){n.isExpanded||this.facetService.toggle(e,n.isExpanded)}isExpanded(e){return this.facetService.getState(e).pipe(I(n=>n.toggled===ii.EXPANDED))}isCollapsed(e){return this.facetService.getState(e).pipe(I(n=>n.toggled===ii.COLLAPSED))}close(e){this.renderer.removeClass(document.body,"modal-open"),this.closeList.emit(e)}block(e){e?.stopPropagation()}enableFocusHandlingOnFacetListChanges(){this.subscriptions.add(this.facetService.facetList$.subscribe(e=>this.handleDialogFocus(e.facets)))}handleDialogFocus(e){if(!this.isDialog)return;let n=this.focusService?.get();if(!n||e.find(a=>a.values?.some(h=>h.name===n)))return;if(!e?.length){this.backToResultsBtn?.nativeElement.focus(),this.focusService?.clear();return}let r=e[0];this.focusService?.set(r.name)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(aa),g(z),g(De))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-facet-list"]],viewQuery:function(n,i){if(n&1&&He(T1,5)(I1,5),n&2){let r;be(r=Se())&&(i.backToResultsBtn=r.first),be(r=Se())&&(i.facetsRef=r)}},hostBindings:function(n,i){n&1&&y("click",function(){return i.handleClick()})},inputs:{isDialog:"isDialog"},outputs:{closeList:"closeList"},decls:2,vars:3,consts:[["facetsRef",""],["backToResultsBtn",""],["class","inner",3,"cxFocus","tabindex","esc","click",4,"ngIf"],[1,"inner",3,"esc","click","cxFocus","tabindex"],[1,"list-header"],["type","button",1,"close",3,"click","title"],["aria-hidden","true",3,"type"],[3,"tabs$","config"],[4,"ngFor","ngForOf"],["class","cx-facet-list-footer",4,"ngIf"],["role","group",3,"facet"],[1,"cx-facet-list-footer"],["cxAutoFocus","",1,"btn","btn-primary",3,"click"]],template:function(n,i){if
18(n&1&&(f(0,F1,13,21,"section",2),p(1,"async")),n&2){let r;c("ngIf",(r=m(1,1,i.facetList$))==null?null:r.facets)}},dependencies:[N,$e,je,uu,se,Xb,q,$],encapsulation:2,changeDetection:0})}}return t})(),Jb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[Xi,L,W,Ve,qe,ae,wt,he]})}}return t})(),eS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,W,Ve,Jb,qe,he,pu]})}}return t})(),tS=(()=>{class t{constructor(e){this.breakpointService=e,this.iconTypes=ue,this.CLOSE_DELAY=300,this.open$=new ke(!1),this.isOpen$=this.breakpointService.breakpoint$.pipe(mr(ui),ne(()=>this.hasTrigger?this.open$:Q(!0)),vr(n=>fa(n?0:this.CLOSE_DELAY))),this.isActive$=this.open$.pipe(mr(ui))}launch(){this.open$.next(!0)}close(){this.open$.next(!1),this.trigger.nativeElement.focus()}get hasTrigger(){return this.trigger.nativeElement.offsetParent!==null}static{this.\u0275fac=function(n){return new(n||t)(g(Sn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-facet-navigation"]],viewQuery:function(n,i){if(n&1&&He(k1,5),n&2){let r;be(r=Se())&&(i.trigger=r.first)}},decls:8,vars:7,consts:[["trigger",""],[1,"btn","btn-secondary","btn-block","dialog-trigger",3,"click"],[3,"type"],[3,"isDialog","active","dialog","closeList",4,"ngIf"],[3,"closeList","isDialog"]],template:function(n,i){n&1&&(d(0,"button",1,0),y("click",function(){return i.launch()}),w(2,"cx-icon",2),_(3),p(4,"cxTranslate"),u(),w(5,"cx-active-facets"),f(6,A1,2,7,"cx-facet-list",3),p(7,"async")),n&2&&(s(2),c("type",i.iconTypes.FILTER),s(),x(" ",m(4,3,"productList.filterBy.label"),` 19`),s(3),c("ngIf",m(7,5,i.isOpen$)))},dependencies:[je,Qb,N,Zb,q,$],encapsulation:2,changeDetection:0})}}return t})(),aI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[L,eS,Yb,Ve,W,Nr.withConfig({cmsComponents:{ProductRefinementComponent:{component:tS}}})]})}}return t})(),nS={view:{defaultPageSize:12,infiniteScroll:{active:!1,productLimit:0,showMoreButton:!1}}},cI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[ra,X(nS),X({cmsComponents:{CMSProductListComponent:{component:qo,data:{composition:{inner:["ProductAddToCartComponent"]}}},ProductGridComponent:{component:qo,data:{composition:{inner:["ProductAddToCartComponent"]}}},SearchResultsListComponent:{component:qo,data:{composition:{inner:["ProductAddToCartComponent"]}}}}})],imports:[Xi,L,W,Ve,rd,Xx,Zs,Et,yt,bn,ae,dn,Js,wt,he,ur,qo,sa,xu]})}}return t})(),iS=(()=>{class t{constructor(e){this.productListItemContextSource=e}ngOnChanges(e){e?.item&&this.productListItemContextSource.product$.next(this.item)}static{this.\u0275fac=function(n){return new(n||t)(g(sn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-carousel-item"]],inputs:{item:"item",itemIndex:"itemIndex"},features:[_e([sn,{provide:pr,useExisting:sn}]),Ee],decls:9,vars:7,consts:[["tabindex","0",3,"routerLink"],[4,"cxLcpContext"],[1,"cx-product-name"],[1,"price"],[1,"actions"],["cxInnerComponentsHost",""],["format","product",3,"container","alt","fetchPriority"]],template:function(n,i){n&1&&(d(0,"a",0),p(1,"cxUrl"),f(2,R1,3,5,"ng-container",1),d(3,"h3",2),_(4),u(),d(5,"div",3),_(6),u()(),d(7,"div",4),xe(8,5),u()),n&2&&(c("routerLink",m(1,3,Y(5,an,i.item))),s(4),x(" ",i.item.name," "),s(2),x(" ",i.item.price==null?null:i.item.price.formattedValue," "))},dependencies:[Qe,eo,Tn,Ls,q,en],encapsulation:2,changeDetection:0})}}return t})(),oS=(()=>{class t{constructor(e,n){this.componentData=e,this.productService=n,this.productSearchByCodeService=T(Bc),this.productSearchByCategoryService=T(Nc),this.PRODUCT_SCOPE=[Vt.LIST,Vt.STOCK],this.PRODUCT_SCOPE_ITEM=[Vt.LIST_ITEM],this.componentData$=this.componentData.data$.pipe(G(i=>!!i)),this.title$=this.componentData$.pipe(I(i=>i.title)),this.items$=this.componentData$.pipe(ne(i=>this.handleCategoryCodes(i)),I(i=>
19{let r=!!i.composition?.inner?.length,a=i.productCodes?.trim().split(" ")??[];return{componentMappingExist:r,codes:a}}),I(({componentMappingExist:i,codes:r})=>{let a=i?"carousel":"carouselMinimal";return r.map(h=>this.productSearchByCodeService.get({code:h,scope:a}))})),this.trackByFn=(i,r)=>r?.code}handleCategoryCodes(e){let n=e?.categoryCodes?.split(" ");return n?_a(n.map(i=>this.productSearchByCategoryService.get({categoryCode:i,scope:Vt.CODE}))).pipe(I(i=>{let r=i.flat().map(a=>a?.code).join(" ");return ce(U({},e),{productCodes:e.productCodes+" "+r})})):Q(e)}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(ki))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-carousel"]],decls:4,vars:3,consts:[["carouselItem",""],["role","region",3,"items","title","template","trackByFn",4,"ngIf"],["role","region",3,"items","title","template","trackByFn"],[3,"item","itemIndex"]],template:function(n,i){n&1&&(f(0,P1,4,14,"cx-carousel-scrolling",1),p(1,"async"),f(2,O1,1,2,"ng-template",null,0,ie)),n&2&&c("ngIf",m(1,1,i.items$))},dependencies:[N,Ks,iS,q,$],encapsulation:2,changeDetection:0})}}return t})(),lI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductCarouselComponent:{component:oS}}})],imports:[L,Zi,Qs,Et,ae,wt,W,bn,he,ur]})}}return t})(),rS=(()=>{class t{constructor(e,n,i){this.cmsComponentData=e,this.currentProductService=n,this.productReferenceService=i,this.items$=this.productCode$.pipe(gi(this.componentData$),Z(([r,a])=>this.productReferenceService.loadProductReferences(r,a.productReferenceTypes)),ne(([r,a])=>this.getProductReferences(r,a.productReferenceTypes??""))),this.trackByFn=(r,a)=>a?.code}get componentData$(){return this.cmsComponentData.data$.pipe(G(e=>!!e))}get productCode$(){return this.currentProductService.getProduct().pipe(G(gn),I(e=>e.code??""),Z(e=>this.productReferenceService.cleanReferences()))}get title$(){return this.componentData$.pipe(I(e=>e?.title))}getProductReferences(e,n){return this.productReferenceService.getProductReferences(e,n).pipe(G(i=>!!i),I(i=>i.map(r=>Q(r.target))))}static{this.\u0275fac=function(n){return new(n||t)(g(Re),g(wn),g(Lc))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-references"]],decls:4,vars:3,consts:[["carouselItem",""],[4,"ngIf"],[3,"title","items","template","trackByFn",4,"ngIf"],[3,"title","items","template","trackByFn"],["tabindex","0",3,"routerLink"],["format","product",3,"container"],[1,"price"]],template:function(n,i){n&1&&(f(0,V1,2,1,"ng-container",1),p(1,"async"),f(2,B1,7,8,"ng-template",null,0,ie)),n&2&&c("ngIf",m(1,1,i.items$))},dependencies:[N,Ks,Qe,Tn,q,en],encapsulation:2,changeDetection:0})}}return t})(),dI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductReferencesComponent:{component:rS}}})],imports:[L,Zi,Qs,Et,ae,wt,he]})}}return t})(),sS=(()=>{class t{constructor(e){this.currentProductService=e,this.mainMediaContainer=new ke(null),this.product$=this.currentProductService.getProduct().pipe(G(gn),pe(),Z(n=>{this.mainMediaContainer.next(n.images?.PRIMARY?n.images.PRIMARY:{})})),this.thumbs$=this.product$.pipe(I(n=>this.createThumbs(n))),this.mainImage$=Ce([this.product$,this.mainMediaContainer]).pipe(I(([,n])=>n)),this.trackByFn=(n,i)=>i?.code}openImage(e){this.mainMediaContainer.next(e)}isActive(e){return this.mainMediaContainer.pipe(G(Boolean),I(n=>n.zoom&&n.zoom.url&&e.zoom&&e.zoom.url&&n.zoom.url===e.zoom.url))}getActive(e){return this.mainMediaContainer.pipe(G(Boolean),I(n=>{let i=e.find(r=>r.media&&n.zoom&&r.media.container&&r.media.container.zoom&&r.media.container.zoom.url===n.zoom.url);return e.indexOf(i)}))}createThumbs(e){return!e.images||!e.images.GALLERY||Array.isArray(e.images.GALLERY)&&e.images.GALLERY.length<2?[]:e.images.GALLERY.map(n=>Q({container:n}))}static{this.\u0275fac=function(n){return new(n||t)(g(wn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-images"]],decls:6,vars:6,consts:[["thumb",""],[4,"ngIf"],[3,"container","fetchPriority",4,"cxLcpContext"],[3,"container","fetchPriority"],["class","thumbs",3,"items","template","trackByFn",4,"ngIf"],[1,"thumbs",3,"items","template","trackByFn"],["tabindex","0","format","product",3,"focus","container"]],template:function(n,i){n&1&&(f(0,j1,2,0,"ng-container",1),p(1,"async"),f(2,H1,2,1,"ng-container",1),p(3,"async"),f(4,U1,2,5,"ng-template",null,0,ie)),n&2&&(c("ngIf",m(1,2,i.mainImage$)),s(2),c("ngIf",m(3,4,i.thumbs$)))},dependencies:[N,eo,Tn,Ks,q],encapsulation:2,changeDetection:0})}}return t})(),uI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductImagesComponent:{component:sS}}})],imports:[L,ae,Et,yt,Zi,Qs,ur]})}}return t})(),aS=(()=>{class t{constructor(e,n,i,r){this.currentProductService=e,this.translationService=n,this.winRef=i,this.eventService=r,this.product$=this.currentProductService.getProduct(),this.areReviewsAvailable$=hr(mi(()=>Q(!!this.getReviewsComponent())),this.eventService.get(Ds).pipe(G(a=>a.id===this.reviewsComponentId),I(()=>!0)),this.eventService.get(Nd).pipe(G(a=>a.id===this.reviewsComponentId),I(()=>!1))),this.reviewsComponentId="ProductReviewsTabComponent",this.reviewsTranslationKey=`TabPanelContainer.tabs.${this.reviewsComponentId}`}showReviews(){this.translationService.translate(this.reviewsTranslationKey).subscribe(e=>{let n=this.getTabsComponent(),i=n&&this.getTabByLabel(e,n);i&&(this.clickTabIfInactive(i),setTimeout(()=>{requestAnimationFrame(()=>{i.scrollIntoView({behavior:"smooth",block:"start"}),i.focus({preventScroll:!0})})}))}).unsubscribe()}getReviewsComponent(){return this.winRef.document.querySelector("cx-product-reviews")}getTabsComponent(){return this.winRef.document.querySelector("cx-tab-paragraph-container")}clickTabIfInactive(e){(!e.classList.contains("active")||e.classList.contains("toggled"))&&e.click()}getTabByLabel(e,n){let i=n.getElementsByTagName("button");return Array.from(i).find(r=>r.innerHTML.includes(e))}static{this.\u0275fac=function(n){return new(n||t)(g(wn),g(pt),g(Te),g(_n))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-intro"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","rating",4,"ngIf"],[1,"code"],[1,"rating"],[3,"rating"],[1,"count"],[4,"cxFeature"],["class","btn btn-tertiary",3,"click",4,"ngIf"],[1,"btn","btn-tertiary",3,"click"],["class","btn btn-link cx-action-link",3,"click",4,"ngIf"],[1,"btn","btn-link","cx-action-link",3,"click"]],template:function(n,i){n&1&&(f(0,Y1,6,6,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.product$))},dependencies:[N,dr,Ot,q,Na,$],encapsulation:2,changeDetection:0})}}return t})(),pI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductIntroComponent:{component:aS}}})],imports:[L,W,Js,he]})}}return t})(),cS=(()=>{class t{getProduct(){let e=[Vt.DETAILS,Vt.PRICE,Vt.PROMOTIONS];return this.currentProductService.getProduct(e)}constructor(e){this.currentProductService=e,this.outlets=Cu,this.product$=this.getProduct()}static{this.\u0275fac=function(n){return new(n||t)(g(wn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"cxOutlet","cxOutletContext"],[3,"promotions"],[1,"price"],[1,"summary",3,"innerHTML"]],template:function(n,i){n&1&&(f(0,eC,4,9,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.product$))},dependencies:[N,ab,zt,q,$],encapsulation:2,changeDetection:0})}}return t})(),mI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductSummaryComponent:{component:cS}}})],imports:[L,yt,W,cb,he]})}}return t})(),lS=(()=>{class t{constructor(e){this.currentProductService=e,this.product$=this.currentProductService.getProduct(Vt.ATTRIBUTES)}static{this.\u0275fac=function(n){return new(n||t)(g(wn))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-attributes"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"container"],[4,"ngFor","ngForOf"]],template:function(n,i){n&1&&(f(0,rC,6,4,"ng-container",0),p(1,"async")),n&2&&c("ngIf",m(1,1,i.product$))},dependencies:[N,se,q,$],encapsulation:2,changeDetection:0})}}return t})(),dS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductSpecsTabComponent:{component:lS}}})],imports:[L,W]})}}return t})(),uS=(()=>{class t{constructor(e,n,i){this.currentProductService=e,this.componentData=n,this.cmsService=i,this.children$=this.componentData.data$.pipe(ne(r=>Ce((r?.children??"").split(" ").map(a=>this.cmsService.getComponentData(a).pipe(pe(),I(h=>{if(h)return h.flexType||(h=ce(U({},h),{flexType:h.typeCode})),h}))))))}ngOnInit(){this.product$=this.currentProductService.getProduct()}static{this.\u0275fac=function(n){return new(n||t)(g(wn),g(Re),g(_t))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-details-tab"]],decls:4,vars:6,consts:[[4,"ngIf"],[1,"container",3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"cxOutlet","cxOutletContext"],[1,"container"],[3,"cxComponentWrapper"]],template:function(n,i){n&1&&(f(0,sC,2,1,"ng-container",0),p(1,"async"),f(2,dC,2,1,"ng-container",0),p(3,"async")),n&2&&(c("ngIf",m(1,2,i.product$)),s(2),c("ngIf",m(3,4,i.children$)))},dependencies:[N,se,zt,ri,q],encapsulation:2,changeDetection:0})}}return t})(),pS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductDetailsTabComponent:{component:uS}}})],imports:[L,bn,yt]})}}return t})(),wd=(()=>{class t{constructor(e,n,i,r){this.reviewService=e,this.currentProductService=n,this.fb=i,this.cd=r,this.maxLengthReviewTitle=255,this.maxLengthReviewComment=2200,this.maxLengthReviewerName=64,this.isWritingReview=!1,this.initialMaxListItems=5,this.product$=this.currentProductService.getProduct(),this.reviews$=this.product$.pipe(G(gn),I(a=>a.code??""),pe(),ne(a=>this.reviewService.getByProductCode(a)),Z(()=>{this.resetReviewForm(),this.maxListItems=this.initialMaxListItems}))}initiateWriteReview(){this.isWritingReview=!0,this.cd.detectChanges(),this.titleInput&&this.titleInput.nativeElement&&this.titleInput.nativeElement.focus()}cancelWriteReview(){this.isWritingReview=!1,this.resetReviewForm(),this.cd.detectChanges(),this.writeReviewButton&&this.writeReviewButton.nativeElement&&this.writeReviewButton.nativeElement.focus()}setRating(e){this.reviewForm.controls.rating.setValue(e)}submitReview(e){this.reviewForm.valid?this.addReview(e):this.reviewForm.markAllAsTouched()}
19addReview(e){let n=this.reviewForm.controls,i={headline:n.title.value,comment:n.comment.value,rating:n.rating.value,alias:n.reviewerName.value};this.reviewService.add(e.code??"",i),this.isWritingReview=!1,this.resetReviewForm(),this.cd.detectChanges(),this.writeReviewButton&&this.writeReviewButton.nativeElement&&this.writeReviewButton.nativeElement.focus()}focusNextReview(e,n){e.preventDefault();let i=this.reviewItems.toArray(),r=n+1<i.length?n+1:n;i[r]?.nativeElement.focus()}focusPreviousReview(e,n){e.preventDefault();let i=n-1>=0?n-1:0;this.reviewItems.toArray()[i]?.nativeElement.focus()}resetReviewForm(){this.reviewForm=this.fb.group({title:["",[Ht.required,Ht.maxLength(this.maxLengthReviewTitle)]],comment:["",[Ht.required,Ht.maxLength(this.maxLengthReviewComment)]],rating:[null,Ht.required],reviewerName:["",Ht.maxLength(this.maxLengthReviewerName)]})}static{this.\u0275fac=function(n){return new(n||t)(g(Vc),g(wn),g(El),g(Oe))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-product-reviews"]],viewQuery:function(n,i){if(n&1&&He(uC,5)(pC,5)(mC,5),n&2){let r;be(r=Se())&&(i.titleInput=r.first),be(r=Se())&&(i.writeReviewButton=r.first),be(r=Se())&&(i.reviewItems=r)}},inputs:{maxLengthReviewTitle:"maxLengthReviewTitle",maxLengthReviewComment:"maxLengthReviewComment",maxLengthReviewerName:"maxLengthReviewerName"},decls:2,vars:3,consts:[["writeReview",""],["writeReviewButton",""],["reviewItem",""],["titleInput",""],["class","container",4,"ngIf"],[1,"container"],[4,"ngIf","ngIfElse"],[1,"header"],[1,"btn","btn-primary",3,"click"],["class","rating",3,"rating",4,"ngIf"],["class","rating",4,"ngIf"],[1,"rating",3,"rating"],[1,"rating"],[4,"ngIf"],["class","review-list",4,"cxFeature"],[4,"cxFeature"],[1,"review-list"],["class","review","tabindex","0",3,"keydown.arrowdown","keydown.arrowup",4,"ngFor","ngForOf"],["tabindex","0",1,"review",3,"keydown.arrowdown","keydown.arrowup"],[1,"title"],[3,"rating"],[1,"name"],[1,"date"],[1,"text",3,"text"],["class","review","tabindex","0",4,"ngFor","ngForOf"],["tabindex","0",1,"review"],["aria-live","polite",1,"btn","btn-primary",3,"click"],[3,"ngSubmit","formGroup"],[1,"form-group"],[1,"label-content"],["required","true","type","text","formControlName","title",1,"form-control",3,"maxLength"],["id","titleError",3,"translationParams","control"],["required","true","rows","3","formControlName","comment",1,"form-control",3,"placeholder","maxLength"],["id","commentError",3,"translationParams","control"],["id","starRatingLabel",1,"cx-visually-hidden"],["required","true","type","number","formControlName","rating",1,"rating-input"],["tabindex","0","aria-labelledby","starRatingLabel",3,"change","disabled"],["id","ratingError",3,"translationParams","control"],["type","text","formControlName","reviewerName",1,"form-control",3,"maxLength"],[1,"cx-customer-ticket-input-hint","text-right"],[1,"form-group","row","justify-content-md-end"],[1,"col-12","col-md-4"],["type","button",1,"btn","btn-block","btn-secondary",3,"click"],["type","submit",1,"btn","btn-block","btn-primary"]],template:function(n,i){n&1&&(f(0,TC,7,6,"div",4),p(1,"async")),n&2&&c("ngIf",m(1,1,i.product$))},dependencies:[N,dr,se,Ot,ea,cr,Bt,rs,Mn,Vo,Jn,Zr,Hi,mt,jo,No,ar,Ys,q,co,$,Kn],encapsulation:2,changeDetection:0})}}return t})(),mS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({cmsComponents:{ProductReviewsTabComponent:{component:wd}}})],imports:[L,mt,Bt,W,Js,Ji,he,ar,cr,ea,wd]})}}return t})(),hI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[dS,pS,mS]})}}return t})(),hS=(()=>{class t{handleClick(e){e.target.tagName===this.el.nativeElement.tagName&&this.close("Cross click")}constructor(e,n,i){this.interestsService=e,this.launchDialogService=n,this.el=i,this.subscription=new ve,this.enabledPrefs=[],this.focusConfig={trap:!0,block:!0,autofocus:"button",focusOnEscape:!0}}close(e){this.launchDialogService.closeDialog(e)}ngOnInit(){this.subscription.add(this.launchDialogService.data$.subscribe(e=>{e&&this.init(e.subscribeSuccess$,e.enabledPrefs)}))}init(e,n){this.subscribeSuccess$=e,this.enabledPrefs=n}ngOnDestroy(){this.subscribeSuccess$&&this.subscribeSuccess$.subscribe(e=>{e&&this.interestsService.resetAddInterestState()}).unsubscribe(),this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(g(bo),g(ln),g(z))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-stock-notification-dialog"]],hostBindings:function(n,i){n&1&&y("click",function(a){return i.handleClick(a)})},decls:14,vars:11,consts:[["loading",""],["role","dialog","aria-labelledby","dialogTitle",1,"modal-dialog","modal
19-dialog-centered","modal-lg",3,"esc","cxFocus"],[1,"modal-content"],[1,"cx-dialog-header","cx-modal-header"],["id","dialogTitle",1,"cx-dialog-title","modal-title"],["type","button","tabindex","-1",1,"close",3,"click"],["aria-hidden","true"],[4,"ngIf","ngIfElse"],[1,"cx-dialog-body","modal-body"],[1,"cx-stock-notification-content"],[1,"cx-stock-notification-text"],["class","channels",4,"ngFor","ngForOf"],[1,"link-prefs","cx-stock-notification-link",3,"click","routerLink"],[1,"link-interests","cx-stock-notification-link",3,"click","routerLink"],[1,"cx-modal-footer"],[1,"row"],[1,"cx-dialog-actions","col-sm-12","col-md-4","offset-md-8","col-lg-3","offset-lg-9"],["type","button",1,"btn","btn-primary","btn-block","btn-ok",3,"click"],[1,"channels"],[4,"ngIf"],[1,"cx-dialog-row"],[1,"col-sm-12"]],template:function(n,i){if(n&1&&(d(0,"div",1),y("esc",function(){return i.close("Escape clicked")}),d(1,"div",2)(2,"div",3)(3,"h3",4),_(4),p(5,"cxTranslate"),u(),d(6,"button",5),p(7,"cxTranslate"),y("click",function(){return i.close("Button clicked")}),d(8,"span",6),_(9,"\xD7"),u()()(),f(10,MC,34,36,"ng-container",7),p(11,"async"),u(),f(12,FC,7,3,"ng-template",null,0,ie),u()),n&2){let r=H(13);c("cxFocus",i.focusConfig),s(4),x(" ",m(5,5,"stockNotification.subscriptionDialog.header")," "),s(2),M("aria-label",m(7,7,"common.close")),s(4),c("ngIf",m(11,9,i.subscribeSuccess$))("ngIfElse",r)}},dependencies:[$e,N,se,Qe,Dt,q,$,en],encapsulation:2,changeDetection:0})}}return t})(),fS=(()=>{class t{constructor(e,n,i,r,a,h,S,k){this.currentProductService=e,this.globalMessageService=n,this.translationService=i,this.interestsService=r,this.notificationPrefService=a,this.userIdService=h,this.launchDialogService=S,this.vcr=k,this.anonymous=!0,this.enabledPrefs=[],this.subscriptions=new ve}ngOnInit(){this.outOfStock$=Ce([this.currentProductService.getProduct().pipe(G(gn)),this.userIdService.getUserId()]).pipe(Z(([e,n])=>{this.productCode=e.code??"",n!==nc&&(this.anonymous=!1,this.notificationPrefService.loadPreferences(),this.interestsService.loadProductInterests(void 0,void 0,void 0,e.code,mo.BACK_IN_STOCK))}),I(([e])=>!!e.stock&&e.stock.stockLevelStatus==="outOfStock")),this.hasProductInterests$=this.interestsService.getProductInterests().pipe(I(e=>!!e.results&&e.results.length===1)),this.subscribeSuccess$=this.interestsService.getAddProductInterestSuccess(),this.isRemoveInterestLoading$=this.interestsService.getRemoveProdutInterestLoading(),this.prefsEnabled$=this.notificationPrefService.getEnabledPreferences().pipe(Z(e=>this.enabledPrefs=e),I(e=>e.length>0)),this.subscriptions.add(this.interestsService.getAddProductInterestError().subscribe(e=>{e&&this.onInterestAddingError()})),this.subscriptions.add(this.interestsService.getRemoveProdutInterestSuccess().subscribe(e=>{e&&this.onInterestRemovingSuccess()}))}subscribe(){this.openDialog(),this.interestsService.addProductInterest(this.productCode,mo.BACK_IN_STOCK)}unsubscribe(){this.interestsService.removeProdutInterest({product:{code:this.productCode},productInterestEntry:[{interestType:mo.BACK_IN_STOCK}]},!0)}onInterestRemovingSuccess(){this.subscriptions.add(this.translationService.translate("stockNotification.unsubscribeSuccess").pipe(hn()).subscribe(e=>this.globalMessageService.add(e,Fe.MSG_TYPE_INFO))),this.interestsService.resetRemoveInterestState()}onInterestAddingError(){this.launchDialogService.closeDialog("Interests error"),this.interestsService.resetAddInterestState()}openDialog(){let e={subscribeSuccess$:this.subscribeSuccess$,enabledPrefs:this.enabledPrefs},n=this.launchDialogService.openDialog(li.STOCK_NOTIFICATION,this.element,this.vcr,e);n&&n.pipe(le(1)).subscribe()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.interestsService.clearProductInterests(),this.notificationPrefService.clearPreferences()}static{this.\u0275fac=function(n){return new(n||t)(g(wn),g(ut),g(pt),g(bo),g(Wr),g(vc),g(ln),g(xt))}}static{this.\u0275cmp=O({type:t,selectors:[["cx-stock-notification"]],viewQuery:function(n,i){if(n&1&&He(Ad,5),n&2){let r;be(r=Se())&&(i.element=r.first)}},decls:8,vars:3,consts:[["disableNotify",""],["stopNotify",""],["loading",""],["element",""],["loggedIn",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"stock-notification-notes"],["type","button",1,"btn","btn-primary","btn-block","btn-notify",3,"click"],["id","outOfStockMessage",1,"stock-notification-notes"],["type","button","aria-describedby","outOfStockMessage",1,"btn","btn-primary","btn-block","btn-notify",3,"click"],[3,"routerLink"],["type","button",1,"btn","btn-primary","btn-block","btn-stop-notify",3,"click"],[1,"cx-dialog-body","modal-body"],[1,"cx-dialog-row"],[1,"col-sm-12"]],template:function(n,i){n&1&&(f(0,PC,3,4,"ng-container",5),p(1,"async"),f(2,VC,8,6,"ng-template",null,0,ie)(4,NC,2,4,"ng-template",null,1,ie)(6,jC,4,0,"ng-template",null,2,ie)),n&2&&c("ngIf",m(1,1,i.outOfStock$))},dependencies:[N,Qe,Dt,q,$,en],encapsulation:2,changeDetection:0})}}return t})(),gS={launch:{STOCK_NOTIFICATION:{inlineRoot:!0,component:hS,dialogType:Tt.DIALOG}}},fI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(gS),X({cmsComponents:{StockNotificationComponent:{component:fS}}}),he],imports:[L,ae,W,dn,wt,qe,he]})}}return t})(),_S=(()=>{class t{constructor(e,n,i){this.authService=e,this.authConfigService=n,this.cmsPageGuard=i}canActivate(e,n){return this.shouldRenderCMSPage().pipe(le(1),ne(i=>i?this.cmsPageGuard.canActivate(e,n):this.authService.loginWithRedirect()?In:Q(!1)))}shouldRenderCMSPage(){return this.authService.isUserLoggedIn().pipe(le(1),I(e=>this.authConfigService.getOAuthFlow()===Cc.ResourceOwnerPasswordFlow||e))}static{this.\u0275fac=function(n){return new(n||t)(b(_o),b(yc),b(Wt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[nr,ae.forChild([{path:null,canActivate:[_S],component:It,data:{cx
19Route:"login"}}])]})}}return t})(),CS=(()=>{class t{constructor(e,n,i,r,a){this.auth=e,this.cms=n,this.semanticPathService=i,this.protectedRoutes=r,this.router=a}canActivate(){return pi(this.logout()).pipe(ne(()=>this.cms.hasPage({id:this.semanticPathService.get("logout")??"",type:Zt.CONTENT_PAGE}).pipe(I(e=>e||this.getRedirectUrl()))))}logout(){return this.auth.coreLogout()}getRedirectUrl(){let e=this.protectedRoutes.shouldProtect?"login":"home";return this.router.parseUrl(this.semanticPathService.get(e)??"")}static{this.\u0275fac=function(n){return new(n||t)(b(_o),b(_t),b(qn),b(Fc),b(lt))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[nr,ae.forChild([{path:null,canActivate:[CS,Wt],component:It,data:{cxRoute:"logout"}}])]})}}return t})(),gI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({imports:[yS,vS,mt,ae,wt]})}}return t})(),_I="isGuestUserCheckout";function xS(t,o){return n=>{let i=o(n),r=ou({marker:"p",paramName:"productCode"});return t.getCombined([i,r])}}var bS=new Be("PRODUCT_DETAILS_URL_MATCHER",{providedIn:"root",factory:()=>xS(T($r),T(Hr))}),vI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({routing:{routes:{product:{matchers:[bS]}}}})],imports:[ae.forChild([{path:null,canActivate:[Wt],component:It,data:{cxRoute:"product"}}])]})}}return t})();function SS(t,o){return n=>{let i=o(n),r=ou({marker:"c",paramName:"categoryCode"});return t.getCombined([i,r])}}var wS=new Be("PRODUCT_LISTING_URL_MATCHER",{providedIn:"root",factory:()=>SS(T($r),T(Hr))}),CI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X({routing:{routes:{category:{matchers:[wS]}}}})],imports:[ae.forChild([{path:null,canActivate:[Wt],component:It,data:{pageLabel:"search",cxRoute:"search"}},{path:null,canActivate:[Wt],component:It,data:{cxRoute:"brand"}},{path:null,canActivate:[Wt],component:It,data:{cxRoute:"category"}}])]})}}return t})(),TS=(()=>{class t{constructor(e,n){this.activatedRoutesService=e,this.injector=n,this.contextTokenMapping$=this.activatedRoutesService.routes$.pipe(I(i=>this.getRoutesContextTokenMapping(i)),qt({refCount:!0,bufferSize:1}))}getRoutesContextTokenMapping(e){return Object.assign({},...e.map(n=>n?.data?.cxContext))}get(e){return this.contextTokenMapping$.pipe(ne(n=>{let i=n?.[e];return i?this.injector.get(i):Q(void 0)}))}static{this.\u0275fac=function(n){return new(n||t)(b(wc),b(Wn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yI=(()=>{class t{constructor(e){this.routingContextService=e}get(e){return this.resolveContext(e).pipe(pe(),qt({refCount:!0,bufferSize:1}))}resolveContext(e){return this.routingContextService.get(e)}static{this.\u0275fac=function(n){return new(n||t)(b(TS))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oi=(()=>{class t extends Gn{static{this.type="NavigationEvent"}}return t})(),si=class extends Gn{},Td=(()=>{class t extends si{static{this.type="HomePageEvent"}}return t})(),IS=(()=>{class t{constructor(e){this.eventService=e,this.register()}register(){this.eventService.register(Td,this.buildHomePageEvent())}buildHomePageEvent(){return this.eventService.get(oi).pipe(G(e=>e.semanticRoute==="home"),I(e=>Un(Td,{navigation:e})))}static{this.\u0275fac=function(n){return new(n||t)(b(_n))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xI=(()=>{class t{constructor(e){}static{this.\u0275fac=function(n){return new(n||t)(b(IS))}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),ES=(()=>{class t{constructor(e,n){this.actions=e,this.eventService=n,this.register()}register(){this.eventService.register(oi,this.buildNavigationEvent())}buildNavigationEvent(){return this.getNavigatedEvent().pipe(I(e=>Un(oi,{context:e.context,semanticRoute:e.semanticRoute,url:e.url,params:e.params})))}getNavigatedEvent(){return this.actions.pipe(Qa(Ya),I(e=>e.payload.routerState))}static{this.\u0275fac=function(n){return new(n||t)(b(Ka),b(_n))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bI=(()=>{class t{constructor(e){}static{this.\u0275fac=function(n){return new(n||t)(b(ES))}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),Id=(()=>{class t extends si{static{this.type="ProductDetailsPageEvent"}}return t})(),Ed=(()=>{class t extends si{static{this.type="CategoryPageResultsEvent"}}return t})(),Dd=(()=>{class t extends si{static{this.type="SearchPageResultsEvent"}}return t})(),DS=(()=>{class t{constructor(e,n,i){this.eventService=e,this.productService=n,this.productSearchService=i,this.register()}register(){this.eventService.register(Dd,this.buildSearchPageResultsEvent()),this.eventService.register(Id,this.buildProductDetailsPageEvent()),this.eventService.register(Ed,this.buildCategoryResultsPageEvent())}buildProductDetailsPageEvent(){return this.eventService.get(oi).pipe(G(e=>e.semanticRoute==="product"),ne(e=>
19this.productService.get(e.context.id).pipe(G(n=>!!n),le(1),I(n=>Un(Id,{navigation:e,categories:n?.categories,code:n?.code,name:n?.name,price:n?.price})))))}buildCategoryResultsPageEvent(){let e=this.productSearchService.getResults().pipe(oo(1));return this.eventService.get(oi).pipe(ne(n=>n?.semanticRoute!=="category"?In:e.pipe(I(i=>Un(Ed,{navigation:n,categoryCode:n?.context?.id,numberOfResults:i?.pagination?.totalResults??0,categoryName:i.breadcrumbs?.[0].facetValueName})))))}buildSearchPageResultsEvent(){let e=this.productSearchService.getResults().pipe(oo(1));return this.eventService.get(oi).pipe(ne(n=>n?.semanticRoute!=="search"?In:e.pipe(I(i=>Un(Dd,{navigation:n,searchTerm:i?.freeTextSearch??"",numberOfResults:i?.pagination?.totalResults??0})))))}static{this.\u0275fac=function(n){return new(n||t)(b(_n),b(ki),b(Gr))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),SI=(()=>{class t{constructor(e){}static{this.\u0275fac=function(n){return new(n||t)(b(DS))}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({})}}return t})(),wI={mediaFormats:{mobile:{width:400},tablet:{width:770},desktop:{width:1140},widescreen:{width:1400},cartIcon:{width:65},thumbnail:{width:96},product:{width:284},zoom:{width:515}},media:{pictureElementFormats:{mobile:{mediaQueries:"(max-width: 480px)"},tablet:{mediaQueries:"(max-width: 770px)"},desktop:{mediaQueries:"(max-width: 960px)"},widescreen:{mediaQueries:"(min-width: 961px)"}},pictureFormatsOrder:["mobile","tablet","desktop","widescreen"]}};var TI=[hd({componentId:"HamburgerMenuComponent",pageSlotPosition:"PreHeader"}),hd({componentId:"LoginComponent",pageSlotPosition:"SiteLogin"})],MS={enableResetViewOnNavigate:{active:!0,ignoreQueryString:!1,ignoreRoutes:[],selectedHostElement:"body"}},FS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=F({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=b(ze),i},providedIn:"root"})}}return t})(),kS=(()=>{class t{get hostComponent(){return this.injector.get(Qt)?.components?.[0]}get selectedHostElement(){let e=this.config?.enableResetViewOnNavigate?.selectedHostElement;return e?this.injector.get(ot)?.getElementsByTagName?.(e)?.[0]:void 0}constructor(e,n,i,r){this.config=e,this.router=n,this.viewportScroller=i,this.injector=r,this.routerConfiguration=T(qa,{optional:!0})||{}}initializeWithConfig(){this.config?.enableResetViewOnNavigate?.active&&this.setResetViewOnNavigate(this.config.enableResetViewOnNavigate.active)}setResetViewOnNavigate(e){this.subscription?.unsubscribe(),e&&(this.viewportScroller.setHistoryScrollRestoration("manual"),this.subscription=this.router.events.pipe(G(n=>n instanceof Wa),ya()).subscribe(n=>{let i=n[0],r=n[1],a=r.position;if(a)this.scrollToPosition(r,a);else{if(this.config.enableResetViewOnNavigate?.ignoreQueryString&&this.isPathEqual(i,r)||this.isChildRoute(r))return;this.scrollToPosition(r,a)}this.focusOnHostElement()}))}focusOnHostElement(){this.selectedHostElement?this.selectedHostElement?.focus():this.hostComponent?.location?.nativeElement.focus()}scrollToPosition(e,n){let i=(a,h)=>{a&&this.routerConfiguration.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(a):this.viewportScroller.scrollToPosition(h)},r=[0,0];setTimeout(()=>{let a=e.anchor;i(a,n||r)},n?0:100)}isChildRoute(e){return this.config.enableResetViewOnNavigate?.ignoreRoutes?.some(n=>this.isNavigationEnd(e.routerEvent)&&e.routerEvent.urlAfterRedirects.split("/").includes(n))??!1}isPathEqual(e,n){return!this.isNavigationEnd(e.routerEvent)||!this.isNavigationEnd(n.routerEvent)?!1:e.routerEvent.urlAfterRedirects.split("?")[0]===n.routerEvent.urlAfterRedirects.split("?")[0]}isNavigationEnd(e){return e.type===Ga.NavigationEnd}static{this.\u0275fac=function(n){return new(n||t)(b(FS),b(lt),b(ja),b(Pe))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),II=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=E({providers:[X(MS),{provide:At,useFactory:AS,deps:[kS],multi:!0}],imports:[ae.forRoot([],{anchorScrolling:"enabled",initialNavigation:"enabledBlocking"})]})}}return t})();function AS(t){return()=>t.initializeWithConfig()}export{vt as a,Tu as b,Mn as c,Ct as d,Ht as e,Jn as f,Zr as g,tn as h,hl as i,Uu as j,vn as k,Gu as l,os as m,rs as n,Vo as o,Xu as p,Ro as q,vl as r,Bo as s,yl as t,xl as u,No as v,jo as w,as as x,rp as y,cp as z,cs as A,ls as B,Hi as C,hp as D,gp as E,vp as F,El as G,Bt as H,mt as I,Fl as J,An as K,Al as L,Uo as M,Gi as N,fs as O,od as P,rd as Q,yn as R,ue as S,je as T,Ve as U,Ge as V,Ki as W,Pn as X,lT as Y,Zo as Z,Yi as _,ci as $,zt as aa,dT as ba,yt as ca,Re as da,ri as ea,Ls as fa,bn as ga,Wd as ha,Vs as ia,uT as ja,dd as ka,sy as la,Sn as ma,Bs as na,It as oa,pT as pa,py as qa,Wt as ra,Fs as sa,Yd as ta,$e as ua,qe as va,ex as wa,Tt as xa,li as ya,ln as za,Ws as Aa,ux as Ba,or as Ca,wn as Da,Tn as Ea,Et as Fa,hT as Ga,rr as Ha,vx as Ia,qs as Ja,Dt as Ka,fT as La,gT as Ma,_T as Na,vT as Oa,CT as Pa,yT as Qa,bx as Ra,ru as Sa,Xi as Ta,wx as Ua,dn as Va,xT as Wa,kx as Xa,bT as Ya,sr as Za,Lx as _a,Nx as $a,jx as ab,di as bb,$x as cb,Hx as db,cu as eb,Zi as fb,Ys as gb,Wx as hb,zx as ib,Ji as jb,ST as kb,wT as lb,TT as mb,IT as nb,ET as ob,ar as pb,cr as qb,Yx as rb,Xx as sb,Zx as tb,lr as ub,Jx as vb,eb as wb,Xs as xb,rb as yb,DT as zb,Zs as Ab,MT as Bb,FT as Cb,kT as Db,AT as Eb,RT as Fb,ab as Gb,cb as Hb,er as Ib,Qo as Jb,PT as Kb,dr as Lb,Js as Mb,hb as Nb,Yo as Ob,OT as Pb,LT as Qb,VT as Rb,du as Sb,BT as Tb,NT as Ub,jT as Vb,$T as Wb,Ss as Xb,HT as Yb,UT as Zb,gd as _b,GT as $b,WT as ac,zT as bc,qT as cc,KT as dc,QT as ec,Ab as fc,YT as gc,na as hc,gu as ic,XT as jc,ZT as kc,JT as lc,Lb as mc,Nb as nc,$b as oc,vu as pc,Hb as qc,eI as rc,tI as sc,bd as tc,Ts as u
19c,nI as vc,iI as wc,oI as xc,rI as yc,sI as zc,ia as Ac,oa as Bc,pr as Cc,sn as Dc,rn as Ec,xu as Fc,ii as Gc,aa as Hc,Qb as Ic,Yb as Jc,Jb as Kc,eS as Lc,aI as Mc,cI as Nc,oS as Oc,lI as Pc,dI as Qc,uI as Rc,aS as Sc,pI as Tc,cS as Uc,mI as Vc,hI as Wc,fI as Xc,vS as Yc,yS as Zc,gI as _c,_I as $c,vI as ad,CI as bd,yI as cd,oi as dd,si as ed,xI as fd,bI as gd,Id as hd,SI as id,wI as jd,TI as kd,II as ld};
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.