PageSourceSearch

https://najell.com/_next/static/chunks/pages/p/[...slug]-5cd7819b625e8aba.js

js najell.com collected 2026-10-09 21:43:24 UTC 70,120 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a87dba78-178f-4c82-b83b-f014215cb7d9",e._sentryDebugIdIdentifier="sentry-dbid-a87dba78-178f-4c82-b83b-f014215cb7d9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[822],{7805:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[...slug]",function(){return l(2174)}])},5242:function(e,t,l){"use strict";var i=l(5893),n=l(8667),s=l(5568),o=l(6985);l(7294);var r=l(129);t.Z=e=>{var t,l,a,d;let c,{block:u}=e;return(0,r.Ac)(null==u?void 0:null===(t=u.asset)||void 0===t?void 0:t.filename)&&(c=null==u?void 0:null===(a=u.asset)||void 0===a?void 0:a.filename),(null==u?void 0:u.video)&&(c=null==u?void 0:u.video),(0,i.jsx)("section",{className:"product-accordion-asset px-4 md:px-6 xl:px-0",children:(0,i.jsx)("div",{className:"relative aspect-h-9 aspect-w-16",children:(0,i.jsxs)(s.Z,{image:c||(null!==(d=null==u?void 0:null===(l=u.asset)||void 0===l?void 0:l.filename)&&void 0!==d?d:""),children:[!c&&(0,i.jsx)(n.Z,{fill:!0,image:null==u?void 0:u.asset}),c&&(0,i.jsx)(o.Z,{video:c,endedVideoImage:null==u?void 0:u.endedVideoImage})]})})})}},2174:function(e,t,l){"use strict";let i;l.r(t),l.d(t,{__N_SSG:function(){return ec},default:function(){return _slug_}});var n=l(5893),s=l(9960),o=l(1481),r=l(7294),a=l(6818),d=l(6896);let useGetBadges=e=>{let{selection:{location:t}}=(0,a.yr)(),l=(0,d.Z)(),i=null;if(e){var n,s;let o=(0,a.fS)(e)?null==e?void 0:null===(n=e.availableInMarkets)||void 0===n?void 0:n.includes(null!==(s=null==t?void 0:t.market)&&void 0!==s?s:0):null==e?void 0:e.available;i=[{active:!o,name:o?l.formatMessage({id:"In stock"}):l.formatMessage({id:"Not in stock"}),textColor:o?"#299316":"#c6262c",type:"stock"}],(null==e?void 0:e.var_label)&&(null==e?void 0:e.var_label.length)>0&&(null==e||e.var_label.forEach(e=>{var t,l;null==i||i.push({active:!0,name:e.desc,textColor:null!==(t=null==e?void 0:e["hex-font"])&&void 0!==t?t:"#299316",backgroundColor:null!==(l=null==e?void 0:e["hex-background"])&&void 0!==l?l:"#fff"})}))}return i||null};var c=l(4973),u=l(2865),m=l(7031),v=l(1163),hooks_useSimpleBundle=(e,t)=>{let{locale:l}=(0,v.useRouter)(),[i,n]=(0,r.useState)(!1),[s,o]=(0,r.useState)(!0),d=(0,r.useCallback)(async()=>{if(!(null==e?void 0:e.sections))return o(!1);let i=e.sections.every(e=>1===e.products.length);if(!i)return o(!1);let s=e.sections.flatMap(e=>e.products.toString()),r=await a.tJ.getProducts({productIds:s,language:l});if(!(null==r?void 0:r.products))return o(!1);let d=r.products.every(e=>1===e.items.length);if(!d)return o(!1);n(!0);let c=r.products.map(t=>{var l,i;let n=null==e?void 0:null===(l=e.sections.find(e=>e.products.some(e=>e.toString()===t.product)))||void 0===l?void 0:l.section;return{section:null!==(i=null==n?void 0:n.toString())&&void 0!==i?i:"",item:t.items[0].item}});return t(c),o(!1),null},[null==e?void 0:e.sections,l,t]);return(0,r.useEffect)(()=>{d()},[d]),{isSimpleBundle:i,bundleIsInitiallyLoading:s}},p=l(253),x=l(7555),Breadcrumbs_BreadcrumbsSeperator=()=>(0,n.jsx)(x.Z,{className:"scale-[0.40] mt-[2px]",fill:"black"}),Breadcrumbs_BreadcrumbsItem=e=>{let{href:t,label:l,index:i,categoryUriLength:s}=e;return(0,n.jsxs)("li",{className:"breadcrumbs-item-component",itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/ListItem",children:[(0,n.jsxs)(p.Z,{href:t,className:"flex items-center text-nowrap",itemProp:"item",children:[(0,n.jsx)("span",{className:"mr-2",itemScope:!0,itemProp:"name",children:l}),i!==s&&(0,n.jsx)(Breadcrumbs_BreadcrumbsSeperator,{})]}),(0,n.jsx)("meta",{itemProp:"position",content:i})]})},elements_Breadcrumbs=e=>{let{breadcrumbs:t,className:l}=e;return(0,n.jsx)("ol",{className:"breadcrumbs-component min-h-[35px] flex md:mb-3 xl:mb-5 px-4 max-w-100rem overflow-scroll scrollbar-0 pb-2 items-center space-x-2 ".concat(l),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:t&&t.map((e,l)=>(0,n.jsx)(r.Fragment,{children:(0,n.jsx)(Breadcrumbs_BreadcrumbsItem,{categoryUriLength:(t.length+1).toString(),label:e.text,href:"".concat(e.href),index:(l+2).toString()})},e.text))})},h=l(1999),g=l(2916),elements_Badges=function(e){let{badges:t,className:l}=e;return(0,n.jsx)(n.Fragment,{children:t&&(null==t?void 0:t.length)>0?(0,n.jsx)("ul",{className:"badges-component absolute flex flex-wrap gap-1 z-20 ".concat(null!=l?l:""),children:t.map(e=>(0,n.jsx)(r.Fragment,{children:e.active&&(0,n.jsxs)("li",{className:"px-1.5 py-0.5 md:px-3 md:py-1.5 bg-white rounded-[3px] flex-center",style:{backgroundColor:e.backgroundColor},children:["stock"===e.type&&(0,n.jsx)("div",{className:" h-2 w-2 rounded-full mr-[5px]",style:{backgroundColor:e.textColor}}),(0,n.jsx)(g.Z,{className:"text-xs md:text-sm relative",style:{color:e.textColor},children:e.name})]})},e.name))}):null})},f=l(2977);let j={className:{ul:"list-none space-y-1",li:"flex items-start whitespace-nowrap gap-1",b:"font-semibold",strong:"font-semibold",p:"",h1:"text-3xl font-bold",h2:"text-2xl font-semibold",h3:"text-xl font-semibold",h4:"text-lg font-semibold",h5:"text-base font-medium",h6:"text-sm font-medium"}};var elements_BBCodeContent=e=>
1{let{content:t,options:l,className:i="bb-code-content"}=e,s=function(e){var t,l,i;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";let s={...j,...n},o=e.replace(/\\n/g,"\n").replace(/\r\n/g,"\n").replace(/\\\\n/g,"\n");o=(o=(o=o.replace(/\[b\](.*?)\[\/b\]/g,(e,t)=>{var l;let i=(null===(l=s.className)||void 0===l?void 0:l.b)||"";return'<strong class="'.concat(i,'">').concat(t.trim(),"</strong>")})).replace(/\[h([1-6])\](.*?)\[\/h\1\]/g,(e,t,l)=>{var i;let n="h".concat(t),o=(null===(i=s.className)||void 0===i?void 0:i[n])||"";return"<".concat(n,' class="').concat(o,'">').concat(l.trim(),"</").concat(n,">")})).replace(/\[ul\]([\s\S]*?)\[\/ul\]/g,(e,t)=>{var l,i;let n=(null===(l=s.className)||void 0===l?void 0:l.ul)||"",o=(null===(i=s.className)||void 0===i?void 0:i.li)||"",r=t.replace(/\[li\]([\s\S]*?)\[\/li\]/g,(e,t)=>'<li class="'.concat(o,'">• ').concat(t.trim(),"</li>")),a=r.split("\n").map(e=>e.trim()).filter(e=>e).join("");return'<ul class="'.concat(n,'">').concat(a,"</ul>")});let r=o.split("\n"),a=[],d=!1,c=[];for(let e=0;e<r.length;e+=1){let i=r[e].trim();if(i.match(/^\[\*\]/)){let n=i.replace(/^\[\*\]\s*/,"");c.push(n),d||(d=!0);let o=e+1<r.length?r[e+1].trim():"",u=o.match(/^\[\*\]/);if(!u){let e=(null===(t=s.className)||void 0===t?void 0:t.ul)||"",i=(null===(l=s.className)||void 0===l?void 0:l.li)||"",n='<ul class="[*]-style '.concat(e,' mb-4">');
1c.forEach(e=>{n+='<li class="'.concat(i,'">• ').concat(e,"</li>")}),n+="</ul>",a.push(n),c=[],d=!1}}else d&&(d=!1,c=[]),i?a.push(i):a.push("")}o=(o=(o=(o=a.join("\n")).replace(/\n\s*\n\s*\n/g,"\n\n")).replace(/[ \t]+\n/g,"\n")).replace(/<ul([^>]*)>([\s\S]*?)<\/ul>/g,(e,t,l)=>{let i=l.replace(/<br\s*\/?>/g,"");return"<ul".concat(t,">").concat(i,"</ul>")});let u=o.split("\n"),m=[];for(let e=0;e<u.length;e+=1){let t=u[e].trim();if(t){let e=/^<[^>]+>.*<\/[^>]+>$/.test(t)||/^<[^>]+\s*\/>$/.test(t)||/^<[^>]+>/.test(t);if(e)m.push(t);else{let e=(null===(i=s.className)||void 0===i?void 0:i.p)||"";m.push('<p class="'.concat(e,'">').concat(t,"</p>"))}}else m.push("<br />")}return m.join("\n")}(t,l);return(0,n.jsx)("div",{className:i,dangerouslySetInnerHTML:{__html:s}})},b=l(5242),y=l(164),Components_ProductAccordionFeatureList=e=>{let{block:t}=e;return(0,n.jsx)("section",{className:"product-accordion-feature-list max-w-[45rem] px-4 md:px-6 xl:px-0",children:(0,n.jsx)("ul",{className:"product-stats-list space-y-3",children:(null==t?void 0:t.featureListItems)&&(null==t?void 0:t.featureListItems.map(e=>(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"mr-[10px] bg-black h-[1.188rem] w-[1.188rem] rounded-full flex-center",children:(0,n.jsx)(y.Z,{fill:"white"})})}),(0,n.jsx)(g.Z,{className:"text-lg leading-6",children:e.text})]})))})})},N=l(9577),Components_ProductAccordionText=e=>{let{block:t}=e;return(0,n.jsx)("section",{className:"product-accordion-text md:px-6 xl:px-0",children:(0,n.jsx)(g.Z,{innerHtml:null==t?void 0:t.text})})},ProductAccordion_ProductAccordionDesc=e=>{let{descriptionBlocks:t}=e;return(0,n.jsx)("div",{className:"product-accordion-desc flex flex-col gap-7 pt-2",children:null==t?void 0:t.map(e=>(0,n.jsxs)(r.Fragment,{children:["textDesc"===e.component&&(0,n.jsx)(Components_ProductAccordionText,{block:e}),"featureListDesc"===e.component&&(0,n.jsx)(Components_ProductAccordionFeatureList,{block:e}),"assetDesc"===e.component&&(0,n.jsx)(b.Z,{block:e}),"imageSliderDesc"===e.component&&(0,n.jsx)(N.Z,{title:e.title,slides:e.imageSlides})]},e._uid))})},w=l(8667),_=l(5568),S=l(4978),k=l(6985),P=l(129),ProductFaq_ProductFaq=e=>{var t;let{block:l}=e;return(0,n.jsx)("section",{className:"product-faq space-y-4 px-4 md:px-6 xl:px-0",children:l&&(null===(t=l.faq)||void 0===t?void 0:t.map(e=>{var t,l,i,s,o;let r;return(0,P.Ac)(null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.filename)&&(r=null==e?void 0:null===(s=e.image)||void 0===s?void 0:s.filename),(null==e?void 0:e.video)&&(r=null==e?void 0:e.video),(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(g.Z,{className:"text-lg font-semibold",children:e.title}),e.text&&(null===(l=e.text)||void 0===l?void 0:l.content)?(0,n.jsx)(g.Z,{innerHtml:e.text}):(0,n.jsx)(g.Z,{children:e.text}),(0,P.KI)(e.imageSlider)&&e.imageSlider&&(0,n.jsx)("div",{className:"-mx-4 md:-mx-6 xl:mx-0",children:(0,n.jsx)(S.Z,{className:"gap-2 px-4 md:px-6 xl:px-0 xl:grid xl:grid-cols-2",children:e.imageSlider.map(e=>{var t;return(0,n.jsx)(_.Z,{image:null!==(t=e.image.filename)&&void 0!==t?t:"",children:(0,n.jsx)(w.Z,{image:null==e?void 0:e.image,height:350,width:300,className:"w-full"})},e._uid)})})}),((0,P.NI)(e.image)||r)&&(0,n.jsx)("div",{className:"relative aspect-h-9 aspect-w-16",children:(0,n.jsxs)(_.Z,{image:r||(null!==(o=null===(i=e.image)||void 0===i?void 0:i.filename)&&void 0!==o?o:""),children:[!r&&(0,n.jsx)(w.Z,{fill:!0,image:e.image}),r&&(0,n.jsx)(k.Z,{video:r,endedVideoImage:null==e?void 0:e.endedVideoImage})]})})]},e._uid)}))})},ProductAccordion_ProductAccordion=e=>{let{faqBlock:t,descriptionBlocks:l,openAccordionItem:i,product:s,remoteProduct:o}=e,a=(0,d.Z)(),[c,u]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let e=[];(null==s?void 0:s.prd_description)&&e.push({_uid:"1",title:a.formatMessage({id:"Material & Care"}),type:"material-and-care"}),(l||(null==t?void 0:t.faq))&&e.push({_uid:"2",title:a.formatMessage({id:"Product guide"}),type:"product-guide"});let i=setTimeout(()=>{var t,l,i;let n=null===(t=document.getElementById("gmf-product-rating"))||void 0===t?void 0:t.innerHTML;n&&"<!---->"!==n&&(null==o?void 0:null===(i=o.items)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.sku)&&e.push({_uid:"3",title:a.formatMessage({id:"Reviews"}),type:"reviews"}),u(e)},500);return()=>clearTimeout(i)}
1,[l,t,o,s,a]),(0,n.jsx)(n.Fragment,{children:c.length>0&&(0,n.jsx)("section",{className:"product-accordion",children:(0,n.jsx)(f.Z,{items:c,variant:"plus",reviewAccordion:c.findIndex(e=>"reviews"===e.type),openAccordionItem:i,children:c.map(e=>{var i,r,a;return(0,n.jsxs)("div",{children:["material-and-care"===e.type&&(0,n.jsx)(elements_BBCodeContent,{content:null!==(a=null==s?void 0:s.prd_description)&&void 0!==a?a:"",className:"product-accordion-desc mb-4"}),"product-guide"===e.type&&(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[l&&(null==l?void 0:l.length)>0&&(0,n.jsx)(ProductAccordion_ProductAccordionDesc,{descriptionBlocks:l}),(0,n.jsx)(ProductFaq_ProductFaq,{block:t})]}),"reviews"===e.type&&(null==o?void 0:null===(i=o.items[0])||void 0===i?void 0:i.sku)&&(0,n.jsx)("div",{className:"min-h-[70rem]",id:"gmf-comment-section","data-product-id":null==o?void 0:null===(r=o.items[0])||void 0===r?void 0:r.sku})]},e._uid)})})})})},Z=l(4838),I=l(9493),B=l(4012),C=l(8720),A=l(7102),M=l(2848),PriceHistory_PriceHistory=e=>{var t,l,i,s;let{remoteProduct:o}=e,[d,c]=(0,r.useState)(!1),{selection:u}=(0,a.yr)(),m=Number(null==o?void 0:o.priceAsNumber)<Number(null==o?void 0:null===(l=o.lowestPrice)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.priceAsNumber)?null==o?void 0:o.priceAsNumber:null==o?void 0:null===(s=o.lowestPrice)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:i.priceAsNumber;return(0,n.jsx)("div",{className:"min-h-[27px] relative",children:(null==o?void 0:o.lowestPrice)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{className:"text-md underline hover-opacity w-fit",variant:"no-style",onClick:()=>c(!d),children:(0,n.jsx)(B.Z,{id:"Price history"})}),(0,n.jsxs)(A.Z,{className:"w-max text-sm flex py-2 px-3 mt-2 top-full md:right-0",shadow:"drop-shadow-price-history",state:d,setState:c,variant:"no-style",zIndex:"z-[51]",children:[(0,n.jsx)(g.Z,{className:"mr-4",children:(0,n.jsx)(B.Z,{id:"Lowest price in last 30 days"})}),(0,n.jsx)(g.Z,{children:m&&(0,M.T4)(m,u.currency)})]})]}):null})},z=l(3935),T=l(5436),ecom_ProductSizeSelector=e=>{let{product:t,openSizeMenu:l,setOpenSizeMenu:i,handleSelectItem:s,setSelectedItem:o,setBackInStockMenuOpen:r}=e,handleOutOfStock=e=>{i(!1),o(e.sku),r(!0)};return(0,n.jsx)(A.Z,{state:l,setState:i,className:"product-size-selector max-w-xs w-full flex flex-wrap md:max-w-[100%] bottom-full right-0 lg:top-full lg:bottom-auto",variant:"no-style",children:t.items.map(e=>"yes"===e.stock?(0,n.jsx)(T.Z,{className:"text-left px-6 py-3 hover:no-underline lg:hover:bg-c-aqua lg:hover:bg-opacity-30 ".concat("yes"===e.stock?"":"opacity-60 pointer-events-none"),onClick:()=>s(e,"yes"===e.stock?"yes":"no"),children:e.name},e.item):(0,n.jsxs)(T.Z,{className:"text-left px-6 py-3 hover:no-underline w-full lg:hover:bg-c-aqua lg:hover:bg-opacity-30",onClick:()=>handleOutOfStock(e),children:[e.name,(0,n.jsx)("span",{className:"ml-4",children:(0,n.jsx)(B.Z,{id:"Notify me"})})]},e.item))})},D=l(6624),E=l(6196),ecom_AddToCartLoader=e=>{let{itemAddedToCart:t,isLoading:l,className:i="",children:s}=e;return(0,n.jsx)("div",{className:"".concat(i," add-to-cart-loader flex justify-center absolute-center uppercase"),children:t?(0,n.jsx)(E.Z,{fill:"white"}):l?(0,n.jsx)(D.Z,{white:!0,className:"justify-center"}):(0,n.jsx)(n.Fragment,{children:s})})},L=l(4515);let addItemWithComment=async e=>{let{productId:t,itemSku:l,defaultText:i,text:n,color:s,font:o,checkoutToken:r,language:a}=e,d="".concat(l,"|").concat(i&&""!==i?"".concat(i," "):"").concat(n,"|").concat(s,"|").concat(o),c=await (0,L.Z)({endpoint:"/add-item-server-side?productId=".concat(t,"&comment=").concat(d,"&checkoutToken=").concat(r,"&language=").concat(a)});return c};var O=l(2361);let W=["dk","no","se"],isStockEnabledLocale=e=>!!e&&W.some(t=>e.endsWith(t)),V=["en-eu","en-ww"],isIngridProductPageWidgetLocale=e=>!!e&&!V.includes(e),loadIngridProductPageWidget=()=>window._ingridPDPWidgetApi?Promise.resolve(window._ingridPDPWidgetApi):(i||(i=new Promise((e,t)=>{let l=document.createElement("script");l.src="https://cdn.ingrid.com/product-page-widget/bootstrap.js",l.type="module",l.onload=()=>
1{window._ingridPDPWidgetApi?e(window._ingridPDPWidgetApi):t(Error("Ingrid product page widget failed to initialize"))},l.onerror=()=>{i=void 0,l.remove(),t(Error("Ingrid product page widget failed to load"))},document.body.appendChild(l)})),i),notifyIngridItemAdded=e=>{var t;e&&(null===(t=window._ingridPDPWidgetApi)||void 0===t||t.onItemAdded(e))},toMinorUnits=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Math.round(100*e)},toIngridLocale=e=>{let[t,l=""]=e.split("-");return"en"===t&&"gb"!==l?"en-US":"".concat(t,"-").concat(l.toUpperCase())},buildIngridProductPageWidgetConfig=(e,t,l)=>{var i,n,s,o,r,a,d,c;let u="ingrid-http-auth-token:3d86843a-5c46-4e0c-a241-e502dfb35365",m=null===(i=e.location)||void 0===i?void 0:i.country,v=null===(n=t.items[0])||void 0===n?void 0:n.sku;if(!u||!e.token||!m||!e.currency||!v)return;let p=(null!==(a=null===(s=e.totals)||void 0===s?void 0:s.grandTotalPriceAsNumber)&&void 0!==a?a:0)-(null!==(d=null===(o=e.totals)||void 0===o?void 0:o.shippingPriceAsNumber)&&void 0!==d?d:0);return{auth_token:u,country:m,currency:e.currency,locales:[toIngridLocale(l)],cart:{cart_id:e.token,total_value:toMinorUnits(p),items:null!==(c=null===(r=e.items)||void 0===r?void 0:r.map(e=>{var t,l;return{sku:e.sku,name:null!==(l=null===(t=e.product)||void 0===t?void 0:t.name)&&void 0!==l?l:"",price:toMinorUnits(e.priceEachAsNumber),quantity:e.quantity}}))&&void 0!==c?c:[]},viewed_item:{sku:v,name:t.name,price:toMinorUnits(t.priceAsNumber),out_of_stock:t.items.every(e=>"yes"!==e.stock)}}};var Icons_Dot=e=>{let{className:t="",fill:l="black"}=e;return(0,n.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"24.353",height:"24.27",viewBox:"0 0 24.353 24.27",children:(0,n.jsx)("path",{id:"Dot",d:"M12.908,25.536c-1.66-1.283-3.381-3.225-2.711-5.211.552-1.641,2.65-2.372,4.31-1.877a6.914,6.914,0,0,1,3.758,3.409c.858,1.509,1.424,3.164,2.3,4.664a2.643,2.643,0,0,0,.934,1.047,1.932,1.932,0,0,0,2.141-.406,4.58,4.58,0,0,0,1.122-2.009c.707-2.15,1.391-4.876,3.6-5.347,1.948-.415,3.8,1.566,3.829,3.556a6.777,6.777,0,0,1-2.792,5.05c-.641.528-1.415,1.2-1.221,2.009a1.918,1.918,0,0,0,.688.943,16.6,16.6,0,0,1,2.711,2.523,3.114,3.114,0,0,1,.344,3.466,2.94,2.94,0,0,1-2.65,1.089,8.665,8.665,0,0,1-2.843-.9l-4.31-1.933c-.707,1.311-1.113,2.768-1.815,4.079a5.16,5.16,0,0,1-3.273,2.829c-1.462.292-3.207-.745-3.207-2.235,0-.948.66-1.877.391-2.787a2.374,2.374,0,0,0-1.995-1.405A10.734,10.734,0,0,1,9.7,35.628,3.381,3.381,0,0,1,8.31,31.138,4.874,4.874,0,0,1,12.667,28.7a8.758,8.758,0,0,1,3.673,1.1c-.118-1.858-2.056-3.211-3.428-4.268Z",transform:"translate(-7.963 -18.296)",fill:l})})},ProductSingle_ProductUsp=e=>{let{productUsp:t,mobileVersion:l}=e;return(0,n.jsx)("ul",{className:"product-usp mt-6 flex-wrap gap-x-6 gap-y-3 items-center min-h-[24px] md:gap-x-8 md:gap-y-4 ".concat(l?"hidden md:flex":"flex"),children:t&&t.map(e=>{var t,l;return(0,n.jsx)("li",{className:"justify-center md:flex",children:(0,n.jsxs)(p.Z,{className:"flex-row-center gap-2 text-sm ".concat((null===(t=e.link)||void 0===t?void 0:t.cached_url)?"hover-underline":""),href:null===(l=e.link)||void 0===l?void 0:l.cached_url,children:[(0,n.jsx)(Icons_Dot,{}),(0,n.jsx)(g.Z,{className:"text-md font-medium ml-1",children:e.title})]})},e._uid)})})},F=l(5840),R=l(2403);let q="ingrid-product-page-widget";var ProductSingle_IngridProductPageWidget=e=>{var t;let{remoteProduct:l,isMobile:i=!1}=e,{selection:s}=(0,a.yr)(),{locale:o}=(0,v.useRouter)(),d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!1);(0,F.Z)(()=>{u(window.innerWidth<(0,R.Z)("md")===i)});let m=c&&isIngridProductPageWidgetLocale(o),p=l&&o?JSON.stringify(null!==(t=buildIngridProductPageWidgetConfig(s,l,o))&&void 0!==t?t:null):"null";return((0,r.useEffect)(()=>{let e=JSON.parse(p);if(!m||!e)return;let t=!1;return loadIngridProductPageWidget().then(l=>{!t&&d.current&&(d.current.innerHTML="",l.render(q,e))}).catch(e=>console.warn(e)),()=>{t=!0}},[m,p]),m)?(0,n.jsx)("div",{ref:d,id:q,className:"mt-3 -mb-3"}):null},H=l(3828),Icons_Pencil=function(e){let{className:t="",fill:l="black"}=e;return(0,n.jsx)("svg",{className:(0,H.Z)(null!=t?t:"",""),width:17.415,height:17.199,children:(0,n.jsxs)("g",{"data-name":"Group 120",fill:"none",stroke:l,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{"data-name":"Path 58",d:"m7.293 15.151 8.615-8.157a3.692 3.692 0 0 0-.244-5.295h0a3.692 3.692 0 0 0-5.208-.231l-8.38 8.554a10.923 10.923 0 0 1 3.161 2.021 10.68 10.68 0 0 1 2.056 3.108Z"}),(0,n.jsx)("path",{"data-name":"Path 59",d:"m1.402 16.673 5.886-1.515a10.679 10.679 0 0 0-2.053-3.11 10.923 10.923 0 0 0-3.159-2.024L.529 15.791a.74.74 0 0 0 .873.882Z"})]})})},ProductBundle_BundleAddToCart=e=>{var t;let{remoteProduct:l,addBundle:i,bundleSections:s,bundle:o,isSimpleBundle:d,bundleIsInitiallyLoading:c}=e,{setAddedToCartMenuOpen:m,setOpenBundleModal:v}=(0,r.useContext)(u.V),{selection:p}=(0,a.yr)(),[x,h]=(0,r.useState)(!1),[f,j]=(0,r.useState)(!1),handleAddBundle=e=>{j(!0),i(e).then(e=>{if(j(!1),e&&(h(!0),m(!0)),null==e?void 0:e.success){var t;notifyIngridItemAdded(null==l?void 0:null===(t=l.items[0])||void 0===t?void 0:t.sku)}})};(0,r.useEffect)(()=>{x&&setTimeout(()=>{h(!1)},3e3)},[x,p]);let b=(null==o?void 0:o.sections.length)===s.length;return(0,n.jsxs)("div",{className:"w-full flex space-x-2",children:[!d&&(0,n.jsxs)(C.Z,{className:"uppercase font-medium w-full flex-1 h-[48px] relative text-md flex items-center justify-center",variant:"black",paddingClasses:"pt-[0.7rem] pb-[0.7rem] px-[0.6rem]",onClick:()=>v(!0),children:[(0,n.jsx)(Icons_Pencil,{className:"".concat(c?"opacity-0":""," lg:hidden")}),(0,n.jsx)(g.Z,{className:"".concat(""," ").concat(c?"opacity-0":""),children:(0,n.jsx)(B.Z,{id:"customize"})})]}),b&&(0,n.jsx)(C.Z,{className:"uppercase font-medium w-full flex-1 h-[48px] relative text-md flex items-center justify-center",variant:"black",paddingClasses:"pt-[0.7rem] pb-[0.7rem] px-[0.6rem]",onClick:()=>{var e;return handleAddBundle(null!==(e=null==l?void 0:l.items[0].item)&&void 0!==e?e:"")},disabled:!!l&&null!=p&&!!p.location&&!(0,M._e)(l),children:(0,n.jsx)(ecom_AddToCartLoader,{itemAddedToCart:x,isLoading:f,className:"w-full",children:(0,n.jsx)(B.Z,{id:null!==(t=(0,M.GJ)(l))&&void 0!==t?t:""})})})]})},ProductDetails_PersonalizedProduct=e=>{var t,l;let{errorAddingPersonalizedProduct:i,globalContent:s,personalizedProductPrice:o}=e,[a,d]=(0,r.useState)(!1),{addedToCartMenuOpen:c,setPersonalizationMenuOpen:m,personalizationData:v,setPersonalizationData:p}=(0,r.useContext)(u.V);return c&&p(null),v?(0,n.jsxs)("div",{className:"mb-2 min-h-[66px] lg:mb-4",children:[(null==s?void 0:s.selected_personalization_title)?(0,n.jsx)(g.Z,{className:"text-md md:text-lg font-semibold min-h-[30px] w-fit",children:null===(t=s.selected_personalization_title)||void 0===t?void 0:t.replaceAll('"productPrice"',null!=o?o:"")}):(0,n.jsx)(g.Z,{className:"text-lg font-semibold min-h-[30px] w-fit",children:(0,n.jsx)(B.Z,{id:"Customization"})}),(0,n.jsxs)("div",{className:"flex gap-6",children:[(0,n.jsx)(g.Z,{className:"text-md md:text-lg w-fit",children:(null==v?void 0:v.defaultText)?"".concat(v.defaultText," ").concat(v.text):null==v?void 0:v.text}),(0,n.jsxs)("div",{className:"customization buttons flex gap-2",children:[(0,n.jsx)(C.Z,{className:"text-sm underline hover-opacity w-fit",variant:"no-style",onClick:()=>m(!0),children:(0,n.jsx)(B.Z,{id:"Edit"})}),(0,n.jsx)(C.Z,{className:"text-sm underline hover-opacity w-fit",variant:"no-style",onClick:()=>p(null),children:(0,n.jsx)(B.Z,{id:"Remove"})})]})]}),i&&(0,n.jsx)("div",{className:"py-1.5 px-2.5 bg-c-light-red w-fit text-white text-sm mt-2 font-medium",children:(0,n.jsx)(B.Z,{id:"Error adding personalized product"})})]}):(0,n.jsx)("div",{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:(0,n.jsxs)(C.Z,{className:"flex-center gap-4 uppercase font-semibold w-full flex-1 text-sm h-[66px] relative mb-2 xs:text-md lg:mb-4",variant:"black-outlined",paddingClasses:"pt-[1.2rem] pb-[1rem] px-[0.6rem]",onClick:()=>m(!0),children:[(null==s?void 0:s.personalization_button_text)&&(0,n.jsx)("span",{className:"mt-0.5",children:null==s?void 0:null===(l=s.personalization_button_text)||void 0===l?void 0:l.replaceAll('"productPrice"',null!=o?o:"")}),(0,n.jsx)(Icons_Pencil,{fill:a?"white":"black"})]})})},G=l(5374),U=l(2769),$=l(9359),J=l(9969);let useVoyadoBackInStockSubscription=()=>{let{locale:e}=(0,v.useRouter)(),{selection:t}=(0,a.yr)(),[l,i]=(0,r.useState)(!1),[n,s]=(0,r.useState)(void 0),[o,d]=(0,r.useState)(!1),reset=()=>{s(void 0),d(!1)},voyadoBackInStockSubscription=async(l,n,o)=>{try{var r;i(!0),reset();let a=(0,J.Z)(e),c={email:l,sku:n,acceptemail:o,store:"najell.centra",locale:a.voyadoLocale,externalId:null===(r=t.location)||void 0===r?void 0:r.market.toString()}
1,u=new Request("https://accelerator.voyado.com/api/v1/centra/back-in-stock/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},...c&&{body:JSON.stringify(c)}}),m=await fetch(u);if(m.ok){s(!0),i(!1);return}d(!0)}catch(e){e instanceof Error?console.error("Voyado back in stock subscription - Failed to fetch: ".concat(e.message)):console.error("Voyado back in stock subscription - Failed to fetch: Unknown error")}i(!1)};return{voyadoBackInStockSubscription,isLoading:l,subscribeSuccess:n,subscribeError:o,setSubscribeError:d}};var ProductDetails_BackInStock=e=>{let{backInStockMenuOpen:t,setBackInStockMenuOpen:l,selectedItem:i,globalContent:s}=e,o=(0,d.Z)(),{asPath:a}=(0,v.useRouter)(),c=(0,r.useRef)(null),{voyadoBackInStockSubscription:u,isLoading:m,subscribeSuccess:p,subscribeError:x,setSubscribeError:h}=useVoyadoBackInStockSubscription(),[f,j]=(0,r.useState)(""),handleBackInStockSubscription=async e=>{var t;e.preventDefault(),i&&(null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.checked)!==void 0&&u(f,i,c.current.checked)};return(0,r.useEffect)(()=>
1{l(!1),j("")},[a,l]),(0,n.jsx)(A.Z,{state:t,setState:l,className:"back-in-stock w-full flex flex-wrap bottom-full right-0 max-w-md md:max-w-full",variant:"no-style",children:(0,n.jsx)("form",{className:"p-4 pt-8 w-full max-w-[34rem] mx-auto",onSubmit:e=>handleBackInStockSubscription(e),children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(C.Z,{className:"absolute -top-2 right-0",biggerTouchZone:!0,onClick:()=>l(!1),variant:"no-style",children:(0,n.jsx)(G.Z,{})}),(0,n.jsxs)("header",{className:"mb-6",children:[(null==s?void 0:s.back_in_stock_title)?(0,n.jsx)(g.Z,{className:"text-lg font-medium mb-2",children:null==s?void 0:s.back_in_stock_title}):(0,n.jsx)(g.Z,{className:"text-lg font-medium mb-2",children:(0,n.jsx)(B.Z,{id:"Monitor product"})}),(0,n.jsx)(g.Z,{className:"max-w-[24rem] min-h-[54px] ".concat(p?"text-c-green":""),children:!0===p?(0,n.jsx)(n.Fragment,{children:(null==s?void 0:s.back_in_stock_success_message)?(0,n.jsx)("span",{children:null==s?void 0:s.back_in_stock_success_message}):(0,n.jsx)(B.Z,{id:"You are now registerd for a notification when the product gets back in stock"})}):(0,n.jsx)(n.Fragment,{children:(null==s?void 0:s.back_in_stock_description)?(0,n.jsx)("span",{children:null==s?void 0:s.back_in_stock_description}):(0,n.jsx)(B.Z,{id:"Fill in your email address below and we will notify you when the item is back in stock"})})})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(U.Z,{type:"email",value:f,onChange:e=>j(e.target.value),className:"w-full",placeholder:o.formatMessage({id:"Your email address"}),onClick:e=>handleBackInStockSubscription(e),validation:p}),(0,n.jsx)($.Z,{state:x,setState:h,className:"top-[calc(100%-1rem)] right-0 my-4 w-full text-center text-red-500 ".concat(p?"opacity-0 pointer-events-none":""),fadeIn:!0,children:(null==s?void 0:s.back_in_stock_error_message)?(0,n.jsx)("span",{children:null==s?void 0:s.back_in_stock_error_message}):(0,n.jsx)(B.Z,{id:"errorNewsletter"})}),m&&(0,n.jsx)("div",{className:"absolute-cover bg-white/50 flex-center",children:(0,n.jsx)(D.Z,{className:"scale-[0.85]"})})]}),(0,n.jsx)("div",{className:"flex h-6 items-center my-5",children:(0,n.jsx)("label",{className:"font-medium cursor-pointer",htmlFor:"newsletter",children:(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsx)("input",{className:"h-4 w-4 rounded border-gray-300 cursor-pointer",id:"newsletter",type:"checkbox",ref:c}),(0,n.jsx)("span",{className:"font-medium text-sm cursor-pointer text-gray-900 ml-3",children:(0,n.jsx)(B.Z,{id:"Subscribe to newsletter"})})]})})})]})})})};let useGetWarehouseNames=()=>{let[e,t]=(0,r.useState)(!0),[l,i]=(0,r.useState)(null),n=(0,v.useRouter)(),s=(0,r.useCallback)(async()=>{var e;if(!n.locale)return;let l=await fetch("/api/get-warehouses-names"),s=await l.json();i(null!==(e=s.warehouses)&&void 0!==e?e:null),t(!1)},[n.locale]);return(0,r.useEffect)(()=>{s()},[s]),{isLoading:e,warehouseNames:l}},useGetWarehouseData=()=>{let[e,t]=(0,r.useState)(!0),[l,i]=(0,r.useState)(null),getWarehouseData=async()=>{var e;let l=await fetch("/api/get-warehouses-data"),n=await l.json();i(null!==(e=n.brickAndMortars)&&void 0!==e?e:null),t(!1)};return(0,r.useEffect)(()=>{getWarehouseData()},[]),{isLoading:e,brickAndMortars:l}},useProductAndGetWarehouses=e=>{let{productId:t}=e,[l,i]=(0,r.useState)(!0),[n,s]=(0,r.useState)(null),[o,d]=(0,r.useState)(null),{locale:c}=(0,v.useRouter)(),{selection:u}=(0,a.yr)(),{warehouseNames:m,isLoading:p}=useGetWarehouseNames(),getProductAndWarehouses=async()=>{var e;if(!c)return;let l=await fetch("/api/get-warehouses-by-product-id?productId=".concat(t,"&language=").concat(c)),n=await l.json();s(null!==(e=n.product.items)&&void 0!==e?e:null),i(!1)};(0,r.useEffect)(()=>{if(n&&m&&!p){let e=n.map(e=>{var t;return{...e,warehouses:null===(t=e.warehouses)||void 0===t?void 0:t.map(e=>{let t=m.find(t=>t.warehouse===String(e.warehouse));return{...e,name:null==t?void 0:t.name,warehouse:e.warehouse}})}});d(e)}},[n,m,p]);let handleGetProductAndWarehouses=()=>{(null==u?void 0:u.location)&&t&&getProductAndWarehouses()};return(0,r.useEffect)(()=>{handleGetProductAndWarehouses()},[t,c,null==u?void 0:u.location]),{isLoading:l||p,itemsWithWarehouses:o}};var ProductDetails_WarehouseStock=e=>{var t,l;let{product:i}=e,{selection:s}=(0,a.yr)(),o=(0,d.Z)(),{itemsWithWarehouses:c,isLoading:u}=useProductAndGetWarehouses({productId:(null==i?void 0:i.product)||""}),[m,v]=(0,r.useState)(null),[p,x]=(0,r.useState)([]),{brickAndMortars:h}=useGetWarehouseData(),translateOpeningHours=e=>e.map(e=>{let t=e.split(" "),l=t[0],i=t.slice(1).join(" "),n=o.formatMessage({id:l});if("Closed"===i){let e=o.formatMessage({id:"Closed"});return"".concat(n," ").concat(e)}return"".concat(n," ").concat(i)}),f=null==c?void 0:null===(l=c[0])||void 0===l?void 0:null===(t=l.warehouses)||void 0===t?void 0:t.filter(e=>{var t,l;let i=null===(t=s.location)||void 0===t?void 0:t.country,n=null==h?void 0:null===(l=h.find(t=>t.warehouse===e.warehouse))||void 0===l?void 0:l.countryCode;return i===n&&e.stock>0&&(null==h?void 0:h.some(t=>t.warehouse===e.warehouse))}),toggleShowOpeningHours=e=>{if(m===e)v(null),x([]);else{let t=null==h?void 0:h.find(t=>t.warehouse===e);if(t){let l=translateOpeningHours(t.openingHours.weekday_text);x(l),v(e)}}};return(0,n.jsx)(n.Fragment,{children:!u&&f&&f.length>0?(0,n.jsxs)("div",{className:"p-3 bg-c-aqua/15",children:[(0,n.jsx)(g.Z,{className:"font-medium text-sm lg:text-base mb-2",children:(0,n.jsx)(B.Z,{id:"Available in store"})}),(0,n.jsx)("div",{className:"flex flex-col divide-y divide-gray-300",children:f.map(e=>e.stock>0&&(0,n.jsxs)("div",{className:"flex items-start justify-between py-3 first:pt-0 last:pb-0",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(g.Z,{className:"text-sm",children:e.name}),m===e.warehouse&&p&&(null==p?void 0:p.length)>0&&(0,n.jsx)("div",{className:"flex flex-col mt-2",children:p.map((e,t)=>(0,n.jsx)(g.Z,{className:"text-sm whitespace-pre-line",children:e},t))}),(0,n.jsx)(C.Z,{variant:"underline",className:"mt-1 text-sm w-fit",onClick:()=>toggleShowOpeningHours(e.warehouse),children:(0,n.jsx)(B.Z,{id:m===e.warehouse?"Read less":"Read more"})})]}),(0,n.jsxs)("div",{className:"flex items-center justify-start gap-1",children:[(0,n.jsx)(g.Z,{className:"font-medium text-sm lg:text-base",children:(0,n.jsx)(B.Z,{id:"In stock"})}),(0,n.jsx)("div",{className:"h-[5px] w-[5px] rounded-full bg-c-green"})]})]},e.warehouse))})]}):u&&(0,n.jsx)("div",{className:"p-4 h-[106px] bg-c-aqua/15 flex-center",children:(0,n.jsx)(D.Z,{className:"scale-[0.7]"})})})},ProductDetails_AddToCart=e=>{var t,l,i,s;let{product:o,openSizeMenu:d,setOpenSizeMenu:c,productUsp:m,mobileVersion:p,bundle:x,remoteProduct:h,addBundle:g,bundleSections:f,globalContent:j,personalizedProductPrice:b,errorAddingPersonalizedProduct:y,setErrorAddingPersonalizedProduct:N,isSimpleBundle:_,bundleIsInitiallyLoading:S,productTicket:k,scrollToReviews:P}=e,{setAddedToCartMenuOpen:A,personalizationData:z,setLatestProductAddedToCart:T}=(0,r.useContext)(u.V),{addItem:D,selection:E,updateSelectionState:L}=(0,a.yr)(),{locale:W}=(0,v.useRouter)(),[V,F]=(0,r.useState)(!1),[R,q]=(0,r.useState)(!1),[H,G]=(0,r.useState)(!1),[U,$]=(0,r.useState)(void 0),J=(null==o?void 0:o.pr_personalized_product_value)&&(null==o?void 0:o.pr_personalized_product_value)==="1",handleAddItem=async e=>{var t,l,i,n,s,r,d;if(F(!0),J&&(null==z?void 0:z.text)){let s=await a.tJ.getSelection(),r=null==h?void 0:h.relatedProducts.find(e=>"Bundle"===e.relation);await D(null!==(l=null==r?void 0:null===(t=r.items[0])||void 0===t?void 0:t.item)&&void 0!==l?l:"",1,r),await addItemWithComment({productId:null!==(i=o.product)&&void 0!==i?i:"",itemSku:null!==(n=null==e?void 0:e.sku)&&void 0!==n?n:"",defaultText:null==z?void 0:z.defaultText,text:null==z?void 0:z.text,color:z.colorStyle,font:z.fontStyle,checkoutToken:s.token,language:null!=W?W:"en"}).then(async t=>{var l;if(!t.ok){N(!0),F(!1);return}notifyIngridItemAdded(null==e?void 0:e.sku),!t.ok||(null==t?void 0:null===(l=t.remoteSelection)||void 0===l?void 0:l.errors)||L(t.remoteSelection)})}else{let{success:t}=await D(null!==(s=null==e?void 0:e.item)&&void 0!==s?s:"",1,h);t&&notifyIngridItemAdded(null==e?void 0:e.sku)}F(!1),q(!0),A(!0),T({sku:null!==(r=null==e?void 0:e.sku)&&void 0!==r?r:"",collection:null!==(d=null==o?void 0:o.collection)&&void 0!==d?d:""}),k&&W&&(0,O.wy)(k,W)},handleSelectItem=(e,t)=>
1{c(!1),"yes"===t&&e?handleAddItem(e):($(null==e?void 0:e.sku),G(!0))};return(0,r.useEffect)(()=>{R&&setTimeout(()=>{q(!1)},3e3)},[R,E]),(0,r.useEffect)(()=>{var e;if(!(null==h?void 0:null===(e=h.items[0])||void 0===e?void 0:e.sku))return;let t=document.getElementById("gmf-product-rating-container");if(t){let e=document.getElementById("gmf-product-rating");e&&e.remove();let l=document.createElement("div");l.id="gmf-product-rating",l.className="gmf-product-rating",l.setAttribute("data-compact",""),l.setAttribute("data-product-id",h.items[0].sku),l.setAttribute("data-size","medium"),t.appendChild(l)}},[null==h?void 0:h.items]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("section",{className:"hidden md:block left-0 bg-white w-full z-50 default-transition drop-shadow md:relative md:drop-shadow-none md:mb-6",children:(0,n.jsxs)("div",{className:"flex relative justify-between gap-4 pr-4 mx-auto sm:gap-x-0 md:max-w-none md:pr-0",children:[(0,n.jsx)("div",{className:"min-w-[80px] min-h-[100px] bg-gray-radial-gradient flex-center md:hidden",children:(null==o?void 0:o.media)&&(0,n.jsx)("div",{className:"img-w-full",children:(0,n.jsx)(w.Z,{height:80,width:80,src:null===(t=o.media[0].sources.standard)||void 0===t?void 0:t.url,alt:o.name})})}),(0,n.jsx)("div",{className:"py-5 hidden flex-1 sm:block md:hidden",children:(0,n.jsx)(Z.Z,{textLg:!0,boldFont:!0,price:h,className:"mb-1 sm:flex-col"})}),(0,n.jsxs)("div",{className:"w-full flex-[2] sm:w-auto sm:min-w-[14rem] py-3 flex-col justify-between sm:py-5 md:py-0",children:[(0,n.jsx)("div",{className:"sm:hidden",children:(0,n.jsx)(Z.Z,{textLg:!0,mediumFont:!0,price:h,className:"mb-2 sm:flex-col"})}),J&&b&&(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(ProductDetails_PersonalizedProduct,{globalContent:j,errorAddingPersonalizedProduct:y,personalizedProductPrice:b})}),(0,n.jsx)("div",{className:"flex gap-1 md:relative",children:x?(0,n.jsx)(ProductBundle_BundleAddToCart,{remoteProduct:h,addBundle:g,bundleSections:f,bundle:x,isSimpleBundle:_,bundleIsInitiallyLoading:S}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{className:"font-medium w-full flex-1 h-[48px] relative text-md",variant:"black",paddingClasses:"pt-[0.7rem] pb-[0.5rem] px-[0.6rem]",onClick:()=>{var e,t;return h&&(null==h?void 0:null===(e=h.items)||void 0===e?void 0:e.length)>1?c(!d):handleSelectItem(null!==(t=h&&h.items[0])&&void 0!==t?t:void 0,(null==h?void 0:h.items[0].stock)==="yes"?"yes":"no")},children:(0,n.jsx)(ecom_AddToCartLoader,{itemAddedToCart:R,isLoading:V,children:(0,n.jsx)("span",{children:(0,n.jsx)(B.Z,{id:null!==(s=(0,M.GJ)(h))&&void 0!==s?s:""})})})}),h&&(null==h?void 0:null===(l=h.items)||void 0===l?void 0:l.length)>1&&(0,n.jsx)(ecom_ProductSizeSelector,{product:h,openSizeMenu:d,setOpenSizeMenu:c,handleSelectItem:handleSelectItem,setSelectedItem:$,setBackInStockMenuOpen:G})]})}),isStockEnabledLocale(W)&&(0,n.jsx)(ProductDetails_WarehouseStock,{product:o}),(0,n.jsx)(ProductSingle_IngridProductPageWidget,{remoteProduct:h}),(0,n.jsx)(ProductDetails_BackInStock,{backInStockMenuOpen:H,setBackInStockMenuOpen:G,selectedItem:U,globalContent:j}),(0,n.jsx)(ProductSingle_ProductUsp,{productUsp:m,mobileVersion:p}),(0,n.jsx)("div",{className:"min-h-[20px] mt-5",children:(null==h?void 0:null===(i=h.items[0])||void 0===i?void 0:i.sku)&&(0,n.jsx)(C.Z,{variant:"no-style",className:"hidden relative md:block",onClick:P,children:(0,n.jsx)("div",{id:"gmf-product-rating-container"})},null==o?void 0:o.product)},null==o?void 0:o.product)]})]})}),(0,n.jsx)(I.Z,{state:H,setState:G,variant:"no-style"})]})},ProductDetails_ProductStatsList=e=>{let{list:t}=e,l=t.split(/\n/);return(0,n.jsx)("ul",{className:"product-stats-list space-y-3",children:l&&l.map(e=>(0,n.jsx)(r.Fragment,{children:""!==e&&"\r"!==e&&(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(Icons_Dot,{className:"mr-4 min-w-8"}),(0,n.jsx)(g.Z,{className:"text-md font-medium leading-6",children:e})]})},e))})},ProductDetails_VariantItem=e=>{let{active:t,uri:l,image:i,color:s,label:o,onClick:r}=e;return(0,n.jsx)("button",{className:"variant-item",onClick:r,type:"button",children:(0,n.jsxs)(p.Z,{href:l,scroll:!1,children:[(0,n.jsxs)("div",{className:"relative border border-black rounded-full h-[2.688rem] w-[2.688rem] overflow-hidden flex-center",style:{backgroundColor:null!=s?s:"#000"},children:[i&&(0,n.jsx)(w.Z,{src:i,alt:"product variant",height:50,width:50}),t&&(0,n.jsx)("div",{className:"absolute bg-white h-[1.812rem] w-[1.812rem] flex-center rounded-full",children:(0,n.jsx)(y.Z,{className:"relative top-[1px]"})})]}),o&&(0,n.jsx)("span",{className:"text-sm",children:o})]})})},ProductDetails_ProductVariants=e=>{let t,{product:l}=e;return l&&((t=(null==l?void 0:l.relatedProducts.filter(e=>"variant"===e.relation))||!1).push(l),t.sort((e,t)=>
1{let l=parseInt(e.product,10),i=parseInt(t.product,10);return l-i})),(0,n.jsxs)("section",{className:"product-variants mb-6 md:mb-8",children:[(0,n.jsx)(g.Z,{className:"text-md font-medium mb-2 min-h-[30px]",children:(0,n.jsx)(B.Z,{id:"More variants"})}),(0,n.jsx)(S.Z,{className:"min-h-[43px] gap-2 flex-wrap -mx-4 px-4 md:mx-0 md:px-0",children:t&&(null==t?void 0:t.map(e=>{var t,i,s,o,r,a;return(0,n.jsx)(ProductDetails_VariantItem,{active:(null==l?void 0:l.product)===e.product,uri:"/p/".concat(e.uri),color:(0,P.KI)(null==e?void 0:null===(t=e.sh_swatch)||void 0===t?void 0:t.hex)?null==e?void 0:null===(i=e.sh_swatch)||void 0===i?void 0:i.hex:void 0,image:(0,P.KI)(null==e?void 0:null===(o=e.sh_swatch)||void 0===o?void 0:null===(s=o.image)||void 0===s?void 0:s.url)?null==e?void 0:null===(a=e.sh_swatch)||void 0===a?void 0:null===(r=a.image)||void 0===r?void 0:r.url:void 0},e.sku)}))})]})},K=l(292),Y=l(1911),X=l(4849),ProductBundleModal_ProductBundleItem=e=>{var t,l,i,s;let{product:o,sectionId:d,stickyAddToCart:c,index:u,selectBundleSection:m,isBundleItemActive:v,selectedBundleProductNames:p,setSelectedBundleProductNames:x,setActiveSection:h}=e,[f,j]=(0,r.useState)(!1),{product:b,isLoading:N}=(0,a.iB)({productId:o.toString()}),[_,S]=(0,r.useState)(void 0),handleSelectedBundleProductNames=e=>{let t=p.findIndex(e=>e.section===d.toString());if(-1===t)x([...p,{section:d.toString(),name:e}]);else{let l=[...p];l[t]={section:d.toString(),name:e},x(l)}},handleOpenVariantMenu=()=>{j(!0),h(d)},handleSelectItem=(e,t,l)=>{S(void 0),j(!1),"yes"===t&&e&&(S({item:e,name:l}),m(e,d),b&&handleSelectedBundleProductNames("".concat(b.name," - ").concat(b.variantName," - ").concat(l)))},handleAddToBundle=()=>{b&&(m(b.items[0].item,d),handleSelectedBundleProductNames("".concat(b.name," - ").concat(b.variantName)))};return(0,r.useEffect)(()=>{f||h(0)},[f]),b&&!N?(0,n.jsxs)("li",{className:"product-bundle-item flex flex-col items-center relative ".concat(f?"z-10":"z-0"),children:[(0,n.jsx)("header",{className:"mb-1 relative",children:(0,n.jsxs)(C.Z,{onClick:()=>b.items.length>1?handleOpenVariantMenu():handleAddToBundle(),variant:"no-style",children:[(0,n.jsx)("div",{className:"bg-gray-radial-gradient rounded-full bg-c-light-gray border-2 h-[120px] w-[120px] flex-center overflow-hidden",children:(0,n.jsx)(w.Z,{src:null==b?void 0:null===(l=b.media)||void 0===l?void 0:null===(t=l.mini)||void 0===t?void 0:t[0],height:90,width:90,contain:!0})}),v(_?_.item:null==b?void 0:b.items[0].item,d)&&(0,n.jsx)("div",{className:"icon h-8 w-8 rounded-full bg-c-aqua flex-center absolute top-[2px] right-[2px]",children:(0,n.jsx)(y.Z,{className:"pencil absolute transform scale-90x scale-[1.25]"})})]})}),(0,n.jsxs)("footer",{className:"text-center",children:[(0,n.jsx)(g.Z,{className:"text-sm font-medium max-w-[8rem]",children:b.name}),(0,n.jsx)(g.Z,{className:"text-sm max-w-[8rem]",children:null==b?void 0:b.variantName}),(null==b?void 0:null===(i=b.items)||void 0===i?void 0:i.length)>1&&(0,n.jsx)(g.Z,{className:"text-sm min-h-[24px]",children:v(_?_.item:null==b?void 0:b.items[0].item,d)&&_?null==_?void 0:_.name:""})]}),(null==b?void 0:null===(s=b.items)||void 0===s?void 0:s.length)>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A.Z,{className:"-top-2 transform w-max drop-shadow-2xl max-w-[12rem] ".concat(u%2==0?"left-0":"right-0 sm:left-0 md:left-auto md:right-0 lg:left-0"," ").concat(0!==u&&(u+1)%3==0?"sm:left-auto sm:right-0 md:left-0 md:right-auto lg:left-auto lg:right-0":""),zIndex:"z-10",state:f,variant:"no-style",overlayHeight:"h-full",overlayIndex:"z-10",children:[(0,n.jsx)(g.Z,{className:"text-lg mb-1 font-semibold mr-5 leading-5 px-6 pt-5 pb-1",children:(0,n.jsx)(B.Z,{id:"Sizes"})}),(0,n.jsx)("div",{className:"",children:null==b?void 0:b.items.map(e=>(0,n.jsxs)(T.Z,{className:"text-left px-6 py-3 hover:no-underline lg:hover:bg-c-aqua lg:hover:bg-opacity-30 ".concat("yes"===e.stock?"":"opacity-60 pointer-events-none"),onClick:()=>handleSelectItem(e.item,"yes"===e.stock?"yes":"no",e.name),children:[e.name,"no"===e.stock&&(0,n.jsx)("span",{className:"ml-4",children:(0,n.jsx)(B.Z,{id:"Out of stock"})})]},e.item))})]}),f&&(0,n.jsx)("div",{onClick:()=>j(!1),role:"none",className:"fixed w-full h-screen left-0 md:h-full ".concat(c?"top-[-90vh]":"top-0")})]})]}):(0,n.jsx)(X.Z,{className:"product-skeleton h-0 rounded-none -top-[5px] aspect-w-[132] aspect-h-[172]"})},ProductBundleModal_ProductBundleModalSection=e=>{var t;let{bundle:l,storyBundleSections:i,unSelectedSection:s,bundleSections:o,section:a,sectionIndex:d,stickyAddToCart:c,selectBundleSection:u,isBundleItemActive:m,selectedBundleProductNames:v,setSelectedBundleProductNames:p}=e,[x,h]=(0,r.useState)(2),[g,f]=(0,r.useState)(0);return(0,F.Z)(()=>{window.innerWidth<(0,R.Z)("sm")?h(2):window.innerWidth<(0,R.Z)("md")?h(3):window.innerWidth<(0,R.Z)("lg")?h(2):h(3)},!0),(0,n.jsxs)("div",{className:"product-bundle-modal-section relative ".concat(g===a.section?"z-10":""),children:[i&&i.length===(null==l?void 0:l.sections.length)&&(0,n.jsx)("h6",{className:"font-medium text-xl mb-4 ".concat(s&&!o.find(e=>e.section===a.section.toString())?"text-red-500":""),children:i[d].title}),(0,n.jsx)("ul",{className:"pb-10 lg:pb-6",children:(0,n.jsx)(K.Z,{className:"w-full",slidesPerView:x,modules:[Y.W_],navigation:!0,arrowbackground:!0,overflowVisible:!0,children:null==a?void 0:null===(t=a.products)||void 0===t?void 0:t.map((e,t)=>(0,n.jsx)(ProductBundleModal_ProductBundleItem,{product:e,sectionId:a.section,stickyAddToCart:c,index:t,selectBundleSection:u,isBundleItemActive:m,selectedBundleProductNames:v,setSelectedBundleProductNames:p,setActiveSection:f}))})},a.section)]})},ProductBundle_ProductBundleModal=e=>{let{bundle:t,stickyAddToCart:l,selectBundleSection:i,isBundleItemActive:s,bundleSections:o,selectedBundleProductNames:a,setSelectedBundleProductNames:d,storyBundleSections:m}=e,{asPath:p}=(0,v.useRouter)(),{openBundleModal:x,setOpenBundleModal:h}=(0,r.useContext)(u.V),[g,f]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1),y=(null==t?void 0:t.sections.length)===o.length;return(0,r.useEffect)(()=>{h(!1)},[p,h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{state:x,setState:h,position:"right",children:(0,n.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsx)(C.Z,{variant:"no-style",onClick:()=>h(!1),children:(0,n.jsx)(G.Z,{})})}),(0,n.jsx)("div",{children:null==t?void 0:t.sections.map((e,r)=>(0,n.jsx)(ProductBundleModal_ProductBundleModalSection,{bundle:t,storyBundleSections:m,unSelectedSection:j,bundleSections:o,section:e,sectionIndex:r,stickyAddToCart:l,selectBundleSection:i,isBundleItemActive:s,selectedBundleProductNames:a,setSelectedBundleProductNames:d}))}),(0,n.jsxs)("div",{className:"sticky z-50 -bottom-10 bg-white",children:[(0,n.jsx)("div",{className:"flex gap-4 flex-wrap mb-8 lg:mb-6",children:(0,n.jsx)(C.Z,{onClick:()=>{y?h(!1):(f(!0),b(!0))},className:"uppercase font-medium w-full flex-1 h-[48px] relative text-md flex items-center justify-center",variant:"black",paddingClasses:"pt-[0.7rem] pb-[0.7rem] px-[0.6rem]",children:(0,n.jsx)(B.Z,{id:"Continue"})})}),(0,n.jsx)($.Z,{state:g,setState:f,className:"left-0 bottom-full text-red-500 w-full text-center",fadeIn:!0,children:(0,n.jsx)(B.Z,{id:"You have not selected all products"})})]})]})}),x&&(0,n.jsx)("div",{onClick:()=>h(!1),role:"none",className:"z-20 fixed w-full h-screen left-0 ".concat(l?"top-[-90vh]":"top-0")})]})};let useIsOverflow=(e,t)=>{let[l,i]=r.useState(void 0);return r.useLayoutEffect(()=>{let{current:l}=e;l&&(()=>{let e=(l.scrollHeight+t||0)>l.clientHeight;i(e)})()},[e]),l};
1var ProductDetails_ShowMoreButton=e=>{let{setExpanded:t,expanded:l,refProp:i}=e,s=useIsOverflow(i,-34);return(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"show-more-button flex items-end justify-center bottom-0 left-0 w-full bg-gradient-to-t from-white to-transparent z-50 ".concat(s?"":"hidden"," ").concat(l?"relative":"absolute h-28"),children:(0,n.jsx)(C.Z,{onClick:()=>t(!l),className:"uppercase text-sm font-medium ".concat(l?"mt-6":"mb-6"),variant:"no-style",children:(0,n.jsx)(B.Z,{id:"Show more"})})})})},ProductDetails_BundlePriceRange=e=>{let{bundle:t}=e,l=(null==t?void 0:t.priceMin)!==(null==t?void 0:t.priceMinBeforeDiscount),{selection:i}=(0,a.yr)();return(0,n.jsxs)("div",{className:"bundle-price-range flex flex-wrap items-center gap-x-2 text-xl min-h-[24px]",children:[l&&(null==t?void 0:t.priceMinBeforeDiscountAsNumber)&&(0,n.jsx)(g.Z,{className:"line-through opacity-50",children:(0,M.T4)(null==t?void 0:t.priceMinBeforeDiscountAsNumber,i.currency)}),(null==t?void 0:t.priceMinAsNumber)&&(0,n.jsx)(g.Z,{className:"".concat(l?"text-c-light-red":""),children:(0,M.T4)(null==t?void 0:t.priceMinAsNumber,i.currency)}),(null==t?void 0:t.priceMin)!==(null==t?void 0:t.priceMax)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.Z,{children:"-"}),l&&(null==t?void 0:t.priceMaxBeforeDiscountAsNumber)&&(0,n.jsx)(g.Z,{className:"line-through opacity-50",children:(0,M.T4)(null==t?void 0:t.priceMaxBeforeDiscountAsNumber,i.currency)}),(null==t?void 0:t.priceMaxBeforeDiscountAsNumber)&&(0,n.jsx)(g.Z,{className:"".concat(l?"text-c-light-red":""),children:(0,M.T4)(null==t?void 0:t.priceMaxBeforeDiscountAsNumber,i.currency)})]})]})},ProductSingle_MobileAddToCart=e=>{var t,l;let{remoteProduct:i,product:s,productUsp:o,bundle:d,addBundle:c,bundleSections:m,setErrorAddingPersonalizedProduct:p,isSimpleBundle:x,bundleIsInitiallyLoading:h,productTicket:g,globalContent:f}=e,{setAddedToCartMenuOpen:j,personalizationData:b,setLatestProductAddedToCart:y}=(0,r.useContext)(u.V),{addItem:N,updateSelectionState:w}=(0,a.yr)(),{locale:_}=(0,v.useRouter)(),[S,k]=(0,r.useState)(!1),[P,Z]=(0,r.useState)(!1),[I,A]=(0,r.useState)(!1),[z,T]=(0,r.useState)(!1),[D,E]=(0,r.useState)(void 0),L=(null==i?void 0:i.pr_personalized_product_value)&&(null==i?void 0:i.pr_personalized_product_value)==="1",handleAddItem=async e=>{var t,l,n,s;if(Z(!0),L&&(null==b?void 0:b.text)){let n=await a.tJ.getSelection(),s=null==i?void 0:i.relatedProducts.find(e=>"Bundle"===e.relation);await N(null!==(l=null==s?void 0:null===(t=s.items[0])||void 0===t?void 0:t.item)&&void 0!==l?l:"",1,s),await addItemWithComment({productId:i.product,itemSku:e.sku,defaultText:null==b?void 0:b.defaultText,text:null==b?void 0:b.text,color:b.colorStyle,font:b.fontStyle,checkoutToken:n.token,language:null!=_?_:"en"}).then(async t=>{var l;if(!t.ok){p(!0),Z(!1);return}notifyIngridItemAdded(e.sku),!t.ok||(null==t?void 0:null===(l=t.remoteSelection)||void 0===l?void 0:l.errors)||w(t.remoteSelection)})}else{let{success:t}=await N(e.item,1,i);t&&notifyIngridItemAdded(e.sku)}Z(!1),k(!0),j(!0),y({sku:null!==(n=e.sku)&&void 0!==n?n:"",collection:null!==(s=null==i?void 0:i.collection)&&void 0!==s?s:""}),g&&_&&(0,O.wy)(g,_)},handleSelectItem=(e,t)=>{A(!1),"yes"===t&&e?handleAddItem(e):(E(null==e?void 0:e.sku),T(!0))};return(0,r.useEffect)(()=>{S&&setTimeout(()=>{k(!1)},3e3)},[S]),(0,n.jsxs)("section",{className:"mobile-add-to-cart mt-8 relative md:hidden mb-2",children:[(0,n.jsxs)("div",{className:"relative",children:[d?(0,n.jsx)(ProductBundle_BundleAddToCart,{remoteProduct:i,addBundle:c,bundleSections:m,bundle:d,isSimpleBundle:x,bundleIsInitiallyLoading:h}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{className:"block uppercase font-semibold w-full flex-1 text-sm h-[48px] relative xs:text-md",variant:"black",paddingClasses:"pt-[0.7rem] pb-[0.5rem] px-[0.6rem]",onClick:()=>{var e,t;return i&&(null==i?void 0:null===(e=i.items)||void 0===e?void 0:e.length)>1?A(!I):handleSelectItem(null!==(t=i&&i.items[0])&&void 0!==t?t:void 0,(null==i?void 0:i.items[0].stock)==="yes"?"yes":"no")},children:(0,n.jsx)(ecom_AddToCartLoader,{itemAddedToCart:S,isLoading:P,children:(0,n.jsx)(B.Z,{id:null!==(l=(0,M.GJ)(i))&&void 0!==l?l:""})})}),i&&(null==i?void 0:null===(t=i.items)||void 0===t?void 0:t.length)>1&&(0,n.jsx)(ecom_ProductSizeSelector,{product:i,openSizeMenu:I,setOpenSizeMenu:A,handleSelectItem:handleSelectItem,setSelectedItem:E,setBackInStockMenuOpen:T}),isStockEnabledLocale(_)&&(0,n.jsx)(ProductDetails_WarehouseStock,{product:s})]}),(0,n.jsx)(ProductSingle_IngridProductPageWidget,{remoteProduct:i,isMobile:!0})]}),(0,n.jsx)(ProductDetails_BackInStock,{backInStockMenuOpen:z,setBackInStockMenuOpen:T,selectedItem:D,globalContent:f}),(0,n.jsx)(ProductSingle_ProductUsp,{productUsp:o})]})},ProductSingle_ProductDetails=e=>{var t,l;let{className:i,product:s,openSizeMenu:o,setOpenSizeMenu:a,productUsp:d,remoteProduct:c,mobileVersion:u,scrollToReviews:m,bundle:v,addBundle:p,bundleSections:x,selectBundleSection:h,isBundleItemActive:f,selectedBundleProductNames:j,setSelectedBundleProductNames:b,storyBundleSections:y,globalContent:N,personalizedProductPrice:w,errorAddingPersonalizedProduct:_,setErrorAddingPersonalizedProduct:S,isSimpleBundle:k,bundleIsInitiallyLoading:P,productTicket:A}=e,M=(0,r.useRef)(null),[T,D]=(0,r.useState)(!1),[E,L]=(0,r.useState)(!1),[O,W]=(0,r.useState)(!1),V=(null==s?void 0:s.pr_personalized_product_value)&&(null==s?void 0:s.pr_personalized_product_value)==="1";return(0,r.useEffect)(()=>{W(!0)},[]),(0,r.useEffect)(()=>{L(!0)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{ref:M,className:"".concat(null!=i?i:""),children:[(0,n.jsxs)("div",{className:"mb-5 md:mb-8",children:[(0,n.jsx)("div",{className:"flex h-[18px] mb-3 md:hidden",children:(null==c?void 0:null===(t=c.items[0])||void 0===t?void 0:t.sku)&&(0,n.jsx)(C.Z,{variant:"no-style",onClick:m,children:(0,n.jsx)("div",{className:"gmf-product-rating","data-compact":!0,"data-product-id":null==c?void 0:null===(l=c.items[0])||void 0===l?void 0:l.sku,"data-size":"medium"})})}),(0,n.jsx)(g.Z,{type:"h1",className:"text-1.875rem mb-0 min-h-[45px]",children:null==s?void 0:s.name}),(0,n.jsx)(g.Z,{className:"text-md mb-2 min-h-[23px]",children:null==s?void 0:s.variantName}),(null==j?void 0:j.length)>0&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(g.Z,{className:"text-sm mb-2 font-medium",children:(0,n.jsx)(B.Z,{id:"Selected products"})}),(0,n.jsx)("div",{className:"space-y-1",children:j.map(e=>(0,n.jsx)(g.Z,{className:"text-sm text-neutral-600",children:e.name},e.name))})]}),(0,n.jsxs)("div",{className:"relative md:flex md:items-center md:justify-between",children:[(0,n.jsx)("div",{className:"min-h-[34px]",children:v?(0,n.jsx)(ProductDetails_BundlePriceRange,{bundle:null==c?void 0:c.bundleInfo}):(0,n.jsx)(Z.Z,{textLg:!0,price:c,className:"font-medium"})}),(0,n.jsx)("div",{className:"relative w-max right-0 top-full sm:self-end",children:(0,n.jsx)(PriceHistory_PriceHistory,{remoteProduct:c})})]})]}),!v&&(0,n.jsx)(ProductDetails_ProductVariants,{product:c}),(null==s?void 0:s.pr_bullets_value)&&(0,n.jsx)("div",{className:"hidden md:block mb-8",children:(0,n.jsx)(ProductDetails_ProductStatsList,{list:s.pr_bullets_value})}),V&&w&&(0,n.jsx)("div",{className:"block md:hidden",children:(0,n.jsx)(ProductDetails_PersonalizedProduct,{globalContent:N,errorAddingPersonalizedProduct:_,personalizedProductPrice:w})}),(0,n.jsx)(ProductDetails_AddToCart,{product:s,openSizeMenu:o,setOpenSizeMenu:a,productUsp:d,globalContent:N,mobileVersion:u,bundle:v,remoteProduct:c,addBundle:p,bundleSections:x,personalizedProductPrice:w,errorAddingPersonalizedProduct:_,setErrorAddingPersonalizedProduct:S,isSimpleBundle:k,bundleIsInitiallyLoading:P,productTicket:A,scrollToReviews:m}),(null==s?void 0:s.excerpt)&&(0,n.jsx)(elements_BBCodeContent,{content:null==s?void 0:s.excerpt,className:"mb-9"}),(null==s?void 0:s.pr_bullets_value)&&(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(ProductDetails_ProductStatsList,{list:s.pr_bullets_value})}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(ProductSingle_MobileAddToCart,{product:s,remoteProduct:c,productUsp:d,bundle:v,addBundle:p,bundleSections:x,setErrorAddingPersonalizedProduct:S,isSimpleBundle:k,bundleIsInitiallyLoading:P,globalContent:N,productTicket:A})}),O&&(0,n.jsx)(ProductDetails_ShowMoreButton,{expanded:T,setExpanded:D,refProp:M})]}),E&&z.createPortal((0,n.jsx)(ProductBundle_ProductBundleModal,{bundle:v,selectBundleSection:h,isBundleItemActive:f,bundleSections:x,selectedBundleProductNames:j,setSelectedBundleProductNames:b,storyBundleSections:y}),document.body),(0,n.jsx)(I.Z,{state:T,setState:D,variant:"no-style"})]})},Q=l(7151),ProductSingle_ProductGallery=e=>{let{product:t}=e,l=[],i=0;
1if((null==t?void 0:t.media)&&t.media.forEach((e,s)=>{var o,r,a,d;let c=null===(r=e.attributes)||void 0===r?void 0:null===(o=r.media_typeofimg)||void 0===o?void 0:o.value;"Lifestyle [1]"!==c&&0!==s&&(i+=1,l.push((0,n.jsx)("div",{className:"h-full w-full",children:(0,n.jsx)(w.Z,{src:null===(a=e.sources.pdp)||void 0===a?void 0:a.url,alt:null==t?void 0:t.name,priority:0===s,sizes:"".concat((0,Q.Z)("xl","25",!0),", ").concat((0,Q.Z)("lg","33"),", ").concat((0,Q.Z)("md","50")),width:840,height:1320,unoptimized:!0,className:"h-full w-full"})},null===(d=e.sources.pdp)||void 0===d?void 0:d.url)))}),null==t?void 0:t.var_video_url){var s;let e=(0,n.jsx)("div",{className:"relative h-full aspect-w-[560] aspect-h-[880]",children:(0,n.jsx)(k.Z,{className:"h-full",video:t.var_video_url})},t.var_video_url),i=null!==(s=Number(t.dis_video_position))&&void 0!==s?s:0;i<=0?l.unshift(e):i>=l.length?l.push(e):l.splice(i,0,e)}0===l.length&&(i+=1,l.push((0,n.jsx)("div",{className:"bg-gray-radial-gradient aspect-w-[560] aspect-h-[880] flex-center",children:(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"absolute-center text-6xl font-medium opacity-10",children:"Najell"})})},"placeholder")));let[o,a]=(0,r.useState)(1);return(0,F.Z)(()=>{window.innerWidth<(0,R.Z)("md")?a(1):a(2)},!0),(null==l?void 0:l.length)>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"hidden flex-wrap h-fit md:grid lg:grid-cols-2",children:l}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(K.Z,{slidesPerView:o,modules:[Y.tl],spaceBetween:0,pagination:{type:"progressbar"},grabCursor:!0,className:"slider",loop:1!==i,children:l})})]}):null},ee=l(7536),et=l(8442),el=l(9293),ei=l(8401),ProductSingle_PersonalizedProductMenu=e=>{var t,l,i,s,o,a,c;let{globalContent:m,personalizedProductPrice:v,product:p}=e,[x,h]=(0,r.useState)(void 0),f=(0,d.Z)(),{personalizationData:j,setPersonalizationMenuOpen:b,setPersonalizationData:y}=(0,r.useContext)(u.V),{register:N,handleSubmit:_,setValue:S,formState:{errors:k},clearErrors:Z,watch:I,reset:A}=(0,ee.cI)();(0,et.Z)("storageKey",{watch:I,setValue:S,storage:window.localStorage});let handleChangeDefaultText=e=>{Z(),S("defaultText",e)},handlePersonalizedValues=async e=>{let t={defaultText:e.defaultText,text:e.text,colorStyle:e.colorStyle,fontStyle:e.fontStyle};y(t),b(!1)};(0,r.useEffect)(()=>{j||A()},[j,A]);let M=null!==(c=p.pr_personalized_text_length_value)&&void 0!==c?c:"12",z=I("colorStyle"),T=I("fontStyle"),D=null==m?void 0:m.personalization_image;(0,r.useEffect)(()=>{h(D)},[D,m,p]);let E=null==m?void 0:null===(t=m.personalization_images)||void 0===t?void 0:t.map(e=>({image:e.image,match_with_ids:e.match_with_ids.split(",").slice().sort((e,t)=>e.localeCompare(t)),centra_variant:e.centra_variant})),L=null==E?void 0:E.filter(e=>e.centra_variant===p.silkVariant);return(0,r.useEffect)(()=>{if(h(D),z&&T&&L){let e=[z,T].sort((e,t)=>e.localeCompare(t));for(let t=0;t<L.length;t+=1){let l=L[t];if(function(e,t){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l+=1)if(e[l]!==t[l])return!1;return!0}(l.match_with_ids,e)){h(l.image);break}h(D)}}},[z,D,T,L]),(0,n.jsxs)("div",{className:"personalized-product-menu flex relative flex-col justify-between bg-bottom",children:[(null==m?void 0:m.personalization_text)&&(0,n.jsx)(g.Z,{className:"mb-4",children:null===(l=m.personalization_text)||void 0===l?void 0:l.replaceAll('"productName"',p.name)}),(0,n.jsxs)("form",{className:"",onSubmit:_(handlePersonalizedValues),children:[(0,n.jsxs)(el.Z,{className:"bg-white",errors:k,label:f.formatMessage({id:"Preselected text (Optional)"}),name:"defaultText",register:N,validationSchema:{onChange:e=>handleChangeDefaultText(e.target.value)},children:[(0,n.jsx)("option",{value:"",children:f.formatMessage({id:"Select preselected text"})}),null==m?void 0:null===(i=m.personalization_label_options)||void 0===i?void 0:i.map(e=>(0,n.jsx)("option",{value:e.preselected_text,children:e.preselected_text},e.preselected_text))]}),(0,n.jsx)("div",{className:"flex justify-between",children:(0,n.jsx)(ei.Z,{errors:k,name:"text",placeholder:f.formatMessage({id:"Personalized text"}).replace('"numberOfCharacters"',M),register:N,type:"text",maxLength:12,validationSchema:{required:f.formatMessage({id:"Field is required"}),maxLength:{value:parseInt(M,10),message:"".concat(f.formatMessage({id:"Maximum"})," ").concat(M," ").concat(f.formatMessage({id:"characters"}))}}})}),(0,n.jsxs)(el.Z,{className:"bg-white",errors:k,label:f.formatMessage({id:"Color"}),name:"colorStyle",register:N,validationSchema:{required:f.formatMessage({id:"Field is required"})},children:[(0,n.jsx)("option",{value:"",children:f.formatMessage({id:"Select color"})}),null==m?void 0:null===(s=m.personalization_color_options)||void 0===s?void 0:s.map(e=>(0,n.jsx)("option",{value:e.id,children:e.text},e._uid))]}),(0,n.jsxs)(el.Z,{className:"bg-white",errors:k,label:f.formatMessage({id:"Font"}),name:"fontStyle",register:N,validationSchema:{required:f.formatMessage({id:"Field is required"})},children:[(0,n.jsx)("option",{value:"",children:f.formatMessage({id:"Select font"})}),null==m?void 0:null===(o=m.personalization_font_options)||void 0===o?void 0:o.map(e=>(0,n.jsx)("option",{value:e.id,children:e.text},e._uid))]}),(0,n.jsx)("div",{className:"w-full aspect-h-1 aspect-w-1 relative max-h-[848px] mb-4",children:x&&(0,P.NI)(x)&&(0,n.jsx)(w.Z,{image:x,fill:!0,priority:99,sizes:"".concat((0,Q.Z)("md","50")),alt:x.alt})}),(0,n.jsx)("div",{className:"pb-8",children:(0,n.jsx)(C.Z,{submit:!0,
1className:"uppercase mt-4 w-full !px-4",variant:"black-outlined",children:(null==m?void 0:m.personalization_menu_button_text)?null==m?void 0:null===(a=m.personalization_menu_button_text)||void 0===a?void 0:a.replaceAll('"productPrice"',null!=v?v:""):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B.Z,{id:"Add custom text for"}),v]})})})]})]})},en=l(1309),es=l(2682),eo=l(9820),er=l(7368);let useRelatedProducts=e=>{var t,l;let{locale:i}=(0,v.useRouter)(),{selection:n}=(0,a.yr)(),[s,o]=(0,r.useState)(!1),fetcher=async()=>{o(!0);let t=(0,J.Z)(i),l=(0,er.FL)(),s=!!(null==n?void 0:n.loggedIn),r=new URLSearchParams({customerKey:(0,er.cl)(),locale:t.voyadoLocale,market:t.voyadoMarket,sessionKey:(0,er.r8)(l),touchpoint:(0,er.$y)(),presentCustom:er.__,notify:l?"true":"false",productKey:(0,er.iC)(e.sku,e.collection),...(null==t?void 0:t.voyadoPriceList)&&{priceId:(0,er.yi)(null==t?void 0:t.voyadoPriceList,s)}}),a="/queries/product-page?".concat(r.toString()),d=await (0,es.Z)({endpoint:a,method:"POST",body:{productGroup:{include:!1},recommendationLists:[{id:"PDP",limit:8,algorithm:"PERSONAL"}]}});return o(!1),d},d=[i],{data:c}=(0,eo.ZP)(d,fetcher);return{products:null==c?void 0:null===(l=c.recommendationLists)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.productGroups,isLoading:s}};var ProductSingle_RelatedProducts=e=>{let{product:t}=e,l=(0,d.Z)(),{products:i,isLoading:s}=useRelatedProducts(t);return(0,n.jsx)(en.Z,{blockHeaderClassName:"[&>div>h2]:text-xl",products:i,isLoading:s,className:"px-4",margin:!0,index:99,block:{title:l.formatMessage({id:"Match with"})}})},ea=l(3879),ProductSingle_ProductStructuredData=e=>{var t,l,i,s;let{product:o,productPrices:r}=e,a=o?[{"@id":"#product","@context":"https://schema.org/","@type":"Product",sku:o.product,...(null===(s=o.media)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:null===(l=i.sources)||void 0===l?void 0:null===(t=l.standard)||void 0===t?void 0:t.url)&&{image:o.media[0].sources.standard.url},name:o.name,description:o.prd_description_text,brand:{"@type":"Brand",name:o.brandName},offers:r.map(e=>({"@type":"Offer",url:(0,ea.$2)((0,ea.rA)(o.uri)),availability:e.availability?"https://schema.org/InStock":"https://schema.org/OutOfStock",price:e.value,priceCurrency:e.currency}))}]:[];return(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(a)},type:"application/ld+json"})},ecom_ProductSingle=e=>{var t,l,i,s,o,d;let{story:v,productUsp:p,product:x,productPrices:g,bundle:f,globalContent:j,productTicket:b}=e,{selection:y}=(0,a.yr)(),{customerId:N}=(0,r.useContext)(m.xn),{pushViewItemDataLayer:w}=(0,a.uP)(),{personalizationMenuOpen:_,setPersonalizationMenuOpen:S}=(0,r.useContext)(u.V),{addBundle:k,bundleSections:P,selectBundleSection:Z,isBundleItemActive:I,setBundleSections:B}=(0,a.$T)(),{isSimpleBundle:C,bundleIsInitiallyLoading:A}=hooks_useSimpleBundle(f,B),{product:M}=(0,a.iB)({productId:null==v?void 0:v.content.product_id}),[z,T]=(0,r.useState)(void 0),[D,E]=(0,r.useState)(!1),[L,O]=(0,r.useState)([]),[W,V]=(0,r.useState)(void 0),[F,R]=(0,r.useState)(!1),q=useGetBadges(M),H=(0,r.useRef)(null),G=M?function(e){var t;let l=[{text:"",href:""}];return null==e||null===(t=e.categoryName)||void 0===t||t.forEach(t=>{let i=e.categories.find(e=>{let l=e.name[e.name.length-1];return l===t});i&&l.push({text:t,href:"/c/".concat(i.uri)})}),l.shift(),l}(M):void 0,U=null!==(s=null==v?void 0:null===(t=v.content)||void 0===t?void 0:t.description)&&void 0!==s&&s,$=null!==(o=null==v?void 0:v.content)&&void 0!==o&&o,J=null!==(d=null==v?void 0:null===(l=v.content)||void 0===l?void 0:l.bundleSections)&&void 0!==d&&d;(0,r.useEffect)(()=>{M&&y&&W!==M.product&&(V(M.product),w(M,y),(0,h.nh)(M,y,N))},[w,M,y,W,N]);let K=(null==x?void 0:x.pr_personalized_product_value)&&(null==x?void 0:x.pr_personalized_product_value)==="1",Y=null==M?void 0:null===(i=M.relatedProducts.find(e=>"Bundle"===e.relation))||void 0===i?void 0:i.price;return(0,n.jsxs)("main",{className:"product-single",children:[(0,n.jsx)("div",{className:"block md:pt-2",children:(0,n.jsx)(elements_Breadcrumbs,{breadcrumbs:G})}),(0,n.jsxs)("div",{className:"relative pb-8 md:grid md:grid-cols-[1.2fr_1fr] lg:grid-cols-[2fr_1fr]",children:[(0,n.jsx)(ProductSingle_ProductGallery,{product:x}),q&&(0,n.jsx)(elements_Badges,{className:"top-4 left-4 gap-[0.625rem]",badges:q}),(0,n.jsxs)("div",{className:"sticky top-24 bg-white p-4 md:pl-8 md:pt-0 lg:min-w-[26rem] h-fit",children:[(0,n.jsx)(ProductSingle_ProductDetails,{product:x,openSizeMenu:F,setOpenSizeMenu:R,productUsp:p,remoteProduct:M,scrollToReviews:()=>{var e;T("3"),null==H||null===(e=H.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{T(void 0)},1e3)},bundle:f,addBundle:k,bundleSections:P,selectBundleSection:Z,isBundleItemActive:I,selectedBundleProductNames:L,setSelectedBundleProductNames:O,storyBundleSections:J,globalContent:j,personalizedProductPrice:Y,errorAddingPersonalizedProduct:D,setErrorAddingPersonalizedProduct:E,isSimpleBundle:C,bundleIsInitiallyLoading:A,productTicket:b}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"scroll-anchor absolute -top-28",ref:H}),(0,n.jsx)(ProductAccordion_ProductAccordion,{product:x,remoteProduct:M,descriptionBlocks:U,faqBlock:$,openAccordionItem:z},x.sku)]})]})]}),(0,n.jsx)(ProductSingle_RelatedProducts,{product:x}),(0,n.jsx)(ProductSingle_ProductStructuredData,{product:x,productPrices:g}),K&&(0,n.jsx)(c.Z,{className:"min-h-svh",state:_,setState:S,position:"right",closeButton:!0,title:null==j?void 0:j.personalization_title,children:(0,n.jsx)(ProductSingle_PersonalizedProductMenu,{globalContent:j,personalizedProductPrice:Y,product:x})})]})},ed=l(96),ec=!0,_slug_=e=>{var t,l;let{global:i,initialStory:r,product:a,productPrices:d,preview:c,bundle:u,productTicket:m}=e,v=(0,o.f0)(r),p=null!==(l=null===(t=i.content)||void 0===t?void 0:t.productUsp)&&void 0!==l?l:void 0;return(0,n.jsxs)(ed.Z,{transparentHeaderMobileProp:!1,transparentHeaderDesktopProp:!1,headerWhiteTextProp:!0,globalContent:null==i?void 0:i.content,story:v,pageMarginTop:!1,preview:c,children:[(0,n.jsx)(s.Z,{description:a.metaDescription,story:v,title:a.metaTitle||a.name}),(0,n.jsx)(ecom_ProductSingle,{story:v,productUsp:p,globalContent:i.content,product:a,productPrices:d,bundle:u,productTicket:m})]})}},7650:function(e,t,l){"use strict";let i;l.d(t,{YD:function(){return useInView}});var n=l(7294);let s=new Map,o=new WeakMap,r=0;function useInView({threshold:e,delay:t,trackVisibility:l,rootMargin:a,root:d,triggerOnce:c,skip:u,initialInView:m,fallbackInView:v,onChange:p}={}){var x;let[h,g]=n.useState(null),f=n.useRef(),[j,b]=n.useState({inView:!!m,entry:void 0});f.current=p,n.useEffect(()=>{let n;if(!u&&h)return n=function(e,t,l={},n=i){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof l.threshold?l.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:a,observer:d,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var l;return`${t}_${"root"===t?(l=e.root)?(o.has(l)||(r+=1,o.set(l,r.toString())),o.get(l)):"0":e[t]}`}).toString(),l=s.get(t);if(!l){let i;let n=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var l;let s=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(l=n.get(t.target))||l.forEach(e
1=>{e(s,t)})})},e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),l={id:t,observer:o,elements:n},s.set(t,l)}return l}(l),u=c.get(e)||[];return c.has(e)||c.set(e,u),u.push(t),d.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(c.delete(e),d.unobserve(e)),0===c.size&&(d.disconnect(),s.delete(a))}}(h,(e,t)=>{b({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&c&&n&&(n(),n=void 0)},{root:d,rootMargin:a,threshold:e,trackVisibility:l,delay:t},v),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,h,d,a,c,u,l,v,t]);let y=null==(x=j.entry)?void 0:x.target;n.useEffect(()=>{h||!y||c||u||b({inView:!!m,entry:void 0})},[h,y,c,u,m]);let N=[g,j.inView,j.entry];return N.ref=N[0],N.inView=N[1],N.entry=N[2],N}},4849:function(e,t,l){"use strict";l.d(t,{Z:function(){return Skeleton}});var i=l(7294);let n=i.createContext({});function Skeleton({count:e=1,wrapper:t,className:l,containerClassName:s,containerTestId:o,circle:r=!1,style:a,...d}){var c,u,m;let v=i.useContext(n),p={...d};for(let[e,t]of Object.entries(d))void 0===t&&delete p[e];let x={...v,...p,circle:r},h={...a,...function({baseColor:e,highlightColor:t,width:l,height:i,borderRadius:n,circle:s,direction:o,duration:r,enableAnimation:a=!0}){let d={};return"rtl"===o&&(d["--animation-direction"]="reverse"),"number"==typeof r&&(d["--animation-duration"]=`${r}s`),a||(d["--pseudo-element-display"]="none"),("string"==typeof l||"number"==typeof l)&&(d.width=l),("string"==typeof i||"number"==typeof i)&&(d.height=i),("string"==typeof n||"number"==typeof n)&&(d.borderRadius=n),s&&(d.borderRadius="50%"),void 0!==e&&(d["--base-color"]=e),void 0!==t&&(d["--highlight-color"]=t),d}(x)},g="react-loading-skeleton";l&&(g+=` ${l}`);let f=null!==(c=x.inline)&&void 0!==c&&c,j=[],b=Math.ceil(e);for(let t=0;t<b;t++){let l=h;if(b>e&&t===b-1){let t=null!==(u=l.width)&&void 0!==u?u:"100%",i=e%1,n="number"==typeof t?t*i:`calc(${t} * ${i})`;l={...l,width:n}}let n=i.createElement("span",{className:g,style:l,key:t},"‌");f?j.push(n):j.push(i.createElement(i.Fragment,{key:t},n,i.createElement("br",null)))}return i.createElement("span",{className:s,"data-testid":o,"aria-live":"polite","aria-busy":null===(m=x.enableAnimation)||void 0===m||m},t?j.map((e,l)=>i.createElement(t,{key:l},e)):j)}}},function(e){e.O(0,[685,96,873,774,888,179],function(){return e(e.s=7805)}),_N_E=e.O()}]);

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.