(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[704],{43590:function(e,n,t){"use strict";t.d(n,{e:function(){return v}});var i=t(85893),r=t(67294),l=t(91296),o=t.n(l),c=t(82289),a=t(86017);let s=2*Number.parseInt(t(36252).r.padding.md);var d=t(1289),u=t(58298),p=t(90804);let h=d.ZP.div.withConfig({displayName:"styles__ExcerptBlockContainer",componentId:"sc-26ced2c1-0"})(["position:relative;display:flex;box-sizing:border-box;flex-direction:column;background-color:",";padding:",";height:",";transition:height 1s cubic-bezier(0.19,1,0.22,1);"],e=>{let{theme:n}=e;return n.palette.white},e=>{let{theme:n}=e;return n.padding.md},e=>{let{$isOpen:n,$maxOpenedHeight:t}=e;return n?t?"".concat(t,"px"):"100%":"".concat(280,"px")}),f=d.ZP.div.withConfig({displayName:"styles__Header",componentId:"sc-26ced2c1-1"})(["display:flex;justify-content:space-between;align-items:center;padding-bottom:",";"],e=>{let{theme:n}=e;return n.padding.md}),g=(0,d.ZP)(u.o).withConfig({displayName:"styles__CloseButton",componentId:"sc-26ced2c1-2"})(["position:absolute;top:0;right:0;z-index:1;margin:",";"],e=>{let{theme:n}=e;return n.margin.sm}),m=d.ZP.div.withConfig({displayName:"styles__ContentContainer",componentId:"sc-26ced2c1-3"})(["overflow-y:hidden;position:relative;"]),x=(0,d.ZP)(p.P).withConfig({displayName:"styles__ReadMoreButton",componentId:"sc-26ced2c1-4"})(["align-self:center;margin-top:",";"],e=>{let{theme:n}=e;return n.margin.md}),v=e=>{let{children:n,className:t,closeLabel:l,readMoreLabel:d,title:u,isOpen:p=!1,id:v,onChange:b}=e,[w,j]=(0,r.useState)(p),[y,P]=(0,r.useState)(!p),[C,_]=(0,r.useState)(),N=(0,r.useRef)(null),I=(0,r.useRef)(null),S=e=>{j(e),null==b||b({isOpen:e})},k=(0,r.useCallback)(()=>{var e,n,t,i;_((null!==(t=null===(e=N.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)+(null!==(i=null===(n=I.current)||void 0===n?void 0:n.clientHeight)&&void 0!==i?i:0)+s)},[]);return(0,r.useEffect)(()=>{k()},[u,n,k]),(0,r.useEffect)(()=>{if(C){let e=C>280;P(e),e||j(!0)}},[C]),(0,r.useEffect)(()=>{let e=o()(k,500);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[k]),(0,i.jsxs)(h,{$isOpen:w,$maxOpenedHeight:C,className:t,id:v,children:[u?(0,i.jsx)(f,{ref:N,children:(0,i.jsx)(c.x,{variation:"headingS",overrideTagName:"h2",children:u})}):null,y&&w?(0,i.jsx)(g,{Icon:a.b,onClick:()=>S(!1),"aria-controls":v,"aria-label":l}):null,(0,i.jsx)(m,{children:(0,i.jsx)("div",{ref:I,children:n})}),y&&!w?(0,i.jsx)(x,{onClick:()=>S(!0),fullWidth:!0,"aria-controls":v,"aria-label":d,children:d}):null]})}},73963:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/brand/[name]",function(){return t(52858)}])},87136:function(e,n,t){"use strict";t.d(n,{E:function(){return u}});var i=t(85893),r=t(67294),l=t(1289),o=t(43590),c=t(9180),a=t(16761),s=t(25257);let d=(0,l.ZP)(o.e).withConfig({componentId:"sc-41b7f430-0"})(["max-width:650px;margin:0 auto;"]),u=e=>{var n,t,l;let{id:o,rootSeoTexts:u=[],seoTexts:p=[]}=e,{t:h}=(0,c.$G)(),f=(0,r.useRef)(null),{isVisible:g}=(0,c.S1)({target:f,once:!0},{threshold:0}),{trackOnClickFeature:m}=(0,a.ah)({featureId:"SeoTextBlock-".concat(o),featureName:null!==(l=null==p?void 0:null===(t=p[0])||void 0===t?void 0:null===(n=t.children)||void 0===n?void 0:n[0].text)&&void 0!==l?l:"SeoTextBlock",isVisible:g});return(0,i.jsx)("div",{ref:f,children:(0,i.jsxs)(d,{readMoreLabel:h("common::Read more"),closeLabel:h("common::Close"),onChange:()=>{m()},children:[p.length>0?(0,i.jsx)(s.X,{blocks:p}):null,u.length>0?(0,i.jsx)(s.X,{blocks:u}):null]})})}},47959:function(e,n,t){"use strict";t.d(n,{_F:function(){return s},Mx:function(){return u},vr:function(){return g},Wx:function(){return h},dn:function(){return d},p3:function(){return p}});var i=t(87218);let r=(e,n)=>{if("string"!=typeof e)return;let t=e.replace(/(<([^>]+)>)|(\r\n|\n|\r)/g,"");if(!t)return t;let i=t;if(i.length>160&&(i=i.slice(0,160)),"string"!=typeof n)return i;let r=n.slice(n.length-4),l=" | ".concat(r);return i.length+l.length>160&&(i=i.slice(0,160-l.length)),i+l};var l=t(39327),o=t(9180),c=t(5992),a=t(98039);let s=(e,n,t,i)=>{let{title:r,description:o,overrideCanonicalUrl:a,noIndex:s,image:d,seoStructuredData:u}=e,{title:p="",description:h,productCount:f=0}=n,g=i("common::Always cheap shipping"),m=(r&&r.length<=15?"".concat(r," - ").concat(g):r)||(p&&p.length<=15?"".concat(i("common::Buy")," ").concat(p.toLowerCase()," online - ").concat(g):"".concat(i("common::Buy")," ").concat(p.toLowerCase()," online"))||g;return{title:(0,l.hP)({prefix:m,postfix:c.YN}),description:o||h||null,canonicalUrl:t,overrideCanonicalUrl:a,noIndex:f>0?s:"follow",image:d,seoStructuredData:u}},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,{t:i}=(0,o.$G)(),{title:r,description:a,overrideCanonicalUrl:s,noIndex:d}=e,{title:u,description:p}=n,h=i("common::Always cheap shipping"),f=(r&&r.length<=15?"".concat(r," - ").concat(h):r)||(u&&u.length<=15?"".concat(i("common::Buy")," ").concat(u," online - ").concat(h):"".concat(i("common::Buy")," ").concat(u," online"))||h;return{title:(0,l.hP)({prefix:f,postfix:c.YN}),description:a||p||null,canonicalUrl:t,overrideCanonicalUrl:s,noIndex:d}},u=(e,n,t)=>{let{title:i,description:r,overrideCanonicalUrl:o,noIndex:a}=e,{title:s,description:d}=n;return{title:(0,l.hP)({prefix:i||s,postfix:c.YN}),description:r||d||null,canonicalUrl:t,overrideCanonicalUrl:o,noIndex:a}},p=(e,n,t)=>{let{t:i}=(0,o.$G)(),{title:r,description:a,overrideCanonicalUrl:s,noIndex:d,image:u,seoStructuredData:p}=e,{title:h,description:f}=n,g="".concat(r||h," ").concat(i("common::Inspiration"));return{title:(0,l.hP)({prefix:g,postfix:c.YN}),description:a||f,canonicalUrl:t,overrideCanonicalUrl:s,noIndex:d,image:u,seoStructuredData:p}},h=(e,n,t)=>{let{t:i}=(0,o.$G)(),{title:r,description:a,overrideCanonicalUrl:s,image:d}=e,{title:u,description:p}=n,h=i("common::Always cheap shipping"),f=(r&&r.length<=15?"".concat(r," - ").concat(h):r)||(u&&u.length<=15?"".concat(u," online - ").concat(h):"".concat(u))||h;return{...e,title:(0,l.hP)({prefix:f,postfix:c.YN}),description:a||p||null,canonicalUrl:t,overrideCanonicalUrl:s,image:d}},f=i.Z.imageContextSizes.lg.articleLarge,g=(e,n,t)=>{var i,c;let{title:s,description:d,canonicalUrl:u,images:p,gtin:h}=e,g=r(d,n),m=(0,o.lA)(t||[]),x=(0,l.JY)(s,null===(i=m[0])||void 0===i?void 0:i.value,null===(c=m[1])||void 0===c?void 0:c.value),v=p&&p.length?(0,a.K)(p[0].cloudinaryId,f,s):null;return{description:g,title:x,canonicalUrl:u,image:null!=v?v:void 0,gtin:h}}},52858:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return L},default:function(){return O}});var i=t(82729),r=t(85893),l=t(67294),o=t(1289),c=t(45697),a=t.n(c),s=t(95591),d=t(70609),u=t(80445),p=t(29031);let h=o.ZP.div.withConfig({componentId:"sc-301f04f2-0"})(["display:flex;align-items:center;height:100vh;position:relative;"]);var f=()=>(0,r.jsx)(h,{"data-cy":"page-content-spinner",children:(0,r.jsx)(p.$,{size:"L"})}),g=t(17938),m=t(87136);function x(){let e=(0,i._)(["\n    display: none;\n  "]);return x=function(){return e},e}let v=o.ZP.div.withConfig({componentId:"sc-8c015c71-0"})(["display:block;",""],e=>{let{theme:n}=e;return n.media.desktopM(x())});var b=t(47959),w=t(9180),j=t(77963),y=t(57867),P=t(60756),C=t(30266),_=t(82289),N=t(3060),I=t(63e3);function S(){let e=(0,i._)(["\n    padding-top: ","\n  "]);return S=function(){return e},e}let k=(0,o.ZP)(g.Z).withConfig({componentId:"sc-107d1799-0"})(["padding-bottom:",";"],e=>{let{theme:n}=e;return n.spacing.px40}),Z=(0,o.ZP)(_.x).withConfig({componentId:"sc-107d1799-1"})(["margin-top:",";"],e=>{let{theme:n}=e;return n.margin.sm}),B=(0,o.ZP)(u.r).withConfig({componentId:"sc-107d1799-2"})(["padding-top:",";",";"],e=>{let{theme:n}=e;return"".concat(n.spacing.px10)},e=>{let{theme:n}=e;return n.media.md(S(),n.spacing.px20)}),E=(0,o.ZP)(N.i).withConfig({componentId:"sc-107d1799-3"})(["margin:",";"],e=>{let{theme:n}=e;return"".concat(n.margin.sm," 0")}),z=e=>{let[n,...t]=e;return"".concat(n.toUpperCase()).concat(t.join(""))},T=async(e,n)=>await (0,j.O7)(e,{...n,...(0,P.y)(n.page)}),G=e=>{let{error:n,fallbackData:t,urlEncodedTitle:i,initialSelectedFilters:o,initialSearchPhrase:c,initialSortBy:a,fetchOptions:p,canonicalUrl:h,noIndex:g}=e,{t:x}=(0,w.$G)(),j=(0,w.yj)("/brand/"),P=["BrandPage",i,c,a,p.facets,p.page],{data:N}=(0,s.ZP)(P,()=>T(i,p),{fallbackData:t}),{panels:S={},seo:G={},brandTexts:L={}}=N||{},{productListWithCount:O={},facets:R=[]}=S||{},{productsCount:W,formattedProductsCount:$,articles:Y}=O||{},{seoTexts:A,seoPageHead:M}=G,{title:H,preambleText:X}=L,q=(0,b.dn)(M,{title:H},h),F=[{title:x("common::Brands"),href:j},{title:i,href:"".concat(j).concat(i)}],U=H?z(H):"",D=R.filter(e=>"brand"!==e.name),J=!!H&&!(0,C.Pk)(H),K=H===i?x("brand::Products from {{brandName}}",{brandName:U}):H,Q=(0,l.useRef)(null);return(0,r.jsxs)(k,{seo:{...q,noIndex:J||g},breadcrumbs:F,error:n,children:[(0,r.jsxs)(u.r,{maxWidth:"default",justify:"space-between",align:"baseline",flexWrap:"wrap",withPadding:!0,children:[(0,r.jsx)(u.f,{withGutter:!0,size:12,children:(0,r.jsx)(Z,{variation:"headingL",children:K})}),W&&(0,r.jsx)(u.f,{withGutter:!0,size:12,children:(0,r.jsx)(I.C,{count:$})}),X&&(0,r.jsxs)(u.f,{withGutter:!0,size:12,children:[(0,r.jsx)(_.x,{variation:"labelM",overrideTagName:"p",children:X}),(0,r.jsx)(v,{children:(0,r.jsx)(E,{})})]})]}),(0,r.jsx)(B,{maxWidth:"default",justify:"space-between",align:"center",flexWrap:"wrap",ref:Q,withPadding:!0,children:(0,r.jsx)(u.f,{size:12,withGutter:!0,children:(0,r.jsx)(d.Z,{facets:D,initialSelectedFilters:o,initialSearchPhrase:c,initialSortBy:a,searchPlaceholder:x("brand::Search in brand"),locationId:"brand-page"})})}),(0,r.jsx)(u.r,{as:"section",maxWidth:"default",marginTop:!0,flexWrap:"wrap",children:N?(0,r.jsx)(y.m,{articles:Y||[],totalNumberOfArticles:W,listId:"brand-page",listName:K}):(0,r.jsx)(u.f,{size:12,children:(0,r.jsx)(f,{})})}),A&&!!A.length&&(0,r.jsx)(u.r,{maxWidth:"default",withPadding:!0,justify:"center",children:(0,r.jsx)(u.f,{size:{lg:8},children:(0,r.jsx)(m.E,{seoTexts:A,id:U})})})]})};G.propTypes={fallbackData:a().shape({seo:a().object,panels:a().object,brandTexts:a().object.isRequired}),urlEncodedTitle:a().string.isRequired,canonicalUrl:a().string,initialSelectedFilters:a().object.isRequired,initialSearchPhrase:a().string,initialSortBy:a().string,fetchOptions:a().object,error:a().shape({statusCode:a().number})},G.defaultProps={fallbackData:null,canonicalUrl:null,initialSearchPhrase:"",fetchOptions:{},initialSortBy:void 0,error:void 0};var L=!0,O=G}},function(e){e.O(0,[143,966,461,840,130,938,257,438,888,774,179],function(){return e(e.s=73963)}),_N_E=e.O()}]);