1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{2013:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return i(8908)}])},8908:function(e,r,i){"use strict";i.r(r),i.d(r,{__N_SSP:function(){return K},default:function(){return V}});var n=i(5893),t=i(7294),l=i(9008),s=i.n(l),o=i(2558),d=i(5119),a=i(2283),c=i(8794),m=i(8130),u=i(9469),x=i(9521),v=i(4321),h=i(919);let p=u.O9["grey-3"],b=x.default.div.withConfig({componentId:"sc-b6544dc9-0"})(["display:flex;flex:1;flex-direction:column;padding:",";margin-bottom:",";border:1px "," solid;border-color:",";transition:border-color 0.2s;cursor:pointer;&:hover{border-color:",";}"],u.bA.px(2),u.bA.px(1),u.O9["grey-1"],e=>e.active&&p,p),j=async e=>({values:e.deliveryOptionId?e:{},errors:e.deliveryOptionId?{}:{deliveryOptionId:{type:"required"}}}),f=e=>{var r,i,l,s;let{handleSubmit:m,register:x,formState:p,setValue:f}=(0,a.cI)({shouldUnregister:!0,mode:"onChange",resolver:j}),y=(0,v.M)(),g=(0,o.nt)("checkout",["nextCtaText"]),C=(0,o.nt)("cart",["servicePoint"]),[k,T]=(0,t.useState)(""),{isValid:I}=p,{cart:P}=(0,o.jD)(),N=(null==P?void 0:null===(r=P.items)||void 0===r?void 0:r.length)===0||!I;return(0,n.jsxs)(d.kC,{flex:1,flexDirection:"column",as:"form",onSubmit:m(r=>{var i,n;let t=null===(i=e.deliveryOptions)||void 0===i?void 0:i.find(e=>e.id===r.deliveryOptionId),l=null==t?void 0:null===(n=t.servicePoints)||void 0===n?void 0:n.find(e=>e.id===r.servicePointId);y.setSelectedFreight({deliveryOption:t,servicePoint:l}),y.setPaymentInput(e=>({...e,deliveryOptionId:r.deliveryOptionId,servicePointId:r.servicePointId})),y.goToNextStep()}),w:1,alignItems:"center",children:[e.loading?(0,n.jsx)(c.s_,{mt:0,pt:0,alignItems:"center",children:(0,n.jsx)(d.$j,{size:4,strokeColor:u.O9["grey-3"]})}):(null!==(s=null===(i=e.deliveryOptions)||void 0===i?void 0:i.length)&&void 0!==s?s:0)>0&&(0,n.jsx)(c.s_,{mt:0,pt:0,children:null===(l=e.deliveryOptions)||void 0===l?void 0:l.map(e=>{let r=k===e.id;return(0,n.jsxs)(b,{onClick:()=>{y.setSelectedFreight({deliveryOption:e}),f("deliveryOptionId",e.id,{shouldValidate:!0}),T(e.id)},active:r,children:[(0,n.jsxs)(d.kC,{w:1,children:[(0,n.jsx)(d.kC,{mr:2,mt:.5,children:(0,n.jsx)(d.Y8,{id:e.id,value:e.id,name:"deliveryOptionId",inputRef:x()})}),(0,n.jsxs)(d.kC,{flexDirection:"column",flex:1,children:[(0,n.jsx)(d.kC,{children:(0,n.jsx)(d.xv.Label,{htmlFor:e.id,fontWeight:"bold",mb:0,children:e.name})}),e.description&&(0,n.jsx)(d.kC,{children:(0,n.jsx)(d.xv,{mb:0,fontSize:1.5,lineHeight:2,children:e.description})})]}),(0,n.jsxs)(d.kC,{flexDirection:"column",alignItems:"flex-end",flex:1,children:[(0,n.jsx)(d.kC,{children:(0,n.jsx)(d.xv,{whiteSpace:"normal",mb:0,children:(0,h.Ig)(e.price,e.price.currency)})}),e.logoUrl&&(0,n.jsx)("img",{width:(0,u.bA)(11),src:e.logoUrl,alt:"".concat(e.name," logo")})]})]}),(0,n.jsx)(d.UO,{isOpen:r,children:(0,n.jsx)(d.kC,{flex:1,children:r&&e.servicePoints&&e.servicePoints.length>0&&(0,n.jsx)(d.kC,{mt:1,flex:1,width:1,children:(0,n.jsx)(d.Ph,{"aria-label":C.servicePoint,name:"servicePointId",inputRef:x(),options:e.servicePoints.map(e=>({label:e.name,value:e.id}))})})})})]},e.id)})}),(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.ER,{}),(0,n.jsx)(d.zx,{type:"submit",disabled:N,mt:1,children:g.nextCtaText})]})]})};var y=i(7223),g=i(7460),C=i(1065),k=i(2261),T=i(7268),I=i(5152);let P=i.n(I)()(()=>Promise.all([i.e(810),i.e(544)]).then(i.bind(i,5544)),{loadableGenerated:{webpack:()=>[5544]},ssr:!1});var N=i(9520);let R=e=>{let r=(0,v.M)(),i=(0,o.nt)("checkout",["editCtaText"]);return(0,n.jsxs)(d.kC,{mb:2,children:[(0,n.jsx)(d.kC,{flexDirection:"column",flex:1,pr:1,children:e.children}),(0,n.jsx)(d.kC,{alignItems:"flex-start",children:(0,n.jsx)(d.xv.Button,{type:"button",textDecoration:"underline",onClick:()=>r.goToStep(e.stepId),children:i.editCtaText})})]})};var A=i(1163);let w="checkout-container-div",O="checkoutOrderId",S=e=>({"da-dk":"live-checkout-key-a9d17d366a55423d806a835b01e05ed7","nb-no":"live-checkout-key-864c51fd123b475f8a278afe4e8902f4"})[e]||"live-checkout-key-e59fb97c4aac48cfa45a7ae49deb0b71",_=e=>{var r;let i=(0,o.q8)(),{localeCode:l}=t.useContext(g.Wy),s=(0,A.useRouter)(),d=(0,v.M)(),{cart:a}=(0,o.jD)(),m=t.useRef(!1);return t.useEffect(()=>{var r;(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.Checkout)&&new i.data.Checkout({checkoutKey:S(l),paymentId:e.paymentId,containerId:w,language:(0,h.sE)(l)}).on("payment-completed",r=>{let i=sessionStorage.getItem(O);if(!m.current){var n,t,l,o,c,u,x,v,p,b;(0,h.Qc)({userType:d.customerType,orderId:e.paymentId,revenue:(null!==(u=null===(n=a.itemsPriceSum)||void 0===n?void 0:n.netPrice)&&void 0!==u?u:0)+(null!==(x=null===(l=d.selectedFreight)||void 0===l?void 0:null===(t=l.deliveryOption)||void 0===t?void 0:t.price.netPrice)&&void 0!==x?x:0),cartItems:null!==(v=a.items)&&void 0!==v?v:[],tax:null!==(p=a.vatRate)&&void 0!==p?p:0,shipping:null!==(b=null===(c=d.selectedFreight)||void 0===c?void 0:null===(o=c.deliveryOption)||void 0===o?void 0:o.price.netPrice)&&void 0!==b?b:0}),m.current=!0}s.push("".concat(C.gx).concat(i?"?orderNumber=".concat(i):""))})},[null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.Checkout,l,e.paymentId]),i.isLoading?(0,n.jsx)(c.$j,{}):(0,n.jsx)("div",{id:w})},D=()=>{var e,r,i;let l=(0,v.M)(),{cart:s,discountCodeValue:d}=(0,o.jD)(),[a,u]=t.useState(!1),[x,p]=t.useState(!1),b=(0,o.q8)(),{localeCode:j}=t.useContext(g.Wy),f=(0,A.useRouter)(),y=t.useRef(!1),k=t.useRef(null),T=t.useRef(null),I=(0,m.ag)({variables:{paymentInput:{...l.paymentInput,cartItems:null===(e=s.items)||void 0===e?void 0:e.filter(e=>0!==e.quantity).map(e=>(0,h.Ic)(e))},...!1,...d&&{discountCode:d}},fetchPolicy:"network-only"});return t.useEffect(()=>{var e,r;let i=null===(r=I.data)||void 0===r?void 0:null===(e=r.b2CPayment)||void 0===e?void 0:e.orderId;i&&sessionStorage.setItem(O,i)},[null===(i=I.data)||void 0===i?void 0:null===(r=i.b2CPayment)||void 0===r?void 0:r.orderId]),t.useEffect(()=>{var e,r,i;if(I.loading||b.isLoading){u(!0);return}let n=null===(r=I.data)||void 0===r?void 0:null===(e=r.b2CPayment)||void 0===e?void 0:e.id,t=b.data;if(!n||!t){u(!1),f.push("".concat(C.F2));return}if(!k.current||!(null===(i=T.current)||void 0===i?void 0:i.hasChildNodes())){u(!1),k.current=ne
1w b.data.Checkout({checkoutKey:S(j),paymentId:n,containerId:w,language:(0,h.sE)(j)});let e=T.current?T.current.querySelector("iframe"):null;e&&e.addEventListener("load",()=>{p(!0)}),k.current.on("pay-initialized",()=>{p(!1),k.current.send("payment-order-finalized",!0)}),k.current.on("payment-completed",e=>{var r,i,n,t,o,d,a,c,m,u,x,v,p,b,j;y.current||((0,h.Qc)({userType:l.customerType,orderId:null!==(u=null===(t=I.data)||void 0===t?void 0:null===(n=t.b2CPayment)||void 0===n?void 0:n.orderId)&&void 0!==u?u:"",revenue:(null!==(x=null===(o=s.itemsPriceSum)||void 0===o?void 0:o.netPrice)&&void 0!==x?x:0)+(null!==(v=null===(a=l.selectedFreight)||void 0===a?void 0:null===(d=a.deliveryOption)||void 0===d?void 0:d.price.netPrice)&&void 0!==v?v:0),cartItems:null!==(p=s.items)&&void 0!==p?p:[],tax:null!==(b=s.vatRate)&&void 0!==b?b:0,shipping:null!==(j=null===(m=l.selectedFreight)||void 0===m?void 0:null===(c=m.deliveryOption)||void 0===c?void 0:c.price.netPrice)&&void 0!==j?j:0}),y.current=!0),f.push("".concat(C.gx,"?orderNumber=").concat(null===(i=I.data)||void 0===i?void 0:null===(r=i.b2CPayment)||void 0===r?void 0:r.orderId))})}},[I,b,j,f]),a?(0,n.jsx)(c.$j,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{id:w,ref:T}),j===h.GG.se&&x&&(0,n.jsx)(F,{})]})},F=()=>{let e=(0,o.nt)(o.gR.shared("Common"),["debtRiskMessageTitle","debtRiskMessageText","debtRiskMessageLink"]);return(0,n.jsx)(d.kC,{p:1,mt:3,children:(0,n.jsxs)(d.kC,{children:[(0,n.jsx)(d.kC,{mr:1,children:(0,n.jsx)(d.JO,{viewBox:"0 0 512 512",icon:"warning",color:"red-1",size:7})}),(0,n.jsxs)(d.kC,{flexDirection:"column",children:[(0,n.jsx)(d.xv,{textColor:"grey-9",fontWeight:"bold",fontSize:1.75,lineHeight:1.75,mb:.5,children:e.debtRiskMessageTitle}),(0,n.jsxs)(d.xv,{textColor:"grey-9",fontSize:1.75,lineHeight:1.75,mb:0,children:[e.debtRiskMessageText,(0,n.jsx)(d.xv.Anchor,{href:e.debtRiskMessageLink.includes("http")?e.debtRiskMessageLink:"https://".concat(e.debtRiskMessageLink),target:y.el.Blank,textColor:"blue-6",lineHeight:1.75,mb:0,fontSize:1.75,children:e.debtRiskMessageLink})]})]})]})})};var L=i(8137),z=i.n(L);let E=x.default.div.withConfig({componentId:"sc-f05d5895-0"})(["display:flex;flex:1;width:100%;flex-direction:column;align-items:center;justify-content:flex-start;display:none;",""],e=>e.isActive&&(0,x.css)(["display:flex;transition-delay:0.4;"])),M=()=>(0,n.jsx)(c.s_,{children:(0,n.jsx)(c.$j,{})}),q=e=>{let{children:r,...i}=e,{isBrowser:l}=z()();return(0,n.jsx)(E,{...i,children:(0,n.jsx)(d.kC,{flexDirection:"column",alignItems:"center",w:1,children:l?(0,n.jsx)(t.Suspense,{fallback:(0,n.jsx)(M,{}),children:r}):(0,n.jsx)(M,{})})})};var B=i(8752),H=i(3444);let U={payment:()=>{let e=(0,o.nt)("checkout",["paymentTitle"]),r=(0,v.M)(),i=(0,o.K6)();return t.useEffect(()=>()=>{sessionStorage.removeItem(O)},[]),(0,n.jsx)(d.kC,{flexDirection:"column",alignItems:"center",w:1,children:(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.s_.Title,{children:e.paymentTitle}),(0,n.jsx)(d.kC,{my:2,justifyContent:"space-around",flexDirection:"column",children:"payment"===r.currentStepId&&(i?(0,n.jsx)(_,{paymentId:i}):(0,n.jsx)(D,{}))})]})})},delivery:e=>{var r,i;let l=(0,o.nt)("checkout",["deliveryTitle","customerTypeConsumerLabel","customerTypeCompanyLabel","deliveryDescription","countryPlaceholder","postalCodePlaceholder","postalCodeDescription","viewFreightAlternativesCtaText"]),s=(0,v.M)(),{cart:u,initCart:x}=(0,o.jD)(),p=(0,a.cI)();t.useEffect(()=>{p.setValue("customerType",s.customerType)},[]);let[b,j]=(0,m.gX)({fetchPolicy:"cache-and-network"}),[g,C]=t.useState([]);t.useEffect(()=>{var e,r;(null===(r=j.data)||void 0===r?void 0:null===(e=r.deliveryOptions)||void 0===e?void 0:e.length)&&C(j.data.deliveryOptions)},[j]);let k=e=>{s.setCustomerType(e.target.value),C([]),s.setSelectedFreight({}),x(e.target.value)},T=!j.loading&&!!(null===(i=j.data)||void 0===i?void 0:null===(r=i.deliveryOptions)||void 0===r?void 0:r.length);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.s_,{mb:0,pb:T?3:{_:2,m:6},children:[(0,n.jsx)(c.s_.Title,{children:l.deliveryTitle}),(0,n.jsxs)(d.kC,{as:"form",onSubmit:p.handleSubmit(e=>{var r;s.setPaymentInput(r=>({...r,zipCode:e.zipCode,customerType:e.customerType})),b({variables:{...e,cartItems:null===(r=u.items)||void 0===r?void 0:r.map(e=>(0,h.Ic)(e))}})}),flexDirection:"column",children:[(0,n.jsxs)(d.kC,{mb:2,flexDirection:{_:"column",m:"row"},children:[(0,n.jsx)(d.kC,{mr:3,mb:2,children:(0,n.jsx)(d.Y8,{label:l.customerTypeConsumerLabel,name:"customerType",onChange:k,value:y.gw.B2C,inputRef:p.register({required:!0})})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.Y8,{label:l.customerTypeCompanyLabel,name:"customerType",onChange:k,value:y.gw.B2E,inputRef:p.register({required:!0})})})]}),(0,n.jsx)(d.xv,{mb:1,children:l.deliveryDescription}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.Ph,{"aria-label":l.deliveryDescription,options:[{value:l.countryPlaceholder,label:l.countryPlaceholder}],disabled:!0})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{label:l.postalCodePlaceholder,helperText:l.postalCodeDescription,name:"zipCode",inputRef:p.register({required:!0})})}),(0,n.jsx)(d.zx,{type:"submit",disabled:j.loading,children:l.viewFreightAlternativesCtaText})]})]}),(0,n.jsx)(f,{loading:j.loading,deliveryOptions:g})]})},userInfo:e=>{let r=(0,o.nt)("checkout",["userInfoTitle","companyNamePlaceholder","organizationNumberPlaceholder","vatNumberPlaceholder","firstNamePlaceholder","lastNamePlaceholder","clientReferenceFirstNamePlaceholder","clientReferenceLastNamePlaceholder","mobileNumberPlaceholder","emailAddressPlaceholder","streetAddressPlaceholder","streetAddressTwoPlaceholder","changePostalCode","postalCodePlaceholder","cityPlaceholder","nextCtaText","mobileNumberError","shoppingAsConsumerText","shoppingAsCompanyText","contactInformationTitle","organizationInformationTitle","shippingAdressTitle","invoiceAddressCheckboxLabel","invoiceAddressTitle","clientReferenceNumberPlaceholder"]),i=(0,o.nt)(o.gR.shared("Common"),["exactField
1FormatText","digitsOnlyFieldFormatText","exactFieldLengthRuleText","minLengthRuleText","vatValidationErrorText"]),l=(0,v.M)(),s=l.customerType===y.gw.B2E,{localeCode:m}=t.useContext(g.Wy),{handleSubmit:u,register:x,formState:p,getValues:b,trigger:j}=(0,a.cI)({defaultValues:{countryCode:(0,h.bT)(m).toUpperCase()},mode:"onChange"}),{errors:f}=p,[I,N]=t.useState(!0),R=t.useMemo(()=>({...r,...i}),[r,i]),A=t.useMemo(()=>(0,k.ZP)(m,R),[m,R]);return(0,n.jsxs)(d.kC,{flexDirection:"column",alignItems:"center",w:1,as:"form",onSubmit:u(e=>{l.setPaymentInput(r=>{var i,n,t,s,o,d;return{...r,address:{firstName:e.firstName,lastName:e.lastName,addressOne:e.addressOne,addressTwo:e.addressTwo,postalCode:l.paymentInput.zipCode,city:e.city,mail:e.mail,phone:e.phone},...e.invoiceAddressOne&&e.invoiceAddressPostalCode&&e.invoiceAddressCity&&{invoiceAddress:{firstName:e.firstName,lastName:e.lastName,addressOne:e.invoiceAddressOne,addressTwo:e.invoiceAddressTwo,postalCode:e.invoiceAddressPostalCode,city:e.invoiceAddressCity,mail:e.mail}},...e.companyName&&e.orgNumber&&e.vatNumber&&{companyInformation:{companyName:e.companyName,customerReferenceNumber:e.customerReferenceNumber,orgNumber:e.orgNumber,vatNumber:"".concat(null!==(o=null==A?void 0:null===(n=A.vatNumber)||void 0===n?void 0:null===(i=n.props)||void 0===i?void 0:i.prefix)&&void 0!==o?o:"").concat(e.vatNumber).concat(null!==(d=null==A?void 0:null===(s=A.vatNumber)||void 0===s?void 0:null===(t=s.props)||void 0===t?void 0:t.suffix)&&void 0!==d?d:"")}}}}),l.goToNextStep()}),children:[(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.s_.Title,{children:r.userInfoTitle}),(0,n.jsx)(d.xv,{children:s?r.shoppingAsCompanyText:r.shoppingAsConsumerText}),(0,n.jsx)(d.xv,{variant:"headline-6",mb:2,children:r.contactInformationTitle}),(0,n.jsxs)(d.kC,{borderBottom:!0,borderColor:"grey-1",pb:2,mb:4,flexDirection:"column",children:[(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"firstName",error:!!f.firstName,inputRef:x({required:!0}),label:s?r.clientReferenceFirstNamePlaceholder:r.firstNamePlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"lastName",error:!!f.lastName,inputRef:x({required:!0}),label:s?r.clientReferenceLastNamePlaceholder:r.lastNamePlaceholder})}),(0,n.jsx)(d.kC,{flexDirection:"column",mb:2,children:(0,n.jsx)(P,{name:"phone",register:x,trigger:j,getValues:b,error:!!f.phone,helperText:f.phone&&r.mobileNumberError,label:r.mobileNumberPlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"mail",error:!!f.mail,type:"email",inputRef:x({required:!0,pattern:C.$S}),label:r.emailAddressPlaceholder})})]}),s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.xv,{variant:"headline-6",mb:2,children:r.organizationInformationTitle}),(0,n.jsxs)(d.kC,{borderBottom:!0,borderColor:"grey-1",pb:2,mb:4,flexDirection:"column",children:[(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"companyName",error:!!f.companyName,inputRef:x({required:!0}),label:r.companyNamePlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"orgNumber",error:!!f.orgNumber,...A.orgNumber.props&&A.orgNumber.props,inputRef:x(A.orgNumber.registerOptions),helperText:f.orgNumber&&f.orgNumber.message,label:r.organizationNumberPlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(T.Z,{name:"vatNumber",register:x,trigger:j,getValues:b,vatNumberProps:A.vatNumber,error:!!f.vatNumber,helperText:f.vatNumber&&f.vatNumber.message,label:r.vatNumberPlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"customerReferenceNumber",error:!!f.customerReferenceNumber,inputRef:x(),label:r.clientReferenceNumberPlaceholder})})]})]}),(0,n.jsx)(d.xv,{variant:"headline-6",mb:2,children:r.shippingAdressTitle}),(0,n.jsxs)(d.kC,{borderBottom:s,borderColor:"grey-1",pb:s?2:0,mb:s?4:2,flexDirection:"column",children:[(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"addressOne",error:!!f.addressOne,inputRef:x({required:!0}),label:r.streetAddressPlaceholder})}),s&&(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"addressTwo",error:!!f.addressTwo,inputRef:x(),label:r.streetAddressTwoPlaceholder})}),(0,n.jsxs)(d.kC,{flex:1,w:1,flexDirection:{_:"column",s:"row"},children:[(0,n.jsx)(d.kC,{pr:{s:2},mb:2,children:(0,n.jsx)(d.nv,{name:"postalCode",error:!!f.postalCode,inputRef:x({required:!0}),label:r.postalCodePlaceholder,value:l.paymentInput.zipCode,disabled:!0})}),(0,n.jsx)(d.kC,{flex:2,mb:2,children:(0,n.jsx)(d.nv,{name:"city",error:!!f.city,inputRef:x({required:!0}),label:r.cityPlaceholder,maxLength:C.P_})})]})]}),s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.xv,{variant:"headline-6",mb:2,children:r.invoiceAddressTitle}),(0,n.jsxs)(d.kC,{flexDirection:"column",children:[(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.XZ,{label:r.invoiceAddressCheckboxLabel,name:"sameAsDeliveryAddress",onChange:()=>N(!I),checked:I})}),!I&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"invoiceAddressOne",error:!!f.invoiceAddressOne,inputRef:x({required:!0}),label:r.streetAddressPlaceholder})}),(0,n.jsx)(d.kC,{mb:2,children:(0,n.jsx)(d.nv,{name:"invoiceAddressTwo",error:!!f.invoiceAddressTwo,inputRef:x(),label:r.streetAddressTwoPlaceholder})}),(0,n.jsxs)(d.kC,{flex:1,w:1,flexDirection:{_:"column",s:"row"},children:[(0,n.jsx)(d.kC,{pr:{s:2},mb:2,children:(0,n.jsx)(d.nv,{name:"invoiceAddressPostalCode",error:!!f.invoiceAddressPostalCode,inputRef:x({required:!0}),label:r.postalCodePlaceholder})}),(0,n.jsx)(d.kC,{flex:2,mb:2,children:(0,n.jsx)(d.nv,{name:"invoiceAddressCity",error:!!f.invoiceAddressCity,inputRef:x({required:!0}),label:r.cityPlaceholder,maxLength:C.P_})})]})]})]})]})]}),(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.ER,{}),(0,n.jsx)(d.zx,{type:"submit",children:r.nextCtaText})]})]})},summary:e=>{var r,i,l,s;let m=(0,o.nt)("checkout",["summaryTitle","organizationInformationTitle","paymentCtaText","shippingAdressTitle","deliveryOptionTitle","orderItemsTitle","consentDescription","consentLabel","contactInformationTitle","invoiceAddressTitle"]),{handleSubmit:u,register:x,formState:p}=(0,a.cI)({mode:"onChange"}),{isValid:b}=p,j=(0,v.M)(),f=j.paymentInput.address,y=j.paymentInput.companyInformation,C=j.paymentInput.invoiceAddress,k=j.selectedFreight,{localeCode:T}=t.useContext(g.Wy);return(0,n.jsxs)(d.kC,{as:"form",onSubmit:u(j.goToNextStep),flexDirection:"column",alignItems:"center",w:1,children:[(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.s_.Title,{children:m.summaryTitle}),f&&(0,n.jsxs)(R,{stepId:"userInfo",children:[(0,n.jsx)(d.xv,{variant:"headline-6",children:m.contactInformationTitle}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.xv,{mb:0,children:[f.firstName," ",f.lastName]}),(0,n.jsxs)(d.xv,{mb:0,children:["+",null===(r=f.phone)||void 0===r?void 0:r.prefix," ",null===(i=f.phone)||void 0===i?void 0:i.number]}),(0,n.jsx)(d.xv,{mb:0,children:f.mail})]})]}),y&&(0,n.jsxs)(R,{stepId:"userInfo",children:[(0,n.jsx)(d.xv,{variant:"headline-6",children:m.organizationInformationTitle}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.xv,{mb:0,children:y.companyName}),(0,n.jsx)(d.xv,{mb:0,children:y.orgNumber}),(0,n.jsx)(d.xv,{mb:0,children:y.vatNumber}),y.customerReferenceNumber&&(0,n.jsx)(d.xv,{mb:0,children:y.customerReferenceNumber})]})]}),f&&(0,n.jsxs)(R,{stepId:"userInfo",children:[(0,n.jsx)(d.xv,{variant:"headline-6",children:m.shippingAdressTitle}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.xv,{mb:0,children:f.addressOne}
1),f.addressTwo&&(0,n.jsx)(d.xv,{mb:0,children:f.addressTwo}),(0,n.jsxs)(d.xv,{mb:0,children:[f.postalCode," ",f.city]})]})]}),C&&(0,n.jsxs)(R,{stepId:"userInfo",children:[(0,n.jsx)(d.xv,{variant:"headline-6",children:m.invoiceAddressTitle}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.xv,{mb:0,children:C.addressOne}),C.addressTwo&&(0,n.jsx)(d.xv,{mb:0,children:C.addressTwo}),(0,n.jsxs)(d.xv,{mb:0,children:[C.postalCode," ",C.city]})]})]}),k&&(0,n.jsxs)(R,{stepId:"delivery",children:[(0,n.jsx)(d.xv,{variant:"headline-6",children:m.deliveryOptionTitle}),(null===(l=k.deliveryOption)||void 0===l?void 0:l.name)&&(0,n.jsxs)(d.xv,{fontWeight:"bold",mb:0,children:[k.deliveryOption.name," "," â ",(0,N.Ig)(k.deliveryOption.price,T)]}),(null===(s=k.servicePoint)||void 0===s?void 0:s.name)&&(0,n.jsx)(d.xv,{children:k.servicePoint.name})]}),(0,n.jsx)(c.$A,{})]}),(0,n.jsxs)(c.s_,{children:[(0,n.jsx)(c.ER,{}),(0,n.jsx)(d.kC,{mb:1,children:(0,n.jsx)(d.Pe,{as:"div",dangerouslySetInnerHTML:(0,h.KU)(m.consentDescription)})}),(0,n.jsxs)(d.kC,{justifyContent:"flex-start",children:[(0,n.jsx)(d.XZ,{id:"consent",name:"consent",value:"true",inputRef:x({required:!0})}),(0,n.jsx)(d.kC,{mt:-.5,ml:1,mb:3,children:(0,n.jsx)(d.Pe,{as:"label",htmlFor:"consent",dangerouslySetInnerHTML:(0,h.KU)(m.consentLabel)})})]}),(0,n.jsx)(d.zx,{type:"submit",disabled:!b,children:m.paymentCtaText})]})]})},status:()=>(0,n.jsx)(t.Fragment,{})},W=()=>{let e=(0,o.Tt)(C.SH),r=(0,v.M)(),{cart:i}=(0,o.jD)();return(0,o.Z5)(r.customerType,r.currentStepIndex+1,i.items),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsx)("title",{children:e})}),(0,n.jsx)(B.A,{children:Object.keys(U).map(e=>(0,n.jsx)(q,{isActive:e===r.currentStepId,children:t.createElement(U[e])},e))})]})};var K=!0,V=(0,H.Z)(()=>{let e=(0,o.K6)();return(0,n.jsx)(v.o,{currentStepId:e?"payment":void 0,children:(0,n.jsx)(W,{})})})},9008:function(e,r,i){e.exports=i(3867)}},function(e){e.O(0,[510,483,529,888,774,179],function(){return e(e.s=2013)}),_N_E=e.O()}]);
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.