1import{a as Wi}from"./chunk-6DIFYN65.js";import{a as Lo}from"./chunk-MPELKOJ3.js";import"./chunk-SFY2YPH2.js";import{a as Fo}from"./chunk-6BTGH533.js";import{A as Wt,D as Ro,K as zi,a as io,d as ki,o as ko,t as Po,v as Oo,w as Ao,x as No,y as Do}from"./chunk-UJ7MYAW5.js";import{a as Kr,d as Zt}from"./chunk-CKGOSEXH.js";import{a as Ge,b as bo,e as Li,f as Ke,g as Fi,h as Vi,i as So,j as Mo,k as xo,m as jt,n as zt,o as Io,p as ji,q as Eo,v as Bo}from"./chunk-KEKSJQFR.js";import{d as yo,m as To}from"./chunk-ZHP3T5S6.js";import{a as eo,b as yn,c as st}from"./chunk-OEZLTL5P.js";import{a as Qe,b as Ve}from"./chunk-GMNOK5FS.js";import{a as K,b as to}from"./chunk-QGFSE3QA.js";import{$ as so,A as Ii,C as Ei,Ca as Bi,Da as Ri,Ea as wo,Ha as Co,Ia as oe,N as Pi,Z as W,_ as Xe,aa as ao,b as Yr,ba as lo,c as Zr,ca as Ft,da as bn,e as Ci,ea as co,f as Rt,fa as Vt,g as yi,ga as Sn,h as Jr,ha as Oi,i as yt,ia as Ti,ja as po,k as Lt,ka as at,l as bi,la as mo,m as Si,na as uo,oa as ho,pa as fo,ra as Se,sa as Ni,t as Mi,ta as Fe,u as xi,ua as go,va as _o,x as no,xa as vo,y as ro,z as oo,za as Di}from"./chunk-OGGMKEBK.js";import{G as he,H as Ai,I as Z,a as Le,c as Hr,d as qr,e as Bt,f as z,k as Gr,l as B}from"./chunk-6YICL5XO.js";import{$ as nt,$a as kr,$b as jr,Aa as Ne,Ab as Tr,Ba as Kt,Bb as me,C as gt,Ca as br,D as Xt,E as Nt,Ea as Sr,Eb as Dt,F as H,Fa as Mr,Fb as Ar,Ga as xr,Gb as Nr,H as ne,Ha as c,Hb as Dr,I as Pe,Ia as p,Ib as Re,J as ur,Ja as w,Jb as F,K as $,Ka as ae,L as hr,La as le,Mb as gi,N as P,Na as E,Nb as re,O as Oe,Ob as _i,Pa as b,Qa as u,R as fr,Ra as ot,Rb as vi,S as di,Sa as Je,T as S,Ta as De,Tb as Br,U as M,Ua as $e,Ub as wt,Vb as Rr,Xa as ce,Xb as Lr,Y as mi,Ya as pe,Yb as wi,Z as gr,Za as de,Zb as Fr,_ as Te,_a as X,_b as Vr,a as Ot,aa as _t,ab as g,ac as zr,ba as vn,bb as y,bc as Wr,c as sr,cb as T,cc as Ur,d as ht,da as vt,db as Ir,ea as Ae,f as ci,ga as ui,h as ar,ha as Gt,ia as s,j as qe,ja as h,jc as Cn,k as lr,ka as _r,kc as Ct,l as ft,lb as Be,lc as $r,m as cr,ma as vr,mb as be,n as fn,nb as wn,nc as Qr,o as pr,oa as hi,oc as ve,p as gn,pa as wr,pc as ue,qc as Xr,r as pi,ra as Cr,rb as f,rc as Yt,s as _n,sa as C,sb as _,t as Tt,tb as et,u as At,ua as d,ub as Er,va as rt,w as ie,wa as q,wb as Pr,x as dr,y as mr,ya as yr,yb as fi,za as N,zb as Or}from"./chunk-ENJMDCE2.js";var Ui={name:"XtralifeFront",version:"0.51.4",license:"MIT",scripts:{ng:"ng",start:"ng serve","make-bundle:prod":"npm install && npm run build:prod","make-bundle:small":"npm install && npm run build:small","make-bundle:jenkins":"npm install && npm run build:jenkins","make-ssr-bundle:prod":"npm run build-ssr:prod","make-ssr-bundle:small":"npm run build-ssr:small",test:"ng test","analyze:build":"ng build --aot --stats-json","serve:ssr":"node dist/xtralife-server/main.js","dev:ssr":"ng run xtralife:serve-ssr",prerender:"ng run xtralife:prerender","build-ssr:prod":"node --max-old-space-size=12288 ./node_modules/@angular/cli/bin/ng run xtralife:server:production","build-ssr:small":"node --max-old-space-size=1024 ./node_modules/@angular/cli/bin/ng run xtralife:server:production","build:prod":"node --max-old-space-size=12288 ./node_modules/@angular/cli/bin/ng build --configuration production","build:small":"node --max-old-space-size=1024 ./node_modules/@angular/cli/bin/ng build --configuration production","build:jenkins":"node --max-old-space-size=1536 ./node_modules/@angular/cli/bin/ng build --configuration production","build:ssr":"ng build && ng run xtralife:server","purge:components":"purgecss --config purgecss.config.js --content src/app/**/*.component.html --css temp-css/**/*.component.css --output ./purged-components"},private:!0,dependencies:{"@angular/animations":"^17.3.12","@angular/common":"^17.3.12","@angular/compiler":"^17.3.12","@angular/core":"^17.3.12","@angular/forms":"^17.3.12","@angular/platform-browser":"^17.3.12","@angular/platform-browser-dynamic":"^17.3.12","@angular/platform-server":"^17.3.12","@angular/pwa":"^17.3.8","@angular/router":"^17.3.12","@angular/service-worker":"^17.3.12","@angular/ssr":"^17.3.8","@auth0/angular-jwt":"^5.2.0","@paypal/paypal-js":"^8.1.2","@phosphor-icons/web":"^2.1.1","bootstrap-4-grid":"^2.4.1",express:"^4.18.2",help:"^3.0.2","lodash-es":"^4.17.21","ngx-device-detector":"^7.0.0","ngx-toastr":"^15.2.2",rxjs:"^7.8.2","body-scroll-lock":"^4.0.0-beta.0",tslib:"^2.8.1",uuid:"^10.0.0",webpack:"^5.91.0","zone.js":"~0.14.8"},devDependencies:{"@angular-devkit/build-angular":"^17.3.17","@angular/cli":"^17.3.8","@angular/compiler-cli":"^17.3.12","@angular/language-service":"17.3.12","@types/express":"^4.17.17","@types/express-serve-static-core":"^4.17.7","@types/google.analytics":"0.0.39","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^20.16.0","@types/uuid":"^10.0.0",autoprefixer:"^10.4.21","browser-sync":"^3.0.0",codelyzer:"^6.0.0","jasmine-core":"^3.99.1","jasmine-spec-reporter":"~5.0.0",karma:"~6.4.3","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0",postcss:"^8.5.6",purgecss:"^7.0.2",tailwindcss:"^3.4.17","ts-loader":"^5.2.0","ts-node":"~4.1.0",typescript:"~5.2.2","webpack-bundle-analyzer":"^4.10.2"}};var Vo=(()=>{class n{constructor(e,t,r,o){this.app=e,this.http=t,this.eventsService=r,this.trackingService=o,this.storefrontId="1",this.BATCH_INTERVAL_MS=2e4,this.dataIngestEndpoint=(Le.ecommplat.secure?"https":"http")+"://data-ingest."+Le.ecommplat.domain+"/api/data-ingest/ingest-batch",this.resetBatch()}init(){this.app.isBrowser()&&!this.app.isBot()&&(this.initEventsSubscriptions(),this.initBatchTimer(),this.setupUnloadHandler())}initEventsSubscriptions(){this.eventsService.eventBus.subscribe(e=>{try{e&&(e instanceof uo?this.queueEvent(this.createDataIngestEvent("XtralifeIdCreated",e)):e instanceof ho?this.queueEvent(this.createDataIngestEvent("SessionStarted",e)):e instanceof Ii?this.queueEvent(this.createDataIngestEvent("CartItemAdded",e)):e instanceof Ei?this.queueEvent(this.createDataIngestEvent("CartItemRemoved",e)):e instanceof vo?this.queueEvent(this.createDataIngestEvent("UserLoggedIn",e)):e instanceof Di?this.queueEvent(this.createDataIngestEvent("UserLoggedOut",e)):e instanceof wo?this.queueEvent(this.createDataIngestEvent("ItemViewed",e)):e instanceof fo?this.queueEvent(this.createDataIngestEvent("PageViewed",e)):e instanceof Li?this.queueEvent(this.createDataIngestEvent("OrderCompleted",e)):e instanceof Pi?this.queueEvent(this.createDataIngestEvent("OrderCheckedOut",e)):e instanceof Mo?this.queueEvent(this.createDataIngestEvent("ReservationCancellationStarted",e)):e instanceof xo&&this.queueEvent(this.createDataIngestEvent("ReservationCancellationCreated",e)))}catch{}})}initBatchTimer(){pi(this.BATCH_INTERVAL_MS).subscribe(()=>{this.sendBatchIfNotEmpty()})}setupUnloadHandler(){typeof window<"u"&&window.addEventListener("beforeunload",()=>{this.sendBatchIfNotEmptySync()})}createDataIngestEvent(e,t){return{storefrontId:this.storefrontId,sessionId:this.trackingService.getTrackingInfo().xtralifeId,eventType:e,eventIdentifiers:this.createEventIdentifiers(),eventPayload:t.payload,caller:"xtralife app v"+(Ui.version??"Unknown"),timestamp:Math.floor(Date.now()/1e3)}}queueEvent(e){this.eventBatch.events.push(e)}
1sendBatchIfNotEmpty(){this.eventBatch.events.length>0&&(this.eventBatch.timestamp=Math.floor(Date.now()/1e3),this.sendBatch(),this.resetBatch())}sendBatch(){this.http.post(this.dataIngestEndpoint,this.eventBatch).subscribe()}sendBatchIfNotEmptySync(){if(this.eventBatch.events.length>0){if(this.eventBatch.timestamp=Math.floor(Date.now()/1e3),navigator.sendBeacon){let e=new Blob([JSON.stringify(this.eventBatch)],{type:"application/json"});if(!navigator.sendBeacon(this.dataIngestEndpoint,e))try{fetch(this.dataIngestEndpoint,{method:"POST",body:JSON.stringify(this.eventBatch),headers:{"Content-Type":"application/json"},keepalive:!0})}catch{}}this.resetBatch()}}resetBatch(){this.eventBatch={events:[]}}pushIdentifier(e,t,r){r&&e.push({name:t,value:r})}createEventIdentifiers(){let e=[],t=this.trackingService.getTrackingInfo(),r=this.trackingService.getExperimentVariants();return this.pushIdentifier(e,"xtralifeSessionId",t.sessionId),this.pushIdentifier(e,"userId",t.userId),this.pushIdentifier(e,"pageViewId",t.pageViewId),r.forEach((o,a)=>{this.pushIdentifier(e,`experiment:${a}`,o)}),e}static{this.\u0275fac=function(t){return new(t||n)($(Se),$(wi),$(he),$(jt))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Hi=(()=>{class n{constructor(e,t){this.http=e,this.authService=t,this.storefrontId="1",this.cartEndpoint=(Le.ecommplat.secure?"https":"http")+"://checkout."+Le.ecommplat.domain+"/api/cart"}createCart(){return this.http.post(`${this.cartEndpoint}`,{storefrontId:this.storefrontId},{headers:this.getHeaders()})}addItem(e,t){return this.http.post(`${this.cartEndpoint}/${e}/items`,t,{headers:this.getHeaders()})}updateCartItemQuantity(e,t,r){return this.http.patch(`${this.cartEndpoint}/${e}/items/${t}`,{itemQuantity:r},{headers:this.getHeaders()})}removeCartItem(e,t){return this.http.delete(`${this.cartEndpoint}/${e}/items/${t}`,{headers:this.getHeaders()})}getCart(e){return this.authService.isJwtValid()?this.http.get(`${this.cartEndpoint}/${e}`,{headers:this.getHeaders()}):this.http.get(`${this.cartEndpoint}/anonymous/${e}`,{headers:this.getHeaders()})}setCartOwnership(e){return this.authService.isJwtValid()?this.http.put(`${this.cartEndpoint}/${e}/own`,{},{headers:this.getHeaders()}):qe({success:!0})}getCartRequirements(e){return this.http.get(`${this.cartEndpoint}/${e}/requirements`,{headers:this.getHeaders()})}getHeaders(){return this.authService.isJwtValid()?this.authService.getHeaders():new Rr().set("Content-Type","application/json")}static{this.\u0275fac=function(t){return new(t||n)($(wi),$(Ri))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var jo=(()=>{class n{constructor(e,t,r){this.app=e,this.cartService=t,this.eventsService=r,this.legacyCartId=null}init(){this.app.isBrowser()&&!this.app.isBot()&&(this.loadCartStatus(),this.initEventsSubscriptions())}initEventsSubscriptions(){this.eventsService.eventBus.subscribe(e=>{try{e&&(e instanceof no?this.cartCreated(e):e instanceof ro?this.cartLoaded(e):e instanceof oo?this.cartOwned(e):e instanceof Di?this.userLoggedOut(e):e instanceof Ii?this.cartItemAdded(e):e instanceof Ei?this.cartItemRemoved(e):e instanceof Li||e instanceof Pi)}catch{}})}cartCreated(e){this.cartService.createCart().subscribe(t=>{t.success&&(this.cartId=t.body.id,this.cart={id:t.body.id,items:[],total:0,subtotal:0,tax:0,shipping:0})})}cartLoaded(e){this.legacyCartId!==e.payload.id?(this.legacyCartId=e.payload.id,this.cartService.createCart().pipe(gt(t=>{if(!t.success)return ar;
1if(this.cartId=t.body.id,this.saveCartStatus(),this.cart={id:t.body.id,items:[],total:0,subtotal:0,tax:0,shipping:0},e.payload.items.length===0)return qe(null);let r=e.payload.items.map(o=>this.cartService.addItem(this.cartId,{productId:o.skuUuid,itemQuantity:o.quantity,itemType:o.type}).pipe(Nt(a=>{a.success&&this.cart.items.push({id:a.body.id,productId:o.skuUuid,type:o.type,quantity:o.quantity,price:{currency:e.payload.currency,amount:o.price}})})));return pr(r)})).subscribe()):this.cartService.getCart(this.cartId).subscribe(t=>{this.cart=t.body})}cartOwned(e){this.cartId&&this.cartService.setCartOwnership(this.cartId).subscribe(t=>{this.updateRequirements()})}userLoggedOut(e){this.cartId=null}cartItemAdded(e){if(this.cartId){let t={productId:e.payload.item.skuUuid,itemQuantity:1,itemType:e.payload.item.type},r=this.findItemIndexInCart(t.productId,t.itemType);if(r===-1)this.cartService.addItem(this.cartId,t).subscribe(o=>{o.success&&(this.cart.items.push({id:o.body.id,productId:t.productId,type:t.itemType,quantity:t.itemQuantity,price:{currency:e.payload.currency,amount:e.payload.item.price}}),this.updateRequirements())});else{let o=this.cart.items[r].quantity+1;this.cartService.updateCartItemQuantity(this.cartId,this.cart.items[r].id,o).subscribe(a=>{a.success&&(this.cart.items[r].quantity=o,this.updateRequirements())})}}}cartItemRemoved(e){if(this.cartId){let t=this.findItemIndexInCart(e.payload.item.skuUuid,e.payload.item.type);if(t!==-1){if(this.cart.items[t].quantity===1)this.cartService.removeCartItem(this.cartId,this.cart.items[t].id).subscribe(r=>{r.success&&(this.cart.items.splice(t,1),this.updateRequirements())});else if(this.cart.items[t].quantity>1){let r=this.cart.items[t].quantity-1;this.cartService.updateCartItemQuantity(this.cartId,this.cart.items[t].id,r).subscribe(o=>{o.success&&(this.cart.items[t].quantity=r,this.updateRequirements())})}}}}updateRequirements(){this.cartId&&this.cartService.getCartRequirements(this.cartId).subscribe(e=>{e.success&&(this.requirements=e.body)})}findItemIndexInCart(e,t){return this.cart.items.findIndex(r=>r.productId===e&&r.type===t)}loadCartStatus(){let e=null;try{e=JSON.parse(localStorage.getItem("_checkout_service"))}catch{}e!==null&&(this.legacyCartId=e.legacyId,this.cartId=e.id)}saveCartStatus(){localStorage.setItem("_checkout_service",JSON.stringify({legacyId:this.legacyCartId,id:this.cartId}))}static{this.\u0275fac=function(t){return new(t||n)($(Se),$(Hi),$(he))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ti="Service workers are disabled or not supported by this browser";function va(n){return fn(()=>lr(new Error(n)))}var Ut=class{constructor(i){if(this.serviceWorker=i,!i)this.worker=this.events=this.registration=va(ti);else{let t=gn(i,"controllerchange").pipe(ft(()=>i.controller)),r=fn(()=>qe(i.controller)),o=cr(r,t);this.worker=o.pipe(At(x=>!!x)),this.registration=this.worker.pipe(gt(()=>i.getRegistration()));let v=gn(i,"message").pipe(ft(x=>x.data)).pipe(At(x=>x&&x.type)).pipe(mr());v.connect(),this.events=v}}postMessage(i,e){return this.worker.pipe(ie(1),Nt(t=>{t.postMessage(Ot({action:i},e))})).toPromise().then(()=>{})}postMessageWithOperation(i,e,t){let r=this.waitForOperationCompleted(t),o=this.postMessage(i,e);return Promise.all([o,r]).then(([,a])=>a)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(i){let e;return typeof i=="string"?e=t=>t.type===i:e=t=>i.includes(t.type),this.events.pipe(At(e))}nextEventOfType(i){return this.eventsOfType(i).pipe(ie(1))}waitForOperationCompleted(i){return this.eventsOfType("OPERATION_COMPLETED").pipe(At(e=>e.nonce===i),ie(1),ft(e=>{if(e.result!==void 0)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},Ho=(()=>{class n{get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,this.pushManager=null,this.subscriptionChanges=new ci,!e.isEnabled){this.messages=Tt,this.notificationClicks=Tt,this.subscription=Tt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(ft(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(ft(r=>r.data)),this.pushManager=this.sw.registration.pipe(ft(r=>r.pushManager));let t=this.pushManager.pipe(gt(r=>r.getSubscription()));this.subscription=_n(t,this.subscriptionChanges)}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(ti));let t={userVisibleOnly:!0},r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;a<r.length;a++)o[a]=r.charCodeAt(a);return t.applicationServerKey=o,this.pushManager.pipe(gt(a=>
1a.subscribe(t)),ie(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(ti));let e=t=>{if(t===null)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(ie(1),gt(e)).toPromise()}decodeBase64(e){return atob(e)}static{this.\u0275fac=function(t){return new(t||n)($(Ut))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),qi=(()=>{class n{get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=Tt,this.unrecoverable=Tt;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(ti));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ti));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static{this.\u0275fac=function(t){return new(t||n)($(Ut))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();var zo=new ur("");function wa(n,i,e,t){return()=>{if(!(wt(t)&&"serviceWorker"in navigator&&e.enabled!==!1))return;navigator.serviceWorker.addEventListener("controllerchange",()=>{navigator.serviceWorker.controller!==null&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})});let r;if(typeof e.registrationStrategy=="function")r=e.registrationStrategy();else{let[a,...l]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":r=qe(null);break;case"registerWithDelay":r=Wo(+l[0]||0);break;case"registerWhenStable":r=l[0]?_n(Uo(n),Wo(+l[0])):Uo(n);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.get(hi).runOutsideAngular(()=>r.pipe(ie(1)).subscribe(()=>navigator.serviceWorker.register(i,{scope:e.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function Wo(n){return qe(null).pipe(dr(n))}function Uo(n){return n.get(Or).isStable.pipe(At(e=>e))}function Ca(n,i){return new Ut(wt(i)&&n.enabled!==!1?navigator.serviceWorker:void 0)}var ei=class{};function ya(n,i={}){return fr([Ho,qi,{provide:zo,useValue:n},{provide:ei,useValue:i},{provide:Ut,useFactory:Ca,deps:[ei,_t]},{provide:fi,useFactory:wa,deps:[mi,zo,ei,_t],multi:!0}])}var qo=(()=>{class n{static register(e,t={}){return{ngModule:n,providers:[ya(e,t)]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n})}static{this.\u0275inj=Pe({providers:[Ho,qi]})}}return n})();var Ht=(()=>{class n{constructor(e,t){this.swUpdate=e,this.applicationService=t}init(){if(this.applicationService.isBrowser()){if(this.swUpdate.isEnabled){this.setupUpdateHandlers();return}"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(()=>{navigator.serviceWorker.controller||navigator.serviceWorker.addEventListener("controllerchange",()=>{this.reloadPage()})})}}setupUpdateHandlers(){this.swUpdate.checkForUpdate(),pi(30*60*1e3).subscribe(()=>this.swUpdate.checkForUpdate()),this.swUpdate.versionUpdates.subscribe(e=>{e.type==="VERSION_READY"&&this.swUpdate.activateUpdate().then(()=>this.reloadPage())}),this.swUpdate.unrecoverable.subscribe(()=>this.reloadPage())}reloadPage(){window.location.href=window.location.href}checkForUpdates(){this.swUpdate.isEnabled&&this.swUpdate.checkForUpdate()}static{this.\u0275fac=function(t){return new(t||n)($(qi),$(Se))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Qo=(()=>{class n{constructor(e,t){this.document=e,this.platformId=t,this.initialized=!1}init(){if(this.initialized||!wt(this.platformId))return;this.initialized=!0;let e=Le.googleTagManager?.id;if(!e)return;window.dataLayer=window.dataLayer||[];let t=this.document.createElement("script");t.innerHTML=` 2 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 3 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 4 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 6 })(window,document,'script','dataLayer','${e}'); 7 `,this.document.head.appendChild(t);let r=this.document.createElement("noscript"),o=this.document.createElement("iframe");o.src=`https://www.googletagmanager.com/ns.html?id=${e}`,o.height="0",o.width="0",o.style.display="none",o.style.visibility="hidden",r.appendChild(o),this.document.body.insertBefore(r,this.document.body.firstChild)}static{this.\u0275fac=function(t){return new(t||n)($(Dt),$(_t))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Ma(n,i){if(n&1){let e=E();c(0,"a",3,0),b("click",function(){let r=S(e),o=r.$implicit,a=r.$index,l=u();return M(l.onItemClick(o,a+1))}),c(2,"div",4),g(3),p(),c(4,"div",5),w(5,"div",6),p()()}if(n&2){let e=i.$implicit,t=X(1);q("tw-bg-gray",(e.metadata==null?null:e.metadata.background)==="Dark")("hover:md:tw-bg-gray",(e.metadata==null?null:e.metadata.background)==="Dark")("tw-bg-mario",(e.metadata==null?null:e.metadata.background)==="Red")("hover:md:tw-bg-mario",(e.metadata==null?null:e.metadata.background)==="Red")("tw-bg-rosalina",(e.metadata==null?null:e.metadata.background)==="Blue")("hover:md:tw-bg-rosalina",(e.metadata==null?null:e.metadata.background)==="Blue")("tw-bg-waluigi",(e.metadata==null?null:e.metadata.background)==="Purple")("hover:md:tw-bg-waluigi",(e.metadata==null?null:e.metadata.background)==="Purple")("tw-bg-bowser",(e.metadata==null?null:e.metadata.background)==="Yellow")("hover:md:tw-bg-bowser",(e.metadata==null?null:e.metadata.background)==="Yellow")("tw-bg-luigi",(e.metadata==null?null:e.metadata.background)==="Green")("hover:md:tw-bg-luigi",(e.metadata==null?null:e.metadata.background)==="Green"),d("routerLink",e.metadata.uri),s(3),T(" ",e.metadata.title," "),s(),q("tw-invisible",!t.isActive),s(),q("tw-bg-gray",(e.metadata==null?null:e.metadata.background)==="Dark")("tw-bg-mario",(e.metadata==null?null:e.metadata.background)==="Red")("tw-bg-rosalina",(e.metadata==null?null:e.metadata.background)==="Blue")("tw-bg-waluigi",(e.metadata==null?null:e.metadata.background)==="Purple")("tw-bg-bowser",(e.metadata==null?null:e.metadata.background)==="Yellow")("tw-bg-luigi",(e.metadata==null?null:e.metadata.background)==="Green")}}var Xo=(()=>{class n{constructor(){this.itemClicked=new nt}onItemClick(e,t){this.itemClicked.emit({item:e,index:t})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["pinned-menu-items"]],inputs:{items:"items"},outputs:{itemClicked:"itemClicked"},decls:3,vars:0,consts:[["rla","routerLinkActive"],[1,"tw-w-full","tw--px-m-10","md:tw-px-0","md:tw-w-auto","tw-flex","tw-h-full"],["routerLinkActive","active",1,"tw-px-m-16","md:tw-px-d-16","tw-relative","tw-basis-1/3","md:tw-basis-auto","tw-flex","tw-flex-col","tw-justify-center","tw-text-grey","md:tw-text-toad","md:hover:tw-text-grey","md:tw-bg-transparent","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2",3,"tw-bg-gray","hover:md:tw-bg-gray","tw-bg-mario","hover:md:tw-bg-mario","tw-bg-rosalina","hover:md:tw-bg-rosalina","tw-bg-waluigi","hover:md:tw-bg-waluigi","tw-bg-bowser","hover:md:tw-bg-bowser","tw-bg-luigi","hover:md:tw-bg-luigi","routerLink"],["routerLinkActive","active",1,"tw-px-m-16","md:tw-px-d-16","tw-relative","tw-basis-1/3","md:tw-basis-auto","tw-flex","tw-flex-col","tw-justify-center","tw-text-grey","md:tw-text-toad","md:hover:tw-text-grey","md:tw-bg-transparent","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2",3,"click","routerLink"],[1,"tw-font-xtralife-bold","tw-text-m-sm","md:tw-text-d-sm","tw-uppercase","tw-text-center"],[1,"tw-hidden","tw-absolute","tw-bottom-d-16","tw-left-0","tw-w-full","tw-h-d-6","md:tw-flex","tw-justify-center"],[1,"tw-h-d-6","tw-w-d-16","tw-rounded-md"]],template:function(t,r){t&1&&(c(0,"div",1),Mr(1,Ma,6,40,"a",2,Sr),p()),t&2&&(s(),xr(r.items))},dependencies:[ue,Xr]})}}return n})();var Go=(()=>{class n{constructor(e,t,r,o,a){this._account=e,this._router=t,this._tools=r,this._ecpServ=o,this._sidebarsInteractor=a}ngOnInit(){this.activeRoute=this._router.url.indexOf("/mi-cuenta")===0,this._tools.isBrowser&&this.initSubscriptions()}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}initSubscriptions(){this.routerSubscription=this._router.events.subscribe(e=>{e instanceof Ct&&(this.activeRoute=this._router.url.indexOf("/mi-cuenta")===0)})}static{this.\u0275fac=function(t){return new(t||n)(h(oe),h(ve),h(B),h(z),h(Z))}}static{this.\u0275cmp=P({type:n,selectors:[["account-icon"]],decls:2,vars:4,consts:[[1,"tw-h-m-32","md:tw-h-d-32","tw-text-m-3xl","md:tw-text-d-3xl","tw-aspect-square","tw-flex","tw-items-center","tw-cursor-pointer","hover:tw-text-rosalina","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2"],[1,"ph-light","ph-user-circle"]],template:function(t,r){t&1&&(c(0,"div",0),w(1,"i",1),p()),t&2&&q("tw-text-toad",!(r._sidebarsInteractor.getSidebarFragments().account||r.activeRoute))("tw-text-rosalina",r._sidebarsInteractor.getSidebarFragments().account||r.activeRoute)}})}}return n})();function Ia(n,i){n&1&&(c(0,"div",4),w(1,"i",5),p())}
7function Ea(n,i){if(n&1&&(c(0,"div",6)(1,"span",7),g(2),p()()),n&2){let e=u();s(2),y(e._order.cartProductsCount)}}var Ko=(()=>{class n{constructor(e,t,r,o){this._ecpServ=e,this._sidebarsInteractor=t,this._tools=r,this._order=o}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(Z),h(B),h(Fe))}}static{this.\u0275cmp=P({type:n,selectors:[["cart-icon"]],inputs:{contracted:"contracted"},decls:4,vars:6,consts:[[1,"tw-h-m-32","tw-text-m-3xl","md:tw-h-d-32","md:tw-text-d-3xl","tw-relative","tw-aspect-square","tw-flex","tw-items-center","tw-cursor-pointer","hover:tw-text-rosalina","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2"],[1,"ph-light","ph-shopping-bag"],["class","tw-absolute -tw-bottom-d-2 -tw-right-d-2 tw-aspect-square tw-h-m-20 md:tw-h-d-20 tw-bg-rosalina tw-rounded-full tw-flex tw-items-center tw-justify-center tw-animate-spin",4,"ngIf"],["class","tw-absolute -tw-bottom-d-2 -tw-right-d-2 tw-aspect-square tw-h-m-20 md:tw-h-d-20 tw-bg-rosalina tw-rounded-full tw-flex tw-items-center tw-justify-center",4,"ngIf"],[1,"tw-absolute","-tw-bottom-d-2","-tw-right-d-2","tw-aspect-square","tw-h-m-20","md:tw-h-d-20","tw-bg-rosalina","tw-rounded-full","tw-flex","tw-items-center","tw-justify-center","tw-animate-spin"],[1,"tw-text-black","tw-text-d-xs","ph-bold","ph-arrows-clockwise"],[1,"tw-absolute","-tw-bottom-d-2","-tw-right-d-2","tw-aspect-square","tw-h-m-20","md:tw-h-d-20","tw-bg-rosalina","tw-rounded-full","tw-flex","tw-items-center","tw-justify-center"],[1,"tw-font-xtralife-bold","tw-text-black","tw-text-d-xs"]],template:function(t,r){t&1&&(c(0,"div",0),w(1,"i",1),C(2,Ia,2,0,"div",2)(3,Ea,3,1,"div",3),p()),t&2&&(q("tw-text-toad",!(r._sidebarsInteractor.getSidebarFragments().cart||r._sidebarsInteractor.getSidebarFragments().fullCart))("tw-text-rosalina",r._sidebarsInteractor.getSidebarFragments().cart||r._sidebarsInteractor.getSidebarFragments().fullCart),s(2),d("ngIf",r._order.loading),s(),d("ngIf",!r._order.loading&&r._order.initialized&&r._order.cartProductsCount>0))},dependencies:[F]})}}return n})();var Yo=(()=>{class n{constructor(e,t,r){this._tools=e,this._ecpServ=t,this._sidebarsInteractor=r}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||n)(h(B),h(z),h(Z))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-icon"]],decls:2,vars:4,consts:[[1,"tw-h-m-32","tw-text-m-3xl","md:tw-h-d-32","md:tw-text-d-3xl","tw-aspect-square","tw-flex","tw-items-center","tw-cursor-pointer","hover:tw-text-rosalina","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2"],[1,"ph-light","ph-list"]],template:function(t,r){t&1&&(c(0,"div",0),w(1,"i",1),p()),t&2&&q("tw-text-toad",!r._sidebarsInteractor.getSidebarFragments().menu)("tw-text-rosalina",r._sidebarsInteractor.getSidebarFragments().menu)},changeDetection:0})}}return n})();var Zo=(()=>{class n{constructor(e,t,r){this._router=e,this._ecpServ=t,this._tools=r}ngOnInit(){this.activeRoute=this._router.url.indexOf("/mi-planificador")===0,this._tools.isBrowser&&this.initSubscriptions()}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}initSubscriptions(){this.routerSubscription=this._router.events.subscribe(e=>{e instanceof Ct&&(this.activeRoute=this._router.url.indexOf("/mi-planificador")===0)})}static{this.\u0275fac=function(t){return new(t||n)(h(ve),h(z),h(B))}}static{this.\u0275cmp=P({type:n,selectors:[["planner-icon"]],decls:2,vars:4,consts:[[1,"tw-h-m-32","tw-text-m-3xl","md:tw-h-d-32","md:tw-text-d-3xl","tw-aspect-square","tw-flex","tw-items-center","tw-cursor-pointer","hover:tw-text-rosalina","tw-transition-all","tw-duration-200","tw-ease-out","active:tw-translate-y-d-2"],[1,"ph-light","ph-calendar-heart"]],template:function(t,r){t&1&&(c(0,"div",0),w(1,"i",1),p()),t&2&&q("tw-text-toad",!r.activeRoute)("tw-text-rosalina",r.activeRoute)}})}}return n})();function Aa(n,i){if(n&1&&w(0,"asset",9),n&2){let e=u();d("asset",e.cover[0].value)("assetSize","medium")("assetResponsive","contain")}}function Na(n,i){if(n&1&&(c(0,"span"),w(1,"span",11),f(2,"highlight"),g(3),p()),n&2){let e=i.$implicit,t=u(2);s(),d("innerHTML",et(2,2,e.value,t.term),vt),s(2),y(" ")}}
7function Da(n,i){if(n&1&&(c(0,"span"),g(1," ( "),C(2,Na,4,5,"span",10),g(3," ) "),p()),n&2){let e=u();s(2),d("ngForOf",e.keyCharacteristics)}}var Jo=(()=>{class n{constructor(e){this._tools=e,this.color="Blue",this.resultClick=new nt}ngOnInit(){this.startComponent()}startComponent(){this.keyCharacteristics=this._tools.getKeyCharactersiticsValues(this.sku.characteristics,2),this.cover=this._tools.filterCharacteristic(this.sku.characteristics,"cover")}openSku(){this.resultClick.emit()}static{this.\u0275fac=function(t){return new(t||n)(h(B))}}static{this.\u0275cmp=P({type:n,selectors:[["smart-search-result"]],inputs:{sku:"sku",term:"term",preselected:"preselected",index:"index",color:"color"},outputs:{resultClick:"resultClick"},decls:12,vars:13,consts:[[3,"click"],["class","skuAsset m-adapt-mr-4",3,"asset","assetSize","assetResponsive",4,"ngIf"],[1,"titleWrapper"],[1,"fontNormal","mobileFontSmall"],[1,"name",3,"innerHTML"],[4,"ngIf"],[1,"link","hideOnMobile"],[1,"fontNormal","alwaysUnderlinedBlackXl"],["src","/assets/icons/right-arrow.svg"],[1,"skuAsset","m-adapt-mr-4",3,"asset","assetSize","assetResponsive"],[4,"ngFor","ngForOf"],[1,"key-characteristic",3,"innerHTML"]],template:function(t,r){t&1&&(c(0,"div",0),b("click",function(){return r.openSku()}),C(1,Aa,1,3,"asset",1),c(2,"div",2)(3,"p",3),w(4,"span",4),f(5,"highlight"),C(6,Da,4,1,"span",5),p()(),c(7,"a",6)(8,"span",7),g(9),f(10,"translate"),p(),w(11,"img",8),p()()),t&2&&(Ne("smart-search-result mh-32 backgroundHover",r.color,"Xl ",r.preselected?"background"+r.color+"Xl preselected":"",""),s(),d("ngIf",r.cover&&r.cover.length>0),s(3),d("innerHTML",et(5,8,r.sku.name,r.term),vt),s(2),d("ngIf",r.keyCharacteristics.length>0),s(3),y(_(10,11,"search.goto-product.cta")))},dependencies:[Re,F,st,K,Kr],styles:[".smart-search-result[_ngcontent-%COMP%]{height:4.58vw;padding:0 2.77vw;display:flex;align-items:center;cursor:pointer;transition:background .1s;border-bottom:1px solid white}.smart-search-result[_ngcontent-%COMP%]:hover, .preselected[_ngcontent-%COMP%]{transition:background .2s}.skuAsset[_ngcontent-%COMP%]{width:3.47vw;height:4.16vw;flex-shrink:0}.titleWrapper[_ngcontent-%COMP%]{flex-grow:1;padding:0 .4em}.link[_ngcontent-%COMP%]{opacity:0}.link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Poppins-Regular}.link[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{font-family:Poppins-Bold}.smart-search-result[_ngcontent-%COMP%]:hover .link[_ngcontent-%COMP%], .preselected[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{opacity:1}.link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:.718em;padding-left:.4em;vertical-align:middle;display:inline-block}@media screen and (min-width: 1440px){.smart-search-result[_ngcontent-%COMP%]{height:66px;padding:0 40px}.skuAsset[_ngcontent-%COMP%]{width:50px;height:60px}}@media screen and (max-width: 800px){.smart-search-result[_ngcontent-%COMP%]{height:45.83px;padding:0 27.77px}.skuAsset[_ngcontent-%COMP%]{width:34.72px;height:41.66px}}@media screen and (min-width:560px) and (max-width: 800px) and (max-aspect-ratio: 13/9){.smart-search-result[_ngcontent-%COMP%]{border:none;color:#fff;padding:0 17.5px}.titleWrapper[_ngcontent-%COMP%]{padding:0;overflow:hidden}.titleWrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skuAsset[_ngcontent-%COMP%]{width:56px;height:42px}}@media screen and (min-width:320px) and (max-width: 560px) and (max-aspect-ratio: 13/9){.smart-search-result[_ngcontent-%COMP%]{border:none;color:#fff;padding:0 3.125vw}.titleWrapper[_ngcontent-%COMP%]{padding:0;overflow:hidden}.titleWrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skuAsset[_ngcontent-%COMP%]{width:10vw;height:7.5vw}}@media screen and (max-width:320px) and (max-aspect-ratio: 13/9),screen and (max-width:800px) and (min-aspect-ratio: 13/9){.smart-search-result[_ngcontent-%COMP%]{border:none;color:#fff;padding:0 10px}.titleWrapper[_ngcontent-%COMP%]{padding:0;overflow:hidden}.titleWrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skuAsset[_ngcontent-%COMP%]{width:32px;height:24px}}"]})}}return n})();var La=n=>({"tw-bg-rosalina":n});
7function Fa(n,i){if(n&1){let e=E();c(0,"app-link",13),b("click",function(){S(e);let r=u(3);return M(r.onResultClick())}),c(1,"app-button",14),g(2),p()()}if(n&2){let e=i.$implicit,t=i.index,r=u(3);d("uri",e.url),s(),d("ngClass",be(3,La,r.selectedIndex===t)),s(),T(" ",e.label," ")}}function Va(n,i){if(n&1&&(c(0,"div",10)(1,"div",11),C(2,Fa,3,5,"app-link",12),p()()),n&2){let e=u(2);s(2),d("ngForOf",e.contextuableSearchResults)}}function ja(n,i){if(n&1){let e=E();c(0,"smart-search-result",17),b("resultClick",function(){let r=S(e).index,o=u(3);return M(o.handleResultClick(r))}),p()}if(n&2){let e=i.$implicit,t=i.index,r=u(3);d("color","Blue")("sku",e)("term",r.searchTerm)("index",t)("preselected",r.selectedIndex===t)}}function za(n,i){if(n&1&&(c(0,"div",15),C(1,ja,1,5,"smart-search-result",16),p()),n&2){let e=u(2);s(),d("ngForOf",e.searchResults)}}function Wa(n,i){if(n&1){let e=E();c(0,"a",18),b("click",function(){S(e);let r=u(2);return M(r.navigateToAllResults())}),c(1,"span",19),g(2),f(3,"translate"),p(),w(4,"i",20),p()}if(n&2){let e=u(2);q("md:tw-bg-grey-80",e.selectedIndex!==e.searchResults.length)("md:tw-bg-rosalina",e.selectedIndex===e.searchResults.length)("md:tw-text-black",e.selectedIndex===e.searchResults.length),s(2),y(_(3,7,"search.goto-all-results.cta"))}}function Ua(n,i){if(n&1&&(c(0,"div",6),C(1,Va,3,1,"div",7)(2,za,2,1,"div",8)(3,Wa,5,9,"a",9),p()),n&2){let e=u();s(),d("ngIf",e.contextuableSearchResults.length>0),s(),d("ngIf",e.searchResults.length>0),s(),d("ngIf",e.searchResults.length>0)}}var is=(()=>{class n{constructor(e,t,r,o,a,l,m){this._ecpServ=e,this._contextuablesService=t,this.gtmSubsService=r,this.elementRef=o,this.applicationService=a,this._tools=l,this.router=m,this.searchResults=[],this.contextuableSearchResults=[],this.showLoadingSpinner=!1,this.showSmartSearch=!1,this.selectedIndex=-1,this.formSearch=new yi({search:new yt("")}),this.pendingSkus=null,this.pendingContextuables=null}ngOnInit(){this.applicationService.isBrowser()&&(this.formSearchSubscription=this.formSearch.valueChanges.subscribe(e=>{this.handleSearch()}),this.subscribeToContextuables())}subscribeToContextuables(){this.contextuableSubscription=this._contextuablesService.contextuablesFound.subscribe(e=>{this.pendingContextuables=e,this.updateResultsIfBothReady()})}updateResultsIfBothReady(){this.pendingSkus!==null&&this.pendingContextuables!==null&&(this.searchResults=this.pendingSkus.slice(0,4),this.contextuableSearchResults=this.pendingContextuables,this.showLoadingSpinner=!1,this.showSmartSearch=!0,this.selectedIndex=-1,this.pendingSkus=null,this.pendingContextuables=null)}get totalResults(){return this.searchResults.length+1}onKeyDown(e){if((e.metaKey||e.ctrlKey)&&e.code==="KeyF"){e.preventDefault();let r=this.elementRef.nativeElement.querySelector("input");r&&r.focus();return}let t=this.elementRef.nativeElement.querySelector("input");if(e.code==="Enter"&&t===document.activeElement){if(e.preventDefault(),t.blur(),this.showSmartSearch&&this.selectedIndex>=0)this.selectCurrentItem();else{let r=this.formSearch.get("search")?.value||"";r.trim().length>=3&&(this.handleAllResultsClick(),this.router.navigate(["/buscar",r]))}return}this.showSmartSearch&&(e.code==="ArrowDown"?(e.preventDefault(),this.selectedIndex=(this.selectedIndex+1)%this.totalResults):e.code==="ArrowUp"&&(e.preventDefault(),this.selectedIndex=this.selectedIndex<=0?this.totalResults-1:this.selectedIndex-1))}selectCurrentItem(){this.selectedIndex>=0&&this.selectedIndex<this.searchResults.length?this.handleResultClick(this.selectedIndex):this.navigateToAllResults()}handleSearch(){if(!this.applicationService.isBrowser())return;let e=this.formSearch.get("search")?.value||"";this.searchTimeout&&clearTimeout(this.searchTimeout),e.trim().length>=3?(e!==this.searchTerm||!this.showSmartSearch)&&(this.searchTimeout=setTimeout(()=>{this.searchSubscription&&this.searchSubscription.unsubscribe(),this.contextuableSubscription&&this.contextuableSubscription.unsubscribe(),this.showLoadingSpinner=!0,this.searchTerm=e,this.subscribeToContextuables(),this._contextuablesService.search(e),this.searchSubscription=this._ecpServ.smartSearch(e).subscribe(t=>{this.pendingSkus=t,this.updateResultsIfBothReady(),this.gtmSubsService.sendDataLayer({event:"Search",searchTerm:this.searchTerm,resultsCount:t.length})})},200)):(this.searchResults=[],this.contextuableSearchResults=[],this.showSmartSearch=!1,this.searchTerm="")}resetSearch(){this.formSearch.get("search")?.setValue(""),this.searchResults=[],this.contextuableSearchResults=[],this.showSmartSearch=!1,this.showLoadingSpinner=!1,this.selectedIndex=-1}hideSmartSearch(){this.showSmartSearch=!1,this.selectedIndex=-1}onInputFocus(){(this.searchResults.length>0||this.contextuableSearchResults.length>0)&&(this.showSmartSearch=!0)}onResultClick(){this.searchSubscription&&this.searchSubscription.unsubscribe(),this.contextuableSubscription&&this.contextuableSubscription.unsubscribe(),this.showSmartSearch=!1,this.resetSearch()}handleResultClick(e){let t={event:"SmartSearchResultClicked",searchTerm:this.searchTerm,position:e+1};this.gtmSubsService.sendDataLayer(t),this._tools.openSku(this.searchResults[e]),this.onResultClick()}handleAllResultsClick(){this.gtmSubsService.sendDataLayer({event:"Search",searchTerm:this.searchTerm,resultsCount:this.searchResults.length}),this.onResultClick()}navigateToAllResults(){let e=this.formSearch.get("search")?.value||"";this.handleAllResultsClick(),this.router.navigate(["/buscar",e])}onDocumentClick(e){this.elementRef.nativeElement.contains(e.target)||this.hideSmartSearch()}ngOnDestroy(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchSubscription&&this.searchSubscription.unsubscribe(),this.formSearchSubscription&&this.formSearchSubscription.unsubscribe(),this.contextuableSubscription&&this.contextuableSubscription.unsubscribe(),this.pendingSkus=null,this.pendingContextuables=null}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(Wt),h(zt),h(Te),h(Se),h(B),h(ve))}}static{this.\u0275cmp=P({type:n,selectors:[["search-box"]],hostBindings:function(t,r){t&1&&b("keydown",function(a){return r.onKeyDown(a)},!1,Gt)("click",function(a){return r.onDocumentClick(a)},!1,Gt)},decls:6,vars:4,consts:[["searchInput",""],[1,"tw-bg-toad","tw-rounded-m-6","md:tw-rounded-d-8","focus-within:tw-border-2","focus-within:tw-border-rosalina","focus-within:tw--m-[2px]"],["action","/buscar",1,"tw-h-m-36","md:tw-h-d-44","tw-flex","tw-items-center","tw-px-m-10","md:tw-px-d-16",3,"submit","formGroup"],["spellcheck","fal
7se","type","text","autocomplete","off","placeholder","Buscar",1,"tw-flex-grow","tw-flex-shrink","tw-min-w-0","tw-bg-transparent","tw-font-xtralife","tw-text-m-base","md:tw-text-d-base","focus:tw-outline-none",3,"focus","name","formControlName"],[1,"tw-flex-shrink-0","tw-text-m-2xl","md:tw-text-d-2xl","ph","ph-magnifying-glass","tw-text-black"],["class","tw-fixed tw-left-0 tw-w-full tw-top-m-96 md:tw-top-d-84 tw-z-50 tw-flex tw-flex-col tw-bg-grey-80 md:tw-bg-grey-30",4,"ngIf"],[1,"tw-fixed","tw-left-0","tw-w-full","tw-top-m-96","md:tw-top-d-84","tw-z-50","tw-flex","tw-flex-col","tw-bg-grey-80","md:tw-bg-grey-30"],["class","contextuables-scroll tw-overflow-x-auto",4,"ngIf"],["class","tw-border tw-border-y-1 tw-border-grey-70 md:tw-border-grey-50",4,"ngIf"],["class",`tw-h-m-40 md:tw-h-d-48 tw-text-toad tw-text-m-base md:tw-text-d-base tw-font-xtralife hover:md:tw-bg-rosalina hover:md:tw-text-black 8 tw-flex tw-gap-m-4 md:tw-gap-d-4 tw-items-center tw-justify-center tw-cursor-pointer`,3,"md:tw-bg-grey-80","md:tw-bg-rosalina","md:tw-text-black","click",4,"ngIf"],[1,"contextuables-scroll","tw-overflow-x-auto"],[1,"tw-flex","tw-flex-nowrap","tw-px-m-10","tw-py-m-8","tw-gap-m-8","md:tw-px-d-40","md:tw-py-d-16","md:tw-gap-d-8"],[3,"uri","click",4,"ngFor","ngForOf"],[3,"click","uri"],["size","small",3,"ngClass"],[1,"tw-border","tw-border-y-1","tw-border-grey-70","md:tw-border-grey-50"],[3,"color","sku","term","index","preselected","resultClick",4,"ngFor","ngForOf"],[3,"resultClick","color","sku","term","index","preselected"],[1,"tw-h-m-40","md:tw-h-d-48","tw-text-toad","tw-text-m-base","md:tw-text-d-base","tw-font-xtralife","hover:md:tw-bg-rosalina","hover:md:tw-text-black","tw-flex","tw-gap-m-4","md:tw-gap-d-4","tw-items-center","tw-justify-center","tw-cursor-pointer",3,"click"],[1,"alwaysUnderlinedWhiteXl"],[1,"ph","ph-caret-right"]],template:function(t,r){if(t&1){let o=E();c(0,"div",1)(1,"form",2),b("submit",function(){return S(o),M(r.handleSearch())}),c(2,"input",3,0),b("focus",function(){return S(o),M(r.onInputFocus())}),p(),w(4,"i",4),p()(),C(5,Ua,4,3,"div",5)}if(t&2){let o=X(3);s(),d("formGroup",r.formSearch),s(),d("name",o)("formControlName","search"),s(3),d("ngIf",r.showSmartSearch)}},dependencies:[Dr,Re,F,Lt,Zr,Ci,Rt,bi,Si,Ge,Bo,Jo,K],styles:[".contextuables-scroll[_ngcontent-%COMP%]{scrollbar-width:none}"]})}}return n})();var ns=(()=>{class n{constructor(){}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["xtralife-logo"]],decls:1,vars:0,consts:[["alt","xtralife","src","/assets/icons/logo.white.svg",1,"tw-h-m-28","md:tw-h-d-32"]],template:function(t,r){t&1&&w(0,"img",0)},changeDetection:0})}}return n})();var xn=function(n){return n.Dark="backgroundHoverGreyDark",n.Red="backgroundHoverRedXl",n.Blue="backgroundHoverBlueXl",n.Purple="backgroundHoverPurpleXl",n.Yellow="backgroundHoverYellowXl",n.Green="backgroundHoverGreenXl",n}(xn||{}),bt=function(n){return n.Light="backgroundGreyLight",n.Lighter="backgroundGreyLighter",n.Red="backgroundRedXl",n.Blue="backgroundBlueXl",n.Purple="backgroundPurpleXl",n.Yellow="backgroundYellowXl",n.Green="backgroundGreenXl",n}(bt||{});function $a(n,i){n&1&&(c(0,"span",6),g(1),f(2,"translate"),p()),n&2&&(s(),T("",_(2,1,"general.reserve-mobile.cta"),"\xA0"))}function Qa(n,i){n&1&&(w(0,"img",7),f(1,"translate")),n&2&&De("alt",_(1,1,"general.add-to-cart.cta"))}
8function Xa(n,i){if(n&1&&w(0,"cart-loader",8),n&2){let e=u(2);d("editionNumber",e.editionNumber)}}function Ga(n,i){if(n&1){let e=E();c(0,"a",1),b("click",function(r){return S(e),u().doAction(),r.stopPropagation(),M(r.preventDefault())}),C(1,$a,3,3,"span",2)(2,Qa,2,3,"img",3),c(3,"span",4),g(4),f(5,"translate"),p(),C(6,Xa,1,1,"cart-loader",5),p()}if(n&2){let e=u();N("primaryButton",e.color,"Xl h-40 mh-30 cursorPointer mobileButton"),s(),d("ngIf",e.product.availability.type==="RESERVATION"),s(),d("ngIf",e.product.availability.type==="SELL"),s(2),y(_(5,7,e.product.availability.type==="SELL"?"general.add-to-cart.cta":"general.reserve.cta")),s(2),d("ngIf",e.showLoader)}}var rs=(()=>{class n{constructor(e,t){this._order=e,this._ecpServ=t,this.hideDetailsLinks=!1,this.sectionEvent=new nt,this.showLoader=!1}ngOnInit(){this.buttonClass=this.classes?this.classes:this.poster.productId?"button":"primaryButton"}doAction(){if(this.product){this.sectionEvent.emit({name:"addToCart",object:this.poster,payload:{quantity:1}}),this.showLoader=!0;let e={id:parseInt(this.product.productId,null),deliveryMethods:this.product.deliveryMethods};this.editionNumber=this._order.editItems(e,1,this.product.availability.type.toLowerCase())}}static{this.\u0275fac=function(t){return new(t||n)(h(Fe),h(z))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-banner-buttons"]],inputs:{poster:"poster",product:"product",color:"color",classes:"classes",isCalendar:"isCalendar",gtmModuleMetadata:"gtmModuleMetadata",hideDetailsLinks:"hideDetailsLinks",moduleName:"moduleName"},outputs:{sectionEvent:"sectionEvent"},decls:1,vars:1,consts:[[3,"class","click",4,"ngIf"],[3,"click"],["class","fontNormal showOnMobile",4,"ngIf"],["src","/assets/icons/mobile-cart.svg","class","showOnMobile",3,"alt",4,"ngIf"],[1,"fontNormal","fontBold","hideOnMobile"],[3,"editionNumber",4,"ngIf"],[1,"fontNormal","showOnMobile"],["src","/assets/icons/mobile-cart.svg",1,"showOnMobile",3,"alt"],[3,"editionNumber"]],template:function(t,r){t&1&&C(0,Ga,7,9,"a",0),t&2&&d("ngIf",r.poster.productId&&((r.product==null||r.product.availability==null?null:r.product.availability.type)==="SELL"||(r.product==null||r.product.availability==null?null:r.product.availability.type)==="RESERVATION"))},dependencies:[F,bo,K],styles:[".mobileButton[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin:0;max-width:none}"],changeDetection:0})}}return n})();function Ya(n,i){if(n&1&&w(0,"asset",9),n&2){let e=u();d("altText",e.poster.title)("asset",e._sectionsService.getAsset(e.poster.assetId))("assetSize","medium")("assetResponsive","cover")}}function Za(n,i){if(n&1&&(c(0,"h3",10),g(1),p()),n&2){let e=u();s(),y(e.poster.subtitle)}}function Ja(n,i){if(n&1){let e=E();c(0,"menu-banner-buttons",13),b("sectionEvent",function(r){S(e);let o=u(2);return M(o._sectionsService.sendSectionEvent(r,"bannerA4"))}),p()}if(n&2){let e=u(2);
8d("poster",e.poster)("product",e.product)("color","White")}}function el(n,i){if(n&1&&(c(0,"div",11),C(1,Ja,1,3,"menu-banner-buttons",12),p()),n&2){let e=u();s(),d("ngIf",e.contentLoaded)}}var os=(()=>{class n{constructor(e,t,r){this._tools=e,this._sectionsService=t,this._ref=r,this.contentLoaded=!1}ngOnInit(){this.poster=this.element.module.posters[0],this.color=this.element.metadata.colorOverride,this.sectionServiceSub=this._sectionsService.contentLoaded(this.sectionId).pipe(ie(1)).subscribe(e=>{this.contentLoaded=e,this.product=this.poster.productId?this._sectionsService.getProduct(this.poster.productId):null,this._ref.detectChanges()})}ngOnDestroy(){this.sectionServiceSub&&this.sectionServiceSub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(h(B),h(Ve),h(me))}}static{this.\u0275cmp=P({type:n,selectors:[["banner-a4"]],inputs:{sectionId:"sectionId",element:"element"},decls:15,vars:19,consts:[[3,"uri"],[1,"top"],[3,"altText","asset","assetSize","assetResponsive",4,"ngIf"],[1,"pixels",3,"src"],[1,"bottomWrapper"],[1,"title"],[1,"mobilefontSmall","colorBlack","fontNormal","fontBold"],["class","mobileFontSmall colorBlack fontSmall",4,"ngIf"],["class","buttons-container shadowXl",4,"ngIf"],[3,"altText","asset","assetSize","assetResponsive"],[1,"mobileFontSmall","colorBlack","fontSmall"],[1,"buttons-container","shadowXl"],["classes","button",3,"poster","product","color","sectionEvent",4,"ngIf"],["classes","button",3,"sectionEvent","poster","product","color"]],template:function(t,r){t&1&&(c(0,"app-link",0)(1,"div")(2,"div",1),C(3,Ya,1,4,"asset",2),p(),c(4,"div"),f(5,"titlecase"),w(6,"img",3),f(7,"lowercase"),c(8,"div",4)(9,"div",5)(10,"h2",6),g(11),f(12,"uppercase"),p(),C(13,Za,2,1,"h3",7),p()()(),C(14,el,2,1,"div",8),p()()),t&2&&(d("uri",r.poster.uri),s(),N("banner-a4 h-100per ",r._tools.isMobile?"shadowXl":"",""),s(2),d("ngIf",r.contentLoaded),s(),N("bottom background",_(5,13,r.color),"Xl text-align-center"),s(2),$e("src","/assets/pixels/original-pixels-top_",_(7,15,r.color),".svg",Ae),s(5),y(_(12,17,r.poster.title)),s(2),d("ngIf",r.poster.subtitle),s(),d("ngIf",!r._tools.isMobile))},dependencies:[F,st,Ge,rs,_i,gi,re],styles:[".banner-a4[_ngcontent-%COMP%]{position:relative;margin:0 .1vw}.buttons-container[_ngcontent-%COMP%]{opacity:0;transition:opacity .1s;position:absolute;top:35%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:80%;z-index:8;max-width:260px;background-color:#22272a}.banner-a4[_ngcontent-%COMP%]:hover .buttons-container[_ngcontent-%COMP%]{opacity:1;transition:opacity .2s}.bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;padding:1.2vw .4vw;width:100%;height:38.46%;background-color:#212729;transition:height .2s}.bottom[_ngcontent-%COMP%] .pixels[_ngcontent-%COMP%]{position:absolute;bottom:100%;left:0}.top[_ngcontent-%COMP%]{height:61.75%}.banner-a4[_ngcontent-%COMP%]:hover .bottom[_ngcontent-%COMP%]{height:43.58%;transition:height .1s}.bottom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.bottomWrapper[_ngcontent-%COMP%]{height:100%;width:100%;position:relative}section-pricing[_ngcontent-%COMP%]{width:100%;color:#fff}.mobilePricingLabel[_ngcontent-%COMP%]{position:absolute;bottom:0}.memberLinksWrapper[_ngcontent-%COMP%]{margin-top:.41vw}.memberLink[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;line-height:1.6}@media screen and (min-width: 1440px){.bottom[_ngcontent-%COMP%]{padding:.4vw}section-pricing[_ngcontent-%COMP%]{margin-top:21px}.banner-a4[_ngcontent-%COMP%]{margin:0 1.5px}.memberLinksWrapper[_ngcontent-%COMP%]{margin-top:6px}}@media screen and (max-width: 1000px){.bottom[_ngcontent-%COMP%]{padding:17.3px}section-pricing[_ngcontent-%COMP%]{margin-top:14.5px}.banner-a4[_ngcontent-%COMP%]{margin:0 1.04px}.memberLinksWrapper[_ngcontent-%COMP%]{margin-top:4.16px}.banner-a4[_ngcontent-%COMP%]{height:90vw!important;margin:8.2vw;overflow:hidden;display:flex;flex-direction:column}.banner-a4[_ngcontent-%COMP%]:hover .bottom[_ngcontent-%COMP%]{height:auto}
8.banner-a4[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{flex:0 0 74%;height:auto}.banner-a4[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{min-height:26%;height:auto}}"],changeDetection:0})}}return n})();function il(n,i){if(n&1&&(c(0,"div",3)(1,"div",4),w(2,"asset",5)(3,"img",6),f(4,"lowercase"),p(),c(5,"div"),f(6,"titlecase"),c(7,"div",7)(8,"div",8)(9,"h2",9),g(10),f(11,"uppercase"),p(),c(12,"h3",10),g(13),p()()()()()),n&2){let e=u(2);s(2),d("asset",e.asset)("altText",e.poster.title)("assetSize","big")("assetResponsive","cover"),s(),$e("src","/assets/pixels/original-pixels-left-",_(4,11,e.element.metadata==null?null:e.element.metadata.colorOverride),".svg",Ae),s(2),N("rightContent background",_(6,13,e.element.metadata==null?null:e.element.metadata.colorOverride),"Xl"),s(5),y(_(11,15,e.poster.title)),s(3),y(e.poster.subtitle)}}function nl(n,i){if(n&1){let e=E();c(0,"app-link",1),b("afterClick",function(){S(e);let r=u();return M(r._sectionsService.sendSectionEvent({name:"productClick",object:r.poster},"menu-bannerA1"))}),C(1,il,14,17,"div",2),p()}if(n&2){let e=u();d("uri",e.poster.uri),s(),d("ngIf",e.poster)}}var ss=(()=>{class n{constructor(e,t,r){this._tools=e,this._sectionsService=t,this._ref=r,this.contentLoaded=!1}ngOnInit(){this.poster=this.element.module.posters[0],this.sectionServiceSub=this._sectionsService.contentLoaded(this.sectionId).pipe(ie(1)).subscribe(e=>{this.contentLoaded=!0,this.asset=this.poster.assetId?this._sectionsService.getAsset(this.poster.assetId):null,this.secondaryAsset=this.poster.secondaryAssetId?this._sectionsService.getAsset(this.poster.secondaryAssetId):null,this.product=this.poster.productId?this._sectionsService.getProduct(this.poster.productId):null,this._ref.markForCheck()})}ngOnDestroy(){this.sectionServiceSub&&this.sectionServiceSub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(h(B),h(Ve),h(me))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-banner-a1"]],inputs:{sectionId:"sectionId",element:"element",color:"color",loaded:"loaded"},decls:1,vars:1,consts:[["classes","",3,"uri","afterClick",4,"ngIf"],["classes","",3,"afterClick","uri"],["class","slider-a1-slide h-290",4,"ngIf"],[1,"slider-a1-slide","h-290"],[1,"left","mh-230","colorWhite"],[1,"feature",3,"asset","altText","assetSize","assetResponsive"],[1,"pixels",3,"src"],[1,"rightWrapper"],[1,"title"],[1,"fontXXl","fontBold","colorBlack"],[1,"subtitle","fontBig","colorBlack"]],template:function(t,r){t&1&&C(0,nl,2,2,"app-link",0),t&2&&d("ngIf",r.contentLoaded)},dependencies:[F,st,Ge,_i,gi,re],styles:[".slider-a1-slide[_ngcontent-%COMP%]{position:relative;width:100%;background-color:#212729;overflow:hidden}.rightContent[_ngcontent-%COMP%]{position:absolute;background:#212729;top:0;right:0;padding:2vw 4.5vw 0;width:50%;height:100%;z-index:2}.title[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin-top:1em}.left[_ngcontent-%COMP%]{height:100%;width:50%;position:absolute}.left[_ngcontent-%COMP%] .pixels[_ngcontent-%COMP%]{width:auto;height:100%;position:absolute;top:0;right:0}.left[_ngcontent-%COMP%] .feature[_ngcontent-%COMP%]{width:100%;height:100%}.left[_ngcontent-%COMP%] .hover[_ngcontent-%COMP%]{position:absolute;top:0;right:0;height:100%;width:auto;z-index:1}.rightWrapper[_ngcontent-%COMP%]{height:100%;width:100%;position:relative}poster-pricing[_ngcontent-%COMP%]{margin-top:1.45vw}.bottom[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0}.bottomMobile[_ngcontent-%COMP%]{position:relative;left:0;right:0;bottom:0;z-index:9}.buttons[_ngcontent-%COMP%]{width:16.66vw;border-width:1px;border-style:solid;margin-top:2.77vw}.slider-thumbs-title[_ngcontent-%COMP%]{position:absolute;background:#212729b3;bottom:0;left:0;right:0;height:auto;color:#fff;z-index:9;display:flex;align-items:center;padding:.6em 1em}"],changeDetection:0})}}return n})();var sl=["*"],al=()=>[];function ll(n,i){if(n&1){let e=E();c(0,"a",11),b("click",function(){S(e);let r=u(2),o=r.$implicit,a=r.index,l=u();return M(l.sendFirstLevelMenuEvent(o,a+1))}),g(1),w(2,"span",12),p()}if(n&2){let e=u(2).$implicit,t=u();Kt("fontSmall fontBold flex align-items-center ",t.bgClasses[e.metadata==null?null:e.metadata.background]," ",e.metadata!=null&&e.metadata.hasOwnProperty("hover")?t.hovClasses[e.metadata==null?null:e.metadata.hover]:"backgroundHoverGreyDark hoverColorWhiteXl"," ",e.metadata!=null&&e.metadata.uri?"":"cursorDefault",""),q("active",t.isActive(e.metadata==null?null:e.metadata.uri)),d("routerLink",e.metadata==null?null:e.metadata.uri),s(),T(" ",e.metadata==null?null:e.metadata.title," ")}}function cl(n,i){if(n&1&&(c(0,"span"),g(1),w(2,"span",12),p()),n&2){let e=u(2).$implicit,t=u();Kt("fontSmall fontBold flex align-items-center ",t.bgClasses[e.metadata==null?null:e.metadata.background]," ",e.metadata!=null&&e.metadata.hasOwnProperty("hover")?t.hovClasses[e.metadata==null?null:e.metadata.hover]:"backgroundHoverGreyDark hoverColorWhiteXl"," ",e.metadata!=null&&e.metadata.uri?"":"cursorDefault",""),s(),T(" ",e.metadata==null?null:e.metadata.title," ")}}function pl(n,i){if(n&1){let e=E();
8c(0,"li",8),b("mouseenter",function(){S(e);let r=u(),o=r.$implicit,a=r.index,l=u();return M(l.showSubmenu(o,a+1))})("mouseleave",function(){S(e);let r=u(2);return M(r.clearTimerSubmenu())}),C(1,ll,3,9,"a",9)(2,cl,3,6,"span",10),p()}if(n&2){let e=u().$implicit;s(),d("ngIf",e.metadata==null?null:e.metadata.uri),s(),d("ngIf",!(e.metadata!=null&&e.metadata.uri))}}function dl(n,i){if(n&1&&(ae(0),C(1,pl,3,2,"li",7),le()),n&2){let e=i.$implicit;s(),d("ngIf",(e.metadata==null?null:e.metadata.behaviour)!=="section")}}function ml(n,i){if(n&1){let e=E();ae(0),c(1,"li",19)(2,"a",11),b("click",function(){let r=S(e),o=r.$implicit,a=r.index,l=u(2).index,m=u().$implicit,v=u(2);return M(v.sendThirdLevelMenuEvent(m,l,o,a))}),g(3),p()(),le()}if(n&2){let e=i.$implicit,t=u(5);s(2),N("fontNormal ",e.metadata!=null&&e.metadata.uri?"underlineHover":"cursorDefault",""),q("active",t.isActive(e.metadata==null?null:e.metadata.uri)),d("routerLink",e.metadata==null?null:e.metadata.uri),s(),T(" ",e.metadata==null?null:e.metadata.title," ")}}function ul(n,i){if(n&1){let e=E();c(0,"ul",17)(1,"li",18)(2,"a",11),b("click",function(){S(e);let r=u().index,o=u().$implicit,a=u(2);return M(a.sendSecondLevelMenuEvent(o,r))}),g(3),p()(),C(4,ml,4,7,"ng-container",5),p()}if(n&2){let e=u().$implicit,t=u().$implicit,r=u(2);N("colorWhite uppercase ",(t.metadata==null?null:t.metadata.columnBehaviour)||"",""),d("hidden",(t.metadata==null?null:t.metadata.title)!==r.submenuShow),s(2),N("fontNormal fontBold ",e.metadata!=null&&e.metadata.uri?"underlineHover":"cursorDefault",""),q("active",r.isActive(e.metadata==null?null:e.metadata.uri)),d("routerLink",e.metadata==null?null:e.metadata.uri),s(),T(" ",e.metadata==null?null:e.metadata.title," "),s(),d("ngForOf",e.children)}}function hl(n,i){n&1&&w(0,"ul")}function fl(n,i){if(n&1){let e=E();ae(0),c(1,"menu-banner-a1",22),b("click",function(){S(e);let r=u(),o=r.$implicit,a=r.index,l=u(2).index,m=u().$implicit,v=u(2);return v.submenuShow="",M(v.sendThirdLevelBannerEvent(m,l,o,a))}),p(),le()}if(n&2){let e=u().$implicit,t=u(5);s(),d("sectionId",t.menuSectionId)("element",e)("loaded",!0)("color","Red")}}function gl(n,i){if(n&1){let e=E();c(0,"banner-a4",24),b("click",function(){S(e);let r=u(2),o=r.$implicit,a=r.index,l=u(2).index,m=u().$implicit,v=u(2);return v.submenuShow="",M(v.sendThirdLevelBannerEvent(m,l,o,a))}),p()}if(n&2){let e=u(2).$implicit,t=u(5);d("sectionId",t.menuSectionId)("element",e)}}function _l(n,i){if(n&1&&(ae(0),C(1,gl,1,2,"banner-a4",23),le()),n&2){let e=u(6);s(),d("ngIf",e.menuItems&&e.menuSectionId)}}function vl(n,i){if(n&1&&(c(0,"carousel-slide"),C(1,fl,2,4,"ng-container",14)(2,_l,2,1,"ng-container",14),p()),n&2){let e=u(2).$implicit,t=u(3);s(),d("ngIf",t.isBannerLarge(e)),s(),d("ngIf",!t.isBannerLarge(e))}}function wl(n,i){if(n&1){let e=E();c(0,"div",25),b("click",function(){S(e);let r=u(2).$implicit,o=u(3);return M(o.carouselNext(r))}),w(1,"i",26),p()}}function Cl(n,i){if(n&1&&(c(0,"div",17)(1,"carousel",20),C(2,vl,3,2,"carousel-slide",5),p(),C(3,wl,2,0,"div",21),p()),n&2){let e=u().$implicit,t=u().$implicit,r=u(2);N("menuSlider ",e.metadata!=null&&e.metadata.hasOwnProperty("removeSeparator")||(e.metadata==null?null:e.metadata.behaviour)==="section"&&e.metadata.columns==6?"removeSeparator":"",""),rt("width",e.metadata.columns*16.6635,"%"),d("hidden",(t.metadata==null?null:t.metadata.title)!==r.submenuShow),s(),d("perPage",r.calcItemsPerPage(e))("loop",!0)("name",e.children[0].metadata.module_id),s(),d("ngForOf",e.children),s(),d("ngIf",r.showSliderButton(e))}}function yl(n,i){if(n&1&&(ae(0),C(1,ul,5,12,"ul",15)(2,hl,1,0,"ul",14)(3,Cl,4,11,"div",16),le()),n&2){let e=i.$implicit;s(),d("ngIf",(e.metadata==null?null:e.metadata.behaviour)!=="section"&&(e.metadata==null?null:e.metadata.behaviour)!=="hidden"),s(),d("ngIf",(e.metadata==null?null:e.metadata.behaviour)==="hidden"),s(),d("ngIf",(e.metadata==null?null:e.metadata.behaviour)==="section")}}function bl(n,i){if(n&1&&w(0,"ul",28),n&2){let e=u(2).$implicit,t=u(2);d("hidden",(e.metadata==null?null:e.metadata.title)!==t.submenuShow)}}function Sl(n,i){if(n&1&&(ae(0),C(1,bl,1,1,"ul",27),le()),n&2){let e=u().$implicit;s(),d("ngForOf",Be(1,al).constructor(6-((e.metadata==null?null:e.metadata.columns)||(e.children==null?null:e.children.length))))}}function Ml(n,i){if(n&1&&(ae(0),C(1,yl,4,3,"ng-container",5)(2,Sl,2,2,"ng-container",14),le()),n&2){let e=i.$implicit;s(),d("ngForOf",e.children),s(),d("ngIf",!!(e.metadata!=null&&e.metadata.columns)||(e.children==null?null:e.children.length)<6)}}function xl(n,i){if(n&1){let e=E();
8c(0,"div",13),b("mouseenter",function(){S(e);let r=u();return M(r.stopCloseMenu())}),C(1,Ml,3,2,"ng-container",5),p()}if(n&2){let e=u();s(),d("ngForOf",e.menuItems)}}var as=(()=>{class n{constructor(e,t,r,o,a,l,m){this._ecpServ=e,this._tools=t,this._carousel=r,this._color=o,this._sectionsService=a,this._eventsService=l,this.router=m,this.delay=300,this.bgClasses=bt,this.hovClasses=xn,this.autoSlide=!1}ngOnInit(){this.getMenuSection(),this._color.restart(2)}getMenuSection(){this.menuItems=[],this.menuSectionId=null,this.menuSubscription=this._sectionsService.getStructureSection("menu-wireframes-dev").pipe(ie(1)).subscribe(e=>{this.menuItems=e?this.filterMenuItems(e.nodes):[],this.menuSectionId=e?e.sectionId:null,this.addColors()})}stopCloseMenu(){this.clearTimerSubmenu()}showSubmenu(e,t){this.clearAutoScrollCounter(),this.clearTimerSubmenu(),e.children&&e.children.length>0?this.mouseleaveCounter||(this.mouseleaveCounter=setTimeout(()=>{this.submenuShow=e.metadata.title,this.clearTimerSubmenu(),this.unfoldMenu(e,t),this.checkIfBannerSlider(e)},this.delay)):this.hideSubmenu()}hideSubmenu(){this.clearAutoScrollCounter(),this.clearTimerSubmenu(),this.mouseleaveCounter=setTimeout(()=>{this.submenuShow=""},this.delay)}clearTimerSubmenu(){clearTimeout(this.mouseleaveCounter),this.mouseleaveCounter=null}checkIfBannerSlider(e){this.autoSlide=e.children.some(t=>t.metadata?.behaviour==="section"&&t.metadata?.columns<t.children?.length&&t.metadata?.autoslide),this.autoSlide&&this.startAutoScrollCounter(e)}startAutoScrollCounter(e){this.clearAutoScrollCounter(),this.autoScrollCounter||(this.autoScrollCounter=setTimeout(()=>{this.carouselNext(e)},6e3))}carouselNext(e){this._carousel.next(1,e.children[0].metadata.module_id),this.autoSlide&&(this.clearAutoScrollCounter(),this.startAutoScrollCounter(e))}clearAutoScrollCounter(){clearTimeout(this.autoScrollCounter),this.autoScrollCounter=null}toggleSearchPanel(){this._tools.showSmartSearch=!this._tools.showSmartSearch}closeMenu(e){e.target instanceof HTMLElement&&e.target.localName==="a"&&(this.submenuShow="")}calcItemsPerPage(e){return this.isBannerLarge(e)?1:e.metadata.columns||1}isBannerLarge(e){return e.children?.length>0&&e.children[0].module.type==="bannerA2"}showSliderButton(e){return this.isBannerLarge(e)?e.children.length>1:e.metadata.columns<e.children.length}ngOnDestroy(){this.menuSubscription&&this.menuSubscription.unsubscribe(),this.storefrontSubscription&&this.storefrontSubscription.unsubscribe(),this.experimentSubscription&&this.experimentSubscription.unsubscribe(),this.clearTimerSubmenu(),this.clearAutoScrollCounter(),this.submenuShow=""}addColors(){this.menuItems.forEach((e,t)=>{if(this._color.restart(t),e.children){let r=e.children.findIndex(o=>o.metadata.behaviour==="section");r!==-1&&this.menuItems[t].children[r].children.forEach(o=>{o.metadata.colorOverride=this._color.nextColor()})}})}filterMenuItems(e){return e.filter(t=>!t.metadata.hasOwnProperty("onlyInMobile")&&!t.metadata.hasOwnProperty("pinned")).map(t=>(t.children&&(t.children=this.filterMenuItems(t.children)),t))}unfoldMenu(e,t){this._eventsService.eventBus.dispatch(new Fi({type:"MenuItem",path:"",position:t,name:e.metadata.title}))}sendFirstLevelMenuEvent(e,t){this._eventsService.eventBus.dispatch(new Ke({type:"MenuItem",path:"",position:t,name:e.metadata.title}))}sendSecondLevelMenuEvent(e,t){this._eventsService.eventBus.dispatch(new Ke({type:"MenuItem",path:e.metadata.title,position:t+1,name:e.children[t].metadata.title}))}sendThirdLevelMenuEvent(e,t,r,o){this._eventsService.eventBus.dispatch(new Ke({type:"MenuItem",path:`${e.metadata.title} > ${e.children[t].metadata.title}`,position:o+1,name:r.metadata.title}))}sendThirdLevelBannerEvent(e,t,r,o){let a=r?.module?.posters&&r.module.posters.length>0?r.module.posters:[];this._eventsService.eventBus.dispatch(new Ke({type:"MenuItemBanner",path:`${e.metadata.title}`,position:o+1,name:a.length>0&&a[0].title?a[0].title:""}))}isActive(e){return e===this.router.url.split("?")[0]}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(B),h(ji),h(Bt),h(Ve),h(he),h(ve))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-desktop"]],ngContentSelectors:sl,decls:9,vars:5,consts:[[3,"click","mouseleave"],[1,"menu-wrapper","backgroundGreyLighter"],[1,"menu-desktop","tw-h-d-36","flex-direction-row","flex","align-items-center"],[3,"click","mouseenter"],[1,"fa","fa-search"],[4,"ngFor","ngForOf"],["class","submenu-wrapper flex flex-direction-column flex-wrap h-345",3,"mouseenter",4,"ngIf"],["class","item flex flex-grow uppercase align-items-center",3,"mouseenter","mouseleave",4,"ngIf"],[1,"item","flex","flex-grow","uppercase","align-items-center",3,"mouseenter","mouseleave"],[3,"class","routerLink","active","click",4,"ngIf"],[3,"class",4,"ngIf"],[3,"click","routerLink"],[1,"point","backgroundGreyDark"],[1,"submenu-wrapper","flex","flex-direction-column","flex-wrap","h-345",3,"mouseenter"],[4,"ngIf"],[3,"class","hidden",4,"ngIf"],[3,"width","class","hidden",4,"ngIf"],[3,"hidden"],[1,"h-35","align-items-center"],[1,"h-35","align-items-center","secondChild"],[1,"h-100per",3,"perPage","loop","name"],["class","rightArrow cursorPointer",3,"click",4,"ngIf"],[3,"click","
8sectionId","element","loaded","color"],["class","h-100per",3,"sectionId","element","click",4,"ngIf"],[1,"h-100per",3,"click","sectionId","element"],[1,"rightArrow","cursorPointer",3,"click"],[1,"fas","fa-chevron-right"],["class","",3,"hidden",4,"ngFor","ngForOf"],[1,"",3,"hidden"]],template:function(t,r){t&1&&(ot(),c(0,"div",0),b("click",function(a){return r.closeMenu(a)})("mouseleave",function(){return r.hideSubmenu()}),c(1,"div",1)(2,"ul",2)(3,"li",3),b("click",function(a){return a.stopPropagation(),r.toggleSearchPanel()})("mouseenter",function(){return r.hideSubmenu()}),w(4,"i",4),g(5,"Buscar "),p(),C(6,dl,2,1,"ng-container",5),p()(),C(7,xl,2,1,"div",6),Je(8),p()),t&2&&(s(3),N("search ",r._tools.showSmartSearch?"open":""," fontSmall uppercase fontBold backgroundGreyDark colorWhite"),s(3),d("ngForOf",r.menuItems),s(),d("ngIf",!!r.submenuShow))},dependencies:[Re,F,ue,Eo,Io,os,ss],styles:[".menu-wrapper[_ngcontent-%COMP%]{width:100%}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%]{max-width:1440px;margin:auto}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{padding:0 1vw;cursor:pointer;height:100%;display:flex;align-items:center}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{height:100%}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;height:100%;justify-content:center;position:relative}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .point[_ngcontent-%COMP%], .menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] span[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:none;width:14px;height:4px;position:absolute;bottom:3px;left:50%;margin-left:-7px;border-radius:6px}.menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%] .point[_ngcontent-%COMP%], .menu-wrapper[_ngcontent-%COMP%] .menu-desktop[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{display:block}.submenu-wrapper[_ngcontent-%COMP%]{margin:0 auto;overflow:hidden;max-width:1440px;max-height:350px;padding:1.2vw 15px}.submenu-wrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{flex:0 0 100%;width:16.666%}.submenu-wrapper[_ngcontent-%COMP%] ul.fill-cols[_ngcontent-%COMP%]{flex:0 0 auto}.submenu-wrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.secondChild[_ngcontent-%COMP%]:last-child{margin-bottom:15px}.submenu-wrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{text-decoration:underline}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%]{flex:0 0 92%;margin:.6vw 0;border-left:1px solid white;position:relative}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider.removeSeparator[_ng
8content-%COMP%]{border-left:none}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] carousel-slide[_ngcontent-%COMP%]{padding-left:1.2vw}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .leftArrow[_ngcontent-%COMP%], .submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .rightArrow[_ngcontent-%COMP%]{position:absolute;top:49%;width:30px;height:40px;background:#fff;border-radius:20px;box-shadow:0 0 10px;opacity:.8;z-index:2}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .leftArrow[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .rightArrow[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:relative;display:block;text-align:center;top:50%;margin-top:-12px;left:1px;font-size:24px}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .leftArrow[_ngcontent-%COMP%]{left:1.8vw}.submenu-wrapper[_ngcontent-%COMP%] .menuSlider[_ngcontent-%COMP%] .rightArrow[_ngcontent-%COMP%]{right:.6vw}"]})}}return n})();var Il=()=>({uri:"/mi-planificador"});function El(n,i){n&1&&(c(0,"app-link",14),w(1,"planner-icon"),p()),n&2&&d("uri",Be(1,Il))}function Pl(n,i){n&1&&w(0,"menu-desktop")}var cs=(()=>{class n{constructor(e,t,r,o,a,l,m,v,x,k,j,L,O){this._ref=e,this._layout=t,this._ecpServ=r,this._account=o,this._sectionsService=a,this._tools=l,this._order=m,this.router=v,this._toastr=x,this._contextuablesService=k,this._sidebarsInteractor=j,this.gtmSubsService=L,this._eventsService=O,this.pinnedMenuItems=null,this.paymentRoute=!1,this.homeRoute=!1}ngOnInit(){this.initMenuSubscription()}ngOnDestroy(){this.menuSubscription&&this.menuSubscription.unsubscribe()}initMenuSubscription(){this.menuSubscription=this._sectionsService.getStructureSection("menu-wireframes-dev").pipe(ie(1)).subscribe(e=>{this.pinnedMenuItems=e?.nodes?e.nodes.filter(t=>t.metadata.hasOwnProperty("pinned")):[]})}toggleAccountSidebar(){!this._account.user&&!this._sidebarsInteractor.getSidebarFragments().account?this._sidebarsInteractor.openAccountSidebar():this._sidebarsInteractor.getSidebarFragments().account?this._sidebarsInteractor.closeAccount():this.router.navigate(["/mi-cuenta/dashboard"])}toggleCart(){this.paymentRoute||(this._sidebarsInteractor.getSidebarFragments().cart?this._tools.isMobile?this._order.editingDeliveryAddress||this._order.editingBillingAddress?(this._order.editingDeliveryAddress&&(this._order.editingDeliveryAddress=!1,this._order.selectedDeliveryAddress=null),this._order.editingBillingAddress&&(this._order.editingBillingAddress=!1,this._order.selectedBillingAddress=null)):this._sidebarsInteractor.closeCartSidebar():(this._sidebarsInteractor.getSidebarFragments().fullCart&&(this._tools.keepCartSidebarOpened=!0,this._order.editingBillingAddress=!1,this._order.editingDeliveryAddress=!1),this._sidebarsInteractor.closeCartSidebar()):this._order.orderObject&&this._order.initialized&&this._order.cartProductsCount>0?this._sidebarsInteractor.openCartSidebar():this._order.loading||this._toastr.warning(this._tools.translate(this._ecpServ.currentStorefront.translations,"notification.empty-cart.label").value))}openMenu(){this._sidebarsInteractor.openMenu(),this.gtmSubsService.sendDataLayer({event:"openMenu"})}pinnedItemClicked(e,t){this._eventsService.eventBus.dispatch(new Ke({type:"MenuItem",path:"",position:t,name:e.metadata.title,pinned:!0}))}static{this.\u0275fac=function(t){return new(t||n)(h(me),h(Qe),h(z),h(oe),h(Ve),h(B),h(Fe),h(ve),h(at),h(Wt),h(Z),h(zt),h(he))}}static{this.\u0275cmp=P({type:n,selectors:[["header-desktop"]],decls:19,vars:4,consts:[[1,"headerWrapper","tw-h-m-144","md:tw-h-d-120","tw-z-50","tw-fixed","tw-left-0","tw-right-0","tw-bg-grey-110"],[1,"headerContent","md:tw-h-d-84","tx-px-m-10","md:tw-px-d-16"],[1,"tw-w-full","md:tw-h-d-84","headerFlex","tw-flex","tw-gap-x-m-16","md:tw-gap-d-16","tw-flex-wrap","md:tw-flex-nowrap","tw-items-center"],[1,"tw-pl-m-10","md:tw-hidden","md:tw-order-1",3,"click"],[1,"logo","h-35","md:tw-order-2",3,"routerLink"],[1,"tw-flex-grow","tw-h-m-48","md:tw-h-auto","md:tw-order-4"],[1,"tw-pr-m-10","md:tw-pr-0","tw-flex","tw-gap-d-16","md:tw-order-6"],[3,"uri",4,"ngIf"],[3,"click"],[1,"tw-px-m-10","md:tw-px-0","tw-h-m-48","md:tw-h-auto","tw-w-full","tw-flex-grow","md:tw-max-w-d-360","md:tw-w-auto","md:tw-order-5"],[1,"tw-h-m-48","md:tw-h-full","tw-w-full","md:tw-w-auto","md:tw-order-3"],[3,"itemClicked","items"],[1,"tw-hidden","md:tw-block","md:tw-min-h-d-36","tw-bg-grey-110"],[4,"ngIf"],[3,"uri"]],template:function(t,r){t&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),b("click",function(a){return r.openMenu(),a.stopPropagation()}),w(4,"menu-icon"),p(),c(5,"a",4),w(6,"xtralife-logo"),p(),w(7,"div",5),c(8,"div",6),C(9,El,2,2,"app-link",7),c(10,"a",8),b("click",function(a){return r.toggleAccountSidebar(),a.stopPropagation()}),w(11,"account-icon"),p(),c(12,"div",8),b("click",function(a){return r.toggleCart(),a.stopPropagation()}
8),w(13,"cart-icon"),p()(),w(14,"search-box",9),c(15,"div",10)(16,"pinned-menu-items",11),b("itemClicked",function(a){return r.pinnedItemClicked(a.item,a.index)}),p()()()(),c(17,"div",12),C(18,Pl,1,0,"menu-desktop",13),p()()),t&2&&(s(5),d("routerLink","/"),s(4),d("ngIf",r._account.isLoggedIn),s(7),d("items",r.pinnedMenuItems),s(2),d("ngIf",!r._tools.isMobile))},dependencies:[F,ue,Ge,Xo,Go,Ko,Yo,Zo,is,ns,as],styles:[".headerWrapper[_ngcontent-%COMP%] #header[_ngcontent-%COMP%]{position:relative;background-color:var(--grey-dark)}.headerWrapper[_ngcontent-%COMP%] #header[_ngcontent-%COMP%] menu-desktop[_ngcontent-%COMP%]{position:relative}.headerWrapper[_ngcontent-%COMP%] .headerContent[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;-webkit-user-select:none;user-select:none;max-width:1440px;margin:0 auto}.headerWrapper[_ngcontent-%COMP%] .headerContent[_ngcontent-%COMP%] .headerFlex[_ngcontent-%COMP%] .headerItem.planner[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.52em;padding-bottom:.39em}.headerWrapper[_ngcontent-%COMP%] .headerContent[_ngcontent-%COMP%] .headerFlex[_ngcontent-%COMP%] .headerItem.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%}.headerWrapper[_ngcontent-%COMP%] .topSearchForm[_ngcontent-%COMP%]{display:block}.headerWrapper[_ngcontent-%COMP%] menu-desktop li.search{display:none!important}.smart-search-results[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:899;background-color:#f0f2f2;overflow:hidden;width:100%}.smart-search-results[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{width:1440px;margin:0 auto}.smart-search-results[_ngcontent-%COMP%] .searchForm[_ngcontent-%COMP%]{display:flex;padding:3vw 30px 1.7vw;align-items:center}.smart-search-results[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0px none;background-color:transparent;
8min-width:200px;max-width:65%;outline:none}.smart-search-results[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.smart-search-results[_ngcontent-%COMP%] .clearSearchInput[_ngcontent-%COMP%]{color:#757575}.smart-search-results[_ngcontent-%COMP%] .clearSearchInput[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding-right:2px}.smart-search-results[_ngcontent-%COMP%] .closeSearchPanel[_ngcontent-%COMP%]{color:#757575}.smart-search-results[_ngcontent-%COMP%] .closeSearchPanel[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding-right:2px;top:2px;position:relative}.search-more[_ngcontent-%COMP%]{color:#fff;line-height:53px;text-align:center;background:#aab3b2}.topSearchForm[_ngcontent-%COMP%]{display:none}.topSearchForm[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{background-color:#fff}.topSearchForm[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0px none;width:100%;outline:none;height:100%}"]})}}return n})();var Tl=()=>({name:""});function Al(n,i){n&1&&w(0,"img",11)}function Nl(n,i){if(n&1){let e=E();c(0,"div")(1,"div",6)(2,"input",7,0),f(4,"titlecase"),f(5,"translate"),b("click",function(r){return S(e),M(r.stopPropagation())})("keyup.enter",function(){S(e);let r=X(3),o=u();return M(o.enterEmail(r.value))}),p(),c(6,"a",8),f(7,"titlecase"),b("click",function(){S(e);let r=X(3),o=u();return M(o.enterEmail(r.value))}),c(8,"span",9),g(9),f(10,"translate"),p(),C(11,Al,1,0,"img",10),p()()()}if(n&2){let e=u();N("newsletter-content ",e.dark?"mh-40":"mh-50"," h-40"),s(),q("translation-out",e.step=="name"),s(),Ne("fontNormal ",e.dark?"colorBlack mh-40":"colorGreyLight80 mh-50"," email border-color",_(4,17,e.colorName),"Xl h-40"),De("placeholder",_(5,19,"newsletter-widget.email.placeholder")),s(4),Kt("",e.error?"shakeXl":""," action primaryButton",_(7,21,e.colorName),"Xl h-40 ",e.dark?"mh-40":"mh-50",""),s(3),y(_(10,23,"newsletter-widget.step-1.cta")),s(2),d("ngIf",e.showOkEmailCheck)}}function Dl(n,i){n&1&&w(0,"img",17)}function Bl(n,i){n&1&&w(0,"img",18)}function Rl(n,i){if(n&1&&(c(0,"div",12)(1,"div",13),C(2,Dl,1,0,"img",14)(3,Bl,1,0,"img",15),c(4,"span"),g(5),f(6,"translate"),p()(),c(7,"div",16),g(8),f(9,"translate"),p()()),n&2){let e=u();s(2),d("ngIf",e.dark),s(),d("ngIf",!e.dark),s(2),y(et(6,4,"newsletter-widget.thank-you.label",Be(9,Tl))),s(3),y(_(9,7,"newsletter-widget.thank-you-detail.label"))}}function Ll(n,i){n&1&&w(0,"img",11)}function Fl(n,i){n&1&&w(0,"img",21)}function Vl(n,i){if(n&1&&(c(0,"div")(1,"div",19),C(2,Ll,1,0,"img",10)(3,Fl,1,0,"img",20),c(4,"span"),g(5,"Suscrito"),p()()()),n&2){let e=u();s(2),d("ngIf",e.dark),s(),d("ngIf",!e.dark)}}var qt=(()=>{class n{constructor(e,t,r){this._account=e,this._tools=t,this.changeDetectorRef=r,this.characteristicValue=null,this.step="email",this.showOkEmailCheck=!1,this.showOkNameCheck=!1}ngOnInit(){this.error=!1,this.colorName=this.color,this._tools.isBrowser?this.initSubscriptions():this.step="email"}initSubscriptions(){this.userChangedSubscription=this._account.user$.subscribe(e=>{e!=null&&(e.newsletter===!0||this._account.isSubscribedOnNewsletter?this.step="subscribed":this.checkIfAlreadyUserIsSubscribed(),this.changeDetectorRef.detectChanges())})}enterEmail(e){e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)?(this.email=e,this.error=!1,this.showOkEmailCheck=!0,this.registerNewsletter()):this.error=!0}checkIfAlreadyUserIsSubscribed(){this._account.observableCheckSubcriptiononNewsLetter().pipe(ie(1)).subscribe(e=>{e.body&&e.body.status==="ok"?(this.step="subscribed",this.changeDetectorRef.detectChanges()):(this.step="email",this.changeDetectorRef.detectChanges())})}updateUserNewsletter(e){let t=this._account.user;t.newsletter=e,this.characteristicValue!==null&&(t.characteristics.find(o=>o.name==="registered-from")||t.characteristics.push({name:"registered-from",label:"Registro desde",type:"List",value:this.characteristicValue})),this.updateUserSubscription=this._account.updateUser(t,!0).pipe(ie(1)).subscribe()}registerNewsletter(){this._account.registerNewsletter(this.email,"",this.characteristicValue),this.showOkNameCheck=!0,this.step="thanks",setTimeout(()=>{this.observeLoggedInSubscription=this._account.observeLoggedIn().pipe(ie(1)).subscribe(e=>{e===!0?(this._account.user.profiles[0].identifier===this.email&&this.updateUserNewsletter(!0),this.step="subscribed"):(this.showOkEmailCheck=!1,this.showOkNameCheck=!1,this.step="email"),this.changeDetectorRef.detectChanges()})},3e4)}ngOnDestroy(){this.observeLoggedInSubscription?.unsubscribe(),this.updateUserSubscription?.unsubscribe(),this.userChangedSubscription?.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(h(oe),h(B),h(me))}}static{this.\u0275cmp=P({type:n,selectors:[["newsletter"]],inputs:{dark:"dark",color:"color",characteristicValue:"characteristicValue"},decls:13,vars:21,consts:[["email",""],[1,"newsletter-label","fontSmall","fontBold"],[3,"class",4,"ngIf"],["class","newsletter-thanks",4,"ngIf"],[4,"ngIf"],["tabindex","-1","target","_blank","rel","noopener","href","https://newsletter.xtralife.com"],[1,"newsletter-input","newsletter-input-email","h-40","pt-1"],["tabindex","1","type","email",3,"click","keyup.enter","placeholder"],["tabindex","-1",3,"click"],[1,"fontNormal","mobileFontSmall","fontBold"],["class","checkIcon growUp","src","/assets/icons/check-green.svg",4,"ngIf"],["src","/assets/icons/check-green.svg",1,"checkIcon","growUp"],[1,"newsletter-thanks"],[1,"fontNormal","fontBold"],["class","checkIcon","src","/assets/icons/check-green.svg",4,"ngIf"],["class","checkIcon","src","/assets/icons/check-black.svg",4,"ngIf"],[1,"fontNormal",2,"margin-top","10px"],["src","/assets/icons/check-green.svg",1,"checkIcon"],["src","/assets/icons/check-black.svg",1,"checkIcon"],[1,"fontNormal","fontBold","checkIcon-container"],["class","checkIcon growUp","src","/assets/icons/check-black.svg",4,"ngIf"],["src","/assets/icons/check-black.svg",1,"checkIcon","growUp"]],template:function(t,r){t&1&&(c(0,"div")(1,"div",1),g(2),f(3,"translate"),p(),C(4,Nl,12,25,"div",2)(5,Rl,10,10,"div",3)(6,Vl,6,2,"div",4),p(),c(7,"p"),g(8),f(9,"translate"),c(10,"a",5),g(11),f(12,"translate"),p()()),t&2&&(N("newsletter ",r.dark?"dark":"light",""),s(2),y(_(3,15,"newsletter-widget.label.label")),s(2),d("ngIf",r.step!="thanks"&&r.step!="subscribed"),s(),d("ngIf",r.step=="thanks"),s(),d("ngIf",r.step=="subscribed"),s(),N("lastNewsletter ",r.dark?"dark":""," fontSmall colorGreyLight80"),s(),T(" ",_(9,17,"newsletter.see-last.label")," "),s(2),yr(r.dar
8k?"underlinedWhiteXl":"underlinedGreyLight80Xl"),s(),T(" ",_(12,19,"newsletter.see-last.cta")," "))},dependencies:[F,re,K],styles:[".newsletter[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.newsletter-label[_ngcontent-%COMP%]{padding-bottom:.6em}.newsletter-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.newsletter-thanks[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;flex-wrap:nowrap}.newsletter.dark[_ngcontent-%COMP%]{color:#fff!important}.newsletter.light[_ngcontent-%COMP%] .newsletter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--grey-light80)}.newsletter-thanks[_ngcontent-%COMP%] .checkIcon[_ngcontent-%COMP%]{position:relative;width:15px!important;right:0!important}.checkIcon-container[_ngcontent-%COMP%]{display:flex;align-items:center}.checkIcon[_ngcontent-%COMP%]{position:relative;right:0;width:15px;margin-right:10px;transition:opacity .2s}.newsletter-input[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}.newsletter-input-email[_ngcontent-%COMP%]{opacity:1;transform:translate(0);transition:opacity .3s,transform .5s}.lastNewsletter.dark[_ngcontent-%COMP%]{color:#fff!important}input[_ngcontent-%COMP%]{flex-grow:1;border-style:solid;border-width:1px;padding:.2em .4em;outline:none;height:100%;border-radius:0;box-shadow:none;width:1px;color:var(--grey-light);-webkit-appearance:none;margin:0}input[_ngcontent-%COMP%]::placeholder{color:var(--grey-light);opacity:1;font-size:14px}.action[_ngcontent-%COMP%]{padding:0 .6em;min-width:80px;width:7.5vw;max-width:100px;color:#30373a!important}.growUp[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_growUp .2s ease-out}.lastNewsletter[_ngcontent-%COMP%]{padding:.65em 0}.translation-out[_ngcontent-%COMP%]{opacity:1;transform:translate(-400px)}@keyframes _ngcontent-%COMP%_growUp{0%{transform:scale(1);opacity:0}40%{transform:scale(1.4);opacity:.75}99%{transform:scale(1.5);opacity:0}to{transform:scale(1);opacity:1}}@media screen and (min-width: 560px) and (max-width: 800px) and (max-aspect-ratio: 13/9){.action[_ngcontent-%COMP%]{width:140px;font-size:3.8vw}}@media screen and (min-width: 320px) and (max-width: 560px) and (max-aspect-ratio: 13/9){.action[_ngcontent-%COMP%]{width:25vw;font-size:3.8vw}}@media screen and (max-width: 320px) and (max-aspect-ratio: 13/9),screen and (max-width: 800px) and (min-aspect-ratio: 13/9){.action[_ngcontent-%COMP%]{width:80px;font-size:3.8vw}}"],changeDetection:0})}}return n})();var jl=["*"];function zl(n,i){if(n&1&&w(0,"img",7),n&2){let e=u();d("src",e.mainImage,Ae)("alt",e.subtitle)}}function Wl(n,i){if(n&1&&(c(0,"div")(1,"a",8),f(2,"titlecase"),g(3),p()()),n&2){let e=i.$implicit,t=u();s(),N("underlined",_(2,5,t.color),"Xl"),d("routerLink",e.url),s(2),y(e.label)}}var ps=(()=>{class n{constructor(){this.subtitle="",this.description="",this.mainImage=null,this.ctas=[],this.color=""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["footer-featured-item"]],inputs:{subtitle:"subtitle",description:"description",mainImage:"mainImage",ctas:"ctas",color:"color"},ngContentSelectors:jl,decls:10,vars:4,consts:[[1,"tw-flex","tw-items-center","tw-gap-m-16","md:tw-gap-d-16"],[1,"tw-h-m-64","md:tw-h-d-74","tw-aspect-square"],["class","tw-h-m-64 md:tw-h-d-74 tw-aspect-square ",3,"src","alt",4,"ngIf"],[1,"tw-flex","tw-flex-col","tw-gap-m-2","md:tw-gap-d-4"],[1,"tw-font-xtralife-bold","tw-text-m-base","md:tw-text-d-sm"],[1,"tw-text-luigi"],[4,"ngFor","ngForOf"],[1,"tw-h-m-64","md:tw-h-d-74","tw-aspect-square",3,"src","alt"],[3,"routerLink"]],template:function(t,r){t&1&&(ot(),c(0,"div",0)(1,"div",1),C(2,zl,1,2,"img",2),p(),c(3,"div",3)(4,"div",4),g(5),p(),Je(6),c(7,"div",5),g(8),p(),C(9,Wl,4,7,"div",6),p()()),t&2&&(s(2),d("ngIf",r.mainImage),s(3),y(r.subtitle),s(3),y(r.description),s(),d("ngForOf",r.ctas))},dependencies:[Re,F,ue,re]})}}return n})();var Hl=n=>({label:n,url:"/financiacion"}),ql=n=>({label:n,url:"/metodos-de-pago"}),ds=(n,i)=>[n,i],$l=()=>[],Ql=n=>({label:n,url:"/quienes-somos"}),Xl=n=>({label:n,url:"/equipo"}),Gl=n=>({label:n,url:"/opciones-de-entrega"}),ms=n=>[n],Kl=n=>({label:n,url:"/rese\xF1as-xtralife"}),Yl=n=>({year:n});function Zl(n,i){if(n&1&&w(0,"score",40),n&2){let e=u();d("value",e.storeRating.score)}}function Jl(n,i){if(n&1&&(c(0,"p",41),g(1),p()),n&2){let e=u();s(),T("v",e.appVersion,"")}}function ec(n,i){n&1&&w(0,"div",42)}var us=(()=>{class n{constructor(e,t,r,o,a,l,m){this._layout=e,this._ecpServ=t,this._tools=r,this._ref=o,this._oct8ne=a,this.applicationService=l,this._document=m,this.appVersion=null,this.storeRating=null,this.hasFloating
8Cta=!1,this.currentYear=new Date().getFullYear()}ngOnInit(){this.appVersion=Ui.version?.split("-")[0]??null,this.applicationService.isBrowser()&&(this.storefrontSubscription=this._ecpServ.getStorefront().subscribe(e=>{e.body.rating_store&&e.body.rating_store.length>0&&(this.storeRating={score:e.body.rating_store[0].rating,reviewCount:e.body.rating_store[0].number_of_reviews},this._ref.markForCheck())}),this.checkFloatingCta())}ngOnDestroy(){this.storefrontSubscription&&this.storefrontSubscription.unsubscribe(),this.mutationObserver&&this.mutationObserver.disconnect()}checkFloatingCta(){let e;this.mutationObserver=new MutationObserver(()=>{e||(e=requestAnimationFrame(()=>{e=null;let r=this._document.querySelector("product-floating-cta > div")!==null;this.hasFloatingCta!==r&&(this.hasFloatingCta=r,this._ref.markForCheck())}))}),this.mutationObserver.observe(this._document.body,{childList:!0,subtree:!0})}openOct8neChat(){this._oct8ne.open()}static{this.\u0275fac=function(t){return new(t||n)(h(Qe),h(z),h(B),h(me),h(Bi),h(Se),h(Dt))}}static{this.\u0275cmp=P({type:n,selectors:[["footer"]],inputs:{color:"color"},decls:105,vars:151,consts:[[1,"tw-bg-grey-80","tw-px-m-24","md:tw-px-d-98","tw-font-xtralife","te-text-m-base","md:tw-text-d-xs","tw-text-grey-10"],[1,"tw-w-full","tw-flex","tw-flex-col","tw-gap-m-36","md:tw-gap-d-36","tw-py-m-24","md:tw-py-d-36"],[1,"tw-flex","tw-flex-col","md:tw-justify-around","md:tw-flex-row","tw-items-center","md:tw-px-0","tw-gap-m-36","md:tw-gap-d-48"],[1,"tw-w-full","md:tw-basis-1/3"],[3,"dark","color"],[3,"subtitle","description","mainImage","ctas","color"],[1,"tw-py-m-8","md:tw-py-d-8","tw-flex","tw-gap-m-8","md:tw-gap-d-24"],["src","/assets/icons/payment-mc.svg","alt","mastercard",1,"tw-w-m-40","md:tw-w-d-44"],["src","/assets/icons/payment-visa.svg","alt","visa",1,"tw-w-m-40","md:tw-w-d-44"],["src","/assets/icons/payment-sequra.svg","alt","sequra",1,"tw-w-m-40","md:tw-w-d-44"],["src","/assets/icons/payment-paypal.svg","alt","paypal",1,"tw-w-m-40","md:tw-w-d-44"],["src","/assets/icons/payment-wt.svg","alt","transferencia",1,"tw-w-m-40","md:tw-w-d-44"],[1,"tw-py-m-8","md:tw-py-d-8","tw-flex","tw-flex-wrap","tw-gap-m-12","md:tw-gap-d-12"],["src","/assets/icons/social/chat.svg","alt","chat",1,"tw-h-m-32","md:tw-h-d-24",3,"click"],["href","mailto:[email protected]"],["src","/assets/icons/social/email.svg","alt","email",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://www.facebook.com/Xtralife.es/","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/facebook.svg","alt","facebook",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://x.com/xtralife_es","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/x.svg","alt","x",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://bsky.app/profile/xtralife.es","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/bluesky.svg","alt","bluesky",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://www.instagram.com/xtralife.es/","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/instagram.svg","alt","instagram",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://www.tiktok.com/@xtralife_es","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/tiktok.svg","alt","tiktok",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://t.me/joinchat/UpB9rqaBTZZ686yF","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/telegram.svg","alt","telegram",1,"tw-h-m-32","md:tw-h-d-24"],["href","https://www.youtube.com/channel/UCXbySVHGNnGR2tOgsZwGyEA","target","_blank","rel","noopener nofollow"],["src","/assets/icons/social/youtube.svg","alt","youtube",1,"tw-h-m-32","md:tw-h-d-24"],[1,"tw-font-xtralife-bold","tw-text-m-xl","md:tw-text-d-2xl"],[3,"value",4,"ngIf"],[1,"tw-grid","tw-grid-cols-12","tw-items-center","tw-gap-m-24","md:tw-gap-d-16"],[1,"tw-col-span-12","md:tw-col-span-8","tw-flex","tw-flex-col","tw-gap-m-8","md:tw-gap-d-8"],[3,"routerLink"],[1,"tw-col-span-12","md:tw-col-span-2","tw-flex","tw-justify-center","tw-items-center","tw-gap-m-4","md:tw-gap-d-8"],[1,"ph","ph-shield-check","tw-text-m-2xl","md:tw-text-d-2xl"],[1,"tw-col-span-12","md:tw-col-span-2","tw-flex","tw-flex-col","tw-gap-m-4","md:tw-gap-d-8","tw-items-center","md:tw-items-end"],["class","tw-text-grey-50",4,"ngIf"],["class","tw-h-m-68 md:tw-h-d-130",4,"ngIf"],[3,"value"],[1,"tw-text-grey-50"],[1,"tw-h-m-68","md:tw-h-d-130"]],template:function(t,r){t&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),w(4,"newsletter",4),p(),c(5,"div",3)(6,"footer-featured-item",5),f(7,"translate"),f(8,"translate"),f(9,"translate"),f(10,"translate"),c(11,"div",6),w(12,"img",7)(13,"img",8)(14,"img",9)(15,"img",10)(16,"img",11),p()()(),c(17,"div",3)(18,"footer-featured-item",5),f(19,"translate"),f(20,"translate"),c(21,"div",12)(22,"img",13),b("click",function(){return r.openOct8neChat()}),p(),c(23,"a",14),w(24,"img",15),p(),c(25,"a",16),w(26,"img",17),p(),c(27,"a",18),w(28,"img",19),p(),c(29,"a",20),w(30,"img",21),p(),c(31,"a",22),w(32,"img",23),p(),c(33,"a",24),w(34,"img",25),p(),c(35,"a",26),w(36,"img",27),p(),c(37,"a",28),w(38,"img",29),p()()()()(),c(39,"div",2)(40,"div",3)(41,"footer-featured-item",5),f(42,"translate"),f(43,"translate"),f(44,"translate"),f(45,"translate"),c(46,"div",30),g(47),f(48,"translate"),p()()(),c(49,"div",3)(50,"footer-featured-item",5),f(51,"translate"),f(52,"translate"),f(53,"translate"),c(54,"div",30),g(55),f(56,"translate"),p()()(),c(57,"div",3)(58,"footer-featured-item",5),f(59,"translate"),f(60,"translate"),f(61,"translate"),c(62,"div",30),C(63,Zl,1,1,"score",31),p()()()(),c(64,"div",32)(65,"div",33)(66,"p"),g(67),f(68,"translate"),c(69,"a",34),f(70,"titlecase"),g(71,"FAQ\u2019s"),p()(),c(72,"p")(73,"a",34),f(74,"titlecase"),g(75),f(76,"translate"),p(),g(77),f(78,"translate"),c(79,"a",34),f(80,"titlecase"),g(81),f(82,"translate"),p(),g(83),f(84,"translate"),c(85,"a",34),f(86,"titlecase"),g(87),f(88,"translate"),p(),g(89),f(90,"translate"),c(91,"a",34),f(92,"titlecase"),g(93),f(94,"translate"),p()(),c(95,"p"),g(96),f(97,"translate"),p()(),c(98,"div",35),w(99,"i",36),c(100,"p"),g(101,"Secure Trusted Connection"),p()(),c(102,"div",37),C(103,Jl,2,1,"p",38),p()(),C(104,ec,1,0,"div",39),p()()),t&2&&(s(4),d("dark",!0)("color",r._ecpServ.sessionColor.name),s(2),d("subtitle",_(7,61,"footer.payment-methods.subtitle.label"))("description",_
8(8,63,"footer.payment-methods.description.label"))("mainImage","/assets/icons/payment-methods.svg")("ctas",wn(130,ds,be(126,Hl,_(9,65,"footer.payment-methods.finance.cta")),be(128,ql,_(10,67,"footer.payment-methods.more.cta"))))("color",r.color),s(12),d("subtitle",_(19,69,"footer.contact-us.cta"))("description",_(20,71,"footer.contact-us.description.label"))("mainImage","/assets/icons/help-green.svg")("ctas",Be(133,$l))("color",r.color),s(23),d("subtitle",_(42,73,"footer.about-us.subtitle.label"))("description",_(43,75,"footer.about-us.description.label"))("mainImage","/assets/icons/quienes-somos.svg")("ctas",wn(138,ds,be(134,Ql,_(44,77,"footer.about-us.more-info.cta")),be(136,Xl,_(45,79,"footer.about-us.cta"))))("color",r.color),s(6),y(_(48,81,"footer.about-us.title.label")),s(3),d("subtitle",_(51,83,"footer.delivery.subtitle.label"))("description",_(52,85,"footer.delivery.description.label"))("mainImage","/assets/icons/big-icon-24hs.svg")("ctas",be(143,ms,be(141,Gl,_(53,87,"footer.delivery.more-info.cta"))))("color",r.color),s(5),y(_(56,89,"footer.delivery.title.label")),s(3),d("subtitle",_(59,91,"footer.ratings.subtitle.label"))("description",(r.storeRating!==null?r.storeRating.reviewCount:"...")+" "+_(60,93,"footer.ratings.description.label"))("mainImage","/assets/icons/Trustpilot_brandmark_star.png")("ctas",be(147,ms,be(145,Kl,_(61,95,"footer.ratings.more-info.cta"))))("color",r.color),s(5),d("ngIf",r.storeRating),s(4),T("",_(68,97,"contact-us.info-1.label")," "),s(2),N("underlined",_(70,99,r.color),"Xl"),d("routerLink","/faqs"),s(4),N("underlined",_(74,101,r.color),"Xl"),d("routerLink","/"),s(2),y(_(76,103,"general.hostname.cta")),s(2),T(" ",_(78,105,"footer.copy-1.label")," "),s(2),N("underlined",_(80,107,r.color),"Xl"),d("routerLink","/aviso-legal"),s(2),y(_(82,109,"general.legal-advice.cta")),s(2),T(" ",_(84,111,"footer.copy-2.label")," "),s(2),N("underlined",_(86,113,r.color),"Xl"),d("routerLink","/terminos-y-condiciones"),s(2),y(_(88,115,"general.terms-conditions.cta")),s(2),T(" ",_(90,117,"footer.copy-3.label")," "),s(2),N("underlined",_(92,119,r.color),"Xl"),d("routerLink","/politica-de-privacidad"),s(2),y(_(94,121,"general.privacy-policy.cta")),s(3),T(" ",et(97,123,"footer.copy-4.label",be(149,Yl,r.currentYear))," "),s(7),d("ngIf",r.appVersion),s(),d("ngIf",r.hasFloating
8Cta))},dependencies:[F,ue,ko,qt,ps,re,K],styles:[".footerWrapper[_ngcontent-%COMP%]{width:100%;float:left;clear:both;background-color:#595f61}.footerInner[_ngcontent-%COMP%]{padding:0 6.94vw}.paymentMethodsWrapper[_ngcontent-%COMP%]{border-bottom:1px solid #AAB3B2}.contactOptionsWrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin:1.73vw -6.59vw}.contactOption[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;margin:0 6.59vw}.contactOption.topAligned[_ngcontent-%COMP%]{margin-top:1.8em}.featuredWrapper[_ngcontent-%COMP%]{display:flex;align-items:center;padding:1.73vw 0;border-top:1px solid #AAB3B2}.feature[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%;display:flex;align-items:center;justify-content:center}.feature[_ngcontent-%COMP%]{border-right:1px solid #a9b3b2}.feature[_ngcontent-%COMP%]:last-child{border-right:none}.description-mid[_ngcontent-%COMP%]{width:200px!important}.feature[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{padding:20px}.feature[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:6.94vw}.feature[_ngcontent-%COMP%] .image.trustpilot[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:5vw}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:11.11vw;color:#fff}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:.3em 0}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{color:#4ce97d}.small-score[_ngcontent-%COMP%]{margin-bottom:10px}.aboutWrapper[_ngcontent-%COMP%]{border-top:1px solid #AAB3B2}.aboutWrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:8.81vw;align-items:flex-end;margin-bottom:2.5vw}.aboutWrapper[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#fff;width:76%}.aboutWrapper[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{text-align:center}.aboutWrapper[_ngcontent-%COMP%] .about[_ngcontent-%COMP%]{color:#fff;text-align:center;white-space:nowrap}.footerCredentials[_ngcontent-%COMP%]{display:flex;align-items:center;padding:1em 0}.footerCredentials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .footerCredentials[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{vertical-align:middle}.footerCredentials[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex-grow:1}.digiCertWrapper[_ngcontent-%COMP%]{padding:1em 1.6em}.logo-container-secure[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-direction:row;align-items:center;justify-content:center;color:#fbfbfb;margin:0 1em}.logo-secure[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-secure[_ngcontent-%COMP%] .logo-img[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:.2em}.logo-secure[_ngcontent-%COMP%] .logo-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.logo-container-stargazer[_ngcontent-%COMP%]{display:flex;flex-grow:1;flex-direction:column}@media screen and (min-width: 1440px){.footerInner[_ngcontent-%COMP%]{padding:0 100px}.contactOptionsWrapper[_ngcontent-%COMP%]{margin:25px -95px}.contactOption[_ngcontent-%COMP%]{margin:0 95px}.featuredWrapper[_ngcontent-%COMP%]{padding:25px 0}.feature[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100px}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:160px}.aboutWrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:55px;margin-bottom:36px}}@media screen and (max-width: 1000px){.footerInner[_ngcontent-%COMP%]{padding:0 69.44px}.contactOptionsWrapper[_ngcontent-%COMP%]{margin:17.36px -6.59vw}.contactOption[_ngcontent-%COMP%]{margin:0 6.59vw}.featuredWrapper[_ngcontent-%COMP%]{padding:17.36px 0}.feature[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:69.44px}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:111.11px}.aboutWrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:38.19px;margin-bottom:25px}}@media screen and (min-width:560px) and (max-width: 800px) and (max-aspect-ratio: 13/9){.footerInner[_ngcontent-%COMP%]{padding:0 17.5px 70px}.contactOptionsWrapper[_ngcontent-%COMP%]{flex-wrap:wrap;margin:0;height:unset}.contactOption[_ngcontent-%COMP%]{margin:17.5px}.featuredWrapper[_ngcontent-%COMP%]{flex-wrap:wrap}.feature[_ngcontent-%COMP%]{border-right:none}.aboutWrapper[_ngcontent-%COMP%] .about[_ngcontent-%COMP%]{padding:1em;margin-left:0}.row[_ngcontent-%COMP%]{margin:0}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:280px}.footerCredentials[_ngcontent-%COMP%]{display:inline-block;padding:none}.footerCredentials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .footerCredentials[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:100%}.digiCertWrapper[_ngcontent-%COMP%]{margin-top:1.2em}.aboutWrapper[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin-top:1.2em;width:100%;margin-bottom:1.2em}.feature[_ngcontent-%COMP%] .image.trustpilot[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18vw}.logo-container-secure[_ngcontent-%COMP%]{margin:0}}@media screen and (min-width:320px) and (max-width: 560px) and (max-aspect-ratio: 13/9){.footerInner[_ngcontent-%COMP%]{padding:0 3.125vw 12.5vw}.contactOptionsWrapper[_ngcontent-%COMP%]{flex-wrap:wrap;margin:0;height:unset}.contactOption[_ngcontent-%COMP%]{margin:3.125vw}.featuredWrapper[_ngcontent-%COMP%]{flex-wrap:wrap}.feature[_ngcontent-%COMP%]{border-right:none}.aboutWrapper[_ngcontent-%COMP%] .about[_ngcontent-%COMP%]{padding:1em;margin-left:0}.row[_ngcontent-%COMP%]{margin:0}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:50vw}.footerCredentials[_ngcontent-%COMP%]{display:inline-block;padding:none}.footerCredentials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .footerCredentials[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:100%}.digiCertWrapper[_ngcontent-%COMP%]{margin-top:1.2em}.aboutWrapper[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin-top:1.2em;width:100%;margin-bottom:1.2em}.feature[_ngcontent-%COMP%] .image.trustpilot[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18vw}.logo-container-secure[_ngcontent-%COMP%]{margin:0}}@media screen and (max-width:320px) and (max-aspect-ratio: 13/9),screen and (max-width:800px) and (min-aspect-ratio: 13/9){.footerInner[_ngcontent-%COMP%]{padding:0 10px 40px}.contactOptionsWrapper[_ngcontent-%COMP%]{flex-wrap:wrap;margin:0;height:unset}.contactOption[_ngcontent-%COMP%]{margin:10px}.featuredWrapper[_ngcontent-%COMP%]{flex-wrap:wrap}.feature[_ngcontent-%COMP%]{border-right:none}.aboutWrapper[_ngcontent-%COMP%] .about[_ngcontent-%COMP%]{padding:1em;margin-left:0}.row[_ngcontent-%COMP%]{margin:0}.feature[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:160px}.footerCredentials[_ngcontent-%COMP%]{display:inline-block;padding:none}.footerCredentials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .footerCredentials[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{width:100%}.digiCertWrapper[_ngcontent-%COMP%]{margin-top:1.2em}.aboutWrapper[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin-top:1.2em;width:100%;margin-bottom:1.2em}.feature[_ngcontent-%COMP%] .image.trustpilot[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:17vw}.logo-container-secure[_ngcontent-%COMP%]{margin:0}}"],changeDetection:0})}}return n})();
8function ic(n,i){if(n&1){let e=E();c(0,"div",6),b("click",function(r){return S(e),u().closeDialog(),M(r.stopPropagation())}),p()}}var hs=(()=>{class n{constructor(e,t){this._tools=e,this._location=t}closeDialog(){this._tools.removeClassModalOpen(),this._tools.showDialog=!1,this._tools.isMobile&&this._location.back()}static{this.\u0275fac=function(t){return new(t||n)(h(B),h(Ar))}}static{this.\u0275cmp=P({type:n,selectors:[["dialog-data"]],inputs:{content:"content"},decls:6,vars:2,consts:[[1,"data-dialog","xlContent"],["class","dialogOverlay backgroundGreyDark",3,"click",4,"ngIf"],[1,"modalWrapper","backgroundWhite"],["src","/assets/icons/close.svg",1,"mh-9","closeCross","cursorPointer","positionAbsolute",3,"click"],[1,"dialogContent"],[1,"dialogWrapper","colorBlack",3,"innerHtml"],[1,"dialogOverlay","backgroundGreyDark",3,"click"]],template:function(t,r){t&1&&(c(0,"div",0),C(1,ic,1,0,"div",1),c(2,"div",2)(3,"img",3),b("click",function(a){return r.closeDialog(),a.stopPropagation()}),p(),c(4,"div",4),w(5,"div",5),p()()()),t&2&&(s(),d("ngIf",!r._tools.isMobile),s(4),d("innerHtml",r.content,vt))},dependencies:[F],styles:[".data-dialog[_ngcontent-%COMP%]{height:100%}.dialogWrapper[_ngcontent-%COMP%]{margin:auto}.dialogOverlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:.65}.modalWrapper[_ngcontent-%COMP%]{position:relative;width:58%;height:80%;margin:5% auto;padding:65px 0}.dialogContent[_ngcontent-%COMP%]{height:100%;width:100%;overflow:auto;padding:0 120px}.closeCross[_ngcontent-%COMP%]{top:2.08vw;right:2.08vw;width:1.736vw;height:auto}@media screen and (max-width: 1000px){.modalWrapper[_ngcontent-%COMP%]{padding:45px 0}.dialogContent[_ngcontent-%COMP%]{padding:0 60px}}@media screen and (max-width: 800px){.modalWrapper[_ngcontent-%COMP%]{margin:0;padding:8vw 0;width:100%;height:100%}.dialogContent[_ngcontent-%COMP%]{padding:0 25px}.closeCross[_ngcontent-%COMP%]{top:3vw;right:3vw;width:unset;height:unset}}"]})}}return n})();var rc=["innerContent"],oc=[[["","header",""]],[["","body",""]]],sc=["[header]","[body]"];function ac(n,i){if(n&1&&(w(0,"i"),f(1,"titlecase")),n&2){let e=u();N("fas fa-chevron-down mr-3 ",_(1,5,e._ecpServ.sessionColor.name),"Xl"),q("rotate",e.open)}}function lc(n,i){if(n&1&&(w(0,"i"),f(1,"titlecase")),n&2){let e=u();N("fas fa-chevron-down ml-3 ",_(1,5,e._ecpServ.sessionColor.name),"Xl"),q("rotate",e.open)}}var fs=(()=>{class n{constructor(e){this._ecpServ=e,this.contentHeights="0px",this.arrowPosition="left",this.open=!1,this.openChange=new nt}ngOnInit(){this.open&&(this.contentHeights="auto")}ngAfterContentInit(){}ngOnChanges(e){}toggle(){this.open=!this.open,this.openChange.emit(this.open),this.updateHeight()}updateHeight(){this.open?this.contentHeights=this.innerContents.last.nativeElement.scrollHeight+"px":this.contentHeights="0px",this.openChange.emit(this.open)}static{this.\u0275fac=function(t){return new(t||n)(h(z))}}static{this.\u0275cmp=P({type:n,selectors:[["app-new-accordion"]],viewQuery:function(t,r){if(t&1&&ce(rc,5),t&2){let o;pe(o=de())&&(r.innerContents=o)}},inputs:{arrowPosition:"arrowPosition",open:"open"},outputs:{openChange:"openChange"},features:[di],ngContentSelectors:sc,decls:9,vars:7,consts:[["innerContent",""],[1,"accordionWrapper"],[1,"accordionHead",3,"click"],[1,"accordionTitle","fontNormal"],[3,"class","rotate",4,"ngIf"],[1,"accordionBody","fontSmall"]],template:function(t,r){if(t&1){let o=E();ot(oc),c(0,"div",1)(1,"div",2),b("click",function(){return S(o),M(r.toggle())}),c(2,"div",3),C(3,ac,2,7,"i",4),Je(4),p(),C(5,lc,2,7,"i",4),p(),c(6,"div",5,0),Je(8,1),p()()}t&2&&(s(3),d("ngIf",r.arrowPosition==="left"),s(2),d("ngIf",r.arrowPosition==="right"),s(),kr("height:",r.contentHeights,""),q("opened",r.open))},dependencies:[F,re],styles:[".accordionWrapper[_ngcontent-%COMP%]{margin:1rem 0;display:flex;flex-direction:column}.accordionHead[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.5rem 0}.accordionTitle[_ngcontent-%COMP%]{display:flex;flex-direction:row;cursor:pointer;color:inherit;width:100%}.accordionBody[_ngcontent-%COMP%]{padding-top:.5rem;overflow:hidden;height:0px;transition:height .3s ease-out}.accordionBody.opened[_ngcontent-%COMP%]{height:auto}.fas[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]})}}return n})();var dc=["cookieModal"];
8function mc(n,i){if(n&1){let e=E();c(0,"div",23),b("click",function(){S(e);let r=u(3);return M(r.closeCookieConfigModal())}),w(1,"img",24),p()}}function uc(n,i){if(n&1&&(c(0,"div",21)(1,"span"),g(2),f(3,"translate"),p(),C(4,mc,2,0,"div",22),p()),n&2){let e=u(2);s(2),y(_(3,2,"cookies.config.title-preferences.cta")),s(2),d("ngIf",e._tools.isMobile&&e.showConfigCookiesModal)}}function hc(n,i){if(n&1){let e=E();c(0,"div",25)(1,"span",26),f(2,"titlecase"),b("click",function(r){return S(e),u(2).openCookieConfigModal(),r.preventDefault(),M(r.stopPropagation())}),g(3),f(4,"translate"),p()()}if(n&2){let e=u(2);s(),N("underlined",_(2,4,e._ecpServ.sessionColor.name),"Xl cursorPointer"),s(2),y(_(4,6,"cookies.config.cta"))}}function fc(n,i){if(n&1){let e=E();c(0,"button",27),b("click",function(){S(e);let r=u(2);return M(r.allowAll())}),g(1),f(2,"translate"),p()}n&2&&(s(),y(_(2,1,"cookies.config.allow-all.cta")))}function gc(n,i){n&1&&(ae(0),g(1),f(2,"translate"),le()),n&2&&(s(),y(_(2,1,"cookies.config.reject-all.cta")))}function _c(n,i){n&1&&(ae(0),g(1),f(2,"translate"),le()),n&2&&(s(),y(_(2,1,"cookies.config.save.cta")))}function vc(n,i){if(n&1){let e=E();c(0,"div",28)(1,"button",29),b("click",function(){S(e);let r=u(2);return M(r.saveCookiesPreference())}),C(2,gc,3,3,"ng-container",30)(3,_c,3,3,"ng-container",30),p(),c(4,"button",27),b("click",function(){S(e);let r=u(2);return M(r.allowAll())}),g(5),f(6,"translate"),p()()}if(n&2){let e=u(2);s(2),d("ngIf",e.showRejectAllButton),s(),d("ngIf",!e.showRejectAllButton),s(2),y(_(6,3,"cookies.config.allow-all.cta"))}}function wc(n,i){if(n&1){let e=E();c(0,"div",3,0),C(2,uc,5,4,"div",4),c(3,"div",5),g(4),f(5,"translate"),p(),c(6,"div",6),C(7,hc,5,8,"div",7)(8,fc,3,3,"button",8),p(),c(9,"div",9),b("click",function(r){return S(e),M(r.stopPropagation())}),c(10,"form",10),b("submit",function(){S(e);let r=u();return M(r.saveCookiesPreference())})("change",function(){S(e);let r=u();return M(r.cookieConfigChange())}),c(11,"div",11,1)(13,"app-new-accordion",12)(14,"div",13),g(15),f(16,"translate"),c(17,"span"),f(18,"titlecase"),g(19,"obligatorias"),p()(),c(20,"div",14),g(21),f(22,"translate"),c(23,"div",15)(24,"a",16),f(25,"titlecase"),g(26),f(27,"translate"),p()()()(),c(28,"app-new-accordion",12)(29,"div",13),g(30),f(31,"translate"),c(32,"label",17),w(33,"input",18)(34,"span",19),p()(),c(35,"div",14),g(36),f(37,"translate"),c(38,"div",15)(39,"a",16),f(40,"titlecase"),g(41),f(42,"translate"),p()()()(),c(43,"app-new-accordion",12)(44,"div",13),g(45),f(46,"translate"),c(47,"label",17),w(48,"input",18)(49,"span",19),p()(),c(50,"div",14),g(51),f(52,"translate"),c(53,"div",15)(54,"a",16),f(55,"titlecase"),g(56),f(57,"translate"),p()()()(),c(58,"app-new-accordion",12)(59,"div",13),g(60),f(61,"translate"),c(62,"label",17),w(63,"input",18)(64,"span",19),p()(),c(65,"div",14),g(66),f(67,"translate"),c(68,"div",15)(69,"a",16),f(70,"titlecase"),g(71),f(72,"translate"),p()()()()(),C(73,vc,7,5,"div",20),p()()()}if(n&2){let e=u();q("open-config",e.showConfigCookiesModal),s(2),d("ngIf",e.showConfigCookiesModal),s(2),T(" ",_(5,50,"cookies.text.label")," "),s(3),d("ngIf",!e.showConfigCookiesModal),s(),d("ngIf",!e.showConfigCookiesModal),s(),rt("height",e.showConfigCookiesModal?"auto":0),s(),d("formGroup",e.formCookiesPreferences),s(),rt("height",e.cookieModalHeight||"auto","px"),s(2),d("arrowPosition","left"),s(2),T(" ",_(16,52,"cookies.config.technical-cookie-title.cta")," "),s(2),N("color",_(18,54,e._ecpServ.sessionColor.name),"Xl fontSmall"),s(4),T(" ",_(22,56,"cookies.config.technical-cookie-description.cta")," "),s(3),N("underlined",_(25,58,e._ecpServ.sessionColor.name),"Xl fontSmall"),d("routerLink","/politica-de-cookies"),s(2),y(_(27,60,"cookies.config.technical-details-link.cta")),s(2),d("arrowPosition","left"),s(2),T(" ",_(31,62,"cookies.config.personalization-cookie-title.cta")," "),s(3),d("formControlName","cookie2"),s(3),T(" ",_(37,64,"cookies.config.personalization-cookie-description.cta")," "),s(3),N("underlined",_(40,66,e._ecpServ.sessionColor.name),"Xl fontSmall"),d("routerLink","/politica-de-cookies"),s(2),y(_(42,68,"cookies.config.personalization-detail
8s-link.cta")),s(2),d("arrowPosition","left"),s(2),T(" ",_(46,70,"cookies.config.analytical-cookie-title.cta")," "),s(3),d("formControlName","cookie3"),s(3),T(" ",_(52,72,"cookies.config.analytical-cookie-description.cta")," "),s(3),N("underlined",_(55,74,e._ecpServ.sessionColor.name),"Xl fontSmall"),d("routerLink","/politica-de-cookies"),s(2),y(_(57,76,"cookies.config.analytical-details-link.cta")),s(2),d("arrowPosition","left"),s(2),T(" ",_(61,78,"cookies.config.marketing-cookie-title.cta")," "),s(3),d("formControlName","cookie4"),s(3),T(" ",_(67,80,"cookies.config.marketing-cookie-description.cta")," "),s(3),N("underlined",_(70,82,e._ecpServ.sessionColor.name),"Xl fontSmall"),d("routerLink","/politica-de-cookies"),s(2),y(_(72,84,"cookies.config.marketing-details-link.cta")),s(2),d("ngIf",e.showConfigCookiesModal)}}var gs=(()=>{class n{constructor(e,t,r,o,a,l){this._ecpServ=e,this._tools=t,this.cookiesInteractor=r,this.eventsService=o,this.platformId=a,this._ref=l,this.cookieParams={name:"gdpr_consent",expires:30},this.showRejectAllButton=!0,this.subscriptions=[],this.firstRun=!0,this.isBrowser=wt(a)}ngAfterViewInit(){this._tools.isBrowser&&(this.cookieModalHeight=this.cookieModal?.last?.nativeElement?.scrollHeight+20,this._ref.detectChanges())}ngOnInit(){if(!this._tools.isBrowser){this.showCookies=!1;return}this.showConfigCookiesModal=!this._tools.isMobile,this.formCookiesPreferences=new yi({cookie1:new yt(1),cookie2:new yt(0),cookie3:new yt(0),cookie4:new yt(0)}),this.initShowCookieSubscription();let e=null;try{e=localStorage.getItem("cookies_accepted_at")}catch{e=null}this.showCookies=e==null,this._tools.checkCookie("gdpr_consent")?this.cookiesInteractor.setShowCookie(!1):this.cookiesInteractor.setShowCookie(!0)}initShowCookieSubscription(){let e=this.cookiesInteractor.getShowCookieObs().subscribe(t=>{let r=this._tools.checkCookie("gdpr_consent")?this._tools.getCookie("gdpr_consent"):"1000";this.showCookies=t,this.firstRun?(this.firstRun=!1,this.eventsService.gdprEvent.next({event:"gtm_consent_default",enableAds:parseInt(r[1],10),enableAnalytics:parseInt(r[2],10),enablePersonalization:parseInt(r[3],10)})):t||this.eventsService.gdprEvent.next({event:"gtm_consent_update",enableAds:parseInt(r[1],10),enableAnalytics:parseInt(r[2],10),enablePersonalization:parseInt(r[3],10)})})}openCookieConfigModal(){this.showConfigCookiesModal=!0}closeCookieConfigModal(){this.showConfigCookiesModal=!1}allowAll(){this._tools.setCookie(this.cookieParams.name,1111,365),this.cookiesInteractor.setShowCookiePreferenceModalStatus(!1),this.cookiesInteractor.setShowCookie(!1),this.eventsService.gdprEvent.next({enableAds:1,enableAnalytics:1,enablePersonalization:1,moduleType:"sidebar"})}saveCookiesPreference(){if(this.showConfigCookiesModal){let e=this.getCookiePreference(),t=this.formCookiesPreferences.get("cookie3").value?365:this.cookieParams.expires;this._tools.setCookie(this.cookieParams.name,e,t),this.cookiesInteractor.setShowCookiePreferenceModalStatus(!1),this.cookiesInteractor.setShowCookie(!1);let r=this.formCookiesPreferences.get("cookie2").value?1:0,o=this.formCookiesPreferences.get("cookie3").value?1:0,a=this.formCookiesPreferences.get("cookie4").value?1:0;this.eventsService.gdprEvent.next({enableAds:a,enableAnalytics:o,enablePersonalization:r,moduleType:"sidebar"})}else this.showCookies&&(this._tools.setCookie(this.cookieParams.name,1,this.cookieParams.expires),this.cookiesInteractor.setShowCookie(!1),this.eventsService.gdprEvent.next({enableAds:1,enableAnalytics:1,enablePersonalization:1,moduleType:"sidebar"}))}getCookiePreference(){let e=this.formCookiesPreferences.get("cookie1").value?1:0,t=this.formCookiesPreferences.get("cookie2").value?1:0,r=this.formCookiesPreferences.get("cookie3").value?1:0,o=this.formCookiesPreferences.get("cookie4").value?1:0;return[e,t,r,o].toString().replaceAll(",","")}cookieConfigChange(){this.showRejectAllButton=!1}ngOnDestroy(){this.subscriptions.forEach(e=>{e.unsubscribe()})}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(B),h(Ai),h(he),h(_t),h(me))}}static{this.\u0275cmp=P({type:n,selectors:[["cookie"]],viewQuery:function(t,r){if(t&1&&ce(dc,5),t&2){let o;pe(o=de())&&(r.cookieModal=o)}},decls:1,vars:1,consts:[["cookie",""],["cookieModal",""],["class","cookie",3,"open-config",4,"ngIf"],[1,"cookie"],["class","cookie-title fontBold fontBig",4,"ngIf"],[1,"cookie-text","fontSmall"],[1,"cookie-actions"],["class","d-lg-none cookie-more-info fontSmall",4,"ngIf"],["type","submit","class","primaryButtonBlueXl h-40 mh-40 fontSmall fontBold m-1",3,"click",4,"ngIf"],[1,"cookie-config-modal",3,"click"],[3,"submit","change","formGroup"],[1,"cookie-config-preferences","scrollable-when-locked","mb-1"],[3,"arrowPosition"],["header","",1,"w-100","d-flex","flex-row","justify-content-between"],["body",""],[1,"mt-4"],[3,"routerLink"],[1,"switch"],["type","checkbox",3,"formControlName"],[1,"slider","round"],["class","flex",4,"ngIf"],[1,"cookie-title","fontBold","fontBig"],["class","cookie-close-button fontBig",3,"click",4,"ngIf"],[1,"cookie-close-button","fontBig",3,"click"],["src","./assets/icons/close-white.svg","alt","close"],[1,"d-lg-none","cookie-more-info","fontSmall"],[3,"click"],["type","submit",1,"primaryButtonBlueXl","h-40","mh-40","fontSmall","fontBold","m-1",3,"click"],[1,"flex"],["type","submit",1,"primaryButtonPurpleXl","h-40","mh-40","fontSmall","fontBold","m-1",3,"click"],[4,"ngIf"]],template:function(t,r){t&1&&C(0,wc,74,86,"div",2),t&2&&d("ngIf",r.showCookies)},dependencies:[F,ue,Lt,Yr,Ci,Rt,bi,Si,fs,re,K],styles:[".cookie[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:350px;background-color:#212729eb;z-index:99999999999999999;padding:1.38vw;transition:height .5s ease-out}.cookie-title[_ngcontent-%COMP%]{position:relative;color:#fff;padding-bottom:1rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.cookie-text[_ngcontent-%COMP%]{color:#fff;line-height:1.41}.cookie-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.cookie-more-info[_ngcontent-%COMP%]{color:#fff;flex-grow:1;flex-basis:100%;text-align:center}.cookie-accept[_ngcontent-%COMP%]{flex-grow:1;flex-basis:100%}.cookie-config-preferences[_ngcontent-%COMP%]{overflow:hidden;overflow-y:auto}@media screen and (max-width: 800px){.cookie[_ngcontent-%COMP%]{width:100%}}@media screen and (min-width: 1440px){.cookie[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 1000px){.cookie[_ngcontent-%COMP%]{padding:13.88px}}.cookie-config-modal[_ngcontent-%COMP%]{position:relative;top:0;left:0;bottom:0;width:100%;color:#fff;overflow:hidden;z-index:999;transition:all .3s ease-out}.cookie-close-button[_ngcontent-%COMP%]{position:relative;top:0;right:0;color:#fff;cursor:pointer;width:20px;height:20px;
8display:flex;justify-content:center;align-items:center}"]})}}return n})();var _s={children:[{metadata:{title:"Preguntas m\xE1s frecuentes",uri:"/faqs",background:"Lighter"}},{metadata:{title:"Opciones de entrega",uri:"/opciones-de-entrega",background:"Lighter"}},{metadata:{title:"M\xE9todos de pago",uri:"/metodos-de-pago",background:"Lighter"}},{metadata:{title:"Quienes somos",uri:"/quienes-somos",background:"Lighter"}}],metadata:{title:"Info tienda",background:"Lighter"}};var yc=["childrenContent"],bc=()=>[];function Sc(n,i){n&1&&w(0,"div",9)}function Mc(n,i){if(n&1&&(c(0,"span",10),g(1),p()),n&2){let e=u(2);q("fontBold",e.level===0),s(),T(" ",e.title," ")}}function xc(n,i){if(n&1){let e=E();c(0,"app-link",11),b("afterClick",function(){S(e);let r=u(2);return M(r.menuItemClicked())}),g(1),p()}if(n&2){let e=u(2);d("uri",e.uri)("classes","fontSmall "+(e.level===0?"fontBold":"")),s(),y(e.title)}}function kc(n,i){if(n&1&&w(0,"i",12),n&2){let e=u(2);q("ph-plus",e.childrenStatus==="folded")("ph-minus",e.childrenStatus!=="folded")}}function Ic(n,i){if(n&1&&w(0,"menu-item",15),n&2){let e=i.$implicit,t=i.index,r=u(3);d("element",e)("level",r.level+1)("position",t+1)("path",r.path===""?r.title:r.path+" > "+r.title)("color",r.color)}}function Ec(n,i){if(n&1&&(c(0,"div",13,0),C(2,Ic,1,5,"menu-item",14),p()),n&2){let e=u(2);d("@expandCollapse",e.childrenStatus==="folded"?"collapsed":"expanded"),s(2),d("ngForOf",e.element.children)("ngForTrackBy",e.trackByFn)}}function Pc(n,i){if(n&1){let e=E();ae(0),c(1,"div",2),b("click",function(r){S(e);let o=u();return M(o.clickMenuItem(r))}),C(2,Sc,1,0,"div",3)(3,Mc,2,3,"span",4)(4,xc,2,3,"app-link",5),w(5,"div",6),C(6,kc,1,4,"i",7),p(),C(7,Ec,3,3,"div",8),le()}if(n&2){let e=u();s(),N("menu-item flex align-items-center m-adapt-px-20 mh-32 ",e.bgClasses[e.element.metadata==null?null:e.element.metadata.background],""),q("colorBlack",e.element.metadata==null?null:e.element.metadata.hasOwnProperty("background")),s(),d("ngForOf",Be(10,bc).constructor(e.level)),s(),d("ngIf",e.uri===null),s(),d("ngIf",e.uri!==null),s(2),d("ngIf",e.hasChildren),s(),d("ngIf",e.hasChildren)}}function Oc(n,i){if(n&1){let e=E();c(0,"banner-a4",20),b("click",function(){S(e);let r=u(),o=r.$implicit,a=r.index,l=u(3);return M(l.menuBannerClicked(o,a+1))}),p()}if(n&2){let e=u().$implicit;d("element",e)("sectionId","289")}}function Tc(n,i){if(n&1&&(ae(0),C(1,Oc,1,2,"banner-a4",19),le()),n&2){let e=u(3);s(),d("ngIf",e.element.module)}}function Ac(n,i){if(n&1&&(c(0,"div",17),C(1,Tc,2,1,"ng-container",18),p()),n&2){let e=u(2);s(),d("ngForOf",e.element.children)("ngForTrackBy",e.trackByFn)}}function Nc(n,i){if(n&1&&(ae(0),C(1,Ac,2,2,"div",16),le()),n&2){let e=u();s(),d("ngIf",(e.element.metadata==null?null:e.element.metadata.behaviour)==="section")}}var vs=(()=>{class n{constructor(e,t,r,o){this.eventsService=e,this._tools=t,this._sidebarsInteractor=r,this._ref=o,this.level=0,this.bgClasses=bt,this.childrenHeight=0}ngOnInit(){this.hasChildren=this.element.children&&this.element.children.length>0,this.uri=this.element.metadata.uri?{uri:this.element.metadata.uri}:null,this.childrenStatus="folded",this.color=this.element.metadata.background?"Black":this.color,this.title=this.element.metadata.title?this.element.metadata.title:"?"}ngOnDestroy(){this.eventSubscriber&&this.eventSubscriber.unsubscribe()}menuBannerClicked(e,t){this.eventsService.eventBus.dispatch(new Ke({type:"MenuItemBanner",path:this.path,position:t,name:e.module.posters[0].title}))}menuItemUnfolded(){this.eventsService.eventBus.dispatch(new Fi({type:"MenuItem",path:this.path,position:this.position,name:this.title}))}menuItemClicked(){this.eventsService.eventBus.dispatch(new Ke({type:"MenuItem",path:this.path,position:this.position,name:this.title}))}clickMenuItem(e){e.stopPropagation(),this.hasChildren&&(this.childrenStatus==="folded"?(this.subscribeToMenuOpened(),this.updateChildrenHeight(),this.menuItemUnfolded(),this.childrenStatus="unfolded"):this.childrenStatus="folded")}updateChildrenHeight(){this.childrenContent&&this.childrenContent.nativeElement&&(this.childrenHeight=this.childrenContent.nativeElement.scrollHeight)}
8subscribeToMenuOpened(){this.eventSubscriber&&this.eventSubscriber.unsubscribe(),this.eventSubscriber=this.eventsService.eventBus.subscribe(e=>{e&&e instanceof Vi&&(this.childrenStatus="folded",this._ref.detectChanges())})}trackByFn(e,t){return t.uri||t.title||e.toString()}static{this.\u0275fac=function(t){return new(t||n)(h(he),h(B),h(Z),h(me))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-item"]],viewQuery:function(t,r){if(t&1&&ce(yc,5),t&2){let o;pe(o=de())&&(r.childrenContent=o.first)}},inputs:{element:"element",color:"color",level:"level",path:"path",position:"position"},decls:2,vars:2,consts:[["childrenContent",""],[4,"ngIf"],[3,"click"],["class","m-adapt-pl-10 flex-shrink-no",4,"ngFor","ngForOf"],["class","fontSmall",3,"fontBold",4,"ngIf"],[3,"uri","classes","afterClick",4,"ngIf"],[1,"flex-grow"],["class","fontNormal ph",3,"ph-plus","ph-minus",4,"ngIf"],["class","children overflow-hidden",4,"ngIf"],[1,"m-adapt-pl-10","flex-shrink-no"],[1,"fontSmall"],[3,"afterClick","uri","classes"],[1,"fontNormal","ph"],[1,"children","overflow-hidden"],[3,"element","level","position","path","color",4,"ngFor","ngForOf","ngForTrackBy"],[3,"element","level","position","path","color"],["class","bannerContainer",4,"ngIf"],[1,"bannerContainer"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"element","sectionId","click",4,"ngIf"],[3,"click","element","sectionId"]],template:function(t,r){t&1&&C(0,Pc,8,11,"ng-container",1)(1,Nc,2,1,"ng-container",1),t&2&&(d("ngIf",(r.element.metadata==null?null:r.element.metadata.behaviour)!=="section"),s(),d("ngIf",(r.element.metadata==null?null:r.element.metadata.behaviour)==="section"))},dependencies:[Re,F,Ge,n],styles:[".menu-item[_ngcontent-%COMP%]{border-bottom:1px solid var(--grey-xl);transition:background-color .1s;text-transform:uppercase}.menu-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:transform .3s ease}.menu-item[_ngcontent-%COMP%] i.ph-minus[_ngcontent-%COMP%]{transform:rotate(180deg)}.menu-item[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{overflow:hidden;transition:height .3s ease}.menu-item[_ngcontent-%COMP%] .children.collapsed[_ngcontent-%COMP%]{height:0}.menu-item.dropdown-item[_ngcontent-%COMP%]{padding-left:4.16vw}"],data:{animation:[so("expandCollapse",[bn("collapsed",Ft({height:"0"})),bn("expanded",Ft({height:"*"})),co("collapsed <=> expanded",[ao("200ms ease-out")])])]},changeDetection:0})}}return n})();var Bc=["*"];function Rc(n,i){if(n&1&&w(0,"menu-item",2),n&2){let e=i.$implicit,t=i.index,r=u();d("element",e)("path","")("level",0)("position",t+1)("color",r.color)}}var ws=(()=>{class n{constructor(e){this._ecpServ=e,this.bgClasses=bt}static{this.\u0275fac=function(t){return new(t||n)(h(z))}}static{this.\u0275cmp=P({type:n,selectors:[["menu"]],inputs:{menuItems:"menuItems",color:"color"},ngContentSelectors:Bc,decls:3,vars:1,consts:[[1,"menu"],[3,"element","path","level","position","color",4,"ngFor","ngForOf"],[3,"element","path","level","position","color"]],template:function(t,r){t&1&&(ot(),c(0,"div",0),C(1,Rc,1,5,"menu-item",1),Je(2),p()),t&2&&(s(),d("ngForOf",r.menuItems))},dependencies:[Re,vs],styles:[".menu[_ngcontent-%COMP%]{width:100%;position:absolute;transition:left .2s linear;left:0}"]})}}return n})();var Fc=["menuContent"];function Vc(n,i){n&1&&(c(0,"div",18),w(1,"img",19),p())}function jc(n,i){if(n&1){let e=E();c(0,"div"),w(1,"newsletter",20),c(2,"a",9),b("click",function(r){return S(e),u(2)._sidebarsInteractor.openContact(),M(r.stopPropagation())}),g(3),f(4,"translate"),w(5,"img",21),p()()}if(n&2){let e=u(2);s(),d("dark",!1)("color",e._ecpServ.sessionColor.name),s(),N("help primaryButton",e._ecpServ.sessionColor.name,"Xl h-40 mh-50 fontNormal fontBold"),s(),T(" ",_(4,6,"menu-navigation.help.
8cta"),"")}}function zc(n,i){if(n&1){let e=E();c(0,"a",9),b("click",function(){S(e);let r=u(2);return M(r.openCartSidebar())}),g(1,"Mi cesta"),p()}}function Wc(n,i){if(n&1){let e=E();c(0,"menu",4)(1,"div",5),b("click",function(r){return S(e),M(r.stopPropagation())}),C(2,Vc,2,0,"div",6)(3,jc,6,8,"div",7),c(4,"div",8)(5,"a",9),b("click",function(){S(e);let r=u();return M(r._sidebarsInteractor.openAccountSidebar())}),g(6,"Mi cuenta"),p(),C(7,zc,2,0,"a",10),p(),c(8,"div",11)(9,"a",12),w(10,"i",13),p(),c(11,"a",14),w(12,"i",15),p(),c(13,"a",16),w(14,"i",17),p()()()()}if(n&2){let e=u();d("menuItems",e.menuItems)("color",e._ecpServ.sessionColor.name),s(2),d("ngIf",e.menuItems.length<=0),s(),d("ngIf",e.menuItems.length>0),s(4),d("ngIf",e._order.orderObject&&e._order.initialized&&e._order.cartProductsCount>0)}}var Cs=(()=>{class n{constructor(e,t,r,o,a,l,m,v){this._ecpServ=e,this._tools=t,this._ref=r,this._sidebarsInteractor=o,this._sectionsService=a,this._color=l,this._order=m,this._eventsService=v,this.menuItems=[],this.infoShop=_s,this.folded=!0}ngOnInit(){this._tools.isBrowser||(this.opened=!0),this.getMenuSection(),this.sidebarsClosedSubscription=this._sidebarsInteractor.sidebarsClosed.subscribe(()=>{this.scrollTop(),this._ref.detectChanges(),this._eventsService.eventBus.dispatch(new Vi)}),this.sidebarFragmentsObs=this._sidebarsInteractor.getSidebarFragmentsObs().subscribe(e=>{e.menu&&this._eventsService.eventBus.dispatch(new So)})}ngOnDestroy(){this.sidebarsClosedSubscription&&this.sidebarsClosedSubscription.unsubscribe(),this.menuSubscription&&this.menuSubscription.unsubscribe()}resetMenu(){this.scrollTop()}getMenuSection(){this.menuSubscription=this._sectionsService.getStructureSection("menu-wireframes-dev").pipe(ie(1)).subscribe(e=>{this.menuItems=e?this.filterDesktopNodes(e.nodes):[],this.menuItems.push(this.infoShop),this.menuSectionId=e?e.sectionId:null,this.addColors(),this._ref.markForCheck()})}scrollTop(){if(this.menuContent&&this.menuContent.nativeElement)try{this.menuContent.nativeElement.scrollTo(0,0)}catch{}}addColors(){this.menuItems.forEach((e,t)=>{if(e.metadata?.behaviour==="section")this.menuItems[t].children.forEach(r=>{r.metadata.colorOverride=this._color.nextColor()});else if(e.children){let r=e.children.findIndex(o=>o.metadata?.behaviour==="section");r!==-1&&this.menuItems[t].children[r].children.forEach(o=>{o.metadata.colorOverride=this._color.nextColor()})}})}handleWheelEvent(e){if(e.stopPropagation(),this.menuContent){let t=this.menuContent.nativeElement;if(this.bottomed=e.deltaY>0&&t.scrollTop===t.scrollHeight-t.offsetHeight,this.topped=e.deltaY<0&&t.scrollTop===0,this.topped&&e.deltaY<0){e.preventDefault();return}if(this.bottomed&&e.deltaY>0){e.preventDefault();return}}}filterDesktopNodes(e){return e.filter(t=>!t.metadata.hasOwnProperty("onlyInDesktop")).sort((t,r)=>{let o=t.metadata?.pinned||!1,a=r.metadata?.pinned||!1;return o===a?0:o?-1:1}).map(t=>(t.children&&(t.children=this.filterDesktopNodes(t.children)),t))}openCartSidebar(){this._order.orderObject&&this._order.initialized&&this._order.cartProductsCount>0&&this._sidebarsInteractor.openCartSidebar()}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(B),h(me),h(Z),h(Ve),h(Bt),h(Fe),h(he))}}static{this.\u0275cmp=P({type:n,selectors:[["menu-sidebar"]],viewQuery:function(t,r){if(t&1&&ce(Fc,5,Te),t&2){let o;pe(o=de())&&(r.menuContent=o.first)}},hostBindings:function(t,r){t&1&&b("wheel",function(a){return r.handleWheelEvent(a)})},inputs:{opened:"opened"},decls:4,vars:1,consts:[["menuContent",""],[1,"menu",3,"click"],[1,"menu-content"],[3,"menuItems","color",4,"ngIf"],[3,"menuItems","color"],[1,"menu-options","colorGreyDark","backgroundGreyLighter",3,"click"],["class","loadingSpinner",4,"ngIf"],[4,"ngIf"],[1,"userLinks","colorGreyLight80","fontSmall","fontBold"],[3,"click"],[3,"click",4,"ngIf"],[1,"socialLinks"],["rel","noopener","href","https://www.facebook.com/Xtralife.es/"],[1,"fab","fa-facebook"],["rel","noopener","href","https://www.instagram.com/xtralife.es/"],[1,"fab","fa-instagram"],["rel","noopener","href","https://twitter.com/xtralife_es"],[1,"fab","fa-twitter"],[1,"loadingSpinner"],["src","./assets/animation/loading-animation-cart.gif","alt","loading",2,"width","200px","height","200px"],[3,"dark","color"],["src","/assets/icons/help-2.svg"]],template:function(t,r){if(t&1){let o=E();
8c(0,"div",1),b("click",function(l){return S(o),M(l.stopPropagation())}),c(1,"div",2,0),C(3,Wc,15,5,"menu",3),p()()}t&2&&(s(3),d("ngIf",r.menuItems&&r.menuSectionId))},dependencies:[F,ws,qt,K],styles:[".menu[_ngcontent-%COMP%]{z-index:9999}.menu-content[_ngcontent-%COMP%]{position:absolute;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;inset:0;z-index:9999;box-sizing:border-box;background-color:#353c40;padding-top:14vw}.menu-options[_ngcontent-%COMP%]{padding:2.77vw}.menu-options[_ngcontent-%COMP%] .help[_ngcontent-%COMP%]{margin-top:1.6em;width:100%}.menu[_ngcontent-%COMP%]{width:100%}.foldedMenu[_ngcontent-%COMP%]{position:initial;max-height:0;overflow:hidden;transition:max-height .2s}.userLinks[_ngcontent-%COMP%]{margin:8vw 0 3vw;display:flex;width:100%;flex-direction:row}.userLinks[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-right:3vw;margin-right:3vw;border-right:1px solid;text-decoration:underline;text-transform:capitalize}.userLinks[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{border-right:0 none}.socialLinks[_ngcontent-%COMP%]{margin:8vw 0 3vw;display:flex;width:100%;flex-direction:row;gap:3vw;text-align:center}.socialLinks[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:40px;width:40px;display:block;font-size:8vw;padding-right:60px}@media screen and (min-width: 1440px){.menu-options[_ngcontent-%COMP%]{padding:40px}}@media screen and (max-width: 1000px){.menu-options[_ngcontent-%COMP%]{padding:27.77px}}"],changeDetection:0})}}return n})();var Hc=()=>[],qc=n=>({user:n});function $c(n,i){if(n&1&&(c(0,"p",17),g(1),f(2,"translate"),c(3,"span",18),g(4),f(5,"number"),p()()),n&2){let e=u();s(),T("",_(2,3,"account.points-earned.label")," "),s(3),Ir("",Er(5,5,e.user.loyaltyPoints,"",e._ecpServ.currentStorefront.locale)," ",e._ecpServ.currentStorefront.point_name,"")}}function Qc(n,i){n&1&&(c(0,"span",19),g(1),f(2,"translate"),p()),n&2&&(s(),y(_(2,1,"general.add.label")))}function Xc(n,i){if(n&1&&(c(0,"span",12),g(1),p()),n&2){let e=u();s(),y(e._account.user.addresses.length>9?"9+":e._account.user.addresses.length)}}function Gc(n,i){if(n&1&&(c(0,"span",12),g(1),p()),n&2){let e=u();s(),y(e._account.user.paymentMethods.length>9?"9+":e._account.user.paymentMethods.length)}}var ys=(()=>{class n{constructor(e,t,r){this._ecpServ=e,this._account=t,this.router=r}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(oe),h(ve))}}static{this.\u0275cmp=P({type:n,selectors:[["account-menu"]],inputs:{user:"user"},decls:60,vars:55,consts:[[3,"routerLink"],[1,"user-header"],[1,"avatar"],[3,"modal","assetList","asset","assetSize","assetResponsive"],[1,"points"],[1,"fontNormal","fontBold"],["class","fontNormal ",4,"ngIf"],[1,"user-buttons"],[1,"user-button","mh-40","fontNormal","fontBold",3,"routerLink"],["src","/assets/icons/right-arrow-white.svg"],[1,"user-button","mh-40","fontNormal",3,"routerLink"],[1,"user-button-options"],[1,"counterBadge"],["class","fontSmall fontBold",4,"ngIf"],["class","counterBadge",4,"ngIf"],[1,"user-button","mh-40","fontNormal",3,"click"],["src","/assets/icons/exit.svg"],[1,"fontNormal"],[1,"fontBold"],[1,"fontSmall","fontBold"]],template:function(t,r){t&1&&(c(0,"a",0)(1,"div",1)(2,"div",2),w(3,"asset",3),p(),c(4,"div",4)(5,"p",5),g(6),f(7,"translate"),p(),C(8,$c,6,9,"p",6),p()()(),c(9,"div",7)(10,"a",8),g(11),f(12,"translate"),w(13,"img",9),p(),c(14,"a",10),g(15),f(16,"translate"),w(17,"img",9),p(),c(18,"a",10),g(19),f(20,"translate"),c(21,"span",11)(22,"span",12),g(23),p(),w(24,"img",9),p()(),c(25,"a",10),g(26),f(27,"translate"),c(28,"span",11)(29,"span",12),g(30),p(),w(31,"img",9),p()(),c(32,"a",10),g(33),f(34,"translate"),c(35,"span",11)(36,"span",12),g(37),p(),w(38,"img",9),p()(),c(39,"a",10),g(40),f(41,"translate"),c(42,"span",11),C(43,Qc,3,3,"span",13)(44,Xc,2,1,"span",14),w(45,"img",9),p()(),c(46,"a",10),g(47),f(48,"translate"),c(49,"span",11),C(50,Gc,2,1,"span",14),w(51,"img",9),p()(),c(52,"a",10),g(53),f(54,"translate"),w(55,"img",9),p(),c(56,"a",15),b("click",function(){return r._account.logout(!0)}),g(57),f(58,"translate"),w(59,"img",16),p()()),t&2&&(d("routerLink","/mi-cuenta/dashboard"),s(3),d("modal",!1)("assetList",Be(52,Hc))("asset",r.user.avatar)("assetSize","medium")("assetResponsive","contain"),s(3),y(et(7,31,"account.welcome.label",be(53,qc,r.user.name))),s(2),d("ngIf",r.user.loyaltyPoints>0),s(2),d("routerLink","/mi-cuenta/dashboard"),s(),y(_(12,34,"account.personal-area.cta")),s(3),d("routerLink","/mi-cuenta/pedidos/1"),s(),y(_(16,36,"account.last-order.cta")),s(3),d("routerLink","/mi-cuenta/reservas/1"),s(),T("",_(20,38,"account.active-reservations.cta")," "),s(4),y(r._account.active_reservations),s(2),d("routerLink","/mi-cuenta/envi
8os/1"),s(),T("",_(27,40,"account.active-deliveries.cta")," "),s(4),y(r._account.active_deliveries>9?"9+":r._account.active_deliveries),s(2),d("routerLink","/mi-cuenta/favoritos"),s(),T("",_(34,42,"account.my-favourites.cta")," "),s(4),y(r._account.wishlist_count),s(2),d("routerLink","/mi-cuenta/direcciones"),s(),T("",_(41,44,"account.my-addresses.cta")," "),s(3),d("ngIf",r._account.user.addresses.length==0),s(),d("ngIf",r._account.user.addresses.length>0),s(2),d("routerLink","/mi-cuenta/metodos-de-pago"),s(),T("",_(48,46,"account.my-payment-methods.cta")," "),s(3),d("ngIf",r._account.user.paymentMethods.length>0),s(2),d("routerLink","/mi-cuenta/pedidos/1"),s(),y(_(54,48,"account.history.cta")),s(4),y(_(58,50,"account.logout.cta")))},dependencies:[F,ue,st,vi,K],styles:[".user-header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.4);padding:2.08vw;display:flex;align-items:center}.user-header[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{position:relative;height:50px;width:50px;min-height:50px;min-width:50px;border-radius:50%;overflow:hidden}.user-header[_ngcontent-%COMP%]:hover{background:#0000004d}.user-header[_ngcontent-%COMP%] .points[_ngcontent-%COMP%]{color:#fff;margin-left:1.5em;flex-grow:1}.points[_ngcontent-%COMP%]{padding-right:2.7em}.user-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.user-button[_ngcontent-%COMP%]{height:3.17vw;width:100%;border-bottom:1px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:space-between;padding:0 2.08vw;color:#fff;cursor:pointer;text-decoration:none;transition:background .1s}.user-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1.2em}.user-button[_ngcontent-%COMP%]:hover{background:#0000004d;transition:background .2s}.user-button.half[_ngcontent-%COMP%]{width:50%}.user-button-options[_ngcontent-%COMP%]{display:flex;align-items:center}.user-button-options[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:1em}.user-button.half[_ngcontent-%COMP%]:nth-child(1){border-right:1px solid rgba(255,255,255,.4)}@media screen and (min-width: 1440px){.user-button[_ngcontent-%COMP%]{height:45.75px;padding:0 30px}.user-header[_ngcontent-%COMP%]{padding:30px}}@media screen and (max-width: 1000px){.user-button[_ngcontent-%COMP%]{height:31.77px;padding:0 20.83px}.user-header[_ngcontent-%COMP%]{padding:20.83px}}@media screen and (min-width:560px) and (max-width: 800px) and (max-aspect-ratio: 13/9){.user-header[_ngcontent-%COMP%]{padding:1em}.user-button[_ngcontent-%COMP%]{padding:0 1em}.points[_ngcontent-%COMP%]{margin-left:0;padding-left:1em;padding-right:0}}@media screen and (min-width:320px) and (max-width: 560px) and (max-aspect-ratio: 13/9){.user-header[_ngcontent-%COMP%]{padding:1em}.user-button[_ngcontent-%COMP%]{padding:0 1em}.points[_ngcontent-%COMP%]{margin-left:0;padding-left:1em;padding-right:0}}@media screen and (max-width: 320px) and (max-aspect-ratio: 13/9),screen and (max-width: 800px) and (min-aspect-ratio: 13/9){.user-header[_ngcontent-%COMP%]{padding:1em}.user-button[_ngcontent-%COMP%]{padding:0 1em}.points[_ngcontent-%COMP%]{margin-left:0;padding-left:1em;padding-right:0}}"]})}}return n})();var Zc=["email"],Jc=["pass"];function ep(n,i){if(n&1){let e=E();c(0,"img",20),b("click",function(){S(e);let r=u();return M(r._sidebarsInteractor.closeAccount())}),p()}}function tp(n,i){if(n&1&&(c(0,"h2"),g(1),p()),n&2){let e=u();s(),y(e._tools.accountSidebarTitle)}}function ip(n,i){if(n&1){let e=E();c(0,"a",21),b("click",function(r){S(e);let o=u(),a=X(10);return o.recoverPassword(a.value),M(r.stopPropagation())}),g(1),f(2,"translate"),p()}n&2&&(s(),y(_(2,1,"account.recover-password.cta")))}function np(n,i){if(n&1&&(c(0,"span",22),g(1),f(2,"translate"),c(3,"span",23),g(4),p()()),n&2){let e=u();s(),T("",_(2,2,"notification.need-email-for-password-recovery.label")," "),s(3),y(e.countDownLimitToSendRecoverPassword+"s")}}function rp(n,i){if(n&1){let e=E();c(0,"div",24),b("click",function(){S(e);let r=u();return M(r.goBackToCart())}),w(1,"img",25),c(2,"span",7),g(3),f(4,"translate"),p()()}n&2&&(s(3),y(_(4,1,"login.go-back-to-cart.cta")))}function op(n,i){n&1&&w(0,"round-spinner",26),n&2&&d("color","#212529")}var bs=(()=>{class n{constructor(e,t,r,o,a,l){this._ecpServ=e,this._account=t,this._tools=r,this._order=o,this._toastr=a,this._sidebarsInteractor=l,this.shouldFocus=!0,this.canClick=!1,this.showPassword=!1,this.focused=!1,this.canClickRecoverPassword=!0,this.loadingSpinner=!1,this.countDownLimitToSendRecoverPassword=59}ngOnInit(){this.status=="login-error"?(this._account.loginError=!0,setTimeout(()=>{this._account.status="logged-out"},500)):this._account.loginError=!1}ngAfterViewChecked(){!this.focused&&this._sidebarsInteractor.getSidebarFragments().account&&this.shouldFocus&&!this._tools.isMobile&&(this.focused=!0,!this._account.identifier&&this.email.nativeElement.value==""?this.email.nativeElement.focus():this.pass.nativeElement.focus())}ngOnChanges(){this.status=="login-error"?(this._account.loginError=!0,this.loadingSpinner=!1,setTimeout(()=>{this._account.status="logged-out"},500)):this._account.loginError=!1}loginUser(e,t){if(this.canClick=!1,this.loadingSpinner=!0,e!==""&&t!==""){if(t.length<8){this._account.passwordError=!0,this.loadingSpinner=!1;return}let r=this.checkEmailAndPassword();this._account.login(e,t,r,!this._tools.isMobile)}else this.checkEmail(e,!0),this.checkPassword(t,!0),this.loadingSpinner=!1}resetErrors(){this._account.loginError=!1,this._account.emailError=!1,this._account.passwordError=!1}checkEmail(e,t){(this._account.emailError||t)&&(this.resetErrors(),e!=""&&(this._account.emailError=!e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)),this.shouldFocus=!1,this.canClick=this.checkEmailAndPassword())}checkPassword(e,t){!t&&!this._account.emailError||(this.checkEmail(this.email.nativeElement.value,!0),this.shouldFocus=!1,this.canClick=this.checkEmailAndPassword())}checkEmailAndPassword(){return this.email.nativeElement.value!=""&&this.pass.nativeElement.value!=""&&!this._account.emailError&&!this._account.passwordError}recoverPassword(e){this.canClickRecoverPassword&&(e!==""&&!this._account.emailError?(this.checkEmail(e,!0),this._account.re
8coverPassword("email",e),this.canClickRecoverPassword=!1,this._tools.isBrowser&&this.countDownTo()):this._toastr.warning(this._tools.translate(this._ecpServ.currentStorefront.translations,"notification.need-correct-email-password-recovery.label").value))}togglePassword(){this.showPassword=!this.showPassword,this.pass.nativeElement.focus()}goBackToCart(){this._order.orderObject&&this._order.initialized&&this._order.cartProductsCount>0?this._sidebarsInteractor.openCartSidebar():this._order.loading||this._toastr.warning(this._tools.translate(this._ecpServ.currentStorefront.translations,"notification.empty-cart.label").value)}countDownTo(){return ht(this,null,function*(){setTimeout(()=>ht(this,null,function*(){if(this.countDownLimitToSendRecoverPassword<=0){clearTimeout(null);try{this.canClickRecoverPassword=!0,this.countDownLimitToSendRecoverPassword=59}catch(e){console.log(e)}}else this.countDownLimitToSendRecoverPassword--,this.countDownTo()}),1e3)})}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(oe),h(B),h(Fe),h(at),h(Z))}}static{this.\u0275cmp=P({type:n,selectors:[["account-login"]],viewQuery:function(t,r){if(t&1&&(ce(Zc,7,Te),ce(Jc,7,Te)),t&2){let o;pe(o=de())&&(r.email=o.first),pe(o=de())&&(r.pass=o.first)}},inputs:{status:"status"},features:[di],decls:63,vars:79,consts:[["email",""],["pass",""],["class","closeBut positionAbsolute mh-9","src","/assets/icons/close.svg",3,"click",4,"ngIf"],[1,"xlContent","accountLogin"],[4,"ngIf"],["method","POST"],[1,"description","fontNormal"],[1,"fontNormal","fontBold"],["autocomplete","username","spellcheck","false","type","email",3,"keyup","blur","focus","keyup.enter","placeholder","value"],[1,"inputGroup"],["autocomplete","current-password","spellcheck","false",3,"keyup","blur","focus","keyup.enter","type","placeholder"],[1,"inputGroupIcon",3,"click","src"],[1,"rememberWrapper"],["class","rememberLink underlinedWhiteXl cursorPointer fontNormal",3,"click",4,"ngIf"],["class","rememberLink cursorPointer fontNormal",4,"ngIf"],[1,"button-actions"],["class","back-action fontNormal buttonBlackXl cursorPointer h-40 mh-38",3,"click",4,"ngIf"],[3,"click"],["class","group-spinner spinner-account",3,"color",4,"ngIf"],[1,"underlinedWhiteXl",3,"routerLink"],["src","/assets/icons/close.svg",1,"closeBut","positionAbsolute","mh-9",3,"click"],[1,"rememberLink","underlinedWhiteXl","cursorPointer","fontNormal",3,"click"],[1,"rememberLink","cursorPointer","fontNormal"],[1,"fontBold"],[1,"back-action","fontNormal","buttonBlackXl","cursorPointer","h-40","mh-38",3,"click"],["src","/assets/icons/left-arrow-white.svg"],[1,"group-spinner","spinner-account",3,"color"]],template:function(t,r){if(t&1){let o=E();C(0,ep,1,0,"img",2),c(1,"div",3),C(2,tp,2,1,"h2",4),c(3,"form",5)(4,"p",6),g(5),p(),c(6,"p",7),g(7),f(8,"translate"),p(),c(9,"input",8,0),f(11,"titlecase"),f(12,"translate"),b("keyup",function(){S(o);let l=X(10);return M(r.checkEmail(l.value,!1))})("blur",function(){S(o);let l=X(10);return M(r.checkEmail(l.value,!0))})("focus",function(){return S(o),M(r.shouldFocus=!1)})("keyup.enter",function(){S(o);let l=X(10),m=X(18);return r.checkEmail(l.value,!0),M(r.loginUser(l.value,m.value))}),p(),c(13,"p"),g(14),f(15,"translate"),p(),c(16,"div",9)(17,"input",10,1),f(19,"titlecase"),f(20,"translate"),b("keyup",function(){S(o);let l=X(18);return M(r.checkPassword(l.value,!0))})("blur",function(){S(o);let l=X(18);return M(r.checkPassword(l.value,!0))})("focus",function(){return S(o),M(r.shouldFocus=!1)})("keyup.enter",function(){S(o);let l=X(10),m=X(18);return r.checkPassword(m.value,!0),M(r.loginUser(l.value,m.value))}),p(),c(21,"img",11),b("click",function(){return S(o),M(r.togglePassword())}),p()(),c(22,"p"),g(23),f(24,"translate"),p(),c(25,"p",12),C(26,ip,3,3,"a",13)(27,np,5,4,"span",14),p(),c(28,"div",15),C(29,rp,5,3,"div",16),c(30,"div",17),b("click",function(l){S(o);let m=X(10),v=X(18);return r.canClick&&r.loginUser(m.value,v.value),M(l.stopPropagation())}),c(31,"span",7),g(32),f(33,"translate"),p(),C(34,op,1,1,"round-spinner",18),p()(),c(35,"p",6)(36,"span"),g(37),f(38,"translate"),p(),g(39),c(40,"a",19),g(41),f(42,"translate"),p(),g(43,", "),c(44,"span"),g(45),f(46,"translate"),p(),g(47),c(48,"a",19),g(49),f(50,"translate"),p(),g(51),c(52,"span"),g(53),f(54,"translate"),p(),g(55),c(56,"a",19),g(57),f(58,"translate"),p(),g(59,". "),c(60,"span"),g(61),f(62,"translate"),p()()()()}t&2&&(d("ngIf",r._tools.isMobile),s(2),d("ngIf",!r._tools.isMobile),s(3),y(r._tools.accountSidebarSubtitle),s(2),y(_(8,49,"header-nologin.hello.cta")),s(2),Ne("h-40 mh-38 input",_(11,51,r._ecpServ.accountColor.name),"Xl ",r._account.emailError?"error":""," fontNormal"),De("placeholder",_(12,53,"account.email.placeholder")),De("value",r._account.identifier),s(4),N("fontSmall fontBold ",r._account.emailError?"":"hidden"," errorInfo"),s(),y(_(15,55,"account.email.error")),s(3),Ne("h-40 mh-38 input",_(19,57,r._ecpServ.accountColor.name),"Xl ",r._account.passwordError?"error":""," fontNormal"),De("type",r.showPassword?"text":"password"),De("placeholder",_(20,59,"account.password.placeholder")),s(4),$e("src","/assets/icons/",r.showPassword?"hide-password":"show-password",".svg",Ae),s(),N("fontSmall fontBold ",r._account.passwordError?"":"hidden"," errorInfo"),s(),y(_(24,61,"account.password.error")),s(3),d("ngIf",r.canClickRecoverPassword),s(),d("ngIf",!r.canClickRecoverPassword),s(2),d("ngIf",r._tools.shouldOpenCartAfterLogin),s(),Ne("default-action fontNormal ",r.canClick?"buttonBlackXl cursorPointer":"primaryButtonGreyXl cursorDefault"," h-40 mh-38 ",r._account.loginError?"shakeXl":"",""),s(2),y(_(33,63,"account.next.cta")),s(2),d("ngIf",r.loadingSpinner),s(3),y(_(38,65,"account.terms-1.label")),s(2),T(" "," ",""),s(),d("routerLink","/terminos-y-condiciones"),s(),y(_(42,67,"account.terms-1.cta")),s(4),y(_(46,69,"account.terms-2.label")),s(2),T(" "," ",""),s(),d("routerLink","/politica-de-privacidad"),s(),y(_(50,71,"account.terms-2.cta")),s(2),T(""," "," "),s(2),y(_(54,73,"account.terms-3.label")),s(2),T(" "," ",""),s(),d("routerLink","/politica-de-cookie
8s"),s(),y(_(58,75,"account.terms-3.cta")),s(4),y(_(62,77,"account.terms-4.label")))},dependencies:[F,ue,ki,Lt,Rt,Jr,re,K],styles:[".accountLogin[_ngcontent-%COMP%]{padding:0 2.08vw}.description[_ngcontent-%COMP%]{margin-bottom:1.4em}.fontSmall.hidden[_ngcontent-%COMP%]{opacity:0;max-height:0;min-height:0;margin-top:-.4em;transition:.2s ease-out}.fontSmall[_ngcontent-%COMP%]{line-height:1.2em;min-height:1.2em;max-height:3em;transition:.2s ease-out}.rememberWrapper[_ngcontent-%COMP%]{text-align:right;margin:.4em 0 .8em}.button-actions[_ngcontent-%COMP%]{display:flex}.button-actions[_ngcontent-%COMP%] .back-action[_ngcontent-%COMP%]{width:33%;min-width:33%;margin-right:.6em}.button-actions[_ngcontent-%COMP%] .back-action[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1em;margin:0 .6em 0 0}.button-actions[_ngcontent-%COMP%] .default-action[_ngcontent-%COMP%]{flex-grow:1}.closeBut[_ngcontent-%COMP%]{right:18px;top:0;z-index:1}@media screen and (min-width: 1440px){.accountLogin[_ngcontent-%COMP%]{padding:0 30px}}@media screen and (max-width: 1000px){.accountLogin[_ngcontent-%COMP%]{padding:0 20.83px}}"]})}}return n})();var ap=["name"],lp=["identifier"];function cp(n,i){if(n&1){let e=E();c(0,"img",20),b("click",function(){S(e);let r=u();return M(r.editIdentifier())}),p()}}function pp(n,i){n&1&&w(0,"round-spinner",21),n&2&&d("color","#212529")}var Ss=(()=>{class n{constructor(e,t,r,o){this._ecpServ=e,this._account=t,this._layout=r,this._tools=o,this.keepIdentifier=!0,this.canClick=!1,this.canClickRegisterButton=!0,this.subscribeToNewsletter=!1}ngOnInit(){this._tools.isBrowser&&setTimeout(()=>{this.name.nativeElement.focus()},100)}
8ngOnDestroy(){this.userStatusSubscription&&this.userStatusSubscription.unsubscribe(),this.observeLoggedSubscription&&this.observeLoggedSubscription.unsubscribe()}validateEmail(e,t){(this._account.emailError||t)&&(e!=""&&(this._account.emailError=!e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),this._account.emailError||(this._account.identifier=e)),this.canClick=this.checkFields())}checkFields(){return!this._account.nameError&&!this._account.emailError}validateName(e){this._account.nameError=e.length==0||e=="",this.canClick=this.checkFields()}register(e){this.canClickRegisterButton&&(this.canClickRegisterButton=!1,this.canClick=!1,this.subscribeToNewsletter?this._account.registerNewUserAndSubscribeNewsletter(this._account.identifier,this._account.password,e):this._account.register(this._account.identifier,this._account.password,e),this.observeLoggedSubscription=this._account.observeLoggedIn().subscribe(t=>{this.canClick=t}))}editIdentifier(){this.keepIdentifier=!1,setTimeout(()=>{this.identifier.nativeElement.focus()},100)}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(oe),h(Qe),h(B))}}static{this.\u0275cmp=P({type:n,selectors:[["account-register"]],viewQuery:function(t,r){if(t&1&&(ce(ap,7,Te),ce(lp,7,Te)),t&2){let o;pe(o=de())&&(r.name=o.first),pe(o=de())&&(r.identifier=o.first)}},decls:63,vars:68,consts:[["registerWrapper",""],["identifier",""],["name",""],[1,"xlContent"],[1,"description","fontNormal"],[1,"inputGroup"],["autocomplete","username","spellcheck","false",3,"keyup","blur","disabled","value"],["class","inputGroupIcon","src","/assets/icons/pencil.svg",3,"click",4,"ngIf"],["autocomplete","name","spellcheck","false","placeholder","Tu nombre",3,"keyup","keyup.enter"],[1,"button-actions"],[1,"back-action","fontNormal","buttonBlackXl","cursorPointer","h-40","mh-38",3,"click"],["src","/assets/icons/left-arrow-white.svg"],[1,"fontNormal","fontBold"],[3,"click"],["class","group-spinner spinner-account",3,"color",4,"ngIf"],[1,"pt-2","cursorPointer",3,"click"],[1,"fontNormal","cursorPointer","newsletter-option"],[1,"checkbox",3,"src"],[1,"description","fontNormal","mobileFontSmall"],[1,"underlinedWhiteXl",3,"routerLink"],["src","/assets/icons/pencil.svg",1,"inputGroupIcon",3,"click"],[1,"group-spinner","spinner-account",3,"color"]],template:function(t,r){if(t&1){let o=E();c(0,"div",3,0)(2,"h2"),g(3),f(4,"translate"),p(),c(5,"p",4),g(6),f(7,"translate"),p(),c(8,"div",5)(9,"input",6,1),f(11,"titlecase"),b("keyup",function(){S(o);let l=X(10);return M(r.validateEmail(l.value,!1))})("blur",function(){S(o);let l=X(10);return M(r.validateEmail(l.value,!0))}),p(),C(12,cp,1,0,"img",7),p(),c(13,"p"),g(14),f(15,"translate"),p(),c(16,"input",8,2),f(18,"titlecase"),b("keyup",function(){S(o);let l=X(17);return M(r.validateName(l.value))})("keyup.enter",function(){S(o);let l=X(17);return M(r.checkFields()?r.register(l.value):"")}),p(),c(19,"div",9)(20,"div",10),b("click",function(){return S(o),M(r._account.status="logged-out")}),w(21,"img",11),c(22,"span",12),g(23),f(24,"translate"),p()(),c(25,"div",13),b("click",function(){S(o);let l=X(17);return M(r.checkFields()?r.register(l.value):"")}),c(26,"span",12),g(27),f(28,"translate"),C(29,pp,1,1,"round-spinner",14),p()()(),c(30,"div",15),b("click",function(){return S(o),M(r.subscribeToNewsletter=!r.subscribeToNewsletter)}),c(31,"span",16),w(32,"img",17),p(),g(33),f(34,"translate"),p(),c(35,"p",18)(36,"span"),g(37),f(38,"translate"),p(),g(39),c(40,"a",19),g(41),f(42,"translate"),p(),g(43,", "),c(44,"span"),g(45),f(46,"translate"),p(),g(47),c(48,"a",19),g(49),f(50,"translate"),p(),g(51),c(52,"span"),g(53),f(54,"translate"),p(),g(55),c(56,"a",19),g(57),f(58,"translate"),p(),g(59,". "),c(60,"span"),g(61),f(62,"translate"),p()()()}t&2&&(s(3),y(_(4,38,"account.create-account.label")),s(3),y(_(7,40,"account.create-account-subtitle.label")),s(3),N("input",_(11,42,r._ecpServ.accountColor.name),"Xl highlight fontNormal"),De("disabled",r.keepIdentifier?"disabled":""),De("value",r._account.identifier),s(3),d("ngIf",r.keepIdentifier),s(),N("fontSmall fontBold ",r._account.emailError?"":"hidden"," errorInfo"),s(),y(_(15,44,"account.email.error")),s(2),N("fontNormal input",_(18,46,r._ecpServ.accountColor.name),"Xl"),s(7),y(_(24,48,"account-sidebar.create-account-back.cta")),s(2),N("default-action fontNormal ",r.canClick?"buttonBlackXl cursorPointer":"primaryButtonGreyXl cursorDefault"," h-40 mh-36"),s(2),T("",_(28,50,"account-sidebar.create-account.cta")," "),s(2),d("ngIf",!r.canClickRegisterButton),s(3),$e("src","/assets/icons/check",r.subscribeToNewsletter?"-tick-selected":"",".svg",Ae),s(),T(" ",_(34,52,"account.register.newsletter.label")," "),s(4),y(_(38,54,"account.terms-1.label")),s(2),T(" "," ",""),s(),d("routerLink","/terminos-y-condiciones"),s(),y(_(42,56,"account.terms-1.cta")),s(4),y(_(46,58,"account.terms-2.label")),s(2),T(" "," ",""),s(),d("routerLink","/politica-de-privacidad"),s(),y(_(50,60,"account.terms-2.cta")),s(2),T(""," "," "),s(2),y(_(54,62,"account.terms-3.label")),s(2),T(" "," ",""),s(),d("routerLink","/politica-de-cookie
8s"),s(),y(_(58,64,"account.terms-3.cta")),s(4),y(_(62,66,"account.terms-4.label")))},dependencies:[F,ue,ki,re,K],styles:[".xlContent[_ngcontent-%COMP%]{position:relative;margin:0 2.08vw}.backButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:.7em;vertical-align:baseline;margin-right:.1em}.button-actions[_ngcontent-%COMP%]{display:flex}.button-actions[_ngcontent-%COMP%] .back-action[_ngcontent-%COMP%]{width:33%;min-width:33%;margin-right:.6em}.button-actions[_ngcontent-%COMP%] .back-action[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1em;margin:0 .6em 0 0}.button-actions[_ngcontent-%COMP%] .default-action[_ngcontent-%COMP%]{flex-grow:1}.fontSmall.hidden[_ngcontent-%COMP%]{opacity:0;max-height:0;min-height:0;margin-top:-.4em;transition:.2s ease-out}.fontSmall[_ngcontent-%COMP%]{line-height:1.2em;min-height:1.2em;max-height:3em;transition:.2s ease-out}@media screen and (min-width: 1440px){.xlContent[_ngcontent-%COMP%]{margin:0 30px}}@media screen and (max-width: 1000px){.xlContent[_ngcontent-%COMP%]{margin:0 20.83px}}@media screen and (min-width:560px) and (max-width: 800px) and (max-aspect-ratio: 13/9){input[_ngcontent-%COMP%]{min-height:38px!important;height:11.875vw!important;max-height:66.5px!important}}@media screen and (min-width:320px) and (max-width: 560px) and (max-aspect-ratio: 13/9){input[_ngcontent-%COMP%]{min-height:38px!important;height:11.875vw!important;max-height:66.5px!important}}@media screen and (max-width:320px) and (max-aspect-ratio: 13/9),screen and (max-width:800px) and (min-aspect-ratio: 13/9){input[_ngcontent-%COMP%]{min-height:38px!important;height:11.875vw!important;max-height:66.5px!important}}"]})}}return n})();function mp(n,i){if(n&1){let e=E();c(0,"img",3),b("click",function(){S(e);let r=u();return M(r._sidebarsInteractor.closeAccount())}),p()}if(n&2){let e=u();$e("src","/assets/icons/close",e._account.user?"-white":"",".svg",Ae)}}function up(n,i){if(n&1&&w(0,"account-login",7),n&2){let e=u(2);d("status",e._account.status)}}function hp(n,i){n&1&&w(0,"account-register")}function fp(n,i){n&1&&(c(0,"p",8),g(1),f(2,"translate"),p()),n&2&&(s(),y(_(2,1,"account.legal-note.label")))}function gp(n,i){if(n&1&&(c(0,"div"),C(1,up,1,1,"account-login",4)(2,hp,1,0,"account-register",5)(3,fp,3,3,"p",6),p()),n&2){let e=u();N("account-sidebar ",e._sidebarsInteractor.getSidebarFragments().account?"expanded":"",""),s(),d("ngIf",e._account.status=="logged-out"||e._account.status=="login-error"),s(),d("ngIf",e._account.status=="register"),s(),d("ngIf",e._account.status=="logged-out"||e._account.status=="login-error"||e._account.status=="register")}}function _p(n,i){if(n&1&&w(0,"account-menu",10),n&2){let e=u(2);d("user",e._account.user)}}function vp(n,i){if(n&1&&(c(0,"div",null,0),C(2,_p,1,1,"account-menu",9),p()),n&2){let e=u();N("account-sidebar menu ",e._sidebarsInteractor.getSidebarFragments().account?"expanded":"",""),s(2),d("ngIf",e._sidebarsInteractor.getSidebarFragments().account)}}var Ms=(()=>{class n{constructor(e,t,r,o,a){this._ecpServ=e,this._tools=t,this._account=r,this.sidebar=o,this._sidebarsInteractor=a}ngOnInit(){this.status=this._account.status}scrollTop(){try{this.sidebar.nativeElement.scrollTop>0&&this.sidebar.nativeElement.scrollTo(0,0)}catch{}}static{this.\u0275fac=function(t){return new(t||n)(h(z),h(B),h(oe),h(Te),h(Z))}}static{this.\u0275cmp=P({type:n,selectors:[["account-sidebar"]],decls:3,vars:3,consts:[["accountMenu",""],["class","closeButton",3,"src","click",4,"ngIf"],[3,"class",4,"ngIf"],[1,"closeButton",3,"click","src"],[3,"status",4,"ngIf"],[4,"ngIf"],["class","legalNote fontNormal",4,"ngIf"],[3,"status"],[1,"legalNote","fontNormal"],[3,"user",4,"ngIf"],[3,"user"]],template:function(t,r){t&1&&C(0,mp,1,2,"img",1)(1,gp,4,6,"div",2)(2,vp,3,4,"div",2),t&2&&(d("ngIf",!r._tools.isMobile),s(),d("ngIf",!r._account.user&&r._sidebarsInteractor.getSidebarFragments().account),s(),d("ngIf",r._account.user))},dependencies:[F,ys,bs,Ss,K],styles:["[_nghost-%COMP%]{overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:0}.account-sidebar[_ngcontent-%COMP%]{width:100%;position:relative;box-sizing:border-box}.closeButton[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:999;height:1.38vw;top:1.73vw;right:calc(100px + 1.73vw)}.legalNote[_ngcontent-%COMP%]{margin-top:5rem;color:#607d8b;padding:4.16vw 2.08vw 2.08vw}@media screen and (min-width: 1440px){.closeButton[_ngcontent-%COMP%]{height:20px;top:25px;right:125px}.legalNote[_ngcontent-%COMP%]{padding:60px 30px 30px}}@media screen and (max-width: 1000px){.closeButton[_ngcontent-%COMP%]{height:13.88px;top:17.36px;right:117.36px}.legalNote[_ngcontent-%COMP%]{padding:41.6px 20.8px 20.8px}}"]})}}return n})();
8function Cp(n,i){if(n&1){let e=E();c(0,"modal",2),b("closed",function(){S(e);let r=u();return M(r.closeNewsletter())}),c(1,"div",3)(2,"div",4)(3,"div",5),g(4),f(5,"translate"),p(),c(6,"p",6),g(7),f(8,"translate"),p(),w(9,"newsletter",7)(10,"p",8),f(11,"translate"),p(),c(12,"div",9),w(13,"img",10),p()()()}if(n&2){let e=u();d("show",e.showNewsletterModal)("maxWidth",800),s(4),y(_(5,8,"newsletter-popup.title.label")),s(3),y(_(8,10,"newsletter-popup.description.label")),s(2),d("dark",!0)("color","Purple")("characteristicValue","newsletter-popup"),s(),d("innerHTML",_(11,12,"newsletter-popup.small-text.label"),vt)}}function yp(n,i){if(n&1){let e=E();c(0,"popup",11),b("closed",function(){S(e);let r=u();return M(r.closeNewsletter())}),c(1,"div",12),g(2),f(3,"translate"),p(),c(4,"div",13)(5,"div",14)(6,"p",15),g(7),f(8,"translate"),p(),w(9,"newsletter",7),p(),c(10,"div",16),w(11,"img",10),p()()()}if(n&2){let e=u();d("show",e.showNewsletterModal),s(2),y(_(3,6,"newsletter-popup.title.label")),s(5),y(_(8,8,"newsletter-popup.description.label")),s(2),d("dark",!0)("color","Purple")("characteristicValue","newsletter-popup")}}var xs=(()=>{class n{constructor(e,t,r,o,a,l){this._account=e,this.cookiesInteractor=t,this._sidebarsInteractor=r,this.router=o,this._tools=a,this.eventsService=l,this.showNewsletterModal=!1,this.newsletterData=null,this.userSubscribed=!1,this.timeInterval=45e3,this.newsletterInterval=6048e5}ngOnInit(){this._tools.isBrowser&&(this.loadNewsletterData(),this.initShowCookieSubscription())}initUserLoggedInAndHasNewsletterSubs(){this.userLoggedInSubscription=this._account.observeLoggedIn().subscribe(e=>{e===!0?this.checkNewsletterSubscription=this._account.observableCheckSubcriptiononNewsLetter().subscribe(t=>{t.success?this.userSubscribed=!0:this.tryToShowNewsletterModal()}):this.tryToShowNewsletterModal()})}tryToShowNewsletterModal(){if(!this.showCookies)if(!this.newsletterData)this.showNewsletter();else{let e=this.newsletterInterval*22;switch(this.newsletterData.times){case 1:e=0;break;case 2:e=this.newsletterInterval*3;break;case 3:e=this.newsletterInterval*4;break;case 4:e=this.newsletterInterval*22;break}let t=Date.now();this.newsletterData.date<=t-e&&this.showNewsletter()}}showNewsletter(){setTimeout(()=>{this.newsletterModalShown()},this.timeInterval)}newsletterModalShown(){if(this.checkNewsletterConditions()){this.showNewsletterModal=!0;try{this.newsletterData.date=Date.now(),this.newsletterData.times=this.newsletterData.times>=4?4:this.newsletterData.times+1,localStorage.setItem("showNewsletter",JSON.stringify(this.newsletterData)),this.sendNewsletterModalShownEvent()}catch{}}}sendNewsletterModalShownEvent(){this.eventsService.eventBus.dispatch(new go({times:this.newsletterData.times-1}))}checkNewsletterConditions(){return!this._sidebarsInteractor.getSidebarFragments().cart&&!this.router.url.includes("mi-cuenta")}closeNewsletter(){this.sendNewsletterModalDismissEvent(),this.showNewsletterModal=!1}sendNewsletterModalDismissEvent(){this.eventsService.eventBus.dispatch(new _o({times:this.newsletterData.times-1}))}initShowCookieSubscription(){this.cookiesSubscription=this.cookiesInteractor.getShowCookieObs().subscribe(e=>{this.showCookies=e,this.showCookies||this.initUserLoggedInAndHasNewsletterSubs()})}ngOnDestroy(){this.cookiesSubscription?.unsubscribe(),this.userLoggedInSubscription?.unsubscribe(),this.checkNewsletterSubscription?.unsubscribe()}loadNewsletterData(){let e=null;try{e=JSON.parse(localStorage.getItem("showNewsletter"))}catch{}this.newsletterData=e!==null?e:{date:Date.now(),times:1}}static{this.\u0275fac=function(t){return new(t||n)(h(oe),h(Ai),h(Z),h(ve),h(B),h(he))}}static{this.\u0275cmp=P({type:n,selectors:[["newsletter-modal"]],decls:2,vars:2,consts:[["classes","backgroundGreyDark colorWhite","closeIcon","close-purple",3,"show","maxWidth","closed",4,"ngIf"],["classes","positionFixed backgroundGreyDark colorWhite p-4","closeIcon","close-purple",3,"show","closed",4,"ngIf"],["classes","backgroundGreyDark colorWhite","closeIcon","close-purple",3,"closed","show","maxWidth"],[1,"content","flex","positionRelative"],[1,"contentLeft","flex-grow","pr-3","pb-3"],[1,"title","colorGreenXl","m-0"],[1,"fontNormal","mb-4"],[3,"dark","color","characteristicValue"],[1,"fontSmall",3,"innerHTML"],[1,"contentRight","positionRelative","mt-1","ml-2"],["src","/assets/newsletter.png",1,"positionAbsolute"],["classes","positionFixed backgroundGreyDark colorWhite p-4","closeIcon","close-purple",3,"closed","show"],[1,"colorGreenXl","mobileFontNormal","fontBold","pb-4"],[1,"flex"],[1,"contentLeft","flex-grow","pr-3"],[1,"mobileFontSmall","mb-4"],[1,"contentRight","positionRelative","ml-2","mt-3"]],template:function(t,r){t&1&&C(0,Cp,14,14,"modal",0)(1,yp,12,10,"popup",1),t&2&&(d("ngIf",!r._tools.isMobile),s(),d("ngIf",r._tools.isMobile))},dependencies:[F,yo,Ao,qt,K],styles:[".title[_ngcontent-%COMP%]{font-size:2.08vw;font-family:Poppins-Bold}.contentRight[_ngcontent-%COMP%]{flex:0 0 180px;overflow:hidden;bottom:-22px}.contentRight[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}popup[_ngcontent-%COMP%] .contentRight[_ngcontent-%COMP%]{flex:0 0 33%;overflow:hidden;bottom:-22px}@media screen and (min-width: 1440px){.contentRight[_ngcontent-%COMP%]{bottom:-30px}}@media screen and (max-width: 1000px){.contentRight[_ngcontent-%COMP%]{bottom:-22.08px}}"]})}}return n})();var Sp=["cartSidebarHost"];function Mp(n,i){}var ks=(()=>{class n{constructor(e,t,r,o){this._tools=e,this._layout=t,this._sidebarsInteractor=r,this.injector=o,this.cartSidebarLoaded=!1}ngOnInit(){this._tools.isBrowser&&(this.sidebarSubscription=this._sidebarsInteractor.getSidebarFragmentsObs().subscribe(e=>{(e.cart||e.fullCart)&&this.loadCartSidebar().then()}))}ngOnDestroy(){this.sidebarSubscription&&this.sidebarSubscription.unsubscribe()}loadCartSidebar(){return ht(this,null,function*(){if(!this.cartSidebarLoaded){let{CartModule:e}=yield import("./cart.module-X7J7UJWC.js"),{CartComponent:t}=yield import("./cart.component-SWWIIEP5.js"),r=Cr(e,this.injector);this.cartSidebarHost.createComponent(t,{ngModuleRef:r}),this.cartSidebarLoaded=!0}})}static{this.\u0275fac=function(t){return new(t||n)(h(B),h(Qe),h(Z),h(mi))}}
8static{this.\u0275cmp=P({type:n,selectors:[["cart-sidebar"]],viewQuery:function(t,r){if(t&1&&ce(Sp,7,wr),t&2){let o;pe(o=de())&&(r.cartSidebarHost=o.first)}},decls:3,vars:6,consts:[["cartSidebarHost",""],[1,"enableGPU","backgroundGreyLighter","rightSidebar","sidebarTransition","tw-top-0","md:tw-top-d-120"]],template:function(t,r){t&1&&(c(0,"div",1),C(1,Mp,0,0,"ng-template",null,0,Pr),p()),t&2&&q("fullOpened",r._sidebarsInteractor.getSidebarFragments().fullCart)("opened",r._sidebarsInteractor.getSidebarFragments().cart)("shadowXl",r._sidebarsInteractor.getSidebarFragments().cart)},styles:[".fullOpened[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{z-index:3000}@supports (margin-top: env(safe-area-inset-top)){div[_ngcontent-%COMP%]{margin-top:env(safe-area-inset-top)}}"]})}}return n})();function kp(n,i){n&1&&w(0,"header-desktop")}function Ip(n,i){if(n&1&&w(0,"dialog-data",18),n&2){let e=u(3);rt("top",e._tools.isMobile?0:e._tools.headerHeight-65,"px"),d("content",e._tools.dialogContent)}}function Ep(n,i){if(n&1&&w(0,"asset-dialog",19),n&2){let e=u(3);d("currentAsset",e._tools.currentAsset)("assetList",e._tools.assetList)}}function Pp(n,i){if(n&1&&w(0,"footer",5),n&2){let e=u(3);d("color",e._ecpServ.sessionColor.name)}}function Op(n,i){if(n&1){let e=E();c(0,"account-sidebar",17,1),f(2,"titlecase"),b("click",function(r){return S(e),M(r.stopPropagation())}),p()}if(n&2){let e=u(3);br("flex-grow scrollable-when-locked enableGPU rightSidebar background",_(2,6,e._ecpServ.accountColor.name),"",e._account.isLoggedIn?"Darker":"Xl"," ",!e.hideSidebarsImmediately&&e._account.userInitialized?"sidebarTransition":""," smallSidebar ",e.sidebarFragments.account?"opened shadowXl":"","")}}function Tp(n,i){n&1&&w(0,"cart-sidebar",null,2)}function Ap(n,i){n&1&&w(0,"newsletter-modal")}function Np(n,i){if(n&1){let e=E();ae(0),C(1,kp,1,0,"header-desktop",4),w(2,"rocket-loader",5),C(3,Ip,1,3,"dialog-data",6)(4,Ep,1,2,"asset-dialog",7),w(5,"menu-sidebar",8),c(6,"div",9,0),w(8,"div",10)(9,"global-alerts",11)(10,"breadcrumbs"),c(11,"div",12),w(12,"router-outlet"),p(),C(13,Pp,1,1,"footer",13),p(),c(14,"div",14),w(15,"div",15),C(16,Op,3,8,"account-sidebar",16),p(),C(17,Tp,2,0,"cart-sidebar",4),w(18,"cookie"),c(19,"div",17),b("click",function(r){return S(e),u(2)._sidebarsInteractor.closeAllSidebars(),M(r.stopPropagation())}),p(),C(20,Ap,1,0,"newsletter-modal",4),le()}if(n&2){let e=u(2);s(),d("ngIf",e._layout.showHeader),s(),d("color","Blue"),s(),d("ngIf",e._tools.showDialog),s(),d("ngIf",e._tools.showAsset),s(),Ne("enableGPU colorWhite backgroundGreyDark leftSidebar ",e.hideSidebarsImmediately?"":"sidebarTransition"," smallSidebar ",e.sidebarFragments.menu?"opened shadowXl":"",""),rt("top",e._tools.isMobile?0:e._tools.headerHeight,"px"),d("opened",e.sidebarFragments.menu),s(),Ne("",e.sidebarFragments.cart&&!e.hideSidebarsImmediately?"pushedToLeft":""," ",e.hideSidebarsImmediately?"":"sidebarTransition",""),s(7),d("ngIf",e._layout.showFooter),s(3),d("ngIf",e._layout.showAccountSidebar),s(),d("ngIf",e._tools.isBrowser&&e._layout.showCartSidebar),s(2),N("overlay ",e.sidebarFragments.cart&&!e.hideSidebarsImmediately||e._tools.isMobile&&(e.sidebarFragments.menu||e.sidebarFragments.account)?"opened":"",""),s(),d("ngIf",e._tools.isBrowser)}}function Dp(n,i){if(n&1&&(ae(0),C(1,Np,21,22,"ng-container",4),le()),n&2){let e=u();s(),d("ngIf",e._ecpServ.storefrontLoaded)}}var Is=(()=>{class n{constructor(e,t,r,o,a,l,m,v,x,k,j,L,O,R,Q,te){this.router=e,this._ecpServ=t,this._tools=r,this._account=o,this._layout=a,this._toastr=l,this._ref=m,this.dataIngestSubscriberService=v,this.gtmSubsService=x,this.eventsService=k,this.trackingService=j,this._sidebarsInteractor=L,this.checkoutSubscriberService=O,this.experimentsService=R,this.serviceWorker=Q,this.gtmInitializerService=te,this.destroy$=new ci,this.firstLoad=!0,this.isHealthCheckRoute=!1,this.showRocket=!1,this._sidebarsInteractor.getSidebarFragmentsObs().pipe(Xt(this.destroy$)).subscribe(G=>{this.sidebarFragments=G,this._ref.markForCheck()}),this._sidebarsInteractor.getHideSidebarsInmediatelyObs().pipe(Xt(this.destroy$)).subscribe(G=>{this.hideSidebarsImmediately=G,this._ref.markForCheck()}),this._tools.isBrowser&&(this.gtmInitializerService.init(),Promise.all([this.dataIngestSubscriberService.init(),this.checkoutSubscriberService.init(),this.eventsService.init(),this.gtmSubsService.init(),this.trackingService.init(),this.serviceWorker.init(),this.experimentsService.init()]).catch(G=>console.error("Error initializing services:",G)),this.recalcMobile())}closeAll(e){let t=e.target.tagName.toLowerCase();t==="chat-oct8ne"||t==="chat-oct8ne-icon"||!this._tools.forceCollapsedHeader&&!this._tools.showDialog&&(this._sidebarsInteractor.closeAllSidebars(),this._tools.closeSearchBar.emit(!0))}onPopState(e){if(this._tools.isMobile)if(this._tools.modalOpened){this._tools.closeModals();try{history.go(1)}catch{}}else this._tools.hideSidebarsInmediately=!0,this._tools.preserveScroll=!0,this._sidebarsInteractor.closeAllSidebars();else if(this._sidebarsInteractor.closeAllSidebars(),this._tools.showDialog||this._tools.showAsset)try{history.go(1)}catch{}if(e.currentTarget.location.pathname.includes("calendario"))if(this._tools.isMobile&&!this._tools.isIOS()){let r=this._layout.getSavedScrollPositionOnLocalStorage();setTimeout(()=>this._layout.scrollToPx(r,!1),1050)}else setTimeout(()=>this._layout.scrollSmooth("calendar-container",-100),1050)}onEscState(){this._tools.modalOpened?this._tools.closeModals():this._sidebarsInteractor.closeAllSidebars()}onWindowResize(){this._tools.isBrowser&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>this.recalcMobile(),100))}recalcMobile(){let e=this._tools.isMobile;this._tools.calcMobile(),this._tools.isMobile!==e&&this._ref.markForCheck()}ngAfterViewInit(){this._tools.isBrowser&&this.toastContainer&&(this._toastr.overlayContainer=this.toastContainer)}ngAfterContentInit(){this.handleRouting()}ngOnInit(){this.startApp();let e,t;this.router.events.pipe(Xt(this.destroy$)).subscribe(r=>{r instanceof Cn&&(this.isHealthCheckRoute=r.url==="/health-check",t&&t.includes("calendario")&&this._layout.saveScrollPositionOnLocalStorage(window.scrollY)),r instanceof Ct&&(e=t,t=r.url)})}handleRouting(){this.router.events.pipe(Xt(this.destroy$)).subscribe(e=>{e instanceof $r?this.handleScrollEvent(e):e instanceof Cn?this.handleNavigationStart(e):e instanceof Ct&&this.handleNavigationEnd()})}handleScrollEvent(e){e.position?setTimeout(()=>this._layout.scrollToPx(e.position[1],!1),0):e.anchor!==null||(this.firstLoad?this.firstLoad=!1:setTimeout(()=>this._layout.scrollToTop(!1),0))}handleNavigationStart(e){!e.url.includes("#")&&!(this._tools.isBrowser&&this.firstLoad)&&setTimeout(()=>{this._tools.startRocketLoader()},0)}handleNavigationEnd(){setTimeout(()=>{this._tools.finishRocketLoader(),this._sidebarsInteractor.handleFragment(),this._tools.isMobile||this._tools.closeSearchBar.emit(!0)},0)}startApp(){return ht(this,null,function*(){this._account.start(),this._tools.isBrowser&&this.logAsciiArt()})}logAsciiArt(){let e=` 9 MMM MMM MMMM* 10 MMM MMM \`\`\` #MMM. 11 MMM MMM MMMMMMMM MMM *MM #MMMM%.MMM MMM MMM MMMMMMM MMMMM* 12 MMM..MMM MMMMMMMM MMMMMMM %MMMMMMMMMMM MMM MMM MMMMMMM MMMMMMMMMM 13 MMMMMM MMM MMMM MMM* MMMM MMM MMM MMMM MMMM MMM 14 \xB7MMMM\xB7 MMM MMM MMM* %MMM MMM MMM MMMM MMMMMMMMMM
15 .MM\`\`MM. MMM... MMM %MMMMMMMMMMM MMM... MMM MMMM MMMM.....### 16 MMM\` \`MMM *MMMMM MMM #MMMMM\`MMM *MMMMM MMM MMMM MMMMMMMM* 17 18 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 19 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 20 21`,t=this._ecpServ.sessionColor.colors.find(r=>r.key==="xl").value;console.log("%c"+e,"display: inline-block; max-width: 100%; color: "+t+"; background: black;")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.resizeTimeout&&clearTimeout(this.resizeTimeout)}static{this.\u0275fac=function(t){return new(t||n)(h(ve),h(z),h(B),h(oe),h(Qe),h(at),h(me),h(Vo),h(zt),h(he),h(jt),h(Z),h(jo),h(Ni),h(Ht),h(Qo))}}static{this.\u0275cmp=P({type:n,selectors:[["app-root"]],viewQuery:function(t,r){if(t&1&&ce(Ti,7),t&2){let o;pe(o=de())&&(r.toastContainer=o.first)}},hostBindings:function(t,r){t&1&&b("click",function(a){return r.closeAll(a)},!1,Gt)("popstate",function(a){return r.onPopState(a)},!1,ui)("keydown.escape",function(){return r.onEscState()},!1,ui)("resize",function(){return r.onWindowResize()},!1,ui)},decls:2,vars:5,consts:[["content",""],["accountSidebar",""],["cartSidebar",""],["toastContainer","","id","toasterWrapper","aria-live","polite",3,"click"],[4,"ngIf"],[3,"color"],[3,"top","content",4,"ngIf"],[3,"currentAsset","assetList",4,"ngIf"],[3,"opened"],["id","content"],[1,"tw-h-m-144","md:tw-h-d-120"],[1,"tw-w-full"],["id","router-wrapper"],[3,"color",4,"ngIf"],[1,"accountSidebarWrapper","flex","flex-direction-column"],[1,"h-112","flex-shrink-no"],[3,"class","click",4,"ngIf"],[3,"click"],[3,"content"],[3,"currentAsset","assetList"]],template:function(t,r){t&1&&(c(0,"div",3),b("click",function(a){return a.stopPropagation()}),p(),C(1,Dp,2,1,"ng-container",4)),t&2&&(Ne("tw-sticky tw-top-m-160 md:tw-top-d-136 ",r.sidebarFragments.cart&&!r.sidebarFragments.fullCart?"avoidRightSidebar":""," ",r.sidebarFragments.account?"avoidSmallSidebar":""," sidebarTransition"),s(),d("ngIf",!r.isHealthCheckRoute))},dependencies:[cs,F,Qr,io,Oo,Do,Ro,Ti,us,hs,gs,Cs,Ms,xs,ks,re],styles:["dialog-data[_ngcontent-%COMP%], asset-dialog[_ngcontent-%COMP%]{inset:0;z-index:4000;position:fixed;overflow:hidden}#router-wrapper[_ngcontent-%COMP%]{min-height:100vh;display:block;max-width:1920px;margin:0 auto}#content[_ngcontent-%COMP%]{position:relative;max-width:1920px;margin:0 auto}#toasterWrapper[_ngcontent-%COMP%]{position:fixed;width:350px;right:0;float:right;height:auto;margin-left:-100%;z-index:999999}menu-sidebar[_ngcontent-%COMP%], account-sidebar[_ngcontent-%COMP%]{z-index:3000}menu-sidebar.leftSidebar.smallSidebar[_ngcontent-%COMP%]{width:90vw}@supports (margin-top: env(safe-area-inset-top)){menu-sidebar[_ngcontent-%COMP%], account-sidebar[_ngcontent-%COMP%]{margin-top:env(safe-area-inset-top)}}.accountSidebarWrapper[_ngcontent-%COMP%]{position:fixed;top:0;right:0;height:100%;width:0;z-index:1000}.accountSidebarWrapper[_ngcontent-%COMP%] .rightSidebar[_ngcontent-%COMP%]{bottom:auto;position:relative}.overlay[_ngcontent-%COMP%]{position:fixed;left:-1px;width:0;height:0;top:-1px;z-index:900;opacity:0;background:transparent;transition:opacity .15s ease-out}.overlay.opened[_ngcontent-%COMP%]{position:fixed;opacity:.8;top:0;left:0;width:100%;height:100%;background:#000;transition:opacity .5s ease-out}header[_ngcontent-%COMP%]{width:100%;position:relative}"]})}}return n})();function Bp(n){let i=n,e=Math.floor(Math.abs(n)),t=n.toString().replace(/^[^.]*\.?/,"").length,r=parseInt(n.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return i===1?1:r===0&&e!==0&&e%1e6===0&&t===0||!(r>=0&&r<=5)?4:5}var Es=["es",[["a.\xA0m.","p.\xA0m."],void 0,void 0],void 0,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"],["DO","LU","MA","MI","JU","VI","SA"]],void 0,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],void 0,[["a. C.","d. C."],void 0,["antes de Cristo","despu\xE9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}
21, {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{AUD:[void 0,"$"],BRL:[void 0,"R$"],BYN:[void 0,"\u0440."],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],EGP:[],ESP:["\u20A7"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],THB:["\u0E3F"],TWD:[void 0,"NT$"],USD:["US$","$"],XAF:[],XCD:[void 0,"$"],XOF:[]},"ltr",Bp];function Ps(n){return new H(3e3,!1)}function Rp(){return new H(3100,!1)}function Lp(){return new H(3101,!1)}function Fp(n){return new H(3001,!1)}function Vp(n){return new H(3003,!1)}function jp(n){return new H(3004,!1)}function zp(n,i){return new H(3005,!1)}function Wp(){return new H(3006,!1)}function Up(){return new H(3007,!1)}function Hp(n,i){return new H(3008,!1)}function qp(n){return new H(3002,!1)}function $p(n,i,e,t,r){return new H(3010,!1)}function Qp(){return new H(3011,!1)}function Xp(){return new H(3012,!1)}function Gp(){return new H(3200,!1)}function Kp(){return new H(3202,!1)}function Yp(){return new H(3013,!1)}function Zp(n){return new H(3014,!1)}function Jp(n){return new H(3015,!1)}function ed(n){return new H(3016,!1)}function td(n,i){return new H(3404,!1)}function id(n){return new H(3502,!1)}function nd(n){return new H(3503,!1)}function rd(){return new H(3300,!1)}function od(n){return new H(3504,!1)}function sd(n){return new H(3301,!1)}function ad(n,i){return new H(3302,!1)}function ld(n){return new H(3303,!1)}function cd(n,i){return new H(3400,!1)}function pd(n){return new H(3401,!1)}function dd(n){return new H(3402,!1)}function md(n,i){return new H(3505,!1)}function pt(n){switch(n.length){case 0:return new Vt;case 1:return n[0];default:return new Sn(n)}}function Us(n,i,e=new Map,t=new Map){let r=[],o=[],a=-1,l=null;if(i.forEach(m=>{let v=m.get("offset"),x=v==a,k=x&&l||new Map;m.forEach((j,L)=>{let O=L,R=j;if(L!=="offset")switch(O=n.normalizePropertyName(O,r),R){case Oi:R=e.get(L);break;case Xe:R=t.get(L);break;default:R=n.normalizeStyleValue(L,O,R,r);break}k.set(O,R)}),x||o.push(k),l=k,a=v}),r.length)throw id(r);return o}function Gn(n,i,e,t){switch(i){case"start":n.onStart(()=>t(e&&In(e,"start",n)));break;case"done":n.onDone(()=>t(e&&In(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&In(e,"destroy",n)));break}}function In(n,i,e){let t=e.totalTime,r=!!e.disabled,o=Kn(n.element,n.triggerName,n.fromState,n.toState,i||n.phaseName,t??n.totalTime,r),a=n._data;return a!=null&&(o._data=a),o}function Kn(n,i,e,t,r="",o=0,a){return{element:n,triggerName:i,fromState:e,toState:t,phaseName:r,totalTime:o,disabled:!!a}}function Ie(n,i,e){let t=n.get(i);return t||n.set(i,t=e),t}function Os(n){let i=n.indexOf(":"),e=n.substring(1,i),t=n.slice(i+1);return[e,t]}var ud=typeof document>"u"?null:document.documentElement;function Yn(n){let i=n.parentNode||n.host||null;return i===ud?null:i}function hd(n){return n.substring(1,6)=="ebkit"}var St=null,Ts=!1;function fd(n){St||(St=gd()||{},Ts=St.style?"WebkitAppearance"in St.style:!1);let i=!0;return St.style&&!hd(n)&&(i=n in St.style,!i&&Ts&&(i="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in St.style)),i}function gd(){return typeof document<"u"?document.body:null}function Hs(n,i){for(;i;){if(i===n)return!0;i=Yn(i)}return!1}function qs(n,i,e){if(e)return Array.from(n.querySelectorAll(i));let t=n.querySelector(i);return t?[t]:[]}var Zn=(()=>{class n{validateStyleProperty(e){return fd(e)}matchesElement(e,t){return!1}containsElement(e,t){return Hs(e,t)}getParentElement(e){return Yn(e)}query(e,t,r){return qs(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,o,a,l=[],m){return new Vt(r,o)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})(),kt=class{static{this.NOOP=new Zn}},It=class{};var _d=1e3,$s="{{",vd="}}",Qs="ng-enter",Nn="ng-leave",Ki="ng-trigger",tn=".ng-trigger",As="ng-animating",Dn=".ng-animating";function tt(n){if(typeof n=="number")return n;let i=n.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Bn(parseFloat(i[1]),i[2])}function Bn(n,i){switch(i){case"s":return n*_d;default:return n}}function nn(n,i,e){return n.hasOwnProperty("duration")?n:wd(n,i,e)}function wd(n,i,e){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof n=="string"){let l=n.match(t);if(l===null)return i.push(Ps(n)),{duration:0,delay:0,easing:""};r=Bn(parseFloat(l[1]),l[2]);let m=l[3];m!=null&&(o=Bn(parseFloat(m),l[4]));let v=l[5];v&&(a=v)}else r=n;if(!e){let l=!1,m=i.length;r<0&&(i.push(Rp()),l=!0),o<0&&(i.push(Lp()),l=!0),l&&i.splice(m,0,Ps(n))}return{duration:r,delay:o,easing:a}}function Cd(n){return n.length?n[0]instanceof Map?n:n.map(i=>new Map(Object.entries(i))):[]}
vendor: 44,506 bytes, line 21
21function Ze(n,i,e){i.forEach((t,r)=>{let o=Jn(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=t})}function xt(n,i){i.forEach((e,t)=>{let r=Jn(t);n.style[r]=""})}function ii(n){return Array.isArray(n)?n.length==1?n[0]:lo(n):n}function yd(n,i,e){let t=i.params||{},r=Xs(n);r.length&&r.forEach(o=>{t.hasOwnProperty(o)||e.push(Fp(o))})}var Rn=new RegExp(`${$s}\\s*(.+?)\\s*${vd}`,"g");function Xs(n){let i=[];if(typeof n=="string"){let e;for(;e=Rn.exec(n);)i.push(e[1]);Rn.lastIndex=0}return i}function ri(n,i,e){let t=`${n}`,r=t.replace(Rn,(o,a)=>{let l=i[a];return l==null&&(e.push(Vp(a)),l=""),l.toString()});return r==t?n:r}var bd=/-+([a-z0-9])/g;function Jn(n){return n.replace(bd,(...i)=>i[1].toUpperCase())}function Sd(n,i){return n===0||i===0}function Md(n,i,e){if(e.size&&i.length){let t=i[0],r=[];if(e.forEach((o,a)=>{t.has(a)||r.push(a),t.set(a,o)}),r.length)for(let o=1;o<i.length;o++){let a=i[o];r.forEach(l=>a.set(l,er(n,l)))}}return i}function ke(n,i,e){switch(i.type){case W.Trigger:return n.visitTrigger(i,e);case W.State:return n.visitState(i,e);case W.Transition:return n.visitTransition(i,e);case W.Sequence:return n.visitSequence(i,e);case W.Group:return n.visitGroup(i,e);case W.Animate:return n.visitAnimate(i,e);case W.Keyframes:return n.visitKeyframes(i,e);case W.Style:return n.visitStyle(i,e);case W.Reference:return n.visitReference(i,e);case W.AnimateChild:return n.visitAnimateChild(i,e);case W.AnimateRef:return n.visitAnimateRef(i,e);case W.Query:return n.visitQuery(i,e);case W.Stagger:return n.visitStagger(i,e);default:throw jp(i.type)}}function er(n,i){return window.getComputedStyle(n)[i]}var xd=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),rn=class extends It{normalizePropertyName(i,e){return Jn(i)}normalizeStyleValue(i,e,t,r){let o="",a=t.toString().trim();if(xd.has(e)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&l[1].length==0&&r.push(zp(i,t))}return a+o}};var on="*";function kd(n,i){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>Id(t,e,i)):e.push(n),e}function Id(n,i,e){if(n[0]==":"){let m=Ed(n,e);if(typeof m=="function"){i.push(m);return}n=m}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return e.push(Jp(n)),i;let r=t[1],o=t[2],a=t[3];i.push(Ns(r,a));let l=r==on&&a==on;o[0]=="<"&&!l&&i.push(Ns(a,r))}function Ed(n,i){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return i.push(ed(n)),"* => *"}}var Yi=new Set(["true","1"]),Zi=new Set(["false","0"]);function Ns(n,i){let e=Yi.has(n)||Zi.has(n),t=Yi.has(i)||Zi.has(i);return(r,o)=>{let a=n==on||n==r,l=i==on||i==o;return!a&&e&&typeof r=="boolean"&&(a=r?Yi.has(n):Zi.has(n)),!l&&t&&typeof o=="boolean"&&(l=o?Yi.has(i):Zi.has(i)),a&&l}}var Gs=":self",Pd=new RegExp(`s*${Gs}s*,?`,"g");function Ks(n,i,e,t){return new Ln(n).build(i,e,t)}var Ds="",Ln=class{constructor(i){this._driver=i}build(i,e,t){let r=new Fn(e);return this._resetContextStyleTimingState(r),ke(this,ii(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector=Ds,i.collectedStyles=new Map,i.collectedStyles.set(Ds,new Map),i.currentTime=0}visitTrigger(i,e){let t=e.queryCount=0,r=e.depCount=0,o=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(Wp()),i.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),l.type==W.State){let m=l,v=m.name;v.toString().split(/\s*,\s*/).forEach(x=>{m.name=x,o.push(this.visitState(m,e))}),m.name=v}else if(l.type==W.Transition){let m=this.visitTransition(l,e);t+=m.queryCount,r+=m.depCount,a.push(m)}else e.errors.push(Up())}),{type:W.Trigger,name:i.name,states:o,transitions:a,queryCount:t,depCount:r,options:null}}visitState(i,e){let t=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=r||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(m=>{Xs(m).forEach(v=>{a.hasOwnProperty(v)||o.add(v)})})}),o.size&&e.errors.push(Hp(i.name,[...o.values()]))}return{type:W.State,name:i.name,style:t,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let t=ke(this,ii(i.animation),e),r=kd(i.expr,e.errors);return{type:W.Transition,matchers:r,animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Mt(i.options)}}visitSequence(i,e){return{type:W.Sequence,steps:i.steps.map(t=>ke(this,t,e)),options:Mt(i.options)}}visitGroup(i,e){let t=e.currentTime,r=0,o=i.steps.map(a=>{e.currentTime=t;let l=ke(this,a,e);return r=Math.max(r,e.currentTime),l});return e.currentTime=r,{type:W.Group,steps:o,options:Mt(i.options)}}visitAnimate(i,e){let t=Nd(i.timings,e.errors);e.currentAnimateTimings=t;let r,o=i.styles?i.styles:Ft({});if(o.type==W.Keyframes)r=this.visitKeyframes(o,e);else{let a=i.styles,l=!1;if(!a){l=!0;let v={};t.easing&&(v.easing=t.easing),a=Ft(v)}e.currentTime+=t.duration+t.delay;let m=this.visitStyle(a,e);m.isEmptyStep=l,r=m}return e.currentAnimateTimings=null,{type:W.Animate,timings:t,style:r,options:null}}visitStyle(i,e){let t=this._makeStyleAst(i,e);return this._validateStyleAst(t,e),t}_makeStyleAst(i,e){let t=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let l of r)typeof l=="string"?l===Xe?t.push(l):e.errors.push(qp(l)):t.push(new Map(Object.entries(l)));let o=!1,a=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(a=l.get("easing"),l.delete("easing")),!o)){for(let m of l.values())if(m.toString().indexOf($s)>=0){o=!0;break}}}),{type:W.Style,styles:t,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){let t=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;t&&o>0&&(o-=t.duration+t.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((l,m)=>{let v=e.collectedStyles.get(e.currentQuerySelector),x=v.get(m),k=!0;x&&(o!=r&&o>=x.startTime&&r<=x.endTime&&(e.errors.push($p(m,x.startTime,x.endTime,o,r)),k=!1),o=x.startTime),k&&v.set(m,{startTime:o,endTime:r}),e.options&&yd(l,e.options,e.errors)})})}visitKeyframes(i,e){let t={type:W.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Qp()),t;let r=1,o=0,a=[],l=!1,m=!1,v=0,x=i.steps.map(te=>{let G=this._makeStyleAst(te,e),we=G.offset!=null?G.offset:Ad(G.styles),fe=0;return we!=null&&(o++,fe=G.offset=we),m=m||fe<0||fe>1,l=l||fe<v,v=fe,a.push(fe),G});m&&e.errors.push(Xp()),l&&e.errors.push(Gp());let k=i.steps.length,j=0;o>0&&o<k?e.errors.push(Kp()):o==0&&(j=r/(k-1));let L=k-1,O=e.currentTime,R=e.currentAnimateTimings,Q=R.duration;return x.forEach((te,G)=>{let we=j>0?G==L?1:j*G:a[G],fe=we*Q;e.currentTime=O+R.delay+fe,R.duration=fe,this._validateStyleAst(te,e),te.offset=we,t.styles.push(te)}),t}visitReference(i,e){return{type:W.Reference,animation:ke(this,ii(i.animation),e),options:Mt(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:W.AnimateChild,options:Mt(i.options)}}visitAnimateRef(i,e){return{type:W.AnimateRef,animation:this.visitReference(i.animation,e),options:Mt(i.options)}}visitQuery(i,e){let t=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,a]=Od(i.selector);e.currentQuerySelector=t.length?t+" "+o:o,Ie(e.collectedStyles,e.currentQuerySelector,new Map);let l=ke(this,ii(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:W.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:l,originalSelector:i.selector,options:Mt(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(Yp());let t=i.timings==="full"?{duration:0,delay:0,easing:"full"}:nn(i.timings,e.errors,!0);return{type:W.Stagger,animation:ke(this,ii(i.animation),e),timings:t,options:null}}};function Od(n){let i=!!n.split(/\s*,\s*/).find(e=>e==Gs);return i&&(n=n.replace(Pd,"")),n=n.replace(/@\*/g,tn).replace(/@\w+/g,e=>tn+"-"+e.slice(1)).replace(/:animating/g,Dn),[n,i]}function Td(n){return n?Ot({},n):null}var Fn=class{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Ad(n){if(typeof n=="string")return null;let i=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let t=e;i=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Nd(n,i){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=nn(n,i).duration;return En(o,0,"")}let e=n;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=En(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=nn(e,i);return En(r.duration,r.delay,r.easing)}function Mt(n){return n?(n=Ot({},n),n.params&&(n.params=Td(n.params))):n={},n}function En(n,i,e){return{duration:n,delay:i,easing:e}}function tr(n,i,e,t,r,o,a=null,l=!1){return{type:1,element:n,keyframes:i,preStyleProps:e,postStyleProps:t,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:l}}var oi=class{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let t=this._map.get(i);t||this._map.set(i,t=[]),t.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Dd=1,Bd=":enter",Rd=new RegExp(Bd,"g"),Ld=":leave",Fd=new RegExp(Ld,"g");function Ys(n,i,e,t,r,o=new Map,a=new Map,l,m,v=[]){return new Vn().buildKeyframes(n,i,e,t,r,o,a,l,m,v)}var Vn=class{buildKeyframes(i,e,t,r,o,a,l,m,v,x=[]){v=v||new oi;let k=new jn(i,e,v,r,o,x,[]);k.options=m;let j=m.delay?tt(m.delay):0;k.currentTimeline.delayNextStep(j),k.currentTimeline.setStyles([a],null,k.errors,m),ke(this,t,k);let L=k.timelines.filter(O=>O.containsAnimation());if(L.length&&l.size){let O;for(let R=L.length-1;R>=0;R--){let Q=L[R];if(Q.element===e){O=Q;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([l],null,k.errors,m)}return L.length?L.map(O=>O.buildKeyframes()):[tr(e,[],[],[],0,j,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let t=e.subInstructions.get(e.element);if(t){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(t,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let t=e.createSubContext(i.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,t),this.visitReference(i.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,t){for(let r of i){let o=r?.delay;if(o){let a=typeof o=="number"?o:tt(ri(o,r?.params??{},e.errors));t.delayNextStep(a)}}}_visitSubInstructions(i,e,t){let o=e.currentTimeline.currentTime,a=t.duration!=null?tt(t.duration):null,l=t.delay!=null?tt(t.delay):null;return a!==0&&i.forEach(m=>{let v=e.appendInstructionToTimeline(m,a,l);o=Math.max(o,v.duration+v.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ke(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let t=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==W.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=sn);let a=tt(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ke(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let t=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?tt(i.options.delay):0;i.steps.forEach(a=>{let l=e.createSubContext(i.options);o&&l.delayNextStep(o),ke(this,a,l),r=Math.max(r,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let t=i.strValue,r=e.params?ri(t,e.params,e.errors):t;return nn(r,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let t=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());let o=i.style;o.type==W.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(t.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?t.applyEmptyStep(o):t.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let t=e.currentAnimateTimings,r=e.currentTimeline.duration,o=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,i.styles.forEach(m=>{let v=m.offset||0;l.forwardTime(v*o),l.setStyles(m.styles,m.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){let t=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?tt(r.delay):0;o&&(e.previousNode.type===W.Style||t==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=sn);let a=t,l=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=l.length;let m=null;l.forEach((v,x)=>{e.currentQueryIndex=x;let k=e.createSubContext(i.options,v);o&&k.delayNextStep(o),v===e.element&&(m=k.currentTimeline),ke(this,i.animation,k),k.currentTimeline.applyStylesToKeyframe();let j=k.currentTimeline.currentTime;a=Math.max(a,j)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),m&&(e.currentTimeline.mergeTimelineCollectedStyles(m),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let t=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),l=a*(e.currentQueryTotal-1),m=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":m=l-m;break;case"full":m=t.currentStaggerTime;break}let x=e.currentTimeline;m&&x.delayNextStep(m);let k=x.currentTime;ke(this,i.animation,e),e.previousNode=i,t.currentStaggerTime=r.currentTime-k+(r.startTime-t.currentTimeline.startTime)}},sn={},jn=class n{constructor(i,e,t,r,o,a,l,m){this._driver=i,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=m||new an(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let t=i,r=this.options;t.duration!=null&&(r.duration=tt(t.duration)),t.delay!=null&&(r.delay=tt(t.delay));let o=t.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(l=>{(!e||!a.hasOwnProperty(l))&&(a[l]=ri(o[l],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let t=i.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return i}createSubContext(i=null,e,t){let r=e||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=sn,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,t){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(t??0)+i.delay,easing:""},o=new zn(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,t,r,o,a){let l=[];if(r&&l.push(this.element),i.length>0){i=i.replace(Rd,"."+this._enterClassName),i=i.replace(Fd,"."+this._leaveClassName);let m=t!=1,v=this._driver.query(this.element,i,m);t!==0&&(v=t<0?v.slice(v.length+t,v.length):v.slice(0,t)),l.push(...v)}return!o&&l.length==0&&a.push(Zp(e)),l}},an=class n{constructor(i,e,t,r){this._driver=i,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new n(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Dd,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Xe),this._currentKeyframe.set(e,Xe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,t,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=Vd(i,this._globalTimelineStyles);for(let[l,m]of a){let v=ri(m,o,t);this._pendingStyles.set(l,v),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Xe),this._updateStyle(l,v)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,t)=>{let r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,t=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,m)=>{let v=new Map([...this._backFill,...l]);v.forEach((x,k)=>{x===Oi?i.add(k):x===Xe&&e.add(k)}),t||v.set("offset",m/this.duration),r.push(v)});let o=[...i.values()],a=[...e.values()];if(t){let l=r[0],m=new Map(l);l.set("offset",0),m.set("offset",1),r=[l,m]}return tr(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},zn=class extends an{constructor(i,e,t,r,o,a,l=!1){super(i,e,a.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=t+e,l=e/a,m=new Map(i[0]);m.set("offset",0),o.push(m);let v=new Map(i[0]);v.set("offset",Bs(l)),o.push(v);let x=i.length-1;for(let k=1;k<=x;k++){let j=new Map(i[k]),L=j.get("offset"),O=e+L*t;j.set("offset",Bs(O/a)),o.push(j)}t=a,e=0,r="",i=o}return tr(this.element,i,this.preStyleProps,this.postStyleProps,t,e,r,!0)}};function Bs(n,i=3){let e=Math.pow(10,i-1);return Math.round(n*e)/e}function Vd(n,i){let e=new Map,t;return n.forEach(r=>{if(r==="*"){t??=i.keys();for(let o of t)e.set(o,Xe)}else for(let[o,a]of r)e.set(o,a)}),e}function Rs(n,i,e,t,r,o,a,l,m,v,x,k,j){return{type:0,element:n,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:t,toStyles:a,timelines:l,queriedElements:m,preStyleProps:v,postStyleProps:x,totalTime:k,errors:j}}var Pn={},ln=class{constructor(i,e,t){this._triggerName=i,this.ast=e,this._stateStyles=t}match(i,e,t,r){return jd(this.ast.matchers,i,e,t,r)}buildStyles(i,e,t){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,t):new Map}build(i,e,t,r,o,a,l,m,v,x){let k=[],j=this.ast.options&&this.ast.options.params||Pn,L=l&&l.params||Pn,O=this.buildStyles(t,L,k),R=m&&m.params||Pn,Q=this.buildStyles(r,R,k),te=new Set,G=new Map,we=new Map,fe=r==="void",Et={params:Zs(R,j),delay:this.ast.options?.delay},Ue=x?[]:Ys(i,e,this.ast.animation,o,a,O,Q,Et,v,k),Ce=0;return Ue.forEach(ye=>{Ce=Math.max(ye.duration+ye.delay,Ce)}),k.length?Rs(e,this._triggerName,t,r,fe,O,Q,[],[],G,we,Ce,k):(Ue.forEach(ye=>{let dt=ye.element,Pt=Ie(G,dt,new Set);ye.preStyleProps.forEach(mt=>Pt.add(mt));let ir=Ie(we,dt,new Set);ye.postStyleProps.forEach(mt=>ir.add(mt)),dt!==e&&te.add(dt)}),Rs(e,this._triggerName,t,r,fe,O,Q,Ue,[...te.values()],G,we,Ce))}};function jd(n,i,e,t,r){return n.some(o=>o(i,e,t,r))}function Zs(n,i){let e=Ot({},i);return Object.entries(n).forEach(([t,r])=>{r!=null&&(e[t]=r)}),e}var Wn=class{constructor(i,e,t){this.styles=i,this.defaultParams=e,this.normalizer=t}buildStyles(i,e){let t=new Map,r=Zs(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{a&&(a=ri(a,r,e));let m=this.normalizer.normalizePropertyName(l,e);a=this.normalizer.normalizeStyleValue(l,m,a,e),t.set(l,a)})}),t}};function zd(n,i,e){return new Un(n,i,e)}var Un=class{constructor(i,e,t){this.name=i,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new Wn(r.style,o,t))}),Ls(this.states,"true","1"),Ls(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ln(i,r,this.states))}),this.fallbackTransition=Wd(i,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,t,r){return this.transitionFactories.find(a=>a.match(i,e,t,r))||null}matchStyles(i,e,t){return this.fallbackTransition.buildStyles(i,e,t)}};function Wd(n,i,e){let t=[(a,l)=>!0],r={type:W.Sequence,steps:[],options:null},o={type:W.Transition,animation:r,matchers:t,options:null,queryCount:0,depCount:0};return new ln(n,o,i)}function Ls(n,i,e){n.has(i)?n.has(e)||n.set(e,n.get(i)):n.has(e)&&n.set(i,n.get(e))}var Ud=new oi,Hn=class{constructor(i,e,t){this.bodyNode=i,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){let t=[],r=[],o=Ks(this._driver,e,t,r);if(t.length)throw nd(t);r.length&&void 0,this._animations.set(i,o)}_buildPlayer(i,e,t){let r=i.element,o=Us(this._normalizer,i.keyframes,e,t);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,t={}){let r=[],o=this._animations.get(i),a,l=new Map;if(o?(a=Ys(this._driver,e,o,Qs,Nn,new Map,new Map,t,Ud,r),a.forEach(x=>{let k=Ie(l,x.element,new Map);x.postStyleProps.forEach(j=>k.set(j,null))})):(r.push(rd()),a=[]),r.length)throw od(r);l.forEach((x,k)=>{x.forEach((j,L)=>{x.set(L,this._driver.computeStyle(k,L,Xe))})});let m=a.map(x=>{let k=l.get(x.element);return this._buildPlayer(x,new Map,k)}),v=pt(m);return this._playersById.set(i,v),v.onDestroy(()=>this.destroy(i)),this.players.push(v),v}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw sd(i);return e}listen(i,e,t,r){let o=Kn(e,"","","");return Gn(this._getPlayer(i),t,o,r),()=>{}}command(i,e,t,r){if(t=="register"){this.register(i,r[0]);return}if(t=="create"){let a=r[0]||{};this.create(i,e,a);return}let o=this._getPlayer(i);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i);break}}},Fs="ng-animate-queued",Hd=".ng-animate-queued",On="ng-animate-disabled",qd=".ng-animate-disabled",$d="ng-star-inserted",Qd=".ng-star-inserted",Xd=[],Js={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gd={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},We="__ng_removed",si=class{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let t=i&&i.hasOwnProperty("value"),r=t?i.value:i;if(this.value=Yd(r),t){let o=i,{value:a}=o,l=sr(o,["value"]);this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let t=this.options.params;Object.keys(e).forEach(r=>{t[r]==null&&(t[r]=e[r])})}}},ni="void",Tn=new si(ni),qn=class{constructor(i,e,t){this.id=i,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,je(e,this._hostClassName)}listen(i,e,t,r){if(!this._triggers.has(e))throw ad(t,e);if(t==null||t.length==0)throw ld(e);if(!Zd(t))throw cd(t,e);let o=Ie(this._elementListeners,i,[]),a={name:e,phase:t,callback:r};o.push(a);let l=Ie(this._engine.statesByElement,i,new Map);return l.has(e)||(je(i,Ki),je(i,Ki+"-"+e),l.set(e,Tn)),()=>{this._engine.afterFlush(()=>{let m=o.indexOf(a);m>=0&&o.splice(m,1),this._triggers.has(e)||l.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw pd(i);return e}trigger(i,e,t,r=!0){let o=this._getTrigger(e),a=new ai(this.id,e,i),l=this._engine.statesByElement.get(i);l||(je(i,Ki),je(i,Ki+"-"+e),this._engine.statesByElement.set(i,l=new Map));let m=l.get(e),v=new si(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&m&&v.absorbOptions(m.options),l.set(e,v),m||(m=Tn),!(v.value===ni)&&m.value===v.value){if(!tm(m.params,v.params)){let R=[],Q=o.matchStyles(m.value,m.params,R),te=o.matchStyles(v.value,v.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{xt(i,Q),Ze(i,te)})}return}let j=Ie(this._engine.playersByElement,i,[]);j.forEach(R=>{R.namespaceId==this.id&&R.triggerName==e&&R.queued&&R.destroy()});let L=o.matchTransition(m.value,v.value,i,v.params),O=!1;if(!L){if(!r)return;L=o.fallbackTransition,O=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:L,fromState:m,toState:v,player:a,isFallbackTransition:O}),O||(je(i,Fs),a.onStart(()=>{$t(i,Fs)})),a.onDone(()=>{let R=this.players.indexOf(a);R>=0&&this.players.splice(R,1);let Q=this._engine.playersByElement.get(i);if(Q){let te=Q.indexOf(a);te>=0&&Q.splice(te,1)}}),this.players.push(a),j.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let t=this._engine.driver.query(i,tn,!0);t.forEach(r=>{if(r[We])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,t,r){let o=this._engine.statesByElement.get(i),a=new Map;if(o){let l=[];if(o.forEach((m,v)=>{if(a.set(v,m.value),this._triggers.has(v)){let x=this.trigger(i,v,ni,r);x&&l.push(x)}}),l.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),t&&pt(l).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),t=this._engine.statesByElement.get(i);if(e&&t){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let m=this._triggers.get(a).fallbackTransition,v=t.get(a)||Tn,x=new si(ni),k=new ai(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:m,fromState:v,toState:x,player:k,isFallbackTransition:!0})})}}removeNode(i,e){let t=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(t.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)t.markElementAsRemoved(this.id,i,!1,e);else{let o=i[We];(!o||o===Js)&&(t.afterFlush(()=>this.clearElementCache(i)),t.destroyInnerAnimations(i),t._onRemovalComplete(i,e))}}insertNode(i,e){je(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(t=>{let r=t.player;if(r.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(l=>{if(l.name==t.triggerName){let m=Kn(o,t.triggerName,t.fromState.value,t.toState.value);m._data=i,Gn(t.player,l.phase,m,l.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{let o=t.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},$n=class{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,t,r){this.bodyNode=i,this.driver=e,this._normalizer=t,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,a)=>{}}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&i.push(t)})}),i}createNamespace(i,e){let t=new qn(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[i]=t}_balanceNamespaceList(i,e){let t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,l=this.driver.getParentElement(e);for(;l;){let m=r.get(l);if(m){let v=t.indexOf(m);t.splice(v+1,0,i),a=!0;break}l=this.driver.getParentElement(l)}a||t.unshift(i)}else t.push(i);return r.set(e,i),i}register(i,e){let t=this._namespaceLookup[i];return t||(t=this.createNamespace(i,e)),t}registerTrigger(i,e,t){let r=this._namespaceLookup[i];r&&r.register(e,t)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(i);this.namespacesByHostElement.delete(t.hostElement);let r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1),t.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,t=this.statesByElement.get(i);if(t){for(let r of t.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(i,e,t,r){if(Ji(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,t,r),!0}return!1}insertNode(i,e,t,r){if(!Ji(e))return;let o=e[We];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),je(i,On)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),$t(i,On))}removeNode(i,e,t){if(Ji(e)){this.scheduler?.notify();let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,t):this.markElementAsRemoved(i,e,!1,t);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,t)}else this._onRemovalComplete(e,t)}markElementAsRemoved(i,e,t,r,o){this.collectedLeaveElements.push(e),e[We]={namespaceId:i,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,t,r,o){return Ji(e)?this._fetchNamespace(i).listen(e,t,r,o):()=>{}}_buildInstruction(i,e,t,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,t,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,tn,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Dn,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return pt(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[We];if(e&&e.setForRemoval){if(i[We]=Js,e.namespaceId){this.destroyInnerAnimations(i);let t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(On)&&this.markElementAsDisabled(i,!1),this.driver.query(i,qd,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let r=this.collectedEnterElements[t];je(r,$d)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{e=this._flushAnimations(t,i)}finally{for(let r=0;r<t.length;r++)t[r]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let r=this.collectedLeaveElements[t];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],e.length?pt(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(i){throw dd(i)}_flushAnimations(i,e){let t=new oi,r=[],o=new Map,a=[],l=new Map,m=new Map,v=new Map,x=new Set;this.disabledNodes.forEach(I=>{x.add(I);let A=this.driver.query(I,Hd,!0);for(let D=0;D<A.length;D++)x.add(A[D])});let k=this.bodyNode,j=Array.from(this.statesByElement.keys()),L=zs(j,this.collectedEnterElements),O=new Map,R=0;L.forEach((I,A)=>{let D=Qs+R++;O.set(A,D),I.forEach(U=>je(U,D))});let Q=[],te=new Set,G=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){let A=this.collectedLeaveElements[I],D=A[We];D&&D.setForRemoval&&(Q.push(A),te.add(A),D.hasAnimation?this.driver.query(A,Qd,!0).forEach(U=>te.add(U)):G.add(A))}let we=new Map,fe=zs(j,Array.from(te));fe.forEach((I,A)=>{let D=Nn+R++;we.set(A,D),I.forEach(U=>je(U,D))}),i.push(()=>{L.forEach((I,A)=>{let D=O.get(A);I.forEach(U=>$t(U,D))}),fe.forEach((I,A)=>{let D=we.get(A);I.forEach(U=>$t(U,D))}),Q.forEach(I=>{this.processLeaveNode(I)})});let Et=[],Ue=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(D=>{let U=D.player,se=D.element;if(Et.push(U),this.collectedEnterElements.length){let _e=se[We];if(_e&&_e.setForMove){if(_e.previousTriggersValues&&_e.previousTriggersValues.has(D.triggerName)){let ut=_e.previousTriggersValues.get(D.triggerName),Ee=this.statesByElement.get(D.element);if(Ee&&Ee.has(D.triggerName)){let li=Ee.get(D.triggerName);li.value=ut,Ee.set(D.triggerName,li)}}U.destroy();return}}let He=!k||!this.driver.containsElement(k,se),Me=we.get(se),it=O.get(se),Y=this._buildInstruction(D,t,it,Me,He);if(Y.errors&&Y.errors.length){Ue.push(Y);return}if(He){U.onStart(()=>xt(se,Y.fromStyles)),U.onDestroy(()=>Ze(se,Y.toStyles)),r.push(U);return}if(D.isFallbackTransition){U.onStart(()=>xt(se,Y.fromStyles)),U.onDestroy(()=>Ze(se,Y.toStyles)),r.push(U);return}let or=[];Y.timelines.forEach(_e=>{_e.stretchStartingKeyframe=!0,this.disabledNodes.has(_e.element)||or.push(_e)}),Y.timelines=or,t.append(se,Y.timelines);let da={instruction:Y,player:U,element:se};a.push(da),Y.queriedElements.forEach(_e=>Ie(l,_e,[]).push(U)),Y.preStyleProps.forEach((_e,ut)=>{if(_e.size){let Ee=m.get(ut);Ee||m.set(ut,Ee=new Set),_e.forEach((li,hn)=>Ee.add(hn))}}),Y.postStyleProps.forEach((_e,ut)=>{let Ee=v.get(ut);Ee||v.set(ut,Ee=new Set),_e.forEach((li,hn)=>Ee.add(hn))})});if(Ue.length){let I=[];Ue.forEach(A=>{I.push(md(A.triggerName,A.errors))}),Et.forEach(A=>A.destroy()),this.reportError(I)}let Ce=new Map,ye=new Map;a.forEach(I=>{let A=I.element;t.has(A)&&(ye.set(A,A),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Ce))}),r.forEach(I=>{let A=I.element;this._getPreviousPlayers(A,!1,I.namespaceId,I.triggerName,null).forEach(U=>{Ie(Ce,A,[]).push(U),U.destroy()})});let dt=Q.filter(I=>Ws(I,m,v)),Pt=new Map;js(Pt,this.driver,G,v,Xe).forEach(I=>{Ws(I,m,v)&&dt.push(I)});let mt=new Map;L.forEach((I,A)=>{js(mt,this.driver,new Set(I),m,Oi)}),dt.forEach(I=>{let A=Pt.get(I),D=mt.get(I);Pt.set(I,new Map([...A?.entries()??[],...D?.entries()??[]]))});let un=[],nr=[],rr={};a.forEach(I=>{let{element:A,player:D,instruction:U}=I;if(t.has(A)){if(x.has(A)){D.onDestroy(()=>Ze(A,U.toStyles)),D.disabled=!0,D.overrideTotalTime(U.totalTime),r.push(D);return}let se=rr;if(ye.size>1){let Me=A,it=[];for(;Me=Me.parentNode;){let Y=ye.get(Me);if(Y){se=Y;break}it.push(Me)}it.forEach(Y=>ye.set(Y,se))}let He=this._buildAnimation(D.namespaceId,U,Ce,o,mt,Pt);if(D.setRealPlayer(He),se===rr)un.push(D);else{let Me=this.playersByElement.get(se);Me&&Me.length&&(D.parentPlayer=pt(Me)),r.push(D)}}else xt(A,U.fromStyles),D.onDestroy(()=>Ze(A,U.toStyles)),nr.push(D),x.has(A)&&r.push(D)}),nr.forEach(I=>{let A=o.get(I.element);if(A&&A.length){let D=pt(A);I.setRealPlayer(D)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I<Q.length;I++){let A=Q[I],D=A[We];if($t(A,Nn),D&&D.hasAnimation)continue;let U=[];if(l.size){let He=l.get(A);He&&He.length&&U.push(...He);let Me=this.driver.query(A,Dn,!0);for(let it=0;it<Me.length;it++){let Y=l.get(Me[it]);Y&&Y.length&&U.push(...Y)}}let se=U.filter(He=>!He.destroyed);se.length?Jd(this,A,se):this.processLeaveNode(A)}return Q.length=0,un.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();let A=this.players.indexOf(I);this.players.splice(A,1)}),I.play()}),un}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,t,r,o){let a=[];if(e){let l=this.playersByQueriedElement.get(i);l&&(a=l)}else{let l=this.playersByElement.get(i);if(l){let m=!o||o==ni;l.forEach(v=>{v.queued||!m&&v.triggerName!=r||a.push(v)})}}return(t||r)&&(a=a.filter(l=>!(t&&t!=l.namespaceId||r&&r!=l.triggerName))),a}_beforeAnimationBuild(i,e,t){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:i,l=e.isRemovalTransition?void 0:r;for(let m of e.timelines){let v=m.element,x=v!==o,k=Ie(t,v,[]);this._getPreviousPlayers(v,x,a,l,e.toState).forEach(L=>{let O=L.getRealPlayer();O.beforeDestroy&&O.beforeDestroy(),L.destroy(),k.push(L)})}xt(o,e.fromStyles)}_buildAnimation(i,e,t,r,o,a){let l=e.triggerName,m=e.element,v=[],x=new Set,k=new Set,j=e.timelines.map(O=>{let R=O.element;x.add(R);let Q=R[We];if(Q&&Q.removedBeforeQueried)return new Vt(O.duration,O.delay);let te=R!==m,G=em((t.get(R)||Xd).map(Ce=>Ce.getRealPlayer())).filter(Ce=>{let ye=Ce;return ye.element?ye.element===R:!1}),we=o.get(R),fe=a.get(R),Et=Us(this._normalizer,O.keyframes,we,fe),Ue=this._buildPlayer(O,Et,G);if(O.subTimeline&&r&&k.add(R),te){let Ce=new ai(i,l,R);Ce.setRealPlayer(Ue),v.push(Ce)}return Ue});v.forEach(O=>{Ie(this.playersByQueriedElement,O.element,[]).push(O),O.onDone(()=>Kd(this.playersByQueriedElement,O.element,O))}),x.forEach(O=>je(O,As));let L=pt(j);return L.onDestroy(()=>{x.forEach(O=>$t(O,As)),Ze(m,e.toStyles)}),k.forEach(O=>{Ie(r,O,[]).push(L)}),L}_buildPlayer(i,e,t){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,t):new Vt(i.duration,i.delay)}},ai=class{constructor(i,e,t){this.namespaceId=i,this.triggerName=e,this.element=t,this._player=new Vt,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>Gn(i,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){Ie(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function Kd(n,i,e){let t=n.get(i);if(t){if(t.length){let r=t.indexOf(e);t.splice(r,1)}t.length==0&&n.delete(i)}return t}function Yd(n){return n??null}function Ji(n){return n&&n.nodeType===1}function Zd(n){return n=="start"||n=="done"}function Vs(n,i){let e=n.style.display;return n.style.display=i??"none",e}function js(n,i,e,t,r){let o=[];e.forEach(m=>o.push(Vs(m)));let a=[];t.forEach((m,v)=>{let x=new Map;m.forEach(k=>{let j=i.computeStyle(v,k,r);x.set(k,j),(!j||j.length==0)&&(v[We]=Gd,a.push(v))}),n.set(v,x)});let l=0;return e.forEach(m=>Vs(m,o[l++])),a}function zs(n,i){let e=new Map;if(n.forEach(l=>e.set(l,[])),i.length==0)return e;let t=1,r=new Set(i),o=new Map;function a(l){if(!l)return t;let m=o.get(l);if(m)return m;let v=l.parentNode;return e.has(v)?m=v:r.has(v)?m=t:m=a(v),o.set(l,m),m}
21return i.forEach(l=>{let m=a(l);m!==t&&e.get(m).push(l)}),e}function je(n,i){n.classList?.add(i)}function $t(n,i){n.classList?.remove(i)}function Jd(n,i,e){pt(e).onDone(()=>n.processLeaveNode(i))}function em(n){let i=[];return ea(n,i),i}function ea(n,i){for(let e=0;e<n.length;e++){let t=n[e];t instanceof Sn?ea(t.players,i):i.push(t)}}function tm(n,i){let e=Object.keys(n),t=Object.keys(i);if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||n[o]!==i[o])return!1}return!0}function Ws(n,i,e){let t=e.get(n);if(!t)return!1;let r=i.get(n);return r?t.forEach(o=>r.add(o)):i.set(n,t),e.delete(n),!0}var Qt=class{constructor(i,e,t,r){this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,a)=>{},this._transitionEngine=new $n(i.body,e,t,r),this._timelineEngine=new Hn(i.body,e,t),this._transitionEngine.onRemovalComplete=(o,a)=>this.onRemovalComplete(o,a)}registerTrigger(i,e,t,r,o){let a=i+"-"+r,l=this._triggerCache[a];if(!l){let m=[],v=[],x=Ks(this._driver,o,m,v);if(m.length)throw td(r,m);v.length&&void 0,l=zd(r,x,this._normalizer),this._triggerCache[a]=l}this._transitionEngine.registerTrigger(e,r,l)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,t,r){this._transitionEngine.insertNode(i,e,t,r)}onRemove(i,e,t){this._transitionEngine.removeNode(i,e,t)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,t,r){if(t.charAt(0)=="@"){let[o,a]=Os(t),l=r;this._timelineEngine.command(o,e,a,l)}else this._transitionEngine.trigger(i,e,t,r)}listen(i,e,t,r,o){if(t.charAt(0)=="@"){let[a,l]=Os(t);return this._timelineEngine.listen(a,e,l,o)}return this._transitionEngine.listen(i,e,t,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function im(n,i){let e=null,t=null;return Array.isArray(i)&&i.length?(e=An(i[0]),i.length>1&&(t=An(i[i.length-1]))):i instanceof Map&&(e=An(i)),e||t?new Qn(n,e,t):null}var Qn=class n{static{this.initialStylesByElement=new WeakMap}constructor(i,e,t){this._element=i,this._startStyles=e,this._endStyles=t,this._state=0;let r=n.initialStylesByElement.get(i);r||n.initialStylesByElement.set(i,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ze(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ze(this._element,this._initialStyles),this._endStyles&&(Ze(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(xt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xt(this._element,this._endStyles),this._endStyles=null),Ze(this._element,this._initialStyles),this._state=3)}};function An(n){let i=null;return n.forEach((e,t)=>{nm(t)&&(i=i||new Map,i.set(t,e))}),i}function nm(n){return n==="display"||n==="position"}var cn=class{constructor(i,e,t,r){this.element=i,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){let e=[];
21return i.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(i,e,t){return i.animate(this._convertKeyframesToObject(e),t)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{r!=="offset"&&i.set(r,this._finished?t:er(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}},pn=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return Hs(i,e)}getParentElement(i){return Yn(i)}query(i,e,t){return qs(i,e,t)}computeStyle(i,e,t){return er(i,e)}animate(i,e,t,r,o,a=[]){let l=r==0?"both":"forwards",m={duration:t,delay:r,fill:l};o&&(m.easing=o);let v=new Map,x=a.filter(L=>L instanceof cn);Sd(t,r)&&x.forEach(L=>{L.currentSnapshot.forEach((O,R)=>v.set(R,O))});let k=Cd(e).map(L=>new Map(L));k=Md(i,k,v);let j=im(i,k);return new cn(i,k,m,j)}};var en="@",ta="@.disabled",dn=class{constructor(i,e,t,r){this.namespaceId=i,this.delegate=e,this.engine=t,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,t,r=!0){this.delegate.insertBefore(i,e,t),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,t,r){this.delegate.setAttribute(i,e,t,r)}removeAttribute(i,e,t){this.delegate.removeAttribute(i,e,t)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,t,r){this.delegate.setStyle(i,e,t,r)}removeStyle(i,e,t){this.delegate.removeStyle(i,e,t)}setProperty(i,e,t){e.charAt(0)==en&&e==ta?this.disableAnimations(i,!!t):this.delegate.setProperty(i,e,t)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,t){return this.delegate.listen(i,e,t)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Xn=class extends dn{constructor(i,e,t,r,o){super(e,t,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,t){e.charAt(0)==en?e.charAt(1)=="."&&e==ta?(t=t===void 0?!0:!!t,this.disableAnimations(i,t)):this.engine.process(this.namespaceId,i,e.slice(1),t):this.delegate.setProperty(i,e,t)}listen(i,e,t){if(e.charAt(0)==en){let r=rm(i),o=e.slice(1),a="";return o.charAt(0)!=en&&([o,a]=om(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let m=l._data||-1;this.factory.scheduleListenerCallback(m,t,l)})}return this.delegate.listen(i,e,t)}};function rm(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function om(n){let i=n.indexOf("."),e=n.substring(0,i),t=n.slice(i+1);return[e,t]}var mn=class{constructor(i,e,t){this.delegate=i,this.engine=e,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{let a=o?.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(i,e){let t="",r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let v=this._rendererCache,x=v.get(r);if(!x){let k=()=>v.delete(r);x=new dn(t,r,this.engine,k),v.set(r,x)}return x}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let l=v=>{Array.isArray(v)?v.forEach(l):this.engine.registerTrigger(o,a,i,v.name,v)};return e.data.animation.forEach(l),new Xn(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,t){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(t));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,l]=o;a(l)}),this._animationCallbacksBuffer=[]})}),r.push([e,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var am=(()=>{class n extends Qt{constructor(e,t,r){super(e,t,r,hr(_r,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(t){return new(t||n)($(Dt),$(kt),$(It))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();function lm(){return new rn}function cm(n,i,e){return new mn(n,i,e)}var na=[{provide:It,useFactory:lm},{provide:Qt,useClass:am},{provide:vr,useFactory:cm,deps:[zr,Qt,hi]}],ia=[{provide:kt,useFactory:()=>new pn},{provide:vn,useValue:"BrowserAnimations"},...na],pm=[{provide:kt,useClass:Zn},{provide:vn,useValue:"NoopAnimations"},...na],ra=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?pm:ia}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n})}static{this.\u0275inj=Pe({providers:ia,imports:[Ur]})}}return n})();var dm=[{path:"producto/:additional_info",loadChildren:()=>import("./product-details.module-D3A2J6UL.js").then(n=>n.ProductDetailsModule)},{path:"old-producto/:additional_info",loadChildren:()=>import("./sku.module-CTX3V2OP.js").then(n=>n.SkuModule)},{path:"catalogo",loadChildren:()=>import("./grid-view-catalog.module-IILZCGVX.js").then(n=>n.GridViewCatalogModule)},{path:"buscar",loadChildren:()=>import("./grid-view-search.module-FNAOW2J2.js").then(n=>n.GridViewSearchModule)},{path:"seleccion",loadChildren:()=>import("./grid-view-group.module-7Q4P54YP.js").then(n=>n.GridViewGroupModule)},{path:"cesta",loadChildren:()=>import("./cart.module-X7J7UJWC.js").then(n=>n.CartModule)},{path:"calendario",loadChildren:()=>import("./calendar.module-NNVV4ONG.js").then(n=>n.CalendarModule)},{path:"equipo",loadChildren:()=>import("./team.module-RZRPFKOL.js").then(n=>n.TeamModule)},{path:"mi-cuenta/:accountSection",loadChildren:()=>import("./account.module-6WSIQHIN.js").then(n=>
21n.AccountModule),canActivate:[Wi]},{path:"generar-contrasena/:hash/:external_id",loadChildren:()=>import("./account-reset-password.module-ADE4J5IH.js").then(n=>n.AccountResetPasswordModule)},{path:"verificar-cuenta/:profile_id/:pin",loadChildren:()=>import("./account-validate.module-CGFQ5LR4.js").then(n=>n.AccountValidateModule)},{path:"suscribir-newsletter/:external_id",loadChildren:()=>import("./account-subscribe-to-newsletter.module-2VQBFKCU.js").then(n=>n.AccountSubscribeToNewsletterModule)},{path:"rese\xF1as-xtralife",loadChildren:()=>import("./store-reviews.module-MCLFCRPC.js").then(n=>n.StoreReviewsModule)},{path:"faqs",loadChildren:()=>import("./faqs.module-MHSHPPDQ.js").then(n=>n.FaqsModule)},{path:"mi-planificador",loadChildren:()=>import("./planner.module-UQD6Q2PB.js").then(n=>n.PlannerModule)},{path:"error",loadChildren:()=>import("./page-not-found.module-N4TY7XNL.js").then(n=>n.PageNotFoundModule)},{path:"health-check",loadChildren:()=>import("./health-check.module-B36IPM7L.js").then(n=>n.HealthCheckModule)},{path:"**",loadChildren:()=>import("./sections.module-U33GOKJT.js").then(n=>n.SectionsModule)}],oa=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n})}static{this.\u0275inj=Pe({imports:[Yt.forRoot(dm,{}),Yt]})}}return n})();var sa=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n})}static{this.\u0275inj=Pe({imports:[Br,Yt,Mi,Zt,xi,zi]})}}return n})();var aa=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n})}static{this.\u0275inj=Pe({providers:[Ri,Se,Lo,No,Hi,Bt,Wt,Ni,Hr,Ve,Co,to,Gr,qr,Fo,jt]})}}return n})();var la=(()=>{class n{constructor(e){this._tools=e,this.cache=new Map}intercept(e,t){if(this._tools.isBrowser||e.method!=="GET")return t.handle(e);let r=this.cache.get(e.url);return r?qe(r):t.handle(e).pipe(Nt(o=>{o instanceof Lr&&this.cache.set(e.url,o)}))}static{this.\u0275fac=function(t){return new(t||n)($(B))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();var ca=(()=>{class n{constructor(e,t){this.applicationService=e,this.swUpdates=t,this.lastUpdateCheck=0,this.ERROR_CHECK_COOLDOWN=60*1e3}handleError(e){if(console.error("Global error:",e),!this.applicationService.isBrowser())return;let t=Date.now();t-this.lastUpdateCheck>=this.ERROR_CHECK_COOLDOWN&&(this.lastUpdateCheck=t,this.swUpdates.checkForUpdates())}static{this.\u0275fac=function(t){return new(t||n)($(Se),$(Ht))}}static{this.\u0275prov=ne({token:n,factory:n.\u0275fac})}}return n})();Nr(Es,"es");function mm(n){return()=>new Promise((i,e)=>{n.getStorefront().subscribe(t=>{i(t)},e)})}var pa=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=Oe({type:n,bootstrap:[Is]})}static{this.\u0275inj=Pe({providers:[Ht,at,z,oe,ji,B,Fe,Bi,Wi,vi,Zt,Po,To,eo,{provide:Tr,useValue:"es"},{provide:fi,useFactory:mm,deps:[z,B],multi:!0},{provide:Fr,useClass:la,multi:!0},{provide:gr,useClass:ca},{provide:yn,useFactory:function(){let e=new yn;return e.setup(null,300),e}},Vr(jr())],imports:[sa,aa,ra,oa,Zt,zi,Mi,xi,mo.forRoot({preventDuplicates:!0,positionClass:"inline",enableHtml:!0,timeOut:1e4,tapToDismiss:!0,closeButton:!0,iconClasses:{error:"toast-error toastXl fontNormal shadowXl",info:"toast-info toastXl fontNormal shadowXl",success:"toast-success toastXl fontNormal shadowXl",warning:"toast-warning toastXl fontNormal shadowXl"}}),po,qo.register("ngsw-worker.js",{enabled:Le.production,registrationStrategy:"registerImmediately"})]})}}return n})();Le.production&&void 0;Wr().bootstrapModule(pa).catch(n=>console.error(n));
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.