!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ef712b40-7f20-46ad-906d-dae8fb16741f",e._sentryDebugIdIdentifier="sentry-dbid-ef712b40-7f20-46ad-906d-dae8fb16741f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[168],{32961:function(e,t,i){"use strict";i.d(t,{Z:function(){return ev}});var n=i(85893),o=i(67294),r=i(11752),l=i.n(r),d=i(11163);let a=(0,o.createContext)({cart:{},order:{}});function c(){let e=(0,o.useContext)(a);if(!e)throw Error("useCheckoutReceiptContext must be used within the CheckoutReceipt component");return e}var u=i(41686),s=i(47533),m=i(87536),p=i(37599);let v=u.ZP.div.withConfig({componentId:"sc-5546e8ae-0"})(e=>{let{theme:{SPACINGS:t,BORDER_RADIUS:i,FONT_SIZE:n,LINE_HEIGHT:o}}=e;return(0,u.iv)(["background-color:#fff;padding:"," ",";border:1px solid #000;border-radius:",";margin-top:",";> button{display:flex;text-align:left;width:100%;font-size:",";line-height:",";}.add-promotion-heading{flex:1;}"],t.SM,t.MD,i.SM,t.MD,n.MD,o.LG)}),h=(0,u.ZP)(p.E.div).withConfig({componentId:"sc-5546e8ae-1"})(()=>(0,u.iv)(["overflow:hidden;"]));var f=i(28732),g=i(62662),b=i(14481),x=i(1037);async function y(e){let{promotionCode:t,locale:i=g.al,contextToken:n}=e;try{let e=await x.b.post("/cart/add-promotion-code",{promotionCode:t,locale:i,contextToken:n},{headers:{"Content-Type":"application/json"}});return await e.data}catch(e){return(0,b.Z)(e,"Error while adding promotion code to cart"),null}}var Z=i(6748),j=i(92102),P=i(8362),C=i(92618),w=i(40706),_=i(38403),I=i(21964),R=i(98397),S=i(94362),T=i(36830),k=i(44664),q=i(32791),z=i(88365),A=i(46292),D=i(27291),L=i(58357);let N=u.ZP.div.withConfig({componentId:"sc-1a6abab0-0"})(e=>{let{theme:{COLOR:t,SPACINGS:i}}=e;return(0,u.iv)(["background-color:",";padding:",";"],t.dust,i.XL)}),E=(0,u.ZP)(D.Z).withConfig({componentId:"sc-1a6abab0-1"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,u.iv)(["display:flex;margin-bottom:",";justify-content:space-between;"],t.MD)}),O=(0,u.ZP)(A.Z).withConfig({componentId:"sc-1a6abab0-2"})(e=>{let{theme:{TYPOGRAPHY:t,COLOR:i}}=e;return(0,u.iv)(["",";text-decoration:underline;color:",";"],t.BODY,i.black)}),M=(0,u.ZP)(L.Z).withConfig({componentId:"sc-1a6abab0-3"})(e=>{let{theme:{TYPOGRAPHY:t,SPACINGS:i}}=e;return(0,u.iv)(["",";margin-bottom:",";display:flex;justify-content:space-between;"],t.BODY_SMALL,i.XS)}),B=(0,u.ZP)(L.Z).withConfig({componentId:"sc-1a6abab0-4"})(e=>{let{theme:{TYPOGRAPHY:t,SPACINGS:i,COLOR:n}}=e;return(0,u.iv)(["",";text-transform:uppercase;color:",";margin-bottom:",";display:flex;justify-content:space-between;"],t.BODY_SMALL,n.green,i.XS)}),X=(0,u.ZP)(M).withConfig({componentId:"sc-1a6abab0-5"})(e=>{let{theme:t}=e;return(0,u.iv)(["",";"],t.BODY)}),V=(0,u.ZP)(function(e){var t,i;let{className:r}=e,l=(0,T.Z)(),d=(0,q.Z)().useIsProcessingPayment(),a=null!==(i=(0,S.Z)().config.contextToken)&&void 0!==i?i:"",{cart:c,setCart:u}=(0,I.Z)(),p=(0,R.Z)(),[g,b]=(0,o.useState)(!0),x=(0,z.q5)(),A=(0,m.cI)({mode:"onTouched",resolver:(0,s.X)(x),defaultValues:{promotionCode:""}}),{handleSubmit:D}=A,[L,N]=(0,o.useState)(),E=(0,o.useCallback)(D(async e=>{var t;N(null);let i=await y({promotionCode:e.promotionCode,locale:p,contextToken:a});(null==i?void 0:null===(t=i.lineItems)||void 0===t?void 0:t.some(e=>"promotion"===e.type&&!!e.id))?u(i):N(l("form.validation.invalidPromotionCode"))}),[D,l]),O=(0,o.useMemo)(()=>({initial:"collapsed",animate:g?"collapsed":"open",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{ease:[.45,0,.55,1],duration:.4}}),[g]),M=null==c?void 0:null===(t=c.lineItems)||void 0===t?void 0:t.find(e=>"promotion"===e.type&&!!e.productId),B=(0,f.s)({experimentName:"cartPageUi",label:"click on add promotion code",uniqueEvent:"cartPageUiDiscountClick"});return c?(0,n.jsxs)(v,{className:r,children:[(0,n.jsxs)("button",{type:"button",disabled:d,onClick:()=>{b(e=>!e),B()},children:[(0,n.jsx)("span",{className:"add-promotion-heading",children:l("checkout.receipt.addPromotionCode.heading")}),(0,n.jsx)(w.Z,{name:g?"caret-down":"caret-up"})]}),(0,n.jsxs)(h,{...O,children:[M&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.P,{children:null==M?void 0:M.name}),(0,n.jsx)("button",{type:"button",onClick:async()=>{if(!M)return;let e=await (0,Z.Z)({type:"remove",productId:M.id,locale:p,contextToken:a});e&&u(e)},children:l("checkout.receipt.addPromotionCode.remove")})]}),!M&&(0,n.jsx)(m.RV,{...A,children:(0,n.jsxs)(k.ZE,{onSubmit:E,method:"POST",children:[(0,n.jsx)(j.Z,{name:"promotionCode",type:"text",title:l("form.fields.promotionCode.label"),placeholder:l("form.fields.promotionCode.label"),required:!0}),(0,n.jsx)(C.Z,{isSecondary:!0,type:"submit",label:l("checkout.receipt.addPromotionCode.submit")}),L&&(0,n.jsx)(P.BD,{children:L})]})})]})]}):null}).withConfig({componentId:"sc-1a6abab0-6"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,u.iv)(["margin-top:",";"],t.MD)}),U=u.ZP.hr.withConfig({componentId:"sc-1a6abab0-7"})(e=>{let{theme:{COLOR:t,SPACINGS:i}}=e;return(0,u.iv)(["background-color:",";height:1px;margin:"," 0;"],t.grey03,i.MD)}),F=u.ZP.b.withConfig({componentId:"sc-1a6abab0-8"})(e=>{let{theme:{COLOR:t}}=e;return(0,u.iv)(["color:",";"],t.green)}),Y=(0,u.ZP)(C.Z).withConfig({componentId:"sc-1a6abab0-9"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,u.iv)(["margin-top:",";"],t.MD)}),K=u.ZP.input.withConfig({componentId:"sc-1a6abab0-10"})(e=>{let{theme:{SPACINGS:t,COLOR:i,FONT_SIZE:n,BORDER_RADIUS:o,FONT:r}}=e;return(0,u.iv)(["color:",";border:1px solid ",";font-size:",";font-family:",";padding:"," ",";outline:none;height:4.2rem;box-sizing:border-box;border-radius:",";width:100%;display:block;margin-top:",";"],i.black,i.grey05,n.MD,r.FONT_SECONDARY,t.MD,t.MD,o.SM,t.MD)}),H=u.ZP.div.withConfig({componentId:"sc-1a6abab0-11"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,u.iv)(["margin-top:",";"],t.MD)}),$=u.ZP.div.withConfig({componentId:"sc-1a6abab0-12"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,u.iv)(["margin-top:",";"],t.MD)}),G=(0,u.ZP)(L.Z).withConfig({componentId:"sc-1a6abab0-13"})(e=>{let{theme:{COLOR:t,TYPOGRAPHY:i,SPACINGS:n}}=e;return(0,u.iv)(["",";color:",";margin-top:",";margin-bottom:",";"],i.BODY_SMALL_BOLD,t.green,n.MD,n.XXS)}),Q=(0,u.ZP)(L.Z).withConfig({componentId:"sc-1a6abab0-14"})(e=>{let{theme:{COLOR:t,TYPOGRAPHY:i}}=e;return(0,u.iv)(["",";color:",";"],i.SUBTEXT,t.grey05)});var W=i(63598),J=i(35882),ee=i(14484),et=i(89272),ei=i(49484),en=i(24103),eo=i(91750),er=i(22107),el=i(46909),ed=i(79848),ea=i(31061),ec=i(71425),eu=i(2540),es=i(126),em=i(5365);let{publicRuntimeConfig:ep}=l()();function ev(e){let{children:t,cart:i,order:o}=e;return(0,n.jsx)(N,{children:(0,n.jsx)(a.Provider,{value:{cart:i,order:o},children:t})})}ev.Title=function(){let e=(0,T.Z)();return(0,n.jsxs)(E,{type:"HEADING_3",children:[e("checkout.receipt.heading"),(0,n.jsx)(O,{link:{href:ed.H1.CHECKOUT_CART},children:e("checkout.receipt.edit")})]})},ev.ProductTotal=function(){var e;let t=(0,T.Z)(),i=(0,eu.Z)(),o=(0,ec.Z)(),r=!!(null==i?void 0:null===(e=i.customer)||void 0===e?void 0:e.company),l=(0,ea.Z)(),{order:d,cart:a}=c(),u=(null==d?void 0:d.lineItems)||(null==a?void 0:a.lineItems),s=null==u?void 0:u.filter(e=>e.type&&["product","bundle","mixedPaint"].includes(e.type)),m=0,p=0;null==s||s.forEach(e=>{if("bundle"===e.type){var t;null===(t=e.bundleProducts)||void 0===t||t.forEach(e=>{"bundle_discount"!==e.name&&(m+=e.lineItemQuantity)})}else p+=e.lineItemQuantity});let v=!r&&o?null==a?void 0:a.price.subTotalPrice.gross:null==a?void 0:a.price.subTotalPrice.net,h=m+p;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(M,{children:[(0,n.jsx)("span",{children:t("checkout.receipt.productCount",{count:h})}),(0,n.jsx)("b",{children:l(v,{showCurrencySymbol:!0})})]}),(0,n.jsx)(U,{})]})},ev.ReceiptDetails=function(){let{order:e,cart:t}=c(),i=(null==e?void 0:e.lineItems)||(null==t?void 0:t.lineItems),o=null==i?void 0:i.filter(e=>e.type&&["product","bundle","mixedPaint"].includes(e.type));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(et.Z,{lineItems:o}),(0,n.jsx)(U,{})]})},ev.SubTotal=function(){var e,t,i,o,r,l,d,a,u,s,m,p,v;let h=(0,T.Z)(),f=(0,ea.Z)(),g=(0,eu.Z)(),b=(0,ec.Z)(),x=!(null==g?void 0:null===(e=g.customer)||void 0===e?void 0:e.company)&&b,{order:y,cart:Z}=c(),j=(null==y?void 0:y.lineItems)||(null==Z?void 0:Z.lineItems),P=null==j?void 0:j.filter(e=>e.type&&["promotion"].includes(e.type)),C=x?null==Z?void 0:Z.price.subTotalPrice.gross:null==Z?void 0:Z.price.subTotalPrice.net,w=x?null==y?void 0:null===(i=y.price)||void 0===i?void 0:null===(t=i.shippingPrice)||void 0===t?void 0:t.gross:null==y?void 0:null===(r=y.price)||void 0===r?void 0:null===(o=r.shippingPrice)||void 0===o?void 0:o.net,_=x?null!==(p=null==Z?void 0:null===(d=Z.price)||void 0===d?void 0:null===(l=d.shippingPrice)||void 0===l?void 0:l.gross)&&void 0!==p?p:0:null!==(v=null==Z?void 0:null===(u=Z.price)||void 0===u?void 0:null===(a=u.shippingPrice)||void 0===a?void 0:a.net)&&void 0!==v?v:0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(X,{children:[(0,n.jsx)("span",{children:(0,n.jsx)("b",{children:h("checkout.receipt.subtotal")})}),(0,n.jsx)("span",{children:(0,n.jsx)("b",{children:f(C,{showCurrencySymbol:!0})})})]}),null==P?void 0:P.map(e=>{let t=b?e.totalPrice.gross:e.totalPrice.net;return(0,n.jsxs)(B,{children:[e.name,(0,n.jsxs)(F,{children:["- ",f(Math.abs(t),{showCurrencySymbol:!0})]})]},"checkout-receipt-promotion-".concat(e.id))}),(null==Z?void 0:null===(m=Z.delivery)||void 0===m?void 0:null===(s=m.method)||void 0===s?void 0:s.name)&&(0,n.jsxs)(M,{children:[Z.delivery.method.name,(0,n.jsx)("b",{children:f(w||_,{showCurrencySymbol:!0})})]}),(0,n.jsx)(U,{})]})},ev.Total=function(){var e,t,i,o,r,l,d,a,u;let s=(0,T.Z)(),m=(0,ea.Z)(),p=(0,eu.Z)(),v=(0,ec.Z)(),h=!!(null==p?void 0:null===(e=p.customer)||void 0===e?void 0:e.company),f=!h&&v,g=(0,el.V)(ep.brand).zeroVatApplies,{order:b,cart:x}=c(),y=f?null==b?void 0:null===(i=b.price)||void 0===i?void 0:null===(t=i.totalPrice)||void 0===t?void 0:t.gross:null==b?void 0:null===(r=b.price)||void 0===r?void 0:null===(o=r.totalPrice)||void 0===o?void 0:o.net,Z=f?null==x?void 0:x.price.totalPrice.gross:null==x?void 0:x.price.totalPrice.net,j=f?null==b?void 0:null===(d=b.price)||void 0===d?void 0:null===(l=d.totalPrice)||void 0===l?void 0:l.net:null==b?void 0:null===(u=b.price)||void 0===u?void 0:null===(a=u.totalPrice)||void 0===a?void 0:a.gross,P=f?null==x?void 0:x.price.totalPrice.net:null==x?void 0:x.price.totalPrice.gross,C=j||P;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(X,{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:s("checkout.receipt.total")})," (",s(f?"checkout.receipt.taxIncluded":"checkout.receipt.taxExcluded"),")"]}),(0,n.jsx)("b",{children:m(h&&g?C:y||Z,{showCurrencySymbol:!0,showZeroValue:!0})})]}),!h&&(0,n.jsxs)(M,{color:em.r.grey05,type:"SUBTEXT",children:[(0,n.jsx)("span",{children:s(f?"checkout.receipt.taxExcluded":"checkout.receipt.taxIncluded")}),(0,n.jsx)("span",{children:m(C,{showCurrencySymbol:!0,showZeroValue:!0})})]})]})},ev.DiscountSummary=function(){let e=(0,T.Z)(),t=(0,ea.Z)(),i=(0,ec.Z)(),{order:o,cart:r}=c(),l=(null==o?void 0:o.lineItems)||(null==r?void 0:r.lineItems),d=(null==l?void 0:l.filter(e=>e.type&&["promotion"].includes(e.type)))||[],a=i?null==d?void 0:d.reduce((e,t)=>e+((null==t?void 0:t.totalPrice.gross)||0),0):null==d?void 0:d.reduce((e,t)=>e+((null==t?void 0:t.totalPrice.net)||0),0),u=i?(null==r?void 0:r.price.discountPrice.gross)||0:(null==r?void 0:r.price.discountPrice.net)||0,s=a+u;return s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(G,{children:"".concat(e("checkout.receipt.discount.summary.title")," ").concat(t(Math.abs(s),{showCurrencySymbol:!0}))}),!!u&&!!a&&(0,n.jsx)(Q,{children:"".concat(e("checkout.receipt.discount.subtotal.title")," ").concat(t(Math.abs(u),{showCurrencySymbol:!0}))}),!!u&&!!a&&(0,n.jsx)(Q,{children:"".concat(e("checkout.receipt.discount.code.title")," ").concat(t(Math.abs(a),{showCurrencySymbol:!0}))})]}):null},ev.CtaButton=function(){var e,t,i;let r=(0,T.Z)(),l=(0,d.useRouter)(),a=(0,eu.Z)(),{useFeatureToggles:u}=(0,es.Z)(),s=u(),[m,p]=(0,o.useState)(null),{cart:v}=c(),h=null!==(i=null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.checkoutV2)&&void 0!==i&&i,g=(0,f.s)({experimentName:"cartPageUi",label:"click on checkout button"});(0,ee.w)({cart:null!=v?v:null,toCheckoutOrigin:m});let b=(0,o.useCallback)(async()=>{var e;g(),p(J.$.CART.id),(null===(e=a.customer)||void 0===e?void 0:e.id)||!h?await l.push(ed.H1.CHECKOUT_DELIVERY_PAYMENT):await l.push(ed.H1.CHECKOUT_PERSONAL_DATA)},[l,null===(t=a.customer)||void 0===t?void 0:t.id,g,h]);return(0,n.jsx)(Y,{isStretched:!0,dotColor:em.r.grey02,className:"to-delivery-payment",onClick:b,children:r("checkout.cart.cta")})},ev.PaymentMethods=function(){let{displayExperiment:e}=(0,W.a)("cartPageUi");return(0,n.jsx)(H,{children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ei.Z,{}),(0,n.jsxs)(en.Z,{children:[(0,n.jsx)(en.Z.Image,{}),(0,n.jsx)(en.Z.Message,{})]})]}):(0,n.jsx)(ei.Z,{})})},ev.ReferenceNumber=function(e){var t;let{referenceNumber:i,onReferenceNumberChange:o}=e,r=(0,T.Z)(),l=(0,eu.Z)();return(null==l?void 0:null===(t=l.customer)||void 0===t?void 0:t.company)?(0,n.jsx)(K,{name:"company.reference",type:"text",title:r("checkout.business.reference.number"),placeholder:r("checkout.business.reference.number"),required:!1,value:i,onChange:e=>{o&&o(e.target.value)}}):null},ev.PromotionCode=function(){return(0,n.jsx)(V,{})},ev.UspList=function(){let e=(0,eo.L)({type:"cart"});return(0,n.jsx)($,{children:(0,n.jsx)(er.Z,{uspList:e})})},ev.ReviewProvider=function(){return(0,n.jsx)($,{children:(0,n.jsxs)(en.Z,{children:[(0,n.jsx)(en.Z.Image,{}),(0,n.jsx)(en.Z.Message,{})]})})}},89272:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(85893),o=i(41686);let r=o.ZP.ul.withConfig({componentId:"sc-fd6b0155-0"})(e=>{let{theme:{LAYOUT:t}}=e;return(0,o.iv)(["margin-top:","px;"],t.LAYOUT_GRID_GAP.MOBILE)}),l=o.ZP.p.withConfig({componentId:"sc-3d4a9444-0"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,o.iv)(["flex-grow:1;margin-right:",";"],t.SM)}),d=o.ZP.li.withConfig({componentId:"sc-3d4a9444-1"})(e=>{let{theme:{TYPOGRAPHY:t,SPACINGS:i}}=e;return(0,o.iv)(["",";position:relative;display:flex;flex-direction:row;margin-bottom:",";justify-content:space-between;align-items:center;"],t.BODY_SMALL,i.MD)}),a=o.ZP.span.withConfig({componentId:"sc-3d4a9444-2"})(e=>{let{theme:{COLOR:t,SPACINGS:i,FONT_WEIGHT:n}}=e;return(0,o.iv)(["display:flex;justify-content:center;align-items:center;min-width:2.4rem;width:2.4rem;height:2.4rem;border-radius:100%;border:1px solid ",";font-weight:",";margin-right:",";"],t.black,n.BOLD,i.SM)}),c=o.ZP.div.withConfig({componentId:"sc-3d4a9444-3"})(()=>(0,o.iv)(["display:flex;flex-direction:column;width:100%;"]));var u=i(66413),s=i(31061),m=i(71425),p=i(2540),v=i(36830),h=function(e){var t;let{lineItems:i}=e,o=(0,s.Z)(),r=(0,m.Z)(),h=(0,p.Z)(),f=!(null==h?void 0:null===(t=h.customer)||void 0===t?void 0:t.company)&&r,g=["product","shipping_costs","huebbundling","promotion","mixedPaint"],b=(0,v.Z)();return null==i?void 0:i.map(e=>{var t,i;let{type:r,name:s,id:m,lineItemQuantity:p}=e,{gross:v,net:h}=e.totalPrice,x="promotion"===r&&"bundle_discount"===s,y="promotion"===r&&"bundle_discount"!==s;return r&&g.includes(r)?(0,n.jsxs)(d,{className:"receipt-details-item",children:[x?(0,n.jsx)(l,{children:b("bundles.discountLine")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a,{children:y?1:p}),(0,n.jsxs)(c,{children:[(0,n.jsx)(l,{children:s}),e.mixedPaint&&(0,n.jsx)(u.X,{colorValue:null!==(t=e.mixedPaint.colorHexCode)&&void 0!==t?t:"",colorName:null!==(i=e.mixedPaint.name)&&void 0!==i?i:"",isCompact:!0})]})]}),(0,n.jsx)("b",{children:o(f?v:h,{showCurrencySymbol:!0})})]},"receipt-details-item-id-".concat(m)):null})},f=function(e){let{lineItems:t}=e,i=null==t?void 0:t.flatMap(e=>"bundle"===e.type&&e.bundleProducts?e.bundleProducts:e).sort((e,t)=>"bundle_discount"===e.name?1:"bundle_discount"===t.name?-1:0).filter(Boolean);return(0,n.jsx)(r,{children:i?(0,n.jsx)(h,{lineItems:i}):null})}},35462:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(85893),o=i(41686),r=i(58357);let l=o.ZP.section.withConfig({componentId:"sc-8f994fb8-0"})(e=>{let{theme:{LAYOUT:t,COLOR:i,SPACINGS:n},$isAlternative:r,$hasNoMarginTop:l,$hasSmallMarginTop:d,$hasNoMarginBottom:a,$hasSmallMarginBottom:c,$escapeContainer:u}=e;return(0,o.iv)(["position:relative;margin-top:",";width:",";margin-left:",";left:",";"," "," "," "," ",""],n.XXL,u?"100vw":"100%",u?"-50vw":"0",u?"50%":"0",l&&(0,o.iv)(["margin-top:0;@media screen and (min-width:","px){margin-top:0;}"],t.LAYOUT_BREAKPOINT.TABLET_LANDSCAPE),d&&(0,o.iv)(["margin-top:",";@media screen and (min-width:","px){margin-top:",";}"],n.L,t.LAYOUT_BREAKPOINT.TABLET_LANDSCAPE,n.XXL),a&&(0,o.iv)(["margin-bottom:0;@media screen and (min-width:","px){margin-bottom:0;}"],t.LAYOUT_BREAKPOINT.TABLET_LANDSCAPE),c&&(0,o.iv)(["@media screen and (min-width:","px){margin-bottom:",";}"],t.LAYOUT_BREAKPOINT.TABLET_LANDSCAPE,n.XXL),r&&(0,o.iv)(["background-color:",";"," ",""],i.grey01,!u&&(0,o.iv)(["padding:"," 0;margin:0;"],n.XXL),!u&&(0,o.iv)(["@media screen and (min-width:","px){padding:"," 0;margin:0;}"],t.LAYOUT_BREAKPOINT.TABLET_LANDSCAPE,n.XXXXL)))}),d=o.ZP.div.withConfig({componentId:"sc-8f994fb8-1"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,o.iv)(["margin-bottom:",";"],t.L)}),a=(0,o.ZP)(r.Z).withConfig({componentId:"sc-8f994fb8-2"})(e=>{let{theme:{SPACINGS:t}}=e;return(0,o.iv)(["margin-top:",";"],t.SM)});var c=i(64635),u=i(27291);function s(e){let{title:t,description:i,children:o,isAlternative:r,isPromotion:s,hasNoMarginTop:m,hasSmallMarginTop:p,hasNoMarginBottom:v,hasSmallMarginBottom:h,escapeContainer:f,className:g}=e;return(0,n.jsxs)(l,{$escapeContainer:f,$hasNoMarginBottom:v,$hasSmallMarginBottom:h,$hasNoMarginTop:m,$hasSmallMarginTop:p,$isAlternative:r,$isPromotion:s,className:g,children:[(t||i)&&(0,n.jsx)(c.W2,{children:(0,n.jsx)(c.X2,{children:(0,n.jsx)(c.sg,{columns:{TABLET_LANDSCAPE:10,DESKTOP:8},children:(0,n.jsxs)(d,{children:[t&&(0,n.jsx)(u.Z,{type:"HEADING_1",children:t}),i&&(0,n.jsx)(a,{children:i})]})})})}),o]})}},70590:function(e,t,i){"use strict";i.d(t,{dB:function(){return r},vQ:function(){return a}});var n=i(1604);let o=n.z.object({carrier:n.z.string().optional().nullable(),service_point_id:n.z.string().optional().nullable()}),r=n.z.object({id:n.z.string(),customerId:n.z.string().optional(),countryId:n.z.string(),firstName:n.z.string(),lastName:n.z.string(),zipcode:n.z.string(),city:n.z.string(),company:n.z.string().optional().nullable(),street:n.z.string(),phoneNumber:n.z.string().optional().nullable(),additionalAddressLine1:n.z.string().optional().nullable(),additionalAddressLine2:n.z.string().optional().nullable(),customFields:o.nullable()}),l=n.z.object({firstName:n.z.string(),lastName:n.z.string()}),d=n.z.object({id:n.z.string(),countryId:n.z.string(),zipcode:n.z.string(),city:n.z.string(),company:n.z.string().nullable(),street:n.z.string(),phoneNumber:n.z.string().nullable(),additionalAddressLine1:n.z.string().nullable(),additionalAddressLine2:n.z.string().nullable(),addressType:n.z.enum(["customer","carrier"]),servicePointId:n.z.string().nullable()}),a=n.z.object({customer:l,addressInfo:d})},98190:function(e,t,i){"use strict";i.d(t,{X:function(){return n}});let n=e=>{var t,i,n,o,r,l,d,a,c,u,s,m,p,v;if(!e)return null;let h=(null===(t=e.customFields)||void 0===t?void 0:t.carrier)?"carrier":"customer";return{addressInfo:{id:null!==(n=e.id)&&void 0!==n?n:"",countryId:null!==(o=e.countryId)&&void 0!==o?o:"",zipcode:null!==(r=e.zipcode)&&void 0!==r?r:"",city:null!==(l=e.city)&&void 0!==l?l:"",company:null!==(d=e.company)&&void 0!==d?d:null,street:null!==(a=e.street)&&void 0!==a?a:"",phoneNumber:null!==(c=e.phoneNumber)&&void 0!==c?c:null,additionalAddressLine1:null!==(u=e.additionalAddressLine1)&&void 0!==u?u:null,additionalAddressLine2:null!==(s=e.additionalAddressLine2)&&void 0!==s?s:null,addressType:h,servicePointId:null!==(m=null===(i=e.customFields)||void 0===i?void 0:i.service_point_id)&&void 0!==m?m:null},customer:{firstName:null!==(p=e.firstName)&&void 0!==p?p:"",lastName:null!==(v=e.lastName)&&void 0!==v?v:""}}}},32791:function(e,t,i){"use strict";var n=i(67294),o=i(92533),r=i(80694),l=i(63176);t.Z=()=>{var e;let t=null===(e=(0,n.useContext)(l.x))||void 0===e?void 0:e["checkout-form-state"],i=(0,r.Z)().store;return{...(0,o.E)(t||i)}}},77536:function(e,t,i){"use strict";var n=i(85893),o=i(11752),r=i.n(o),l=i(9008),d=i.n(l),a=i(11163),c=i(78462),u=i(81913),s=i(46909),m=i(36830),p=i(24645);t.Z=function(e){let{page:{seoTitle:t,seoDescription:i}={},children:o=null}=e,{publicRuntimeConfig:l}=r()(),{locale:v,locales:h,asPath:f}=(0,a.useRouter)(),g=(0,m.Z)(),b=(0,s.V)(l.brand),x=!l.genesys.v2;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d(),{children:[(0,n.jsx)("title",{children:t||g("default.page.title")}),(0,n.jsx)("meta",{name:"description",content:i}),(0,n.jsx)("meta",{name:"robots",content:"index, follow"}),(0,n.jsx)("link",{rel:"icon",href:b.favicon.ico,sizes:"any"}),b.favicon.svg&&(0,n.jsx)("link",{rel:"icon",href:b.favicon.svg,type:"image/svg+xml"}),h&&h.filter(e=>e!==v).map(e=>{let t=(0,p.n)({languageCode:e,path:f});return(0,n.jsx)("link",{rel:"alternate",hrefLang:e,href:t},"default-link-".concat(e))})]}),(0,n.jsx)(c.PQ,{children:o}),x&&(0,n.jsx)(u.Z,{})]})}},88365:function(e,t,i){"use strict";i.d(t,{rI:function(){return h},q5:function(){return b},T:function(){return m},ko:function(){return s},r6:function(){return p},tk:function(){return v},Ky:function(){return u},I2:function(){return c},xk:function(){return g},NR:function(){return f}});var n=i(16310),o=i(86896),r=i(62662),l=i(36830);let d=e=>/^(?=(?:\D*\d){10})[\d\s+-]+$/.test(e);function a(){return{customerDataSchema:{...function(){let e=(0,l.Z)(),t=(0,n.Z_)().email(e("form.validation.emailValid")).matches(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,e("form.validation.emailValid")).required(e("form.validation.emailRequired")),i=(0,n.Z_)().required(e("form.validation.firstNameRequired")),o=(0,n.Z_)().required(e("form.validation.lastNameRequired")),r=(0,n.Z_)().required(e("form.validation.phoneNumberRequired")).test("Valid phone number",e("form.validation.phoneNumberRequired"),e=>!e||d(e)),a=(0,n.Z_)().oneOf(["private","business","government"]).required(),c=(0,n.Z_)().required(e("form.validation.passwordRequired"));return{createPassword:(0,n.Z_)().required(e("form.validation.passwordRequired")).min(8,e("form.validation.passwordMinLength")),emailAddress:t,firstName:i,lastName:o,phoneNumber:r,fixamiType:a,password:c,passwordConfirm:(0,n.Z_)().oneOf([(0,n.iH)("password")],e("form.validation.passwordMatch")).required(e("form.validation.passwordRequired")),salutationId:(0,n.Z_)().required()}}()},addressSchema:{...function(){let e=(0,l.Z)(),t=(0,o.Z)(),i=(0,r.oK)(t.locale).country.streetNrIsRequired,d=(0,n.Z_)(),a=(0,n.Z_)().required(e("form.validation.streetRequired")).test("Check for @",e("form.validation.street.invalid"),e=>{if(!e.match(/(?:@)/))return!!e}),c=(0,n.Z_)(),u=(0,n.Z_)().required(e("form.validation.zipcodeRequired")).test("Validate zipcode valid region",e("form.validation.zipcodeRequired"),e=>e&&(0,r.X_)(t.locale)?(0,r.oK)(t.locale).country.zipcodeValidRegionCheck(e):!!e).test("Validate zipcode format",e("form.validation.zipcodeRequired"),e=>e&&(0,r.X_)(t.locale)?(0,r.oK)(t.locale).country.zipcodeCheck(e):!!e).test("Check for @",e("form.validation.zipcode.invalid"),e=>{if(!e.match(/(?:@)/))return!!e});return{countryId:d,street:a,streetAddition:c,zipcode:u,city:(0,n.Z_)().required(e("form.validation.cityRequired")).test("Check for @",e("form.validation.city.invalid"),e=>{if(!e.match(/(?:@)/))return!!e}),streetNr:i?(0,n.Rx)().default(void 0).typeError(e("form.validation.streetNrRequired")).test("streetNr",e("form.validation.streetNrRequired"),e=>{if(!e)return!1;let t=Math.floor(Number(e));return t===e&&t>=0}):(0,n.Rx)(),streetNrAddition:(0,n.Z_)()}}()},companySchema:{...function(){let e=(0,l.Z)(),t=(0,o.Z)(),i=(0,n.Z_)().test("fixamiType",e("form.validation.company.nameRequired"),(e,t)=>{var i,n;return(null==t?void 0:null===(n=t.from)||void 0===n?void 0:null===(i=n[1])||void 0===i?void 0:i.value.fixamiType)!=="business"||!!e});return{name:i,invoiceEmail:(0,n.Z_)().email(e("form.validation.emailValid")),vatId:(0,n.Z_)().test("fixamiType",e("form.validation.company.vatIdRequired"),(e,t)=>{var i,n;return(null==t?void 0:null===(n=t.from)||void 0===n?void 0:null===(i=n[1])||void 0===i?void 0:i.value.fixamiType)!=="business"||!!e}).test("vatIdIncorrect",e("form.validation.company.vatIdRequired"),(e,i)=>{var n,o;return(null==i?void 0:null===(o=i.from)||void 0===o?void 0:null===(n=o[1])||void 0===n?void 0:n.value.fixamiType)!=="business"||((0,r.X_)(t.locale)?!!e&&(0,r.oK)(t.locale).country.vatIdCheck(e):!!e)}),reference:(0,n.Z_)()}}()},governmentSchema:{...function(){let e=(0,l.Z)();return{name:(0,n.Z_)().test("fixamiType",e("form.validation.government.nameRequired"),(e,t)=>{var i,n,o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:null===(n=o[1])||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.fixamiType)!=="government"||!!e}),invoiceEmail:(0,n.Z_)().email(e("form.validation.emailValid")),reference:(0,n.Z_)()}}()},contactFormSchema:{...function(){let e=(0,l.Z)();return{subject:(0,n.Z_)().required(e("form.validation.subjectRequired")).notOneOf(["default"],e("form.validation.subjectRequired")),orderNumber:(0,n.Z_)(),question:(0,n.Z_)().required(e("form.validation.questionRequired")).max(500,e("help.contact.form.length"))}}()},checkoutSchema:{...function(){let e=(0,l.Z)();return{promotionCode:(0,n.Z_)().required(e("form.validation.promotionCodeRequired"))}}()}}}function c(){let{customerDataSchema:{emailAddress:e,password:t}}=a();return(0,n.Ry)({emailAddress:e,password:t}).required()}function u(){let{customerDataSchema:{emailAddress:e}}=a();return(0,n.Ry)({emailAddress:e}).required()}function s(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{customerDataSchema:{emailAddress:t,createPassword:i,passwordConfirm:o,salutationId:r,firstName:l,lastName:d,phoneNumber:c,fixamiType:u},addressSchema:s,companySchema:m,governmentSchema:p}=a();return(0,n.Ry)({emailAddress:t,password:e?i:(0,n.Z_)(),passwordConfirm:e?o:(0,n.Z_)(),salutationId:r,address:(0,n.Ry)({...s}),alternateShippingAddress:(0,n.Ry)({...s,firstName:l,lastName:d}).notRequired().default(void 0),firstName:l,lastName:d,phoneNumber:c,fixamiType:u,company:(0,n.Ry)({...m}).notRequired().default(void 0),government:(0,n.Ry)({...p}).notRequired().default(void 0),newsletter:(0,n.O7)().default(!1).notRequired(),alternateShippingAddressCheckbox:(0,n.O7)()}).required()}function m(){let{customerDataSchema:{password:e,createPassword:t,passwordConfirm:i}}=a();return(0,n.Ry)({oldPassword:e,password:t,passwordConfirm:i}).required()}function p(){let{customerDataSchema:{firstName:e,lastName:t,emailAddress:i,phoneNumber:o},contactFormSchema:{subject:r,orderNumber:l,question:d}}=a();return(0,n.Ry)({subject:r,orderNumber:l,firstName:e,lastName:t,emailAddress:i,phoneNumber:o,question:d}).required()}function v(){let{customerDataSchema:{emailAddress:e,firstName:t,salutationId:i,lastName:o,phoneNumber:r,fixamiType:l},addressSchema:d,companySchema:c,governmentSchema:u}=a();return(0,n.Ry)({emailAddress:e,firstName:t,salutationId:i,lastName:o,address:(0,n.Ry)({...d}),alternateShippingAddress:(0,n.Ry)({...d,firstName:t,lastName:o}).notRequired().default(void 0),phoneNumber:r,fixamiType:l,newsletter:(0,n.O7)().default(!1).notRequired(),company:(0,n.Ry)({...c}).notRequired().default(void 0),government:(0,n.Ry)({...u}).notRequired().default(void 0)}).required()}function h(){let{customerDataSchema:{firstName:e,lastName:t,salutationId:i},addressSchema:o}=a();return(0,n.Ry)({firstName:e,lastName:t,address:(0,n.Ry)({...o}),salutationId:i}).required()}function f(){let{customerDataSchema:{emailAddress:e}}=a();return(0,n.Ry)({emailAddress:e}).required()}function g(){let{customerDataSchema:{createPassword:e,passwordConfirm:t}}=a();return(0,n.Ry)({password:e,passwordConfirm:t}).required()}function b(){let{checkoutSchema:{promotionCode:e}}=a();return(0,n.Ry)({promotionCode:e}).required()}},92703:function(e,t,i){"use strict";var n=i(50414);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,i,o,r,l){if(l!==n){var d=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},45697:function(e,t,i){e.exports=i(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);