import{d as Z,e as l,f as L,y as R,C as Y,j as w,V as ma,t as J,h as S,g as t,M as rt,ao as lo,i as y,O as Pt,ag as Lt,G as $e,H as At,x as g,c as i,o as Re,X as ae,ap as nt,z as va,a5 as ga,F as K,B as be,D as It,n as Et,l as B,_ as U,E as wt,an as Zt,k as F,aC as ba,P as st,am as ha,Y as co,R as io,S as uo,aa as St,a8 as tt,J as ya,bt as fa,aH as ka,u as Pa,T as Jt,w as De,b as ht,p as yt,bu as Sa,$ as eo,L as La,I as ot,U as ce,Z as Aa,q as ft,aJ as Ia,ad as Ea,ae as wa,r as xe,b1 as Oa,aW as Ta,b2 as to,a2 as Ca,av as Na,W as za,N as Da,s as oo,aK as ao,a as xa,m as $a}from"./entry.12df67aa.js";import{a as Ra,_ as Ba,u as Ua}from"./useUtilsBreadcrumbs.93cc04f6.js";import{_ as Ma}from"./PmdCommonsWishlistIcon.074f3554.js";import{_ as Va}from"./PmdCommonsSvgText.310b47e5.js";import{u as po}from"./useUtilsToaster.f86abe96.js";import{_ as qa}from"./PmdCommonsAlmaBadge.00348382.js";import{_ as Ga}from"./PmdCommonsStickyBlock.98d9bb5c.js";import{L as Ya}from"./LazyHydrationWrapper.5697b0b9.js";import{u as ro}from"./usePmdProductServices.d7e19ae2.js";import{u as Ha}from"./usePmdReservationServices.6043842b.js";import{L as at}from"./loyaltyType.enum.aa372a8c.js";import{P as ge,a as M,b as X,S as kt}from"./sizeAvailabilities.enum.c2af9ea1.js";import Wa from"./PmdCommonsModal.3894811f.js";import{P as Fa}from"./PmdProductAddedLayer.23ae0e14.js";import{S as no}from"./PmdCommonsPrice.8eca6115.js";const Xa={class:"pmd-productSlideBanner_title"},ja=Z({__name:"PmdProductSlideBanner",props:{buttonLabel:{},title:{default:void 0},buttonPath:{default:void 0}},emits:["clicked"],setup(n,{emit:u}){const _=()=>{u("clicked")};return(b,O)=>{const h=ma;return l(),L("div",{class:"pmd-productSlideBanner",onClickCapture:_},[R("h1",Xa,Y(b.title),1),w(h,{"button-text":b.buttonLabel,path:b.buttonPath,class:"pmd-productSlideBanner_button"},null,8,["button-text","path"])],32)}}});const Qa=J(ja,[["__scopeId","data-v-6529f514"]]),Ka={key:0,class:"pmd-productSlide"},Za=Z({__name:"PmdProductSlide",props:{media:{},sourceSets:{default:void 0},productAltAttribute:{default:void 0},type:{default:void 0},lazy:{type:Boolean,default:!0}},emits:["clicked"],setup(n,{emit:u}){const _=n,b=h=>{let c;switch(h.type){case"image":c=Pt;break;case"banner":c=Qa;break;default:c=Pt;break}return c},O=()=>{u("clicked",_.media)};return(h,c)=>h.media?(l(),L("div",Ka,[(l(),S(lo(b(h.media)),{"data-image-url":h.media.url,url:h.media.url,alt:h.productAltAttribute,"source-sets":h.sourceSets,lazy:h.lazy,preset:t(rt).PRODUCT,class:"pmd-productSlide_media",onClick:O},null,8,["data-image-url","url","alt","source-sets","lazy","preset"]))])):y("",!0)}});const _o=J(Za,[["__scopeId","data-v-15f368b0"]]),Ja=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),er=["onClick"],tr={class:"pmd-lightbox_label"},or={key:1,class:"pmd-lightbox_background"},ar={class:"pmd-lightbox_container"},rr={class:"pmd-lightbox_list"},nr={class:"pmd-lightbox_nav"},sr={class:"pmd-lightbox_label"},lr=["onClick"],cr=Z({__name:"PmdProductLightBox",props:{medias:{},productAltAttribute:{},selectedMediaIndex:{}},emits:["close"],setup(n,{emit:u}){const _=n;Lt(d=>({"6feb38ad":t(Ue),"6feb38ac":t(ct),"2917b4dc":t(f),f678556c:t(Be),f6785cee:t(lt)}));const{isScreenSizeDesktop:b,screenWidth:O,screenHeight:h}=$e(At()),c=g(null),A=g(0),f=g(1),T=g(),V=g(),m=g(),C=g(),v=g(!1),I=g(!1),q=g(!1),z=g(0),D=g(!1),re=g(!1),ue=g(!1),he=g(!1);A.value=_.selectedMediaIndex,c.value=_.medias[_.selectedMediaIndex],document.getElementsByTagName("html")[0].classList.add("pmd_noscroll");const lt=i(()=>T.value+"px"),Be=i(()=>V.value+"px"),de=i(()=>h.value*2/3),ct=i(()=>de.value+"px"),Ue=i(()=>"0px"),it=i(()=>A.value>0?A.value-1:_.medias.length-1),ut=i(()=>A.value<_.medias.length-1?A.value+1:0),ye=d=>{d.deltaY>0?f.value>1.1?f.value-=.1:H():f.value<3&&(f.value+=.1)},fe=d=>{b.value&&d.clientX!==0?(T.value=d.clientX-m.value+de.value,f.value===1?V.value=0:V.value=d.clientY-C.value,v.value=!0):!b.value&&d.touches[0].clientX!==0&&(q.value?ne(d):(T.value=d.touches[0].clientX-m.value,f.value===1?V.value=0:V.value=d.touches[0].clientY-C.value,v.value=!0))},ne=d=>{const N=Math.abs(d.touches[0].clientX-d.touches[1].clientX)+Math.abs(d.touches[0].clientY-d.touches[1].clientY);z.value>N?f.value>1.05?f.value-=.05:H():f.value<5&&(f.value+=.05),z.value=N},Me=d=>{!b.value&&I.value&&d.touches.length==2&&(q.value=!0),I.value=!0,b.value?(m.value?m.value=d.clientX-m.value+de.value:m.value=d.clientX,C.value?C.value=d.clientY-C.value:C.value=d.clientY):(m.value?m.value=d.touches[0].clientX-m.value:m.value=d.touches[0].clientX,C.value?C.value=d.touches[0].clientY-C.value:C.value=d.touches[0].clientY)},ke=d=>{d.touches.length==2&&(q.value=!0)},Pe=()=>{f.value+=.05,q.value=!1},Se=()=>{if(q.value=!1,I.value=!1,f.value===1){const d=b.value&&T.value!=0?T.value+de.value/2-O.value/2:T.value;d<-50?(D.value=!0,setTimeout(()=>{re.value=!0,D.value=!1,P(),setTimeout(()=>{re.value=!1},200)},200)):d>50?(ue.value=!0,setTimeout(()=>{he.value=!0,ue.value=!1,Ve(),setTimeout(()=>{he.value=!1},200)},200)):H()}else m.value=T.value,C.value=V.value},j=()=>{document.getElementsByTagName("html")[0].classList.remove("pmd_noscroll"),H(),I.value=!1,u("close")},Ve=()=>{ee(),A.value=it.value,c.value=_.medias[A.value],H()},P=()=>{ee(),A.value=ut.value,c.value=_.medias[A.value],H()},qe=()=>{document.querySelectorAll(".pmd-lightbox_product")[A.value-1].scrollIntoView({behavior:"smooth",block:"nearest"})},se=()=>{document.querySelectorAll(".pmd-lightbox_product")[A.value+1].scrollIntoView({behavior:"smooth",block:"nearest"})},ee=()=>{const{eventClick:d}=Et();d({click_id:"85",event:"click_action",click_name:"product page",click_chapter1:"slide cross sell"})},H=()=>{v.value=!1,T.value=void 0,V.value=void 0,m.value=void 0,C.value=void 0,f.value=1,z.value=0},Le=d=>{d.forEach(N=>{if(N.isIntersecting){ee();const x=Number(N.target.getAttribute("data-media-index"));A.value=x,c.value=_.medias[x]}})};return Re(()=>{var d;if(!b.value){let N;N=new IntersectionObserver(Le,{root:null,threshold:.5});const x=document.querySelectorAll(".pmd-lightbox_product");x.forEach(W=>N==null?void 0:N.observe(W)),(d=x[A.value])==null||d.scrollIntoView({block:"nearest"})}}),(d,N)=>{var Ae,Ie;const x=It,W=Pt;return t(b)?(l(),L("div",{key:0,class:"pmd-lightbox_background",onClick:nt(j,["self"])},[w(x,{class:"pmd-lightbox_previous",name:"commons/pmd-arrow",onClick:Ve}),w(W,{class:ae(["pmd-lightbox_focus",[{"pmd-lightbox_focus--dragged":t(v)},{"pmd-lightbox_transition--nextOut":t(D)},{"pmd-lightbox_transition--nextIn":t(re)},{"pmd-lightbox_transition--previousOut":t(ue)},{"pmd-lightbox_transition--previousIn":t(he)}]]),url:(Ae=t(c))==null?void 0:Ae.url,draggable:!1,preset:t(rt).PRODUCT,"source-sets":{},onWheel:ye,onMousedown:Me,onMouseup:Se,onMousemove:N[0]||(N[0]=Q=>t(I)&&fe(Q))},null,8,["class","url","preset"]),w(x,{class:"pmd-lightbox_close",name:"commons/pmd-cross",onClick:j}),w(x,{class:"pmd-lightbox_next",name:"commons/pmd-arrow",onClick:P}),R("div",tr,Y(d.productAltAttribute),1)],8,er)):(l(),L("div",or,[va(R("div",ar,[R("div",rr,[(l(!0),L(K,null,be(d.medias,(Q,Ee)=>(l(),S(W,{class:"pmd-lightbox_product",key:Ee,"data-media-index":Ee,url:Q.url,preset:t(rt).PRODUCT,"source-sets":{},onTouchstart:ke,onTouchmove:N[1]||(N[1]=we=>t(q)&&Pe()),onWheel:ye},null,8,["data-media-index","url","preset"]))),128))]),R("span",nr,Y(t(A)+1+" / "+d.medias.length),1),t(A)>0?(l(),S(x,{key:0,class:"pmd-lightbox_previous",name:"commons/pmd-arrow",onClick:qe})):y("",!0),R("span",sr,Y(d.productAltAttribute),1),w(x,{class:"pmd-lightbox_close",name:"commons/pmd-cross",onClick:j}),t(A)<d.medias.length-1?(l(),S(x,{key:1,class:"pmd-lightbox_next",name:"commons/pmd-arrow",onClick:se})):y("",!0)],512),[[ga,t(f)===1]]),t(f)!==1?(l(),L("div",{key:0,class:"pmd-lightbox_background",onClick:nt(j,["self"])},[w(W,{class:ae(["pmd-lightbox_focus pmd-lightbox_focus--mobile pmd-lightbox_focus--wheeled",{"pmd-lightbox_focus--dragged":t(v)}]),url:(Ie=t(c))==null?void 0:Ie.url,draggable:!1,preset:t(rt).PRODUCT,"source-sets":{},onTouchstart:Me,onTouchend:Se,onTouchmove:N[2]||(N[2]=Q=>t(I)&&fe(Q)),onWheel:ye},null,8,["class","url","preset"]),w(x,{class:"pmd-lightbox_close",name:"commons/pmd-cross",onClick:j})],8,lr)):y("",!0)]))}}});const ir=J(cr,[["__scopeId","data-v-3bd78858"]]),ur=B(()=>U(()=>Promise.resolve().then(()=>Ja),void 0,import.meta.url).then(n=>n.default||n)),dr={key:0,class:"pmd-slider"},pr={key:1,class:"pmd-slider_container"},_r={class:"pmd-slider_list"},mr={key:2,class:"pmd-slider_bullets"},vr=Z({__name:"PmdProductSlider",props:{medias:{},caption:{default:void 0},sliderSourceSets:{},desktopSourceSets:{},desktopSpecificSourceSets:{},productAltAttribute:{default:void 0},productId:{}},setup(n){const u=n,{isScreenSizeDesktop:_}=$e(At()),b=g(0),O=g(!1);g(!1);const h=m=>m.url.slice(m.url.length-3)==="jpg"?"image":"",c=m=>u.medias.length%1===0&&m===u.medias.length-1?[{width:1269}]:u.sliderSourceSets,A=()=>{const{eventClick:m}=Et();m({click_id:"86",event:"click_action",click_name:"product page",click_chapter1:"zoom"})},f=m=>{A(),b.value=m,O.value=!0},T=()=>{O.value=!1},V=m=>{m.forEach(C=>{if(C.isIntersecting){const v=Number(C.target.getAttribute("data-media-index"));b.value=v}})};return Re(()=>{if(!_.value){let m;m=new IntersectionObserver(V,{root:null,threshold:.5}),document.querySelectorAll(".pmd-slider_product").forEach(v=>m==null?void 0:m.observe(v))}}),(m,C)=>{const v=ur,I=_o,q=ir;return m.medias?(l(),L("div",dr,[t(_)?(l(!0),L(K,{key:0},be(m.medias,(z,D)=>(l(),S(v,{key:D,media:z,"data-media-index":D,"source-sets":c(D),"product-alt-attribute":m.productAltAttribute,type:h(z),lazy:D>3,onClicked:re=>h(z)==="image"&&f(D)},null,8,["media","data-media-index","source-sets","product-alt-attribute","type","lazy","onClicked"]))),128)):(l(),L("div",pr,[R("div",_r,[(l(!0),L(K,null,be(m.medias,(z,D)=>(l(),S(I,{class:"pmd-slider_product",key:D,media:z,"data-media-index":D,"source-sets":m.sliderSourceSets,"product-alt-attribute":m.productAltAttribute,lazy:D>0,onClicked:re=>f(D)},null,8,["media","data-media-index","source-sets","product-alt-attribute","lazy","onClicked"]))),128))])])),m.medias.length>1?(l(),L("div",mr,[(l(!0),L(K,null,be(m.medias,(z,D)=>(l(),L("span",{key:D,class:ae(["pmd-slider_bulletPoint",{"pmd-slider_bulletPoint--current":D===t(b)}])},null,2))),128))])):y("",!0),t(O)?(l(),S(q,{key:3,medias:m.medias,"product-alt-attribute":m.productAltAttribute,"selected-media-index":t(b),onClose:T},null,8,["medias","product-alt-attribute","selected-media-index"])):y("",!0)])):y("",!0)}}});const gr=J(vr,[["__scopeId","data-v-908c91f3"]]),br={class:"pmd-webShare"},hr={class:"pmd-webShare_layerContent"},yr={class:"pmd-webShare_email"},fr={class:"pmd-webShare_copyLink"},kr=Z({__name:"PmdProductWebShare",props:{title:{default:""}},setup(n){const u=n,{t:_}=wt(),b=g(null),O=g(""),h=i(()=>!!(navigator!=null&&navigator.share));Re(()=>{O.value=window.location.href});const c=()=>{navigator.share({title:u.title,url:O.value}).then(()=>{}).catch(()=>{})},A=async()=>{var f;try{const{successToaster:T}=po();await navigator.clipboard.writeText(window.location.href),T(_("product.productPage.copiedLink").toString())}catch{}(f=b.value)==null||f.closeLayer()};return(f,T)=>{const V=It,m=Va,C=st;return l(),L("div",br,[t(h)?(l(),S(V,{key:0,name:"commons/pmd-share",title:f.$t("product.productPage.shareProduct"),class:"pmd-svg pmd-webShare_button",role:"button",onClick:T[0]||(T[0]=v=>c()),onKeypress:T[1]||(T[1]=Zt(v=>c(),["enter"]))},null,8,["title"])):(l(),S(ba,{key:1,ref_key:"webShareSelector",ref:b,"sliding-layer-id":"webShareLayer","sliding-layer-title":f.$t("product.productPage.share"),"display-arrow-icon":!1,class:"pmd-webShare_layer"},{title:F(()=>[w(V,{name:"commons/pmd-share",title:f.$t("product.productPage.shareProduct"),class:"pmd-svg pmd-webShare_button"},null,8,["title"])]),content:F(()=>[R("div",hr,[w(C,{path:`mailto:?subject=${f.title}&body=${t(O)}`,title:f.$t("product.productPage.email"),class:"pmd-link--noUnderline pmd-webShare_button",role:"button"},{default:F(()=>[w(m,{"svg-path":"commons/pmd-message","svg-title":f.$t("product.productPage.email")},{content:F(()=>[R("span",yr,Y(f.$t("product.productPage.email")),1)]),_:1},8,["svg-title"])]),_:1},8,["path","title"]),R("button",{type:"button",class:"pmd-button--noAppearance pmd-webShare_button",onClick:T[2]||(T[2]=nt(v=>A(),["prevent"])),onKeypress:T[3]||(T[3]=Zt(nt(v=>A(),["prevent"]),["enter"]))},[w(m,{"svg-path":"commons/pmd-link","svg-title":f.$t("product.productPage.copyLink")},{content:F(()=>[R("span",fr,Y(f.$t("product.productPage.copyLink")),1)]),_:1},8,["svg-title"])],32)])]),_:1},8,["sliding-layer-title"]))])}}});const Pr=J(kr,[["__scopeId","data-v-7befff8e"]]),Sr=["aria-label"],Lr={class:"pmd-ratings_stars"},Ar={key:0,class:"pmd-ratings_label"},Ir=Z({__name:"PmdProductRatings",props:{totalRatings:{},average:{},showAdviceNumber:{type:Boolean,default:!0},withAnimation:{type:Boolean,default:!1}},setup(n){const u=n;Lt(c=>({"42eb114a":t(O)}));const _=g(!1),b=g(!1),O=i(()=>`${h.value/5*100}%`),h=i(()=>Math.round(u.average*100)/100);return Re(()=>{b.value=!0,u.withAnimation&&setTimeout(()=>{_.value=!0},500)}),(c,A)=>{const f=It;return t(b)?(l(),L("div",{key:0,class:ae(["pmd-ratings",[{"pmd-ratings--animate":c.withAnimation&&t(_)},{"pmd-ratings--fix":!c.withAnimation}]]),role:"img","aria-label":c.$t("product.productPage.ratings.ariaLabel",t(h))},[R("div",Lr,[(l(),L(K,null,be(5,T=>w(f,{key:T,class:"pmd-ratings_star",name:"commons/pmd-star-full"})),64))]),c.showAdviceNumber?(l(),L("span",Ar,Y(c.$t("product.productPage.ratings.total",c.totalRatings)),1)):y("",!0)],10,Sr)):y("",!0)}}});const Er=J(Ir,[["__scopeId","data-v-b05ca24a"]]),wr=Z({__name:"PmdProductColorThumbnail",props:{colorRgb:{default:void 0},colorPicturePath:{default:void 0},productUrl:{},colorTitle:{default:void 0},isCurrentColor:{type:Boolean,default:!1},isUnavailableColor:{type:Boolean,default:!1}},setup(n){const u=n;Lt(c=>({"33d53f3b":t(b),"3381c543":t(O)}));const _=i(()=>u.isCurrentColor||u.isUnavailableColor?"span":st),b=i(()=>u.colorPicturePath?`url("${u.colorPicturePath}?width=48&height=62&crop=24:31,smart&quality=80")`:void 0),O=i(()=>u.colorRgb?`rgb(${u.colorRgb})`:void 0),h=i(()=>{if(_.value===st)return{path:u.productUrl,title:u.colorTitle||"",ariaLabel:u.colorTitle||""}});return(c,A)=>(l(),S(lo(t(_)),ha(t(h),{title:c.colorTitle,class:[{"pmd-colorThumbnail--selected":c.isCurrentColor},"pmd-colorThumbnail"]}),null,16,["title","class"]))}});const Or=J(wr,[["__scopeId","data-v-64dbd9c6"]]);var ie=(n=>(n.AVAILABLE="AVAILABLE",n.UNAVAILABLE="UNAVAILABLE",n.DISCONTINUED="DISCONTINUED",n.SOON_AVAILABLE="SOON_AVAILABLE",n.UNKNOWN="UNKNOWN",n))(ie||{});const Tr={key:0,class:"pmd-colorsList"},Cr={class:"pmd-colorsList_colorName"},Nr={key:0,class:"pmd-colorsList_colorName--unavailable"},zr={class:"pmd-colorsList_container"},Dr=Z({__name:"PmdProductColorsList",props:{product:{}},setup(n){const u=n,{t:_}=wt(),b=g(null),O=i(()=>u.product.color),h=i(()=>{var v;return(v=u.product.marketing)==null?void 0:v.name}),c=i(()=>{var v,I;return b.value?b.value.marketing.color===null?_("product.productPage.color.notDisclosed"):b.value.marketing.color:(I=(v=u.product)==null?void 0:v.color)==null?void 0:I.name}),A=i(()=>{var I,q;let v="";if(((I=b.value)==null?void 0:I.availability)!==ie.AVAILABLE)switch((q=b.value)==null?void 0:q.availability){case ie.UNAVAILABLE:v=_("product.productPage.color.temporarilyUnavailable");break;case ie.DISCONTINUED:v=_("product.productPage.color.definitelyUnavailable");break;case ie.SOON_AVAILABLE:v=_("product.productPage.color.soonAvailable");break;case ie.UNKNOWN:v=_("product.productPage.color.nonExistent");break}return v}),f=v=>{const I=io().public;return v.picture&&v.picture.path!==null?`${I.assetBaseUrl}${v.picture.path}`:void 0},T=v=>{var I;return uo(h.value||"",((I=v.marketing)==null?void 0:I.color)||"",v.productId)},V=v=>v.productId===u.product.productId,m=v=>v.availability!==ie.AVAILABLE,C=v=>{v.productId!==u.product.productId&&(b.value=v)};return(v,I)=>{const q=Or;return t(O)?(l(),L("div",Tr,[R("span",Cr,[co(Y(t(c)||v.$t("product.productPage.color.notDisclosed"))+" ",1),t(A)?(l(),L("span",Nr,Y(t(A)),1)):y("",!0)]),R("div",zr,[(l(!0),L(K,null,be(v.product.relatedColors,z=>(l(),S(q,{key:z.productId,"is-current-color":V(z),"is-unavailable-color":m(z),"color-rgb":z.marketing.rgb||void 0,"color-title":z.marketing.color,"product-url":T(z),"color-picture-path":f(z),onMouseenter:D=>C(z),onMouseleave:I[0]||(I[0]=D=>b.value=null)},null,8,["is-current-color","is-unavailable-color","color-rgb","color-title","product-url","color-picture-path","onMouseenter"]))),128))])])):y("",!0)}}});const xr=J(Dr,[["__scopeId","data-v-026d72f5"]]),so=()=>({getReviews:async(u,_)=>{const b=`/reviews/products?product-id=${u}&page=${_.page}`;return St(encodeURI(b),{method:"GET"}).then(O=>O).catch(O=>{})}}),$r=()=>({getAssociatedProducts:async(_,b)=>{const O=`/ecommerce/v1/look/?productId=${_}&storeId=${b}`;return St(encodeURI(O),{method:"GET"}).then(h=>h||[]).catch(h=>[])},getLooks:async _=>{const b=`/ecommerce/v1/looks/?storeId=${_}`;return St(encodeURI(b),{method:"GET"}).then(O=>O||[]).catch(O=>[])}}),Rr=B(()=>U(()=>import("./PmdBannerRecommendations.4b098d37.js").then(n=>n.P),["./PmdBannerRecommendations.4b098d37.js","./entry.12df67aa.js","./entry.6d829134.css","./usePmdProductServices.d7e19ae2.js","./PmdBannerRecommendations.4eaaf44c.css"],import.meta.url).then(n=>n.default||n)),Br=B(()=>U(()=>import("./PmdProductTags.05d2db1f.js"),["./PmdProductTags.05d2db1f.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductTags.05648dfb.css"],import.meta.url).then(n=>n.default||n)),Ur=B(()=>U(()=>import("./PmdCommonsPrice.8eca6115.js").then(n=>n.P),["./PmdCommonsPrice.8eca6115.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdCommonsPrice.7d3b0c6c.css"],import.meta.url).then(n=>n.default||n)),Mr=B(()=>U(()=>import("./PmdCommonsPriceDrop.03a1b3f5.js"),["./PmdCommonsPriceDrop.03a1b3f5.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdCommonsPriceDrop.40239ae8.css"],import.meta.url).then(n=>n.default||n)),Vr=B(()=>U(()=>import("./entry.12df67aa.js").then(n=>n.bO),["./entry.12df67aa.js","./entry.6d829134.css"],import.meta.url).then(n=>n.default||n)),qr=B(()=>U(()=>import("./PmdProductSizeSelector.075f6480.js"),["./PmdProductSizeSelector.075f6480.js","./entry.12df67aa.js","./entry.6d829134.css","./sizeAvailabilities.enum.c2af9ea1.js","./PmdCommonsSvgText.310b47e5.js","./PmdCommonsSvgText.c818ced6.css","./PmdCommonsPersonnalDataLink.vue.7e8feb63.js","./PmdFormCheckbox.7da85473.js","./PmdFormCheckbox.3bf95538.css","./useUtilsToaster.f86abe96.js","./useUtilsToaster.47416bae.css","./PmdProductSizeSelector.bb4fa5ff.css"],import.meta.url).then(n=>n.default||n)),Gr=B(()=>U(()=>import("./PmdProductUnavailableBanner.89492938.js"),["./PmdProductUnavailableBanner.89492938.js","./entry.12df67aa.js","./entry.6d829134.css","./contentStack.525ee126.js","./PmdProductUnavailableBanner.c865e029.css"],import.meta.url).then(n=>n.default||n)),Yr=B(()=>U(()=>import("./entry.12df67aa.js").then(n=>n.bN),["./entry.12df67aa.js","./entry.6d829134.css"],import.meta.url).then(n=>n.default||n)),Hr=B(()=>U(()=>import("./PmdBannerCommercial.9e3e91cb.js"),["./PmdBannerCommercial.9e3e91cb.js","./PmdCardBannerContent.864d2e1b.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdCardBannerContent.4c3986d6.css","./PmdBannerCommercial.6862897d.css"],import.meta.url).then(n=>n.default||n)),Wr=B(()=>U(()=>import("./PmdProductMarketingInformations.471da6a8.js"),["./PmdProductMarketingInformations.471da6a8.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductMarketingInformations.8ecfa461.css"],import.meta.url).then(n=>n.default||n)),Fr=B(()=>U(()=>import("./PmdProductEcoDesign.36aeba22.js"),["./PmdProductEcoDesign.36aeba22.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductEcoDesign.54a53a24.css"],import.meta.url).then(n=>n.default||n)),Xr=B(()=>U(()=>import("./PmdProductMarketingDescription.9d31feea.js"),["./PmdProductMarketingDescription.9d31feea.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdBannerMarketing.vue.9d1857c6.js","./PmdBannerSimpleText.df686990.js","./PmdBannerSimpleText.a7dcaf7a.css","./PmdProductMarketingDescription.75c51fc0.css"],import.meta.url).then(n=>n.default||n)),jr=B(()=>U(()=>import("./PmdProductComponents.345622dc.js"),["./PmdProductComponents.345622dc.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductComponents.4626a154.css"],import.meta.url).then(n=>n.default||n)),Qr=B(()=>U(()=>import("./PmdProductReviewsLayer.95728a8f.js"),["./PmdProductReviewsLayer.95728a8f.js","./PmdProductReviews.50d13706.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductReviews.3495426f.css","./useUtilsBreadcrumbs.93cc04f6.js","./contentStack.525ee126.js","./useUtilsBreadcrumbs.0e7f9da3.css","./PmdCommonsWishlistIcon.074f3554.js","./useUtilsToaster.f86abe96.js","./useUtilsToaster.47416bae.css","./PmdCommonsWishlistIcon.a31c93b8.css","./PmdCommonsSvgText.310b47e5.js","./PmdCommonsSvgText.c818ced6.css","./PmdCommonsAlmaBadge.00348382.js","./PmdCommonsAlmaBadge.3b3f3c1d.css","./PmdCommonsStickyBlock.98d9bb5c.js","./PmdCommonsStickyBlock.73ba5218.css","./LazyHydrationWrapper.5697b0b9.js","./usePmdProductServices.d7e19ae2.js","./usePmdReservationServices.6043842b.js","./loyaltyType.enum.aa372a8c.js","./sizeAvailabilities.enum.c2af9ea1.js","./PmdCommonsModal.3894811f.js","./PmdCommonsModal.63842ecf.css","./PmdProductAddedLayer.23ae0e14.js","./PmdCartLoyaltyCardProduct.vue.dabf5e54.js","./PmdCommonsPrice.8eca6115.js","./PmdCommonsPrice.7d3b0c6c.css","./PmdCartLoyaltyCardProduct.c21ad440.css","./PmdBannerRecommendations.4b098d37.js","./PmdBannerRecommendations.4eaaf44c.css","./PmdProductAddedLayer.872a125f.css","./PmdProductReviewsLayer.923b1fef.css"],import.meta.url).then(n=>n.default||n)),Kr=B(()=>U(()=>import("./PmdProductRatingsSlidingLayer.c74c5777.js"),["./PmdProductRatingsSlidingLayer.c74c5777.js","./PmdProductReviews.50d13706.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdProductReviews.3495426f.css","./useUtilsBreadcrumbs.93cc04f6.js","./contentStack.525ee126.js","./useUtilsBreadcrumbs.0e7f9da3.css","./PmdCommonsWishlistIcon.074f3554.js","./useUtilsToaster.f86abe96.js","./useUtilsToaster.47416bae.css","./PmdCommonsWishlistIcon.a31c93b8.css","./PmdCommonsSvgText.310b47e5.js","./PmdCommonsSvgText.c818ced6.css","./PmdCommonsAlmaBadge.00348382.js","./PmdCommonsAlmaBadge.3b3f3c1d.css","./PmdCommonsStickyBlock.98d9bb5c.js","./PmdCommonsStickyBlock.73ba5218.css","./LazyHydrationWrapper.5697b0b9.js","./usePmdProductServices.d7e19ae2.js","./usePmdReservationServices.6043842b.js","./loyaltyType.enum.aa372a8c.js","./sizeAvailabilities.enum.c2af9ea1.js","./PmdCommonsModal.3894811f.js","./PmdCommonsModal.63842ecf.css","./PmdProductAddedLayer.23ae0e14.js","./PmdCartLoyaltyCardProduct.vue.dabf5e54.js","./PmdCommonsPrice.8eca6115.js","./PmdCommonsPrice.7d3b0c6c.css","./PmdCartLoyaltyCardProduct.c21ad440.css","./PmdBannerRecommendations.4b098d37.js","./PmdBannerRecommendations.4eaaf44c.css","./PmdProductAddedLayer.872a125f.css","./PmdProductRatingsSlidingLayer.6e0193f4.css"],import.meta.url).then(n=>n.default||n)),Zr=B(()=>U(()=>import("./PmdCatalogProductThumbnailsWrapper.c65fbf73.js"),["./PmdCatalogProductThumbnailsWrapper.c65fbf73.js","./PmdBannerNewsletter.50abae25.js","./PmdFormInputField.5973f647.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdFormInputField.96c5ace4.css","./useUtilsToaster.f86abe96.js","./useUtilsToaster.47416bae.css","./usePmdNewsletterServices.24ccbab8.js","./form.const.debefa96.js","./PmdBannerNewsletter.68ca2562.css","./PmdBannerSimple.e4619b4e.js","./PmdCommonsVideo.a5eb1b8b.js","./PmdCommonsVideo.384978c2.css","./PmdBannerSimple.6cf9455e.css","./PmdBannerSimpleText.df686990.js","./PmdBannerSimpleText.a7dcaf7a.css","./PmdBannerBigAndSmall.99847b5d.js","./PmdBannerBigAndSmall.3097cfc1.css","./PmdBannerFullscreen.44953fc3.js","./PmdCommonsAddDonationButton.vue.4877ed83.js","./PmdGiftCardInput.1099af8f.js","./PmdGiftCardInput.f35a7f74.css","./PmdProductAddedLayer.23ae0e14.js","./PmdCartLoyaltyCardProduct.vue.dabf5e54.js","./PmdCommonsPrice.8eca6115.js","./PmdCommonsPrice.7d3b0c6c.css","./PmdCartLoyaltyCardProduct.c21ad440.css","./PmdBannerRecommendations.4b098d37.js","./usePmdProductServices.d7e19ae2.js","./PmdBannerRecommendations.4eaaf44c.css","./PmdProductAddedLayer.872a125f.css","./PmdCommonsAddDonationButton.48374e2d.css","./banner.enum.82f84d8c.js","./PmdBannerFullscreen.a104dfcd.css","./PmdBannerSlider.a804ea17.js","./PmdBannerSlider.eeaf23fc.css","./PmdCardBanner.7145b796.js","./PmdCardBannerContent.864d2e1b.js","./PmdCardBannerContent.4c3986d6.css","./PmdCardBanner.1bd38360.css","./PmdBannerSilhouette.30d7276c.js","./PmdBannerSilhouette.901c8c68.css","./PmdCatalogMiniProductPage.b81e6ba9.js","./LazyHydrationWrapper.5697b0b9.js","./PmdCommonsWishlistIcon.074f3554.js","./PmdCommonsWishlistIcon.a31c93b8.css","./PmdProductTags.05d2db1f.js","./PmdProductTags.05648dfb.css","./PmdCommonsSvgText.310b47e5.js","./PmdCommonsSvgText.c818ced6.css","./sizeAvailabilities.enum.c2af9ea1.js","./PmdCatalogMiniProductPage.224229b1.css","./PmdCatalogProductThumbnailsWrapper.76baed6f.css"],import.meta.url).then(n=>n.default||n)),Jr=B(()=>U(()=>import("./PmdProductEreservationSummary.4c93c6e9.js"),["./PmdProductEreservationSummary.4c93c6e9.js","./entry.12df67aa.js","./entry.6d829134.css","./PmdStoreSelect.95bbc03e.js","./PmdCommonsCustomSelect.b1329585.js","./PmdCommonsCustomSelect.8b2c4817.css","./PmdFormCheckbox.7da85473.js","./PmdFormCheckbox.3bf95538.css","./PmdFormInputField.5973f647.js","./PmdFormInputField.96c5ace4.css","./PmdCommonsSvgText.310b47e5.js","./PmdCommonsSvgText.c818ced6.css","./usePmdCapphoneServices.3ec5046a.js","./usePmdCapphoneServices.b479afa5.css","./useUtilsToaster.f86abe96.js","./useUtilsToaster.47416bae.css","./PmdStoreSelect.84dc0fd6.css","./usePmdReservationServices.6043842b.js","./loyaltyType.enum.aa372a8c.js","./sizeAvailabilities.enum.c2af9ea1.js","./PmdProductEreservationSummary.3043eddd.css"],import.meta.url).then(n=>n.default||n)),en=B(()=>U(()=>import("./entry.12df67aa.js").then(n=>n.bP),["./entry.12df67aa.js","./entry.6d829134.css"],import.meta.url).then(n=>n.default||n)),tn=n=>(Ea("data-v-8b884180"),n=n(),wa(),n),on={key:1,ref:"productContainer",class:"pmd-productPage"},an={class:"pmd-productPage_infosContainer"},rn={key:1,class:"pmd-productPage_slider"},nn={class:"pmd-productPage_detailsContainer--top"},sn={key:1,class:"pmd-productPage_title"},ln={key:2,class:"pmd-productPage_icons",role:"tablist"},cn=["href"],un={class:"pmd-productPage_priceContainer"},dn=tn(()=>R("div",{id:"fz-container-button",class:"fz-container"},null,-1)),pn={key:0,class:"pmd-productPage_title pmd-productPage_title--centered"},_n={key:1,class:"pmd-product-reviews-layer pmd-hiddenMobileAndTablet"},mn={key:3,class:"pmd-associatedProducts"},vn={class:"pmd-associatedProducts_title"},gn=Z({__name:"[productId]",async setup(n){var Mt,Vt,qt,Gt,Yt,Ht,Wt,Ft;let u,_;const b={page:0,size:5},O={[at.FID]:"MY_CARD",[at.HSP]:"HAPPY_SHOPPING",[at.WEB]:"WEB"},{t:h}=wt(),c=tt(),A=At(),{storeId:f,agec:T,ereservation:V,isActivePrivateSales:m,showEcoDesign:C,showProductAvailabilityAlert:v}=$e(ya());fa();const{eventClick:I,addDatalayerInfos:q}=Et(),{getEnvTemplate:z,productToGtmItem:D}=ft(),{accessTokenPayload:re,isLogged:ue}=$e(ka()),{metaInfoMeta:he,metaLink:lt,metaTitle:Be,metaDescription:de,generateMetaInfo:ct}=Pa(),{errorToaster:Ue}=po(),{productsLine:it,isPreOrderCart:ut}=$e(Jt()),ye=Da(),fe=g(null),ne=g(null),Me=g(null),ke=g(null),Pe=g(null),Se=g(null),j=g(null),Ve=g("Shopper le look"),P=g(null),qe=g(""),se=g(!1),ee=g([]),H=g(!1),Le=g(!1),d=g(!1),N=g(!1),x=g(""),W=g(""),Ae=g(!1),Ie=g(!1),Q=g(null),Ee=g(!1),we=g(!1),{data:mo,pending:vo,status:dt}=([u,_]=De(()=>xe("product_request",()=>{var r;const e={storeId:f.value||"",productId:(r=c.params)==null?void 0:r.productId},{getProduct:o}=ro();return o(e)})),u=await u,_(),u),{data:go,execute:Ot}=([u,_]=De(()=>xe("reviews_request",()=>{const{getReviews:e}=so();return e(c.params.productId,b)},{immediate:!1})),u=await u,_(),u),{data:bo,pending:ho}=([u,_]=De(()=>xe("associated_products_request",()=>{const{getAssociatedProducts:e}=$r();return e(c.params.productId,f.value||"")})),u=await u,_(),u),{data:yo}=([u,_]=De(()=>xe("product_informations_request",()=>{const{getContenttype:e}=oo();return e("products_informations_component")})),u=await u,_(),u),{data:fo}=([u,_]=De(()=>xe("commercial_banner_request",()=>{const{getContenttype:e}=oo();return e("commercial_banner_component")})),u=await u,_(),u),a=i(()=>mo.value||void 0),pe=i(()=>{var e;return((e=go.value)==null?void 0:e.content)||[]}),pt=i(()=>bo.value||[]),Tt=i(()=>yo.value||null),Ge=i(()=>fo.value||null),ko=i(()=>Po.value),Po=i(()=>(x.value==="facebook_ads"||x.value==="facebookinsta")&&W.value==="socialmedia"||(x.value==="criteo"||x.value==="rtbhouse")&&W.value==="retargeting"||x.value==="bing"&&W.value==="cpc"||x.value==="web"&&W.value==="newsletter"||Ie.value||Ae.value),le=i(()=>{var e,o;return!!((o=(e=a.value)==null?void 0:e.locks)!=null&&o.includes("legalBlocking"))}),So=()=>{let e=[];return Dt.value&&(e=[{mediaQueryMax:ot.MOBILE_LARGE,width:375},{mediaQueryMin:ot.MOBILE_LARGE,mediaQueryMax:ot.DESKTOP,width:768},{mediaQueryMin:ot.DESKTOP,width:1216}]),e},Oe=i(()=>{var o,r;const e=[];if((r=(o=a.value)==null?void 0:o.pictures)!=null&&r.length){const s=io().public;a.value.pictures.forEach(p=>e.push({type:p.type,url:s.assetBaseUrl+p.path}))}return e}),_e=i(()=>{var e,o,r,s;return((e=a.value)==null?void 0:e.availabilityType)===ge.IN_STORE_ONLY||Io.value||((o=a.value)==null?void 0:o.availability)===M.UNAVAILABLE||((r=a.value)==null?void 0:r.availability)===M.SOON_AVAILABLE||((s=a.value)==null?void 0:s.availability)===M.DISCONTINUED}),Ye=i(()=>{var e,o,r,s,p;return((e=a.value)==null?void 0:e.availabilityType)===ge.ONLINE_ONLY||Eo.value||((o=a.value)==null?void 0:o.availability)===M.UNAVAILABLE||((r=a.value)==null?void 0:r.availability)===M.SOON_AVAILABLE||((s=a.value)==null?void 0:s.availability)===M.ON_DEMAND||((p=a.value)==null?void 0:p.availability)===M.DISCONTINUED}),Lo=i(()=>_e.value&&Ye.value),Ct=i(()=>{let e="";return Lo.value?e=h("product.productPage.productUnavailable").toString():_e.value&&!Ye.value&&(e=h("product.productPage.productUnavailableOnline").toString()),e}),Ao=i(()=>{var o,r;const e=[];return(r=(o=a.value)==null?void 0:o.sizes)!=null&&r.length&&a.value.sizes.forEach(s=>{s.label&&e.push(s.label.toLowerCase())}),e.join(", ")}),Io=i(()=>{var e,o,r;return((e=P.value)==null?void 0:e.availabilityType)===kt.IN_STORE_ONLY||((o=P.value)==null?void 0:o.availability)===X.UNAVAILABLE||((r=P.value)==null?void 0:r.availability)===X.SOON_AVAILABLE}),Eo=i(()=>{var e,o,r,s;return((e=P.value)==null?void 0:e.availabilityType)===kt.ONLINE_ONLY||((o=P.value)==null?void 0:o.availability)===X.UNAVAILABLE||((r=P.value)==null?void 0:r.availability)===X.SOON_AVAILABLE||((s=P.value)==null?void 0:s.availability)===X.ON_DEMAND}),wo=i(()=>{var e,o;return((e=a.value)==null?void 0:e.availability)===M.UNAVAILABLE||((o=a.value)==null?void 0:o.availability)===M.SOON_AVAILABLE}),Oo=i(()=>{var o,r;let e="";return a.value&&(e=h("product.productPage.metaDescription",{name:(r=(o=a.value)==null?void 0:o.marketing)==null?void 0:r.name,colors:xo.value,sizes:Ao}).toString()),e}),Te=i(()=>{var o,r,s;let e;return(r=(o=a.value)==null?void 0:o.marketing)!=null&&r.name&&(e=a.value.marketing.name,(s=a.value.color)!=null&&s.name&&(e=e+" - "+a.value.color.name)),e}),He=i(()=>{var e;return V.value&&((e=a.value)==null?void 0:e.availabilityType)!==ge.ONLINE_ONLY}),Nt=i(()=>_e.value||Ye.value||!He.value),te=i(()=>{var e,o;return(o=(e=a.value)==null?void 0:e.marketing)==null?void 0:o.name}),To=i(()=>me.value?h("product.productPage.preOrder").toString():h("product.productPage.addToCart").toString()),Co=i(()=>{var e;return!V.value&&((e=a.value)==null?void 0:e.availabilityType)===ge.IN_STORE_ONLY}),No=i(()=>{var e,o;return((e=a.value)==null?void 0:e.availability)===M.SOON_UNAVAILABLE||((o=P.value)==null?void 0:o.availability)===X.SOON_UNAVAILABLE?h("product.productPage.lastPieces").toString():""}),me=i(()=>{var e,o,r,s;return((e=a.value)==null?void 0:e.availability)===M.ON_DEMAND&&((o=a.value)==null?void 0:o.availabilityType)!==ge.IN_STORE_ONLY||((r=P.value)==null?void 0:r.availability)===X.ON_DEMAND&&((s=P.value)==null?void 0:s.availabilityType)!==kt.IN_STORE_ONLY}),zo=i(()=>{var e,o;return!!((o=(e=Ge.value)==null?void 0:e.location)!=null&&o.productpage)}),Do=i(()=>{var e,o;return!!((o=(e=Ge.value)==null?void 0:e.custom)!=null&&o.productpage)}),zt=i(()=>`${h("product.productPage.ratings.title").toString().split(" ").join("-")}`),xo=i(()=>{var o;const e=[];if((o=a.value)!=null&&o.relatedColors&&a.value.relatedColors.length){a.value.relatedColors.forEach(s=>{var p;(p=s.marketing)!=null&&p.color&&e.push(s.marketing.color.toLowerCase())});const r=e.find(s=>{var p,E,k;return s===((k=(E=(p=a.value)==null?void 0:p.color)==null?void 0:E.name)==null?void 0:k.toLowerCase())});r&&(e.splice(e.indexOf(r),1),e.unshift(r))}return e.join(", ")}),_t=i(()=>{var r,s;let e=[];const o=Oa();if(a.value&&((s=(r=a.value.marketing)==null?void 0:r.marketingLabels)!=null&&s.length)&&o.marketingLabels){const p=a.value.marketing.marketingLabels;e=o.marketingLabels.filter(E=>p.includes(E.code))}return e}),Dt=i(()=>{let e;if(_t.value.length){const o=_t.value.filter(r=>{var s;return!!((s=r.marketing_banner)!=null&&s.length)});o!=null&&o.length&&(e=o[0].marketing_banner)}return e}),We=i(()=>{var o;let e=[];if((o=a.value)!=null&&o.segmentationId){const r=Ta(),{completeBreadcrumbs:s}=Ua(),p=r.segmentation(a.value.segmentationId);p&&(p.parent&&e.push({path:p.parent.url,name:p.parent.title,uid:p.parent.uid}),e.push({path:p.url,name:p.title,uid:p.uid}),e.push({path:c.path,name:te.value}),e=s(e,{addAllProductsSegment:!0}))}return e}),mt=i(()=>{let e;if(a.value){const{getHost:o}=ao();e=`https://${o()}${c.path}`}return e}),xt=i(()=>Le.value||wo.value||$t.value),$t=i(()=>{var e,o,r,s;return(((o=(e=a.value)==null?void 0:e.tags)==null?void 0:o.includes(to.ON_DEMAND))||((s=(r=a.value)==null?void 0:r.tags)==null?void 0:s.includes(to.RAL_ANTICIPATION)))&&!!it.value.length||!!ut.value}),$o=i(()=>{var e,o;return((o=(e=a.value)==null?void 0:e.prices)==null?void 0:o.privateSale)&&m.value}),Ro=i(()=>{var e,o;return!!(!le.value&&((o=(e=a.value)==null?void 0:e.reviewGlobal)!=null&&o.totalReviewCount)&&a.value.reviewGlobal.totalReviewCount>0&&a.value.reviewGlobal.averageRating)}),Bo=i(()=>{var e,o,r;if((r=(o=(e=a.value)==null?void 0:e.prices)==null?void 0:o.current)!=null&&r.appliedPrice)return a.value.prices.current.appliedPrice*100});Ra(()=>{var s,p,E,k,$,G,Fe,Xe,Ce,je,Qe,Ke,Ne,Ze,Je;if(!a.value)return null;let e;if(((s=a.value)==null?void 0:s.availabilityType)===ge.IN_STORE_ONLY&&a.value.availability!==M.DISCONTINUED)e="InStoreOnly";else switch((p=a.value)==null?void 0:p.availability){case M.DISCONTINUED:e="Discontinued";break;case M.AVAILABLE:e="InStock";break;case M.UNAVAILABLE:e="SoldOut";break;case M.SOON_UNAVAILABLE:e="InStock";break;case M.SOON_AVAILABLE:e="OutOfStock";break;case M.ON_DEMAND:e="PreOrder";break}let o;if((k=(E=a.value)==null?void 0:E.reviewGlobal)!=null&&k.totalReviewCount){const ve=($=a.value.reviewGlobal.maximumRating)==null?void 0:$.toString(),ze=(G=a.value.reviewGlobal.averageRating)==null?void 0:G.toString();o={"@type":"AggregateRating",bestRating:ve,ratingValue:ze,reviewCount:a.value.reviewGlobal.totalReviewCount.toString()}}const r=[];return Oe.value.forEach(ve=>{r.push(ve.url)}),{"@context":"https://schema.org","@type":"Product",name:te.value||void 0,image:r.length?r:void 0,description:((Xe=(Fe=a.value)==null?void 0:Fe.marketing)==null?void 0:Xe.description)||void 0,sku:(Ce=a.value)==null?void 0:Ce.productId,brand:{"@type":"Brand",name:"Promod"},aggregateRating:o,offers:{"@type":"Offer",url:mt.value,priceCurrency:(Ke=(Qe=(je=a.value)==null?void 0:je.prices)==null?void 0:Qe.current)==null?void 0:Ke.currency,price:(Je=(Ze=(Ne=a.value)==null?void 0:Ne.prices)==null?void 0:Ze.current)==null?void 0:Je.appliedPrice,itemCondition:"NewCondition",availability:e}}});const Uo=()=>{I({click_id:"83",event:"click_action",click_name:"product page",click_chapter1:"display all customer review desktop"})},Mo=e=>{var r;const o={click_id:"51",event:"click_action",click_name:"product page",click_chapter1:"select size",click_chapter2:e.label,click_chapter3:e.availability,click_chapter4:((r=a.value)==null?void 0:r.productId)||""};I(o)},Vo=()=>{var o,r;const e={click_id:"33",event:"share",click_name:"share",click_chapter1:z(tt().name),click_chapter2:((o=a.value)==null?void 0:o.productId)||"",click_chapter3:(r=a.value)==null?void 0:r.availability};I(e)},qo=(e,o,r)=>{if(a.value){const s=me.value?"pre_order":"add_to_cart",p=me.value?"36":"34",E=D(a.value,P.value??void 0),k={click_id:p,event:"add_to_cart",click_name:s,click_chapter1:z(tt().name),click_chapter2:E?[E]:[],click_chapter3:e,click_chapter4:o,click_chapter5:r.toString()};I(k)}},vt=e=>{var o;P.value=e,((o=a.value)==null?void 0:o.sizes.length)===1&&P.value.sizeId==="00"||(history.replaceState({current:`${c.path}?sku=${P.value.sku}`},"",`${c.path}?sku=${P.value.sku}`),Mo(P.value)),Ut()},Go=async()=>{if(a.value){b.page++;const{getReviews:e}=so();await e(a.value.productId,b).then(o=>{o&&pe.value.push(...o==null?void 0:o.content)})}},Yo=async e=>{if(we.value||(we.value=!0,await Ot()),e.preventDefault(),!A.isScreenSizeDesktop)setTimeout(()=>{const o=Pe.value;o==null||o.open()},600);else{const o=document.querySelector(".pmd-product-reviews-layer");if(o){const r=o.getBoundingClientRect().top+window.pageYOffset-56;window.scrollTo({top:r,behavior:"smooth"})}}},Ho=()=>{const e=Pe.value;e==null||e.open(),Uo()},Rt=()=>{const e=Se.value;e==null||e.closeLayer()},Bt=e=>{var o,r,s;(o=ne.value)!=null&&o.hasUniqueSize||(s=(r=ne.value)==null?void 0:r.sizeSelector)==null||s.showLayer(e)},Wo=()=>{var e;(e=ke.value)==null||e.setIsModalVisible(!0),Fo()},Fo=()=>{I({click_id:"65",event:"impression",click_name:"e-resa",click_chapter1:"popin alerte seuil 3 articles"})},gt=async e=>{var p;Le.value=!0,N.value=!1;const o=Jt(),r=!!o.cartId;let s="";(p=P.value)!=null&&p.sku?await o.addProduct({sku:P.value.sku}).then(()=>{var E,k;N.value=!0,(k=(E=fe.value)==null?void 0:E.addedToCartProductLayer)==null||k.toggleLayer()}).catch(E=>{let k;switch(E.status){case ce.BAD_REQUEST:k=h("order.cartPage.error.cartNotDefined");break;case ce.NOT_FOUND:k=h("order.cartPage.error.impossibleToLoadCart");break;case ce.METHOD_NOT_ALLOWED:k=h("order.cartPage.error.maxProduct");break;case ce.PRECONDITION_FAILED:k=h("order.cartPage.error.productOutOfStock");break;case ce.I_AM_A_TEAPOT:k=h("order.cartPage.error.impossibleToAddProductOnDemand");break;case ce.INTERNAL_SERVER_ERROR:k=h("order.cartPage.error.technicalProblem");break;default:k=h("order.cartPage.error.default")}E.statusCode!==409&&Ue(k),r||(s="none")}):(r||(s="none size missing"),Bt("Ajouter au panier")),qo(e||"from product page",s||o.cartId||"",r?0:1),Le.value=!1},Xo=async e=>{var o,r;P.value=((o=a.value)==null?void 0:o.sizes.find(s=>s.sku===e))||null,(r=P.value)!=null&&r.sku&&await gt()},bt=e=>{if(d.value=!0,P.value&&a.value){const o=D(a.value,P.value),r={click_id:"35",event:"add_to_e-resa",click_name:"add_to_e-resa",click_chapter1:z(tt().name),click_chapter2:o?[o]:[],click_chapter3:e??"fiche produit"};if(I(r),ue.value){jo();return}se.value=!0}else Bt("Réserver en magasin");d.value=!1},jo=async()=>{var e;if(ue.value&&((e=re.value)!=null&&e.customerId)){const r=Aa().client;let s="";r!=null&&r.loyaltyType?s=O[r.loyaltyType]:s=at.WEB;const{getCustomerQuotaService:p}=Ha();await p({storeId:parseInt(f.value||"",10),customerType:s}).then(E=>{if(!E.canReserveAgain){Wo();return}se.value=!0}).catch(()=>{Ue(h("product.productPage.fetchReservationQuotasError"))}),d.value=!1}},Qo=()=>{var e;(e=ke.value)==null||e.setIsModalVisible(!1)},Ko=()=>{const{getLocalesForLanguage:e,getDomainForLocaleCode:o}=ao();if(a.value&&a.value.hrefLang){a.value.hrefLang.forEach(p=>{e(p.language).forEach(k=>{if(k&&k.iso&&k.code&&k.online&&k.hrefLang)for(const $ of k.hrefLangIsos){const G=o(k.code);ee.value.push({rel:"alternate",hreflang:$,href:"https://"+G+"/"+k.code+p.href})}})});const{setMetaInfoLinks:r}=xa(),{defaultHrefLang:s}=$a();ee.value.push(s()),r([...ee.value]),lt.value=[...ee.value]}},Zo=()=>{var s,p,E,k;const e=(s=c.query)==null?void 0:s.sku,o=(p=c.query)==null?void 0:p.size,r=X.SOON_AVAILABLE||X.UNAVAILABLE;if(e){const $=(E=a.value)==null?void 0:E.sizes.find(G=>G.sku===e);$&&($==null?void 0:$.availability)!==r&&vt($)}else if(o){const $=(k=a.value)==null?void 0:k.sizes.find(G=>G.label===o);$&&($==null?void 0:$.availability)!==r&&vt($)}},Ut=()=>{var s;const{completeDataLayer:e}=ft();q({env_title:Be.value});const o=a.value?[a.value]:void 0,r=(s=pt.value)!=null&&s.length?1:0;e({eresaCheckAvailability:He.value,webCheckAvailability:!_e.value,products:o,breadcrumbs:We.value,selectedSize:P.value||void 0,productLookeCom:r})},Jo=async()=>{var e,o;if(!Ee.value&&C.value&&((e=a.value)!=null&&e.optionId)){Ee.value=!0;const{getEcoDesignFromOptionId:r}=ro();await r((o=a.value)==null?void 0:o.optionId).then(s=>{s&&(Q.value=s)})}},ea=()=>{we.value||(we.value=!0,Ot())},ta=()=>{var e,o;if(H.value&&a.value&&((e=c.query)!=null&&e.agec)){const r=(o=j.value)==null?void 0:o.productComponents;r==null||r.showLayer()}},oa=()=>{var e,o,r;if(H.value&&a.value&&((e=c.query)!=null&&e.sku)&&c.query.step==="stock-alert"){const s=((o=a.value)==null?void 0:o.sizes.find(p=>p.sku===c.query.sku))||null;v.value&&(s==null?void 0:s.availability)===X.SOON_AVAILABLE&&((r=ne.value)==null||r.openAlert(s))}};Re(async()=>{var E,k,$,G;window&&(setTimeout(()=>{window.scrollTo(0,0)},200),window.addToCart=Xo);const{productToGtmItem:e}=ft(),o=e(a.value);I({click_id:"02",event:"view_item",items:o?[o]:[]}),ho.value||Ut(),H.value=!0;const s=Object.keys(c.query);Ie.value=s.includes("gclid"),Ae.value=s.includes("msclkid"),x.value=(k=(E=c.query)==null?void 0:E.utm_source)==null?void 0:k.toString(),W.value=(G=($=c.query)==null?void 0:$.utm_medium)==null?void 0:G.toString();const p=setInterval(()=>{ne.value&&(oa(),clearInterval(p)),j&&(ta(),clearInterval(p))},50)}),ht(()=>H.value,()=>{var e;H.value&&a.value&&(e=c.query)!=null&&e.sku&&c.query.step==="reserve-final"&&c.query.storeId&&(qe.value=c.query.storeId.toString(),bt())}),ht(()=>c.path,()=>{var o,r,s,p,E;const e=encodeURI(ye(uo(((r=(o=a.value)==null?void 0:o.marketing)==null?void 0:r.name)||"",((p=(s=a.value)==null?void 0:s.color)==null?void 0:p.name)||"",((E=a.value)==null?void 0:E.productId)||"")));if(e!==c.path)return Ca({path:e,query:c.query},{redirectCode:301})},{immediate:!0}),ht(()=>dt.value,()=>{if(dt.value==="success")c&&(Zo(),Ko());else if(dt.value==="error")throw Na({statusCode:ce.NOT_FOUND,message:"produit introuvable"})},{immediate:!0}),Be.value=Te.value;const oe=[];return oe.push({property:"og:type",content:"website"},{property:"og:site_name",content:"Promod"}),Te.value&&oe.push({property:"og:title",content:Te.value}),mt.value&&oe.push({property:"og:url",content:mt.value}),(Vt=(Mt=a.value)==null?void 0:Mt.marketing)!=null&&Vt.description&&oe.push({property:"og:description",content:a.value.marketing.description}),(Yt=(Gt=(qt=a.value)==null?void 0:qt.prices)==null?void 0:Gt.current)!=null&&Yt.appliedPrice&&oe.push({property:"product:price:amount",content:a.value.prices.current.appliedPrice.toString()}),(Ft=(Wt=(Ht=a.value)==null?void 0:Ht.prices)==null?void 0:Wt.current)!=null&&Ft.currency&&oe.push({property:"product:price:currency",content:a.value.prices.current.currency}),Oe.value.forEach(e=>{e.url&&oe.push({property:"og:image",content:e.url})}),de.value=Oo.value,he.value=[{hid:"robots",name:"robots",content:le.value?"noindex, follow":"index, follow"},...oe],ct(),(e,o)=>{var jt,Qt,Kt;const r=za,s=Rr,p=gr,E=Ba,k=Br,$=Ma,G=Pr,Fe=Ia,Xe=Er,Ce=Ur,je=Mr,Qe=qa,Ke=xr,Ne=Vr,Ze=st,Je=qr,ve=Gr,ze=Yr,aa=Ga,ra=Hr,na=Wr,Xt=Ya,sa=Fr,la=Xr,ca=jr,ia=Qr,ua=Kr,da=Zr,pa=Jr,_a=en;return t(vo)?(l(),S(r,{key:0})):t(a)?(l(),L("div",on,[R("div",an,[t(ko)?(l(),S(s,{key:0,product:t(a),context:t(yt).PRODUCT_PAGE,"is-add-product-to-cart-displayed":!1,"slider-mode":!0,class:"pmd-productPage_recommendationsTop"},null,8,["product","context"])):y("",!0),(jt=t(Oe))!=null&&jt.length?(l(),L("div",rn,[w(p,{ref:"productSlider",medias:t(Oe),"slider-source-sets":t(Sa),caption:t(te),"product-alt-attribute":t(te),"product-id":t(a).productId},null,8,["medias","slider-source-sets","caption","product-alt-attribute","product-id"])])):y("",!0),R("div",{class:ae(["pmd-productPage_detailsContainer",{"pmd-productPage_detailsContainer--noimg":t(Oe).length===0}])},[t(We)&&t(We).length?(l(),S(E,{key:0,class:"pmd-productPage_breadcrumb",breadcrumbs:t(We)},null,8,["breadcrumbs"])):y("",!0),R("div",nn,[t(le)?y("",!0):(l(),S(k,{key:0,product:t(a),"selected-size":t(P)},null,8,["product","selected-size"])),t(Te)?(l(),L("h1",sn,Y(t(Te)),1)):y("",!0),t(le)?y("",!0):(l(),L("div",ln,[w(Fe,null,{default:F(()=>[w($,{product:t(a),size:t(P)?t(P).sizeId:void 0,"size-label":t(P)?t(P).label:void 0},null,8,["product","size","size-label"]),t(a).marketing&&t(a).marketing.name?(l(),S(G,{key:0,role:"tab",title:t(a).marketing.name,onClick:o[0]||(o[0]=et=>Vo())},null,8,["title"])):y("",!0)]),_:1})]))]),t(Ro)?(l(),L("a",{key:1,href:`#${t(zt)}`,class:"pmd-productPage_ratingLink",onClick:Yo},[t(a).reviewGlobal?(l(),S(Xe,{key:0,"total-ratings":t(a).reviewGlobal.totalReviewCount,average:t(a).reviewGlobal.averageRating,"with-animation":!0},null,8,["total-ratings","average"])):y("",!0)],8,cn)):y("",!0),R("div",un,[t(a).prices&&t(a).prices.current?(l(),S(Ce,{key:0,"applied-price":t(a).prices.current.appliedPrice,type:t(a).prices.current.type,currency:t(a).prices.current.currency,"strike-through-price":t(a).prices.current.strikeThroughPrice,"commercial-decline-percentage":t(a).prices.current.commercialDeclinePercentage,size:t(no).large,class:"pmd-productPage_price"},null,8,["applied-price","type","currency","strike-through-price","commercial-decline-percentage","size"])):y("",!0),t($o)&&((Qt=t(a).prices)!=null&&Qt.privateSale)?(l(),S(Ce,{key:1,"applied-price":t(a).prices.privateSale.appliedPrice,type:t(a).prices.privateSale.type,currency:t(a).prices.privateSale.currency,"strike-through-price":t(a).prices.privateSale.strikeThroughPrice,"commercial-decline-percentage":t(a).prices.privateSale.commercialDeclinePercentage,"private-sale":!0,size:t(no).large,class:"pmd-productPage_price"},null,8,["applied-price","type","currency","strike-through-price","commercial-decline-percentage","size"])):y("",!0),(Kt=t(a).prices)!=null&&Kt.priceDrop?(l(),S(je,{key:2,class:"pmd-productPage_priceDrop"})):y("",!0)]),w(Qe,{"purchase-cent-amount":t(Bo),vmid:"alma-product"},null,8,["purchase-cent-amount"]),w(Ke,{product:t(a)},null,8,["product"]),t(le)?(l(),S(Ne,{key:2,type:t(eo).info,class:"pmd-productPage_legalBlocking-banner",message:e.$t("product.productPage.legalBlocking.title"),"message-secondary":e.$t("product.productPage.legalBlocking.message"),"bigger-message":!0,"is-toggled":!0,"is-banner-closable":!1,"is-icon-visible":!1},null,8,["type","message","message-secondary"])):(l(),L(K,{key:3},[w(Ze,{path:t(c).path,"aria-hidden":!t(A).isScreenSizeDesktop,hash:"#descriptionLayer",class:"pmd-productPage_link pmd-link--underline pmd-hiddenMobileAndTablet"},{default:F(()=>[co(Y(e.$t("product.productPage.productDetails")),1)]),_:1},8,["path","aria-hidden"]),dn,t(Co)?y("",!0):(l(),S(Je,{key:0,ref_key:"productSizeSelector",ref:ne,product:t(a),"is-ereservation-available":t(He),"selected-size":t(P),"is-product-available-online":!t(_e),onAddToCart:o[1]||(o[1]=et=>gt("from layer size")),onSelectSize:vt,onBookInStore:bt},null,8,["product","is-ereservation-available","selected-size","is-product-available-online"])),w(ve,{"is-hidden-on-desktop":!0,message:t(Ct),"segmentation-id":t(a).segmentationId},null,8,["message","segmentation-id"]),t($t)?(l(),S(Ne,{key:1,type:t(eo).warning,message:e.$t("order.cartPage.error.impossibleToAddProductOnDemand"),"is-banner-closable":!1,class:"pmd-productPage_onDemand-banner"},null,8,["type","message"])):y("",!0),w(aa,{ref_key:"productStickyButton",ref:Me,class:ae(["pmd-productPage_actions",{"pmd-productPage_actions--specific":t(me)}])},{default:F(()=>[t(me)?(l(),L("span",pn,Y(e.$t("product.productPage.onDemandProduct")),1)):y("",!0),t(_e)?y("",!0):(l(),S(ze,{key:1,"button-text":t(To),"button-text-secondary":t(No),disable:t(xt),"data-test":t(xt)?void 0:"product_page_add_to_cart_button","button-class":"primary pmd-productPage_button",class:ae({"pmd-button--half":!t(Nt)}),onClick:o[2]||(o[2]=et=>gt())},null,8,["button-text","button-text-secondary","disable","data-test","class"])),t(A).isScreenSizeDesktop?(l(),S(ve,{key:2,"is-hidden-on-mobile":!0,message:t(Ct),"segmentation-id":t(a).segmentationId},null,8,["message","segmentation-id"])):y("",!0),t(He)&&!t(Ye)&&!t(me)?(l(),S(ze,{key:3,"button-text":e.$t("product.productPage.bookInStore"),"button-class":"secondary pmd-productPage_button","data-test":t(d)?void 0:"product_page_eresa_button",disable:t(d),class:ae({"pmd-button--half":!t(Nt)}),onClick:o[3]||(o[3]=et=>bt())},null,8,["button-text","data-test","disable","class"])):y("",!0)]),_:1},8,["class"]),t(zo)&&t(Ge)?(l(),S(ra,{key:2,banner:t(Ge),"is-custom":t(Do)},null,8,["banner","is-custom"])):y("",!0),w(Xt,{"when-visible":"",onHydrated:Jo},{default:F(()=>[t(Tt)?(l(),S(na,{key:0,"marketing-informations":t(Tt)},null,8,["marketing-informations"])):y("",!0)]),_:1}),t(Q)?(l(),S(sa,{key:3,"eco-design":t(Q)},null,8,["eco-design"])):y("",!0)],64))],2),t(le)?y("",!0):(l(),L(K,{key:2},[w(Xt,{"when-visible":"",onHydrated:ea},{default:F(()=>[t(a)?(l(),S(la,{key:0,product:t(a),"marketing-labels":t(_t),"marketing-label-banner":t(Dt),"source-sets":So()},null,8,["product","marketing-labels","marketing-label-banner","source-sets"])):y("",!0)]),_:1}),t(T)&&t(a)?(l(),S(ca,{key:0,ref_key:"productComponentsLayer",ref:j,product:t(a)},null,8,["product"])):y("",!0),t(pe).length&&t(a).reviewGlobal&&t(te)?(l(),L("div",_n,[w(ia,{ref:"reviewsLayer",ratings:t(a).reviewGlobal,label:t(te),reviews:t(pe)},null,8,["ratings","label","reviews"]),t(pe).length>2?(l(),S(ze,{key:0,"button-text":e.$t("product.productPage.reviews.button"),"button-class":"secondary pmd-reviews_button",onClick:Ho},null,8,["button-text"])):y("",!0)])):y("",!0),t(pe).length&&t(a).reviewGlobal&&t(te)?(l(),S(ua,{key:2,id:t(zt),ref_key:"ratingSlidingLayer",ref:Pe,ratings:t(a).reviewGlobal,label:t(te),reviews:t(pe),onShowMoreReviews:Go},null,8,["id","ratings","label","reviews"])):y("",!0),t(pt).length?(l(),L("div",mn,[R("div",vn,Y(e.$t("product.productPage.associatedProductsTitle")),1),w(da,{"product-list":t(pt),"source-sets":t(La),"click-chapter2":t(Ve),"preselected-size":t(P)?t(P).sizeId:void 0},null,8,["product-list","source-sets","click-chapter2","preselected-size"])])):y("",!0),w(Fa,{ref_key:"productLayer",ref:fe,"product-added-to-cart":t(N)},null,8,["product-added-to-cart"])],64))]),t(le)?y("",!0):(l(),L(K,{key:0},[w(s,{product:t(a),context:t(yt).PRODUCT_PAGE,rank:1,class:"pmd-productPage_recommendationsBottom"},null,8,["product","context"]),w(s,{product:t(a),context:t(yt).PRODUCT_PAGE,rank:2,class:"pmd-productPage_recommendationsBottom"},null,8,["product","context"]),w(Wa,{ref_key:"quotaModal",ref:ke,title:e.$t("product.productPage.quotaModal.title"),description:e.$t("product.productPage.quotaModal.description"),"button-label":e.$t("product.productPage.quotaModal.buttonLabel"),onClicked:Qo},null,8,["title","description","button-label"]),t(se)?(l(),S(_a,{key:0,ref_key:"reservationSlidingLayer",ref:Se,open:t(se),"is-button-visible":!1,"sliding-layer-title":e.$t("product.productPage.ereservationLayer.title"),class:"pmd-productPage_eReservationSummary",onClosed:o[4]||(o[4]=et=>se.value=!1)},{content:F(()=>[w(pa,{product:t(a),size:t(P),"store-id":t(qe),onCancel:Rt,onDone:Rt},null,8,["product","size","store-id"])]),_:1},8,["open","sliding-layer-title"])):y("",!0)],64))],512)):y("",!0)}}});const bn=J(gn,[["__scopeId","data-v-8b884180"]]),zn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"}));export{Er as _,zn as a};