1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[315],{59553:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/c/[...uri]",function(){return l(5029)}])},23578:function(e,t,l){"use strict";var n=l(45147);t.Z=n.Z},16741:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var n=l(85893),r=(l(67294),l(23578)),o=function(e){var t=e.products;return(0,n.jsx)("div",{className:"mt-4 grid grid-cols-2 justify-between gap-3 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:t.map((function(e){return(0,n.jsx)(r.Z,{product:e})}))})}},6447:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var n=l(85893),r=l(67294),o=[{name:"Standard",value:"Standard"},{name:"Nyheter",value:"Latest"},{name:"Pris: L\xe5gt till h\xf6gt",value:"LowestPrice"},{name:"Pris: H\xf6gt till l\xe5gt",value:"HighestPrice"}],i=l(60371),s=l(14311),a=l(33111),c=l(59707),d=function(e){var t=e.className,l=e.sortOrder,d=e.updateSortOrder,u=(0,r.useState)(!1),h=u[0],m=u[1];return(0,n.jsxs)("div",{className:"relative flex ".concat(null!==t&&void 0!==t?t:""),children:[(0,n.jsxs)("button",{className:"flex items-center",onClick:function(){return m(!h)},type:"button",children:[(0,n.jsx)("span",{className:"mr-3 w-max text-sm font-bold",children:"Sortera"}),(0,n.jsx)("div",{className:"flex h-4 w-4 items-center justify-center",children:(0,n.jsx)(i.Z,{className:"".concat(h?"-rotate-90":"rotate-90")})})]}),(0,n.jsx)(s.Z,{className:"right-0 top-full",state:h,setState:m,variant:"no-style",overlayzIndex:"z-10",children:o.map((function(e){return(0,n.jsx)(a.Z,{className:"justify-start",onClick:function(){return t=e.value,d(t),void m(!1);var t},children:"Standard"!==e.name&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:e.name}),(0,n.jsx)(c.Z,{fill:"black",className:"ml-3 scale-[0.6] ".concat(l===e.value?"":"opacity-0")})]})},e.value)}))})]})}},9634:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var n=l(85893),r=l(38424),o=l(67294),i=l(31077),s=l(60371),a=l(91901),c=l(13342),d=l(80170),u=function(e){var t=e.title,l=e.id,r=e.variant,o=void 0===r?"arrow":r,u=e.handleAccordionClick,h=e.activeAccordion,m=e.path,p=e.hasChildren,v=(0,n.jsx)(a.Z,{href:m,children:t}),x=(0,n.jsxs)("div",{className:"flex w-full items-center text-left",children:[(0,n.jsx)(s.Z,{className:"default-transition mr-4 ".concat(h===l?"rotate-90":"")}),v]});return"plus"===o&&(x=(0,n.jsxs)("div",{className:"flex w-full items-center justify-between text-left",children:[v,(0,n.jsx)(i.Z,{className:"default-transition ".concat(h===l?"rotate-45":"")})]})),"productCategory"===o&&(x=(0,n.jsxs)("div",{className:"flex w-full items-center justify-between text-left text-sm font-bold uppercase",children:[v,p&&(0,n.jsx)("div",{className:"-m-4 p-4",children:(0,n.jsx)(d.Z,{className:"default-transition mr-0.5 ".concat(h===l?"-rotate-180":"")})})]})),"productSingle"===o&&(x=(0,n.jsxs)("div",{className:"flex w-full items-center justify-between py-3 px-4 text-left text-xl font-bold lg:px-4 xl:px-0",children:[v,(0,n.jsx)(c.Z,{className:"default-transition h-5 w-5 ".concat(h===l?"-rotate-180":"")})]})),(0,n.jsx)("header",{className:"accordion-head-component default-transition duration-500 ".concat(h===l?"border-transparent":"border-b-black"," border-b ").concat("productSingle"===o?"border-none":""," ").concat("productCategory"===o?"border-opacity-40":""," "),children:p?(0,n.jsx)("button",{className:"w-full py-[10px] xl:py-[12px]",onClick:function(){return u(h===l?void 0:l)},type:"button",children:(0,n.jsx)(n.Fragment,{children:x})}):(0,n.jsx)("div",{className:"w-full py-[10px] xl:py-[12px]",children:x})})},h=function(e){var t=e.title,l=e.id,r=e.children,i=e.variant,s=e.handleAccordionClick,a=e.activeAccordion,c=e.text,d=e.path,h=e.hasChildren,m=(0,o.useRef)(null);return r?(0,n.jsxs)("li",{className:"accordion-item-component default-transition duration-500 ".concat(a===l?"bg-light-blue":"bg-transparent"),children:[(0,n.jsx)(u,{title:t,id:l,variant:i,handleAccordionClick:s,activeAccordion:a,path:d,hasChildren:h}),h&&(0,n.jsx)("footer",{ref:m,className:"default-transition h-auto overflow-hidden duration-200 ".concat(a===l?"":"max-h-0-important"),children:(0,n.jsx)("div",{className:" ".concat("productSingle"===i?"product-accordion-item px-4 pb-8 xl:px-0":""),children:(0,n.jsx)(n.Fragment,{children:r||(0,n.jsx)("div",{className:"remove-last-p-margin",dangerouslySetInnerHTML:{__html:null!==c&&void 0!==c?c:""}})})})})]}):null},m=function(e){var t,l,i,s,a,c,d=e.children,u=e.items,m=e.inFooter,p=void 0!==m&&m,v=e.className,x=void 0===v?"":v,f=e.variant,g=void 0===f?"arrow":f,b=e.activeAccordionId,j=(0,o.useContext)(r.V),w=j.setPdpDetailsOpen,y=j.pdpDetailsOpen,N=(0,o.useState)(null!==b&&void 0!==b?b:void 0),T=N[0],S=N[1],C=function(e){
1S(e)};return(0,o.useEffect)((function(){S(b)}),[b,y,w]),(0,n.jsxs)("ul",{className:"accordion-component ".concat("productSingle"===g?"product-accordion":""," ").concat(x),children:[d&&d.map((function(e,r){var o,s;return(0,n.jsx)(h,{title:u[r].title?u[r].title:u[r].label?u[r].label:"",id:u[r].id?u[r].id:null!==(t=u[r].uuid)&&void 0!==t?t:void 0,variant:p?"plus":g,handleAccordionClick:C,activeAccordion:T,path:u[r].href,hasChildren:null===(l=(null===e||void 0===e||null===(o=e.props)||void 0===o?void 0:o.children)&&(null===e||void 0===e||null===(s=e.props)||void 0===s?void 0:s.children.length)>0)||void 0===l||l,children:e},u[r].id?u[r].id:null!==(i=u[r].uuid)&&void 0!==i?i:void 0)})),!d&&u&&u.map((function(e,t){return(0,n.jsx)(n.Fragment,{children:(null===e||void 0===e?void 0:e.text)&&(0,n.jsx)(h,{title:u[t].title?u[t].title:u[t].label?u[t].label:"",id:u[t].id?u[t].id:null!==(s=u[t].uuid)&&void 0!==s?s:void 0,variant:p?"plus":g,handleAccordionClick:C,activeAccordion:T,text:null!==(a=e.text)&&void 0!==a?a:"",path:e.href},u[t].id?u[t].id:null!==(c=u[t].uuid)&&void 0!==c?c:void 0)})}))]})}},58412:function(e,t,l){"use strict";l.d(t,{Z:function(){return c}});var n=l(85893),r=l(67294),o=l(13354);var i=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"}))})),s=function(e){var t=e.href,l=e.label,r=e.index,s=e.isHome,a=e.disableLineClamp;return(0,n.jsxs)("div",{className:"breadcrumbs-item-component",itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/ListItem",children:[(0,n.jsx)(o.Z,{href:t,className:"font-bold ".concat(a?"":"line-clamp-1"," ").concat("/#"===t?"pointer-events-none cursor-default":""," ").concat("404"===l?"pointer-events-none cursor-default":""),itemProp:"item",children:s?(0,n.jsx)("span",{itemScope:!0,itemProp:"name",children:(0,n.jsx)(i,{className:"h-3 w-3"})}):(0,n.jsx)("span",{itemScope:!0,itemProp:"name",className:"".concat(a?"w-max":""),children:l})}),(0,n.jsx)("meta",{itemProp:"position",content:r})]})},a=function(){return(0,n.jsx)("span",{className:"mt-[2px]",children:" / "})},c=function(e){var t,l,r,o,i,c,d=e.product,u=e.className,h=e.type,m=e.category,p=e.page,v=e.brand,x=null!==(r=null===d||void 0===d||null===(t=d.categoryUri)||void 0===t?void 0:t.split("/"))&&void 0!==r?r:[],f=null!==(o=null===d||void 0===d?void 0:d.categoryName)&&void 0!==o?o:[],g=null!==(i=null===m||void 0===m||null===(l=m.uri)||void 0===l?void 0:l.split("/"))&&void 0!==i?i:[],b=null!==(c=null===m||void 0===m?void 0:m.name)&&void 0!==c?c:[];switch(h){case"category":return(0,n.jsxs)("div",{className:"breadcrumbs-component scrollbar-0 -mx-4 flex items-center justify-center space-x-2 overflow-x-scroll px-4 text-xs md:-mx-3 lg:justify-start ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,n.jsx)(s,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,n.jsx)(a,{}),b.map((function(e,t){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{label:e,href:t!==b.length-1?"/c/".concat(g.slice(0,t+1).join("/")):"",index:(t+2).toString()}),t!==b.length-1&&(0,n.jsx)(a,{})]})}))]});case"brand":return(0,n.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,n.jsx)(s,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,n.jsx)(a,{}),(0,n.jsx)(s,{label:"Varum\xe4rken",href:"/varumarken",index:"2"}),(0,n.jsx)(a,{}),(null===v||void 0===v?void 0:v.name)&&(0,n.jsx)(s,{label:v.name,index:"3",href:"/varumarken/".concat(v.uri)})]});case"product":return(0,n.jsxs)("div",{className:"breadcrumbs-component scrollbar-0 -mx-4 flex items-center space-x-2 overflow-x-scroll px-4 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,n.jsx)(s,{label:"Hem",href:"/",index:"1",isHome:!0}),f.map((function(e,t){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{label:e,href:"/c/".concat(x.slice(0,t+1).join("/")),index:(t+2).toString(),"w-max":!0,disableLineClamp:!0}),(0,n.jsx)(a,{})]})})),(null===d||void 0===d?void 0:d.name)&&(0,n.jsx)(s,{label:d.name,index:(f.length+2).toString(),disableLineClamp:!0})]});case"page":return(0,n.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,n.jsx)(s,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,n.jsx)(a,{}),(null===p||void 0===p?void 0:p.title)&&(0,n.jsx)(s,{label:p.title.toUpperCase(),index:"2",href:"/".concat(p.slug)})]});case"blog":return(0,n.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,n.jsx)(s,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,n.jsx)(a,{}),(0,n.jsx)(s,{label:"BLOGG",href:"/blogg",index:"2"}),(0,n.jsx)(a,{}),(null===p||void 0===p?void 0:p.title)&&(0,n.jsx)(s,{label:p.title.toUpperCase(),index:"3",href:"/blogg/".concat(p.slug)})]});default:return(0,n.jsx)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:" "})}}},80170:function(e,t,l){"use strict";var n=l(85893);l(67294);t.Z=function(e){var t=e.className,l=void 0===t?"":t,r=e.fill,o=void 0===r?"black":r;return(0,n.jsx)("svg",{className:"thin-chevron-arrow ".concat(null!==l&&void 0!==l?l:""),width:11.659,height:6.33,children:(0,n.jsx)("path",{"data-name":"Path 957",d:"m9 5 5.123 5.123L9 15.245",transform:"rotate(90 12.123 3.83)",style:{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round"}})})}},40438:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(85893),r=l(13342),o=l(11163),i=l(67294),s=function(e){var t=e.htmlContent,l=e.wordCount,s=e.className,a=e.textDivClass,c=e.closeOnRouteChange,d=void 0!==c&&c,u=(0,i.useState)(!1),h=u[0],m=u[1],p=(0,i.useState)(null!==t&&void 0!==t?t:""),v=p[0],x=p[1],f=(0,o.useRouter)();(0,i.useEffect)((function(){var e=null===t||void 0===t?void 0:t.split(" "),n=null===e||void 0===e?void 0:e.slice(0,l).join(" ");x("".concat(n,"..."))}),[t]);var g=function(){m(!h)};return(0,i.useEffect)((function(){d&&m(!1)}),[f]),(0,n.jsxs)("div",{className:"max-w-[60rem] pb-6 xl:flex xl:gap-8 ".concat(s),children:[(0,n.jsx)("div",{className:"".concat(h?"":" line-clamp-2"," ").concat(a),dangerouslySetInnerHTML:{__html:h?t||"":v||""}}),(0,n.jsxs)("div",{children:[!h&&(0,n.jsxs)("button",{onClick:g,type:"button",className:"mt-4 flex w-max items-center underline",children:["L\xc4S MER",(0,n.jsx)(r.Z,{className:"inline-block h-4 w-4"})]}),h&&(0,n.jsx)("div",{children:(0,n.jsxs)("button",{type:"button",onClick:g,className:"mt-4 flex w-max items-center underline ",children:["D\xd6LJ",(0,n.jsx)(r.Z,{className:"inline-block h-4 w-4 rotate-180"})]})})]})]})}},40111:function(e,t,l){"use strict";var n=l(47568),r=l(10092),o=l(9369),i=l(83211),s=l(11163),a=l(67294),c=new(l(65885).default);t.Z=function(e,t,l,d,u){var h=(0,s.useRouter)().asPath,m=(0,a.useState)(),p=m[0],v=m[1],x=(0,a.useState)(null),f=x[0],g=x[1],b=(0,a.useState)(!1),j=b[0],w=b[1],y=(0,a.useContext)(i.w),N=y.helloRetailBoxIds,T=y.setHelloRetailResults,S=y.helloRetailResults;return(0,a.useEffect)((function(){var i=function(){var t=(0,n.Z)((function(){var t,n,i;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:w(!0),r.label=1;
1case 1:return r.trys.push([1,3,,4]),[4,(0,o.Ly)(e,N,null!==(t=c.get("hello_retail_id"))&&void 0!==t&&t,l,d)];case 2:return n=r.sent(),v(n),T(n),[3,4];case 3:return i=r.sent(),g(i),[3,4];case 4:return w(!1),[2]}}))}));return function(){return t.apply(this,arguments)}}();N[0]===t[0]?i():v(S)}),[N,h]),{recommendations:p,error:f,loading:j}}},5029:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return re},default:function(){return oe}});var n=l(85893),r=l(67294),o=l(40842),i=l(80348),s=l(16040),a=l(41799),c=l(69396),d=l(828),u=l(29815),h=l(93973),m=l(65954),p=l(36210),v=l(13354),x=l(12400),f=l(58412),g=l(77494),b=l(40438),j=l(11163),w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])},w(e,t)};var y=function(){return y=Object.assign||function(e){for(var t,l=1,n=arguments.length;l<n;l++)for(var r in t=arguments[l])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},y.apply(this,arguments)};var N="Pixel",T="Percent",S={unit:T,value:.8};function C(e){return"number"===typeof e?{unit:T,value:100*e}:"string"===typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:N,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:T,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),S):(console.warn("scrollThreshold should be string or number"),S)}var Z=function(e){function t(t){var l=e.call(this,t)||this;return l.lastScrollTop=0,l.actionTriggered=!1,l.startY=0,l.currentY=0,l.dragging=!1,l.maxPullDownDistance=0,l.getScrollableTarget=function(){return l.props.scrollableTarget instanceof HTMLElement?l.props.scrollableTarget:"string"===typeof l.props.scrollableTarget?document.getElementById(l.props.scrollableTarget):(null===l.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null)},l.onStart=function(e){l.lastScrollTop||(l.dragging=!0,e instanceof MouseEvent?l.startY=e.pageY:e instanceof TouchEvent&&(l.startY=e.touches[0].pageY),l.currentY=l.startY,l._infScroll&&(l._infScroll.style.willChange="transform",l._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},l.onMove=function(e){l.dragging&&(e instanceof MouseEvent?l.currentY=e.pageY:e instanceof TouchEvent&&(l.currentY=e.touches[0].pageY),l.currentY<l.startY||(l.currentY-l.startY>=Number(l.props.pullDownToRefreshThreshold)&&l.setState({pullToRefreshThresholdBreached:!0}),l.currentY-l.startY>1.5*l.maxPullDownDistance||l._infScroll&&(l._infScroll.style.overflow="visible",l._infScroll.style.transform="translate3d(0px, "+(l.currentY-l.startY)+"px, 0px)")))},l.onEnd=function(){l.startY=0,l.currentY=0,l.dragging=!1,l.state.pullToRefreshThresholdBreached&&(l.props.refreshFunction&&l.props.refreshFunction(),l.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){l._infScroll&&(l._infScroll.style.overflow="auto",l._infScroll.style.transform="none",l._infScroll.style.willChange="unset")}))},l.onScrollListener=function(e){"function"===typeof l.props.onScroll&&setTimeout((function(){return l.props.onScroll&&l.props.onScroll(e)}),0);var t=l.props.height||l._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;l.actionTriggered||((l.props.inverse?l.isElementAtTop(t,l.props.scrollThreshold):l.isElementAtBottom(t,l.props.scrollThreshold))&&l.props.hasMore&&(l.actionTriggered=!0,l.setState({showLoader:!0}),l.props.next&&l.props.next()),l.lastScrollTop=t.scrollTop)},l.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},l.throttledOnScrollListener=function(e,t,l,n){var r,o=!1,i=0;function s(){r&&clearTimeout(r)}function a(){var a=this,c=Date.now()-i,d=arguments;function u(){i=Date.now(),l.apply(a,d)}function h(){r=void 0}o||(n&&!r&&u(),s(),void 0===n&&c>e?u():!0!==t&&(r=setTimeout(n?h:u,void 0===n?e-c:e)))}return"boolean"!==typeof t&&(n=l,l=t,t=void 0),a.cancel=function(){s(),o=!0},a}(150,l.onScrollListener).bind(l),l.onStart=l.onStart.bind(l),l.onMove=l.onMove.bind(l),l.onEnd=l.onEnd.bind(l),l}return function(e,t){function l(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
1if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?y(y({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var l=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=C(t);return n.unit===N?e.scrollTop<=n.value+l-e.scrollHeight+1:e.scrollTop<=n.value/100+l-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var l=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=C(t);return n.unit===N?e.scrollTop+l>=e.scrollHeight-n.value:e.scrollTop+l>=n.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=y({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),l=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),n=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:n,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!l&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component),k=Z,E=l(16741),L=l(55029),F=function(e){var t=e.subCategories;return(0,n.jsx)("div",{className:"flex flex-wrap gap-3",children:t&&t.map((function(e){return(0,n.jsx)(L.Z,{className:"flex h-8 items-center justify-center rounded border-0 text-xs uppercase",variant:"beige",href:"/c/".concat(e.uri),disableRoundedFull:!0,children:e.name[e.name.length-1]},e.category)}))})},_=l(9634),R=l(62256),O=l(80170),D=function(e){var t,l=e.category,o=(0,r.useState)(!1),i=o[0],s=o[1];return(0,n.jsx)(n.Fragment,{children:l.children&&(null===(t=l.children)||void 0===t?void 0:t.length)>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-2 flex w-full items-center gap-x-3",role:"presentation",children:[(0,n.jsx)(v.Z,{href:"/c/".concat(l.uri),className:"inline-flex items-center space-y-2",children:(0,n.jsx)(p.Z,{className:"text-sm",children:l.name[l.name.length-1]})}),(0,n.jsx)("button",{className:"-m-4 p-4",onClick:function(){s(!i)},type:"button",children:(0,n.jsx)(O.Z,{className:"default-transition ".concat(i?"-rotate-180":""," cursor-pointer")})})]}),(0,n.jsx)(R.Z,{state:i,className:"ml-3 flex items-center",innerClassName:"space-y-2 pb-4 pt-1",adaptiveHeight:!0,disableAnimation:!0,children:l.children.map((function(e){return(0,n.jsx)(v.Z,{href:"/c/".concat(e.uri),className:"flex items-center space-y-2",children:(0,n.jsx)(p.Z,{className:"text-sm",children:e.name[e.name.length-1]})})}))})]})})},M=function(e){var t=e.categories,l=null===t||void 0===t?void 0:t.map((function(e){return{title:e.name,id:e.category,href:"/c/".concat(e.uri),subCategories:e.children}}));return(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)(p.Z,{className:"mb-4 text-lg font-bold",children:"Kategorier"}),t&&(0,n.jsx)(_.Z,{variant:"productCategory",items:l,children:l&&l.map((function(e){return(0,n.jsx)("div",{className:"h-full w-full py-2",children:e.subCategories&&e.subCategories.map((function(e){var t,l;return(0,n.jsxs)(n.Fragment,{children:[0===(null===(t=e.children)||void 0===t?void 0:t.length)&&(0,n.jsx)(v.Z,{href:"/c/".concat(e.uri),className:"mb-2 flex items-center space-y-2",children:(0,n.jsx)(p.Z,{className:"text-sm",children:e.name[e.name.length-1]})}),e.children&&(null===(l=e.children)||void 0===l?void 0:l.length)>0&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(D,{category:e})})]})}))})}))})]})},H=l(6447);var B=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z",clipRule:"evenodd"}),r.createElement("path",{d:"M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"}))})),P=function(e){var t,l,o,i=e.title,s=e.filters,a=e.addOrRemoveFilter,c=e.clearFilters,d=e.showHeader,u=void 0===d||d,h=(0,j.useRouter)(),m=(0,r.useState)(!1),v=m[0],x=m[1];return(null===s||void 0===s||null===(t=s[0])||void 0===t?void 0:t.name)&&!(null===s||void 0===s||null===(l=s[0])||void 0===l||null===(o=l.values)||void 0===o?void 0:o.every((function(e){return 0===e.count})))?(0,n.jsxs)("div",{className:"w-full",children:[u&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)(p.Z,{className:"mb-4 text-lg font-bold",children:i}),(h.asPath.includes("brands")||h.asPath.includes("icons"))&&(0,n.jsx)("div",{role:"presentation",onClick:function(){return c()},className:"cursor-pointer",title:"Rensa alla filter",children:(0,n.jsx)(B,{className:"ml-auto mt-2 h-4 w-4"})})]}),(0,n.jsx)("div",{role:"presentation",className:"cursor-pointer ".concat(v?"":"border-b"," border-b-black/40"),onClick:function(){return x(!v)},children:(0,n.jsxs)("div",{className:"flex w-full items-center justify-between text-left text-sm font-bold uppercase",children:[(0,n.jsx)("span",{className:"w-full py-[10px] font-bold uppercase xl:py-[12px]",children:null===s||void 0===s?void 0:s[0].name}
1),(0,n.jsx)(O.Z,{className:"default-transition ".concat(v?"-rotate-180":"")})]})}),(0,n.jsx)(R.Z,{adaptiveHeight:!0,state:v,outerClassName:"mt-2",customScrollbar:!0,children:s.map((function(e){return(0,n.jsx)("div",{children:e.values.map((function(t,l){return t.filterCount>0&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"my-1 flex items-center last:pb-4",children:[(0,n.jsx)("input",{type:"checkbox",checked:t.active,onChange:function(){return a(e.query,t.value)},id:t.value,className:"h-5 w-5 cursor-pointer rounded-full accent-greenish-grey shadow"}),(0,n.jsxs)("label",{className:"ml-2",htmlFor:t.value,children:[t.data.name||t.data.value," ","(",t.filterCount,")"]})]},t.value)})}))},e.name)}))})]}):null},I=(0,r.memo)(P),A=l(68563),Y=function(e){var t=e.isFilterOpen,l=e.setIsFilterOpen,r=e.addOrRemoveFilter,o=e.productCount,i=e.clearFilters,s=e.filters,a=e.categoryTree;return(0,n.jsxs)(A.Z,{state:t,setState:l,closeButton:!0,filterDrawer:!0,children:[(0,n.jsxs)("div",{className:"mb-8 flex flex-col",children:[(0,n.jsx)(I,{title:"Filter",addOrRemoveFilter:r,filters:s.slice(0,1),productCount:o,clearFilters:i}),(0,n.jsx)(I,{addOrRemoveFilter:r,filters:s.slice(1,2),productCount:o,clearFilters:i,showHeader:!1})]}),(0,n.jsx)(M,{categories:a})]})},U=l(40111),z=l(83211),V=l(23578),q=l(37193),W=l(53267),G=l(93261),K=function(e){var t,l,o,i=e.block,a=e.categoryNames,c=e.boxIds,d=e.cartItemsUri,u=e.currentProductUri,h=(0,r.useState)(2),m=h[0],v=h[1],x=(0,r.useContext)(z.w).helloRetailResults;(0,U.Z)(a,c||"default",d,u);(0,G.Z)((function(){window.innerWidth<(0,W.Z)("md")?v(2):window.innerWidth<(0,W.Z)("lg")?v(3):window.innerWidth<(0,W.Z)("xl")?v(4):v(5)}),!0);var f=null===x||void 0===x||null===(t=x.result)||void 0===t||null===(l=t[c[0]])||void 0===l||null===(o=l.result)||void 0===o?void 0:o.map((function(e){return e.productNumber})),b=(0,g.useProducts)({ids:f,relatedProducts:!0}).products;return b&&b.length>0?(0,n.jsxs)(s.Z,{outerClassName:"product-list-slider grid -mx-4 lg:-mx-5",className:"overflow-hidden pt-6 lg:pt-4",children:[(0,n.jsx)(p.Z,{className:"mx-4 text-xl font-bold",children:"Topps\xe4ljare"}),(0,n.jsx)(s.Z,{outerClassName:"overflow-hidden",className:"relative block",block:i,children:(0,n.jsx)("div",{className:"relative px-4 lg:px-5 xl:mb-0",children:(0,n.jsx)("div",{className:"mt-5 h-auto pb-4",children:(0,n.jsx)(q.Z,{slidesPerView:m,navigation:b.length>4,loop:b.length>4,spaceBetween:12,arrowsInsideContainer:!0,children:null===b||void 0===b?void 0:b.slice(0,12).map((function(e){return(0,n.jsx)(V.Z,{product:e},e.product)}))})})})})]}):null},X=function(e){var t,l,o,i=e.category,s=e.productCategories,w=e.seoText,y=e.showBreadcrumbs,N=void 0===y||y,T=e.hidetitleDesktop,S=e.ifHeroBlock,C=(0,r.useState)(!1),Z=C[0],L=C[1],_=(0,r.useState)(1),R=(_[0],_[1]),O=(0,j.useRouter)(),D=(0,r.useRef)(),B=i.name[i.name.length-1],P=(0,g.useProductListInfinite)({categoryId:i.category,defaultSortOrder:"Standard",productsPerPage:20,onlyAvailable:!1,relatedProducts:!0,enabledFilters:[{name:"Varum\xe4rke",query:"brands",field:"brands"},{name:"Egenskaper",query:"icons",field:"pr_icons.value"}]}),A=P.products,U=P.filters,z=P.sortOrder,V=P.updateSortOrder,q=P.addOrRemoveFilter,W=P.isLoadingMore,G=P.loadMore,X=P.isReachingEnd,$=P.clearFilters,J=P.productCount;function Q(e,t){var l=e.filter((function(e){return e.inCategory===(null===t||void 0===t?void 0:t.category)}));return 0===l.length?null:l.map((function(t){var l=Q(e,t);return(0,c.Z)((0,a.Z)({},t),{children:l||[]})}))}var ee,te=null!==(o=Q(s))&&void 0!==o?o:[],le=te.flatMap((function(e){var t,l,n=null!==(l=null===(t=e.children)||void 0===t?void 0:t.flatMap((function(e){var t=Q(s,e);return t?[e].concat((0,u.Z)(t)):[e]})))&&void 0!==l?l:[];return[e].concat((0,u.Z)(n))})),ne=le.find((function(e){return e.category===i.category})),re=null!==(ee=null===ne||void 0===ne?void 0:ne.children)&&void 0!==ee?ee:[],oe=le.find((function(e){return e.category===(null===ne||void 0===ne?void 0:ne.inCategory)})),ie=(0,d.Z)(U.slice(1,2),1)[0];(null===ie||void 0===ie||null===(t=ie.values)||void 0===t?void 0:t.length)&&ie.values.sort((function(e,t){return e.value.toUpperCase()>t.value.toUpperCase()?1:-1}));var se;return(0,r.useEffect)((function(){"undefined"!==typeof lipscore&&lipscore.initWidgets()}),[W]),(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsx)("div",{children:(0,n.jsxs)(x.Z,{className:"pb-16 pt-2 md:pb-12 xl:pt-4",children:[N?(0,n.jsx)("div",{className:"flex justify-center md:justify-start",children:(0,n.jsx)(f.Z,{type:"category",category:i,className:"uppercase"})}):(0,n.jsx)("div",{className:"mt-8"}
1),(null===oe||void 0===oe?void 0:oe.uri)&&(0,n.jsxs)("div",{className:"mt-6 hidden items-center space-x-5 text-xl font-bold text-black xxl:flex",children:[(0,n.jsx)(v.Z,{href:"/c/".concat(null===oe||void 0===oe?void 0:oe.uri),children:(0,n.jsx)("div",{className:"flex rounded-full bg-white p-1",children:(0,n.jsx)(h.Z,{className:"h-5 w-5"})})}),(0,n.jsx)(p.Z,{children:B})]}),!(null===oe||void 0===oe?void 0:oe.uri)&&(0,n.jsx)("div",{className:"mt-5 hidden items-center text-xl font-bold text-black xl:flex",children:(0,n.jsx)(p.Z,{children:B})}),(0,n.jsxs)("div",{className:"my-5 hidden items-end justify-between gap-x-16 border-black/40 pb-4 xl:flex xl:border-b",children:[(0,n.jsx)(F,{subCategories:re}),(0,n.jsx)("div",{children:(0,n.jsx)(H.Z,{className:"ml-auto hidden w-fit xl:block",sortOrder:z,updateSortOrder:V})})]}),(0,n.jsxs)("div",{className:"relative mt-6 flex flex-col lg:flex-row xl:mt-7",children:[(0,n.jsxs)("div",{className:"static left-0 top-0 z-10 hidden h-auto w-2/12 max-w-none transform-none flex-col space-y-8 overflow-auto overflow-x-hidden border-none p-0 pb-32 shadow-none transition-all lg:flex",ref:D,children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(I,{title:"Filter",addOrRemoveFilter:q,filters:U.slice(0,1),productCount:J,clearFilters:$}),(0,n.jsx)(I,{addOrRemoveFilter:q,filters:[ie],productCount:J,clearFilters:$,showHeader:!1})]}),(0,n.jsx)(M,{categories:te})]}),(0,n.jsx)(Y,{isFilterOpen:Z,setIsFilterOpen:L,filters:U,productCount:J,addOrRemoveFilter:q,clearFilters:$,categoryTree:te}),(0,n.jsxs)("div",{className:"flex flex-col lg:w-10/12 lg:pl-8 xl:pl-12",children:[(0,n.jsx)(p.Z,{className:"mb-5 text-xl font-bold ".concat(T?"hidden":"xl:hidden"),type:"h1",children:B}),!S&&(0,n.jsx)("div",{className:"plp-seo-content inline-block",children:w&&(0,n.jsx)(b.Z,{htmlContent:w,wordCount:32,className:"flex-col !gap-0",closeOnRouteChange:!0})}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[!Z&&(0,n.jsxs)("div",{onClick:function(){L(!Z)},onKeyDown:function(){return L(!Z)},tabIndex:0,role:"button",className:"flex items-center lg:hidden",children:[(0,n.jsx)(m.Z,{className:"h-4 w-4 cursor-pointer"}),(0,n.jsx)(p.Z,{className:"ml-2 text-sm font-bold",children:"Filtrera"})]}),Z&&(0,n.jsxs)("div",{role:"button",className:"flex items-center xxl:hidden",children:[(0,n.jsx)(m.Z,{className:"h-4 w-4 cursor-pointer"}),(0,n.jsx)(p.Z,{className:"ml-2 text-sm font-bold",children:"Filtrera"})]}),(0,n.jsx)(H.Z,{className:"ml-auto xl:hidden",sortOrder:z,updateSortOrder:V})]}),(0,n.jsxs)("div",{className:"grid h-min",children:[function(e){for(var t=0;t<e.length;t+=1)for(var l=e[t].values,n=0;n<l.length;n+=1)if(!0===l[n].active)return!1;return!0}(U)&&A.length>7&&(0,n.jsx)(K,{boxIds:["k646f59a92a49ed7d045d8397"],categoryNames:null===i||void 0===i||null===(l=i.name)||void 0===l?void 0:l.map((function(e){return e.toLowerCase()}))}),(0,n.jsx)(k,{hasMore:!0,dataLength:null!==(se=null===A||void 0===A?void 0:A.length)&&void 0!==se?se:0,loader:null,next:function(){G(),R((function(e){var t=e+1;return O.push({pathname:O.pathname,query:(0,c.Z)((0,a.Z)({},O.query),{page:t})},void 0,{scroll:!1,shallow:!0}),t}))},style:{overflow:"unset"}
1,children:(0,n.jsx)(E.Z,{products:A})})]}),!X&&(0,n.jsx)("div",{className:"mt-12 flex flex-col items-center gap-y-7",children:(0,n.jsx)("div",{className:"flex h-2 w-2/6 rounded border-greenish-grey bg-white",children:(0,n.jsx)("div",{className:"bg-greenish-grey",style:{width:"".concat(A.length/(null!==J&&void 0!==J?J:100)*100,"%")}})})})]})]})]})})})},$=l(2175),J=l(2897),Q=l(25675),ee=l.n(Q),te=l(41664),le=l.n(te),ne=function(e){var t,l,r,o,i,a,c,d,u,h,m,v=e.block,g=e.priorityImages,j=(e.index,e.category),w=e.seoText;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Z,{outerClassName:"category-short-hero-block overflow-hidden relative mb-0 mt-[-123px] xs:mt-[-68px] xl:mt-0",className:"flex min-h-[15rem] items-center justify-center pb-8 pt-7 lg:min-h-[20rem] xl:pb-4 ".concat((null===v||void 0===v?void 0:v.image)?"text-white":"bg-gradient-radial-hero from-white to-greenish-grey text-black shadow"," lgl:m-0 flex flex-col justify-center lg:rounded-none"),block:v,children:[(0,n.jsx)("div",{className:"absolute top-24 mx-auto flex w-full max-w-95rem justify-center px-4 pb-8 md:px-6 xl:top-5 xl:px-8",children:(0,n.jsx)(f.Z,{type:"category",category:j,className:"w-full !px-0 uppercase"})}),(0,n.jsxs)(x.Z,{className:"pointer-events-none relative z-10 w-full pt-[7.2rem] xs:pt-[4rem] xl:pt-8",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex w-full flex-col sm:w-2/3 lg:w-1/2",style:{paddingTop:0},children:[(null===v||void 0===v?void 0:v.subtitle)&&(0,n.jsx)(p.Z,{className:"mb-0 mt-12 text-[1.3rem] font-black uppercase leading-tight md:text-2rem xl:mt-0",type:"h3",children:null===v||void 0===v?void 0:v.subtitle}),(null===v||void 0===v?void 0:v.title)&&!(null===v||void 0===v?void 0:v.subtitle)&&(0,n.jsx)(p.Z,{className:"mt-12 text-2rem font-black uppercase leading-tight md:text-[3.2rem] xl:mt-0",type:"h2",children:null===v||void 0===v?void 0:v.title}),(null===v||void 0===v?void 0:v.title)&&(null===v||void 0===v?void 0:v.subtitle)&&(0,n.jsx)(p.Z,{className:"text-2rem font-black uppercase leading-tight md:text-[3.2rem]",type:"h2",children:null===v||void 0===v?void 0:v.title}),w?(0,n.jsx)("div",{className:"short-hero-content pointer-events-auto inline-block",children:w&&(0,n.jsx)(b.Z,{htmlContent:w,wordCount:32,className:"flex-col !gap-0"})}):(null===v||void 0===v?void 0:v.text)&&(0,n.jsx)(p.Z,{className:"hidden max-w-[32rem] pb-8 lg:block lg:pb-0",innerHtml:null===v||void 0===v?void 0:v.text}),!w&&(null===v||void 0===v?void 0:v.text)&&(0,n.jsx)("div",{className:"pointer-events-auto block lg:hidden",children:(0,n.jsx)(b.Z,{className:"pointer-events-auto mt-5",htmlContent:null!==(l=null===v||void 0===v?void 0:v.text)&&void 0!==l?l:"",wordCount:32})})]}),(null===v||void 0===v?void 0:v.heroImage)&&(0,n.jsx)("div",{className:"absolute -bottom-5 -right-1 flex h-full items-end justify-end sm:w-1/3 lg:bottom-0 lg:right-10 lg:w-1/2 ".concat((null===v||void 0===v?void 0:v.imageBreakContainer)?"-bottom-12 md:-bottom-16 xxl:-bottom-20":"bottom-0"),children:(0,n.jsx)("div",{className:"rig relative h-full max-h-[22rem] w-full xxl:max-h-[26rem]",children:(0,n.jsx)(ee(),{layout:"fill",src:null!==(r=null===v||void 0===v?void 0:v.heroImage.sourceUrl)&&void 0!==r?r:"",alt:null!==(o=v.heroImage.altText)&&void 0!==o?o:"",priority:g,className:" object-contain object-right-bottom"})})})]}),(null===v||void 0===v?void 0:v.offerImage)&&(0,n.jsx)(le(),{href:null!==(i=null===v||void 0===v?void 0:v.link)&&void 0!==i?i:"",passHref:!0,children:(0,n.jsx)("a",{className:"absolute inset-y-0 right-[20rem] z-[20] m-auto hidden h-full w-[25%] cursor-pointer items-end justify-end lg:flex",children:(0,n.jsx)("div",{className:"relative my-auto mr-4 h-[110%] max-h-[15rem] w-full xl:mr-16 xxl:max-h-[15rem]",children:(0,n.jsx)(ee(),{layout:"fill",src:null!==(a=null===v||void 0===v?void 0:v.offerImage.sourceUrl)&&void 0!==a?a:"",alt:null!==(c=null===v||void 0===v?void 0:v.offerImage.altText)&&void 0!==c?c:"",priority:g,className:" object-contain object-right-bottom"})})})})]}),(null===v||void 0===v?void 0:v.image)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($.Z,{layout:"fill",src:null!==(d=null===v||void 0===v?void 0:v.image.sourceUrl)&&void 0!==d?d:"",alt:null!==(u=v.image.altText)&&void 0!==u?u:"",priority:g}),(0,n.jsx)(J.Z,{opacity:"opacity-[0.3]",variant:"dark"})]}),!(null===v||void 0===v||null===(t=v.heroImage)||void 0===t?void 0:t.sourceUrl)&&(0,n.jsx)("div",{className:"absolute -bottom-8 -right-8 h-32 w-32 lg:hidden",children:(0,n.jsx)(ee
1(),{src:"/images/plant-01.png",alt:"leaf",width:100,height:100,layout:"intrinsic"})})]}),(null===v||void 0===v?void 0:v.linkText)||(null===v||void 0===v?void 0:v.infoTextMobile)||(null===v||void 0===v?void 0:v.infoTextMobileTwo)?(0,n.jsxs)(x.Z,{className:"z-10 block w-full xs:pt-[2rem] lg:hidden xl:pt-0",children:[(null===v||void 0===v?void 0:v.linkText)&&(0,n.jsx)(L.Z,{outerClassName:"w-full",className:"mt-2 flex w-full rounded-md border-none bg-dark-orange lg:hidden",href:null!==(h=null===v||void 0===v?void 0:v.link)&&void 0!==h?h:"",children:null!==(m=null===v||void 0===v?void 0:v.linkText)&&void 0!==m?m:""}),(null===v||void 0===v?void 0:v.infoTextMobile)&&(0,n.jsx)("p",{className:"mt-4 w-full text-center text-md font-bold lg:hidden",children:null===v||void 0===v?void 0:v.infoTextMobile}),(null===v||void 0===v?void 0:v.infoTextMobileTwo)&&(0,n.jsx)("p",{className:"w-full text-center text-sm lg:hidden",children:null===v||void 0===v?void 0:v.infoTextMobileTwo})]}):null]})},re=!0,oe=function(e){var t,l,a,c,d,u,h,m,p,v,x,f,g,b,j,w=e.category,y=e.menus,N=e.themeSettings,T=e.productCategories,S=e.page,C=(0,r.useContext)(z.w).setHelloRetailBoxIds;return(0,r.useEffect)((function(){C(["k646f59a92a49ed7d045d8397"])}),[]),(0,n.jsxs)(o.Z,{menus:y,themeSettings:N,pageTranslations:[],children:[(0,n.jsx)(i.Z,{title:(null===w||void 0===w?void 0:w.metaTitle)||w.name[w.name.length-1],description:null===w||void 0===w?void 0:w.metaDescription,canonical:"".concat(null!==(g="https://www.dcg.se")?g:"","/c/").concat(null!==(b=null===w||void 0===w?void 0:w.uri)&&void 0!==b?b:""),ogImage:null!==(j=null===S||void 0===S||null===(t=S.seo)||void 0===t||null===(l=t.opengraphImage)||void 0===l?void 0:l.sourceUrl)&&void 0!==j?j:""}),(0,n.jsx)("main",{className:"bg-pale-gray",children:(0,n.jsxs)(s.Z,{className:"category-page-wrapper",children:[(null===S||void 0===S?void 0:S.categoryFields)&&(null===S||void 0===S||null===(a=S.categoryFields)||void 0===a||null===(c=a.heroBlock)||void 0===c?void 0:c.title)&&(0,n.jsx)(ne,{block:S.categoryFields.heroBlock,priorityImages:!0,category:w,seoText:null===S||void 0===S||null===(d=S.categoryFields)||void 0===d?void 0:d.seoBlock}),(0,n.jsx)(X,{ifHeroBlock:!!(null===S||void 0===S||null===(u=S.categoryFields)||void 0===u||null===(h=u.heroBlock)||void 0===h?void 0:h.title),category:w,productCategories:T,seoText:null===S||void 0===S||null===(m=S.categoryFields)||void 0===m?void 0:m.seoBlock,showBreadcrumbs:!((null===S||void 0===S?void 0:S.categoryFields)&&(null===S||void 0===S||null===(p=S.categoryFields)||void 0===p||null===(v=p.heroBlock)||void 0===v?void 0:v.title)),hidetitleDesktop:!!(null===S||void 0===S||null===(x=S.categoryFields)||void 0===x||null===(f=x.heroBlock)||void 0===f?void 0:f.title)})]})})]})}},65954:function(e,t,l){"use strict";var n=l(67294);const r=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z",clipRule:"evenodd"}))}));t.Z=r}},function(e){e.O(0,[402,511,147,774,888,179],(function(){return t=59553,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.