PageSourceSearch

https://www.penny.ro/_nuxt/CKrvltv2.js

js penny.ro collected 2026-09-24 23:51:11 UTC 26,201 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BDGOYgLx.js","./BpB_BJXg.js","./C9Z41gEb.js","./entry.DHWjIExn.css","./C8Lsa8wX.js","./ZzxQciqj.js","./dialog-close-button.DsJKr9ma.css","./dialog-sheet-drag.fx_ogvv3.css","./OU7tP38v.js","./dialog.CgkkeqR9.css","./DdKpNBxf.js","./mfDLGNic.js","./BH82RGaG.js","./available-bottom-space-key.B5DQmhW8.css","./BMqaZ5jW.js","./C80l6NeG.js","./CjKR8KVV.js","./radio-icon.CK1Jg9mk.css","./radio-clickable-line.CXFtMxWl.css","./BFuJsAUP.js","./CkiK4uUI.js","./product-image.DfdXSJVC.css","./HesWnM5b.js","./BK53tKGP.js","./ctsT5pQD.js","./CFkEVVMV.js","./N-HAKWIc.js","./HyZqTgvQ.js","./GMzkX5d-.js","./DirUPB5L.js","./icon.BBgTg41I.css","./CLTBFeDH.js","./DJNsgEum.js","./C1AdqWNs.js","./CsZLcaR7.js","./form-element.DmjVXpdz.css","./text-field.DlVRM7MH.css","./D0H2H1Na.js","./DRvcHc8t.js","./C_guJTsS.js","./BC0wvUV-.js","./B4lM67F-.js","./DWbcKD40.js","./slider-group-item.vLUNxPAv.css","./CsmPXbsj.js","./DsQPStvC.js","./CZGg5nIu.js","./DL7JO2kz.js","./cms-components-content.BiXbMhI8.css","./DuM5zR8n.js","./fade-display-transition.ClxKIxqS.css","./C30rFPta.js","./tabs.B0RTA1AM.css","./Bn09d2it.js","./Beowyehw.js","./progress-circular.DUduvBTN.css","./BQKv0gpV.js","./Cvx9pLtX.js","./kt2fiHSa.js","./Bnw2HqFV.js","./44E7dNL6.js","./CyZUQZBQ.js","./SDlsko4X.js","./Dn9
1SbSHw.js","./D6j_4Kib.js","./BKRS8239.js","./BNIV_b_X.js","./Ddqj9abs.js","./lazy-load-image.Bj26ZR5O.css","./FtYVqKmx.js","./vBotgHKb.js","./tS6rjo7n.js","./product-price-wrapper.DNRFnONi.css","./CFStDwU3.js","./base-slider._uLKUpvQ.css","./CILQMX2e.js","./BrX2G5PF.js","./skeleton-text.DW6anY_V.css","./Xrcrljsg.js","./product-store-availability-dialog.DuO__hjr.css","./BvBTk0vM.js","./DMM7st0z.js","./CduY4iNk.js","./D67rgqb-.js","./X2RkVVIw.js","./krL5IVoT.js","./menu.BkzaaIVX.css","./select.BVdVF4g4.css","./ldVySgKP.js","./product-badge-text.-XSzPzCl.css","./CoVk9Fm-.js","./product-detail-additional.CLy_-BWL.css","./DbzEpAiC.js","./BWk9dR0Z.js","./alert.1meGm9MQ.css","./ChO3AbrT.js","./DStoUt9D.js","./DYA-JQ9i.js","./DaNMRCf7.js","./skeleton-text.BHsAZW1P.css","./tile-skeleton.DwW-np1N.css","./DeKnwH19.js","./slider-group-item.D1akyOhu.css","./jFQDT9xi.js","./BEEwUUFa.js","./DBBgtW7s.js","./product-slider.Dx09bglc.css"])))=>i.map(i=>d[i]);
2import{as as U,cO as Mt,bR as s,ak as f,bB as $t,ap as b,dg as Y,ah as r,bz as Q,bp as Nt,cQ as z,aq as Ut,bL as it,dd as H,bJ as zt,di as rt,ct as t,g as Lt,bb as vt,aj as y,dh as pt,ai as x,db as gt,dj as bt,cn as T,c3 as k,by as Ft,W as X,c9 as q,b_ as W,bO as It,ao as Wt,ar as J,V as G,b2 as Gt,ae as D,bq as Yt,aE as Zt,cM as Ct,cv as Dt,cr as P,c5 as kt,a2 as jt,c8 as qt}from"./C9Z41gEb.js";import{a as Jt}from"./Cvx9pLtX.js";import{a as At,d as Qt,b as ht}from"./kt2fiHSa.js";import{s as ut}from"./Bnw2HqFV.js";import{a as B}from"./44E7dNL6.js";import{d as Xt}from"./CyZUQZBQ.js";import{_ as Pt}from"./BFuJsAUP.js";import{_ as te,a as wt,b as St}from"./SDlsko4X.js";import{_ as ee}from"./CFStDwU3.js";import{p as oe}from"./vBotgHKb.js";import{_ as st}from"./CILQMX2e.js";import{_ as se}from"./BrX2G5PF.js";import{_ as Et}from"./HesWnM5b.js";import{u as ie,d as re}from"./Xrcrljsg.js";const ae=(e,o)=>{const d=e??[],m={};return d.reduce((i,c,a)=>{const v=(m[c.validFrom]??0)+1;return m[c.validFrom]=v,i[`${c.validFrom}-${a}`]=Xt(c.validFrom,o)+(v>1?` (${v})`:""),i},{})},ne=["onClick"],xt=36,ce=U({__name:"product-detail-image-thumbnails",props:Nt({product:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const o=Mt(e,"modelValue");return(d,m)=>(s(),f("div",{style:$t({"--slider-group-button-size":`${xt}px`}),class:"ws-product-detail-image-thumbnails","aria-live":"polite"},[b(ee,{class:"ws-product-detail-image-thumbnails__slider","button-position-top":"unset","button-size":xt,items:e.product.images,vertical:d.$vuetify.display.mdAndUp},{item:Y(({index:i})=>[r("div",{class:Q(["ws-product-detail-image-thumbnail d-flex align-center clickable",{"ws-product-detail-image-thumbnail--active":o.value===i}]),"aria-hidden":"true",onClick:c=>o.value=i},[b(Pt,{size:"small",index:i,images:e.product.images,name:e.product.name},null,8,["index","images","name"])],10,ne)]),_:1},8,["items","vertical"])],4))}}),le=["tabindex"],de={class:"ws-product-detail-image__inner fill-width d-flex"},ue=["data-zoomed"],pe={class:"ws-product-detail-image__zoom-info text-body-2 text-base-color2"},me={class:"ml-1"},ve=5,fe=U({__name:"product-detail-image",props:{product:{},preload:{type:Boolean,default:!1},thumbnails:{type:Boolean,default:!1}},setup(e){const o=e,{$componentConfigs:{productConfig:{imageZoomLabel:d},productsGeneralConfig:{badges:m}},$usage:i}=z(),c=k(null),a=k(null),v=k(!1),h=Ut(l=>{i.canHover&&(v.value?(v.value=!1,w({isClick:!0})):(v.value=!0,u(l)))},250,{leading:!0,trailing:!1});let p;const u=l=>{!i.canHover||!v.value||(clearTimeout(p),$(l))},w=({isClick:l=!1})=>{i.canHover&&(l?O():p=setTimeout(()=>{O()},750))},O=()=>{v.value=!1;const l=a.value?.rootRef;l&&(l.style.transform="unset",l.style.left="0px",l.style.top="0px")},$=l=>{const _=a.value?.rootRef;if(!_)return;const C=c.value.getBoundingClientRect(),at=l.clientX-C.left,nt=l.clientY-C.top;_.style.transform=`scale(${ve})`,_.style.transformOrigin=`${at}px ${nt}px`},g=k(0),Z=oe(o.product.price),L=o.product.price?.regular?.tags?.length>0&&m?.length>0,F=(o.product.badges?.length??0)>0,M=o.thumbnails&&o.product.images?.length>1,S=()=>{o.product.images.length-1>g.value&&g.value++},E=()=>{g.value>0&&g.value--},j=At(d),I=k("large");return it(()=>{const l=H(()=>i.isTouching||v.value,_=>{_&&(Ft(()=>{l()}),I.value="zoom")},{immediate:!0})}),zt(()=>{h.cancel(),clearTimeout(p)}),(l,_)=>(s(),f("div",{class:"ws-product-detail-image","data-test":"product-detail-image",tabindex:t(M)?0:void 0,onKeydown:[rt(E,["arrow-left"]),rt(S,["arrow-right"])]},[t(M)?(s(),f(Lt,{key:0},[b(ce,{modelValue:t(g),"onUpdate:modelValue":_[0]||(_[0]=C=>vt(g)?g.value=C:null),product:e.product},null,8,["modelValue","product"]),_[2]||(_[2]=r("hr",{class:"ws-div
2ider ws-divider--light ws-divider--vertical d-none d-md-block my-0"},null,-1))],64)):y("",!0),r("div",de,[t(L)||t(Z)||F?pt((s(),x(te,{key:0,price:e.product.price,"product-badges":e.product.badges},null,8,["price","product-badges"])),[[gt,!t(v)]]):y("",!0),r("div",{ref_key:"zoomContainerRef",ref:c,class:Q(["ws-product-detail-image-inner__container",{"ws-product-detail-image-inner__container--zoomed":t(v)}]),"data-test":"product-detail-image-zoom-container","data-zoomed":t(v),onClick:_[1]||(_[1]=(...C)=>t(h)&&t(h)(...C)),onPointermove:bt(u,["self"]),onPointerleave:bt(w,["self"])},[b(Pt,{ref_key:"productImageRef",ref:a,class:"ws-product-detail-image-inner-image__image",eager:"",images:e.product.images,index:t(g),name:e.product.name,preload:e.preload,size:t(I)},null,8,["images","index","name","preload","size"])],42,ue),pt(r("div",pe,[_[3]||(_[3]=r("span",{class:"ws-icon notranslate","aria-hidden":"true"},"zoom_in",-1)),r("div",me,T(t(j)),1)],512),[[gt,!t(v)]])])],40,le))}});var A=(e=>(e.ENOUGH_STOCK="ENOUGH_STOCK",e.LOW_STOCK="LOW_STOCK",e.OUT_OF_STOCK="OUT_OF_STOCK",e))(A||{});const _e={},ye={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"ws-stock-level-high-icon"};function ge(e,o){return s(),f("svg",ye,[...o[0]||(o[0]=[r("path",{d:"M2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V8H2V4Z",fill:"currentColor"},null,-1),r("rect",{x:"2",y:"9",width:"20",height:"6",fill:"currentColor"},null,-1),r("path",{d:"M2 16H22V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V16Z",fill:"currentColor"},null,-1),r("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1",stroke:"currentColor","stroke-width":"2"},null,-1)])])}const be=X(_e,[["render",ge]]),ke={},he={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"ws-stock-level-low-icon"};function we(e,o){return s(),f("svg",he,[...o[0]||(o[0]=[r("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1",stroke:"currentColor","stroke-width":"2"},null,-1),r("path",{d:"M2 15H22V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V15Z",fill:"currentColor"},null,-1),r("line",{x1:"4",y1:"9.5",x2:"20",y2:"9.5",stroke:"currentColor"},null,-1)])])}const Se=X(ke,[["render",we]]),xe={},Te={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"ws-stock-level-out-of-stock-icon"};function Oe(e,o){return s(),f("svg",Te,[...o[0]||(o[0]=[r("rect",{x:"3",y:"3",width:"18",height:"18",rx:"1",stroke:"currentColor","stroke-width":"2"},null,-1),r("line",{x1:"4",y1:"9",x2:"20",y2:"9",stroke:"currentColor"},null,-1),r("line",{x1:"4",y1:"15",x2:"20",y2:"15",stroke:"currentColor"},null,-1)])])}const $e=X(xe,[["render",Oe]]);function Le(){const{$componentConfigs:{productsGeneralConfig:e}}=z();return{[A.ENOUGH_STOCK]:{icon:be,text:e.storeAvailabilityAvailabilityEnoughStock},[A.LOW_STOCK]:{icon:Se,text:e.storeAvailabilityAvailabilityLowInStock},[A.OUT_OF_STOCK]:{icon:$e,text:e.storeAvailabilityAvailabilityOutOfStock}}}const Ie=["data-test"],Ce={class:"h6"},De=U({__name:"product-store-stock",props:{stockLevel:{}},setup(e){const o=e,d=Le();return(m,i)=>(s(),f("div",{class:Q(["ws-product-store-availability-stock-info d-flex",{"ws-product-store-availability-stock-info--enough-stock":e.stockLevel===t(A).ENOUGH_STOCK,"ws-product-store-availability-stock-info--low-stock":e.stockLevel===t(A).LOW_STOCK,"ws-product-store-availability-stock-info--out-of-stock":e.stockLevel===t(A).OUT_OF_STOCK}]),"data-test":`store-stock-level-${e.stockLevel}`},[(s(),x(q(t(d)[o.stockLevel].icon))),r("span",Ce,T(t(d)[o.stockLevel].text),1)],10,Ie))}}),Ae=X(De,[["__scopeId","data-v-2e088bfa"]]),Rt=Symbol("product-store-availability"),Pe=Symbol("product-store-availability-product-id"),Ee=Symbol("product-store-availability-product-sku"),Tt=.5;var mt=(e=>(e.IN_STOCK="in stock",e.LOW_IN_STOCK="low in stock",e.OUT_OF_STOCK="out of stock",e.LISTED="listed",e.NOT_LISTED="not listed",e.NO_STOCK_INFO_AVAILABLE="no stock info available",e))(mt||{});const Re={[A.ENOUGH_STOCK]:"in stock",[A.LOW_STOCK]:"low in stock",[A.OUT_OF_STOCK]:"out of stock"},Ve=({isRealTimeAvailabilityEnabled:e,stockLevel:o,isListed:d})=>e&&o?Re[o]:d===!0?"listed":d===!1?"not listed":"no stock info available",Ke={class:"ws-product-store-availability"},Be={class:"h5"},He={key:0,class:"my-2"},Me={class:"ws-product-store-availability-wrapper__address","data-test":"selected-store-address"},Ne=["data-test"],Ue={class:"ws-icon","aria-hidden":"true"},ze={class:"ws-product-store-availability-info__text h6"},Fe={key:2,class:"ws-product-store-info-not-available d-flex","data-test":"store-no-stock-info"},We={class:"ws-product-store-info-not-available__text"},Ge={key:1,class:"my-2","data-test":"store-not-selected"},Ye="no-selected-store",Ze=U({__name:"product-store-availability",props:{productId:{},productSku:{}},setup(e){const o=J(()=>G(()=>import("./BDGOYgLx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79]),import.meta.url)),d=e;W(Pe,d.productId),W(Ee,d.productSku);const{$clientRuntimeConfig:{featureProductStoreRealTimeAvailability:m},$componentConfigs:{productsGeneralConfig:i},$tracking:c}=z(),a=!!m,v=k(!1),h=Gt(Rt,null),{stores:p,selectedStore:u,isListed:w,stockLevel:O,isStoreInfoFetched:$,setCurrentStoreId:g,claimAvailabilityImpression:Z}=h,L=k(),F=k(!1),M=D(()=>
2{if(!u.value)return p.value?mt.NO_STOCK_INFO_AVAILABLE:void 0;if($.value)return Ve({isRealTimeAvailabilityEnabled:a,stockLevel:O.value,isListed:w.value})}),S=D(()=>u.value?.storeId??Ye);H([F,M,S],I=>{const[l,_,C]=I;!l||!_||!Z(C)||c.event("availability.impression",{category:"store-availability",action:"impression",label:_})});let E;it(()=>{L.value&&(E=new IntersectionObserver(I=>{const l=I[0];l&&(F.value=l.intersectionRatio>=Tt)},{threshold:Tt}),E.observe(L.value))}),It(()=>E?.disconnect());const j=()=>{c.event("availability.click",{category:"store-availability",action:"click",label:M.value??mt.NO_STOCK_INFO_AVAILABLE}),v.value=!0};return(I,l)=>(s(),f("div",Ke,[r("div",{ref_key:"availabilitySection",ref:L,class:Q(["ws-product-store-availability__wrapper d-flex flex-column",{"ws-product-store-availability__wrapper--listed":t(w)}]),"data-test":"store-availability-section"},[r("h2",Be,T(t(i).storeAvailabilityHeadline),1),t(u)?.street?(s(),f("div",He,[r("div",Me,[r("span",null,T(t(u).street)+", ",1),r("span",null,T(t(u).zip)+" "+T(t(u).city),1)]),t($)?(s(),f(Lt,{key:1},[t(a)&&t(O)?(s(),x(Ae,{key:0,"stock-level":t(O)},null,8,["stock-level"])):t(w)!==void 0?(s(),f("div",{key:1,class:"ws-product-store-availability-info d-flex align-items-center","data-test":t(w)?"listed-in-store":"not-listed-in-store"},[r("span",Ue,T(t(w)?"check":"close"),1),r("span",ze,T(t(w)?t(i).storeAvailabilityListingStatusListed:t(i).storeAvailabilityListingStatusNotListed),1)],8,Ne)):(s(),f("div",Fe,[l[2]||(l[2]=r("span",{class:"ws-icon notranslate","aria-hidden":"true"}," circle ",-1)),r("span",We,T(t(i).storeAvailabilityNoStockInfoAvailable),1)]))],64)):(s(),x(se,{key:0,class:"h6"}))])):(s(),f("p",Ge,T(t(i).storeAvailabilityExplanation),1)),b(Et,{"data-test":"see-all-stores-button",variant:"tertiary",onClick:j},{default:Y(()=>[Wt(T(t(i).storeAvailabilitySeeAllStoresButtonLabel),1)]),_:1})],2),b(st,{light:"",class:"mb-6"}),t(v)?(s(),x(q(I.$extensions.productDiscovery.product?.storeAvailabilityDialog||t(o)),{key:0,stores:t(p),"selected-store-id":t(u)?.storeId,onSelect:l[0]||(l[0]=_=>t(g)(_)),onClose:l[1]||(l[1]=_=>v.value=!1)},null,40,["stores","selected-store-id"])):y("",!0)]))}}),Ot=X(Ze,[["__scopeId","data-v-bc0b0c75"]]),je={class:"ws-product-version-selector__inner"},qe=["innerHTML"],Je=["innerHTML"],Qe=U({__name:"product-version-selector",props:{modelValue:{default:""},options:{},text:{default:void 0},buttonText:{default:void 0},standalone:{type:Boolean,default:!1},teleport:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:o}){const d=J(()=>G(()=>import("./BvBTk0vM.js"),__vite__mapDeps([80,81,2,3,32,33,34,26,27,35,82,29,12,30,83,84,85,86,87]),import.meta.url)),m=e,i=o,c=D({get:()=>m.modelValue,set:h=>i("update:modelValue",h)}),a=D(()=>Qt(m.text)),v=D(()=>{const h=`<b>${m.options[m.modelValue]??""}</b>`;return m.buttonText?Zt(m.buttonText,[h]):h});return(h,p)=>(s(),f("div",{class:Q(["ws-product-version-selector",{"ws-product-version-selector--standalone":e.standalone}]),"data-test":"product-version-selector"},[r("div",je,[t(a)?(s(),f("div",{key:0,class:"ws-product-version-selector__text text-body-1","data-test":"product-version-selector-text",innerHTML:t(a)},null,8,qe)):y("",!0),b(t(d),{class:"ws-product-version-selector__select",modelValue:t(c),"onUpdate:modelValue":p[0]||(p[0]=u=>vt(c)?c.value=u:null),options:e.options,teleport:e.teleport},{trigger:Y(({attrs:u,next:w,previous:O,toggle:$})=>[b(Et,Yt({class:"ws-product-version-selector__button",wrap:"","data-test":"product-version-selector-button"},u,{onClick:$,onKeydown:[rt(O,["up"]),rt(w,["down"])]}),{default:Y(()=>[r("span",{class:"ws-product-version-selector__button-text",innerHTML:t(v)},null,8,Je),p[1]||(p[1]=r("span",{class:"ws-icon ws-icon--right notranslate","aria-hidden":"true"}," expand_more ",-1))]),_:1},16,["onClick","onKeydown"])]),_:1},8,["modelValue","options","teleport"])])],2))}}),Xe=Symbol("product-version-selector"),to="selectedStore",eo=(e,o,d)=>d.$get("/api/product-discovery/stock-prediction",{params:{sku:e,storeId:o}}),oo=({store:e,productId:o,enabled:d=!0})=>{const{$ofetch:m}=z(),i=Dt(()=>`use-product-store-listing-${o}-${P(e)?.storeId}`,()=>m.$get(`/api/product-discovery/products/${o}/listings?storeIds=${P(e)?.storeId}`).then(c=>c.results.find(a=>a.storeId===P(e)?.storeId).isListed),{immediate:!1});return H([()=>P(e),()=>P(d)],async c=>
2{c[0]&&c[1]?await i.refresh():i.clear()},{immediate:!0}),i},so=({productSku:e,store:o,enabled:d=!0})=>{const{$ofetch:m}=z(),i=Dt(()=>`use-stock-prediction-${e}-${P(o)?.storeId}`,()=>eo(e,P(o).storeId,m).then(({stockLevel:c})=>c),{immediate:!1});return H([()=>P(o),()=>P(d)],async c=>{c[0]&&c[1]?await i.refresh():i.clear()},{immediate:!0}),i},io=({productId:e,productSku:o,stores:d})=>{const{$clientRuntimeConfig:{featureProductStoreRealTimeAvailability:m},$productDiscovery:{storeProvider:i}}=z(),c=Ct(to,i()??null),a=D(()=>d.value?.find(g=>g.storeId===c.value)),{data:v,status:h}=oo({productId:e,store:a}),{data:p,status:u}=m?so({productSku:o,store:a}):{data:k(void 0),status:k("success")},w=g=>{c.value=g},O=k(),$=g=>O.value===g?!1:(O.value=g,!0);return{stores:d,selectedStore:a,isStoreInfoFetched:D(()=>["success","error"].includes(h.value)&&["success","error"].includes(u.value)),isListed:v,stockLevel:p,setCurrentStoreId:w,claimAvailabilityImpression:$}},ro={class:"ws-sticky-layout"},ao={class:"ws-sticky-layout-container__sidebar"},no=U({__name:"sticky-layout",props:{sidebarPosition:{}},setup(e,{expose:o}){const d=e,m=k(null);return o({stickyMainRef:m}),(i,c)=>(s(),f("div",ro,[r("div",{class:"ws-sticky-layout__container",style:$t({"--sidebar-position":`${d.sidebarPosition}px`})},[r("div",ao,[kt(i.$slots,"sidebar")]),r("div",{ref_key:"stickyMainRef",ref:m,class:"ws-sticky-layout-container__main"},[kt(i.$slots,"main")],512)],4)]))}}),co=Symbol("slider-navigation"),lo=Symbol("referrer-product"),uo={class:"ws-product-detail d-grid container","data-test":"product-detail"},po={class:"ws-product-detail__sidebar","data-test":"product-detail-sidebar"},mo={key:0,class:"text-body-2 text-right"},vo={class:"ws-product-detail-main__image-container d-flex ma-md-0"},fo={class:"ws-product-detail-main__price","data-test":"product-detail-main-price"},_o={key:0,class:"text-body-2 text-right"},yo={class:"ws-product-detail__message-area","data-test":"product-description"},go={class:"ws-product-detail__message-area-title h4","data-test":"product-description-title"},bo=["innerHTML"],ko={key:5,class:"ws-product-detail-main__sku text-body-2 text-base-color2","data-test":"product-sku"},ho=["innerHTML"],wo=["innerHTML"],Ko=U({__name:"product-detail",props:{context:{},product:{},sidebarPosition:{},headlineLevel:{},linkHeadline:{type:Boolean}},setup(e,{expose:o}){const d=J(()=>G(()=>import("./ldVySgKP.js"),__vite__mapDeps([88,2,3,89]),import.meta.url)),m=J(()=>G(()=>import("./CoVk9Fm-.js"),__vite__mapDeps([90,2,3,57,75,78,70,58,59,60,61,27,19,20,21,62,63,64,65,66,67,68,69,23,71,72,73,40,41,42,8,43,74,76,77,22,91]),import.meta.url)),i=J(()=>G(()=>import("./DbzEpAiC.js"),__vite__mapDeps([92,58,93,2,3,94]),import.meta.url)),c=Jt("../node_modules/.pnpm/@rewe-ecom-ecom-ws+ws-product-discovery@0.0.0-MWS-000-20260910134113_@rewe-ecom-ecom-ws_859b9930f8022cc8fd4691928d472f58/node_modules/@rewe-ecom-ecom-ws/ws-product-discovery/products/product-slider.vue",()=>G(()=>import("./ChO3AbrT.js"),__vite__mapDeps([95,96,97,98,2,3,99,100,73,40,41,42,8,43,74,101,102,60,59,103,104,105,106]),import.meta.url)),a=e,{$clientRuntimeConfig:{locale:v,featureProductStoreAvailability:h},$componentConfigs:{productConfig:p,productsGeneralConfig:u},$productDiscovery:w,$ofetch:O,$tracking:$}=z(),g=ie();if(h){const{data:n}=w.useAvailabilityStores();W(Rt,io({productId:a.product.productId,productSku:a.product.sku,stores:n}))}const Z=k({pageSize:p.similarProductsMaxNumber??20}),{data:L,status:F}=w.useFetch(`similar-products-${a.product.slug}`,Z,n=>p.similarProducts?jt(a.product.slug,n,O).catch(()=>[]):Promise.resolve([])),M=D(()=>[a.product.sku,...L.value?.map(n=>n.sku)||[]]),{stockPredictions:S}=w.useAvailability(M,!0),E=re(u),j=D(()=>S.value&&Object.keys(S.value).length?Object.values(S.value).some(n=>!ut(n)):!0),I=ht(a.product.descriptionLong),l=ht(a.product.descriptionShort),_=a.product.descriptionLong&&p&&(p.settingsDescriptionLong?.includes("show in top section")||!p.settingsDescriptionLong),C=a.product.descriptionShort&&p&&(p.settingsDescriptionShort?.includes("show in top section")||!p.settingsDescriptionShort),at=u.medicalDeviceDescription&&a.product.medical,nt=u.generalSettingsAgeRestrictionDescription&&a.product.ageRequiredInMonths,Vt=Array.isArray(a.product.price?.regular?.tags)&&a.product.price.regular.tags.length>0&&Array.isArray(u.badges)&&u.badges.length>0,Kt=At(p.similarProductsHeadline),R=k(""),Bt=p.additionalInformationProductVariantsGeneralText,Ht=p.additionalInformationProductVariantsText,tt=D(()=>ae(a.product.additionalInformation,v)),ft=Ct("product-detail-selected-versions",{});W(Xe,{selectedVersion:R,options:tt});let ct=!1,lt=!1;const _t=()=>{const n=Object.keys(tt.value),V=n[n.length-1]??"",N=ft.value[a.product.slug],K=ct&&N&&n.includes(N)?N:V;K!==R.value&&(lt=ct,R.value=K)};H(()=>a.product,_t,{immediate:!0}),it(()=>{ct=!0,_t()}),H(R,(n,V)=>{if(lt){lt=!1;return}n&&(ft.value[a.product.slug]=n),V&&$.product("selectProductVersion",n,a.product)});const yt=k(null),et=k(null),ot=k(!1);it(()=>{let n=null;const V=()=>{!et.value||ot.value||(n=new IntersectionObserver(K=>{K[0].isIntersecting&&!ot.value&&(ot.value=!0,$.event("impressionTracking",{event:"pdp.similarProducts",eventInfo:{category:"ProductDetailPage",action:"Similar Products",label:"Impression"}}),n?.disconnect())},{threshold:.1}),n.observe(et.value))},N=H(et,K=>{K&&!ot.value&&V()},{immediate:!0});It(()=>{n?.disconnect(),N()})});const dt=k(null);W(co,dt),H(dt,n=>{n&&($.event("pdp.slider.buttonclick",{category:"ProductDetailPage",action:"Similar Products",label:"Button Click",property:n===1?"Right":"Left"}),dt.value=null)});{const n={section:"Similar Products",product:$.productDataMapper(a.product),t
2ype:"product"};W(lo,n)}return o({stickyLayoutRef:yt}),(n,V)=>{const N=qt("kontent-reference");return pt((s(),f("div",uo,[b(no,{ref_key:"stickyLayoutRef",ref:yt,"sidebar-position":e.sidebarPosition},{sidebar:Y(()=>[r("div",po,[b(wt,{"headline-level":e.headlineLevel,"link-headline":e.linkHeadline,product:e.product,"stock-prediction":t(B)(t(S),e.product.sku)},null,8,["headline-level","link-headline","product","stock-prediction"]),b(St,{product:e.product,"stock-prediction":t(B)(t(S),e.product.sku),type:"detail"},null,8,["product","stock-prediction"]),t(ut)(t(B)(t(S),e.product.sku))&&t(u).unavailableText?(s(),f("p",mo,T(t(u).unavailableText),1)):y("",!0),n.$extensions.productDiscovery.product.action?(s(),x(q(n.$extensions.productDiscovery.product.action),{key:1,class:"ws-product-detail__sidebar-actions mt-6",context:e.context,product:e.product,"stock-prediction":t(B)(t(S),e.product.sku)},null,8,["context","product","stock-prediction"])):y("",!0),b(st,{light:""}),t(h)?(s(),x(Ot,{key:2,"product-id":e.product.productId,"product-sku":e.product.sku},null,8,["product-id","product-sku"])):y("",!0)])]),main:Y(()=>[r("div",vo,[n.$extensions.productDiscovery.product.favorite?(s(),x(q(n.$extensions.productDiscovery.product.favorite),{key:0,class:"ws-product-detail-main__favorite-button","data-test":"product-detail-main-favorite",product:e.product},null,8,["product"])):y("",!0),b(fe,{class:"fill-width",thumbnails:"",preload:"",product:e.product},null,8,["product"])]),b(wt,{class:"ws-product-detail-main__information","data-test":"product-detail-main-info","headline-level":e.headlineLevel,"link-headline":e.linkHeadline,product:e.product,"stock-prediction":t(B)(t(S),e.product.sku)},null,8,["headline-level","link-headline","product","stock-prediction"]),r("div",fo,[b(St,{product:e.product,"stock-prediction":t(B)(t(S),e.product.sku),type:"detail"},null,8,["product","stock-prediction"]),t(ut)(t(B)(t(S),e.product.sku))&&t(u).unavailableText?(s(),f("p",_o,T(t(u).unavailableText),1)):y("",!0),n.$extensions.productDiscovery.product.action?(s(),x(q(n.$extensions.productDiscovery.product.action),{key:1,class:"ws-product-detail-main__actions mt-4","data-test":"product-detail-main-actions",context:e.context,product:e.product,"stock-prediction":t(B)(t(S),e.product.sku)},null,8,["context","product","stock-prediction"])):y("",!0)]),t(Vt)?(s(),x(t(d),{key:0,class:"mb-2 ml-md-2",badges:t(u).badges,price:e.product.price},null,8,["badges","price"])):y("",!0),b(st,{light:""}),t(h)?(s(),x(Ot,{key:1,class:"ws-product-detail__store-availability--mobile","data-test":"product-detail-store-availability-mobile","product-id":e.product.productId,"product-sku":e.product.sku},null,8,["product-id","product-sku"])):y("",!0),r("div",yo,[r("p",go,T(t(p).additionalInformationProductMarketingTitle),1),Object.keys(t(tt)).length>1?(s(),x(Qe,{key:0,class:"ws-product-detail__message-area-version mb-4",modelValue:t(R),"onUpdate:modelValue":V[0]||(V[0]=K=>vt(R)?R.value=K:null),teleport:"",options:t(tt),text:t(Bt),"button-text":t(Ht)},null,8,["modelValue","options","text","button-text"])):y("",!0),t(C)?(s(),f("div",{key:1,class:"ws-product-slug-main__description-short mb-4","data-test":"product-description-content",innerHTML:t(l)},null,8,bo)):y("",!0),t(E)[e.product.depositType]?.description?(s(),x(t(i),{key:2,class:"mb-4 text-body-2","data-test":"product-detail-deposit-description",message:t(E)[e.product.depositType].description},null,8,["message"])):y("",!0),t(at)?(s(),x(t(i),{key:3,class:"mb-4 text-body-2",message:t(u).medicalDeviceDescription},null,8,["message"])):y("",!0),t(nt)?(s(),x(t(i),{key:4,class:"mb-4 text-body-2",message:t(u).generalSettingsAgeRestrictionDescription},null,8,["message"])):y("",!0),e.product.sku?(s(),f("div",ko,T(n.$t("product.info.skuprefix",[e.product.sku])),1)):y("",!0)]),b(st,{light:""}),t(_)?(s(),f("p",{key:2,innerHTML:t(I)},null,8,ho)):y("",!0),b(t(m),{"heading-level":"h2",product:e.product,"selected-version":t(R)},null,8,["product","selected-version"])]),_:1},8,["sidebar-position"]),t(F)!=="pending"&&Array.isArray(t(L))&&t(L).length&&!t(g)?(s(),f("div",{key:0,ref_key:"similarProductsSliderRef",ref:et,"data-test":"similar-products-section"},[t(j)?(s(),f("h2",{key:0,class:"mb-6 h4","data-test":"similar-products-title",innerHTML:t(Kt)},null,8,wo)):y("",!0),b(t(c),{context:"similar-products",products:t(L),"stock-predictions":t(S)},null,8,["products","stock-predictions"])],512)):y("",!0)])),[[N,t(p).kontentId]])}}});
2export{Pe as P,Ko as _,Ee as a,Xe as b,Qe as c,Le as d,so as e,ae as p,oo as u};

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.