1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{97304:function(l,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogg/[slug]",function(){return o(939)}])},96194:function(l,e,o){"use strict";var n=o(83211),i=o(67294);e.Z=function(l){var e=(0,i.useContext)(n.w),o=(e.helloRetailBoxIds,e.setHelloRetailBoxIds);(0,i.useEffect)((function(){var e,n,i=[];null===l||void 0===l||null===(e=l.pageBuilder)||void 0===e||null===(n=e.contentBlocks)||void 0===n||n.forEach((function(l){"Page_Pagebuilder_ContentBlocks_HelloRetailBlock"===(null===l||void 0===l?void 0:l.__typename)&&i.push(null===l||void 0===l?void 0:l.productBoxKey),"Post_Pagebuilder_ContentBlocks_HelloRetailBlock"===(null===l||void 0===l?void 0:l.__typename)&&i.push(null===l||void 0===l?void 0:l.productBoxKey)})),o(i)}),[l,o])}},939:function(l,e,o){"use strict";o.r(e),o.d(e,{__N_SSG:function(){return h},default:function(){return p}});var n=o(85893),i=(o(67294),o(40842)),t=o(80348),s=o(28542),d=o(12400),a=o(58412),c=o(25675),u=o.n(c),r=o(36210),v=o(93973),x=o(13354),m=function(l){var e=l.prevPost,o=l.nextPost,i=l.hideOnMobile,t=void 0!==i&&i;return(0,n.jsxs)("div",{className:"mx-auto max-w-[70rem] px-4 pb-6 xl:px-0 ".concat(e?"justify-between":"justify-end"," ").concat(t?"hidden xl:flex":"flex"),children:[e&&(0,n.jsx)(x.Z,{href:"".concat(null===e||void 0===e?void 0:e.slug),className:"inline-flex",children:(0,n.jsxs)("button",{type:"button",className:"mt-8 flex items-center",children:[(0,n.jsx)("div",{className:"flex rounded-full bg-white p-2",children:(0,n.jsx)(v.Z,{className:"h-3 w-3 text-black xl:h-5 xl:w-5"})}),(0,n.jsx)(r.Z,{className:"line-clamp-1 px-4 text-xs text-black xl:ml-4 xl:text-xl xl:font-bold ",children:null===e||void 0===e?void 0:e.title})]})}),o&&(0,n.jsx)(x.Z,{href:"".concat(null===o||void 0===o?void 0:o.slug),className:"inline-flex",children:(0,n.jsxs)("button",{type:"button",className:"mt-8 flex flex-row-reverse items-center",children:[(0,n.jsx)("div",{className:"flex rounded-full bg-white p-2",children:(0,n.jsx)(v.Z,{className:"h-3 w-3 rotate-180 text-black xl:h-5 xl:w-5"})}),(0,n.jsx)(r.Z,{className:"line-clamp-1 px-4 text-xs text-black xl:mr-4 xl:text-xl xl:font-bold ",children:null===o||void 0===o?void 0:o.title})]})})]})},f=o(96194),h=!0,p=function(l){var e,o,c,v,x,h,p,g,b,j,N,w,_,k,y,Z,B,P,I,E,O,S,C,U,R,T=l.page,F=l.menus,H=l.themeSettings,M=l.posts,D=new window.Date(null!==(O=null===T||void 0===T?void 0:T.date)&&void 0!==O?O:""),K=D.toLocaleString("default",{day:"numeric"}),L=D.toLocaleString("default",{month:"short"}),X=null===T||void 0===T?void 0:T.databaseId,G=M.findIndex((function(l){return(null===l||void 0===l?void 0:l.databaseId)===X})),q=null!==(S=M[G-1])&&void 0!==S?S:null,z=M[G+1]||M[0]||null;return(0,f.Z)(T),(0,n.jsxs)(i.Z,{menus:F,themeSettings:H,pageTranslations:[],children:[(0,n.jsx)(t.Z,{title:(null===T||void 0===T||null===(e=T.seo)||void 0===e?void 0:e.title)&&""!==(null===T||void 0===T||null===(o=T.seo)||void 0===o?void 0:o.title)?null===T||void 0===T||null===(c=T.seo)||void 0===c?void 0:c.title:T.title,description:null===T||void 0===T||null===(v=T.seo)||void 0===v?void 0:v.metaDesc,canonical:"".concat(null!==(C="https://www.dcg.se")?C:"").concat("/blogg/".concat(null!==(U=null===T||void 0===T?void 0:T.slug)&&void 0!==U?U:""))}),(null===T||void 0===T||null===(x=T.pageBuilder)||void 0===x?void 0:x.contentBlocks)&&(0,n.jsxs)("main",{className:"blog-page ".concat((null===T||void 0===T||null===(h=T.pageOptions)||void 0===h?void 0:h.pageMarginTop)?"section-margin-top":""," bg-light-gray pb-16"),children:[(0,n.jsx)(d.Z,{children:(0,n.jsx)(a.Z,{type:"blog",className:"py-6",page:T})}),(0,n.jsx)(m,{prevPost:q,nextPost:z,hideOnMobile:!0}),(0,n.jsxs)("div",{className:"mx-auto grid max-w-[70rem] gap-y-8 bg-white/80",children:[(0,n.jsxs)("div",{className:"relative flex min-h-[25rem] w-full",children:[(null===T||void 0===T||null===(p=T.postFields)||void 0===p||null===(g=p.mobileImage)||void 0===g?void 0:g.sourceUrl)&&(0,n.jsx)("div",{className:"block overflow-hidden lg:hidden",children:(0,n.jsx)(u(),{src:null===T||void 0===T||null===(b=T.postFields)||void 0===b||null===(j=b.mobileImage)||void 0===j?void 0:j.sourceUrl,layout:"fill",className:"object-cover"})}),(null===T||void 0===T||null===(N=T.featuredImage)||void 0===N||null===(w=N.node)||void 0===w?void 0:w.sourceUrl)&&(0,n.jsx)("div",{className:"block overflow-hidden ".concat((null===T||void 0===T||null===(_=T.postFields)||void 0===_||null===(k=_.mobileImage)||void 0===k?void 0:k.sourceUrl)?"hidden lg:block":""),children:(0,n.jsx)(u(),{src:null===T||void 0===T||null===(y=T.featuredImage)||void 0===y||null===(Z=y.node)||void 0===Z?void 0:Z.sourceUrl,layout:"fill",className:"object-cover"})}),(0,n.jsxs)("div",{className:"absolute bottom-0 left-5 right-0 top-5 flex h-16 w-16 flex-col items-center justify-center rounded-full bg-dark-orange uppercase leading-none text-white",children:[(0,n.jsx)("span",{className:"text-xl font-bold",children:K}),(0,n.jsx)("span",{className:"text-sm font-bold",children:L})]})]}),(0,n.jsx)("div",{className:"flex flex-col items-center justify-center px-4 text-center",children:(0,n.jsx)(r.Z,{className:"mb-0 text-[1.375rem] font-bold xl:text-2rem xl:font-black",variant:"h1",type:"h1",children:null===T||void 0===T?void 0:T.title})}),(null===T||void 0===T||null===(B=T.categories)||void 0===B?void 0:B.edges)&&(0,n.jsx)(d.Z,{className:"-mt-4",children:(0,n.jsx)("ul",{className:"flex-center mx-auto max-w-48rem flex-wrap gap-2",children:null===T||void 0===T||null===(P=T.categories)||void 0===P?void 0:P.edges.map((function(l,e){var o;return(0,n.jsxs)("li",{className:"flex text-xs font-bold xl:text-sm",children:[(0,n.jsx)("span",{children:l.node.name}),e!==(null!==(R=null===T||void 0===T||null===(o=T.categories)||void 0===o?void 0:o.edges.length)&&void 0!==R?R:0)-1&&","]},l.node.id)}))})}),(0,n.jsx)("div",{className:"overflow-hidden",children:null===(I=T.pageBuilder)||void 0===I||null===(E=I.contentBlocks)||void 0===E?void 0:E.map((function(l,e){return(0,n.jsx)(s.Z,{block:l,priorityImages:e<2,index:e,pageOptions:null===T||void 0===T?void 0:T.pageOptions,posts:M,menus:F},l.uuid)}))})]}),(0,n.jsx)(m,{prevPost:q,nextPost:z})]})]})}}},function(l){l.O(0,[402,511,147,542,774,888,179],(function(){return e=97304,l(l.s=e);var e}));var e=l.O();_N_E=e}]);
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.