1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{24913:function(e,t,i){"use strict";var r=i(59499),o=i(94184),l=i.n(o),a=i(67294),n=i(49878),s=i(99962),c=i(32951),d=i(8100),u=i(11435),v=i(42389),p=i(85025),m=i(39210),h=i(44525),g=i.n(h),f=i(85893);function _(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function b(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?_(Object(i),!0).forEach((function(t){(0,r.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}t.Z=e=>{let{className:t,locale:i,data:r,productId:o}=e;const{setSaveItemSelectionList:h}=(0,s.rV)(),{0:_,1:y}=(0,a.useState)([]),w=(0,u.i)(),{translations:x}=w,{relatedProductsDefaultTitle:j}=x.product,{title:L,relatedProducts:P}=r||{},{data:C}=(0,d.ZP)(!o||null!==P&&void 0!==P&&P.length?null:`/api/shopify/utils/getProductRecommendations?productId=${o}&locale=${i}`,(async e=>{const t=await fetch(e);return await t.json()}),{refreshInterval:6e4});(0,a.useEffect)((()=>{var e,t;if(null===C||void 0===C||null===(e=C.data)||void 0===e||!e.length)return;const r=null===C||void 0===C||null===(t=C.data)||void 0===t?void 0:t.filter((e=>{var t;return null===(t=e.availableLocales)||void 0===t?void 0:t.find((e=>(0,c.vh)(i)===e))}));r&&y(r)}),[C,i]),(0,a.useEffect)((()=>{if(null===P||void 0===P||!P.length)return;const e=null===P||void 0===P?void 0:P.filter((e=>{var t;return null===(t=e.availableLocales)||void 0===t?void 0:t.find((e=>(0,c.vh)(i)===e))}));if(!e)return;(async()=>{if(e.length>0){const t=e.map((e=>{var t;return`gid://shopify/Product/${null===(t=e.shopifyData)||void 0===t?void 0:t.variants[0].product_id}`})),r=await(0,m.Z)({productIds:t,locale:i});r.length>0&&e.forEach((e=>{((e,t)=>{const i=null===t||void 0===t?void 0:t.find((t=>{var i,r;let{productSKU:o}=t;return o===(null===e||void 0===e||null===(i=e.shopifyData)||void 0===i||null===(r=i.variants[0])||void 0===r?void 0:r.sku)}));null!==e&&void 0!==e&&e.shopifyData&&(e.shopifyData.variants[0]=b(b(b(b({},e.shopifyData.variants[0]),(null===i||void 0===i?void 0:i.productCompareAtPrice)&&{compareAtPrice:null===i||void 0===i?void 0:i.productCompareAtPrice}),{},{outOfStock:null===i||void 0===i?void 0:i.outOfStock},(null===i||void 0===i?void 0:i.productPrice)&&{price:null===i||void 0===i?void 0:i.productPrice}),(null===i||void 0===i?void 0:i.productTitle)&&{title:null===i||void 0===i?void 0:i.productTitle}))})(e,r);const t=r.find((t=>{var i,r;let{productSKU:o}=t;return(null===(i=e.shopifyData)||void 0===i||null===(r=i.variants[0])||void 0===r?void 0:r.sku)===o}));e.cardShopifyData=t})),y(e.filter((e=>{var t,i;return!(null!==(t=e.shopifyData)&&void 0!==t&&null!==(i=t.variants[0])&&void 0!==i&&i.outOfStock)})))}})()}),[P]);return _.length?(0,f.jsx)("section",{id:"sectionRelatedProducts",className:l()(t,g().relatedProducts),children:_.length>0&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(p.Z,{title:L||j,className:g().relatedProductsSlider,children:null===_||void 0===_?void 0:_.map(((e,t)=>(0,f.jsx)(v.Z,{onClick:()=>{((e,t)=>
1{var r,o,l,a,s,c,d,u,v;(0,n.Z)({product:{name:null===(r=e.cardShopifyData)||void 0===r?void 0:r.productTitle,id:null===(o=e.shopifyData)||void 0===o||null===(l=o.variants)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.product_id,category:null===e||void 0===e||null===(s=e.title)||void 0===s||null===(c=s.split(" "))||void 0===c?void 0:c[0],category2:null===e||void 0===e||null===(d=e.title)||void 0===d||null===(u=d.slice(-1))||void 0===u?void 0:u[0],price:null===(v=e.cardShopifyData)||void 0===v?void 0:v.productPrice,position:t},list:"Related products",setSaveItemSelectionList:h,locale:i})})(e,t)},locale:i,className:g().relatedProductsItem,itemData:e,itemIndex:t,pageTitle:"Related Products"},e.slug)))})})}):null}},42389:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var r=i(24675),o=i(65080),l=i(94184),a=i.n(l),n=i(22688),s=i(67294),c=i(32951),d=i(11163),u=i(17378),v=i(28439),p=i(56690),m=i(96227),h=i(11435),g=i(85182),f=i(35321),_=i.n(f),b=i(56876),y=i(22538),w=i(85893);var x=e=>{var t,i,l,f;let{className:x,locale:j,onClick:L,itemData:P,itemIndex:C,pageTitle:O,attributeLabelTextColor:S,attributeLabelBackgroundColor:N,freeItemLabel:k}=e;const{title:I,type:Z,slug:D,productAttributes:T,size:A,customLabel:R,cardShopifyData:M,rating:B}=P,E=(0,h.i)(),{hasWebshop:F}=E.settings.locale,{0:H,1:z}=(0,s.useState)(B);(0,s.useEffect)((()=>{var e,t,i;const r=null===P||void 0===P||null===(e=P.shopifyData)||void 0===e||null===(t=e.variants)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.sku;if((null===B||void 0===B||!B.averageRating)&&j&&r){(async()=>{const e=await(0,m.Z)({skuArr:[r],locale:j});if(null!==e&&void 0!==e&&e.length){const t=e.reduce(((e,t)=>e+parseFloat(t.average_rating||0)),0)/e.length,i=e.reduce(((e,t)=>e+(t.num_ratings||0)),0);z({averageRating:t,totalReviews:i})}})()}}),[B,P,j]);const W=(0,s.useMemo)((()=>({price:null===M||void 0===M?void 0:M.productPrice,compareAtPrice:null===M||void 0===M?void 0:M.productCompareAtPrice,salePercentage:null===M||void 0===M?void 0:M.salePercentage,outOfStock:null===M||void 0===M?void 0:M.outOfStock})),[M]),{price:$,compareAtPrice:G,outOfStock:K}=W,U=Array.isArray(M)?null===(t=P.shopifyData)||void 0===t||null===(i=t.variants)||void 0===i||null===(l=i[0])||void 0===l?void 0:l.unitPrice:null===M||void 0===M?void 0:M.unitPrice,V=(0,o.Z)(),q=(0,d.useRouter)(),Q="PageGeneral"===Z?null===P||void 0===P?void 0:P.highlightsImage:null===P||void 0===P?void 0:P.image,{0:J,1:Y}=(0,s.useState)(!1),X=(0,c.Me)(`${"PageProduct"===Z||"PageProductBundle"===Z?"p/":""}${D}`,j,q);return(0,w.jsx)(w.Fragment,{children:Q&&(0,w.jsxs)("div",{className:a()(_().container,x),children:[(0,w.jsxs)(n.Z,{locale:j,draggable:!1,href:X,className:_().cardLink,onClick:L,children:[(0,w.jsxs)("div",{className:a()(_().imageWrapper,{[_().productAnimation]:J}),onMouseEnter:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[(0,w.jsx)(r.Z,{className:_().image,src:((e,t)=>{return"PageGeneral"===e?null===t||void 0===t?void 0:t.highlightsImage:"PageCollection"===e?(i=null===t||void 0===t?void 0:t.image,V?i.mobile:i.desktop):null===t||void 0===t?void 0:t.image;var i})(Z,J&&null!==P&&void 0!==P&&null!==(f=P.productPictures)&&void 0!==f&&f[0]?{image:P.productPictures[0]}:P),alt:"",draggable:!1,sizes:"50vw",layout:"fill"}),(0,w.jsx)(g.Z,{freeItemLabel:k,customLabel:R,productAttributes:T,attributeLabelTextColor:S,attributeLabelBackgroundColor:N}),(null===H||void 0===H?void 0:H.averageRating)>0&&(0,w.jsx)(y.Z,{className:_().rating,rating:null===H||void 0===H?void 0:H.averageRating,max:5,starSize:"1.4rem",starSizeMobile:"1.2rem"})]}),(0,w.jsxs)("div",{className:_().productInfo,children:[(0,w.jsx)("h3",{className:_().productTitle,children:I}),F&&(0,w.jsxs)("span",{className:_().productPrices,children:[(0,w.jsxs)("span",{children:[G?(0,w.jsx)("s",{children:(0,p.H4)({locale:j,price:G})}):(0,p.H4)({locale:j,price:$}),G&&(0,w.jsx)("span",{className:_().salesPrice,children:(0,p.H4)({locale:j,price:$})})]}),(0,w.jsx)(v.Z,{size:A,price:$,unitPrice:U,locale:j})]})]})]}),F&&(0,w.jsx)("div",{className:_().imageOverlay,children:(0,w.jsx)(u.Z,{className:_().wishlistIcon,productData:P,list:`Category: ${O}`,index:C})}),F&&(0,w.jsx)(b.Z,{productData:P,itemIndex:C,pageTitle:O,locale:j,outOfStock:K})]})})}},85182:function(e,t,i){"use strict";var r=i(94184),o=i.n(r),l=i(11435),a=i(29594),n=i.n(a),s=i(85893);t.Z=e=>{var t,i;let{freeItemLabel:r,customLabel:a,productAttributes:c,attributeLabelTextColor:d,attributeLabelBackgroun
1dColor:u}=e;const v=(0,l.i)(),p=void 0===r?null:r||a,m=c&&c[0]&&(null===(t=v.settings)||void 0===t||null===(i=t.productCard)||void 0===i?void 0:i.showLabel);return(0,s.jsxs)(s.Fragment,{children:[p&&(0,s.jsx)("div",{className:o()(n().label,n().customLabel),children:(0,s.jsx)("span",{children:p})}),m&&(0,s.jsx)("div",{className:o()(n().label,n().attributeLabel),style:(()=>{const e={};return d&&(e.color=d),u&&(e.backgroundColor=u),e})(),children:(0,s.jsx)("span",{className:n().attributeLabelText,children:c[0]})})]})}},22538:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var r=i(94184),o=i.n(r),l=i(33255),a=i.n(l),n=i(85893);var s=e=>{let{rating:t,max:i,starSize:r,starSizeMobile:l,className:s}=e;const c=[];for(let o=0;o<i;o++){const e=Math.max(0,Math.min(1,t-o));c.push((0,n.jsxs)("div",{className:a().starIcon,children:[(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"#CCCCCC",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M7 0L8.65248 5.34752H14L9.67376 8.65248L11.3262 14L7 10.695L2.67376 14L4.32624 8.65248L0 5.34752H5.34752L7 0Z"})}),(0,n.jsx)("div",{className:a().starFill,style:{width:100*e+"%"},children:(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M7 0L8.65248 5.34752H14L9.67376 8.65248L11.3262 14L7 10.695L2.67376 14L4.32624 8.65248L0 5.34752H5.34752L7 0Z",fill:"black"})})})]},o))}return(0,n.jsx)("div",{className:o()(a().starsContainer,s),style:{"--star-size":r,"--star-size-mobile":l},children:c})}},85025:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var r=i(94184),o=i.n(r),l=i(67294),a=i(99962),n=i(65080),s=i(60708),c=i.n(s),d=i(97619),u=i(85893);var v=e=>{let{title:t,subtitleContent:i,children:r,slidesPerView:s,contentId:v,contentRole:p}=e;const m=(0,l.useRef)(null),h=(0,n.Z)(),{mobile:g=1.25,desktop:f=5}=s||{},_=h&&(null===r||void 0===r?void 0:r.length)>g||!h&&(null===r||void 0===r?void 0:r.length)>f;(0,a._1)(m),(0,l.useEffect)((()=>{m.current&&m.current.scrollTo({left:0,behavior:"smooth"})}),[r]);const b=(e,t)=>{e.preventDefault();const i=m.current;if(!i)return;const r=i.querySelectorAll(`.${c().slidesContainer} > *`);if(!r.length)return;const o=Math.floor(h?(null===s||void 0===s?void 0:s.mobile)||1.25:(null===s||void 0===s?void 0:s.desktop)||5),l=i.scrollLeft,a=window.getComputedStyle(i.querySelector(`.${c().slidesContainer}`)),n=parseFloat(a.gap)||parseFloat(a.columnGap)||0,d=[];for(let s=0;s<r.length;s++){const e=r[s],t=e.offsetLeft,o=t+e.offsetWidth,a=t>=l&&o<=l+i.clientWidth,n=t<l&&o>l||o>l+i.clientWidth&&t<l+i.clientWidth;(a||n)&&d.push({index:s,visibility:a?"full":"partial"})}let u;if("right"===t){const e=d[d.length-1];u="full"===e.visibility?e.index+1:e.index,u>=r.length&&(u=r.length-1)}else{const e=d[0];u="full"===e.visibility?e.index-o:e.index-o+1,u<0&&(u=0)}if(u>=0&&u<r.length){const e=r[u];i.scrollTo({left:e.offsetLeft-n,behavior:"smooth"})}};return(0,u.jsxs)("div",{className:c().container,children:[(0,u.jsxs)("div",{className:c().sliderHead,children:[(0,u.jsx)("h2",{className:c().title,children:t}),i,(0,u.jsx)("span",{className:c().arrowButtons,children:_&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",{type:"button",className:c().arrowButton,onClick:e=>b(e,"left"),"aria-label":"Scroll to the left",children:(0,u.jsx)(d.Z,{type:"chevron",className:c().icon})}),(0,u.jsx)("button",{type:"button",className:c().arrowButton,onClick:e=>b(e,"right"),"aria-label":"Scroll to the right",children:(0,u.jsx)(d.Z,{type:"chevron",className:c().icon})})]})})]}),(0,u.jsx)("div",{className:o()(c().slider),ref:m,children:(0,u.jsx)("div",{className:c().slidesContainer,id:v,role:p,style:{"--slidesPerViewDesktop":f,"--slidesPerViewMobile":g,"--childrenLength":r.length},children:r})})]})}},49878:function(e,t,i){"use strict";var r=i(59499),o=i(56690),l=i(83454);function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(i),!0).forEach((function(t){(0,r.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}t.Z=e=>{let{product:t,list:i,setSaveItemSelectionList:r,locale:a}=e;try{const e={currency:(0,o.E8)(a),items:[n(n(n({item_name:null===t||void 0===t?void 0:t.name,item_id:String(null===t||void 0===t?void 0:t.id),price:null===t||void 0===t?void 0:t.price,item_brand:"Keune",item_category:null===t||void 0===t?void 0:t.category},(null===t||void 0===t?void 0:t.category2)&&{item_category2:null===t||void 0===t?void 0:t.category2}),(null===t||void 0===t?void 0:t.category3)&&{item_category3:null===t||void 0===t?void 0:t.category3}),{},{item_list_name:i,index:null===t||void 0===t?void 0:t.position,quantity:1})]};var s,c,d;if(window.dataLayer)window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"select_item",ecommerce:e}),r({itemListName:null===(s=e.items[0])||void 0===s?void 0:s.item_list_name,itemIndex:null===(c=e.items[0])||void 0===c?void 0:c.index,productId:null===(d=e.items[0])||void 0===d?void 0:d.item_id});else setTimeout((()=>{var t,i,o;window.dataLayer&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"select_item",ecommerce:e}),r({itemListName:null===(t=e.items[0])||void 0===t?void 0:t.item_list_name,itemIndex:null===(i=e.items[0])||void 0===i?void 0:i.index,productId:null===(o=e.items[0])||void 0===o?void 0:o.item_id}))}),[l.env.GTM_DELAY])}catch(u){console.error("There was an error sending data to Google Tag Manager: ",u)}}},96227:function(e,t,i){"use strict";var r=i(32951);const o={uk:"en",se:"sv","fr-fr":"fr"};t.Z=async e=>{let{skuArr:t,locale:i}=e;if(null===t||void 0===t||!t.length)return[];const l=(0,r.oh)(i),a={store:"keune.com",lang:o[l]||l,sku:t.join(";")};try{const e=`https://api.reviews.io/product/rating-batch?${new URLSearchParams(a)}`,t=await fetch(e);if(t.ok){return await t.json()}return[]}catch(n){return console.log(n),[]}}},44525:function(e){e.exports={relatedProductsTitle:"relatedProducts_relatedProductsTitle__0_Zwm"}},35321:function(e){e.exports={container:"productCard_container__c8KXV",cardLink:"productCard_cardLink__WSR0Q",imageWrapper:"productCard_imageWrapper__wOrTe",productAnimation:"productCard_productAnimation__IKDVm",boomerang:"productCard_boomerang__ZTcgq",image:"productCard_image__d2YqI",label:"productCard_label__9KsjK",customLabel:"productCard_customLabel__Cpt9H",attributeLabel:"productCard_attributeLabel__3TYUv",imageOverlay:"productCard_imageOverlay__GyP1C",wishlistIcon:"productCard_wishlistIcon__RTSs9",rating:"productCard_rating__STjRd",productInfo:"productCard_productInfo__0JWo_",salesPrice:"productCard_salesPrice__0rF7j",productPrices:"productCard_productPrices__AcW5l"}},29594:function(e){e.exports={label:"productLabels_label__cQwJl",customLabel:"productLabels_customLabel__g9BuG",attributeLabel:"productLabels_attributeLabel__phVQJ"}},33255:function(e){e.exports={starsContainer:"ratingStars_starsContainer__UG5og",starIcon:"ratingStars_starIcon__FnNqQ",starFill:"ratingStars_starFill__5F6tK"}},60708:function(e){e.exports={sliderHead:"slider_sliderHead__ZMHnC",arrowButtons:"slider_arrowButtons__ydzzN",arrowButton:"slider_arrowButton__OrzUa",icon:"slider_icon__35UtU",title:"slider_title___HTwt",slider:"slider_slider__5pZWg",slidesContainer:"slider_slidesContainer__pQ6eN"}}}]); 2//# sourceMappingURL=4913-1375b25a6b0b29df.js.map
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.