1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3576],{290:(e,l,t)=>{"use strict";t.d(l,{S:()=>r,default:()=>a});var i=t(95155),n=t(12115);let r=(0,n.createContext)({visible:!1,setVisible:e=>{}});function a(e){let{value:l,children:t}=e,[a,o]=(0,n.useState)(null!=l&&l);return(0,i.jsx)(r.Provider,{value:{visible:a,setVisible:o},children:t})}},4186:(e,l,t)=>{"use strict";t.d(l,{default:()=>w});var i=t(95155),n=t(12115),r=t(52596),a=t(62185),o=t(34519),s=t(50041),d=t(78629),c=t(90189),u=t(68768),m=t(48166),x=t(10879),v=t(1483),g=t(61181),h=t(25548),f=t(24297),p=t(85422),b=t(74162),j=t(19147),y=t(45819);function w(e){var l,t;let{fields:r,systemId:a}=e;r.productsLinkListFlat=(null!==(t=r.productsLinkList)&&void 0!==t?t:[]).map(e=>e.item);let o=Array.isArray(r.productsLinkListFlat)&&r.productsLinkListFlat.length>0||!!r.helloRetailRecomsId,[s,b]=(0,n.useState)([]),[j,y]=(0,n.useState)(!1),[w,F]=(0,n.useState)(!o),{user:C,selectedOrganization:A}=(0,n.useContext)(u.R),{websiteId:B}=(0,n.useContext)(m.WebsiteContext),{channelSystemId:L}=(0,p.l)(B),{noData:S,initialized:I,agreedAssortmentData:P,assortmentLimitationData:q,showAgreedAssortment:R,refreshingAssortment:T}=(0,d.S)(),E=(0,n.useMemo)(()=>(0,h.io)({user:C,selectedOrganization:A}),[null==A?void 0:null===(l=A.organization)||void 0===l?void 0:l.id]);return((0,n.useEffect)(()=>{if(!I)return;if(!o){F(!0);return}let e=S?[]:P.length&&R.value?P:q.length?q:[];if(r.helloRetailRecomsId){(async()=>{let l=r.helloRetailRecomsId||"";if(!l){b((0,f.sQ)(r.productsLinkListFlat,e)),F(!0);return}let t=await (0,g.Ol)(l,L,E);e.length>0&&(0,v.e6)(t,e),b(t.length?t:[]),y(t.length>0),F(!0)})();return}if(!(null==A?void 0:A.organization)||S){b(r.productsLinkListFlat),F(!0);return}b((0,f.sQ)(r.productsLinkListFlat,e)),F(!0)},[q,P,w,R,I,S,E]),r&&a)?(0,i.jsx)(c.TrackingLocationContextProvider,{value:{location:j?x.u.Recommendation:x.u.Other,enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)("div",{className:"product-listing-block group flex h-full flex-col items-stretch gap-5 lg:flex-row lg:gap-7","data-block-id":a,children:r.showImageToRight?(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(N,{fields:{...r,productsLinkListFlat:s},systemId:a,initialized:w,refreshingAssortment:T,usingHelloRetailRecoms:j}),(0,i.jsx)(k,{fields:r})]}):(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(k,{fields:r}),(0,i.jsx)(N,{fields:{...r,productsLinkListFlat:s},systemId:a,initialized:w,refreshingAssortment:T,usingHelloRetailRecoms:j})]})})}):(0,i.jsx)(n.Fragment,{})}let k=e=>{var l,t,a,o,d,c;let{fields:u,className:x}=e,{imageServerUrl:v}=(0,n.useContext)(m.WebsiteContext),g=(0,y.m)(null===(l=u.blockImagePointer)||void 0===l?void 0:l.item,v);return(0,i.jsx)(e=>{var l;let{children:t,...n}=e;return(null==u?void 0:null===(l=u.navigationLink)||void 0===l?void 0:l.url)?(0,i.jsx)(j.default,{href:null==u?void 0:u.navigationLink.url,...n,children:t}):(0,i.jsx)("div",{...n,children:t})},{className:(0,r.A)(s.J.Banner.BgImage,{[s.J.Banner.Link]:null==u?void 0:null===(t=u.navigationLink)||void 0===t?void 0:t.url},"flex h-[50vh] w-full flex-col items-start justify-end rounded-img-radius lg:h-auto lg:w-3/5 lg:flex-row lg:items-end lg:justify-start",x),style:{backgroundImage:g&&u.backgroundOverlay?"linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(".concat(g,")"):g?"url(".concat(g,")"):"",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},role:g?"img":void 0,"aria-label":g?(null===(o=u.blockImagePointer)||void 0===o?void 0:null===(a=o.item)||void 0===a?void 0:a.alt)||"":void 0,children:(0,i.jsxs)("div",{className:(0,r.A)(s.J.Banner.Contents,"flex flex-col items-start gap-4 p-6"),children:[u.title&&(0,i.jsx)(b.E,{className:"mb-0 font-title text-4xl font-bold text-white lg:text-6xl",style:{color:u.fontColor||void 0},children:u.title}),u._description&&(0,i.jsx)(b.E,{className:"mb-0 whitespace-pre-line text-base text-white",style:{color:u.fontColor||void 0},children:u._description}),(null==u?void 0:null===(d=u.navigationLink)||void 0===d?void 0:d.url)&&(null==u?void 0:null===(c=u.navigationLink)||void 0===c?void 0:c.text)&&(0,i.jsx)("div",{className:"justify-left flex w-full",children:(0,i.jsx)("div",{className:"group-hover:bg-brand-tertiary-hover block-button inline-block rounded-button-radius px-6 py-3 text-sm font-bold group-hover:text-white",children:null==u?void 0:u.navigationLink.text})})]})})},N=e=>{var l;let{fields:t,systemId:n,usingHelloRetailRecoms:s=!1,initialized:d,refreshingAssortment:c}=e;return(0,i.jsxs)("div",{className:(0,r.A)("relative w-full lg:w-2/5",{"min-h-[480px]":!d||c}),children:[(0,i.jsx)(o.A,{productsLinkList:t.productsLinkListFlat,showVariants:null===(l=t.showVariants)||void 0===l||l,initialSlidesPerView:2,title:t.blockTitle,systemId:n,referrerName:(null==t?void 0:t.blockTitle)||(null==t?void 0:t._name)||"product-listing-banner-block",referrerId:"product-listing-banner-block",usingHelloRetailRecoms:s}),(!d||c)&&(0,i.jsx)("div",{className:"absolute inset-0 z-10 flex min-h-[480px] w-full items-center justify-center bg-white/30 backdrop-blur-sm",children:(0,i.jsx)(a.A,{className:"h-14 w-14"})})]})}},5123:(e,l,t)=>{"use strict";t.d(l,{default:()=>s});var i=t(95155),n=t(12115),r=t(52596),a=t(19147),o=t(290);function s(e){let{visible:l,setVisible:t}=(0,n.useContext)(o.S),{text:s,url:d}=e.navigationLink,c=()=>t(!1);return(0,i.jsxs)("li",{className:(0,r.A)("group relative px-3",'hover:after:absolute hover:after:-bottom-0.5 hover:after:left-3 hover:after:right-3 hover:after:h-0.5 hover:after:bg-secondary hover:after:content-[""]'),onMouseEnter:e.hasChildren?()=>t(!0):c,children:[d&&(0,i.jsx)(a.default,{href:d,onClick:c,children:s}),!d&&s,e.hasChildren&&l&&(0,i.jsx)("div",{className:(0,r.A)("fixed left-0 top-20 w-screen scale-y-0 bg-primary opacity-0","origin-top transition delay-300 duration-200 group-hover:scale-y-100 group-hover:opacity-100"),children:(0,i.jsx)("div",{className:"container mx-auto flex",children:e.children})})]})}},12747:(e,l,t)=>{"use strict";t.d(l,{default:()=>u});var i=t(95155),n=t(12115),r=t(52596),a=t(46639),o=t(17225),s=t(90189),d=t(19147);let c=e=>{var l,t,c,u,m,x,v,g,h,f,p,b,j,y,w,k,N,F,C,A,B,L,S,I,P,q,R,T,E,D,_,z,O,Q,M,V;let{bannerData:H,isFrom:U}=e,{showPriceWithVat:W}=(0,o.c)();if(!H)return null;let J=W?H.fromPriceIncVat:H.fromPriceExVat,$=H.backgroundOverlay?"text-white":"text-black",G=null!==(q=null===(t=H.titleFontColor)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.value)&&void 0!==q?q:$,K=null!==(R=null===(u=H.textColor)||void 0===u?void 0:null===(c=u[0])||void 0===c?void 0:c.value)&&void 0!==R?R:$,Z=null!==(T=null===(m=H.multiLink)||void 0===m?void 0:m.url)&&void 0!==T?T:null===(g=H.link)||void 0===g?void 0:null===(v=g[0])||void 0===v?void 0:null===(x=v.item)||void 0===x?void 0:x.url,X=(null===(h=H.multiLink)||void 0===h?void 0:h.text)!="undefined"&&(null===(f=H.multiLink)||void 0===f?void 0:f.text)?null===(p=H.multiLink)||void 0===p?void 0:p.text:H.actionText;return(0,i.jsx)(s.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)(e=>{let{children:l}=e;return Z?(0,i.jsx)(d.default,{href:Z,className:(0,r.A)("group block w-full","sub"===U?"lg:absolute lg:inset-0":"relative"),children:l}):(0,i.jsx)(n.Fragment,{children:l})},{children:(0,i.jsxs)("div",{className:(0,r.A)("sub"===U?"h-full w-full lg:absolute lg:inset-0":"relative w-full"),children:["main"===U?(0,i.jsx)(a.default,{src:null!==(E=null===(b=H.blockImagePointer)||void 0===b?void 0:b.item)&&void 0!==E?E:{url:"/",alt:"",dimension:{he
1ight:100,width:100}},alt:null!==(D=null===(y=H.blockImagePointer)||void 0===y?void 0:null===(j=y.item)||void 0===j?void 0:j.alt)&&void 0!==D?D:"Banner Image",width:null!==(_=null===(k=H.blockImagePointer)||void 0===k?void 0:null===(w=k.item)||void 0===w?void 0:w.dimension.width)&&void 0!==_?_:0,height:null!==(z=null===(F=H.blockImagePointer)||void 0===F?void 0:null===(N=F.item)||void 0===N?void 0:N.dimension.height)&&void 0!==z?z:0,className:"aspect-[5/3] w-full rounded-[0.25rem] object-cover object-center"}):(0,i.jsx)(a.default,{src:null!==(O=null===(C=H.blockImagePointer)||void 0===C?void 0:C.item)&&void 0!==O?O:{url:"/",alt:"",dimension:{height:100,width:100}},alt:null!==(Q=null===(B=H.blockImagePointer)||void 0===B?void 0:null===(A=B.item)||void 0===A?void 0:A.alt)&&void 0!==Q?Q:"Banner Image",width:null!==(M=null===(S=H.blockImagePointer)||void 0===S?void 0:null===(L=S.item)||void 0===L?void 0:L.dimension.width)&&void 0!==M?M:0,height:null!==(V=null===(P=H.blockImagePointer)||void 0===P?void 0:null===(I=P.item)||void 0===I?void 0:I.dimension.height)&&void 0!==V?V:0,className:"lg:aspect-auto aspect-[7/3] w-full rounded-[0.25rem] object-cover object-center lg:absolute lg:inset-0 lg:h-full lg:w-full"}),H.backgroundOverlay&&(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[0.25rem] bg-black bg-opacity-brand-overlay"}),(0,i.jsxs)("div",{className:(0,r.A)("pointer-events-none absolute inset-x-0 bottom-0 flex flex-col items-start p-6 pb-5 pl-[30px]"),children:[(0,i.jsxs)("div",{className:(0,r.A)("flex flex-col items-start gap-y-1"),children:[(0,i.jsx)("h3",{className:(0,r.A)("m-0 font-bold",G,"main"===U?"text-3xl lg:text-4xl":"text-2xl"),children:H.blockTitle}),H._description&&(0,i.jsx)("p",{"aria-hidden":"true",className:(0,r.A)("m-0 line-clamp-3 whitespace-pre-line text-base lg:line-clamp-none",K),children:H._description}),J&&(0,i.jsx)("p",{className:(0,r.A)("m-0 font-title font-bold leading-none",K,"main"===U?"text-4xl lg:text-5xl":"text-4xl"),children:J})]}),Z&&(0,i.jsx)("div",{className:(0,r.A)("mt-[58px] text-sm font-bold",H.isButton?"block-button px-6 py-3":(0,r.A)("block-link",H.backgroundOverlay?"text-white":"text-brand-tertiary")),children:X})]})]})})})},u=e=>{var l,t,n,a,o,s;let{fields:d}=e;return(0,i.jsxs)("div",{className:"w-full overflow-hidden",children:[d.title&&(0,i.jsx)("h2",{className:(0,r.A)("my-0 mb-12 text-center text-3xl font-bold lg:text-4xl",null!==(s=null===(t=d.titleFontColor)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.value)&&void 0!==s?s:"text-brand-primary"),children:d.title}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-4 lg:grid lg:grid-cols-5 lg:items-stretch lg:gap-x-8 lg:gap-y-0",children:[(0,i.jsx)("div",{className:"relative overflow-hidden rounded-[0.25rem] lg:col-span-3 lg:row-span-1",children:(0,i.jsx)(c,{isFrom:"main",bannerData:null===(n=d.gridBanner)||void 0===n?void 0:n[0]})}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-4 lg:col-span-2 lg:row-span-1 lg:h-full lg:gap-8",children:[(0,i.jsx)("div",{className:"relative overflow-hidden rounded-[0.25rem] lg:flex-1",children:(0,i.jsx)(c,{isFrom:"sub",bannerData:null===(a=d.gridBanner)||void 0===a?void 0:a[1]})}),(0,i.jsx)("div",{className:"relative overflow-hidden rounded-[0.25rem] lg:flex-1",children:(0,i.jsx)(c,{isFrom:"sub",bannerData:null===(o=d.gridBanner)||void 0===o?void 0:o[2]})})]})]})]})}},18459:(e,l,t)=>{"use strict";t.d(l,{Vi:()=>i}),t(95155);let i=(0,t(12115).createContext)({homePageUrl:"",myPagesPageUrl:"",myPagesSettingsPageUrl:"",searchResultPageUrl:"",checkoutPageUrl:"",receiptPageUrl:"",countries:[],filters:[],imageServerUrl:"",notFoundPageUrl:"",generalErrorPageUrl:"",loginPageUrl:"",orderPageUrl:"",culture:{code:"sv-SE"},texts:[],logoTypeMain:{url:"",dimension:{}},analytics:{googleTagManager:""},languageCode:"sv"})},19758:(e,l,t)=>{"use strict";t.d(l,{A:()=>b});var i=t(95155),n=t(12115),r=t(66766),a=t(35586),o=t(47444),s=t(45829),d=t(14529);let c=e=>{let{label:l="",fluid:t=!1,className:r="",articleNumber:c,disabled:u,successLabel:m="",quantity:x=1}=e,v=(0,o.c)(),g=(0,n.useContext)(a.MI),h=async e=>{try{let l=await (0,s.WQ)(e,x);return g.setCart(l),!0}catch(e){return console.log(e),!1}};return(0,i.jsx)(d.Button,{fluid:t,onClick:()=>h(c),className:r,disabled:u,reactive:!0,successLabel:m,children:v(l)})};var u=t(74162),m=t(19147),x=t(18459),v=t(45819),g=t(91702),h=t(52596),f=t(40268);let p=function(e){let{price:l,className:t="",...n}=e;return(0,i.jsxs)("div",{className:"flex items-baseline gap-x-5",children:[!!(null==l?void 0:l.discountPriceIncludingVat)&&(0,i.jsx)(f.A,{price:l.discountPriceIncludingVat,...n}),(0,i.jsx)(f.A,{className:(0,h.A)(t,!!(null==l?void 0:l.discountPriceIncludingVat)&&"text-secondary-2 line-through"),price:null==l?void 0:l.unitPriceIncludingVat,...n})]})},b=function(e){let{name:l,fields:t,price:a,url:s="",mediumImages:h,articleNumber:f,isVariant:b,showBuyButton:j=!1,onClick:y}=e,w=(0,o.c)(),k=(0,n.useContext)(x.Vi),N=h&&h.length>0?h[0]:null,F=(0,v.m)(N,k.imageServerUrl),C={width:null==N?void 0:N.dimension.width,height:null==N?void 0:N.dimension.height,...g.S.productList};return(0,i.jsxs)("div",{children:[(0,i.jsx)(m.default,{href:s||"#",onClick:y,children:F?(0,i.jsx)(r.default,{priority:e.priority,src:F,alt:null!=l?l:"",width:C.width,height:C.height,sizes:C.sizes,style:{transform:"translate3d(0, 0, 0)"}}):(0,i.jsx)(u.E,{children:w("productcard.missingimage")})}),(0,i.jsxs)("div",{className:"my-2 text-sm lg:my-1",children:[(0,i.jsxs)(m.default,{href:s||"#",onClick:y,children:[(0,i.jsx)(u.E,{className:"mt-2 overflow-hidden text-ellipsis whitespace-nowrap",title:null!=l?l:"",children:l}),(null==t?void 0:t.brand)&&(0,i.jsx)(u.E,{className:"text-tertiary mt-1",children:t.brand[0].name})]}),(0,i.jsx)(p,{price:a,className:"mt-2"})]}),j&&(b?(0,i.jsx)(c,{label:w("productcard.button.add"),successLabel:w("productcard.button.add.success"),articleNumber:f,className:"w-3/4 p-2 lg:w-4/6"}):(0,i.jsx)(d.Button,{className:"py-2",children:(0,i.jsx)(m.default,{href:s||"#",rel:"nofollow",onClick:y,children:w("productcard.button.show")})}
1))]})}},23728:(e,l,t)=>{"use strict";t.d(l,{A:()=>n,T:()=>i});var i=function(e){return e.ASCENDING="ASCENDING",e.DESCENDING="DESCENDING",e}({});class n{static fromSearchParams(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=new n,i=Object.keys(n.paramMapping);return Object.keys(e).forEach(l=>{i.includes(l)&&(t[n.paramMapping[l].name]=n.paramMapping[l].fn(e[l]))}),Object.keys(t).length?[t]:l}static getProductListingSorting(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return[...this.fromSearchParams(e,null!=l?l:this.defaultProductSorting),...n.secondarySorting]}static getSearchResultSorting(e){return[...this.fromSearchParams(e,this.defaultSearchSorting),...n.secondarySorting]}static normalizeString(e){return"_name"===e?e:"#".concat(e)}static normalizeEnum(e){return e.toUpperCase()}constructor(e){e&&(this.field=n.normalizeString(e))}}n.paramMapping={sort_by:{name:"field",fn:n.normalizeString},sort_direction:{name:"order",fn:n.normalizeEnum}},n.defaultProductSorting=[{field:"#popular"}],n.defaultSearchSorting=[{field:"#score"}],n.secondarySorting=[{field:"#articleNumber",order:"ASCENDING"}]},27349:(e,l,t)=>{"use strict";t.d(l,{A:()=>d});var i=t(95155),n=t(12115),r=t(52596),a=t(63774),o=t(46535),s=t(58225);let d=function(e){let{visible:l,children:t,onClose:d=()=>{},position:c="right",className:u="",fullscreen:m=!1,blockScroll:x=!1,...v}=e,g=(0,n.useRef)(null),[h,f]=(0,o.Z)();return(0,a.A)(g,d),(0,n.useEffect)(()=>{l&&x?h():f()},[l,x,h,f]),(0,i.jsxs)(n.Fragment,{children:[l&&(0,i.jsx)(s.A,{className:"z-30"}),(0,i.jsx)("div",{className:(0,r.A)("fixed z-30 bg-primary p-5 transition-all",(()=>{switch(c){case"left":case"right":return(0,r.A)("top-0",l&&"".concat(c,"-0 opacity-100 scale-x-100"),!l&&"-".concat(c,"-full opacity-0 scale-x-0"));case"bottom":return(0,r.A)("inset-y-full transform opacity-0",l&&"!-inset-y-0 opacity-100");default:return(0,r.A)("right-0",l&&"".concat(c,"-0 opacity-100 scale-y-100"),!l&&"-".concat(c,"-full opacity-0 scale-y-0"))}})(),u,m&&"h-[100vh] w-full touchable:h-[100dvh]"),ref:g,...v,children:t})]})}},33576:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>er});var i=t(95155),n=t(52596),r=t(19147),a=t(46639);let o=e=>{let{children:l,href:t}=e;return t?(0,i.jsx)(r.default,{href:t,children:l}):(0,i.jsx)(i.Fragment,{children:l})};var s=t(46909),d=t(87036),c=t(60916),u=t(69624),m=t(73712),x=t(62152),v=t(12747),g=t(90189),h=t(38783),f=t(74162),p=t(62108),b=t(4186),j=t(92256),y=t(45582),w=t(80426);function k(e){var l,t;return(0,i.jsxs)("div",{className:"flex h-full flex-col items-stretch justify-evenly lg:flex-row",children:[(0,i.jsx)("div",{className:"relative flex-1",children:(0,i.jsx)(N,{className:"h-full",banner:e.fields,priority:e.priority,isBlockInBlock:e.children&&e.children.length>0})},e.systemId),(0,i.jsx)(er,{className:(0,n.A)("mt-6 overflow-hidden lg:mt-0 lg:w-1/2"),blocks:null!==(t=null===(l=e.children)||void 0===l?void 0:l.map(e=>({...e,isBlockInBlock:!0})))&&void 0!==t?t:[]})]})}function N(e){let{banner:l,priority:t,className:n,isBlockInBlock:r=!1}=e;return(0,i.jsx)("div",{className:n,children:(0,i.jsx)("figure",{className:"flex h-full w-full items-center justify-center",children:(0,i.jsx)(F,{banner:l,priority:t,isBlockInBlock:r})})})}function F(e){var l,t,o,s,d,c,u,m;let{banner:x,priority:v,isBlockInBlock:h=!1}=e,{isButton:p,buttonColor:b,buttonSize:j,hollowButton:y}=x;return(0,i.jsxs)(g.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:[(null===(t=x.blockImagePointer)||void 0===t?void 0:null===(l=t.item)||void 0===l?void 0:l.url)?(0,i.jsx)(a.default,{className:(0,n.A)("rounded-img-radius",x.centerImage?"h-2/3 object-contain":"h-full w-full object-cover",h||x.isBannerImage?"max-h-[55vh]":"max-h-[90vh]"),priority:v,src:x.blockImagePointer.item,height:x.blockImagePointer.item.dimension.height,width:x.blockImagePointer.item.dimension.width,sizes:"(max-width: ".concat(x.blockImagePointer.item.dimension.width,"px) ").concat(x.blockImagePointer.item.dimension.height,"px, 100vw"),alt:null!==(m=null!==(u=null==x?void 0:null===(s=x.blockImagePointer)||void 0===s?void 0:null===(o=s.item)||void 0===o?void 0:o.alt)&&void 0!==u?u:null==x?void 0:null===(c=x.blockImagePointer)||void 0===c?void 0:null===(d=c.item)||void 0===d?void 0:d.filename)&&void 0!==m?m:""}):(0,i.jsx)("div",{className:"min-h-[90vh]"}),(0,i.jsxs)("div",{className:"absolute left-[50%] top-[50%] w-10/12 translate-x-[-50%] translate-y-[-50%] text-center",children:[(0,i.jsx)(f.E,{className:"mb-0 font-title text-5xl lg:text-9xl",style:{color:x.fontColor||"#FFFFFF"},children:x.title}),(0,i.jsx)(f.E,{className:"mb-0 whitespace-pre-line text-4xl",style:{color:x.fontColor||"#FFFFFF"},children:x._description}),x.navigationLink&&x.navigationLink.url&&(0,i.jsx)(f.E,{className:"my-4",children:(0,i.jsx)(r.default,{href:x.navigationLink.url,className:(0,n.A)("my-4 w-fit border px-4 py-2",(0,w.WS)({isButton:p,buttonColor:b,buttonSize:j,hollowButton:y})),style:{color:x.fontColor||"#FFF",borderColor:x.fontColor||"#FFF"},children:x.navigationLink.text})})]})]})}let C=["h1","h2","h3","h4","h5","h6","div","span","section"],A=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return"string"==typeof e&&!!e&&l.includes(e.toLowerCase())},B=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"h2",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C,i=null==e?void 0:e.toLowerCase();return A(i,t)?i:l};function L(e){var l,t,r,o,s,d,c,u,m;let{banner:x,priority:v}=e;return(0,i.jsx)(i.Fragment,{children:(null==x?void 0:null===(t=x.blockImagePointer)||void 0===t?void 0:null===(l=t.item)||void 0===l?void 0:l.url)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{priority:v,src:x.blockImagePointer.item,height:x.blockImagePointer.item.dimension.height,width:x.blockImagePointer.item.dimension.width,sizes:"(max-width: ".concat(x.blockImagePointer.item.dimension.width,"px) ").concat(x.blockImagePointer.item.dimension.height,"px, 100vw"),alt:null!==(u=null!==(c=null==x?void 0:null===(o=x.blockImagePointer)||void 0===o?void 0:null===(r=o.item)||void 0===r?void 0:r.alt)&&void 0!==c?c:null==x?void 0:null===(d=x.blockImagePointer)||void 0===d?void 0:null===(s=d.item)||void 0===s?void 0:s.filename)&&void 0!==u?u:"",className:(0,n.A)("h-[80vh] w-full rounded-img-radius object-cover sm:max-w-[100%] lg:h-[100%] lg:max-h-[76vh] lg:max-w-[100%]")}),x.backgroundOverlay&&(0,i.jsx)("div",{className:"absolute inset-0 z-0 rounded-img-radius bg-black bg-opacity-brand-overlay"})]}):(0,i.jsx)("div",{style:{background:null!==(m=x.fallbackColor)&&void 0!==m?m:"white"},className:"min-h-[80vh] sm:max-w-[100%] lg:mt-0 lg:h-[100%] lg:max-h-[76vh] lg:max-w-[100%]"})})}function S(e){var l,t,a,o,s,d,c,u,m;let{banner:x}=e,{isButton:v,buttonSize:h,buttonColor:f,hollowButton:p,showTextToRight:b,headingTag:j}=x,y=B(null==j?void 0:null===(l=j[0])||void 0===l?void 0:l.value,void 0,["h1","h2","h3","h4","h5","h6"]);return(0,i.jsx)(g.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsxs)("div",{className:(0,n.A)("absolute bottom-0 left-0 right-0 mx-4 rounded-img-radius p-8 text-left","lg:mx-0 lg:max-w-[50%] lg:p-10",{"lg:left-auto lg:right-0":b,"lg:left-0 lg:right-auto":!b}),children:[(0,i.jsx)(y,{className:(0,n.A)("font-title","whitespace-pre-line","!mt-0",{"mb-2":!!x._description,"!mb-0":!x._description,"text-4xl font-bold leading-10 lg:text-[min(3.5rem,3vw)] lg:leading-[1.2]":"div"===y}
1),style:{color:null!==(d=x.fontColor)&&void 0!==d?d:"white"},children:x.title}),(0,i.jsx)("div",{className:(0,n.A)("overflow-hidden whitespace-pre-line text-base leading-6 lg:text-lg lg:leading-7",{"mb-2":!!(null==x?void 0:null===(t=x.navigationLink)||void 0===t?void 0:t.url),"mb-0":!(null==x?void 0:null===(a=x.navigationLink)||void 0===a?void 0:a.url)}),style:{color:null!==(c=x.fontColor)&&void 0!==c?c:"white"},children:x._description}),(null==x?void 0:null===(o=x.navigationLink)||void 0===o?void 0:o.url)&&(0,i.jsx)("div",{className:"justify-left flex w-full",children:(0,i.jsx)(r.default,{href:x.navigationLink.url,target:"_blank",rel:"noopener noreferrer",className:(0,n.A)("min-h-9 font-bold leading-4 tracking-wide",(0,w.WS)({isButton:v,buttonSize:h,buttonColor:f,hollowButton:p})),style:{color:null!==(u=x.fontColor)&&void 0!==u?u:"white"},children:null!==(m=null==x?void 0:null===(s=x.navigationLink)||void 0===s?void 0:s.text)&&void 0!==m?m:""})})]})})}var I=t(47294),P=t(64797),q=t(93224),R=t(59480),T=t(91053),E=t(73201),D=t(66766),_=t(83368),z=t(45819),O=t(55028),Q=t(5123),M=t(56366);let V=(0,O.default)(()=>Promise.resolve().then(t.bind(t,33576)).then(e=>e.default),{loadableGenerated:{webpack:()=>[33576]}});var H=t(15933),U=t(36112),W=t(96575),J=t(66316),$=t(23728),G=t(12115),K=t(34477);let Z=(0,K.createServerReference)("40227c499553979535482aa8d00a1bc455c7393e63",K.callServer,void 0,K.findSourceMapURL,"queryServer");function X(){let e=(0,H._)(["\n query GetProductSearch(\n $query: ProductSearchQueryInput!\n $first: Int\n $sorts: [SearchSortItemInput!]\n ) {\n productSearch(query: $query, first: $first, sortBy: $sorts) {\n totalCount\n pageInfo {\n hasNextPage\n }\n nodes {\n ...ProductCard\n }\n }\n }\n"]);return X=function(){return e},e}async function Y(e){var l,t;let{title:n,category:r,productList:a,numberOfProducts:o,sorting:s}=e.fields;if(0===r.length&&0===a.length)return(0,i.jsx)(i.Fragment,{});let d=s?[new $.A(s[0].value)]:[],c=new J.O({categoryId:(null===(l=r[0])||void 0===l?void 0:l.id)||"",includeChildren:!!s&&"manual"!==s[0].value,productListId:0===r.length?a[0].id:""}),u=await ee({params:c,numberOfProducts:Math.min(null!=o?o:15,100),sorts:d});return(0,i.jsx)(G.Fragment,{children:(null===(t=u.nodes)||void 0===t?void 0:t.length)>0&&(0,i.jsx)(W.default,{title:n||"",items:u.nodes,className:"mt-7"})})}async function ee(e){let{params:l,numberOfProducts:t,sorts:i}=e;return(await Z({query:el,variables:{query:l,first:t,sorts:i}})).productSearch}let el=(0,U.J1)(X()),et={BannerBlock:k,BrandBlock:function(){return(0,i.jsx)("div",{children:"BrandBlock"})},CPBrandListBlock:function(e){var l,t,r,s,d;let{title:c,brandList:u,fontColor:m}=e.fields;return(0,i.jsxs)("section",{className:"mt-4 flex flex-col items-center justify-center gap-y-16 py-8 md:mt-6 lg:mt-0",children:[(0,i.jsx)("h3",{style:{color:m||void 0},className:"text-4xl font-bold ".concat(m?"":"text-brand-primary"),children:c}),(0,i.jsx)("div",{className:(0,n.A)("grid grid-cols-1 gap-x-10 gap-y-4",(null==u?void 0:u.length)===1&&"w-auto",(null==u?void 0:u.length)===2&&"w-auto xs-screen:grid-cols-2",(null!==(l=null==u?void 0:u.length)&&void 0!==l?l:0)>=3&&"w-auto sm:grid-cols-3",(null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0)>=4&&"md:grid-cols-4",(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)>=5&&"lg:grid-cols-5",(null!==(s=null==u?void 0:u.length)&&void 0!==s?s:0)>=6&&"gap-x-14 xl:grid-cols-6",(null!==(d=null==u?void 0:u.length)&&void 0!==d?d:0)>=7&&"2xl:grid-cols-7"),children:null==u?void 0:u.map(e=>{var l,t,n,r;return(null==e?void 0:null===(l=e.blockImagePointer)||void 0===l?void 0:l.item)&&(0,i.jsx)("div",{className:"w-40 md:w-48",children:(0,i.jsx)(o,{href:null==e?void 0:null===(t=e.navigationLink)||void 0===t?void 0:t.url,children:(0,i.jsx)(a.default,{className:"h-14 w-40 rounded-img-radius object-contain md:h-16 md:w-48",src:e.blockImagePointer.item,alt:null!==(r=null!==(n=e.blockImagePointer.item.alt)&&void 0!==n?n:e.title)&&void 0!==r?r:"",width:e.blockImagePointer.item.dimension.width,height:e.blockImagePointer.item.dimension.height})})}
1,e.title)})})]})},CPColumnBannerBlock:s.default,CPContactFormBlock:d.default,CPContentBlock:c.default,CPEditorBlock:u.default,CPEmptyBlock:m.default,CPFullWidthBannerBlock:x.default,CPGridBannerBlock:v.default,CPHeroBannerBlock:function(e){var l,t,r,o,s,d,c,u;let{blockImagePointer:m,title:x,_description:v,fontColor:p,linkText:b,backgroundOverlay:j,isFullWidth:y}=e.fields;return(0,i.jsx)(g.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)("div",{className:"grid grid-cols-1",children:(0,i.jsxs)("div",{className:"relative",children:[(null==m?void 0:m.item)&&(0,i.jsx)(a.default,{priority:!0,src:m.item,height:null!==(s=null===(l=m.item.dimension)||void 0===l?void 0:l.height)&&void 0!==s?s:5e3,width:null!==(d=null===(t=m.item.dimension)||void 0===t?void 0:t.width)&&void 0!==d?d:5e3,alt:null!==(u=null!==(c=null==m?void 0:null===(r=m.item)||void 0===r?void 0:r.alt)&&void 0!==c?c:null==m?void 0:null===(o=m.item)||void 0===o?void 0:o.filename)&&void 0!==u?u:"",className:(0,n.A)("h-screen max-h-[70vh] w-screen object-cover lg:h-auto",!y&&"rounded-img-radius")}),j&&(0,i.jsx)("div",{className:(0,n.A)("absolute inset-0 bg-black bg-opacity-brand-overlay",!y&&"rounded-img-radius")}),(0,i.jsx)("div",{className:"absolute left-[50%] top-[50%] w-full translate-x-[-50%] translate-y-[-50%] p-6 text-center lg:w-10/12 lg:p-0",children:(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-7",children:[x&&(0,i.jsx)(h.Heading2,{style:{color:p||"#FFFFFF"},className:(0,n.A)("w-full break-words text-3xl font-bold lg:text-5xl"),children:x}),v&&(0,i.jsx)(f.E,{style:{color:p||"#FFFFFF"},className:(0,n.A)("w-full whitespace-pre-line break-words text-lg lg:w-1/2"),children:v}),b&&(0,i.jsx)("button",{type:"button",className:(0,n.A)("block-button inline-block max-w-full px-6 py-3 text-sm font-bold",p||"text-white"),children:b})]})})]},"".concat(e.systemId))})})},CPProductCategoryBlock:p.default,CPProductListingBannerBlock:b.default,CPProductListingBlock:j.default,CPRequestQuoteFormBlock:y.default,ODReturnRequestFormBlock:R.default,CPSingleBannerBlock:k,EBSingleBannerWithTextBlock:function(e){return(0,i.jsx)("div",{className:"sm:justify-left flex w-full lg:justify-center",children:(0,i.jsx)("div",{className:"w-full",children:(0,i.jsxs)("div",{className:(0,n.A)("relative lg:mb-0"),children:[(0,i.jsx)(L,{banner:e.fields,priority:e.priority}),(0,i.jsx)(S,{banner:e.fields})]},e.systemId)})})},EBTextBlock:I.default,FooterColumnBlock:function(e){let{children:l}=e;return(0,i.jsx)(er,{blocks:l,className:"m-5"})},NavigationLinksBlock:function(e){var l;let{fields:t}=e,n=null===(l=t.navigationLinks)||void 0===l?void 0:l.map(e=>e.navigationLink);return(0,i.jsx)(E.default,{header:t.navigationLinksHeader,links:n})},ODColumnBannerBlock:P.default,ODSplitHeroBlock:T.ODSplitHeroBlock,ODFreightSearchBlock:q.ODFreightSearchBlock,PrimaryNavigationBannerBlock:function(e){let{fields:l}=e,t=l.navigationLink,n=l.blockImagePointer.item;return(0,i.jsxs)(_.default,{link:t,children:[n&&(0,i.jsx)(D.default,{alt:(null==t?void 0:t.text)||"",src:(0,z.m)(n),width:n.dimension.width,height:n.dimension.height}),(null==t?void 0:t.text)&&(0,i.jsx)(f.E,{children:t.text})]})},PrimaryNavigationColumnBlock:function(e){let{children:l}=e;return(0,i.jsx)(er,{blocks:l,className:"m-5"})},PrimaryNavigationCategoriesBlock:function(e){var l,t,n;let{fields:r}=e,a=null===(l=r.categoryLink[0])||void 0===l?void 0:l.item,o={text:null==a?void 0:a.name,url:null==a?void 0:a.url},s=(null!==(n=null===(t=a.children)||void 0===t?void 0:t.nodes)&&void 0!==n?n:[]).map(e=>{var l;return{text:null!==(l=e.name)&&void 0!==l?l:e.url,url:e.url}});return(0,i.jsx)(E.default,{header:o,links:s})},PrimaryNavigationLinkBlock:function(e){var l,t;return e.desktop?(0,i.jsx)(Q.default,{navigationLink:e.fields.navigationLink||{},hasChildren:((null===(l=e.children)||void 0===l?void 0:l.length)||0)>0,children:e.children&&(0,i.jsx)(V,{blocks:e.children,className:"m-5 inline"})}):(0,i.jsx)(M.default,{navigationLink:e.fields.navigationLink||{},hasChildren:((null===(t=e.children)||void 0===t?void 0:t.length)||0)>0,children:e.children&&(0,i.jsx)(V,{blocks:e.children})})},ProductsBlock:Y,ProductsAndBannerBlock:function(){return(0,i.jsx)("div",{children:"ProductsAndBannerBlock"})}};var ei=t(50041);let en={CPProductListingBannerBlock:ei.y.BannerType.ProductListingBannerBlock,ODColumnBannerBlock:ei.y.BannerType.ColumnBannerBlock,ODSplitHeroBlock:ei.y.BannerType.SplitHeroBlock};function er(e){return e.blocks&&e.blocks.length>0?(0,i.jsx)(i.Fragment,{children:e.blocks.map((l,t)=>{var r,a,o,s;let d=et[l.__typename];if(!d)return null;
1let c=null,u=!1;return l.__typename in en&&"string"==typeof en[l.__typename]&&(c=en[l.__typename],u=!0),(0,i.jsx)("section",{"data-litium-block-id":l.systemId,"data-banner-type":c,"data-typename":l.__typename,className:(0,n.A)(e.className,{[ei.J.Banner.Container]:u}),children:(0,i.jsx)("div",{className:(0,n.A)(null===(a=l.fields)||void 0===a?void 0:null===(r=a.backgroundColor)||void 0===r?void 0:r[0].value,"w-full"),children:(0,i.jsx)("div",{className:(0,n.A)((null===(o=l.fields)||void 0===o?void 0:o.isFullWidth)&&!e.nestedBlockContainer?"px-4":"base-container"),children:(null===(s=l.fields)||void 0===s?void 0:s.extraMargin)?(0,i.jsx)("div",{className:"slim-container",children:(0,i.jsx)(d,{priority:e.priority&&t<=3,...l})}):(0,i.jsx)(d,{priority:e.priority&&t<=3,...l})})})},"block-".concat(l.systemId,"-").concat(t))})}):(0,i.jsx)(i.Fragment,{})}},35586:(e,l,t)=>{"use strict";t.d(l,{MI:()=>n}),t(95155);var i=t(12115);t(45829);let n=(0,i.createContext)({cart:{discountInfos:[],grandTotal:0,rows:[],productCount:0,discountCodes:[],productTotalIncludingVat:0,currency:{code:"SEK"}},setCart:e=>{},hasCartChanged:!1,setHasCartChanged:e=>{}})},38783:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Heading1:()=>r,Heading2:()=>a,Heading3:()=>o});var i=t(95155),n=t(47444);function r(e){let{children:l,className:t="",translationKey:r="",...a}=e,o=(0,n.c)();return(0,i.jsx)("h1",{className:t,...a,children:r?o(r):l})}function a(e){let{children:l,className:t="",translationKey:r="",...a}=e,o=(0,n.c)();return(0,i.jsx)("h2",{className:t,...a,children:r?o(r):l})}function o(e){let{children:l,className:t="",translationKey:r="",...a}=e,o=(0,n.c)();return(0,i.jsx)("h3",{className:t,...a,children:r?o(r):l})}},40268:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var i=t(95155),n=t(35586),r=t(18459),a=t(12115),o=t(52596),s=t(74162);let d=function(e){var l,t,n;let{price:r,strikethrough:a=!1,className:d="",currency:c,culture:u,...m}=e;return(0,i.jsx)(s.E,{className:(0,o.A)(a&&"line-through",d),...m,children:(l=r,t=u,n=c,void 0===l?"":new Intl.NumberFormat(t,{style:"currency",currency:n,maximumFractionDigits:0,minimumFractionDigits:0,currencyDisplay:"code"}).format(l))})},c=function(e){let{price:l,strikethrough:t=!1,className:o="",...s}=e,c=(0,a.useContext)(r.Vi),{cart:u}=(0,a.useContext)(n.MI);return(0,i.jsx)(d,{price:l,strikethrough:t,className:o,culture:c.culture.code,currency:u.currency.code,...s})}},43583:()=>{},45582:(e,l,t)=>{"use strict";t.d(l,{default:()=>j});var i=t(95155),n=t(12115),r=t(52596),a=t(35695),o=t(68768),s=t(48166),d=t(51880);let c=async e=>{let{input:l}=e;try{var t;if(!l.organizationId)throw Error("Organization ID is required",{cause:{type:"INVALID_ORGANIZATION_ID"}});if(!l.personId)throw Error("Person ID is required",{cause:{type:"INVALID_PERSON_ID"}});if(!l.firstName)throw Error("First Name is required",{cause:{type:"INVALID_FIRST_NAME"}});if(!l.lastName)throw Error("Last Name is required",{cause:{type:"INVALID_LAST_NAME"}});if(!l.email||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email))throw Error("Email is required and must be valid",{cause:{type:"INVALID_EMAIL"}});if(!l.phoneNumber)throw Error("Phone Number is required",{cause:{type:"INAVLID_PHONE"}});let e=await (0,d.To)(u,void 0,{input:l});if(e.errors)throw Error("[GraphQL Error]: ",{cause:e.errors});return null===(t=e.data)||void 0===t?void 0:t.requestQuote}catch(e){throw console.error("[Error From sendQuote]:",e),e}},u="mutation requestQuote($input:QuoteRequestModelInput!) { requestQuote(quoteRequest: $input) }";var m=t(34477);let x=(0,m.createServerReference)("7f074ae00d022dee0290797153e71a8623fba070f3",m.callServer,void 0,m.findSourceMapURL,"getQuoteRequestSettings");var v=t(87164),g=t(85422),h=t(19147),f=t(47444),p=t(54078),b=t(62185);let j=function(e){var l,t;let d,u,{fields:m}=e,[j,w]=(0,n.useState)(),[k,N]=(0,n.useState)(!1),[F,C]=(0,n.useState)(!1),A=(0,f.c)(),{user:B,organization:L}=(0,n.useContext)(o.R),{loginPageUrl:S,enableBuySignedOut:I}=(0,n.useContext)(s.WebsiteContext),P=(0,a.usePathname)(),q=(0,n.useRef)(null),{blockTitle:R,multiLangEditor:T}=m,E=(0,a.useSearchParams)().get("productid");if((0,n.useEffect)(()=>{var e;null===(e=q.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},[F]),!(I||(null==B?void 0:B.isLoggedIn)))return(0,i.jsxs)("div",{className:"my-10 flex w-full min-w-64 flex-col items-center bg-ui-background px-4 py-8",children:[(0,i.jsx)("h1",{className:"text-2xl font-semibold text-brand-primary lg:text-3xl",children:A("requestQuoteFormBlock.login.title")}),(0,i.jsx)("p",{className:"text-md text-center text-brand-primary-text lg:text-lg",children:A("requestQuoteFormBlock.login.description")}),(0,i.jsx)(h.default,{className:"bg-brand-primary px-4 py-2 text-white",href:S,children:A("requestQuoteFormBlock.login.button")})]});if(!(null==L?void 0:null===(l=L.fields)||void 0===l?void 0:l._nameInvariantCulture))return(0,i.jsxs)("div",{className:"my-10 flex w-full min-w-64 flex-col items-center bg-ui-background px-4 py-8",children:[(0,i.jsx)("h1",{className:"text-2xl font-semibold text-brand-primary lg:text-3xl",children:A("requestQuoteFormBlock.selectOrganization.title")}),(0,i.jsx)("p",{className:"text-md text-center text-brand-primary-text lg:text-lg",children:A("requestQuoteFormBlock.selectOrganization.description")}),(0,i.jsx)(h.default,{className:"bg-brand-primary px-4 py-2 text-white",href:S,children:A("requestQuoteFormBlock.selectOrganization.button")})]});(null==L?void 0:L.id)&&(d=(0,g.l)(null==L?void 0:L.id).itemSystemId),B.id&&(u=(0,g.l)(B.id).itemSystemId);let D=async e=>{var l,t;e.preventDefault(),N(!0),w(null);let i=new FormData(e.currentTarget),n={productId:E,firstName:i.get("first-name"),lastName:i.get("last-name"),email:i.get("email"),phone:i.get("phone"),organization:null==L?void 0:L.fields._nameInvariantCulture,queryDetails:i.get("query-details")},r=["firstName","lastName","email","phone","organization"].every(e=>!!n[e]),a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.email);if(!r){w(A("requestQuoteFormBlock.fillRequiredFields")),N(!1);return}if(!a){w(A("requestQuoteFormBlock.invalidEmail")),N(!1);return}if(!/^[\d\s\+\(\)\-]*$/.test(n.phone)){w(A("requestQuoteFormBlock.invalidPhone")),N(!1);return}let o=await x(),s={organizationId:d,organizationName:null==L?void 0:L.fields._nameInvariantCulture,personId:u,firstName:n.firstName,lastName:n.lastName,email:n.email,phoneNumber:n.phone,articleNumber:null!==(l=n.productId)&&void 0!==l?l:"",recipientEmail:null!==(t=null==o?void 0:o.quoteRequestEmailRecipient)&&void 0!==t?t:"",additionalInfo:n.queryDetails};try{await c({input:s})?y(s,P).then(e=>{if(e.error){w(A("requestQuoteFormBlock.error")),N(!1),console.error("Error while trying to send the quote",e.error);return}C(!0)}).catch(e=>{console.error("Error while trying to send the quote",e),w(A("requestQuoteFormBlock.error")),N(!1)}):(w(A("requestQuoteFormBlock.error")),N(!1))}catch(e){console.error("Error while trying to send the quote",e),w(A("requestQuoteFormBlock.error")),N(!1);return}};return F?(0,i.jsxs)("div",{ref:q,className:"my-10 flex w-full min-w-64 flex-col items-center bg-ui-background px-4",children:[(0,i.jsx)("h1",{className:"text-2xl font-semibold text-brand-primary lg:text-3xl",children:A("requestQuoteFormBlock.success.title")}),(0,i.jsx)("p",{className:"text-md text-center text-brand-primary-text lg:text-lg",children:A("requestQuoteFormBlock.success.message")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col px-4 py-12 lg:flex-row lg:px-0",children:[R&&(0,i.jsx)("h3",{className:"lg:leading-14 min-h-max overflow-hidden text-3xl font-bold leading-8 text-brand-primary lg:w-2/5 lg:pl-28 lg:pr-16 lg:text-5xl",children:R}),T&&(0,i.jsx)("div",{className:"m-0 flex flex-col items-start pr-2 text-lg font-normal leading-8 lg:w-3/5 lg:pr-28 lg:text-lg [&>*>a:hover]:underline [&>*>a]:text-hyperlink [&>p]:my-4",dangerouslySetInnerHTML:{__html:(0,v.A)(T)}})]}),(0,i.jsxs)("div",{className:"my-4 flex w-full bg-ui-background",children:[(0,i.jsx)("div",{className:"hidden w-2/5 lg:block"}),(0,i.jsxs)("form",{className:"mx-auto my-10 flex w-full flex-wrap gap-x-6 gap-y-5 px-4 md:px-16 lg:w-3/5 lg:pl-0 lg:pr-28",onSubmit:D,children:[E&&(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.productID"),type:"text",name:"product-id",placeholder:A("requestQuoteFormBlock.productID.placeholder"),className:"w-full",readOnly:!0,value:E}),(0,i.jsxs)("div",{className:"flex w-full flex-wrap gap-x-6 lg:flex-nowrap",children:[(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.firstName"),type:"text",name:"first-name",placeholder:A("requestQuoteFormBlock.firstName.placeholder"),className:"flex-1",value:
1B.fields._firstName,isRequired:!0}),(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.lastName"),type:"text",name:"last-name",placeholder:A("requestQuoteFormBlock.lastName.placeholder"),className:"flex-1",isRequired:!0,value:B.fields._lastName})]}),(0,i.jsxs)("div",{className:"flex w-full flex-wrap gap-x-6 lg:flex-nowrap",children:[(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.email"),type:"email",name:"email",placeholder:A("requestQuoteFormBlock.email.placeholder"),className:"flex-1",isRequired:!0,value:B.fields._email}),(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.phone"),type:"tel",name:"phone",placeholder:A("requestQuoteFormBlock.phone.placeholder"),className:"flex-1",isRequired:!0,value:B.fields._phone})]}),(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.organization"),type:"text",name:"organization",placeholder:A("requestQuoteFormBlock.organization.placeholder"),className:"w-full",isRequired:!0,value:null==L?void 0:null===(t=L.fields)||void 0===t?void 0:t._nameInvariantCulture,readOnly:!0}),(0,i.jsx)(p.A,{label:A("requestQuoteFormBlock.queryDetails"),type:"textarea",name:"query-details",placeholder:A("requestQuoteFormBlock.queryDetails.placeholder"),className:"h-48 w-full",inputClassName:"min-h-44"}),j&&(0,i.jsx)("span",{className:"w-full text-sm text-status-error",children:j}),(0,i.jsx)("button",{type:"submit",className:(0,r.A)("tertiary-button overflow-hidden px-5 py-4 text-sm font-semibold",k&&"opacity-50"),disabled:k,children:k?(0,i.jsx)(b.A,{className:"h-4"}):A("requestQuoteFormBlock.submit")})]})]})]})},y=async(e,l)=>{let t=await fetch("/api/email/sendQuoteRequest/".concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await t.json()}},46909:(e,l,t)=>{"use strict";t.d(l,{default:()=>d});var i=t(95155),n=t(52596),r=t(46639),a=t(90189),o=t(87164),s=t(19147);let d=e=>{var l,t;let{fields:d}=e,c=null==d?void 0:null===(l=d.columnBlocks)||void 0===l?void 0:l.length,u=1===c||(null==d?void 0:d.isSingleRowLayout)&&(3===c||4===c);return(0,i.jsx)(a.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:(0,n.A)("grid min-h-full",u?"lg:grid-cols-".concat(c):"lg:grid-cols-2 lg:grid-rows-1",(null==d?void 0:d.gutterBlock)?"gap-x-8 gap-y-4":""),children:null==d?void 0:null===(t=d.columnBlocks)||void 0===t?void 0:t.map((e,l)=>{var t,a,m,x,v,g,h,f,p,b,j,y;return(0,i.jsxs)("div",{className:(0,n.A)("relative flex rounded-img-radius",(null==e?void 0:null===(a=e.blockImagePointer)||void 0===a?void 0:null===(t=a.item)||void 0===t?void 0:t.url)?"h-[34rem]":""),children:[(null==e?void 0:null===(x=e.blockImagePointer)||void 0===x?void 0:null===(m=x.item)||void 0===m?void 0:m.url)&&(0,i.jsx)(r.default,{src:e.blockImagePointer.item,height:null===(v=e.blockImagePointer.item.dimension)||void 0===v?void 0:v.height,width:null!==(b=null===(g=e.blockImagePointer.item.dimension)||void 0===g?void 0:g.width)&&void 0!==b?b:0,alt:null!==(j=e.blockImagePointer.item.alt)&&void 0!==j?j:"",className:"absolute inset-0 h-full w-full rounded-img-radius object-cover object-center",loading:"lazy"}),(null==e?void 0:e.backgroundOverlay)&&(0,i.jsx)("div",{className:"absolute inset-0 rounded-img-radius bg-black bg-opacity-brand-overlay"}),(0,i.jsxs)("div",{style:d.fontColor?{color:d.fontColor}:{},className:(0,n.A)("relative flex w-full flex-col items-end justify-end p-7 md:p-10",1===c&&"xl:w-1/2"),children:[(0,i.jsxs)("div",{className:(0,n.A)(1===c&&"self-start","w-full"),children:[(0,i.jsx)("h2",{className:(0,n.A)("mb-4 text-2xl font-bold",1===c?"lg:text-[46px] lg:leading-[50px]":u&&4===c?"lg:text-[26px] lg:leading-[30px]":"lg:text-[36px] lg:leading-[40px]"),children:e.blockTitle}),(null==e?void 0:e.multiLangEditor)&&(0,i.jsx)("div",{className:"overflow-hidden break-words text-base",children:(0,i.jsx)("div",{className:"[&>p:first-of-type]:mt-0 [&>p:last-of-type]:mb-0",dangerouslySetInnerHTML:{__html:(0,o.A)(null==e?void 0:e.multiLangEditor)}})})]}),(null==e?void 0:null===(h=e.navigationLink)||void 0===h?void 0:h.text)&&(0,i.jsx)("div",{className:(0,n.A)("w-full pt-4",(null==e?void 0:e.isButton)&&"justify-left flex"),children:(0,i.jsx)(s.default,{href:null!==(y=null===(f=e.navigationLink)||void 0===f?void 0:f.url)&&void 0!==y?y:"",className:(0,n.A)("font-bold",(null==e?void 0:e.isButton)?"block-button px-6 py-3 text-sm":"block-link min-h-9 px-4 pl-0 text-base font-bold leading-4 tracking-wide"),children:null==e?void 0:null===(p=e.navigationLink)||void 0===p?void 0:p.text})})]})]},l)})})})})}},47294:(e,l,t)=>{"use strict";t.d(l,{default:()=>d});var i=t(95155),n=t(52596),r=t(87164),a=t(80426),o=t(33576),s=t(19147);function d(e){var l,t,d,c,u,m,x,v,g,h,f,p,b;let{fields:j,children:y}=e,w=(0,a.$6)(null==j?void 0:j.isFullWidth,null===(l=j.backgroundColor)||void 0===l?void 0:l[0].value,!0);return(0,i.jsx)("div",{className:(0,n.A)(w),children:(0,i.jsxs)("div",{className:"flex flex-col lg:flex-row",children:[(0,i.jsxs)("div",{className:(0,n.A)("flex w-full flex-col gap-4 lg:flex-row lg:gap-10",(null!==(g=null==y?void 0:y.length)&&void 0!==g?g:0)>0&&"flex-col lg:w-1/2 lg:gap-y-8"),children:[(0,i.jsx)("h3",{className:(0,n.A)("m-0 overflow-hidden font-title text-3xl font-bold leading-8 lg:basis-2/5 lg:text-5xl",null!==(h=null===(t=j.titleFontColor)||void 0===t?void 0:t[0].value)&&void 0!==h?h:"text-brand-primary",(null!==(f=null==y?void 0:y.length)&&void 0!==f?f:0)>0?"lg:my-0 lg:pl-5":""),children:j.blockTitle}),(0,i.jsxs)("div",{style:{color:null!==(p=j.fontColor)&&void 0!==p?p:""},className:(0,n.A)("flex flex-col items-start gap-y-8 text-lg lg:basis-3/5",!j.fontColor&&"text-brand-primary-text",(null!==(b=null==y?void 0:y.length)&&void 0!==b?b:0)>0?"my-0 py-0":"pt-0"),children:[(null==j?void 0:j.multiLangEditor)&&(0,i.jsx)("div",{className:"m-0 text-base font-normal leading-8 lg:text-lg [&>*>a:hover]:underline [&>*>a]:text-hyperlink",dangerouslySetInnerHTML:{__html:(0,r.A)(null==j?void 0:j.multiLangEditor)}}),(null===(d=j.navigationLink)||void 0===d?void 0:d.text)&&(null===(c=j.navigationLink)||void 0===c?void 0:c.url)&&(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)(s.default,{href:j.navigationLink.url,className:(0,n.A)("tertiary-button flex h-11 min-w-44 items-center justify-center px-4 text-center text-sm font-semibold leading-5 lg:mb-0",((null===(m=j.backgroundColor)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.value)==="bg-brand-primary"||(null===(v=j.backgroundColor)||void 0===v?void 0:null===(x=v[0])||void 0===x?void 0:x.value)==="bg-black")&&"border-default-border-widthborder-white bg-transparent hover:bg-white hover:text-brand-primary"),children:j.navigationLink.text})})]})]}),(0,i.jsx)(o.default,{className:"mt-8 flex-1 overflow-hidden md:mt-0 lg:w-1/2 [&>*]:m-0",blocks:null!=y?y:[]})]})})}},54078:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var i=t(95155),n=t(12115),r=t(52596);let a=e=>{let{label:l,name:t,className:a,inputClassName:o,isRequired:s,readOnly:d,value:c,onChange:u,...m}
1=e,[x,v]=(0,n.useState)(c);return(0,i.jsxs)("div",{className:(0,r.A)("my-2 flex flex-col gap-y-2",a),children:[(0,i.jsxs)("label",{className:"text-xs font-bold",htmlFor:t,children:[l," ",(0,i.jsx)("span",{className:"text-status-error ",children:s&&"*"})]}),"textarea"===e.type?(0,i.jsx)("textarea",{...m,id:t,name:t,className:(0,r.A)(o,"border-0 px-4 py-3",d&&"cursor-not-allowed bg-base-light"),required:s,readOnly:d,value:x,onChange:e=>v(e.target.value)}):(0,i.jsx)("input",{...m,id:t,name:t,className:(0,r.A)(o,"border-0 px-4 py-3 text-sm font-medium",d&&"cursor-not-allowed bg-base-light"),required:s,readOnly:d,value:x,onChange:e=>{v(e.target.value),null==u||u(e)}})]})}},56366:(e,l,t)=>{"use strict";t.d(l,{default:()=>u});var i=t(95155),n=t(12115),r=t(74162),a=t(97688),o=t(73010),s=t(19147),d=t(27349),c=t(290);function u(e){let{text:l,url:t}=e.navigationLink,[u,m]=(0,n.useState)(!1),{visible:x,setVisible:v}=(0,n.useContext)(c.S),g=()=>v(!1),h=()=>m(!1);return(0,i.jsxs)("li",{className:"my-5",children:[!e.hasChildren&&t&&(0,i.jsx)(s.default,{href:t,className:"text-2xl font-semibold",onClick:g,children:l}),e.hasChildren&&(0,i.jsxs)("div",{className:"flex justify-between",onClick:()=>m(!0),children:[(0,i.jsx)(r.E,{className:"text-2xl font-semibold",children:l}),(0,i.jsx)(a.A,{alt:l,className:"inline-block h-6 w-6 -rotate-90"})]}),e.hasChildren&&(0,i.jsxs)(d.A,{visible:u&&x,onClose:h,position:"top",fullscreen:!0,children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(a.A,{alt:"Back",className:"inline-block h-6 w-6 rotate-90",onClick:h}),t&&(0,i.jsx)(s.default,{href:t,className:"text-2xl font-semibold underline",onClick:()=>{h(),g()},children:l}),!t&&(0,i.jsx)(r.E,{className:"text-2xl font-semibold",children:l}),(0,i.jsx)(o.A,{alt:"close",onClick:()=>{h(),g()}})]}),(0,i.jsx)("div",{className:"h-full overflow-y-auto",children:e.children})]})]})}},58225:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var i=t(95155),n=t(52596);let r=function(e){let{className:l="",opacity:t="normal",...r}=e;return(0,i.jsx)("div",{className:(0,n.A)("bg-secondary fixed inset-0",{light:"opacity-30",normal:"opacity-50",dark:"opacity-80"}[t],l),...r})}},59480:(e,l,t)=>{"use strict";t.d(l,{default:()=>u});var i=t(95155),n=t(12115),r=t(52596),a=t(35695),o=t(54078),s=t(62185),d=t(87164),c=t(47444);let u=e=>{var l;let[t,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),[v,g]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),p=(0,c.c)(),b=(0,a.usePathname)(),j=(0,a.useSearchParams)(),[y,w]=(0,n.useState)(null!==(l=j.get("ordernumber"))&&void 0!==l?l:""),{title:k,multiLangEditor:N,titleFontColor:F,fontColor:C}=e.fields,A=async e=>{var l,t,i,n,r,a;e.preventDefault(),x(!0),u(null);let o=new FormData(e.currentTarget),s={orderNumber:null===(l=o.get("orderNumber"))||void 0===l?void 0:l.trim(),email:null===(t=o.get("email"))||void 0===t?void 0:t.trim(),name:null===(i=o.get("name"))||void 0===i?void 0:i.trim(),phone:null===(n=o.get("phone"))||void 0===n?void 0:n.trim(),message:null===(r=o.get("message"))||void 0===r?void 0:r.trim(),reason:null===(a=o.get("reason"))||void 0===a?void 0:a.trim()},d=Object.entries(s).filter(e=>{let[l]=e;return"homePageUrl"!==l}).every(e=>{let[,l]=e;return!!l}),c=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email),m=/^[+\d]?(?:[\d-. ]{7,15})$/.test(s.phone);if(!d){u("returnRequestFormBlock.error.required"),x(!1);return}if(!c){u("returnRequestFormBlock.error.invalidEmail"),x(!1);return}if(!m){u("returnRequestFormBlock.error.invalidPhone"),x(!1);return}try{if(!(await fetch("/api/email/returnRequest/".concat(b),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).ok)throw Error("Failed to send return request email");g(!0)}catch(e){console.error("Error sending return request email:",e),u("returnRequestFormBlock.error")}finally{x(!1)}};return v?(0,i.jsxs)("div",{className:"py-10 flex w-full min-w-64 flex-col items-center px-4",children:[(0,i.jsx)("h1",{className:"text-2xl font-semibold text-brand-primary lg:text-3xl",children:p("returnRequestFormBlock.success.title")}),(0,i.jsx)("p",{className:"text-md text-center text-brand-primary-text lg:text-lg",children:p("returnRequestFormBlock.success.message")})]}):(0,i.jsxs)("div",{className:"flex w-full flex-col gap-16 lg:flex-row",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4 lg:w-2/5",children:[(0,i.jsx)("h3",{className:(0,r.A)("mb-0 mt-0 font-title text-3xl",(null==F?void 0:F[0].value)||"text-brand-primary"),children:k}),N&&(0,i.jsx)("div",{className:"w-full break-words [&>*>a:hover]:underline [&>*>a]:text-hyperlink [&>p]:mt-0",dangerouslySetInnerHTML:{__html:(0,d.A)(N)},...C&&{style:{color:C}}})]}),(0,i.jsx)("div",{className:"flex w-full flex-col gap-x-6 gap-y-5 lg:w-3/5",children:(0,i.jsxs)("form",{className:"flex w-full flex-wrap gap-x-6 gap-y-5",onSubmit:A,children:[(0,i.jsx)(o.A,{label:p("returnRequestFormBlock.orderNumber"),type:"text",name:"orderNumber",placeholder:p("returnRequestFormBlock.orderNumber.placeholder"),className:"w-full lg:flex-1",value:y,onChange:e=>w(e.target.value),isRequired:!0}),(0,i.jsx)(o.A,{label:p("returnRequestFormBlock.email"),type:"email",name:"email",placeholder:p("returnRequestFormBlock.email.placeholder"),className:"w-full lg:flex-1",isRequired:!0}),(0,i.jsx)(o.A,{label:p("returnRequestFormBlock.name"),type:"text",name:"name",placeholder:p("returnRequestFormBlock.name.placeholder"),className:"w-full lg:flex-1",isRequired:!0}),(0,i.jsx)(o.A,{label:p("returnRequestFormBlock.phone"),type:"tel",name:"phone",placeholder:p("returnRequestFormBlock.phone.placeholder"),className:"w-full lg:flex-1",isRequired:!0}),(0,i.jsxs)("div",{className:"my-2 flex w-full flex-col gap-y-2 lg:flex-1",children:[(0,i.jsxs)("label",{className:"text-xs font-bold",htmlFor:"reason",children:[p("returnRequestFormBlock.reason")," ",(0,i.jsx)("span",{className:"text-status-error",children:"*"})]}),(0,i.jsxs)("select",{id:"reason",name:"reason",className:(0,r.A)("border-0 px-4 py-3 text-sm font-medium",!h&&"text-gray-500"),required:!0,defaultValue:"",onChange:()=>f(!0),children:[(0,i.jsx)("option",{value:"",disabled:!0,hidden:!0,children:p("returnRequestFormBlock.reason.placeholder")}),(0,i.jsx)("option",{value:"\xc5ngerr\xe4tt",children:p("returnRequestFormBlock.reason.withdrawal")}),(0,i.jsx)("option",{value:"Reklamation",children:p("returnRequestFormBlock.reason.complaint")}),(0,i.jsx)("option",{value:"Retur",children:p("returnRequestFormBlock.reason.return")})]})]}),(0,i.jsx)(o.A,{label:p("returnRequestFormBlock.message"),type:"textarea",
1name:"message",placeholder:p("returnRequestFormBlock.message.placeholder"),className:"h-48 w-full",inputClassName:"min-h-44",isRequired:!0}),t&&(0,i.jsx)("span",{className:"w-full text-sm text-status-error",children:p(t)}),(0,i.jsx)("button",{type:"submit",className:(0,r.A)("tertiary-button px-6 py-3 text-sm font-semibold",m&&"opacity-50"),disabled:m,children:m?(0,i.jsx)(s.A,{className:"!h-4"}):p("returnRequestFormBlock.submit")})]})})]})}},60916:(e,l,t)=>{"use strict";t.d(l,{default:()=>r});var i=t(95155),n=t(87164);let r=function(e){let{fields:l}=e;return(0,i.jsxs)("div",{className:"flex flex-col items-start gap-7 lg:gap-12",children:[(0,i.jsx)("h2",{className:"m-0 text-left text-3xl font-bold text-brand-primary lg:text-4xl",children:null==l?void 0:l.blockTitle}),(0,i.jsx)("div",{className:"text-base font-normal text-brand-primary-text [&>*>a:hover]:underline [&>*>a]:text-hyperlink [&>p]:my-4 [&>ul]:list-disc [&>ul]:pl-4 [&>ul]:leading-6",dangerouslySetInnerHTML:{__html:(0,n.A)(null==l?void 0:l.multiLangEditor)}})]})}},62108:(e,l,t)=>{"use strict";t.d(l,{default:()=>x});var i=t(95155),n=t(12115),r=t(52596),a=t(48166),o=t(49509);let s=o.env.RUNTIME_IMAGE_SERVER_URL||o.env.RUNTIME_LITIUM_SERVER_URL;var d=t(19147),c=t(45819),u=t(25466),m=t(46639);let x=function(e){var l;let{fields:t}=e,{imageServerUrl:o}=(0,n.useContext)(a.WebsiteContext),x=t.smallIcons?"h-16 w-16":"h-20 w-20",v=t.smallIcons?"max-w-16":"max-w-40",g=t.smallIcons?"leading-4":"leading-7",h=t.smallIcons?"text-xs":"text-lg";return(0,i.jsx)("div",{className:"interactive-scrollbar interactive-scrollbar-static-lg",children:(0,i.jsx)("div",{className:"flex w-max min-w-full flex-nowrap items-stretch justify-center gap-2",children:null==t?void 0:null===(l=t.categoryList)||void 0===l?void 0:l.map((e,l)=>{var t,n,a,f,p,b,j,y,w,k,N,F,C,A,B,L,S,I,P;let q=(null==e?void 0:null===(t=e.navigationLink)||void 0===t?void 0:t.url)||null,R=(null==e?void 0:null===(n=e.navigationLink)||void 0===n?void 0:n.text)||"",T=(null==e?void 0:null===(a=e.icon)||void 0===a?void 0:a.item)&&(null==e?void 0:null===(p=e.icon)||void 0===p?void 0:null===(f=p.item)||void 0===f?void 0:f.url)?(P=null==e?void 0:null===(b=e.icon)||void 0===b?void 0:b.item.url)?void 0===s&&o?new URL(P,o).href:new URL(P,s).href:"":(0,c.m)(null==e?void 0:null===(j=e.blockImagePointer)||void 0===j?void 0:j.item,o);return q&&(0,i.jsx)("div",{className:"w-fit min-w-28 flex-none items-center justify-center p-2 md:p-4 lg:min-w-32",children:(0,i.jsx)(d.default,{href:q,className:"text-center hover:opacity-75",children:(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[T?(0,i.jsx)(m.default,{src:T,alt:null!==(L=null==e?void 0:null===(w=e.blockImagePointer)||void 0===w?void 0:null===(y=w.item)||void 0===y?void 0:y.alt)&&void 0!==L?L:"category_image",className:(0,r.A)("mx-auto object-center",(null==e?void 0:e.icon)?"".concat(x," object-contain"):v),width:null!==(S=null==e?void 0:null===(F=e.blockImagePointer)||void 0===F?void 0:null===(N=F.item)||void 0===N?void 0:null===(k=N.dimension)||void 0===k?void 0:k.width)&&void 0!==S?S:0,height:null!==(I=null==e?void 0:null===(B=e.blockImagePointer)||void 0===B?void 0:null===(A=B.item)||void 0===A?void 0:null===(C=A.dimension)||void 0===C?void 0:C.height)&&void 0!==I?I:0}):(0,i.jsx)(u.A,{className:"rounded-img-radius"}),R&&(0,i.jsx)("span",{className:(0,r.A)("mt-2 whitespace-nowrap text-center font-semibold text-brand-primary",g,h,"font-body"),children:R})]})})},"".concat(R,"-").concat(l))})})})}},62152:(e,l,t)=>{"use strict";t.d(l,{default:()=>c});var i=t(95155),n=t(52596),r=t(46639),a=t(74162),o=t(19147),s=t(47444),d=t(25466);let c=function(e){var l,t,c,u,m,x,v,g;let{fields:h}=e,{isFullWidth:f=!1,blockImagePointer:p,blockTitle:b,_description:j,navigationLink:y}=h,w=(0,s.c)();return(0,i.jsx)("div",{className:"flex w-full place-content-center",children:(0,i.jsxs)("div",{className:"relative flex",children:[(null==p?void 0:p.item)?(0,i.jsx)(r.default,{src:p.item,height:null!==(x=null==p?void 0:null===(t=p.item)||void 0===t?void 0:null===(l=t.dimension)||void 0===l?void 0:l.height)&&void 0!==x?x:0,width:null!==(v=null==p?void 0:null===(u=p.item)||void 0===u?void 0:null===(c=u.dimension)||void 0===c?void 0:c.width)&&void 0!==v?v:0,alt:null!==(g=null==p?void 0:null===(m=p.item)||void 0===m?void 0:m.alt)&&void 0!==g?g:"",className:(0,n.A)("h-full w-full object-cover object-center",f?"":"rounded-img-radius")}):(0,i.jsx)(d.A,{className:(0,n.A)(f?"":"rounded-img-radius")}),(0,i.jsx)("div",{className:"relative mx-auto flex max-w-xl text-center lg:max-w-4xl",children:(0,i.jsxs)("div",{className:"relative flex w-full flex-col items-start",children:[(0,i.jsx)(a.E,{style:h.fontColor?{color:h.fontColor}:{},className:"text-text-brand-primary-text mx-auto text-center text-3xl font-bold sm:text-4xl",children:b}),(0,i.jsx)("p",{style:h.fontColor?{color:h.fontColor}:{},className:"mx-auto max-w-2xl whitespace-pre-line text-lg text-brand-light-text lg:leading-8",children:j}),(null==y?void 0:y.url)&&(0,i.jsx)("div",{className:"mx-auto flex items-center justify-center gap-x-6 pt-4 text-center",children:(0,i.jsx)(o.default,{href:y.url,className:"rounded-md bg-brand-primary px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-brand-primary",children:y.text||w("fullWidthBannerBlock.readMore")})})]})})]})})}},64797:(e,l,t)=>{"use strict";t.d(l,{default:()=>m});
1var i=t(95155),n=t(12115),r=t(52596),a=t(50041),o=t(17225),s=t(90189),d=t(48166),c=t(19147),u=t(45819);let m=e=>{var l,t;let{fields:m}=e,{showPriceWithVat:x}=(0,o.c)(),{imageServerUrl:v}=(0,n.useContext)(d.WebsiteContext),g=e=>{let{href:l,children:t}=e;return l?(0,i.jsx)(c.default,{href:l,className:a.J.Banner.Link,children:t}):(0,i.jsx)(n.Fragment,{children:t})},h=null==m?void 0:null===(l=m.oDColumnBlocks)||void 0===l?void 0:l.length,f=e=>{switch(e){case"TOP-LEFT":default:return"row-start-1 col-start-1 col-end-5 text-left justify-start";case"TOP-RIGHT":return"row-start-1 col-start-3 col-end-7 text-right justify-start";case"BOTTOM-LEFT":return"row-start-2 col-start-1 col-end-4 lg:col-end-5 text-left justify-end";case"BOTTOM-RIGHT":return"lg:col-start-3 col-start-3 md:col-start-4 col-end-7 row-start-1 row-end-3 text-right justify-end"}},p=(e,l,t,n)=>e||l?(0,i.jsxs)("div",{className:"z-[1] flex flex-col gap-2",children:[l&&(0,i.jsx)("p",{className:(0,r.A)("m-0 font-title text-xl leading-snug lg:text-3xl",null!=n?n:"text-brand-primary-text"),children:l}),e&&(0,i.jsx)("h2",{className:(0,r.A)("m-0 text-3xl font-bold leading-none lg:text-5xl",null!=t?t:"text-brand-secondary"),children:e})]}):null,b=e=>(0,i.jsx)("div",{className:"block-button inline-flex cursor-pointer items-center justify-between gap-4 px-6 py-3 text-sm font-bold",children:e});return(0,i.jsx)(s.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)("div",{className:(0,r.A)("w-full"),children:(0,i.jsx)("div",{className:(0,r.A)("grid gap-5",1===h?"lg:grid-cols-".concat(h):"lg:grid-cols-2 lg:grid-rows-1"),children:null==m?void 0:null===(t=m.oDColumnBlocks)||void 0===t?void 0:t.map((e,l)=>{var t,n,o,s,d,c,m,h,j,y,w,k,N,F,C;let A=x?e.blockTitleIncVat:e.blockTitleExVat,B=null==e?void 0:null===(n=e.textPlacement)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.value,L="BOTTOM-RIGHT"===B,S=(0,u.m)(e.blockImagePointer.item,v),I=null==e?void 0:e.backgroundOverlay;return(0,i.jsx)("div",{className:a.J.Banner.Column,children:(0,i.jsx)(g,{href:null===(o=e.navigationLink)||void 0===o?void 0:o.url,children:(0,i.jsxs)("div",{className:(0,r.A)(a.J.Banner.BgImage,"group relative aspect-[2/1] h-auto w-full overflow-hidden rounded-img-radius bg-cover bg-center lg:h-auto"),style:{backgroundImage:"url(".concat(S,")")},children:[I&&(0,i.jsx)("div",{className:"absolute inset-0 z-0 rounded-img-radius bg-black bg-opacity-brand-overlay"}),(0,i.jsx)("div",{className:(0,r.A)(a.J.Banner.Contents,"grid h-full w-full grid-cols-6 grid-rows-2 px-4 py-4 md:px-7 md:py-7 lg:px-10 lg:py-10"),children:L?(0,i.jsxs)("div",{className:(0,r.A)(f(B),"flex h-full flex-col items-end gap-2"),children:[p(A,e.blockText,null===(d=e.titleFontColor)||void 0===d?void 0:null===(s=d[0])||void 0===s?void 0:s.value,null===(m=e.textColor)||void 0===m?void 0:null===(c=m[0])||void 0===c?void 0:c.value),(null==e?void 0:null===(h=e.navigationLink)||void 0===h?void 0:h.text)&&(null==e?void 0:null===(j=e.navigationLink)||void 0===j?void 0:j.url)&&b(e.navigationLink.text)]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,r.A)(f(B),"flex flex-col gap-2"),children:p(A,e.blockText,null===(w=e.titleFontColor)||void 0===w?void 0:null===(y=w[0])||void 0===y?void 0:y.value,null===(N=e.textColor)||void 0===N?void 0:null===(k=N[0])||void 0===k?void 0:k.value)}),(null==e?void 0:null===(F=e.navigationLink)||void 0===F?void 0:F.text)&&(null==e?void 0:null===(C=e.navigationLink)||void 0===C?void 0:C.url)&&(0,i.jsx)("div",{className:"col-start-3 col-end-7 row-start-2 grid items-end justify-end md:col-start-4 lg:col-start-5",children:b(e.navigationLink.text)})]})})]})})},l)})})})})}},66316:(e,l,t)=>{"use strict";t.d(l,{O:()=>i});class i{constructor(e){let{text:l="",categoryId:t,includeChildren:i=!0,productListId:n}=e;t&&(this.category={includeChildren:i,categoryId:t}),l&&(this.bool={should:[{content:{value:l,synonymAnalyzer:!0,fuzziness:{length:null,ratio:null,distance:null}}},{name:{value:l,ngram:!0,synonymAnalyzer:!0,boost:20}}]}),n&&(this.productList={productListId:n})}}},69624:(e,l,t)=>{"use strict";t.d(l,{default:()=>c});var i=t(95155),n=t(52596),r=t(87164),a=t(80426),o=t(33576),s=t(19147),d=t(46639);function c(e){var l,t,c,u,m,x,v,g,h,f,p,b,j,y,w,k,N,F,C,A,B,L,S,I,P,q,R,T,E,D,_;let{buttonColor:z,buttonSize:O,hollowButton:Q,isButton:M}=e.fields,V=null===(c=e.fields)||void 0===c?void 0:null===(t=c.blockImagePointer)||void 0===t?void 0:null===(l=t.item)||void 0===l?void 0:l.url,H=null===(u=e.fields)||void 0===u?void 0:u.showImageToRight,U=null===(x=e.fields)||void 0===x?void 0:null===(m=x.navigationLink)||void 0===m?void 0:m.url,W=V?null===(g=e.fields)||void 0===g?void 0:null===(v=g.blockImagePointer)||void 0===v?void 0:v.item:null;return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"flex h-full w-full flex-col items-center lg:flex-row",children:[(0,i.jsx)("div",{style:{color:null===(h=e.fields)||void 0===h?void 0:h.fontColor},className:(0,n.A)("flex w-full",null===(p=e.fields)||void 0===p?void 0:null===(f=p.backgroundColor)||void 0===f?void 0:f[0].value,{"w-full px-4 lg:px-20":e.isBlockInBlock,"w-full px-4 lg:w-1/2 lg:px-20":(null!==(P=null===(b=e.children)||void 0===b?void 0:b.length)&&void 0!==P?P:0)>0&&!e.isBlockInBlock}),children:(0,i.jsxs)("div",{className:(0,n.A)("w-full",V?(0,n.A)("flex flex-col gap-6 lg:items-stretch lg:gap-10",{"lg:flex-row":H,"lg:flex-row-reverse":!H}):"flex flex-col gap-6"),children:[(0,i.jsxs)("div",{className:(0,n.A)("flex min-w-0 flex-col",{"lg:justify-center":V&&!U,"lg:flex-1":V,"w-full":!V}),children:[(0,i.jsx)("h2",{className:(0,n.A)("m-0 text-4xl font-bold",null===(j=e.fields.titleFontColor)||void 0===j?void 0:j[0].value),
1children:null===(y=e.fields)||void 0===y?void 0:y.title}),(0,i.jsx)("div",{className:(0,n.A)("flex flex-col gap-4 text-base font-normal [&>*>a:hover]:underline","[&>*>a]:text-hyperlink [&>*]:m-0 [&>p>img]:w-fit [&>ul]:list-disc [&>ul]:pl-6 [&>ul]:leading-6","w-full [&>p]:w-full"),dangerouslySetInnerHTML:{__html:(0,r.A)(null===(w=e.fields)||void 0===w?void 0:w.multiLangEditor)}}),(null===(k=e.fields)||void 0===k?void 0:k.navigationLink)&&e.fields.navigationLink.url&&(0,i.jsx)(s.default,{href:e.fields.navigationLink.url,className:(0,n.A)("text-left font-semibold",(0,a.WS)({buttonColor:z,buttonSize:O,hollowButton:Q,isButton:M}),{"mt-auto":V}),children:null===(N=e.fields)||void 0===N?void 0:N.navigationLink.text})]}),V&&W&&(0,i.jsx)("div",{className:"w-full content-center text-center lg:w-[45%]",children:(0,i.jsx)(d.default,{src:W,height:null!==(q=null==W?void 0:null===(F=W.dimension)||void 0===F?void 0:F.width)&&void 0!==q?q:700,width:null!==(R=null==W?void 0:null===(C=W.dimension)||void 0===C?void 0:C.width)&&void 0!==R?R:700,sizes:"(max-width: ".concat(null==W?void 0:null===(A=W.dimension)||void 0===A?void 0:A.width,"px) ").concat(null==W?void 0:null===(B=W.dimension)||void 0===B?void 0:B.height,"px, 100vw"),alt:null!==(E=null!==(T=null==W?void 0:W.alt)&&void 0!==T?T:null==W?void 0:W.filename)&&void 0!==E?E:"",className:"m-auto"})})]})}),(0,i.jsx)(o.default,{className:(0,n.A)(null===(S=e.fields)||void 0===S?void 0:null===(L=S.backgroundColor)||void 0===L?void 0:L[0].value,"mt-6 w-full overflow-hidden lg:mt-0 lg:w-1/2",{"lg:w-1/2":(null!==(D=null===(I=e.children)||void 0===I?void 0:I.length)&&void 0!==D?D:0)>0}),blocks:null!==(_=e.children)&&void 0!==_?_:[]})]})})}},73010:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});var i=t(95155);let n=e=>{let{...l}=e;return(0,i.jsx)("svg",{x:"0px",y:"0px",viewBox:"0 0 17 20",className:"inline-block h-6 w-6 cursor-pointer",...l,children:(0,i.jsx)("g",{transform:"matrix(1 0 0 1 -338 -14 )",children:(0,i.jsx)("path",{d:"M 10.317189610389608 10.02075723830735 L 16.62909090909091 17.661469933184854 C 17.128493506493506 18.266369710467703 17.047864935064936 19.164810690423163 16.448316883116885 19.66859688195991 C 16.184088311688313 19.890601336302897 15.86325194805195 19.99919821826281 15.544446753246756 19.99919821826281 C 15.139449350649352 19.99919821826281 14.737719480519484 19.824498886414254 14.458654545454548 19.4860579064588 L 8.477922077922077 12.209354120267262 L 2.4992207792207792 19.447661469933188 C 2.2198025974025968 19.78592427616927 1.818337662337662 19.960801781737196 1.413428571428571 19.960801781737196 C 1.094667532467532 19.960801781737196 0.7740519480519477 19.852204899777284 0.5095584415584412 19.630200445434298 C -0.09007792207792242 19.12641425389755 -0.17088311688311722 18.22797327394209 0.32878441558441523 17.62307349665924 L 6.638654545454545 9.983875278396436 L 0.3277246753246753 2.383073496659243 C -0.1718103896103896 1.7781737193763922 -0.0910935064935065 0.8797327394209354 0.5086753246753246 0.37594654788418697 C 1.1074285714285714 -0.12917594654788428 1.998051948051948 -0.04792873051224947 2.4983376623376623 0.5583073496659242 L 8.477922077922077 7.795100222717149 L 14.456623376623376 0.5567928730512249 C 14.955584415584415 -0.04810690423162575 15.84664935064935 -0.13006681514476623 16.446285714285715 0.3744320712694877 C 17.04592207792208 0.8782182628062362 17.126727272727273 1.7766592427616925 16.62705974025974 2.381559020044544 L 10.317189610389608 10.02075723830735 Z ",fillRule:"nonzero",transform:"matrix(1 0 0 1 338 14 )"})})})}},73201:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>s});var i=t(95155),n=t(12115),r=t(74162),a=t(19147),o=t(290);function s(e){let l=(0,n.useContext)(o.S).setVisible,t=()=>{l(!1)},{header:s,links:d}=e;return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("div",{className:"mb-3 text-lg",children:(null==s?void 0:s.url)?(0,i.jsx)(a.default,{href:s.url,children:(0,i.jsx)("span",{onClick:t,children:null==s?void 0:s.text})}):(0,i.jsx)(r.E,{children:null==s?void 0:s.text})}),d&&d.filter(e=>!!(null==e?void 0:e.text)&&!!(null==e?void 0:e.url)).map((e,l)=>(0,i.jsx)("div",{className:"my-2 text-sm group-[.slide-navigation]:hidden",children:(0,i.jsx)(a.default,{href:e.url||"",children:(0,i.jsx)("span",{onClick:t,children:e.text})})},"".concat(e.text,"-").concat(l)))]})}},73712:(e,l,t)=>{"use strict";t.d(l,{default:()=>n});var i=t(95155);function n(e){var l;let{fields:t}=e,n=(null===(l=t.emptyBlockSize)||void 0===l?void 0:l[0].value)||"medium";return(0,i.jsx)("div",{className:{small:"h-space-s-mobile lg:h-space-s",medium:"h-space-m-mobile lg:h-space-m",large:"h-space-l-mobile lg:h-space-l"}[n],children:" "})}},80426:(e,l,t)=>{"use strict";t.d(l,{$6:()=>n,WS:()=>r,gK:()=>i});let i=function(e){var l;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bg-ui-background",i=null==e?void 0:null===(l=e[0])||void 0===l?void 0:l.value;return i&&""!==i?i:t},n=(e,l,t)=>"".concat(l||""," ").concat(e?"w-full":"base-container"," ").concat(t&&e?"lg:px-8 px-[4vw]":""),r=e=>{var l,t;let{buttonColor:i,buttonSize:n,hollowButton:r,isButton:a}=e,o=(null==i?void 0:null===(l=i[0])||void 0===l?void 0:l.value)||"brand-primary",s=null==n?void 0:null===(t=n[0])||void 0===t?void 0:t.value;if(a){let e=r?"text-".concat(o):"text-white",l=r?"":"bg-".concat(o),t=r?"border border-".concat(o):"";return"px-6 py-3 ".concat(e," ").concat(l," ").concat(s||"text-sm"," ").concat(t," ").concat("rounded-button-radius").trim()}{let e="text-".concat(o);return"".concat(e," ").concat(s||"text-base").trim()}}},83368:(e,l,t)=>{"use strict";t.d(l,{default:()=>o});var i=t(95155),n=t(12115),r=t(19147),a=t(290);let o=function(e){var l;let t=(0,n.useContext)(a.S).setVisible;return(null===(l=e.link)||void 0===l?void 0:l.url)?(0,i.jsx)(r.default,{href:e.link.url,className:"text-center",onClick:()=>{t(!1)},children:e.children}):(0,i.jsx)(n.Fragment,{children:e.children})}},87036:(e,l,t)=>{"use strict";t.d(l,{default:()=>x});var i=t(95155),n=t(12115),r=t(52596),a=t(35695),o=t(34477);let s=(0,o.createServerReference)("40061833f198abee8ce857073dcbe71df39e7aa530",o.callServer,void 0,o.findSourceMapURL,"getReceiverEmail");var d=t(87164),c=t(47444),u=t(54078),m=t(62185);let x=e=>
1{let[l,t]=(0,n.useState)(),[o,u]=(0,n.useState)(!1),[x,f]=(0,n.useState)(!1),p=(0,c.c)(),b=(0,a.usePathname)(),{title:j,multiLangEditor:y,titleFontColor:w,formFields:k,isFullWidth:N,fontColor:F}=e.fields,C=async l=>{l.preventDefault(),u(!0),t(null);let i=new FormData(l.currentTarget),n=i.get("firstName"),r=i.get("lastName"),a=i.get("email"),o=i.get("phone"),d=i.get("organization"),c=i.get("message"),m=i.get("organizationNumber"),x=i.get("companyName"),v=i.get("industry"),g=i.get("employeeCount"),j=i.get("billingAddressStreetBox"),y=i.get("billingAddressPostcodeCity"),w=i.get("invoiceReference"),N=i.get("shippingAddressStreet"),F=i.get("shippingAddressPostcodeCity"),C=i.get("mailingAddressStreetBox"),A=i.get("mailingAddressPostcodeCity"),B=i.get("contactFullName"),L=i.get("contactEmail"),S=i.get("contactPhone"),I=i.get("pdfInvoiceEmail"),P=i.get("membershipOrganizationAndNumber"),q=null==k?void 0:k.every(e=>!!e),R=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a),T=/^[+\d]?(?:[\d-. ]{7,15})$/.test(o);if(!q){t(p("requestQuoteFormBlock.fillRequiredFields")),u(!1);return}if(h("email",k)&&!R){t(p("requestQuoteFormBlock.invalidEmail")),u(!1);return}if(h("phone",k)&&!T){t(p("details.phone.error")),u(!1);return}let E=e.fields.formReceiverEmail;if(!E)try{let e={slug:b.split("/").filter(Boolean)};E=await s(e)}catch(e){console.error("Failed to fetch receiver email:",e),t("requestQuoteFormBlock.error"),u(!1);return}if(!E){t("requestQuoteFormBlock.error"),u(!1);return}let D={firstName:n,lastName:r,email:a,phone:o,organization:d,message:c,emailReceiver:E,organizationNumber:m,companyName:x,industry:v,employeeCount:g,billingAddressStreetBox:j,billingAddressPostcodeCity:y,invoiceReference:w,shippingAddressStreet:N,shippingAddressPostcodeCity:F,mailingAddressStreetBox:C,mailingAddressPostcodeCity:A,contactFullName:B,contactEmail:L,contactPhone:S,pdfInvoiceEmail:I,membershipOrganizationAndNumber:P};try{if(!(await fetch("/api/email/contactForm/".concat(b),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})).ok)throw Error("Failed to send email");f(!0)}catch(e){console.error("Error sending email:",e),t("requestQuoteFormBlock.error")}finally{u(!1)}};return x?(0,i.jsxs)("div",{className:"my-10 flex w-full min-w-64 flex-col items-center px-4",children:[(0,i.jsx)("h1",{className:"text-2xl font-semibold text-brand-primary lg:text-3xl",children:p("contactFormBlock.success.title")}),(0,i.jsx)("p",{className:"text-md text-center text-brand-primary-text lg:text-lg",children:p("contactFormBlock.success.message")})]}):(0,i.jsxs)("div",{className:(0,r.A)("flex w-full flex-col gap-16 lg:flex-row"),children:[(0,i.jsxs)("div",{className:"flex w-full flex-col gap-4 lg:w-2/5",children:[(0,i.jsx)("h3",{className:(0,r.A)("mb-0 mt-0 font-title text-3xl",(null==w?void 0:w[0].value)||"text-brand-primary"),children:j}),y&&(0,i.jsx)("div",{className:"w-full break-words [&>*>a:hover]:underline [&>*>a]:text-hyperlink [&>p]:mt-0",dangerouslySetInnerHTML:{__html:(0,d.A)(y)},...F&&{style:{color:F}}})]}),(0,i.jsx)("div",{className:"flex w-full flex-col gap-x-6 gap-y-5 lg:w-3/5",children:(0,i.jsxs)("form",{className:"flex w-full flex-wrap gap-x-6 gap-y-5",onSubmit:C,children:[(0,i.jsx)(v,{formFields:k,names:["firstName","lastName"]}),(0,i.jsx)(v,{formFields:k,names:["email","phone"],types:["email","tel"]}),(0,i.jsx)(g,{name:"organization",formFields:k,className:"w-full"}),(0,i.jsx)(v,{formFields:k,names:["organizationNumber","companyName"]}),(0,i.jsx)(v,{formFields:k,names:["industry","employeeCount"]}),(0,i.jsx)(v,{formFields:k,names:["billingAddressStreetBox","billingAddressPostcodeCity"]}),(0,i.jsx)(v,{formFields:k,names:["shippingAddressStreet","shippingAddressPostcodeCity"]}),(0,i.jsx)(v,{formFields:k,names:["mailingAddressStreetBox","mailingAddressPostcodeCity"]}),(0,i.jsx)(v,{formFields:k,names:["contactFullName","contactEmail"]}),(0,i.jsx)(g,{name:"contactPhone",formFields:k,className:"w-full"}),(0,i.jsx)(g,{name:"invoiceReference",formFields:k,className:"w-full"}),(0,i.jsx)(g,{name:"pdfInvoiceEmail",formFields:k,className:"w-full"}),(0,i.jsx)(g,{name:"membershipOrganizationAndNumber",formFields:k,className:"w-full"}),(0,i.jsx)(g,{name:"message",type:"textarea",formFields:k,className:"h-48 w-full",inputClassName:"min-h-44"}),l&&(0,i.jsx)("span",{className:"w-full text-sm text-status-error",children:p(l)}),(0,i.jsx)("button",{type:"submit",className:(0,r.A)("tertiary-button px-6 py-3 text-sm font-semibold",o&&"opacity-50"),disabled:o,children:o?(0,i.jsx)(m.A,{className:"!h-4"}):p("contactFormBlock.submit")})]})})]})},v=e=>
1{let{formFields:l,names:t,types:n=["text","text"]}=e,r=(0,c.c)(),a=t.map((e,t)=>({name:e,type:n[t],on:h(e,l),index:t})).filter(e=>e.on);if(0===a.length)return null;if(1===a.length){let{name:e,type:t}=a[0];return(0,i.jsx)(g,{name:e,formFields:l,type:t,className:"w-full"})}return(0,i.jsx)("div",{className:"flex w-full flex-wrap gap-x-6 lg:flex-nowrap",children:t.map((e,t)=>h(e,l)&&(0,i.jsx)(u.A,{label:r("contactFormBlock.".concat(e)),type:n[t],name:e,placeholder:r("contactFormBlock.".concat(e,".placeholder")),className:"flex-1",isRequired:!0},e))})},g=e=>{let{name:l,formFields:t,type:n="text",className:r,readOnly:a,inputClassName:o}=e,s=(0,c.c)();return h(l,t)&&(0,i.jsx)(u.A,{label:s("contactFormBlock.".concat(l)),type:n,name:l,placeholder:s("contactFormBlock.".concat(l,".placeholder")),className:r,isRequired:"message"!==l,readOnly:a,inputClassName:o})},h=(e,l)=>{let t=null==l?void 0:l.map(e=>e.value);return null==t?void 0:t.includes(e)}},87164:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var i=t(75915),n=t.n(i);let r={ADD_TAGS:["iframe"],ADD_ATTR:["target","allow","allowfullscreen","frameborder","scrolling"]};function a(e,l){return e?n().sanitize(e,{...r,...l&&{ALLOWED_TAGS:l}}):""}n().addHook("afterSanitizeAttributes",e=>{1===e.nodeType&&"A"===e.tagName&&"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener noreferrer")})},91053:(e,l,t)=>{"use strict";t.d(l,{ODSplitHeroBlock:()=>h});var i=t(95155),n=t(12115),r=t(52596),a=t(50041),o=t(90189),s=t(87164),d=t(7144),c=t(80426);function u(e){return String(Math.max(0,e)).padStart(2,"0")}let m=(0,n.memo)(e=>{let{endDate:l,onExpire:t}=e,[r,a]=(0,n.useState)(()=>Date.now()),o=(0,n.useRef)(!1),s=(0,n.useRef)(null);(0,n.useEffect)(()=>(s.current=setInterval(()=>{a(Date.now())},1e3),()=>{null!==s.current&&clearInterval(s.current)}),[]);let d=Math.max(0,(function(e){return e instanceof Date?e:new Date(e)})(l).getTime()-r),c=Math.floor(d/1e3),m=Math.floor(c/86400),v=Math.floor(c%86400/3600),g=Math.floor(c%3600/60),h=d<=0;return(0,n.useEffect)(()=>{h&&!o.current&&(o.current=!0,null==t||t()),!h&&o.current&&(o.current=!1)},[h,t]),(0,i.jsxs)("div",{className:"inline-flex items-center gap-3",children:[(0,i.jsx)(x,{value:h?"00":u(m),label:"Dagar"}),(0,i.jsx)(x,{value:h?"00":u(v),label:"Timmar"}),(0,i.jsx)(x,{value:h?"00":u(g),label:"Minuter"}),(0,i.jsx)(x,{value:h?"00":u(c%60),label:"Sekunder"})]})}),x=(0,n.memo)(e=>{let{value:l,label:t}=e;return(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[(0,i.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-md bg-neutral-900 text-lg font-bold leading-none text-white shadow-sm",children:l}),(0,i.jsx)("div",{className:"mt-2 text-[11px] leading-none text-neutral-500",children:t})]})});x.displayName="Tile";var v=t(19147),g=t(46639);let h=e=>{var l,t,u,x;let{fieldGroups:h}=e,[f,p]=(0,n.useState)(!1),b=(0,d.ec)(h,{forceGeneral:f}),{multiLangEditor:j,fontColor:y,title:w,backgroundColor:k,textAreaBackgroundColor:N,showImageToRight:F=!1,navigationLink:C,blockImagePointer:A}=b,B=(0,c.gK)(N,"bg-block-background"),L=(0,n.useCallback)(()=>{p(!0)},[]);return(0,i.jsx)(o.TrackingLocationContextProvider,{value:{enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsx)(e=>{let{children:l}=e;return(null==C?void 0:C.url)?(0,i.jsx)(v.default,{href:C.url,className:a.J.Banner.Link,children:l}):(0,i.jsx)(n.Fragment,{children:l})},{children:(0,i.jsx)("div",{className:(0,r.A)("group w-full overflow-hidden rounded",(0,c.gK)(k)),children:(0,i.jsxs)("div",{className:(0,r.A)("flex flex-col lg:flex-row",F&&"flex-col-reverse lg:flex-row-reverse"),children:[(0,i.jsx)("div",{className:(0,r.A)(a.J.Banner.ImageContainer,"relative aspect-[2/1] w-full lg:w-3/5"),children:(null==A?void 0:A.item)&&(0,i.jsx)(g.default,{src:A.item,alt:null!==(x=null!==(u=null==A?void 0:null===(l=A.item)||void 0===l?void 0:l.alt)&&void 0!==u?u:null==A?void 0:null===(t=A.item)||void 0===t?void 0:t.filename)&&void 0!==x?x:"",fill:!0,className:(0,r.A)(a.J.Banner.Image,"object-contain"),priority:!0})}),(0,i.jsx)("div",{className:(0,r.A)(a.J.Banner.Contents,"box-border flex w-full flex-col justify-center lg:w-2/5",B),children:(0,i.jsxs)("div",{className:"flex flex-col justify-center gap-5 px-[30px] py-[40px] lg:px-[60px] lg:py-[0px]",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[w&&(0,i.jsx)("h2",{className:(0,r.A)("m-0 text-3xl font-bold leading-8 md:leading-8 lg:text-[min(3rem,3vw)] xl:leading-[50px]",y||"text-brand-primary-text"),children:w}),j&&(0,i.jsx)("div",{className:(0,r.A)("text-base lg:text-lg lg:leading-6 [&>*>a:hover]:underline [&>*>a]:text-hyperlink [&>p]:m-0",y||"text-brand-primary-text"),dangerouslySetInnerHTML:{__html:(0,s.A)(j)}}),b.isTimeLimitedActive&&b.endTimerDate&&(0,i.jsx)(m,{endDate:b.endTimerDate,onExpire:L})]}),(null==C?void 0:C.url)&&(null==C?void 0:C.text)&&(0,i.jsx)("div",{className:"justify-left flex w-full",children:(0,i.jsx)("div",{className:"group-hover:bg-brand-tertiary-hover block-button inline-block rounded-button-radius px-6 py-3 text-sm font-bold group-hover:text-white",children:C.text})})]})})]})})})})}},91702:(e,l,t)=>{"use strict";t.d(l,{S:()=>i});let i={productList:{sizes:"(min-width: 1440px) 306px, (min-width: 1040px) calc(20vw + 22px), (min-width: 640px) calc(33.42vw - 31px), calc(50vw - 20px)"},lightboxImage:{thumbnail:{sizes:"(min-width: 1024px) 25vw, (min-width: 640px) 20vw, 33vw"},large:{sizes:"(min-width: 640px) 50vw, 100vw"}},banners:{1:{sizes:"(min-width: 1420px) 1314px, 94vw"},2:{sizes:"(min-width: 1440px) 642px, (min-width: 1040px) calc(40vw + 74px), calc(98.61vw - 16px)"},3:{sizes:"(min-width: 1440px) 418px, (min-width: 1040px) calc(26.58vw + 41px), calc(98.61vw - 16px)"},4:{sizes:"(min-width: 1440px) 306px, (min-width: 1040px) calc(40vw + 74px), calc(98.61vw - 16px)"}}}},92256:(e,l,t)=>{"use strict";t.d(l,{default:()=>b});var i=t(95155),n=t(12115),r=t(52596),a=t(62185),o=t(34519),s=t(50041),d=t(78629),c=t(90189),u=t(68768),m=t(48166),x=t(10879),v=t(1483),g=t(61181),h=t(25548),f=t(24297),p=t(85422);let b=function(e){var l,t,b;let{fields:j,systemId:y}=e;j.productsLinkListFlat=(null!==(t=j.productsLinkList)&&void 0!==t?t:[]).map(e=>e.item);let w=Array.isArray(j.productsLinkListFlat)&&j.productsLinkListFlat.length>
10||!!j.helloRetailRecomsId,[k,N]=(0,n.useState)([]),[F,C]=(0,n.useState)(!1),[A,B]=(0,n.useState)(!w),{user:L,selectedOrganization:S}=(0,n.useContext)(u.R),{websiteId:I}=(0,n.useContext)(m.WebsiteContext),{channelSystemId:P}=(0,p.l)(I),{noData:q,initialized:R,agreedAssortmentData:T,assortmentLimitationData:E,refreshingAssortment:D,showAgreedAssortment:_}=(0,d.S)(),z=(0,n.useMemo)(()=>(0,h.io)({user:L,selectedOrganization:S}),[null==S?void 0:null===(l=S.organization)||void 0===l?void 0:l.id]);return((0,n.useEffect)(()=>{if(!R)return;if(!w){B(!0);return}let e=q?[]:T.length&&_.value?T:E.length?E:[];if(j.helloRetailRecomsId){(async()=>{let l=j.helloRetailRecomsId||"";if(!l){N((0,f.sQ)(j.productsLinkListFlat,e)),B(!0);return}let t=await (0,g.Ol)(l,P,z);e.length>0&&(0,v.e6)(t,e),N(t.length?t:[]),C(t.length>0),B(!0)})();return}if(!(null==S?void 0:S.organization)||q){N(j.productsLinkListFlat),B(!0);return}N((0,f.sQ)(j.productsLinkListFlat,e)),B(!0)},[E,T,A,_,R,q,z]),j&&y)?(0,i.jsx)(c.TrackingLocationContextProvider,{value:{location:F?x.u.Recommendation:x.u.Other,enableCampaignSourceTracking:!0,campaignSourceLocation:"banner"},children:(0,i.jsxs)("div",{"data-block-id":y,className:(0,r.A)(s.J.ProductListingBlock,"relative",{"min-h-[480px]":!A||D}),children:[(0,i.jsx)(o.A,{productsLinkList:k,showVariants:null===(b=j.showVariants)||void 0===b||b,initialSlidesPerView:5,title:j.blockTitle,systemId:y,className:"h-full w-full",referrerName:(null==j?void 0:j.blockTitle)||(null==j?void 0:j._name)||"product-listing-block",referrerId:"product-listing-block",usingHelloRetailRecoms:F}),(!A||D)&&(0,i.jsx)("div",{className:"absolute inset-0 z-10 flex min-h-[480px] items-center justify-center bg-white/30 backdrop-blur-sm",children:(0,i.jsx)(a.A,{className:"h-14 w-14"})})]})}):(0,i.jsx)(n.Fragment,{})}},93224:(e,l,t)=>{"use strict";t.d(l,{ODFreightSearchBlock:()=>x});var i=t(95155),n=t(12115),r=t(29509),a=t(35695),o=t(34477);let s=(0,o.createServerReference)("60f0c668dd9b0005ce3ac5886c3626571c10c38a68",o.callServer,void 0,o.findSourceMapURL,"getFreightSearchUrl");var d=t(87164),c=t(19147),u=t(47444);let m={"not-found":"freightSearch.error.notfound","not-authenticated":"freightSearch.error.fetch","missing-config":"freightSearch.error.fetch","backend-error":"freightSearch.error.fetch","missing-input":"freightSearch.error.fetch"},x=e=>{var l,t,o,x,v;let{fields:g}=e,[h,f]=(0,n.useState)(""),p=(0,a.useRouter)(),b=(0,u.c)(),[j,y,w]=(0,n.useActionState)(s,{url:null});(0,n.useEffect)(()=>{if(!(null==j?void 0:j.url))return;let e=new URL(j.url,window.location.origin);e.origin===window.location.origin?p.push(e.pathname+e.search+e.hash):window.open(e.toString(),"_blank","noopener,noreferrer")},[p,null==j?void 0:j.url]);let k=(null==j?void 0:j.error)?b(null!==(l=m[j.error])&&void 0!==l?l:"freightSearch.error.fetch"):null;return(0,i.jsx)("div",{className:"w-full border-y border-gray-200 bg-white shadow-sm",children:(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsxs)("div",{className:"flex min-h-[300px] flex-col md:flex-row",children:[(0,i.jsx)("div",{className:"flex flex-1 flex-col justify-center border-b border-gray-200 bg-[#F8F9FA] p-8 md:border-b-0 md:border-r md:p-16",children:(0,i.jsxs)("div",{className:"space-y-3",children:[g.oDFreightEditorTitle&&(0,i.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-gray-900",children:g.oDFreightEditorTitle}),g.multiLangEditor&&(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,d.A)(g.multiLangEditor)}})]})}),(0,i.jsx)("div",{className:"flex flex-1 flex-col justify-center bg-white p-8 md:p-16",children:(0,i.jsx)("div",{className:"mr-auto w-full max-w-md md:ml-12",children:(0,i.jsxs)("form",{action:y,className:"space-y-6",children:[(g.oDFreightTagline||g.oDFreightTitle)&&(0,i.jsxs)("div",{className:"space-y-1",children:[g.oDFreightTagline&&(0,i.jsx)("span",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-[#CC0000]",children:g.oDFreightTagline}),g.oDFreightTitle&&(0,i.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-gray-900",children:g.oDFreightTitle})]}),(w&&g.oDFreightLoadingText||g.oDFreightButtonText)&&(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)("input",{type:"text",id:"freight-search",name:"freight-search",placeholder:null!==(t=g.oDFreightPlaceholder)&&void 0!==t?t:void 0,className:"w-full rounded border border-gray-300 bg-white px-4 py-4 text-gray-800 placeholder-gray-400 outline-none transition-all focus:border-blue-600 focus:ring-1 focus:ring-blue-600",onChange:e=>f(e.target.value),value:h}),(0,i.jsx)("button",{type:"submit",disabled:w||!h.trim(),className:"flex w-full items-center justify-center rounded bg-brand-tertiary px-8 py-4 text-sm font-bold uppercase tracking-widest text-white shadow-sm transition-all hover:bg-brand-tertiary-hover disabled:bg-gray-200 disabled:text-gray-400 md:w-max",children:w&&g.oDFreightLoadingText||g.oDFreightButtonText})]}),(null==j?void 0:j.deliveries)&&j.deliveries.length>0||(null==j?void 0:j.pendingDeliveryNumbers)&&j.pendingDeliveryNumbers.length>0?(0,i.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,i.jsx)("div",{className:"text-sm font-bold text-gray-900",children:b("freightSearch.multipleDeliveriesFound")}),(0,i.jsx)("div",{className:"flex flex-col gap-2",children:(null!==(o=j.deliveries)&&void 0!==o?o:[]).map((e,l)=>(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsxs)(c.default,{className:"group flex items-center gap-2 bg-white py-2 text-sm font-bold text-brand-tertiary",href:e.url,target:"_blank",children:[(0,i.jsx)("span",{className:"underline decoration-transparent underline-offset-4 transition-all group-hover:decoration-brand-tertiary",children:e.deliveryNumber}),(0,i.jsx)(r.A,{className:"h-4 w-4 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})},e.deliveryNumber))}),(null!==(x=j.pendingDeliveryNumbers)&&void 0!==x?x:[]).length>0&&(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:b("freightSearch.pendingTrackingInfo")}),(0,i.jsx)("div",{className:"flex flex-col gap-1",children:(null!==(v=j.pendingDeliveryNumbers)&&void 0!==v?v:[]).map(e=>(0,i.jsx)("p",{className:"my-2 text-sm font-bold text-gray-900",children:e},"pending-".concat(e)))})]})]}):null,k&&(0,i.jsx)("div",{className:"min-h-[20px]",children:(0,i.jsxs)("p",{className:"flex items-center gap-2 text-sm font-bold text-[#CC0000]",children:[(0,i.jsx)("span",{className:"h-4 w-1 bg-[#CC0000]"})," ",k]})})]})})})]})})})}},96575:(e,l,t)=>{"use strict";t.d(l,{default:()=>d});var i=t(95155),n=t(52596),r=t(67269),a=t(27677),o=t(38783);t(43583);var s=t(19758);let d=function(e){let{items:l,title:t,className:d}=e,c={breakpoints:{320:{slidesPerView:2.4,spaceBetween:10},768:{slidesPerView:3.6,spaceBetween:20},1024:{slidesPerView:4.6,spaceBetween:50},1280:{slidesPerView:4.6,spaceBetween:70}},slidesPerView:4.6,scrollbar:{draggable:!0},virtual:!0,modules:[r.AV,r.Ze]};return(null==(l=l.filter(e=>void 0!==e.url))?void 0:l.length)?(0,i.jsxs)("div",{className:(0,n.A)("my-5",d),children:[t&&(0,i.jsx)(o.Heading2,{className:"mb-4 text-h2",children:t}),(0,i.jsx)(a.RC,{...c,className:"[&>.swiper-wrapper:has(+.swiper-scrollbar-lock)]:pb-0 [&>.swiper-wrapper]:pb-4",children:l.map((e,l)=>(0,i.jsx)(a.qr,{children:(0,i.jsx)(s.A,{...e,showBuyButton:!1})},e.articleNumber))})]}):null}},97688:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});var i=t(95155);let n=function(e){let{...l}=e;return(0,i.jsx)("svg",{x:"0px",y:"0px",viewBox:"131.58 298.692 367.2 183.6",fill:"#E0E0E0",stroke:"#E0E0E0",strokeWidth:"10",...l,children:(0,i.jsx)("polygon",{points:"141.372,298.692 315.18,467.604 489.6,298.692 498.78,304.2 315.18,482.292 131.58,304.2 "})})}}}]);
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.