1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9594],{91194:function(e,t,o){"use strict";var n,i=o(67294),c=["title","titleId"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}t.Z=function(e){var t=e.title,o=e.titleId,r=function(e,t){if(null==e)return{};var o,n,i=function(e,t){if(null==e)return{};var o,n,i={},c=Object.keys(e);for(n=0;n<c.length;n++)o=c[n],t.indexOf(o)>=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)o=c[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(e,c);return i.createElement("svg",_extends({fill:"black",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":o},r),t?i.createElement("title",{id:o},t):null,n||(n=i.createElement("path",{d:"M12 8.5H4C3.7 8.5 3.5 8.3 3.5 8C3.5 7.7 3.7 7.5 4 7.5H12C12.3 7.5 12.5 7.7 12.5 8C12.5 8.3 12.3 8.5 12 8.5Z"})))}},86998:function(e,t,o){"use strict";var n,i=o(67294),c=["title","titleId"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}t.Z=function(e){var t=e.title,o=e.titleId,r=function(e,t){if(null==e)return{};var o,n,i=function(e,t){if(null==e)return{};var o,n,i={},c=Object.keys(e);for(n=0;n<c.length;n++)o=c[n],t.indexOf(o)>=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)o=c[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(e,c);return i.createElement("svg",_extends({fill:"black",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":o},r),t?i.createElement("title",{id:o},t):null,n||(n=i.createElement("path",{d:"M12 7.5H8.5V4C8.5 3.7 8.3 3.5 8 3.5C7.7 3.5 7.5 3.7 7.5 4V7.5H4C3.7 7.5 3.5 7.7 3.5 8C3.5 8.3 3.7 8.5 4 8.5H7.5V12C7.5 12.3 7.7 12.5 8 12.5C8.3 12.5 8.5 12.3 8.5 12V8.5H12C12.3 8.5 12.5 8.3 12.5 8C12.5 7.7 12.3 7.5 12 7.5Z"})))}},74973:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kasse",function(){return o(77241)}])},28412:function(e,t,o){"use strict";var n=o(85893);o(67294);var i=o(37840),c=o(33481),r=o.n(c),l=o(43714),s=o(24762);t.Z=function(e){var t=(0,l.$G)("common").t;return e.content&&e.label?(0,n.jsxs)("div",{className:r().root,children:[(0,n.jsx)(i.Z,{className:r().icon}),(0,n.jsx)("button",{type:"button","data-tip":e.content,className:"btn-link-caption ".concat(r().btn," caption"),children:t(e.label)}),(0,n.jsx)(s.Z,{place:"bottom",type:"info",className:r().tooltip,backgroundColor:"#F5F2ED"})]}):null}},67890:function(e,t,o){"use strict";o.d(t,{I:function(){return CheckoutInfoText}});var n=o(85893),i=o(37840),c=o(54310),r=o.n(c),CheckoutInfoText=function(e){return e.text?(0,n.jsxs)("div",{className:r().root,children:[(0,n.jsx)(i.Z,{}),e.text]}):null}},4658:function(e,t,o){"use strict";o.d(t,{J:function(){return scrollToHashElement},v:function(){return parseProductsFromUrl}});var n=o(91309);function scrollToHashElement(){var e=window.location.hash,t=document.getElementById(null==e?void 0:e.replace("#",""));t&&window.scrollTo({top:t.offsetTop-71,behavior:"smooth"})}function parseProductsFromUrl(e){return e.split(",").map(function(e){var t=(0,n._)(e.split(":"),3),o=t[0],i=t[1],c=t[2];return{productId:parseInt(o),quantity:parseInt(i),plateNumber:c}})}},77241:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSG:function(){return eW},default:function(){return kasse}});var n=o(72253),i=o(14932),c=o(85893),r=o(11010),l=o(75766),s=o(91309),d=o(97582),a=o(87964),u=o(67294),h=o(43714),p=o(69636),v=o.n(p),m=o(35691),_=o(84006),f=o(11163),k=o(76794),y=o(67890),x=o(72224),g=o.n(x),C=o(86998),j=o(91194),N=o(11215),w=o(75026),b=o(25497),CheckoutPriceSummary=function(e){var t,o=(0,h.$G)("common").t,r=(0,s._)((0,u.useState)(!0),2),l=r[0],d=r[1],p=(0,u.useContext)(w.m),v=(0,u.useContext)(a.A9),m=(0,b.Z)().calculatePrice,_=p.checkoutState.input,f=_.price,x=_.campaign,P=_.products,I=f;return I||(I=m({products:P.length>0?P:v.items,freeShippingThreshold:v.freeShippingThreshold,campaign:null!=x?x:v.campaign})),(0,c.jsxs)("div",{className:g().root,children:[(0,c.jsx)("h2",{className:"h4Bold mb30",children:o("checkout.summary")}
1),(0,c.jsxs)("div",{className:g().order,children:[(0,c.jsxs)("button",{className:"link btn-as-link ".concat(g().expandOrder),onClick:function(){return d(!l)},children:[l?(0,c.jsx)(j.Z,{}):(0,c.jsx)(C.Z,{})," ",o("checkout.seeOrderDetails")]}),(0,c.jsx)("div",{className:g().orderItems,children:l&&(0,c.jsx)(N.i,{items:P})})]}),(0,c.jsx)("div",{className:"mb30",children:(0,c.jsx)(k.g,{totalPriceTitle:"checkout.totalToPay",price:(0,i._)((0,n._)({},I),{giftCard:(null==x?void 0:x.giftcard)?{name:x.name,amount:x.giftcard.amount,minimum_spending_remaining:Math.max(x.giftcard.minimum_spend-I.goodsFinalGrossPrice,0)}:null,freeShippingThreshold:null}),discountCodeHidden:!f,canRemoveDiscountCode:!0})}),(0,c.jsx)(y.I,{text:null===(t=e.pageProps)||void 0===t?void 0:t.checkoutInfoText})]})},P=o(606),I=o(10365),S=o(62463),M=o.n(S),D=o(49e3),T=o(28412),CheckoutPaymentSection=function(e){var t,o=(0,s._)((0,u.useState)(!1),2),n=o[0],i=o[1],l=(0,s._)((0,u.useState)(),2),a=l[0],p=l[1],v=(0,h.$G)("common").t,m=(0,u.useContext)(w.m),_=m.onPaymentMethodSelection,f=m.onPaymentTimeout,k=m.onPaymentStart,y=m.onPaymentError,x=m.checkoutState,g=(0,u.useRef)(null);(0,u.useEffect)(function(){return function(){clearTimeout(null==g?void 0:g.current)}},[]),(0,u.useEffect)(function(){if("payment"!==x.step){clearTimeout(null==g?void 0:g.current);return}g.current=setTimeout(function(){f()},18e5)},[x.step]),(0,u.useEffect)(function(){if(_(),(null==x?void 0:x.input.paymentMethods.length)==1){p(x.input.paymentMethods[0]);return}null==x||x.input.paymentMethods.forEach(function(e){21===e.id&&p(e)})},[null==x?void 0:x.input.paymentMethods]);var C=(t=(0,r._)(function(t){var o;return(0,d.Jh)(this,function(n){switch(n.label){case 0:if(5===t.id||21===t.id)o="invoice";else if(30===t.id)o="nets";else if(37===t.id)o="two-invoice";else if(41===t.id)o="qliro";else throw Error("unknown payment method");n.label=1;case 1:return n.trys.push([1,,3,4]),e.setCheckoutLoader(!0),[4,k(o)];case 2:return n.sent(),[3,4];case 3:return e.setCheckoutLoader(!1),[7];case 4:return[2]}})}),function(e){return t.apply(this,arguments)});return(0,c.jsxs)("fieldset",{className:M().fieldset,children:[(0,c.jsx)("legend",{className:"visuallyHidden",children:v("checkout.choosePaymentMethod")}),(0,c.jsx)("ul",{className:M().radioList,children:null==x?void 0:x.input.paymentMethods.map(function(e){return(0,c.jsxs)("li",{className:"radio-wrapper ".concat(M().radioWrapper),children:[(0,c.jsx)("input",{id:"paymentOption__".concat(e.id),type:"radio",onChange:function(){return p(e)},checked:(null==a?void 0:a.id)===e.id}),(0,c.jsx)("label",{htmlFor:"paymentOption__".concat(e.id),children:(0,c.jsxs)("div",{className:M().row,children:[(0,c.jsx)("span",{className:M().method,children:e.description}),37===e.id&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:M().imgBox,children:(0,c.jsx)(D.J,{src:"/images/two-logo.svg",priority:!0,externalSrc:!1,width:50,height:24,alt:"Two payment logo"})}),(0,c.jsx)(T.Z,{label:v("TwoPaymentInfo.title"),content:v("TwoPaymentInfo.description")})]})]})})]},"paymentOption__".concat(e.id))})}),a&&e.isActive&&(0,c.jsx)("div",{className:M().optionBody,children:21!==a.id&&30!==a.id&&37!==a.id&&41!==a.id?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)("div",{children:(0,c.jsx)("button",{className:"btn",disabled:n,onClick:(0,r._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),i(!0),[4,C(a)];case 1:return e.sent(),window.location.href=a.payment_url,[3,4];case 2:return e.sent(),y(),[3,4];case 3:return setTimeout(function(){return i(!1)},2e3),[7];case 4:return[2]}})}),children:v("checkout.completeOrder")})})})]})},E=o(94184),L=o.n(E),R=o(15114),H=o.n(R),CheckoutStep=function(e){var t=(0,h.$G)("common").t,o=L()("h4Bold",(0,l._)({},H().disabledHeading,!e.isExpanded&&!e.isCompleted));return(0,c.jsxs)("div",{className:H().root,children:[(0,c.jsxs)("div",{className:H().heading,children:[(0,c.jsx)("h2",{className:o,children:t(e.title)}),e.isCompleted&&e.isEditAvailable&&(0,c.jsx)("button",{type:"button",className:"btn-as-link link-plain",onClick:e.onEditClick,children:t("checkout.edit")})]}),(0,c.jsx)("div",{className:H().summary,children:e.isCompleted&&e.summaryComponent}),(0,c.jsx)("div",{hidden:!e.isExpanded,children:e.sectionComponent})]})},O=o(22718),B=o.n(O),W=o(9047),A=o(6961),Z=o.n(A),G={BRING_EXPRESS_SHIPPING_METHOD_ID:4,PICKUP_AT_LIERSKOGEN_METHOD_ID:6},F=o(65787),U=o(54646),J=o.n(U),K=o(41721),X=o.n(K),V=o(63652),Y=o.n(V),$=o(25602),CheckoutDeliveryMethodPoint=function(e){var t=e.item,o=e.isSelected,n=e.onClickPoint,i=e.itemTag,r=void 0===i?"li":i,s=L()(Y().root,(0,l._)({},Y().selected,o));return(0,c.jsx)(r,{className:s,children:(0,c.jsx)("button",{className:Y().btn,onClick:function(){return!o&&n(t.id)},disabled:o,children:(0,c.jsxs)("div",{className:Y().content,children:[o&&(0,c.jsx)("div",{className:Y().checkIconWrapper,children:(0,c.jsx)($.Z,{})}),(0,c.jsxs)("div",{className:Y().address,children:[(0,c.jsx)("span",{className:Y().pointName,children:t.name}),(0,c.jsx)("span",{children:t.address}),(0,c.jsx)("span",{children:"".concat(t.postcode," ").concat(t.city)})]}),(0,c.jsx)("div",{className:Y().dateTimeContainer,children:(0,c.jsx)("div",{children:t.opening_hours&&(0,c.jsxs)("span",{children:[t.opening_hours,(0,c.jsx)("br",{})]},"".concat(t.id,"__hours__"))})})]})})},t.id)},CheckoutDeliveryMethodPoints=function(e){var t=e.points,o=e.selectedDeliveryPointId,n=e.setSelectedDeliveryPointId,i=(0,s._)((0,u.useState)(!0),2),r=i[0],d=i[1],a=(0,h.$G)("common").t,clickPointHandle=function(e){n(e),d(!1)},p=t.filter(function(e){return e.id!==o}),v=t.find(function(e){return e.id===o}),m=L()(X().list,(0,l._)({},X().mgBottom,!!v));return(0,c.jsxs)("div",{className:X().root,children:[p.length>0&&(0,c.jsx)("span",{className:X().chooseLocationLabel,children:a("checkout.chooseDeliveryLocation")}),!!v&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(CheckoutDeliveryMethodPoint,{item:v,isSelected:!0,onClickPoint:clickPointHandle,itemTag:"div"}),p.length>0&&!r&&(0,c.jsx)("button",{className:"btn-link ".concat(X().showListBtn),onClick:function(){return d(!0)},children:a("checkout.chooseAnotherDeliveryLocation")})]}),p.length>0&&r&&(0,c.jsx)("ul",{className:m,children:p.map(function(e){return(0,c.jsx)(CheckoutDeliveryMethodPoint,{item:e,isSelected:!1,onClickPoint:clickPointHandle},e.id)})})]})},z=o(55843),q=o.n(z),Q=o(38045),ee=o.n(Q),CheckoutDeliveryMethodWindow=function(e){var t=e.item,o=e.isSelected,n=e.onWindowClick,i=e.itemTag,r=void 0===i?"li":i,s=L()(ee().root,(0,l._)({},ee().selected,o));return(0,c.jsx)(r,{className:s,children:(0,c.jsx)("button",{className:ee().btn,onClick:function(){return!o&&n(t.service_code)},disabled:o,children:(0,c.jsxs)("div",{className:ee().content,children:[o&&(0,c.jsx)("div",{className:ee().checkIconWrapper,children:(0,c.jsx)($.Z,{})}),(0,c.jsx)("div",{className:ee().address,children:(0,c.jsx)("span",{children:t.description})}),(0,c.jsx)("div",{className:ee().descriptionContainer,children:(0,c.jsx)("span",{children:t.delivery_address})})]})})},t.service_code)},CheckoutDeliveryMethodWindows=function(e){var t=e.deliveryWindows,o=e.selectedDeliverWindowId,n=e.setSelectedDeliveryWindowId,i=(0,s._)((0,u.useState)(!0),2),r=i[0],d=i[1],a=(0,h.$G)("common").t,clickPointHandle=function(e){n(e),d(!1)},p=t.filter(function(e){return e.service_code!==o}),v=t.find(function(e){return e.service_code===o}),m=L()(q().list,(0,l._)({},q().mgBottom,!!v));return(0,c.jsxs)("div",{className:q().root,children:[p.length>0&&(0,c.jsx)("span",{className:q().chooseLocationLabel,children:a("checkout.chooseDeliveryWindow")}),!!v&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(CheckoutDeliveryMethodWindow,{item:v,isSelected:!0,onWindowClick:clickPointHandle,itemTag:"div"}),p.length>0&&!r&&(0,c.jsx)("button",{className:"btn-link ".concat(q().showListBtn),onClick:function(){return d(!0)},children:a("checkout.chooseAnotherDeliveryWindow")})]}),p.length>0&&r&&(0,c.jsx)("ul",{className:m,children:p.map(function(e){return(0,c.jsx)(CheckoutDeliveryMethodWindow,{item:e,isSelected:!1,onWindowClick:clickPointHandle},e.service_code)})})]})},et=o(37840),CheckoutDeliveryMethod=function(e){var t,o,r=e.method,s=e.selectedMethod,d=e.isB2B,a=e.onChangeHandle,u=e.setSelectedMethod,p=e.setShowPickupAtStoreInfoModal,v=L()(J().row,(0,l._)({}
1,J().selected,r.id===(null==s?void 0:s.id))),m=L()(J().radioWrapper,(0,l._)({},J().selected,r.id===(null==s?void 0:s.id))),_=(0,h.$G)("common").t;return(0,c.jsx)("li",{className:"radio-wrapper",children:(0,c.jsxs)("div",{className:m,children:[(0,c.jsxs)("div",{className:J().labelRow,children:[(0,c.jsx)("input",{id:"deliveryMethod__".concat(r.id),type:"radio",onChange:function(){return a(r)},checked:(null==s?void 0:s.id)===r.id,className:J().radio}),(0,c.jsx)("label",{htmlFor:"deliveryMethod__".concat(r.id),children:(0,c.jsxs)("div",{className:v,children:[(0,c.jsxs)("span",{className:J().method,children:[(0,c.jsxs)("div",{className:J().methodNameContainer,children:[(0,c.jsx)("span",{className:J().methodName,children:r.title}),r.description&&(0,c.jsx)("span",{className:J().methodDescription,children:r.description}),r.additional_details&&(0,c.jsx)("span",{className:J().methodDescription,children:r.additional_details})]}),r.id===G.PICKUP_AT_LIERSKOGEN_METHOD_ID&&(0,c.jsx)("button",{className:J().showParcelLockerInfoButton,onClick:function(){return p(!0)},"aria-label":_("checkout.pickupAtStoreInfoButtonAriaLabel"),children:(0,c.jsx)(et.Z,{})}),r.logo&&(0,c.jsx)(D.t,{src:r.logo.url,alt:r.logo.name,className:J().methodImage,aspectRatio:{w:16,h:9},sizes:["10vw"],width:160,height:90})]}),(0,c.jsx)("span",{className:J().price,children:"".concat(F.g.formatCurrency(d?r.price_net:r.price,!0,!0))})]})})]}),(null==s?void 0:s.id)===r.id&&r.pickup_points&&r.pickup_points.length>0&&(0,c.jsx)(CheckoutDeliveryMethodPoints,{points:r.pickup_points,selectedDeliveryPointId:null==s?void 0:s.pointId,setSelectedDeliveryPointId:function(e){u((0,i._)((0,n._)({},s),{pointId:e}))}}),(null==s?void 0:s.id)===r.id&&r.id===G.BRING_EXPRESS_SHIPPING_METHOD_ID&&(null===(t=null!==(o=r.delivery_windows)&&void 0!==o?o:[])||void 0===t?void 0:t.length)>0&&(0,c.jsx)(CheckoutDeliveryMethodWindows,{deliveryWindows:r.delivery_windows,selectedDeliverWindowId:null==s?void 0:s.windowId,setSelectedDeliveryWindowId:function(e){u((0,i._)((0,n._)({},s),{windowId:e}))}})]})},"deliveryMethod__".concat(r.id))},eo=o(52089),en=o.n(eo),ei=o(1566),ec=o(74523),Modals_PickupAtStoreInfoModal=function(e){var t,o,n=(0,(0,h.$G)("common").t)("checkout.pickupAtStoreInfoModalNameA11y");return(0,c.jsx)(ei.l,{onDismiss:e.onClose,isOpen:e.isOpen,modalName:n,modalClassName:en().modal,closeIconClassName:en().closeIcon,children:(0,c.jsxs)("div",{children:[(0,c.jsx)("h2",{className:"h4Bold mb10 mr-s",children:null===(t=e.pickupAtStoreInfo)||void 0===t?void 0:t.title}),(0,c.jsx)(ec.Z,{content:null===(o=e.pickupAtStoreInfo)||void 0===o?void 0:o.content})]})})},er=o(39973),CheckoutDeliveryMethodsRadio=function(e){var t,o,l,a,p,v=(0,s._)((0,u.useState)(null),2),m=v[0],f=v[1],k=(0,s._)((0,u.useState)(!1),2),y=k[0],x=k[1],g=(0,s._)((0,u.useState)(!1),2),C=g[0],j=g[1],N=(0,h.$G)("common").t,b=(0,u.useContext)(w.m),P=b.checkoutState,I=b.onDeliveryMethodSelected,S=(0,u.useContext)(er.S),M=S.userData,D=S.isLogged&&M.company,T=e.methods.find(function(e){return e.id===(null==m?void 0:m.id)}),E=(0,u.useRef)(null);(0,u.useEffect)(function(){(null==m?void 0:m.id)&&(null==m?void 0:m.pointId)&&E.current&&(0,W.b)(E.current,"ifInvisibleAndAlwaysOnNarrowScreens")},[null==m?void 0:m.id,null==m?void 0:m.pointId]),(0,u.useEffect)(function(){var t,o,n,i,c=P.input.shipping;if(e.methods.length&&!e.methods.some(function(e){var t;return e.id===(null==m?void 0:m.id)&&(null===(t=e.pickup_points)||void 0===t?void 0:t.some(function(e){return e.id===(null==m?void 0:m.pointId)}))})){var r=e.methods.find(function(e){return e.id===(null==c?void 0:c.id)});if(!r){f(null);return}var l=(null==c?void 0:c.id)===G.BRING_EXPRESS_SHIPPING_METHOD_ID?null==c?void 0:c.delivery_windows:void 0,s={id:r.id,pointId:null!==(i=null==c?void 0:null===(o=c.pickup_points)||void 0===o?void 0:null===(t=o[0])||void 0===t?void 0:t.id)&&void 0!==i?i:null,windowId:null==l?void 0:null===(n=l[0])||void 0===n?void 0:n.service_code};f(s),I(s,!1)}},[e.methods]),(0,u.useEffect)(function(){var e,t,o,c;(null===(t=P.input.shipping)||void 0===t?void 0:null===(e=t.pickup_points)||void 0===e?void 0:e.length)===1&&f((0,i._)((0,n._)({},m),{pointId:null===(c=P.input.shipping.pickup_points)||void 0===c?void 0:null===(o=c[0])||void 0===o?void 0:o.id}))},[null===(p=P.input.shipping)||void 0===p?void 0:p.pickup_points]);var L=(t=(0,r._)(function(e){var t,o,n,i,c;return(0,d.Jh)(this,function(r){switch(r.label){case 0:return i={id:e.id,pointId:e.pickup_points&&1===e.pickup_points.length?null===(o=e.pickup_points)||void 0===o?void 0:null===(t=o[0])||void 0===t?void 0:t.id:null},e.id===G.BRING_EXPRESS_SHIPPING_METHOD_ID&&(null===(n=e.delivery_windows)||void 0===n?void 0:n.length)===1&&(i.windowId=null===(c=e.delivery_windows[0])||void 0===c?void 0:c.service_code),f(i),[4,I(e,!1)];case 1:return r.sent(),[2]}})}),function(e){return t.apply(this,arguments)}),R=(o=(0,r._)(function(){return(0,d.Jh)(this,function(e){switch(e.label){case 0:return x(!0),[4,I(m,!0)];case 1:return e.sent(),x(!1),[2]}})}),function(){return o.apply(this,arguments)});return(0,c.jsxs)("div",{className:Z().root,children:[y&&(0,c.jsx)(_.Uz,{}),(0,c.jsx)(Modals_PickupAtStoreInfoModal,{isOpen:C,onClose:function(){return j(!1)},pickupAtStoreInfo:e.pickupAtStoreInfo}),(0,c.jsxs)("fieldset",{className:"mb50",children:[(0,c.jsx)("legend",{className:"visuallyHidden",children:N("checkout.chooseDeliveryMethod")}),(0,c.jsx)("ul",{className:Z().radioList,ref:E,children:e.methods.map(function(e){return(0,c.jsx)(CheckoutDeliveryMethod,{method:e,isB2B:D,onChangeHandle:L,selectedMethod:m,setSelectedMethod:f,setShowPickupAtStoreInfoModal:j},e.id)})}),(0,c.jsx)("button",{className:"btn",disabled:null==m||!m.id||!m||(null==T?void 0:null===(l=T.pickup_points)||void 0===l?void 0:l.length)>0&&(null==m||!m.pointId)||(null==T?void 0:T.id)===G.BRING_EXPRESS_SHIPPING_METHOD_ID&&(null!==(a=T.delivery_windows)&&void 0!==a?a:[]).length>0&&!m.windowId,onClick:R,children:N("checkout.continueToPayment")})]})]})},el=o(10211),es=o(28084),CheckoutOrderDataRoot=function(e){var t,o,n=(0,u.useContext)(w.m),i=(0,u.useContext)(er.S),r=n.checkoutState,l=n.deliveryOptions,s=n.onSectionEditClick,d=(0,u.useContext)(el.M),a=l.find(function(e){var t;return e.id===(null==r?void 0:null===(t=r.input.shipping)||void 0===t?void 0:t.id)}),h=(0,u.useRef)(Object.fromEntries(Object.keys(es.b2).map(function(e){return[e,null]})));return(0,u.useEffect)(function(){if("delivery"!==r.step){var e=h.current[r.step];(0,W.b)(e,"ifInvisibleAndAlwaysOnNarrowScreens")}},[r.step]),(0,c.jsxs)("div",{className:B().root,children:[(0,c.jsx)("div",{className:"scrollMarginTopHeader",ref:function(e){return h.current["recipient-data"]=e},children:(0,c.jsx)(CheckoutStep,{title:"checkout.yourInformation",isExpanded:"recipient-data"===r.step,isCompleted:"recipient-data"!==r.step,isEditAvailable:!(null==d?void 0:d.isCheckoutLocked),sectionComponent:(0,
1c.jsx)(I.y,{isVisible:"recipient-data"===r.step,loginWidgetText:e.loginWidgetText,setCheckoutLoader:e.setCheckoutLoader}),summaryComponent:(0,c.jsx)(I.b,{recipient:i.userData}),onEditClick:function(){s("recipient-data")}})}),(0,c.jsx)("div",{className:B().step,ref:function(e){return h.current.delivery=e},children:(0,c.jsx)(CheckoutStep,{title:"checkout.delivery",isExpanded:"delivery"===r.step,isCompleted:"payment"===r.step,sectionComponent:(0,c.jsx)(CheckoutDeliveryMethodsRadio,{methods:l,pickupAtStoreInfo:e.pickupAtStoreInfo}),summaryComponent:(0,c.jsx)(P._,{deliveryPoint:null==r?void 0:null===(o=r.input.shipping)||void 0===o?void 0:null===(t=o.pickup_points)||void 0===t?void 0:t[0],logo:null==a?void 0:a.logo}),isEditAvailable:!0,onEditClick:function(){s("delivery")}})}),(0,c.jsx)("div",{className:B().step,ref:function(e){return h.current.payment=e},children:(0,c.jsx)(CheckoutStep,{title:"checkout.payment",isExpanded:"payment"===r.step,isCompleted:!1,sectionComponent:(0,c.jsx)(CheckoutPaymentSection,{isActive:"payment"===r.step,setCheckoutLoader:e.setCheckoutLoader})})})]})},ed=o(41664),ea=o.n(ed),eu=o(68364),eh=o.n(eu),ep=o(85934),ev=o.n(ep),em=o(40782),e_=o(24747),ef=o(60895),CheckoutHeader=function(){var e,t,o,n,i,r=L()("content",ev().content),s=(0,h.$G)("common").t,d=(0,u.useContext)(er.S),a=(0,u.useContext)(el.M),p=(0,ef.Z)().URL_STRUCTURE,v=L()(ev().logo,(i={},(0,l._)(i,ev().company,(null==d?void 0:null===(e=d.userData)||void 0===e?void 0:e.company)&&(null==d?void 0:d.isReady)),(0,l._)(i,ev().individual,!(null==d?void 0:null===(t=d.userData)||void 0===t?void 0:t.company)&&(null==d?void 0:d.isReady)),i));return(0,c.jsx)("div",{className:ev().root,children:(0,c.jsxs)("div",{className:ev().container,children:[(0,c.jsxs)("header",{className:r,children:[a.isCheckoutLocked?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:ev().link,children:[(0,c.jsx)(e_.Z,{}),(0,c.jsx)("button",{className:"btn-as-link no-margin ".concat(ev().backButton),onClick:function(){a.showCheckoutLockedModal()},children:(0,c.jsx)("span",{children:s("topBar.goBackToCart")})})]}),(0,c.jsxs)("button",{onClick:function(){a.showCheckoutLockedModal()},className:"btn-box ".concat(v),children:[(0,c.jsx)(D.J,{src:"/images/logo.svg",priority:!0,externalSrc:!1,width:142,height:48,alt:"Bildeler logo",className:ev().logoImg}),(null==d?void 0:null===(o=d.userData)||void 0===o?void 0:o.company)&&(0,c.jsx)("span",{className:ev().companyName,children:s("topBar.company")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:ev().link,children:(0,c.jsxs)(ea(),{href:p.PURCHASE.CART(),prefetch:!1,children:[(0,c.jsx)(e_.Z,{}),(0,c.jsx)("span",{children:s("topBar.goBackToCart")})]})}),(0,c.jsxs)(ea(),{href:p.HOME(),prefetch:!1,className:v,children:[(0,c.jsx)(D.J,{src:"/images/logo.svg",priority:!0,externalSrc:!1,width:142,height:48,alt:"Bildeler logo",className:ev().logoImg}),(null==d?void 0:null===(n=d.userData)||void 0===n?void 0:n.company)&&(0,c.jsx)("span",{className:ev().companyName,children:s("topBar.company")})]})]}),d.isLogged&&(0,c.jsx)("div",{className:ev().right,children:d.userData.name})]}),(0,c.jsx)(em.Ix,{role:"alert",className:"toastContainer"})]})})},ek=o(24957),ey=o.n(ek),CheckoutFooter=function(e){return(0,c.jsx)("div",{className:ey().root,children:(0,c.jsxs)("div",{className:ey().content,children:[(0,c.jsxs)("small",{className:ey().copyright,children:[e.copyright," "]}),!!e.bottomLinks&&e.bottomLinks.map(function(e){var t,o;return(0,c.jsx)(ea(),{href:(null==e?void 0:null===(t=e.reference)||void 0===t?void 0:t.page)?"/".concat(null==e?void 0:null===(o=e.reference)||void 0===o?void 0:o.page):"/",prefetch:!1,className:"link-underline",children:null==e?void 0:e.label},"footerBottom_".concat(null==e?void 0:e.label))})]})})},ex=o(47007),CheckoutLayout=function(e){var t=e.children,o=e.metaTags,i=e.settings;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ex.Z,{metaTags:o}),(0,c.jsxs)("div",{className:"container ".concat(eh().container),children:[(0,c.jsx)(CheckoutHeader,{}),(0,c.jsx)("main",{className:"min100vh",children:t}),(0,c.jsx)(CheckoutFooter,(0,n._)({},null==i?void 0:i.footer))]})]})},eg=o(34604),eC=o(25506),ej=o(60202),eN=o(2009),ew=o(95726),eb=o(95056),eP=o(25559),eI=o(91839),eS=o(4298),eM=o.n(eS),eD=o(68051),eT=o(4658),eE=o(56386),eL=o(24401),eR=o(87242),eH=o(72630),eO=o(64033),CheckoutPage=function(e){var t,o,p,k,y,x,g,C,j,N,b,P,I,S,M,D,T,E,R,H,O,B,W,A,Z,G,F,U,J,K,X,V,Y,$=(0,h.$G)("common").t,z=(0,u.useContext)(w.m),q=(0,u.useContext)(a.A9),Q=(0,u.useContext)(eR.F),ee=(0,eL.Z)(),et=(0,u.useContext)(eH.o),eo=(0,u.useContext)(a.St),en=(0,s._)((0,u.useState)(!0),2),ei=en[0],ec=en[1],er=(0,s._)((0,u.useState)(!1),2),es=er[0],ed=er[1],eu=(0,u.useRef)(!1),eh=(0,f.useRouter)(),ep=(0,ef.Z)().urlResolver,ev=e.pageProps,em=e.netsPaymentsSdkSrc,e_=eh.query,ek=e_.token,ey=e_.number_plate,ex=e_.produkter,eS=e_.checkout,eB=z.initCheckout,eW=z.initUrlCheckout,eA=z.sendOnCheckoutBeginGtmEvent,eZ=(0,u.useContext)(el.M);(0,u.useEffect)(function(){(null==eo?void 0:eo.isReady)&&(null==q?void 0:q.isReady)&&(eu.current||(eu.current=!0,eA()))},[null==eo?void 0:eo.isReady,null==q?void 0:q.isReady]),(0,u.useEffect)(function(){var e;(e=(0,r._)(function(){var e,t,o,n,i,c,r;return(0,d.Jh)(this,function(l){switch(l.label){case 0:if(eh.query.token)return[2];if(ec(!0),eo.isReady&&eo.isLogged&&ek)return eo.clearUser(),[2];if(!eh.isReady||!q.isReady||!eo.isReady||ek)return[2];if(!(eS&&eo.isLogged))return[3,6];l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,eW(eS)];case 2:return l.sent(),[3,5];case 3:return e=l.sent(),eE.k.error(e),[3,5];case 4:return ec(!1),[7];case 5:return[2];case 6:if(!(ex&&q.isReady&&eh.isReady))return[3,13];l.label=7;case 7:return l.trys.push([7,10,,12]),n=(o=(0,eT.v)(ex)).map(function(e){return e.productId}),[4,ee.getProductsByIds({ids:n,vehicle:(0,eO.dx)(et.activeVehicle),campaignCode:null===(t=q.campaign)||void 0===t?void 0:t.id,nafCustomerNumber:Q.customerNumber})];case 8:if("error"===(i=l.sent()).kind)throw i.error;return q.clearCart(),q.addItemsToCart(i.data.items,o,{itemListLocation:ej.MH.Url}),(c=new URL(window.location.origin+eh.asPath)).searchParams.delete("produkter"),[4,eh.push(c,void 0,{shallow:!0})];case 9:case 11:return l.sent(),[3,12];case 10:return r=l.sent(),eE.k.error(r),[4,eh.push(eh.pathname,void 0,{shallow:!0})];case 12:return[2];case 13:if(null==eZ?void 0:eZ.isCheckoutLocked)return[3,15];return[4,eB()];case 14:l.sent(),l.label=15;case 15:return ec(!1),[2]}})}),function(){return e.apply(this,arguments)})()},[q.isReady,eh.isReady,eo.isReady,ex,ek,eS,eo.isLogged]),(0,u.useEffect)(function(){return function(){ew.l.cleanCheckoutState(),ew.l.cleanOrderResults()}},[]);var eG=L()(v().root,(0,l._)({},"border-bottom",!(null==ev?void 0:null===(o=ev.page)||void 0===o?void 0:null===(t=o.checkoutPageConfig)||void 0===t?void 0:t.content))),eF=(0,i._)((0,n._)({},null==ev?void 0:null===(k=ev.page)||void 0===k?void 0:null===(p=k.checkoutPageConfig)||void 0===p?void 0:p.metaTags),{metaTitle:eb.b.formatMetaTitle(null==ev?void 0:null===(g=ev.page)||void 0===g?void 0:null===(x=g.checkoutPageConfig)||void 0===x?void 0:null===(y=x.metaTags)||void 0===y?void 0:y.metaTitle,null==ev?void 0:null===(N=ev.page)||void 0===N?void 0:null===(j=N.checkoutPageConfig)||void 0===j?void 0:null===(C=j.intro)||void 0===C?void 0:C.heading),metaDescription:eb.b.formatMetaDescription(null==ev?void 0:null===(I=ev.page)||void 0===I?void 0:null===(P=I.checkoutPageConfig)||void 0===P?void 0:null===(b=P.metaTags)||void 0===b?void 0:b.metaDescription,null==ev?void 0:null===(D=ev.page)||void 0===D?void 0:null===(M=D.checkoutPageConfig)||void 0===M?void 0:null===(S=M.intro)||void 0===S?void 0:S.ingress,(0,eI.Z)(null==ev?void 0:null===(E=ev.page)||void 0===E?void 0:null===(T=E.checkoutPageConfig)||void 0===T?void 0:T.content)),canonicalUrl:(0,eP.Y)("/kasse"),metaNoindexNofollow:null==ev?void 0:null===(O=ev.page)||void 0===O?void 0:null===(H=O.checkoutPageConfig)||void 0===H?void 0:null===(R=H.metaTags)||void 0===R?void 0:R.metaNoindexNofollow});return(0,c.jsxs)("div",{children:[(ek||ey)&&(0,c.jsx)(eD.o,{query:e_}),(0,c.jsx)(eM(),{strategy:"beforeInteractive",src:em}),(0,c.jsxs)(CheckoutLayout,{settings:ev.settingPage,metaTags:eF,children:[(0,c.jsx)(eg.u,(0,n._)({},null==ev?void 0:null===(W=ev.page)||void 0===W?void 0:null===(B=W.checkoutPageConfig)||void 0===B?void 0:B.intro)),ei?(0,c.jsx)(eN.Z,{}):(0,c.jsx)("div",{className:eG,children:(0,c.jsx)("div",{className:v().inner,children:(0,c.jsxs)(m.Z,{columns:10,colGap:30,children:[(0,c.jsxs)(m.Z.Item,{col_lg:6,className:"p-relative",children:[es&&(0,c.jsx)(_.Uz,{}),(0,c.jsx)(CheckoutOrderDataRoot,{setCheckoutLoader:ed,deliveryMethodsConfig:e.pageProps.page.deliveryMethods,loginWidgetText:null==ev?void 0:null===(Z=ev.page)||void 0===Z?void 0:null===(A=Z.checkoutPageConfig)||void 0===A?void 0:A.loginWidgetText,pickupAtStoreInfo:null==ev?void 0:null===(G=ev.page)||void 0===G?void 0:G.pickupAtStoreInfoModal})]}),(0,c.jsxs)(m.Z.Item,{col_lg:4,className:"p-relative",children:[(0,c.jsx)(CheckoutPriceSummary,{pageProps:ev.page}),(null==ev?void 0:null===(U=ev.page)||void 0===U?void 0:null===(F=U.customerServicePageLink)||void 0===F?void 0:F._type)&&(0,c.jsxs)("div",{children:[$("checkout.doYouNeedHelp")," ",(0,c.jsx)(ea(),{href:ep(null==ev?void 0:null===(J=ev.page)||void 0===J?void 0:J.customerServicePageLink),prefetch:!1,className:"link-plain",target:"_blank",rel:"noreferrer",children:$("checkout.customerService")})]})]})]})})}),(null==ev?void 0:null===(X=ev.page)||void 0===X?void 0:null===(K=X.checkoutPageConfig)||void 0===K?void 0:K.content)&&(0,c.jsx)("section",{className:"border-top",children:(0,c.jsx)(eC.Z,{content:null==ev?void 0:null===(Y=ev.page)||void 0===Y?void 0:null===(V=Y.checkoutPageConfig)||void 0===V?void 0:V.content})})]})]})},eB=o(13591),eW=!0,kasse=function(e){return(0,c.jsx)(eB.i,(0,i._)((0,n._)({},e),{children:(0,c.jsx)(CheckoutPage,(0,n._)({},e))}))}},54646:function(e){e.exports={radio:"CheckoutDeliveryMethod_radio__2w0hL",radioWra
1pper:"CheckoutDeliveryMethod_radioWrapper__Bkmch",selected:"CheckoutDeliveryMethod_selected__jJo_M",row:"CheckoutDeliveryMethod_row__cAZp_",price:"CheckoutDeliveryMethod_price__Bj83K",method:"CheckoutDeliveryMethod_method__7jlGJ",methodNameContainer:"CheckoutDeliveryMethod_methodNameContainer__WpEDa",methodName:"CheckoutDeliveryMethod_methodName__9LZSa",methodDescription:"CheckoutDeliveryMethod_methodDescription__muTmN",methodImage:"CheckoutDeliveryMethod_methodImage__Hqjeg",labelRow:"CheckoutDeliveryMethod_labelRow__saRRt",showParcelLockerInfoButton:"CheckoutDeliveryMethod_showParcelLockerInfoButton__uw4wS"}},63652:function(e){e.exports={root:"CheckoutDeliveryMethodPoint_root__MJtp6",selected:"CheckoutDeliveryMethodPoint_selected__5RWde",content:"CheckoutDeliveryMethodPoint_content__WzxXc",btn:"CheckoutDeliveryMethodPoint_btn__Xk_Ul",checkIconWrapper:"CheckoutDeliveryMethodPoint_checkIconWrapper__yjA7K",address:"CheckoutDeliveryMethodPoint_address__PWyZV",pointName:"CheckoutDeliveryMethodPoint_pointName__k_XFa",daysName:"CheckoutDeliveryMethodPoint_daysName__dI7Wm",dateTimeContainer:"CheckoutDeliveryMethodPoint_dateTimeContainer__47_MA",deliveryDateText:"CheckoutDeliveryMethodPoint_deliveryDateText__aM5tO",openingHoursRow:"CheckoutDeliveryMethodPoint_openingHoursRow__FX66_",deliveryTimeRange:"CheckoutDeliveryMethodPoint_deliveryTimeRange__YKbP_",hours:"CheckoutDeliveryMethodPoint_hours__Gg3Nc"}},41721:function(e){e.exports={root:"CheckoutDeliveryMethodPoints_root__Xebp1",list:"CheckoutDeliveryMethodPoints_list__c4x0F",mgBottom:"CheckoutDeliveryMethodPoints_mgBottom__E2gfi",chooseLocationLabel:"CheckoutDeliveryMethodPoints_chooseLocationLabel__zZTdz",showListBtn:"CheckoutDeliveryMethodPoints_showListBtn__jmTv3"}},38045:function(e){e.exports={root:"CheckoutDeliveryMethodWindow_root__6Y_oL",selected:"CheckoutDeliveryMethodWindow_selected__Gn4of",content:"CheckoutDeliveryMethodWindow_content___a1m9",btn:"CheckoutDeliveryMethodWindow_btn__M2C2G",checkIconWrapper:"CheckoutDeliveryMethodWindow_checkIconWrapper__qHTbZ",address:"CheckoutDeliveryMethodWindow_address__rutdl",descriptionContainer:"CheckoutDeliveryMethodWindow_descriptionContainer__W9AgR"}},55843:function(e){e.exports={root:"CheckoutDeliveryMethodWindows_root__kWNpN",list:"CheckoutDeliveryMethodWindows_list__leVO7",mgBottom:"CheckoutDeliveryMethodWindows_mgBottom__aUwOR",chooseLocationLabel:"CheckoutDeliveryMethodWindows_chooseLocationLabel__5iX_a",showListBtn:"CheckoutDeliveryMethodWindows_showListBtn__oBW5N"}},6961:function(e){e.exports={radioList:"checkoutDeliveryMethodsRadio_radioList__MwLgp",root:"checkoutDeliveryMethodsRadio_root__hIqpp"}},62463:function(e){e.exports={fieldset:"checkoutPaymentSection_fieldset__UyFww",radioList:"checkoutPaymentSection_radioList__hKT22",radioWrapper:"checkoutPaymentSection_radioWra
1pper___bn_W",row:"checkoutPaymentSection_row__JYUsK",optionBody:"checkoutPaymentSection_optionBody__sRP5c",method:"checkoutPaymentSection_method__G7YCo",imgBox:"checkoutPaymentSection_imgBox__e5foP"}},22718:function(e){e.exports={root:"checkoutOrderDataRoot_root__HgpfF",step:"checkoutOrderDataRoot_step__MBAo6"}},15114:function(e){e.exports={root:"checkoutStep_root__44HQB",heading:"checkoutStep_heading__fl2Cv",disabledHeading:"checkoutStep_disabledHeading__n2Yfj",summary:"checkoutStep_summary__yY3i0"}},69636:function(e){e.exports={root:"checkoutPage_root___9ZL0",inner:"checkoutPage_inner__dIrWb"}},72224:function(e){e.exports={root:"checkoutPricesSummary_root__yFH0z",order:"checkoutPricesSummary_order__nrU1e",expandOrder:"checkoutPricesSummary_expandOrder__cGmRl",orderItems:"checkoutPricesSummary_orderItems__nRdYr"}},33481:function(e){e.exports={root:"infoTooltip_root__1L6LJ",icon:"infoTooltip_icon__6SQpx",btn:"infoTooltip_btn__HZgAW",tooltip:"infoTooltip_tooltip__GB1_y"}},54310:function(e){e.exports={root:"checkoutInfoText_root__EKTp_"}},85934:function(e){e.exports={root:"checkoutHeader_root__io0Np",container:"checkoutHeader_container__W4IQB",content:"checkoutHeader_content___xJ7h",logo:"checkoutHeader_logo__KiRHV",company:"checkoutHeader_company__U12my",logoImg:"checkoutHeader_logoImg__DbijN",individual:"checkoutHeader_individual__ViKZd",companyName:"checkoutHeader_companyName__zTVAJ",backButton:"checkoutHeader_backButton__cxTMM",link:"checkoutHeader_link__8L5gp",right:"checkoutHeader_right__HYYzl"}},24957:function(e){e.exports={root:"checkoutLayout_root__t0h7B",content:"checkoutLayout_content__LMAKo",copyright:"checkoutLayout_copyright___kwtA"}}},function(e){e.O(0,[3662,1219,8863,8654,4762,5271,9246,2128,4999,8051,2152,694,4320,8658,9774,2888,179],function(){return e(e.s=74973)}),_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.