PageSourceSearch

https://www.unieuro.it/chunk-TDKRDERC.js

js unieuro.it collected 2026-10-02 09:52:41 UTC 40,259 bytes, 1 lines download raw bytes

1import{a as Ze,b as Bi,c as ti,d as ei,e as ii,f as $i}from"./chunk-W6GDNTSA.js";import"./chunk-XTFYICKO.js";import{a as Xe,b as Ai}from"./chunk-3WSIUJL7.js";import{a as it,b as Rt}from"./chunk-TT2T7REQ.js";import{A as Mi,B as qe,C as Oi,i as Mt,j as Ve,k as ze,m as Re,n as yi,o as je,p as Ot,r as Je,w as He,y as Tt,z as Ye}from"./chunk-THIISR3B.js";import{a as Ke,b as Ii,c as Ge,d as Ei}from"./chunk-5NC7OBXM.js";import{g as kt,h as Z,j as J,l as tt,q as Ue}from"./chunk-3USIWAW5.js";import"./chunk-7GXCGB3V.js";import"./chunk-WZTXDORO.js";import"./chunk-DBJITJP7.js";import"./chunk-PDTFL62L.js";import{B as zt,C as ki,W as Qe,X as Ti}from"./chunk-ZMIFXZLT.js";import"./chunk-IQX66EC4.js";import"./chunk-GBWAKSOX.js";import{a as St,b as Ne}from"./chunk-URHCKURD.js";import"./chunk-4ETS4T4V.js";import"./chunk-GFKC6M5A.js";import"./chunk-M74VT4UH.js";import"./chunk-XRNU3T7K.js";import"./chunk-AO6AANEA.js";import{a as $e,b as xi}from"./chunk-TYBF2Q7T.js";import"./chunk-6TA3ZMVI.js";import"./chunk-GKM7JNRM.js";import"./chunk-O27W7ZGS.js";import"./chunk-OBI7462O.js";import"./chunk-DVVVE7PB.js";import"./chunk-FBJ5F7SA.js";import"./chunk-C2FLTRKE.js";import"./chunk-WI7WZ4GC.js";import"./chunk-NDPEAZQE.js";import"./chunk-2KGFVEE6.js";import"./chunk-XULM2GT6.js";import"./chunk-ZFWXKSOU.js";import{a as Le,b as Pi}from"./chunk-OJSBJ4NA.js";import"./chunk-XO2FGHCI.js";import{w as Fe,z as Si}from"./chunk-NJVFZAXO.js";import"./chunk-ROZTY5SB.js";import{a as et,b as Vt}from"./chunk-SWOKZLJC.js";import"./chunk-RYTC3N3D.js";import"./chunk-VOP65K33.js";import{a as yt,b as We}from"./chunk-RP42TZ3F.js";import"./chunk-IRGUZICA.js";import{a as Be,b as wi}from"./chunk-PHIZW7LJ.js";import"./chunk-ZSLS47OB.js";import"./chunk-DAZ4OP2I.js";import"./chunk-7AZQPVHH.js";import"./chunk-SQ5AXT2H.js";import"./chunk-GO3VHJ72.js";import"./chunk-KB3N54JY.js";import"./chunk-6JZM4AJX.js";import"./chunk-VXDLV67E.js";import"./chunk-UTN3EQYO.js";import"./chunk-QXY7VRDZ.js";import"./chunk-GQ5V67OX.js";import"./chunk-ALXQ63WN.js";import"./chunk-KHEOULUG.js";import{Ma as Te,Na as gi,Oa as Ie,Pa as fi,Qa as Pt,Ra as Ee,Ua as Ae,Va as bi,fa as ye,ga as Ci,oa as ke,pa as Me,qa as Oe,t as Se,u as hi}from"./chunk-OJXGTJPV.js";import{a as ge,b as di,c as Lt,d as _i}from"./chunk-JY6WUMJA.js";import{a as De,b as vi}from"./chunk-7MH2WQIL.js";import{a as j,b as vt}from"./chunk-IS3TQNTQ.js";import{E as ui,S as bt,X as xe,a as gt,aa as ve,b as fe,ba as X,ca as Ft,y as we}from"./chunk-CVF2EBXS.js";import"./chunk-P75JQ3L2.js";import"./chunk-ILNVAUFR.js";import"./chunk-XXXYHMW5.js";import"./chunk-HK66GNJM.js";import"./chunk-UKHGNQAH.js";import"./chunk-Q4NOM2MT.js";import"./chunk-VGYU72VE.js";import"./chunk-FCMNA653.js";import"./chunk-JJTX3J3S.js";import"./chunk-NAGMLFRZ.js";import"./chunk-3DKMD57O.js";import"./chunk-QHYAQ7RR.js";import"./chunk-RG752NOJ.js";import"./chunk-SSJRGJOB.js";import"./chunk-5ZHXOKMF.js";import"./chunk-QEYBPWVY.js";import"./chunk-ODR5CHSG.js";import"./chunk-CUS7PVCT.js";import{Bc as Ct,Nb as ce,O as ie,Q as Dt,R as _t,Tb as pe,U as ne,Wb as me,Xb as de,Yb as _e,Zb as ht,ab as re,bb as se,cc as ue,ea as ut,fa as oe,ga as Wt,hb as ae,nb as le,sc as he,zc as Ce}from"./chunk-5VWF6WJS.js";import"./chunk-PEF5ZI3N.js";import"./chunk-KZVS6OSO.js";import{a as xt,b as Pe}from"./chunk-WMNFHQOK.js";import{a as L,b as lt}from"./chunk-FJNVEVG2.js";import{D as Ut,q as W,w as at,y as K,z as wt}from"./chunk-LLJHAJ6J.js";import{a as ft,e as be}from"./chunk-JBMJ2I24.js";import{Pa as st,da as te,fa as R,ua as ee}from"./chunk-GXPIWAQW.js";import{Ba as k,Ca as M,Ec as O,Fc as l,Id as Zt,Ja as pt,Jc as At,Kb as N,Kc as Bt,Lc as $t,Ob as Qt,Pc as Gt,Qa as Yt,Sa as qt,Sc as dt,Tc as z,Vd as D,a as Ht,fc as v,g as A,gc as Kt,hc as P,hd as Nt,ic as Y,jd as Xt,ka as ct,kc as q,lc as Q,mc as m,nb as V,nc as p,oc as d,pc as f,pd as C,qd as g,sb as c,ua as b,xb as mt,yc as I}from"./chunk-L4MDHOUV.js";import"./chunk-CNGOBVTT.js";import"./chunk-VPOSDG5Q.js";import"./chunk-CWBPITBU.js";import"./chunk-6OILVHU3.js";import"./chunk-W4TV2JEG.js";import"./chunk-3RT6OVNV.js";import"./chunk-WEHIB5RQ.js";import"./chunk-GDT3CZLT.js";import"./chunk-TKJSOYLB.js";import"./chunk-D5UMZBJ2.js";import"./chunk-MSGVIVGG.js";import"./chunk-N4IVTZMV.js";import{a as Jt,f as ot,j as _,k as w,l as x,n as rt}from"./chunk-VA6OWENO.js";function Ni(e,o){if(e&1&&f(0,"div",2),e&2){let t=l().$implicit;m("innerText",t.title)}}function Di(e,o){if(e&1&&(p(0,"div",17),f(1,"app-icon",25)(2,"span",26),d()),e&2){let t=l().$implicit,i=l(2);c(),m("name",i.ICON_OBJ.star.name)("size",i.ICON_OBJ.star.size),c(),m("innerText",t.productReviewAvgRating)}}function Wi(e,o){if(e&1&&(p(0,"div",18),f(1,"img",8),d()),e&2){let t=l().$implicit,i=l(2);c(),m("src",i.environment.urls.api.cdn+t.sticker1,V)}}function Li(e,o){if(e&1&&(p(0,"div",19),f(1,"img",8),d()),e&2){let t=l().$implicit,i=l(2);c(),m("src",i.environment.urls.api.cdn+t.sticker2,V)}}function Fi(e,o){if(e&1&&(p(0,"div",20),f(1,"img",8),d()),e&2){let t=l().$implicit,i=l(2);c(),m("src",i.environment.urls.api.cdn+t.sticker3,V)}}function Ui(e,o){if(e&1&&(f(0,"app-popover",28),C(1,"async")),e&2){let t=l(2).$implicit,i=l(2);
1m("side","top")("alignmentPopover","center")("text","In abbinata")("triggerId","wishlist-sellablealone"+(t==null?null:t.productCode))("popoverTriggerAction",g(1,5,i.isDesktop$)?"hover":"click")}}function Vi(e,o){if(e&1){let t=I();p(0,"app-button",27),C(1,"async"),C(2,"async"),C(3,"async"),C(4,"async"),O("click",function(n){k(t);let u=l().$implicit,r=l(2);return M(u.urlProductSellableOnlyOnBundle?r.onLinkClick(n,u.urlProductSellableOnlyOnBundle):"")}),d(),v(5,Ui,2,7,"app-popover",28),C(6,"async")}if(e&2){let t=l().$implicit,i=l(2);m("theme","primary")("label",g(1,8,i.isDesktop$)?"Solo in abbinata":"")("expand",g(2,10,i.isDesktop$)?"block":"full")("icon",g(3,12,i.isDesktop$)?"":i.ICON_OBJ_CART.cart.name)("iconSize",g(4,14,i.isDesktop$)?"":i.ICON_OBJ_CART.cart.size)("id","wishlist-sellablealone"+(t==null?null:t.productCode))("disabled",!t.onBundleSellableAlone),c(5),P(g(6,16,i.isDesktop$)===!1?5:-1)}}function zi(e,o){if(e&1){let t=I();p(0,"app-button",29),C(1,"async"),C(2,"async"),C(3,"async"),O("click",function(){k(t);let n=l().$implicit,u=l(2);return M(u.onMoveProductToCart(n.productCode,n.stock.stockLevelStatus,n.reCaptchaActive))}),d()}if(e&2){let t,i=l().$implicit,n=l(2);m("theme","primary")("label",g(1,7,n.isDesktop$)?i.stock.stockLevelStatus==="outOfStock"?"Notifica disponibilit\xE0":"Aggiungi al carrello":"")("unavailable",i.stock.stockLevelStatus==="outOfStock")("expand",g(2,9,n.isDesktop$)?"block":"full")("icon",i.stock.stockLevelStatus==="outOfStock"?n.ICON_OBJ.letterDark.name:n.ICON_OBJ_CART.cart.name)("iconSize",i.stock.stockLevelStatus==="outOfStock"?n.ICON_OBJ.letterDark.size:n.ICON_OBJ_CART.cart.size)("showSpinner",((t=g(3,11,n.spinnerMap$))==null?null:t.get(i.productCode))??!1)}}function Ri(e,o){if(e&1&&f(0,"div",24),e&2){let t=l().$implicit;m("innerText",t.comment)}}function ji(e,o){if(e&1){let t=I();p(0,"div",0)(1,"div",1),v(2,Ni,1,1,"div",2),p(3,"ion-grid")(4,"ion-row",3)(5,"ion-col",4),C(6,"async"),p(7,"div",5),f(8,"app-product-image",6),p(9,"div",7),f(10,"img",8),d()()(),p(11,"ion-col",9),C(12,"async"),p(13,"div",10)(14,"span",11),z(15,"Volantino"),d(),p(16,"ion-col",12)(17,"app-button",13),O("click",function(){let n=k(t).$implicit,u=l(2);return M(u.onShareProduct(n))}),d(),p(18,"app-button",14),O("click",function(){let n=k(t).$implicit,u=l(2);return M(u.onRemoveProduct(n.productCode))}),d()()(),p(19,"div",15)(20,"a",16),C(21,"onlinePrefix"),O("click",function(n){let u=k(t).$implicit,r=l(2);return M(r.onLinkClick(n,u.productUrl))}),d(),v(22,Di,3,3,"div",17),d(),v(23,Wi,2,1,"div",18),v(24,Li,2,1,"div",19),v(25,Fi,2,1,"div",20),p(26,"div",21),f(27,"app-product-prices",22),v(28,Vi,7,18)(29,zi,4,13,"app-button",23),d()()()()(),v(30,Ri,1,1,"div",24),d()}if(e&2){let t=o.$implicit,i=l(2);c(2),P(t.title?2:-1),c(3),m("size",g(6,26,i.isDesktop$)?1.5:4.5),c(3),m("productImage",t.productImageUrl)("productName",t.productName),c(2),m("src",i.environment.urls.api.cdn+t.energyIconImageUrl,V),c(),m("size",g(12,28,i.isDesktop$)?10:7),c(6),m("theme","transparent")("expand","block")("icon",i.ICON_OBJ.share.name)("iconSize",i.ICON_OBJ.share.size),c(),m("theme","transparent")("expand","block")("icon",i.ICON_OBJ.wishRemove.name)("iconSize",i.ICON_OBJ.wishRemove.size),c(2),m("innerText",t.productName)("href",g(21,30,t.productUrl),V),c(2),P(t!=null&&t.productReviewAvgRating?22:-1),c(),P(t.sticker1?23:-1),c(),P(t.sticker2?24:-1),c(),P(t.sticker3?25:-1),c(2),m("productPrice",t.productPrice)("productCode",t.productCode)("uniClubPromoPrice",t==null?null:t.unieuroClubDedicatedPrice)("isUniClubPromo",(t==null?null:t.unieuroClubDedicatedPromotion)??!1),c(),P(t.onBundleSellableAlone?29:28),c(2),P(t.comment?30:-1)}}function Ji(e,o){if(e&1&&q(0,ji,31,32,"div",0,Y),e&2){let t=l();Q(t.entries)}}var ni,oi=ot(()=>{"use strict";D();lt();Oe();Ne();st();Ut();vt();We();at();Pe();Vt();wi();Tt();Si();ct();Mi();Pi();fe();Ci();di();_i();ki();Oi();Bi();Ti();hi();vi();Ct();Ft();Ve();Ii();Ei();ui();bi();xi();Ee();$i();fi();gi();D();ni=(()=>{var o,t,i,n,u,r,s,a,h,y,E;let B=class B extends Be{constructor(){super(...arguments);w(this,o);w(this,t);w(this,i);w(this,n);w(this,u);w(this,r);w(this,s);w(this,a);w(this,h);w(this,y);w(this,E);x(this,o,b(W)),x(this,t,b(Le)),this.isDesktop$=_(this,o).select(K),this.isDesktop=_(this,o).selectSignal(K),x(this,i,b(ye)),x(this,n,b(ge)),x(this,u,b(qe)),x(this,r,b(ke)),this.uiService=b(Qe),x(this,s,b(X)),x(this,a,b(Ge)),x(this,h,b(Ae)),x(this,y,b(Pt)),x(this,E,b(Ie)),this.cartId=_(this,o).selectSignal(we),this.spinnerMap=new A(new Map),this.spinnerMap$=this.spinnerMap.asObservable(),this.onRemoveProduct=S=>
1{_(this,o).dispatch(Je({productCode:S}))},this.onMoveProductToCart=(S,H,F)=>rt(this,null,function*(){let U=this.spinnerMap.value;if(U.set(S,!0),this.spinnerMap.next(new Map(U)),H==="outOfStock"){yield _(this,t).openModal({component:Ye,componentProps:{sku:S},cssClass:"send-mail-modal"});let G=yield _(this,r).getTop();G&&G.onDidDismiss().then(()=>{U.set(S,!1),this.spinnerMap.next(new Map(U))})}else{let G=null;if(F)try{G=yield _(this,u).execute(zt.WISHLIST),_(this,s).log("Token reCAPTCHA generato:",G)}catch($){_(this,s).error("Errore nella generazione del token reCAPTCHA:",$)}_(this,o).dispatch(Fe({sku:Jt({code:S??"0",qty:1},F&&{rct:G||"",rca:zt.WISHLIST}),successCallback:$=>rt(this,null,function*(){U.set(S,!1),this.spinnerMap.next(new Map(U)),$?.messageList?.messages?.[0]?.message&&_(this,n).emit({topic:Lt.SHOW_TOAST,data:{message:$?.messageList?.messages?.[0]?.message,type:$?.messageList?.messages?.[0]?.type==="ERROR"?"danger":"success"}});let T=$.cartModification.entry.product,ci=$.cartModification.entry.entryNumber;this.uiService.openAddToCartModal({sku:S,label:S,message:$?.messageList?.messages?.[0],entryNumber:ci,type:"success",product:T,uniClubPromotionApplied:$.cartModification.ueClubPromotionApplied}),_(this,i).trackEvent(Se.AddToCart,T),_(this,y).trackAirshipProductAddToCart(T);let pi={product_id:T?.cleanCode??T?.code,product_name:T?.name,product_category:T?.mainCategory?.name,quantity:1,price:T?.price?.value??T?.price,currency:T?.price?.currencyIso??""},mi={content_id:T?.cleanCode??T?.code,content_type:"product",quantity:1,value:T?.price?.value??T?.price,currency:T?.price?.currencyIso??"",product_id:T?.cleanCode??T?.code};_(this,E).trackEvent(Te.AddToCart,pi,mi),_(this,a).pushUserEvent(Ke.ADDTOCART,{entity:_(this,a).getEntityFromRecommendation(),uri:_(this,h).window?.location?.href??"",referrerUri:_(this,h).window?.document?.referrer??"",products:[{id:T.cleanCode??T.code??"",quantity:1}],cartId:this.cartId()})}),errorCallback:$=>rt(this,null,function*(){U.set(S,!1),this.spinnerMap.next(new Map(U)),_(this,n).emit({topic:Lt.SHOW_TOAST,data:{message:$.error.errors[0].message,type:"danger"}})})}))}}),this.onShareProduct=S=>rt(this,null,function*(){let H=ti(S?.productUrl),F=ei(S?.productName);!this.isDesktop()&&(yield ii({title:S?.productName??"",text:F,url:H}))||(yield _(this,t).openModal({component:Ze,componentProps:{title:S?.productName??"",url:S?.productUrl,image:S.productImageUrl,description:S?.productName??""},cssClass:"product-share-modal",initialBreakpoint:1}))}),this.ICON_OBJ_CART=yt,this.ICON_OBJ=et,this.environment=gt}};o=new WeakMap,t=new WeakMap,i=new WeakMap,n=new WeakMap,u=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap,h=new WeakMap,y=new WeakMap,E=new WeakMap,B.\u0275fac=(()=>{let S;return function(F){return(S||(S=Yt(B)))(F||B)}})(),B.\u0275cmp=N({type:B,selectors:[["app-wishlist-items"]],inputs:{entries:"entries"},features:[Qt],decls:1,vars:1,consts:[[1,"wishlist-item","flex"],["appPlatformClass","",1,"wishlist-card"],[1,"card-label",3,"innerText"],[1,"flex","ion-justify-content-between"],[3,"size"],[1,"card-image","flex"],[1,"image-container",3,"productImage","productName"],[1,"energy-label"],["alt","",3,"src"],[1,"card-col-info","flex",3,"size"],[1,"card-row-actions","flex"],[1,"card-promo"],[1,"card-actions","flex"],["aria","Condividi",3,"click","theme","expand","icon","iconSize"],["aria","Rimuovi dalla wishlist",3,"click","theme","expand","icon","iconSize"],[1,"card-row-title","flex"],[1,"card-title",3,"click","innerText","href"],[1,"card-rating","flex"],[1,"sticker","sticker1"],[1,"sticker","sticker2"],[1,"sticker","sticker3"],[1,"card-row-price","flex"],["ngSkipHydration","","showInfoPriceIcon","","inWishlist","",3,"productPrice","productCode","uniClubPromoPrice","isUniClubPromo"],[3,"theme","label","unavailable","expand","icon","iconSize","showSpinner"],[1,"card-notes",3,"innerText"],["aria-hidden","true",1,"feefo-icon",3,"name","size"],[3,"innerText"],[3,"click","theme","label","expand","icon","iconSize","id","disabled"],[3,"side","alignmentPopover","text","triggerId","popoverTriggerAction"],[3,"click","theme","label","unavailable","expand","icon","iconSize","showSpinner"]],template:function(H,F){H&1&&v(0,Ji,2,0),H&2&&P(F.entries&&F.entries.length>0?0:-1)},dependencies:[L,St,j,xt,De,ae,ce,re,Mt,R,$e],styles:[".wishlist-item[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:.5rem;height:auto}.wishlist-card[_ngcontent-%COMP%]{padding:1rem;border-radius:1rem;border:1px solid var(--greys_light_15);position:relative}.wishlist-card[_ngcontent-%COMP%]   .card-label[_ngcontent-%COMP%]{position:absolute;border-radius:.5rem;background:var(--secondary_shades_arancio_bruciato);top:-1rem;left:0;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--white_pure);padding:.25rem 1.5rem}.wishlist-card[_ngcontent-%COMP%]   .card-image[_ngcontent-%COMP%]{height:100%;border-radius:1rem;background:var(--greys_light_03);align-items:center;justify-content:center;position:relative}.wishlist-card[_ngcontent-%COMP%]   .card-image[_ngcontent-%COMP%]   .energy-label[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;width:2.5rem;height:auto}.wishlist-card[_ngcontent-%COMP%]   app-product-image[_ngcontent-%COMP%]{width:100%;mix-blend-mode:multiply}.wishlist-card[_ngcontent-%COMP%]   .card-col-info[_ngcontent-%COMP%]{flex-flow:column;gap:.25rem;align-items:flex-start;justify-content:space-between;position:inherit;color:var(--greys_dark_basalto)}.wishlist-card[_ngcontent-%COMP%]   .card-row-actions[_ngcontent-%COMP%]{flex-flow:row;align-items:center;justify-content:space-between;width:100%}.wishlist-card[_ngcontent-%COMP%]   .card-row-actions[_ngcontent-%COMP%]   .card-promo[_ngcontent-%COMP%]{font-size:.75rem;font-style:normal;font-weight:400;line-height:1.25rem;color:var(--secondary_shades_arancio_bruciato)}.wishlist-card[_ngcontent-%COMP%]   .card-row-actions[_ngcontent-%COMP%]   .card-actions[_ngcontent-%COMP%]{flex-flow:row;align-items:center;justify-content:flex-end}.wishlist-card[_ngcontent-%COMP%]   .card-row-title[_ngcontent-%COMP%]{flex-flow:column;gap:.25rem}.wishlist-card[_ngcontent-%COMP%]   .card-row-title[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;max-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}.wishlist-card[_ngcontent-%COMP%]   .card-row-title[_ngcontent-%COMP%]   .card-rating[_ngcontent-%COMP%]{font-size:.625rem;font-style:normal;font-weight:500;line-height:1rem;flex-flow:row;gap:.25rem;align-items:center;justify-content:flex-start}.wishlist-card[_ngcontent-%COMP%]   .card-row-price[_ngcontent-%COMP%]{flex-flow:column;align-items:flex-start;justify-content:space-between;width:100%;gap:.5rem}.wishlist-card[_ngcontent-%COMP%]   .card-row-price[_ngcontent-%COMP%]   .card-price[_ngcontent-%COMP%]{font-size:1.125rem;font-style:normal;font-weight:400;line-height:1.25rem}.wishlist-card[_ngcontent-%COMP%]   .sticker[_ngcontent-%COMP%]{position:absolute;width:5rem;height:5rem}.wishlist-card[_ngcontent-%COMP%]   .sticker.sticker1[_ngcontent-%COMP%]{right:0;top:-3rem}.wishlist-card[_ngcontent-%COMP%]   .sticker.sticker2[_ngcontent-%COMP%]{bottom:-3rem;left:0}
1.wishlist-card[_ngcontent-%COMP%]   .sticker.sticker3[_ngcontent-%COMP%]{right:3rem;bottom:-3rem}.wishlist-card.desktop[_ngcontent-%COMP%]{padding:1.5rem}.wishlist-card.desktop[_ngcontent-%COMP%]   .card-row-price[_ngcontent-%COMP%]{flex-flow:row;align-items:center}.wishlist-card.desktop[_ngcontent-%COMP%]   .card-col-info[_ngcontent-%COMP%], .wishlist-card.desktop[_ngcontent-%COMP%]   .card-row-title[_ngcontent-%COMP%]{gap:.5rem}.card-notes[_ngcontent-%COMP%]{border-radius:1rem;background:var(--greys_light_03);color:var(--greys_medium_60);text-align:center;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem}"]});let e=B;return e})()});var Et,jt=ot(()=>{"use strict";D();lt();Ne();Ct();at();Ve();D();Et=(()=>{var o;let t=class t{constructor(){w(this,o,b(W))}ngOnInit(){}};o=new WeakMap,t.\u0275fac=function(u){return new(u||t)},t.\u0275cmp=N({type:t,selectors:[["app-wishlist-actions-product"]],inputs:{productName:"productName",productImageUrl:"productImageUrl",productPrice:"productPrice",isUniClubPromo:"isUniClubPromo",uniClubPromoPrice:"uniClubPromoPrice"},decls:5,vars:6,consts:[["appPlatformClass","",1,"wishlist-card"],[1,"card-title",3,"innerText"],[1,"card-image","flex"],[3,"productImage","productName"],["ngSkipHydration","","inWishlistActions","",3,"productPrice","uniClubPromoPrice","isUniClubPromo"]],template:function(u,r){u&1&&(p(0,"div",0),f(1,"ion-text",1),p(2,"div",2),f(3,"app-product-image",3),d(),f(4,"app-product-prices",4),d()),u&2&&(c(),m("innerText",r.productName),c(2),m("productImage",r.productImageUrl)("productName",r.productName),c(),m("productPrice",r.productPrice)("uniClubPromoPrice",r.uniClubPromoPrice)("isUniClubPromo",r.isUniClubPromo??!1))},dependencies:[L,St,ht,Mt],styles:[".wishlist-card[_ngcontent-%COMP%]{display:flex;gap:.5rem;flex-flow:column;align-items:center;justify-content:space-between;border-radius:.75rem;border:1px solid var(--greys_light_15);text-align:center;padding:1.5rem 1.25rem}.wishlist-card[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{font-size:.813rem}.wishlist-card[_ngcontent-%COMP%]   app-product-image[_ngcontent-%COMP%]{width:10rem;height:10rem;margin:auto}.wishlist-card[_ngcontent-%COMP%]   app-product-image[_ngcontent-%COMP%]   .product-image-container[_ngcontent-%COMP%]{width:100%}.wishlist-card[_ngcontent-%COMP%]   .card-price[_ngcontent-%COMP%]{font-size:1.125rem}"]});let e=t;return e})()});function Yi(e,o){e&1&&f(0,"div",10)}function qi(e,o){if(e&1){let t=I();p(0,"button",8),O("click",function(){let n=k(t).$implicit,u=l().$implicit,r=l(2);return M(r.toggleSelection(u.productCode,n.code))}),f(1,"img",9),v(2,Yi,1,0,"div",10),d()}if(e&2){let t=o.$implicit,i=l().$implicit,n=l(2);dt(Xt(7,Hi,n.isSelected(i,t.code),n.isDisabled(i,t.code))),Gt("pointer-events",n.isDisabled(i,t.code)?"none":"auto"),c(),m("src",n.environment.urls.api.cdn+t.url,V)("alt",t.altText),c(),P(n.isSelected(i,t.code)?2:-1)}}function Qi(e,o){if(e&1&&(p(0,"div",1),f(1,"app-wishlist-actions-product",5),p(2,"div",6),q(3,qi,3,10,"button",7,Y),d()()),e&2){let t=o.$implicit,i=l(2);c(),m("productName",t.productName)("productImageUrl",t.productImageUrl)("productPrice",t.productPrice)("uniClubPromoPrice",t==null?null:t.unieuroClubDedicatedPrice)("isUniClubPromo",(t==null?null:t.unieuroClubDedicatedPromotion)??!1),c(2),Q(i.stickers)}}function Ki(e,o){if(e&1){let t=I();p(0,"div",0),q(1,Qi,5,5,"div",1,Y),C(3,"async"),d(),p(4,"footer",2)(5,"div",3)(6,"app-button",4),C(7,"async"),O("click",function(){k(t);let n=l();return M(n.removeStickers("removeAll"))}),d(),p(8,"app-button",4),C(9,"async"),O("click",function(){k(t);let n=l();return M(n.saveStickers("saveAll"))}),d()()()}if(e&2){let t,i,n=l();c(),Q(g(3,11,n.entries$)),c(3),m("@slideInUp",void 0),c(2),m("theme","tertiary")("label","Rimuovi tutti")("expand","block")("id","removeAll")("showSpinner",((t=g(7,13,n.spinnerMap$))==null?null:t.get("removeAll"))??!1),c(2),m("theme","primary")("label","Salva modifiche")("expand","block")("id","saveAll")("showSpinner",((i=g(9,15,n.spinnerMap$))==null?null:i.get("saveAll"))??!1)}}var Hi,ri,si=ot(()=>{"use strict";D();lt();Oe();st();vt();at();Ut();ct();fe();Rt();Vt();Tt();jt();ve();Ue();be();Ft();D();Hi=(e,o)=>({selected:e,disabled:o});ri=(()=>{var o,t,i;let n=class n{constructor(){w(this,o);w(this,t);w(this,i);x(this,o,b(W)),x(this,t,b(it)),this.cdr=b(Zt),x(this,i,b(X)),this.isDesktop$=_(this,o).select(K),this.platformIsNative=pt(ft.isNativePlatform()),this.platformIsIOS$=_(this,o).select(wt),this.entries$=new A([]),this.selectedStickersMap={},this.spinnerMap=new A(new Map),this.spinnerMap$=this.spinnerMap.asObservable(),this.goToProductList=new mt(!1),this.environment=gt,this.ICON_OBJ=et,this.isEmpty=bt}set entries(r){this.entries$.next(r),this.updateStickerSelection(r),this.cdr.markForCheck()}updateStickerSelection(r){r.forEach(s=>
1{this.selectedStickersMap[s.productCode]||(this.selectedStickersMap[s.productCode]=[s.codeSticker1,s.codeSticker2,s.codeSticker3].filter(Boolean))})}toggleSelection(r,s){this.selectedStickersMap[r]||(this.selectedStickersMap[r]=[]);let a=this.selectedStickersMap[r].indexOf(s);a>-1?this.selectedStickersMap[r].splice(a,1):this.selectedStickersMap[r].length<3&&this.selectedStickersMap[r].push(s),this.cdr.markForCheck()}isSelected(r,s){return this.selectedStickersMap[r.productCode]?.includes(s)||!1}isDisabled(r,s){return this.selectedStickersMap[r.productCode]?.length>=3&&!this.isSelected(r,s)}getSelectedStickersString(r){return(this.selectedStickersMap[r]||[]).join("|")}saveStickers(r){let s=this.spinnerMap.value;s.set(r,!0),this.spinnerMap.next(new Map(s));for(let a of this.entries$.value){let h=this.getSelectedStickersString(a.productCode);_(this,t).setStickers(a.productCode,h).subscribe({next:y=>{_(this,o).dispatch(Ot({payload:y}));let E=this.spinnerMap.value;E.set(r,!1),this.spinnerMap.next(new Map(E)),this.cdr.markForCheck(),this.goToProductList.emit(!0)},error:y=>{_(this,i).error(`Errore nel salvataggio per prodotto ${a.productCode}:`,y)}})}}removeStickers(r){this.selectedStickersMap={},this.saveStickers(r),this.cdr.markForCheck(),this.goToProductList.emit(!0)}};o=new WeakMap,t=new WeakMap,i=new WeakMap,n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=N({type:n,selectors:[["app-wishlist-action"]],inputs:{entries:"entries",tab:"tab",stickers:"stickers"},outputs:{goToProductList:"goToProductList"},decls:2,vars:3,consts:[["appPlatformClass","",1,"wishlist-stickers","flex"],[1,"wishlist-action-item"],["appPlatformClass",""],[1,"wishlist-stickers-footer"],[1,"wishlist-stickers-button",3,"click","theme","label","expand","id","showSpinner"],[3,"productName","productImageUrl","productPrice","uniClubPromoPrice","isUniClubPromo"],[1,"stickers","flex"],[1,"sticker",3,"class","pointer-events"],[1,"sticker",3,"click"],["width","80px","height","80px",3,"src","alt"],[1,"indicator"]],template:function(s,a){s&1&&(v(0,Ki,10,17),C(1,"async")),s&2&&P(a.isEmpty(g(1,1,a.entries$))?-1:0)},dependencies:[L,Me,j,Et,R],styles:[".wishlist-stickers[_ngcontent-%COMP%]{flex-flow:column;gap:3rem}.wishlist-stickers[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:.5rem}.wishlist-stickers[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .stickers[_ngcontent-%COMP%]{flex-flow:row wrap;align-items:center;justify-content:space-between;border-radius:.75rem;background:var(--greys_light_03);padding:1rem 2.5rem}.wishlist-stickers[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .stickers[_ngcontent-%COMP%]   .sticker[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;align-items:center;transition:opacity .3s;background:transparent}.wishlist-stickers[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .stickers[_ngcontent-%COMP%]   .sticker.selected[_ngcontent-%COMP%]   .indicator[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:1.625rem;height:1.625rem;background-color:var(--primary_blu_base);border-radius:50%}.wishlist-stickers[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .stickers[_ngcontent-%COMP%]   .sticker.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.wishlist-stickers.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]{flex-flow:row;gap:1rem}.wishlist-stickers.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   app-wishlist-actions-product[_ngcontent-%COMP%], .wishlist-stickers.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .stickers[_ngcontent-%COMP%]{flex:1 1 calc(50% - .5rem)}.wishlist-stickers.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .sticker[_ngcontent-%COMP%]{flex:1 1 33%}.footer-placeholder[_ngcontent-%COMP%]{height:6.5rem;visibility:hidden}footer[_ngcontent-%COMP%]{position:fixed;width:100%;height:6.5rem;bottom:0}footer[_ngcontent-%COMP%]   .wishlist-stickers-footer[_ngcontent-%COMP%]{height:100%;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 .5rem}@media (max-width: 480px){footer[_ngcontent-%COMP%]   .wishlist-stickers-footer[_ngcontent-%COMP%]{padding:0;justify-content:center;gap:.1rem}footer[_ngcontent-%COMP%]   .wishlist-stickers-footer[_ngcontent-%COMP%]   .wishlist-stickers-button[_ngcontent-%COMP%]{width:100%;justify-content:center}}"],data:{animation:[kt("slideInUp",[tt(":enter",[J({transform:"translateY(100%)"}),Z("500ms ease-in",J({transform:"translateY(0%)"}))]),tt(":leave",[Z("500ms ease-out",J({transform:"translateY(100%)"}))])])]},changeDetection:0});let e=n;return e})()});function Gi(e,o){if(e&1&&f(0,"ion-textarea",8),e&2){let t=l().$implicit,i=l(2);
1m("formControl",i.getControl("note_"+t.productCode))}}function Xi(e,o){if(e&1&&f(0,"ion-input",9),e&2){let t=l().$implicit,i=l(2);m("formControl",i.getControl("label_"+t.productCode))}}function Zi(e,o){if(e&1&&(p(0,"div",1),f(1,"app-wishlist-actions-product",5),p(2,"div",6)(3,"ion-item",7),v(4,Gi,1,1,"ion-textarea",8)(5,Xi,1,1,"ion-input",9),d()()()),e&2){let t=o.$implicit,i=l(2);c(),m("productName",t.productName)("productImageUrl",t.productImageUrl)("productPrice",t.productPrice)("uniClubPromoPrice",t==null?null:t.unieuroClubDedicatedPrice)("isUniClubPromo",(t==null?null:t.unieuroClubDedicatedPromotion)??!1),c(3),P(i.tab==="notes"?4:i.tab==="labels"?5:-1)}}function tn(e,o){if(e&1){let t=I();p(0,"div",0),q(1,Zi,6,6,"div",1,Y),d(),p(3,"footer",2)(4,"div",3)(5,"app-button",4),C(6,"async"),O("click",function(){k(t);let n=l();return M(n.removeLabels("removeAll",n.tab))}),d(),p(7,"app-button",4),C(8,"async"),O("click",function(){k(t);let n=l();return M(n.saveLabels("saveAll",n.tab))}),d()()()}if(e&2){let t,i,n=l();c(),Q(n.entries),c(2),m("@slideInUp",void 0),c(2),m("theme","tertiary")("label","Rimuovi tutti")("expand","block")("id","removeAll")("showSpinner",((t=g(6,11,n.spinnerMap$))==null?null:t.get("removeAll"))??!1),c(2),m("theme","primary")("label","Salva modifiche")("expand","block")("id","saveAll")("showSpinner",((i=g(8,13,n.spinnerMap$))==null?null:i.get("saveAll"))??!1)}}var ai,li=ot(()=>{"use strict";D();st();vt();jt();Tt();ct();Wt();lt();Rt();at();Ue();Ct();Ft();D();Wt();ai=(()=>{var o,t,i;let n=class n{constructor(){w(this,o);w(this,t);w(this,i);x(this,o,b(W)),x(this,t,b(it)),x(this,i,b(X)),this.goToProductList=new mt(!1),this.labelsForm=new Dt({}),this.spinnerMap=new A(new Map),this.spinnerMap$=this.spinnerMap.asObservable(),this.FormControl=_t}ngOnInit(){this.initializeForm()}initializeForm(){let r={};this.entries.forEach(s=>{r[`label_${s.productCode}`]=new _t(null),r[`note_${s.productCode}`]=new _t(null)}),this.labelsForm=new Dt(r)}getControl(r){return this.labelsForm.controls[r]}saveLabels(r,s){this.updateSpinnerMap(r,!0);for(let a of this.entries){let h=s==="notes"?`note_${a.productCode}`:`label_${a.productCode}`,y=this.labelsForm.controls[h]?.value??"";y.trim()&&(this.updateSpinnerMap(a.productCode,!0),s==="notes"?this.saveNote(a.productCode,y,r):s==="labels"&&this.saveLabel(a.productCode,y,r),this.labelsForm.controls[a.productCode].reset())}}updateSpinnerMap(r,s){let a=this.spinnerMap.value;a.set(r,s),this.spinnerMap.next(new Map(a)),this.goToProductList.emit(!0)}saveNote(r,s,a){_(this,t).setNotes(r,s).subscribe({next:h=>this.handleSuccess(h,a),error:h=>this.handleError(h,r)})}saveLabel(r,s,a){_(this,t).setLabels(r,s).subscribe({next:h=>this.handleSuccess(h,a),error:h=>this.handleError(h,r)})}handleSuccess(r,s){_(this,o).dispatch(Ot({payload:r})),this.updateSpinnerMap(s,!1)}handleError(r,s){_(this,i).error(`Errore nel salvataggio per prodotto ${s}:`,r)}removeLabels(r,s){this.updateSpinnerMap(r,!0);for(let a of this.entries){let h=s==="notes"?`note_${a.productCode}`:`label_${a.productCode}`;this.updateSpinnerMap(a.productCode,!0),s==="notes"?this.saveNote(a.productCode,"",r):s==="labels"&&this.saveLabel(a.productCode,"",r),this.labelsForm.controls[h]?.reset()}}};o=new WeakMap,t=new WeakMap,i=new WeakMap,n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=N({type:n,selectors:[["app-wishlist-labels"]],inputs:{entries:"entries",tab:"tab"},outputs:{goToProductList:"goToProductList"},decls:1,vars:1,consts:[["appPlatformClass","",1,"wishlist-labels","flex"],[1,"wishlist-action-item"],["appPlatformClass",""],[1,"wishlist-stickers-footer"],[3,"click","theme","label","expand","id","showSpinner"],[3,"productName","productImageUrl","productPrice","uniClubPromoPrice","isUniClubPromo"],[1,"labels","flex","form"],[1,"form-input-item"],["placeholder","Aggiungi nota","aria-label","Aggiungi nota",3,"formControl"],["placeholder","Aggiungi etichetta","aria-label","Aggiungi etichetta",3,"formControl"]],template:function(s,a){s&1&&v(0,tn,9,15),s&2&&P(a.entries&&a.entries.length>0?0:-1)},dependencies:[j,Et,ut,ie,L,oe,ne,le,Ce,he,R],styles:[".wishlist-labels[_ngcontent-%COMP%]{flex-flow:column;gap:3rem}.wishlist-labels[_ngcontent-%COMP%]   .labels[_ngcontent-%COMP%], .wishlist-labels[_ngcontent-%COMP%]   .labels[_ngcontent-%COMP%]   .form-input-item[_ngcontent-%COMP%]{width:100%}.wishlist-labels[_ngcontent-%COMP%]   .labels[_ngcontent-%COMP%]   .form-input-item[_ngcontent-%COMP%]   ion-textarea[_ngcontent-%COMP%]{min-height:10rem;--highlight-color: var(--ion-color-primary)}.wishlist-labels[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:.5rem}.wishlist-labels.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]{flex-flow:row;gap:1rem}.wishlist-labels.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   app-wishlist-actions-product[_ngcontent-%COMP%], .wishlist-labels.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .labels[_ngcontent-%COMP%]{flex:1 1 calc(50% - .5rem)}.wishlist-labels.desktop[_ngcontent-%COMP%]   .wishlist-action-item[_ngcontent-%COMP%]   .labels[_ngcontent-%COMP%]{margin:0 .5rem}.footer-placeholder[_ngcontent-%COMP%]{height:6.5rem;visibility:hidden}footer[_ngcontent-%COMP%]{position:fixed;width:100%;height:6.5rem;bottom:0;z-index:1}footer[_ngcontent-%COMP%]   .wishlist-stickers-footer[_ngcontent-%COMP%]{height:100%;background:#fff;display:flex;align-items:center;justify-content:space-between}"],data:{animation:[kt("slideInUp",[tt(":enter",[J({transform:"translateY(100%)"}),Z("500ms ease-in",J({transform:"translateY(0%)"}))]),tt(":leave",[Z("500ms ease-out",J({transform:"translateY(100%)"}))])])]}});let e=n;return e})()});function sn(e,o){e&1&&(p(0,"div")(1,"span",6),z(2,"Divertiti a personalizzare le card"),d()())}function an(e,o){if(e&1){let t=I();p(0,"div",12)(1,"app-button",23),C(2,"async"),O("click",function(){k(t);let n=l(4);return M(n.onEmptyWishlist())}),d()()}if(e&2){let t=l(4);m("ngStyle",t.platformIsNative()?Nt(7,on):Nt(8,rn)),c(),m("theme","dark")("label","Svuota wishlist")("expand","full")("showSpinner",g(2,5,t.showSpinner$)??!1)}}function ln(e,o){if(e&1){let t=I();p(0,"app-wishlist-action",24),O("goToProductList",function(n){k(t);let u=l(4);return M(u.goToProductList(n))}),d()}if(e&2){let t=l(2);m("entries",t)("tab","stickers")("stickers",o)}}function cn(e,o){if(e&1){let t=I();p(0,"app-button",25),C(1,"async"),O("click",function(){k(t);let n=l(4);return M(n.onEmptyWishlist())}),d()}if(e&2){let t=l(4);m("theme","dark")("label","Svuota wishlist")("expand","block")("showSpinner",g(1,4,t.showSpinner$)??!1)}}function pn(e,o){if(e&1){let t=I();p(0,"ion-tabs",9,0),O("ionTabsDidChange",function(n){k(t);let u=l(3);return M(u.onTabChange(n))})("keydown",function(n){k(t);let u=l(3);return M(u.changeTabByArrows(n))}),p(2,"ion-tab",10),f(3,"app-wishlist-items",11),v(4,an,3,9,"div",12),C(5,"async"),d(),p(6,"ion-tab",13),v(7,ln,1,3,"app-wishlist-action",14),C(8,"async"),d(),p(9,"ion-tab",15)(10,"app-wishlist-labels",16),O("goToProductList",function(n){k(t);let u=l(3);return M(u.goToProductList(n))}),d()(),p(11,"ion-tab",17)(12,"app-wishlist-labels",16),O("goToProductList",function(n){k(t);let u=l(3);return M(u.goToProductList(n))}),d()(),p(13,"ion-tab-bar",18,1)(15,"div",19)(16,"ion-tab-button",20),z(17,"Lista"),d(),p(18,"ion-tab-button",13),z(19,"Aggiungi sticker"),d(),p(20,"ion-tab-button",15),z(21,"Aggiungi label"),d(),p(22,"ion-tab-button",17),z(23,"Aggiungi nota"),d()(),f(24,"div",21),v(25,cn,2,6,"app-button",22),C(26,"async"),d()()}if(e&2){let t,i=l(),n=l(2);c(3),m("entries",i),c(),P(g(5,8,n.isDesktop$)===!1&&!n.isEmpty(i)?4:-1),c(3),P((t=g(8,10,n.stickers$))?7:-1,t),c(3),m("entries",i)("tab","labels"),c(2),m("entries",i)("tab","notes"),c(13),P(g(26,12,n.isDesktop$)&&!n.isEmpty(i)?25:-1)}}function mn(e,o){if(e&1&&(p(0,"div",8),f(1,"app-icon",26)(2,"ion-text",27),d()),e&2){let t=l(3);c(),m("name",t.ICON_OBJ.wishRemove.name)("size",t.ICON_OBJ.wishRemove.size),c(),m("innerText","La tua wishlist \xE8 vuota")}}function dn(e,o){if(e&1&&v(0,pn,27,14,"ion-tabs",7)(1,mn,3,3,"div",8),e&2){let t=l(2);P(t.isEmpty(o)?1:0)}}function _n(e,o){if(e&1&&(v(0,dn,2,1),C(1,"async")),e&2){let t,i=l();P((t=g(1,1,i.wishlistEntries$))?0:-1,t)}}function un(e,o){e&1&&f(0,"ion-skeleton-text",5),e&2&&m("animated",!0)}var en,nn,on,rn,$r,hn=ot(()=>{D();st();Wt();Ai();at();yi();Ct();lt();oi();We();vt();Ut();ct();Tt();Vt();Pe();si();Rt();li();be();ve();Ee();D();st();en=["tabs"],nn=["tabBar"],on=()=>({"margin-bottom":"0"}),rn=()=>({"margin-bottom":"3rem"});$r=(()=>{var o,t,i,n;let u=class u{constructor(){w(this,o);w(this,t);w(this,i);w(this,n);x(this,o,b(W)),x(this,t,b(it)),x(this,i,b(Pt)),this.isDesktop$=_(this,o).select(K),this.platformIsNative=pt(ft.isNativePlatform()),this.platformIsIOS$=_(this,o).select(wt),this.TABS={PRODUCT_TAB:"products",STICKERS_TAB:"stickers",LABELS_TAB:"labels",NOTES_TAB:"notes"},this.showSpinnerSub=new A(!1),this.showSpinner$=this.showSpinnerSub.asObservable(),this.wishlistLoading$=new A(!0),this.wishlist$=_(this,o).select(ze),this.wishlistCodes$=_(this,o).select(Re),this.wishlistEntries$=new A([]),x(this,n,new Ht),this.stickersSubject=ne
1w A([]),this.stickers$=this.stickersSubject.asObservable(),this.onTabChange=s=>{s.tab==="stickers"&&this.stickersSubject.getValue().length===0&&_(this,t).getStickers().subscribe(a=>{this.stickersSubject.next(a.images)})},this.onEmptyWishlist=()=>{this.showSpinnerSub.next(!0),_(this,o).dispatch(He({callback:()=>{this.showSpinnerSub.next(!1)}}))},this.ICON_OBJ_CART=yt,this.ICON_OBJ=et,this.isEmpty=bt}ngOnInit(){x(this,n,this.wishlist$.subscribe({next:s=>{if(xe(s))this.wishlistLoading$.next(!0),_(this,o).dispatch(je());else{this.wishlistEntries$.next(s?.entries??[]),this.wishlistLoading$.next(!1);let a=s?.entries?.[s.entries.length-1];if(a){let h={ecommerce:{wishlist:{products:[{cleanCode:a.productCode,name:a.productName||a.title,title:a.productName||a.title,mainCategory:{name:a.productMacroCategory??void 0},price:{value:Number.parseFloat(a.productPrice??"0")||0,currencyIso:"EUR",formattedValue:a.productPrice??""},imageUrl:a.productImageUrl}]}}};_(this,i).track("wishlistProducts",h)}}}}))}ngOnDestroy(){this.wishlistLoading$.unsubscribe(),this.stickersSubject.unsubscribe(),this.showSpinnerSub.unsubscribe(),_(this,n).unsubscribe()}changeTabByArrows(s){if(s.key==="ArrowRight"||s.key==="ArrowLeft"){let a=Object.values(this.TABS),h=this.tabs.getSelected(),y=a.indexOf(h||""),E;s.key==="ArrowRight"?E=(y+1)%a.length:E=(y-1+a.length)%a.length;let B=a[E];this.tabs.select(B),this.onTabChange({tab:B}),this.tabsElement.nativeElement.querySelectorAll("ion-tab-button").forEach(nt=>{nt.getAttribute("tab")===B?(nt.setAttribute("tabindex","0"),nt.focus()):nt.setAttribute("tabindex","-1")})}}goToProductList(s){s&&this.tabs.select(this.TABS.PRODUCT_TAB)}};o=new WeakMap,t=new WeakMap,i=new WeakMap,n=new WeakMap,u.\u0275fac=function(a){return new(a||u)},u.\u0275cmp=N({type:u,selectors:[["app-wishlist"]],viewQuery:function(a,h){if(a&1&&(At(en,5),At(nn,5,qt)),a&2){let y;Bt(y=$t())&&(h.tabs=y.first),Bt(y=$t())&&(h.tabsElement=y.first)}},decls:9,vars:14,consts:[["tabs",""],["tabBar",""],[3,"returnUrl","title","subtitle"],[3,"fullscreen"],["appPlatformClass","",1,"tab-content-wrapper"],[3,"animated"],[1,"wishlist-mobile-text"],["ngSkipHydration",""],[1,"no-wishlist","flex"],["ngSkipHydration","",3,"ionTabsDidChange","keydown"],["tab","products"],[1,"wishlist","flex",3,"entries"],[1,"delete-wishlist-button-container",3,"ngStyle"],["tab","stickers"],[3,"entries","tab","stickers"],["tab","labels"],[3,"goToProductList","entries","tab"],["tab","notes"],["slot","top","appPlatformClass",""],[1,"flex"],["tab","products","tabindex","0"],[1,"bar"],[1,"empty-wishlist",3,"theme","label","expand","showSpinner"],[3,"click","theme","label","expand","showSpinner"],[3,"goToProductList","entries","tab","stickers"],[1,"empty-wishlist",3,"click","theme","label","expand","showSpinner"],["aria-hidden","true",1,"empty-wishlist-icon",3,"name","size"],[1,"empty-wishlist-text",3,"innerText"]],template:function(a,h){a&1&&(f(0,"app-my-account-header",2),p(1,"ion-content",3),v(2,sn,3,0,"div"),C(3,"async"),C(4,"async"),p(5,"div",4),v(6,_n,2,3),C(7,"async"),Kt(8,un,1,1,"ion-skeleton-text",5),d()()),a&2&&(m("returnUrl","/my-account")("title","Lista dei desideri")("subtitle","I prodotti che hai salvato, perch\xE9 non vuoi perderli mai pi\xF9"),c(),dt(h.platformIsNative()?"padding-bottom":""),m("fullscreen",!0),c(),P(g(3,8,h.wishlistLoading$)===!1&&g(4,10,h.isDesktop$)===!1?2:-1),c(4),P(g(7,12,h.wishlistLoading$)===!1?6:8))},dependencies:[ee,te,ut,Xe,L,ni,j,xt,ri,ai,se,ue,de,_e,me,ht,pe,R],styles:[".wishlist[_ngcontent-%COMP%]{flex-flow:column nowrap;gap:3rem;padding-top:3rem;overflow:auto;padding-bottom:2rem;height:100%}ion-content[_ngcontent-%COMP%]{--padding-start: 1.25rem;--padding-end: 1.25rem}ion-content.padding-bottom[_ngcontent-%COMP%]{--padding-bottom: 7rem}.wishlist-mobile-text[_ngcontent-%COMP%]{font-size:.875rem;color:var(--greys_medium_60)}app-wishlist-action[_ngcontent-%COMP%], app-wishlist-labels[_ngcontent-%COMP%]{display:flex;flex-flow:column;gap:3rem;padding:1.5rem 0 10rem;overflow:auto}.empty-wishlist[_ngcontent-%COMP%]{min-width:10rem}.no-wishlist[_ngcontent-%COMP%]{gap:1rem;padding:2rem;font-size:1.5rem}ion-tab-bar[_ngcontent-%COMP%]{scrollbar-width:none}ion-skeleton-text[_ngcontent-%COMP%]{width:100%;height:4rem}"],changeDetection:0});let e=u;return e})()});hn();export{$r as WishlistPage};

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.