"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5367],{12124:function(e,t,a){var n=a(85893);a(67294);var r=a(45697),s=a.n(r),i=a(6383),l=a(71486),o=a(18377),d=a(67158),c=a(4466),u=a(94246),m=a(46729),p=a(31621),x=a(25564);let h=e=>{let{variant:t,price:a,deliveryTypeRestriction:r}=e,{t:s,currency:h}=(0,l.Z)(),g=parseFloat(i.dynamicConfigs.freeShippingLimit),b=g/2<a,f=a<=g;if(!i.dynamicConfigs||!i.dynamicConfigs.freeShippingLimit||r||(0,x.wT)())return(0,n.jsx)(n.Fragment,{});if("product"===t)return(0,n.jsx)(o.Z,{sx:{mb:2,textAlign:"center",fontSize:"1.25em",fontWeight:"700","& span":{py:.5,px:1,color:"marketing.highlightRed"}},children:(0,n.jsx)(o.Z,{component:"span",children:g<=a?s("Free delivery"):s("Free shipping when you spend more than {1} {2}",[g,h])})});let j=g&&a&&a>g/2;return"cart"===t&&j?(0,n.jsx)(o.Z,{sx:{textAlign:"center",fontSize:"1.25em",my:1,fontWeight:"700",border:"2px solid",borderColor:"primary.main",lineHeight:1},children:(0,n.jsxs)(c.ZP,{sx:{width:"80%",margin:"auto",display:"flex",justifyContent:"center"},container:!0,columns:{xs:1,sm:1,md:2},children:[(0,n.jsxs)(o.Z,{sx:{mt:1,mb:.5,display:a>g?"flex":"auto",alignItems:"center"},children:[g>a?s("Free delivery after {1} {2}",[parseFloat(g-a).toFixed(2),i.constants.CURRENCY]):s("The delivery is on us for this order!"),g>a&&(0,n.jsx)(u.Z,{sx:{fontStyle:"italic",fontSize:"0.65em"},component:"div",children:s("Free delivery at {1} {2}",[g,h])})]}),b&&(0,n.jsx)(o.Z,{sx:{width:{xs:"90%",sm:"50%"},m:"auto",pt:{xs:0,sm:1}},children:(0,n.jsx)(d.ZP,{slots:{thumb:e=>(0,n.jsx)(d.gs,{...e,children:(0,n.jsx)(o.Z,{sx:{backgroundColor:f?"orange":"#9ACD32",borderRadius:"50%",display:"flex",justifyContent:"center",boxShadow:"0px 0px 1px 2px white",p:.5,"& svg":{fontSize:"1em"}},children:f?(0,n.jsx)(m.Z,{}):(0,n.jsx)(p.Z,{})})})},value:a,disabled:!0,max:g,sx:{".MuiSlider-mark":{height:".0em"},".MuiSlider-rail":{color:"gray",height:".6em",transition:"all 0.5s ease",borderRadius:"1px"},".MuiSlider-track":{color:f?"orange":"#9ACD32",height:".5em",borderRadius:"1px"},".MuiSlider-thumb":{height:"0em",width:"0em",color:"white"}}},a)})]})}):(0,n.jsx)(n.Fragment,{})};h.propTypes={variant:s().oneOf(["product","cart"])},t.Z=h},5367:function(e,t,a){a.d(t,{Z:function(){return eb}});var n=a(85893),r=a(67294),s=a(43303),i=a(3859),l=a(12739),o=a(54934),d=a(65963),c=a(14223),u=a(77245),m=a(95687),p=a(94246),x=a(34067),h=a(97226),g=a(71486),b=a(81227),f=a(42898),j=a(98556),v=a(8804),y=a.n(v),P=a(13311),w=a.n(P),Z=a(25564),C=a(6383),S=a(99786),N=a(11163),k=a(75472),I=a.n(k),R=a(87066),_=a(83891),D=a(9008),A=a.n(D),O=a(65040),z=a(26918),B=a(11038),W=a(5152),F=a.n(W),T=a(97650),L=a(12124),U=a(51172),E=a(41664),H=a.n(E),G=a(75869),Y=a(61982),M=a(18377),V=a(4298),X=a.n(V);let q="https://cdn.handshake.fi/images/ulkoasu/payment_logos/avarda-logo.svg",J={icons:{loanPayment:{height:50,width:150,backgroundUrl:q},invoice:{height:50,width:100,backgroundUrl:q}}};var K=(0,r.memo)(e=>{let{price:t}=e,a=C.constants.AVARDA_JS_PAYMET_WIDGET_PATH,[s,i]=r.useState({}),l=async()=>{let e=await fetch("/api/avarda");200===e.status&&i(await e.json())};return(0,r.useEffect)(()=>{(null==a?void 0:a.length)>0&&l()},[a]),(0,n.jsx)(M.Z,{sx:{mt:2},children:s.jwt&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X(),{async:!0,crossorigin:"anonymous",src:a,"data-payment-id":s.paymentId,"data-widget-jwt":s.jwt,"data-custom-styles":JSON.stringify(J)}),(0,n.jsx)("avarda-payment-widget",{price:t,lang:(0,Y.XQ)(C.constants.COUNTRY),"payment-method":"direct-invoice"})]})})}),Q=a(6481),$=a(61670),ee=a(44750),et=a(25423),ea=a(19361);let en=F()(()=>Promise.resolve().then(a.bind(a,80044)),{loadableGenerated:{webpack:()=>[80044]}}),er=F()(()=>a.e(3012).then(a.bind(a,23012)),{loadableGenerated:{webpack:()=>[23012]},ssr:!1}),es=F()(()=>Promise.resolve().then(a.bind(a,92697)),{loadableGenerated:{webpack:()=>[92697]},ssr:!1}),ei=F()(()=>Promise.resolve().then(a.bind(a,18990)),{loadableGenerated:{webpack:()=>[18990]}}),el=F()(()=>a.e(350).then(a.bind(a,40350)),{loadableGenerated:{webpack:()=>[40350]},ssr:!1}),eo=F()(()=>Promise.resolve().then(a.bind(a,39503)),{loadableGenerated:{webpack:()=>[39503]},ssr:!1}),ed=F()(()=>a.e(8803).then(a.bind(a,18803)),{loadableGenerated:{webpack:()=>[18803]}}),ec=F()(()=>a.e(253).then(a.bind(a,253)),{loadableGenerated:{webpack:()=>[253]}}),eu=F()(()=>a.e(8720).then(a.bind(a,8720)),{loadableGenerated:{webpack:()=>[8720]}}),em=F()(()=>a.e(4199).then(a.bind(a,34199)),{loadableGenerated:{webpack:()=>[34199]},ssr:!1}),ep=F()(()=>a.e(1102).then(a.bind(a,41102)),{loadableGenerated:{webpack:()=>[41102]},ssr:!1}),ex=F()(()=>Promise.resolve().then(a.bind(a,1953)),{loadableGenerated:{webpack:()=>[1953]},ssr:!1}),eh=F()(()=>a.e(8130).then(a.bind(a,98130)),{loadableGenerated:{webpack:()=>[98130]},ssr:!1}),eg={top:{display:"flex",justifyContent:"space-between"},topRight:{overflow:"auto",width:"100%",mb:2},breadcrumbs:{p:{tablet:.5},px:.5,pt:1,pb:1,overflowY:"hidden",whiteSpace:"nowrap",textTransform:"uppercase",fontSize:"0.875rem",display:"flex",justifyContent:{xs:"flex-start",sm:"center"},"& ol":{flexWrap:"nowrap"},"& a":{color:"#333"},backgroundColor:"#f5f5f5"},productRight:{display:"flex",pt:0,flexDirection:{xs:"column",tablet:"row"}},productImages:{position:"relative",overflow:"hidden",mb:{xs:1,sm:0},mr:{xs:0,sm:2},width:{xs:"100%",tablet:"50%",desktop:"60%"},padding:{xs:0}},productChoices:{padding:2,width:{xs:"100%",tablet:"50%",desktop:"40%"},display:"flex",flexDirection:"column"},brandLogo:{display:{xs:"none",sm:"block"},width:"80px",height:"80px",position:"absolute",top:"5px",right:"5px",zIndex:"10","& img":{width:"100%"}},mobileBrand:{display:{xs:"block",sm:"none"},textAlign:"center",textTransform:"uppercase",color:"#b6b4b4",size:"0.8rem","& > a":{color:"inherit"}},selectedImage:{width:"75%",m:"0 auto",display:{xs:"none",sm:"block"}},ribbon:{backgroundColor:"productPage.ribbon.background",color:"productPage.ribbon.text",transform:"rotate(-45deg)",fontWeight:"bold",padding:"0.35em",textAlign:"center",position:"absolute",left:"-44px",width:"220px",top:"51px",zIndex:"10"},thumbnailContainer:{display:"flex",overflowX:"auto",justifyContent:{xs:"flex-start",sm:"center"}},thumbnail:{display:"flex",m:.5,p:.25,border:"solid 1px #aaa7a7","& img":{cursor:"pointer",width:{xs:"100px",sm:"80px"}}},productRating:{textAlign:"center",mb:2},productRatingTotal:{fontSize:"0.9em"},reviewLink:{color:"productPage.reviewLink",textDecoration:"none"},selectText:{fontWeight:"bold",textAlign:"center",fontSize:"1.1rem",mb:0},priceContainer:{display:"flex",alignItems:"center",justifyContent:"center"},priceSale:{display:"flex",flexDirection:"column",paddingLeft:"1em",alignItems:"flex-end"},priceSalePercentage:{color:"productCard.priceSalePercentage.text",backgroundColor:"productCard.priceSalePercentage.background",padding:"0 0.25em",fontWeight:"bold"},buyButtonContainer:{textAlign:"center",width:"100%",pt:2},bundleOption:{display:"flex",alignItems:"center",borderRadius:1,py:1.5,px:1,m:0,fontSize:"0.9em",cursor:"pointer","&:hover":{backgroundColor:"#f5f5f5"}},bundleOptionPresale:{backgroundColor:"#000",color:"#fff","&:hover":{backgroundColor:"#000"}},bundlePresalePrice:{textAlign:"right",pl:1},bundlePrice:{width:"20%",textAlign:"right",cursor:"pointer","& label":{cursor:"pointer"}},historicalContext:{textAlign:"center",mt:1,fontSize:"0.75em",color:"gray"}};var eb=e=>{var t;let a;let v=(0,N.useRouter)(),{t:P,locale:k,isoLocale:D,country:W,currency:F,currencyString:E}=(0,g.Z)(),{state:M,dispatch:V}=(0,r.useContext)(b.A),{state:X,dispatch:q}=(0,r.useContext)(j.I),{state:J,dispatch:eb}=(0,r.useContext)(ea.k),{trackPageView:ef,trackAddToCart:ej}=(0,O.Z)(),[ev,ey]=(0,r.useState)(null),[eP,ew]=(0,r.useState)({}),[eZ,eC]=(0,r.useState)(null),[eS,eN]=(0,r.useState)(!1),[ek,eI]=(0,r.useState)(!1),[eR,e_]=(0,r.useState)({}),[eD,eA]=(0,r.useState)({}),[eO,ez]=(0,r.useState)({}),[eB,eW]=(0,r.useState)(null),[eF,eT]=(0,r.useState)(1),eL=(0,r.useRef)(),{categories:eU,product:eE,page:eH,error:eG,selectedVariant:eY}=e,eM=eY||v.query.variant||null,eV=eE?(0,Z.OB)(eM?eE.sellables.filter(e=>e.productNumber===eM):eE.sellables):null,eX={};eV&&(eX={displayPrice:eV.salesPrice,vatlessDisplayPrice:(0,Z.pZ)(eV.salesPrice,eV.vat),normalPrice:eV.normalPrice,isSalesPrice:eV.salesPrice<eV.normalPrice,sellablesLength:eE.sellables.length,priceSalePercantage:(eV.normalPrice-eV.salesPrice)/eV.normalPrice*100});let[eq,eJ]=(0,r.useState)(eX),eK=M.cart,eQ=(0,Y.dn)(),e$=(0,Z.Jc)(eQ),{ref:e0,inView:e1}=(0,Z.C5)()&&void 0!==window.IntersectionObserver?(0,T.YD)():{ref:null,inView:!1},e5=async()=>{let e="/api/product/suggested_for_product",t={productNumber:eE.productNumber};C.constants.SEARCH_PROXY_URL&&(t.shopId=C.constants.SHOP_ID,t.countryCode=C.constants.COUNTRY,t.language=C.constants.LANGUAGE,t.limit=5,e=C.constants.SEARCH_PROXY_URL+e);try{var a;let n=await R.Z.get(e,{params:t});(null===(a=n.data)||void 0===a?void 0:a.length)?e_({...eR,loading:!1,list:n.data,loaded:!0}):e_({...eR,loading:!1,list:[],loaded:!0})}catch(e){console.log("Unable to load suggested"),e_({...eR,loading:!1,list:[],loaded:!0})}},e2=async()=>{let e="/api/product/related",t={productNumber:eE.productNumber};C.constants.SEARCH_PROXY_URL&&(e=C.constants.SEARCH_PROXY_URL+e,t.shopId=C.constants.SHOP_ID,t.countryCode=C.constants.COUNTRY);try{var a,n;let r=await R.Z.get(e,{params:t}),s=C.constants.SEARCH_PROXY_URL?null===(n=r.data)||void 0===n?void 0:null===(a=n.result)||void 0===a?void 0:a.products:r.data;(null==s?void 0:s.length)?(eA({...eD,loading:!1,list:s,loaded:!0}),eb({type:"setPlaceholderResultsProducts",data:null==s?void 0:s.slice(0,3)})):eA({...eD,loading:!1,list:[],loaded:!0})}catch(e){console.log("Unable to load related"),eA({...eD,loading:!1,list:[],loaded:!0})}},e3=async()=>{let e="/api/product/others-bought-these",t={productNumber:eE.productNumber};C.constants.SEARCH_PROXY_URL&&(e=C.constants.SEARCH_PROXY_URL+e,t.shopId=C.constants.SHOP_ID,t.countryCode=C.constants.COUNTRY);try{var a,n;let r=await R.Z.get(e,{params:t}),s=null===(n=r.data)||void 0===n?void 0:null===(a=n.result)||void 0===a?void 0:a.products;(null==s?void 0:s.length)?ez({...eO,loading:!1,list:s,loaded:!0}):ez({...eO,loading:!1,list:[],loaded:!0})}catch(e){console.error("Unable to load others bought these",e),ez({...eO,loading:!1,list:[],loaded:!0})}};if((0,r.useEffect)(()=>{(0,Z.C5)()&&e1&&(eR.loading||eR.loaded||(e_({...eR,loading:!0}),e5()),eD.loading||eD.loaded||(eA({...eD,loading:!0}),e2()),eO.loading||eO.loaded||(ez({...eO,loading:!0}),e3()))},[e1,(0,Z.C5)()]),(0,r.useEffect)(()=>{(0,Z.C5)()&&eE&&eE.productNumber&&(0===J.placeholderResults.categories.length&&(null==eE?void 0:eE.mainCategory)&&eb({type:"setPlaceholderResultsCategories",data:null==eE?void 0:eE.mainCategory}),0===J.placeholderResults.brands.length&&(null==eE?void 0:eE.brand)&&eb({type:"setPlaceholderResultsBrands",data:[eE.brand]}),e_({loading:!1,list:[],loaded:!1}),eA({loading:!1,list:[],loaded:!1}))},[eE]),(0,r.useEffect)(()=>{let e=async e=>{var t;eN(!0),e.availableQuantity=X[e.productNumber]?X[e.productNumber].count:null,e.shopId=eE.shopId,e.brand=null===(t=eE.brand)||void 0===t?void 0:t.name;let a=await (0,f.dm)(eK,e);if(a){let t=(eK.items||[]).find(t=>t.productNumber===e.productNumber);if(t&&t.limitPerCustomer&&t.amount>=e.limitPerCustomer){eN(!1),V({type:"toggleSelectItemWarning",message:P("Selected option is already in cart. Item has limit of {1} per customer",[e.limitPerCustomer])});return}let n=tp?tp.identifier:void 0;ej({...e,identifier:n},E),V({type:"updateCartItems",cart:a}),V({type:"setAddedNotification",notification:"".concat(e.name," - ").concat(P("added"))}),V({type:"toggleAddedNotification",value:!0})}eN(!1)};if(eZ){if(eP.selectedBundle){let t=eE.sellables.find(e=>e.productNumber===eP.selectedBundle);(null==t?void 0:t.presale)?(0,Q.Z)(new Date,new Date(t.presale.sellableFrom))?e(eZ):V({type:"toggleSelectItemWarning"}):e(eZ)}else V({type:"toggleSelectItemWarning"})}},[eZ]),(0,r.useEffect)(()=>{if((0,Z.C5)()&&eE&&eE.productNumber){let e=tp?tp.identifier:void 0;ef("product",{...eE,lowestPrice:e7(eE),currency:F,identifier:e},E)}},[(0,Z.C5)(),eE]),(0,r.useEffect)(()=>{if(eE&&eE.sellables&&1===eE.sellables.length){let e=eE.sellables[0];ew({...eP,selectedBundle:e.productNumber,salesPrice:e.salesPrice,limitPerCustomer:e.limitPerCustomer,name:e.fullName,isBundle:e.isBundle})}eE&&eE.sellables&&"advertisement"!==eE.type&&eE.sellables.map(e=>{!e||e.discontinued||X[e.productNumber]||(0,Z.zm)(q,e.productNumber)}),window.innerWidth<600&&eW(null);let e=((null==eE?void 0:eE.sellables)||[]).find(e=>e.productNumber===eM);if(e){let t=e.productNumber;ew({...eP,productNumber:t,selectedBundle:t,name:e.fullName,salesPrice:e.salesPrice,limitPerCustomer:e.limitPerCustomer,isBundle:e.isBundle}),eJ({displayPrice:e.salesPrice,vatlessDisplayPrice:(0,Z.pZ)(eV.salesPrice,eV.vat),vat:eV.vat,normalPrice:e.normalPrice,isSalesPrice:e.salesPrice<e.normalPrice,priceSalePercantage:(e.normalPrice-e.salesPrice)/e.normalPrice*100}),window.innerWidth>=600?ta(eE.sellables.find(e=>e.productNumber===t)):(eW(e&&e.images?y()(e.images):null),ey(null),eL.current.scrollLeft=0)}else if(eE){ey(y()(eE.images));let e=(0,Z.OB)(eE.sellables);e&&eJ({displayPrice:e.salesPrice,vat:e.vat,vatlessDisplayPrice:(0,Z.pZ)(e.salesPrice,e.vat),normalPrice:e.normalPrice,isSalesPrice:e.salesPrice<e.normalPrice,sellablesLength:eE.sellables.length,priceSalePercantage:(e.normalPrice-e.salesPrice)/e.normalPrice*100})}},[eE]),(0,r.useEffect)(()=>{if(eE&&eE.sellables){let e=eE.sellables.find(e=>e.productNumber===eP.selectedBundle);e&&eJ({displayPrice:e.salesPrice,vat:e.vat,vatlessDisplayPrice:(0,Z.pZ)(e.salesPrice,e.vat),normalPrice:e.normalPrice,isSalesPrice:e.salesPrice<e.normalPrice,priceSalePercantage:(e.normalPrice-e.salesPrice)/e.normalPrice*100})}},[eP.selectedBundle]),v.isFallback)return(0,n.jsx)(B.Z,{});if(eG){let t=e.error||500;return(0,n.jsx)(S.Z,{statusCode:t,message:P(404===t?"Product not found":"Unexpected error"),retryIn:5})}if(!eE&&!eH)return(0,n.jsx)(S.Z,{statusCode:404,message:P("Product not found")});let e8=e=>{ey(e),window.innerWidth<600&&eI(!0)},e4=e=>{if("giftCard"!==e.itemType&&"virtual"!==e.itemType)return(0,Z.Cp)(P,X,e)},e9=()=>{ey(ev),eI(!0)},e6=e=>I()(e.sellables,"salesPrice","asc")[0],e7=e=>{let t=e6(e);return t?t.salesPrice:0},te=e=>{let t=e.productNumber;if(ew({...eP,selectedBundle:t,...e}),e.packageSize&&e.packageSize>0&&(0,Z.hW)()&&eT(e.packageSize),window.innerWidth>=600)ta(eE.sellables.find(e=>e.productNumber===t));else{let e=eE&&eE.sellables.find(e=>e.productNumber===t);eW(e&&e.images?y()(e.images):null),ey(null),eL.current.scrollLeft=0}},tt=e=>{let t=eE.sellables.find(t=>t.productNumber===e.target.value);t&&(ew({...eP,...t,selectedBundle:t.productNumber,name:(0,Z.N6)(eE.name,t.name)}),t.packageSize&&t.packageSize>0&&(0,Z.hW)()&&eT(t.packageSize),window.innerWidth>=600?ta(eE.sellables.find(e=>e.productNumber===t.productNumber)):(eW(t&&t.images?y()(t.images):null),ey(null),eL.current.scrollLeft=0))},ta=e=>{if(!e.images||0===e.images.length){eE.images&&eE.images.length>0&&e8(eE.images[0]);return}let t=e.images.find(e=>e.primary);t?e8(t):e8(e.images[0])},tn=eH?w()(eH.pageLayouts,{default:!0})||(eH.pageLayouts.length>0?eH.pageLayouts[0]:null):null,tr=eE&&w()(eE.data||[],e=>"ribbon"===e.key&&e.value),ts=eE&&eE.images?y()(eE.images):"";eE&&(!eE.sellables||void 0===eE.sellables.length)&&(eE.sellables=[]);let ti=(0,Z.yK)(eE?eE.brand:{},C.constants.SHOP),tl=(e,t)=>{if(!e.presale)return(0,n.jsx)(n.Fragment,{});let a=(0,Z.YO)(eE.name,e.name),r=eg.bundleOption;if((0,$.Z)(new Date,new Date(e.presale.visibleFrom))||(0,Q.Z)(new Date,new Date(e.presale.visibleUntil)))r={...r,display:"none"};else if((0,Q.Z)(new Date,new Date(e.presale.visibleFrom))&&(0,$.Z)(new Date,new Date(e.presale.sellableFrom))){r={...r,...eg.bundleOptionPresale};let i=48>(0,ee.Z)(new Date(e.presale.sellableFrom),new Date);return(0,n.jsxs)(s.Z,{sx:{...r,borderBottom:t===eE.sellables.length-1?"none":"1px solid #dddddd"},onClick:()=>te({productNumber:e.productNumber,name:(0,Z.N6)(eE.name,e.name),salesPrice:e.salesPrice,limitPerCustomer:e.limitPerCustomer,packageSize:e.packageSize}),children:[(0,n.jsx)(s.Z,{sx:{px:1.5},children:(0,n.jsx)(et.Z,{sx:{fontSize:"2rem"}})}),(0,n.jsxs)(s.Z,{sx:{width:"80%",pl:1},children:[(0,n.jsx)(s.Z,{component:"span",sx:{fontWeight:"700",fontSize:"1.25rem",color:"primary.main",lineHeight:1},children:a})," ",(0,n.jsx)("br",{}),i&&(0,n.jsx)(eh,{daysInHours:!0,date:e.presale.sellableFrom,renderer:e=>{let{completed:t,formatted:a}=e;if(!t)return(0,n.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",fontSize:"1rem"},children:[(0,n.jsxs)(s.Z,{component:"span",sx:{whiteSpace:"nowrap",pr:1},children:[P("Sale starts"),":"]}),(0,n.jsxs)(s.Z,{component:"span",sx:{whiteSpace:"nowrap",fontSize:"1.25rem"},children:[a.hours,":",a.minutes,":",a.seconds]})]});v.reload()}})]}),(0,n.jsx)(s.Z,{sx:eg.bundlePresalePrice,children:(0,n.jsxs)(s.Z,{component:"span",sx:{fontSize:"1.5rem",fontWeight:"bold",whiteSpace:"nowrap"},children:[(0,Z.fl)(D,e.salesPrice)," ",F]})})]},"key_bundle_".concat(e.productNumber))}},to=e=>eT(e.target.value),td=e=>{if(eP.selectedBundle){let t=eE.sellables.find(e=>e.productNumber===eP.selectedBundle).volumeDiscounts||[];if(0===t.length)return;let a=t.filter(t=>e>=t.units);if(a.length>0){let t=I()(a,"units","desc"),n=t[0],r=t[t.length-1];if(n&&r&&e%r.units==0)return" -".concat(n.discount,"%")}}},tc=(e,t)=>{let a;a=e?(0,Z.gT)(e,"thumb"):{path:"https://cdn.handshake.fi/images/taskulamput/tuotekuvat/1_kuva_tulossa.jpg",name:"Image coming"};let r="video"===e.type;return(0,n.jsx)(s.Z,{sx:r?{display:"flex",alignItems:"center"}:{},onClick:()=>e8(e),children:r?(0,n.jsx)(ex,{url:e.path,variant:"card"}):(0,n.jsx)("img",{src:a.path,alt:""})})},tu=(0,Z.cg)(k),tm=(e=>{var t;let a;if((0,Z.Eo)()){let t=e.shopId||v.query.shopId;return t||(t=C.constants.SHOP_ID),{href:v.query.bundle?"/[lang]/r/[shopId]/[product]/[identifier]/[bundle]/reviews":"/[lang]/r/[shopId]/[product]/[identifier]/reviews",as:"".concat(v.asPath,"/reviews")}}let n=null===(t=v.asPath)||void 0===t?void 0:t.split("?"),r=n[0];return 2===n.length&&(a="?".concat(n[1])),{href:v.query.bundle?"/[lang]/[product]/[identifier]/[bundle]/reviews":"/[lang]/[product]/[identifier]/reviews",as:"".concat(r,"/reviews").concat(a||"","#reviews")}})(eE),tp=e.product.mainCategory&&e.product.mainCategory.length>0?e.product.mainCategory[e.product.mainCategory.length-1]:null,tx=e.product.mainCategory&&e.product.mainCategory.length>0?e.product.mainCategory[0]:null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{categories:(eU||[]).filter(e=>"landing"!==e.identifier),currentCategory:tp,currentCategoryTree:tx}),eE&&eH&&eH.pageLayouts&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A(),{children:[(0,n.jsx)("title",{children:eE.name}),(0,n.jsx)("link",{rel:"canonical",href:e.fullPath}),(0,n.jsx)("meta",{property:"og:title",content:eE.name},"og:title"),(0,n.jsx)("meta",{property:"og:type",content:"product"},"og:type"),(0,n.jsx)("meta",{property:"og:url",content:e.fullPath},"og:url"),ts&&(0,n.jsx)("meta",{property:"og:image",content:ts.path},"og:image"),(0,n.jsx)("meta",{property:"og:site_name",content:e.siteName},"og:site_name"),e.facebookId&&(0,n.jsx)("meta",{property:"fb:app_id",content:e.facebookId},"fb:app_id"),(0,n.jsx)("meta",{property:"og:description",content:eE.ingress},"og:description"),(0,n.jsx)("meta",{name:"description",content:eE.ingress},"description"),(0,n.jsx)("meta",{name:"keywords",content:eE.keywords},"keywords"),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,z.C)(eE,eM,X))}}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,z.J)(e.path))}})]}),(0,n.jsx)(ep,{}),(0,n.jsx)(er,{images:[...eE.images,...eE.sellables.filter(e=>e.images&&e.images.length>0).map(e=>e.images[0])],show:ek,close:()=>eI(!1),selectImage:ey,selectedImage:ev||ts,thumbnailContainerRef:eL}),(0,n.jsx)(s.Z,{sx:eg.top,children:(0,n.jsxs)(s.Z,{sx:eg.topRight,children:[e.campaign&&(0,n.jsx)(s.Z,{children:(0,n.jsx)(en,{campaign:e.campaign})}),(0,n.jsxs)(U.Z,{"aria-label":P("Breadcrumb navigation"),sx:eg.breadcrumbs,separator:"›",children:[(0,n.jsx)(H(),{href:tu.href,as:tu.as,legacyBehavior:!0,children:P("Home")}),(eE.mainCategory||[]).map((e,t)=>{let a=(0,Z.GS)(e,void 0,k);return(0,n.jsx)(G.O,{href:a.href,as:a.as,sx:{textDecoration:"underline",textDecorationColor:"inherit"},children:e.name},e.id)})]}),(0,n.jsxs)(s.Z,{sx:eg.productRight,children:[(0,n.jsxs)(s.Z,{sx:eg.productImages,children:[ti&&(0,n.jsx)(s.Z,{sx:eg.brandLogo,children:eE&&eE.brand&&(0,n.jsx)(H(),{prefetch:!1,as:"/".concat(k,"/c/brands/").concat(eE.brand.identifier),href:"/[lang]/c/brands/[brand]",children:(0,n.jsx)("img",{src:ti.path,alt:eE.brand.name})},eE.brand.identifier)}),(0,n.jsxs)(s.Z,{sx:eg.selectedImage,"data-test-id":"ProductMainComponent--SelectedImage--div",children:[tr&&(0,n.jsx)(s.Z,{sx:eg.ribbon,dangerouslySetInnerHTML:{__html:tr.value}}),(ev||ts)&&(0,n.jsx)(ei,{image:(0,Z.gT)(ev||ts,"normal"),variant:"normal",noStyles:!0,onClick:()=>e9()})]}),(0,n.jsxs)(s.Z,{ref:eL,sx:{...eg.thumbnailContainer,...1===eE.images.length&&{overflow:"hidden",justifyContent:"center",display:{xs:"flex",sm:"none"},"& img":{width:"150px",height:"150px"}},...eE.images.length>5&&{justifyContent:{xs:"flex-start",sm:"flex-start"}}},children:[eB&&[eB].map((e,t)=>(0,n.jsx)(s.Z,{sx:{...eg.thumbnail,borderColor:null!==ev?"#aaa7a7":"primary.main",borderWidth:null!==ev?"1px":"2px"},children:tc(e)},"".concat(e.id,"_").concat(t))),eE.images.length>=1&&eE.images.map((e,t)=>(0,n.jsx)(s.Z,{sx:{...eg.thumbnail,"& img":{width:1===eE.images.length?"150px":{xs:"100px",sm:"80px"}},borderColor:e.path!==(null==ev?void 0:ev.path)?"#aaa7a7":"primary.main",borderWidth:e.path!==(null==ev?void 0:ev.path)?"1px":"2px"},children:tc(e)},"".concat(e.id,"_").concat(t)))]})]}),(0,n.jsxs)(s.Z,{sx:eg.productChoices,children:[eE.brand&&(0,n.jsx)(s.Z,{sx:eg.mobileBrand,children:(0,n.jsx)(H(),{prefetch:!1,as:"/".concat(k,"/c/brands/").concat(eE.brand.identifier),href:"/[lang]/c/brands/[brand]",children:eE.brand.name},eE.brand.identifier)}),(0,n.jsx)(p.Z,{variant:"h1",sx:{textAlign:"center",m:0,mb:1,fontWeight:"700",fontSize:"1.7rem"},children:eE.name}),(0,n.jsx)(s.Z,{component:"p",sx:{mt:0,textAlign:"center"},children:(0,n.jsx)("span",{children:eE.ingress})}),e$&&null!==eE.rating&&null!==eE.ratingCount&&eE.ratingCount>0&&(0,n.jsxs)(s.Z,{sx:eg.productRating,children:[(0,n.jsx)(eo,{rating:Math.round(100*eE.rating)/100,numberOfStars:5,name:"rating",starRatedColor:"#ffa500",starDimension:"40px",starSpacing:"0px"}),(0,n.jsx)(s.Z,{sx:{...eg.productRatingTotal,"> a":{...eg.reviewLink}},children:(0,n.jsx)(H(),{href:tm.href,as:tm.as,title:P("Read all reviews"),children:P("number of ratings",{value1:eE.ratingCount})})})]}),e$&&(()=>{if(!C.dynamicConfigs||void 0===C.dynamicConfigs.maxWeightForFreeShipping||!eE.sellables||0===eE.sellables.length)return!1;let e=parseFloat(C.dynamicConfigs.maxWeightForFreeShipping);return!(0!==e&&eE.sellables.find(t=>!t.weight||t.weight>e))})()&&(0,n.jsx)(L.Z,{variant:"product",price:eq.displayPrice,deliveryTypeRestriction:null==eK?void 0:eK.deliveryTypeRestriction}),e$&&eE.sellables.length>0&&(0,n.jsxs)(s.Z,{sx:eg.priceContainer,children:[(0,n.jsxs)(s.Z,{sx:{...eq.isSalesPrice&&{color:"productCard.priceSalePrice.text",backgroundColor:"productCard.priceSalePrice.background",padding:"0.5em 1em",fontStyle:"italic",lineHeight:"1"}},children:[eq.sellablesLength&&eq.sellablesLength>1&&(0,n.jsx)(s.Z,{component:"span",sx:{fontWeight:"bold"},children:P("price from")}),(0,n.jsxs)(s.Z,{component:"span",sx:{fontSize:"2.2em",fontWeight:"bold",letterSpacing:"-1px"},children:[(0,Z.fl)(D,(0,Z.hW)()?eq.vatlessDisplayPrice:eq.displayPrice)," ",F]}),(0,Z.hW)()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),(0,n.jsxs)("span",{children:["(",(0,Z.fl)(D,eq.displayPrice)," ",F," ",P("With VAT {1}%",[eq.vat])," ) "]})]})]}),eq.isSalesPrice&&(0,n.jsxs)(s.Z,{sx:eg.priceSale,children:[(0,n.jsxs)(s.Z,{component:"span",sx:eg.priceSalePercentage,children:["-",eq.priceSalePercantage.toFixed(),"%"]}),(0,n.jsxs)(s.Z,{component:"span",sx:{textDecoration:"line-through"},children:[(0,Z.fl)(D,eq.normalPrice)," ",F]})]})]}),e$&&1===eE.sellables.length&&(0,n.jsxs)(s.Z,{sx:{color:"#b6b4b4",fontSize:"0.8rem",textAlign:"center"},children:[P("Product number"),": ",eE.sellables[0].productNumber]}),e$&&(()=>{if(eP.selectedBundle){let e=eE.sellables.find(e=>e.productNumber===eP.selectedBundle);if(!e)return;if(e&&e.normalPrice!==e.salesPrice&&e.lowestPriceInPast)return(0,n.jsxs)(s.Z,{sx:eg.historicalContext,children:[P("Lowest price in the past 30 days"),": ",(0,Z.fl)(D,e.lowestPriceInPast)," ",F]})}return(0,n.jsx)(n.Fragment,{})})(),e$&&1===eE.sellables.length&&tl(eE.sellables[0]),e$&&eE.sellables.length>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{component:"p",sx:eg.selectText,children:P("Select option:")}),eP.productNumber&&(0,n.jsxs)(s.Z,{sx:{color:"#b6b4b4",fontSize:"0.8rem",textAlign:"center"},children:[P("Product number"),": ",eP.productNumber]}),(e=>{let t=e.sellables,a=t.find(e=>e.presale),r=e=>{let t=e.salesPrice;return(0,Z.hW)()&&(t=(t/(1+e.vat/100)).toFixed(2)),e.salesPrice!==e.normalPrice?(0,Z.fl)(D,t):(0,Z.fl)(D,e.normalPrice)};return t.length>6&&!a?(0,n.jsxs)(eu,{variant:"outlined",className:"pc-ss",sx:{my:1,mx:2,display:"flex"},children:[(0,n.jsx)(ec,{id:"product-select-label-".concat(e.productNumber),children:P("Select")}),(0,n.jsxs)(ed,{native:!0,labelId:"product-select-label-".concat(e.productNumber),id:"product-select-".concat(e.productNumber),value:eP.productNumber,onChange:e=>tt(e),name:e.number,label:P("Select"),children:[(0,n.jsx)("option",{"aria-label":"None",value:""}),I()(t,[e=>+e.order,e=>parseInt(e.salesPrice)],["asc","asc"]).map(t=>{let a={availabilities:X,product:t.productNumber,orderableIfNoStock:t.orderableIfNoStock,itemType:t.itemType},s=!(0,Z.W5)(a);return(0,n.jsxs)("option",{disabled:s,value:t.productNumber,children:[(0,Z.YO)(e.name,t.name),", ",e4(t),", ",r(t)," ",F]},t.productNumber)}),(0,n.jsx)(s.Z,{component:"optgroup",sx:{display:"none"}})]})]}):I()(t,[e=>e.presale,e=>+e.order,e=>parseInt(e.salesPrice)],["asc","asc","asc"]).map((a,r)=>{let l=(0,Z.YO)(e.name,a.name),o={availabilities:X,product:a.productNumber,orderableIfNoStock:a.orderableIfNoStock,itemType:a.itemType},d=!(0,Z.W5)(o),c=a.salesPrice;if((0,Z.hW)()&&(c=(c/(1+a.vat/100)).toFixed(2)),a.presale){if((0,$.Z)(new Date,new Date(a.presale.sellableFrom)))return tl(a,r);if((0,Q.Z)(new Date,new Date(a.presale.visibleUntil)))return(0,n.jsx)(n.Fragment,{})}return(0,n.jsxs)(s.Z,{sx:{...eg.bundleOption,borderBottom:r===t.length-1?"none":"1px solid #dddddd"},children:[(0,n.jsx)(i.Z,{disabled:d,sx:{p:0},id:"Product--bundleOption--".concat(a.productNumber),checked:eP.productNumber===a.productNumber,onChange:()=>te({productNumber:a.productNumber,name:(0,Z.N6)(e.name,a.name),salesPrice:a.salesPrice,limitPerCustomer:a.limitPerCustomer,packageSize:a.packageSize}),name:"selectedBundle",value:a.productNumber,color:"primary"}),(0,n.jsx)(s.Z,{sx:{width:"100%"},children:(0,n.jsxs)(s.Z,{component:"label",sx:{display:"flex",alignItems:"flex-end",cursor:"pointer"},htmlFor:"Product--bundleOption--".concat(a.productNumber),children:[(0,n.jsxs)(s.Z,{sx:{width:"80%",pl:1},children:[(0,n.jsx)(s.Z,{component:"span",sx:{fontWeight:"700",fontSize:"1rem"},children:l})," ",(0,n.jsx)("br",{}),(0,n.jsx)(s.Z,{component:"span",sx:(0,Z.VD)(X,a),children:e4(a)}),(0,n.jsx)("br",{}),(0,Z.hW)()&&(null==eV?void 0:eV.vat)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{children:["(",(0,Z.fl)(D,a.salesPrice)," ",F," ",P("With VAT {1}%",[eV.vat])," ) "]})})]}),(0,n.jsx)(s.Z,{sx:eg.bundlePrice,children:(0,n.jsxs)("label",{htmlFor:"Product--bundleOption--".concat(a.productNumber),children:[a.normalPrice&&a.normalPrice>a.salesPrice&&(0,n.jsxs)(s.Z,{component:"span",sx:{textDecoration:"line-through",color:"gray"},children:[(0,Z.fl)(D,a.normalPrice)," ",F," ",(0,n.jsx)("br",{})]}),(0,n.jsxs)(s.Z,{component:"span",sx:{fontSize:"1rem",...a.normalPrice&&a.normalPrice>a.salesPrice&&{color:"#ff0000",fontWeight:"bold",fontSize:"1rem"}},children:[(0,Z.fl)(D,c)," ",F]})]})})]})})]},"key_bundle_".concat(a.productNumber))})})(eE)]}),"advertisement"!==eE.type&&eE.sellables.length>0&&(0,Z.hW)()&&(e=>{let t=e.limitPerCustomer&&e.limitPerCustomer>0?e.limitPerCustomer+1:999,a=!1;if(eP.selectedBundle){let e=eE.sellables.find(e=>e.productNumber===eP.selectedBundle);e&&(a=e.packageSize)}return(0,n.jsxs)(eu,{sx:{display:"flex",mt:2},variant:"outlined",size:"small",children:[(0,n.jsx)(ec,{id:"ProductCard--".concat(e.productNumber,"--amount--label"),children:P("Amount")}),(0,n.jsxs)(ed,{native:!0,id:"ProductCard--".concat(e.productNumber,"--amount--select"),onChange:to,label:P("Amount"),labelId:"ProductCard--".concat(e.productNumber,"--amount--label"),value:eF,children:[[...Array(t).keys()].slice(1).map(e=>a?1===e||e%a==0?(0,n.jsxs)("option",{value:e,children:[e,td(e)]},"amount_".concat(e)):void 0:(0,n.jsxs)("option",{value:e,children:[e,td(e)]},"amount_".concat(e))),(0,n.jsx)(s.Z,{component:"optgroup",sx:{display:"none"}})]}),eP.packageSize&&(0,n.jsx)(l.Z,{children:P("Package size is {1}",[eP.packageSize])})]})})(eE),e$&&"advertisement"!==eE.type&&eE.sellables.length>0&&(0,n.jsx)(s.Z,{sx:eg.buyButtonContainer,children:eS?(0,n.jsx)(em,{color:"primary",size:37}):(0,n.jsx)(x.Z,{sx:{minWidth:"80%",textAlign:"center"},variant:"contained",size:"large",color:(a="primary",eQ&&"King Carthur"===eQ.name&&(a="buyButton"),a),onClick:()=>eC({productNumber:eP.selectedBundle,name:eP.name,amount:eF,salesPrice:eP.salesPrice,limitPerCustomer:eP.limitPerCustomer}),disabled:(e=>{let t=[];return(e.sellables.map(e=>{let a={availabilities:X,product:e.productNumber,orderableIfNoStock:e.orderableIfNoStock,itemType:e.itemType};t.push((0,Z.W5)(a))}),1===e.sellables.length&&e.sellables[0].presale)?!(0,$.Z)(new Date(e.sellables[0].presale.sellableFrom),new Date):!t.includes(!0)})(eE),"data-test-id":"ProductMainComponent--BuyButton",children:P("Buy now!")})}),"advertisement"!==eE.type&&(0,Z.hW)()&&(()=>{let e=[];return(eE.sellables.map(t=>{t.volumeDiscounts&&t.volumeDiscounts.map(a=>{e.push({item:t.name,...a})})}),0===e.length)?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(s.Z,{sx:{mt:"auto"},children:(0,n.jsxs)(s.Z,{sx:{mt:3},children:[(0,n.jsxs)("p",{children:[P("Volume discounts"),":"]}),(0,n.jsxs)(o.Z,{size:"small",children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(u.Z,{children:P("Item")}),(0,n.jsx)(u.Z,{children:P("Units")}),(0,n.jsx)(u.Z,{children:P("Discount")})]})}),(0,n.jsx)(m.Z,{children:e.map((e,t)=>(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(u.Z,{children:e.item}),(0,n.jsx)(u.Z,{children:e.units}),(0,n.jsxs)(u.Z,{children:[e.discount,"%"]})]},t))})]})]})})})(),"advertisement"!==eE.type&&e$&&1===eE.sellables.length&&eE.sellables.map(e=>(0,n.jsx)(s.Z,{component:"p",sx:{textAlign:"center",my:1},children:(0,n.jsx)(s.Z,{component:"span",sx:(0,Z.VD)(X,e),children:e4(e)})},"key_".concat(e.productNumber))),e$&&(0,n.jsx)(el,{product:eE,price:eq.displayPrice}),e$&&(0,n.jsx)(K,{product:eE,price:eq.displayPrice})]})]})]})}),(0,n.jsx)("div",{ref:e0}),tn?(0,h.G0)(tn,{product:eE,regions:tn.pageRegions||[],country:W,translate:P,language:k}):(0,n.jsx)("div",{children:"Product missing layout configurations"})]}),!1,(0,n.jsx)(es,{products:eD.list,title:P("Related products"),gridMargin:!1,condensedCard:!0,feedItem:!0,dataTestId:"RelatedProducts-div",listIdentifier:"related"}),(0,n.jsx)(es,{products:eO.list,title:P("Others bought these"),gridMargin:!1,condensedCard:!0,feedItem:!0,listIdentifier:"othersBought",dataTestId:"OthersBoughtTheseProducts-div"}),(null===(t=eD.list)||void 0===t?void 0:t.length)===0&&(0,n.jsx)(es,{products:eR.list,title:P("Suggested products"),dataTestId:"SuggestedProducts-div",listIdentifier:"suggested",gridMargin:!1,condensedCard:!0})]})}},11038:function(e,t,a){var n=a(85893);a(67294);var r=a(43303),s=a(62191),i=a(27105);t.Z=()=>(0,n.jsxs)(r.Z,{sx:{width:"100%"},children:[(0,n.jsx)(r.Z,{sx:{width:"100%",display:"flex",flexDirection:"row"},children:(0,n.jsxs)(r.Z,{sx:{width:"100%"},children:[(0,n.jsx)(s.Z,{sx:{marginBottom:"1px",m:1,p:1},children:(0,n.jsx)(i.Z,{animation:"wave"})}),(0,n.jsxs)(r.Z,{sx:{width:"100%",display:"flex",flexDirection:{xs:"column",sm:"row"}},children:[(0,n.jsxs)(r.Z,{sx:{mb:3,width:{xs:"100%",sm:"50%",tablet:"60%"}},children:[(0,n.jsx)(r.Z,{sx:{display:{xs:"none",sm:"block"}},children:(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{width:"98%",m:"0 auto",mb:1,height:{sm:"200px",tablet:"350px",desktop:"450px",xl:"600px"}}})}),(0,n.jsx)(r.Z,{sx:{width:"98%",m:"0 auto"},children:(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"100px"}})})]}),(0,n.jsxs)(r.Z,{sx:{mb:3,width:{xs:"100%",sm:"50%",tablet:"40%"}},children:[(0,n.jsx)(r.Z,{sx:{width:"80%",margin:"0 auto",mb:2},children:(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px",width:"100%"}})}),(0,n.jsxs)(r.Z,{sx:{width:"95%",m:"0 auto",mb:2},children:[(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"})]}),(0,n.jsx)(r.Z,{sx:{width:"50%",m:"0 auto",mb:2},children:(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px"}})}),(0,n.jsxs)(r.Z,{sx:{width:"98%",m:"0 auto",mb:2},children:[(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px",mb:.5}}),(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px",mb:.5}}),(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px",mb:.5}})]}),(0,n.jsx)(r.Z,{sx:{width:"80%",m:"0 auto",mb:2},children:(0,n.jsx)(i.Z,{animation:"wave",variant:"rectangular",sx:{height:"50px",borderRadius:.5}})})]})]})]})}),(0,n.jsx)(r.Z,{sx:{width:"100%",display:"flex",flexDirection:"row"},children:(0,n.jsxs)(r.Z,{sx:{width:"100%",display:"flex",flexDirection:{xs:"column",sm:"row"}},children:[(0,n.jsx)(r.Z,{sx:{mb:3,width:{xs:"100%",sm:"50%"}},children:(0,n.jsxs)(r.Z,{sx:{width:"98%",margin:"0 auto"},children:[(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"})]})}),(0,n.jsx)(r.Z,{sx:{mb:3,width:{xs:"100%",sm:"50%"}},children:(0,n.jsxs)(r.Z,{sx:{width:"98%",margin:"0 auto"},children:[(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"}),(0,n.jsx)(i.Z,{animation:"wave"})]})})]})})]})},26918:function(e,t,a){a.d(t,{C:function(){return d},J:function(){return c}});var n=a(25564),r=a(6383),s=a(5088),i=a(83332),l=a(75472),o=a.n(l);let d=function(e,t){var a,l;let d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e||!e.sellables||0===e.sellables.length)return;let c=(0,n.C5)()?"".concat(window.location.pathname).concat(window.location.pathname):r.constants.SHOP_URL,u=e.images.map(e=>(0,n.gT)(e,"normal"));if(u=u.map(e=>e.path),!t&&(null===(a=e.sellables)||void 0===a?void 0:a.length)>0){let a=null===(l=e.sellables)||void 0===l?void 0:l.find(e=>!1===e.isBundle);a&&a.productNumber&&(t=a.productNumber)}let m=t?e.sellables.find(e=>e.productNumber===t):e.sellables[0];if(!m)return;let p={"@type":"Offer",url:"".concat(c,"?variant=").concat(m.productNumber),priceCurrency:r.constants.CURRENCYCODE,price:m.salesPrice<m.normalPrice?"".concat(m.salesPrice):"".concat(m.normalPrice),priceValidUntil:(0,s.Z)((0,i.Z)(new Date,1),"yyyy-MM-dd")},x=(e=>{let t=d["".concat(e,"--A1")];if(t&&!0===t.orderable)return"available"===t.status&&t.count>0?"https://schema.org/InStock":("incoming"===t.status&&t.count,"https://schema.org/OutOfStock")})(m.productNumber);x&&(p.availability=x);let h={"@context":"https://schema.org/","@type":"Product",name:e.name,image:u&&u.length>0?u[0]:void 0,description:e.ingress,sku:e.productNumber,gtin:e.eanCode,offers:p};if(e.brand&&(h.brand={"@type":"Brand",name:e.brand.name}),e.rating&&e.ratingCount&&(h.aggregateRating={"@type":"AggregateRating",ratingValue:e.rating,reviewCount:e.ratingCount}),e.reviews&&e.reviews.length>0){let t=o()(e.reviews,"rating","desc");t&&parseFloat(t.rating)>=4&&(h.review={"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:t.value},author:{"@type":"Person",name:t.createdBy},reviewBody:t.comment})}return h},c=e=>{let t="".concat(r.constants.SHOP_URL,"/").concat(r.constants.LANGUAGE);return{"@context":"https://schema.org","@type":"WebSite",url:"".concat(t).concat(e?"/".concat(e):""),potentialAction:{"@type":"SearchAction",target:"".concat(t,"/c/search?query={search_term_string}"),"query-input":"required name=search_term_string"}}}}}]);