1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[140],{1193:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/varumarken/[uri]",function(){return n(24780)}])},23578:function(e,t,n){"use strict";var s=n(45147);t.Z=s.Z},16741:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(85893),r=(n(67294),n(23578)),l=function(e){var t=e.products;return(0,s.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,s.jsx)(r.Z,{product:e})}))})}},6447:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(85893),r=n(67294),l=[{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"}],a=n(60371),i=n(14311),c=n(33111),o=n(59707),d=function(e){var t=e.className,n=e.sortOrder,d=e.updateSortOrder,u=(0,r.useState)(!1),m=u[0],x=u[1];return(0,s.jsxs)("div",{className:"relative flex ".concat(null!==t&&void 0!==t?t:""),children:[(0,s.jsxs)("button",{className:"flex items-center",onClick:function(){return x(!m)},type:"button",children:[(0,s.jsx)("span",{className:"mr-3 w-max text-sm font-bold",children:"Sortera"}),(0,s.jsx)("div",{className:"flex h-4 w-4 items-center justify-center",children:(0,s.jsx)(a.Z,{className:"".concat(m?"-rotate-90":"rotate-90")})})]}),(0,s.jsx)(i.Z,{className:"right-0 top-full",state:m,setState:x,variant:"no-style",overlayzIndex:"z-10",children:l.map((function(e){return(0,s.jsx)(c.Z,{className:"justify-start",onClick:function(){return t=e.value,d(t),void x(!1);var t},children:"Standard"!==e.name&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:e.name}),(0,s.jsx)(o.Z,{fill:"black",className:"ml-3 scale-[0.6] ".concat(n===e.value?"":"opacity-0")})]})},e.value)}))})]})}},58412:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(85893),r=n(67294),l=n(13354);var a=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"}))})),i=function(e){var t=e.href,n=e.label,r=e.index,i=e.isHome,c=e.disableLineClamp;return(0,s.jsxs)("div",{className:"breadcrumbs-item-component",itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/ListItem",children:[(0,s.jsx)(l.Z,{href:t,className:"font-bold ".concat(c?"":"line-clamp-1"," ").concat("/#"===t?"pointer-events-none cursor-default":""," ").concat("404"===n?"pointer-events-none cursor-default":""),itemProp:"item",children:i?(0,s.jsx)("span",{itemScope:!0,itemProp:"name",children:(0,s.jsx)(a,{className:"h-3 w-3"})}):(0,s.jsx)("span",{itemScope:!0,itemProp:"name",className:"".concat(c?"w-max":""),children:n})}),(0,s.jsx)("meta",{itemProp:"position",content:r})]})},c=function(){return(0,s.jsx)("span",{className:"mt-[2px]",children:" / "})},o=function(e){var t,n,r,l,a,o,d=e.product,u=e.className,m=e.type,x=e.category,f=e.page,h=e.brand,p=null!==(r=null===d||void 0===d||null===(t=d.categoryUri)||void 0===t?void 0:t.split("/"))&&void 0!==r?r:[],v=null!==(l=null===d||void 0===d?void 0:d.categoryName)&&void 0!==l?l:[],b=null!==(a=null===x||void 0===x||null===(n=x.uri)||void 0===n?void 0:n.split("/"))&&void 0!==a?a:[],j=null!==(o=null===x||void 0===x?void 0:x.name)&&void 0!==o?o:[];switch(m){case"category":return(0,s.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,s.jsx)(i,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,s.jsx)(c,{}),j.map((function(e,t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i,{label:e,href:t!==j.length-1?"/c/".concat(b.slice(0,t+1).join("/")):"",index:(t+2).toString()}),t!==j.length-1&&(0,s.jsx)(c,{})]})}))]});case"brand":return(0,s.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,s.jsx)(i,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,s.jsx)(c,{}),(0,s.jsx)(i,{label:"Varum\xe4rken",href:"/varumarken",index:"2"}),(0,s.jsx)(c,{}),(null===h||void 0===h?void 0:h.name)&&(0,s.jsx)(i,{label:h.name,index:"3",href:"/varumarken/".concat(h.uri)})]});case"product":return(0,s.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,s.jsx)(i,{label:"Hem",href:"/",index:"1",isHome:!0}),v.map((function(e,t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i,{label:e,href:"/c/".concat(p.slice(0,t+1).join("/")),index:(t+2).toString(),"w-max":!0,disableLineClamp:!0}),(0,s.jsx)(c,{})]})})),(null===d||void 0===d?void 0:d.name)&&(0,s.jsx)(i,{label:d.name,index:(v.length+2).toString(),disableLineClamp:!0})]});case"page":return(0,s.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,s.jsx)(i,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,s.jsx)(c,{}),(null===f||void 0===f?void 0:f.title)&&(0,s.jsx)(i,{label:f.title.toUpperCase(),index:"2",href:"/".concat(f.slug)})]});case"blog":return(0,s.jsxs)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:[(0,s.jsx)(i,{label:"Hem",href:"/",index:"1",isHome:!0}),(0,s.jsx)(c,{}),(0,s.jsx)(i,{label:"BLOGG",href:"/blogg",index:"2"}),(0,s.jsx)(c,{}),(null===f||void 0===f?void 0:f.title)&&(0,s.jsx)(i,{label:f.title.toUpperCase(),index:"3",href:"/blogg/".concat(f.slug)})]});default:return(0,s.jsx)("div",{className:"breadcrumbs-component flex items-center space-x-2 text-xs ".concat(u),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:" "})}}},40438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(85893),r=n(13342),l=n(11163),a=n(67294),i=function(e){var t=e.htmlContent,n=e.wordCount,i=e.className,c=e.textDivClass,o=e.closeOnRouteChange,d=void 0!==o&&o,u=(0,a.useState)(!1),m=u[0],x=u[1],f=(0,a.useState)(null!==t&&void 0!==t?t:""),h=f[0],p=f[1],v=(0,l.useRouter)();(0,a.useEffect)((function(){var e=null===t||void 0===t?void 0:t.split(" "),s=null===e||void 0===e?void 0:e.slice(0,n).join(" ");p("".concat(s,"..."))}),[t]);var b=function(){x(!m)};return(0,a.useEffect)((function(){d&&x(!1)}),[v]),(0,s.jsxs)("div",{className:"max-w-[60rem] pb-6 xl:flex xl:gap-8 ".concat(i),children:[(0,s.jsx)("div",{className:"".concat(m?"":" line-clamp-2"," ").concat(c),dangerouslySetInnerHTML:{__html:m?t||"":h||""}}),(0,s.jsxs)("div",{children:[!m&&(0,s.jsxs)("button",{onClick:b,type:"button",className:"mt-4 flex w-max items-center underline",children:["L\xc4S MER",(0,s.jsx)(r.Z,{className:"inline-block h-4 w-4"})]}),m&&(0,s.jsx)("div",{children:(0,s.jsxs)("button",{type:"button",onClick:b,className:"mt-4 flex w-max items-center underline ",children:["D\xd6LJ",(0,s.jsx)(r.Z,{className:"inline-block h-4 w-4 rotate-180"})]})})]})]})}},24780:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return S},default:function(){return Z}});var s=n(85893),r=n(67294),l=n(40842),a=n(80348),i=n(16040),c=n(93973),o=n(65954),d=n(36210),u=n(55029),m=n(12400),x=n(58412),f=n(77494),h=n(40438),p=n(11163),v=n(75599),b=n(2897),j=n(16741),g=n(6447),N=n(13354),w=function(e){var t=e.brands,n=(0,p.useRouter)();return(0,s.jsx)("div",{className:"flex flex-col",children:t.map((function(e){return(0,s.jsx)(N.Z,{href:"/varumarken/".concat(e.uri),className:"mb-2 ".concat(n.query.uri===e.uri?"font-bold text-dark-orange":""," inline-flex w-fit items-center space-y-2"),children:(0,s.jsx)(d.Z,{className:"text-sm",children:e.name})})}))})},y=function(e){var t=e.brand,n=e.seoText,l=e.showBreadcrumbs,a=void 0===l||l,i=e.brands,N=(0,p.useRouter)(),y=(0,r.useState)(!1),S=y[0],Z=y[1],k=(0,r.useState)(1),L=k[0],C=k[1],E=(0,r.useRef)();(0,r.useEffect)((function(){var e=function(e){E.current&&!E.current.contains(e.target)&&Z(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[E]);var _=t.name,O=(0,f.useProductListInfinite)({brandId:t.brand,defaultSortOrder:"Standard",productsPerPage:20,onlyAvailable:!1,relatedProducts:!0}),P=O.products,H=O.sortOrder,T=O.updateSortOrder,B=O.loadMore,R=O.isLoadingMore,z=O.isReachingEnd,F=O.productC
1ount;return(0,r.useEffect)((function(){Z(!1)}),[F]),(0,r.useEffect)((function(){"undefined"!==typeof lipscore&&lipscore.initWidgets()}),[R]),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(m.Z,{className:"pb-12 pt-2 xl:pt-4",children:[a?(0,s.jsx)("div",{className:"flex justify-center md:justify-start",children:(0,s.jsx)(x.Z,{type:"brand",brand:t,className:"uppercase"})}):(0,s.jsx)("div",{className:"mt-8"}),(0,s.jsxs)("div",{className:"mb-6 mt-3 hidden items-end justify-between gap-x-16 border-black/40 lg:flex lg:border-b",children:[(0,s.jsxs)("div",{className:"mb-3 hidden items-center space-x-7 text-xl font-bold text-black lg:flex",children:[(0,s.jsx)("button",{onClick:function(){return N.back()},type:"button",children:(0,s.jsx)("div",{className:"flex rounded-full bg-white p-1",children:(0,s.jsx)(c.Z,{className:"h-5 w-5"})})}),(0,s.jsx)(d.Z,{children:_})]}),(0,s.jsx)("div",{className:"my-4",children:(0,s.jsx)(g.Z,{className:"ml-auto hidden w-fit xl:block",sortOrder:H,updateSortOrder:T})})]}),(0,s.jsxs)("div",{className:"relative mt-6 flex flex-col overflow-hidden lg:flex-row xl:mt-7",children:[(0,s.jsxs)("div",{className:"border-opacity/30 ".concat(S?"translate-x-0":"-translate-x-full"," custom-scrollbar fixed left-0 top-0 z-50 flex h-screen w-full max-w-[77%] flex-col space-y-8 overflow-scroll bg-white px-4 py-8 pb-32 transition-all lg:static lg:z-10 lg:h-auto lg:max-h-[50rem] lg:w-2/12 lg:max-w-none lg:transform-none lg:overflow-auto lg:border-none lg:bg-transparent lg:p-0 lg:shadow-none"),ref:E,children:[(0,s.jsxs)("div",{className:"item-center flex justify-between",children:[(0,s.jsx)("span",{className:"top-0 w-full font-bold uppercase lg:sticky lg:bg-pale-gray lg:pb-4",children:"Varum\xe4rke"}),(0,s.jsx)(u.Z,{className:"lg:hidden",variant:"no-style",onClick:function(){return Z(!1)},children:(0,s.jsx)(v.Z,{})})]}),(0,s.jsx)(w,{brands:i})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:w-10/12 lg:pl-8 xl:pl-12",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(d.Z,{className:"mb-5 text-xl font-bold",type:"h1",children:_}),n&&(0,s.jsx)(h.Z,{htmlContent:n,wordCount:32})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[!S&&(0,s.jsxs)("div",{onClick:function(){Z(!S)},onKeyDown:function(){return Z(!S)},tabIndex:0,role:"button",className:"flex items-center lg:hidden",children:[(0,s.jsx)(o.Z,{className:"h-4 w-4 cursor-pointer"}),(0,s.jsx)(d.Z,{className:"ml-2 text-sm font-bold",children:"Filtrera"})]}),(0,s.jsx)(g.Z,{className:"ml-auto xl:hidden",sortOrder:H,updateSortOrder:T})]}),(0,s.jsx)("div",{className:"grid h-min w-full",children:(0,s.jsx)(j.Z,{products:P})}),!z&&(0,s.jsxs)("div",{className:"mt-12 flex flex-col items-center gap-y-7",children:[(0,s.jsx)(u.Z,{className:" h-12 rounded bg-black text-sm font-bold uppercase text-white xl:min-w-[12rem]",onClick:function(){B(),C(L+1)},disableRoundedFull:!0,children:"Ladda fler"}),(0,s.jsx)("div",{className:"flex h-2 w-2/6 rounded border-greenish-grey bg-white",children:(0,s.jsx)("div",{className:"bg-greenish-grey",style:{width:"".concat(P.length/(null!==F&&void 0!==F?F:100)*100,"%")}})})]})]})]})]})}),(0,s.jsx)(b.Z,{state:S,setState:Z,variant:"dark",zIndex:"z-[40]"})]})},S=!0,Z=function(e){var t,n,r,c,o,d=e.brand,u=e.menus,m=e.themeSettings,x=e.page,f=e.brands;return(0,s.jsxs)(l.Z,{menus:u,themeSettings:m,pageTranslations:[],children:[(0,s.jsx)(a.Z,{title:d.metaTitle||d.name,description:d.metaDescription||d.name,canonical:"".concat(null!==(c="https://www.dcg.se")?c:"","/varumarken/").concat(null!==(o=null===d||void 0===d?void 0:d.uri)&&void 0!==o?o:"")}),(0,s.jsx)("main",{className:"bg-pale-gray",children:(0,s.jsx)(i.Z,{className:"brand-page-wrapper",children:(0,s.jsx)(y,{brand:d,brands:f,seoText:null===x||void 0===x||null===(t=x.categoryFields)||void 0===t?void 0:t.seoBlock,showBreadcrumbs:!((null===x||void 0===x?void 0:x.categoryFields)&&(null===x||void 0===x||null===(n=x.categoryFields)||void 0===n||null===(r=n.heroBlock)||void 0===r?void 0:r.title))})})})]})}},65954:function(e,t,n){"use strict";var s=n(67294);const r=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.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=1193,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.